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.6cf0c2f9.async.js

951 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(k,D,i){var y=i("y1pI");function p(S){return y(this.__data__,S)>-1}k.exports=p},"+BJd":function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("6MrE"),A=i.n(S)},"+QRC":function(k,D,i){"use strict";var y=i("E9nw"),p={"text/plain":"Text","text/html":"Url",default:"Text"},S="Copy to clipboard: #{key}, Enter";function A(f){var d=(/mac os x/i.test(navigator.userAgent)?"\u2318":"Ctrl")+"+C";return f.replace(/#{\s*key\s*}/g,d)}function m(f,d){var l,o,n,t,a,e,u=!1;d||(d={}),l=d.debug||!1;try{n=y(),t=document.createRange(),a=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=p[d.format]||p.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),a.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"),o=A("message"in d?d.message:S),window.prompt(o,f)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(t):a.removeAllRanges()),e&&document.body.removeChild(e),n()}return u}k.exports=m},"+TT/":function(k,D,i){var y=i("bYtY"),p=i("mFDi"),S=i("OELB"),A=S.parsePercent,m=i("7aKB"),f=y.each,d=["left","right","top","bottom","width","height"],l=[["width","left","right"],["height","top","bottom"]];function o(v,b,w,x,T){var O=0,E=0;x==null&&(x=Infinity),T==null&&(T=Infinity);var C=0;b.eachChild(function(I,_){var F=I.position,R=I.getBoundingRect(),B=b.childAt(_+1),M=B&&B.getBoundingRect(),X,P;if(v==="horizontal"){var z=R.width+(M?-M.x+R.x:0);X=O+z,X>x||I.newline?(O=0,X=z,E+=C+w,C=R.height):C=Math.max(C,R.height)}else{var W=R.height+(M?-M.y+R.y:0);P=E+W,P>T||I.newline?(O+=C+w,E=0,P=W,C=R.width):C=Math.max(C,R.width)}if(I.newline)return;F[0]=O,F[1]=E,v==="horizontal"?O=X+w:E=P+w})}var n=o,t=y.curry(o,"vertical"),a=y.curry(o,"horizontal");function e(v,b,w){var x=b.width,T=b.height,O=A(v.x,x),E=A(v.y,T),C=A(v.x2,x),I=A(v.y2,T);return(isNaN(O)||isNaN(parseFloat(v.x)))&&(O=0),(isNaN(C)||isNaN(parseFloat(v.x2)))&&(C=x),(isNaN(E)||isNaN(parseFloat(v.y)))&&(E=0),(isNaN(I)||isNaN(parseFloat(v.y2)))&&(I=T),w=m.normalizeCssArray(w||0),{width:Math.max(C-O-w[1]-w[3],0),height:Math.max(I-E-w[0]-w[2],0)}}function u(v,b,w){w=m.normalizeCssArray(w||0);var x=b.width,T=b.height,O=A(v.left,x),E=A(v.top,T),C=A(v.right,x),I=A(v.bottom,T),_=A(v.width,x),F=A(v.height,T),R=w[2]+w[0],B=w[1]+w[3],M=v.aspect;isNaN(_)&&(_=x-C-B-O),isNaN(F)&&(F=T-I-R-E),M!=null&&(isNaN(_)&&isNaN(F)&&(M>x/T?_=x*.8:F=T*.8),isNaN(_)&&(_=M*F),isNaN(F)&&(F=_/M)),isNaN(O)&&(O=x-C-_-B),isNaN(E)&&(E=T-I-F-R);switch(v.left||v.right){case"center":O=x/2-_/2-w[3];break;case"right":O=x-_-B;break}switch(v.top||v.bottom){case"middle":case"center":E=T/2-F/2-w[0];break;case"bottom":E=T-F-R;break}O=O||0,E=E||0,isNaN(_)&&(_=x-B-O-(C||0)),isNaN(F)&&(F=T-R-E-(I||0));var X=new p(O+w[3],E+w[0],_,F);return X.margin=w,X}function r(v,b,w,x,T){var O=!T||!T.hv||T.hv[0],E=!T||!T.hv||T.hv[1],C=T&&T.boundingMode||"all";if(!O&&!E)return;var I;if(C==="raw")I=v.type==="group"?new p(0,0,+b.width||0,+b.height||0):v.getBoundingRect();else if(I=v.getBoundingRect(),v.needLocalTransform()){var _=v.getLocalTransform();I=I.clone(),I.applyTransform(_)}b=u(y.defaults({width:I.width,height:I.height},b),w,x);var F=v.position,R=O?b.x-I.x:0,B=E?b.y-I.y:0;v.attr("position",C==="raw"?[R,B]:[F[0]+R,F[1]+B])}function s(v,b){return v[l[b][0]]!=null||v[l[b][1]]!=null&&v[l[b][2]]!=null}function c(v,b,w){!y.isObject(w)&&(w={});var x=w.ignoreSize;!y.isArray(x)&&(x=[x,x]);var T=E(l[0],0),O=E(l[1],1);_(l[0],v,T),_(l[1],v,O);function E(F,R){var B={},M=0,X={},P=0,z=2;if(f(F,function(V){X[V]=v[V]}),f(F,function(V){C(b,V)&&(B[V]=X[V]=b[V]),I(B,V)&&M++,I(X,V)&&P++}),x[R])return I(b,F[1])?X[F[2]]=null:I(b,F[2])&&(X[F[1]]=null),X;if(P===z||!M)return X;if(M>=z)return B;for(var W=0;W<F.length;W++){var U=F[W];if(!C(B,U)&&C(v,U)){B[U]=v[U];break}}return B}function C(F,R){return F.hasOwnProperty(R)}function I(F,R){return F[R]!=null&&F[R]!=="auto"}function _(F,R,B){f(F,function(M){R[M]=B[M]})}}function h(v){return g({},v)}function g(v,b){return b&&v&&f(d,function(w){b.hasOwnProperty(w)&&(v[w]=b[w])}),v}D.LOCATION_PARAMS=d,D.HV_NAMES=l,D.box=n,D.vbox=t,D.hbox=a,D.getAvailableSize=e,D.getLayoutRect=u,D.positionElement=r,D.sizeCalculable=s,D.mergeLayoutParam=c,D.getLayoutParams=h,D.copyLayoutParams=g},"+Zaj":function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("ugBc")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="CalendarOutlined";var n=A.forwardRef(o);D.default=n},"+d4F":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("y3Yb"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},"+eQT":function(k,D,i){"use strict";var y=i("wd/R"),p=i.n(y),S=i("Kwbf"),A={getNow:function(){return p()()},getWeekDay:function(Cr){var tn=Cr.clone().locale("en_US");return tn.weekday()+tn.localeData().firstDayOfWeek()},getYear:function(Cr){return Cr.year()},getMonth:function(Cr){return Cr.month()},getDate:function(Cr){return Cr.date()},getHour:function(Cr){return Cr.hour()},getMinute:function(Cr){return Cr.minute()},getSecond:function(Cr){return Cr.second()},addYear:function(Cr,tn){var Yr=Cr.clone();return Yr.add(tn,"year")},addMonth:function(Cr,tn){var Yr=Cr.clone();return Yr.add(tn,"month")},addDate:function(Cr,tn){var Yr=Cr.clone();return Yr.add(tn,"day")},setYear:function(Cr,tn){var Yr=Cr.clone();return Yr.year(tn)},setMonth:function(Cr,tn){var Yr=Cr.clone();return Yr.month(tn)},setDate:function(Cr,tn){var Yr=Cr.clone();return Yr.date(tn)},setHour:function(Cr,tn){var Yr=Cr.clone();return Yr.hour(tn)},setMinute:function(Cr,tn){var Yr=Cr.clone();return Yr.minute(tn)},setSecond:function(Cr,tn){var Yr=Cr.clone();return Yr.second(tn)},isAfter:function(Cr,tn){return Cr.isAfter(tn)},isValidate:function(Cr){return Cr.isValid()},locale:{getWeekFirstDay:function(Cr){var tn=p()().locale(Cr);return tn.localeData().firstDayOfWeek()},getWeek:function(Cr,tn){var Yr=tn.clone(),Xn=Yr.locale(Cr);return Xn.week()},getShortWeekDays:function(Cr){var tn=p()().locale(Cr);return tn.localeData().weekdaysMin()},getShortMonths:function(Cr){var tn=p()().locale(Cr);return tn.localeData().monthsShort()},format:function(Cr,tn,Yr){var Xn=tn.clone(),hn=Xn.locale(Cr);return hn.format(Yr)},parse:function(Cr,tn,Yr){for(var Xn=[],hn=0;hn<Yr.length;hn+=1){var Xr=Yr[hn],ni=tn;if(Xr.includes("wo")||Xr.includes("Wo")){Xr=Xr.replace(/wo/g,"w").replace(/Wo/g,"W");var nn=Xr.match(/[-YyMmDdHhSsWwGg]+/g),Wn=ni.match(/[-\d]+/g);nn&&Wn?(Xr=nn.join(""),ni=Wn.join("")):Xn.push(Xr.replace(/o/g,""))}var si=p()(ni,Xr,Cr,!0);if(si.isValid())return si}for(var ui=0;ui<Xn.length;ui+=1){var ai=p()(tn,Xn[ui],Cr,!1);if(ai.isValid())return Object(S.b)(!1,"Not match any format strictly and fallback to fuzzy match. Please help to fire a issue about this."),ai}return null}}},m=A,f=i("pVnL"),d=i.n(f),l=i("q1tI"),o=i.n(l),n=i("2/Rp");function t(mt){return l.createElement(n.a,d()({size:"small",type:"primary"},mt))}var a=i("mr32");function e(mt){return l.createElement(a.a,d()({color:"blue"},mt))}var u=i("lSNA"),r=i.n(u),s=i("lwsE"),c=i.n(s),h=i("W8MJ"),g=i.n(h),v=i("7W2i"),b=i.n(v),w=i("LQ03"),x=i.n(w),T=i("TSYQ"),O=i.n(T),E=i("r/2G"),C=i.n(E),I=i("XzQk"),_=i.n(I),F=i("kbBi"),R=i.n(F),B=i("1OyB"),M=i("vuIU"),X=i("Ji7U"),P=i("LK+K"),z=i("rePB"),W=i("VTBJ"),U=i("ODXe"),V=i("6cGi"),Q=i("U8pU"),G=i("4IlW"),te=l.createContext({}),$=te,le={visibility:"hidden"};function re(mt){var Cr=mt.prefixCls,tn=mt.prevIcon,Yr=tn===void 0?"\u2039":tn,Xn=mt.nextIcon,hn=Xn===void 0?"\u203A":Xn,Xr=mt.superPrevIcon,ni=Xr===void 0?"\xAB":Xr,nn=mt.superNextIcon,Wn=nn===void 0?"\xBB":nn,si=mt.onSuperPrev,ui=mt.onSuperNext,ai=mt.onPrev,Ei=mt.onNext,gi=mt.children,Ti=l.useContext($),_i=Ti.hideNextBtn,ia=Ti.hidePrevBtn;return l.createElement("div",{className:Cr},si&&l.createElement("button",{type:"button",onClick:si,tabIndex:-1,className:"".concat(Cr,"-super-prev-btn"),style:ia?le:{}},ni),ai&&l.createElement("button",{type:"button",onClick:ai,tabIndex:-1,className:"".concat(Cr,"-prev-btn"),style:ia?le:{}},Yr),l.createElement("div",{className:"".concat(Cr,"-view")},gi),Ei&&l.createElement("button",{type:"button",onClick:Ei,tabIndex:-1,className:"".concat(Cr,"-next-btn"),style:_i?le:{}},hn),ui&&l.createElement("button",{type:"button",onClick:ui,tabIndex:-1,className:"".concat(Cr,"-super-next-btn"),style:_i?le:{}},Wn))}var Se=re;function Re(mt){var Cr=l.useContext($),tn=Cr.hideHeader;if(tn)return null;var Yr=mt.prefixCls,Xn=mt.generateConfig,hn=mt.locale,Xr=mt.value,ni=mt.format,nn="".concat(Yr,"-header");return l.createElement(Se,{prefixCls:nn},Xr?Xn.locale.format(hn.locale,Xr,ni):"\xA0")}var Pe=Re,Je=i("YrtM"),Ve=i("KQm4"),ct=new Map;function Ue(mt,Cr,tn){if(ct.get(mt)&&cancelAnimationFrame(ct.get(mt)),tn<=0){ct.set(mt,requestAnimationFrame(function(){mt.scrollTop=Cr}));return}var Yr=Cr-mt.scrollTop,Xn=Yr/tn*10;ct.set(mt,requestAnimationFrame(function(){mt.scrollTop+=Xn,mt.scrollTop!==Cr&&Ue(mt,Cr,tn-10)}))}function ue(mt,Cr){var tn=Cr.onLeftRight,Yr=Cr.onCtrlLeftRight,Xn=Cr.onUpDown,hn=Cr.onPageUpDown,Xr=Cr.onEnter,ni=mt.which,nn=mt.ctrlKey,Wn=mt.metaKey;switch(ni){case G.a.LEFT:if(nn||Wn){if(Yr)return Yr(-1),!0}else if(tn)return tn(-1),!0;break;case G.a.RIGHT:if(nn||Wn){if(Yr)return Yr(1),!0}else if(tn)return tn(1),!0;break;case G.a.UP:if(Xn)return Xn(-1),!0;break;case G.a.DOWN:if(Xn)return Xn(1),!0;break;case G.a.PAGE_UP:if(hn)return hn(-1),!0;break;case G.a.PAGE_DOWN:if(hn)return hn(1),!0;break;case G.a.ENTER:if(Xr)return Xr(),!0;break}return!1}function rt(mt,Cr,tn,Yr){var Xn=mt;if(!Xn)switch(Cr){case"time":Xn=Yr?"hh:mm:ss a":"HH:mm:ss";break;case"week":Xn="gggg-wo";break;case"month":Xn="YYYY-MM";break;case"quarter":Xn="YYYY-[Q]Q";break;case"year":Xn="YYYY";break;default:Xn=tn?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD"}return Xn}function ge(mt,Cr){var tn=mt==="time"?8:10;return Math.max(tn,Cr.length)+2}var Z=null,Y=new Set;function ee(mt){return!Z&&typeof window!="undefined"&&window.addEventListener&&(Z=function(tn){Object(Ve.a)(Y).forEach(function(Yr){Yr(tn)})},window.addEventListener("mousedown",Z)),Y.add(mt),function(){Y.delete(mt),Y.size===0&&(window.removeEventListener("mousedown",Z),Z=null)}}var fe=function(Cr){return Cr==="month"||Cr==="date"?"year":Cr},be=function(Cr){return Cr==="date"?"month":Cr},Ce=function(Cr){return Cr==="month"||Cr==="date"?"quarter":Cr},Te=function(Cr){return Cr==="date"?"week":Cr},he={year:fe,month:be,quarter:Ce,week:Te,time:null,date:null};function ye(mt,Cr){return mt.some(function(tn){return tn&&tn.contains(Cr)})}function Ie(mt){var Cr=mt.prefixCls,tn=mt.units,Yr=mt.onSelect,Xn=mt.value,hn=mt.active,Xr=mt.hideDisabledOptions,ni="".concat(Cr,"-cell"),nn=l.useContext($),Wn=nn.open,si=l.useRef(null),ui=l.useRef(new Map);return l.useLayoutEffect(function(){var ai=ui.current.get(Xn);ai&&Wn!==!1&&Ue(si.current,ai.offsetTop,120)},[Xn]),l.useLayoutEffect(function(){if(Wn){var ai=ui.current.get(Xn);ai&&Ue(si.current,ai.offsetTop,0)}},[Wn]),l.createElement("ul",{className:O()("".concat(Cr,"-column"),Object(z.a)({},"".concat(Cr,"-column-active"),hn)),ref:si,style:{position:"relative"}},tn.map(function(ai){var Ei;return Xr&&ai.disabled?null:l.createElement("li",{key:ai.value,ref:function(Ti){ui.current.set(ai.value,Ti)},className:O()(ni,(Ei={},Object(z.a)(Ei,"".concat(ni,"-disabled"),ai.disabled),Object(z.a)(Ei,"".concat(ni,"-selected"),Xn===ai.value),Ei)),onClick:function(){if(ai.disabled)return;Yr(ai.value)}},l.createElement("div",{className:"".concat(ni,"-inner")},ai.label))}))}var tt=Ie;function pt(mt,Cr){for(var tn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",Yr=String(mt);Yr.length<Cr;)Yr="".concat(tn).concat(mt);return Yr}var st=function(){for(var Cr=arguments.length,tn=new Array(Cr),Yr=0;Yr<Cr;Yr++)tn[Yr]=arguments[Yr];return tn};function Fe(mt){return mt==null?[]:Array.isArray(mt)?mt:[mt]}function ft(mt){var Cr={};return Object.keys(mt).forEach(function(tn){(tn.substr(0,5)==="data-"||tn.substr(0,5)==="aria-"||tn==="role"||tn==="name")&&tn.substr(0,7)!=="data-__"&&(Cr[tn]=mt[tn])}),Cr}function et(mt,Cr){return mt?mt[Cr]:null}function wt(mt,Cr,tn){var Yr=[et(mt,0),et(mt,1)];return Yr[tn]=typeof Cr=="function"?Cr(Yr[tn]):Cr,!Yr[0]&&!Yr[1]?null:Yr}function Ht(mt,Cr,tn,Yr,Xn){var hn=mt.setHour(Cr,tn);return hn=mt.setMinute(hn,Yr),hn=mt.setSecond(hn,Xn),hn}function Dt(mt,Cr,tn,Yr,Xn,hn){var Xr=Math.floor(mt/Yr)*Yr;if(Xr<mt)return[Xr,60-Xn,60-hn];var ni=Math.floor(Cr/Xn)*Xn;if(ni<Cr)return[Xr,ni,60-hn];var nn=Math.floor(tn/hn)*hn;return[Xr,ni,nn]}function Tt(mt,Cr){if(mt.length!==Cr.length)return!0;for(var tn=0;tn<mt.length;tn+=1)if(mt[tn].disabled!==Cr[tn].disabled)return!0;return!1}function Bt(mt,Cr,tn,Yr){for(var Xn=[],hn=mt;hn<=Cr;hn+=tn)Xn.push({label:pt(hn,2),value:hn,disabled:(Yr||[]).includes(hn)});return Xn}function Ke(mt){var Cr=mt.generateConfig,tn=mt.prefixCls,Yr=mt.operationRef,Xn=mt.activeColumnIndex,hn=mt.value,Xr=mt.showHour,ni=mt.showMinute,nn=mt.showSecond,Wn=mt.use12Hours,si=mt.hourStep,ui=si===void 0?1:si,ai=mt.minuteStep,Ei=ai===void 0?1:ai,gi=mt.secondStep,Ti=gi===void 0?1:gi,_i=mt.disabledHours,ia=mt.disabledMinutes,Fi=mt.disabledSeconds,fa=mt.hideDisabledOptions,za=mt.onSelect,Ca=[],xa="".concat(tn,"-content"),Ma="".concat(tn,"-time-panel"),Pa,Wo=hn?Cr.getHour(hn):-1,Oo=hn?Cr.getMinute(hn):-1,pa=hn?Cr.getSecond(hn):-1,Sa=function(oo,eo,ss,xs){var Po=hn||Cr.getNow(),el=Math.max(0,eo),zo=Math.max(0,ss),Jo=Math.max(0,xs);return Po=Ht(Cr,Po,!Wn||!oo?el:el+12,zo,Jo),Po},Ea=Bt(0,23,ui,_i&&_i()),Ka=Object(Je.a)(function(){return Ea},Ea,Tt);Wn&&(Pa=Wo>=12,Wo%=12);var so=l.useMemo(function(){if(!Wn)return[!1,!1];var co=[!0,!0];return Ka.forEach(function(oo){var eo=oo.disabled,ss=oo.value;if(eo)return;ss>=12?co[1]=!1:co[0]=!1}),co},[Wn,Ka]),lo=Object(U.a)(so,2),wo=lo[0],No=lo[1],cs=l.useMemo(function(){return Wn?Ka.filter(Pa?function(co){return co.value>=12}:function(co){return co.value<12}).map(function(co){var oo=co.value%12,eo=oo===0?"12":pt(oo,2);return Object(W.a)(Object(W.a)({},co),{},{label:eo,value:oo})}):Ka},[Wn,Ka]),hs=Bt(0,59,Ei,ia&&ia(Wo)),Bs=Bt(0,59,Ti,Fi&&Fi(Wo,Oo));Yr.current={onUpDown:function(oo){var eo=Ca[Xn];if(eo)for(var ss=eo.units.findIndex(function(zo){return zo.value===eo.value}),xs=eo.units.length,Po=1;Po<xs;Po+=1){var el=eo.units[(ss+oo*Po+xs)%xs];if(el.disabled!==!0){eo.onSelect(el.value);break}}}};function rs(co,oo,eo,ss,xs){co!==!1&&Ca.push({node:l.cloneElement(oo,{prefixCls:Ma,value:eo,active:Xn===Ca.length,onSelect:xs,units:ss,hideDisabledOptions:fa}),onSelect:xs,value:eo,units:ss})}rs(Xr,l.createElement(tt,{key:"hour"}),Wo,cs,function(co){za(Sa(Pa,co,Oo,pa),"mouse")}),rs(ni,l.createElement(tt,{key:"minute"}),Oo,hs,function(co){za(Sa(Pa,Wo,co,pa),"mouse")}),rs(nn,l.createElement(tt,{key:"second"}),pa,Bs,function(co){za(Sa(Pa,Wo,Oo,co),"mouse")});var ns=-1;return typeof Pa=="boolean"&&(ns=Pa?1:0),rs(Wn===!0,l.createElement(tt,{key:"12hours"}),ns,[{label:"AM",value:0,disabled:wo},{label:"PM",value:1,disabled:No}],function(co){za(Sa(!!co,Wo,Oo,pa),"mouse")}),l.createElement("div",{className:xa},Ca.map(function(co){var oo=co.node;return oo}))}var de=Ke,oe=function(Cr){return Cr.filter(function(tn){return tn!==!1}).length};function lt(mt){var Cr=mt.generateConfig,tn=mt.format,Yr=tn===void 0?"HH:mm:ss":tn,Xn=mt.prefixCls,hn=mt.active,Xr=mt.operationRef,ni=mt.showHour,nn=mt.showMinute,Wn=mt.showSecond,si=mt.use12Hours,ui=si===void 0?!1:si,ai=mt.onSelect,Ei=mt.value,gi="".concat(Xn,"-time-panel"),Ti=l.useRef(),_i=l.useState(-1),ia=Object(U.a)(_i,2),Fi=ia[0],fa=ia[1],za=oe([ni,nn,Wn,ui]);return Xr.current={onKeyDown:function(xa){return ue(xa,{onLeftRight:function(Pa){fa((Fi+Pa+za)%za)},onUpDown:function(Pa){Fi===-1?fa(0):Ti.current&&Ti.current.onUpDown(Pa)},onEnter:function(){ai(Ei||Cr.getNow(),"key"),fa(-1)}})},onBlur:function(){fa(-1)}},l.createElement("div",{className:O()(gi,Object(z.a)({},"".concat(gi,"-active"),hn))},l.createElement(Pe,Object.assign({},mt,{format:Yr,prefixCls:Xn})),l.createElement(de,Object.assign({},mt,{prefixCls:Xn,activeColumnIndex:Fi,operationRef:Ti})))}var qe=lt,pe=7;function Kt(mt,Cr){return!mt&&!Cr?!0:!mt||!Cr?!1:void 0}function hr(mt,Cr,tn){var Yr=Kt(Cr,tn);if(typeof Yr=="boolean")return Yr;var Xn=Math.floor(mt.getYear(Cr)/10),hn=Math.floor(mt.getYear(tn)/10);return Xn===hn}function gt(mt,Cr,tn){var Yr=Kt(Cr,tn);return typeof Yr=="boolean"?Yr:mt.getYear(Cr)===mt.getYear(tn)}function nr(mt,Cr){var tn=Math.floor(mt.getMonth(Cr)/3);return tn+1}function mr(mt,Cr,tn){var Yr=Kt(Cr,tn);return typeof Yr=="boolean"?Yr:gt(mt,Cr,tn)&&nr(mt,Cr)===nr(mt,tn)}function cn(mt,Cr,tn){var Yr=Kt(Cr,tn);return typeof Yr=="boolean"?Yr:gt(mt,Cr,tn)&&mt.getMonth(Cr)===mt.getMonth(tn)}function Ar(mt,Cr,tn){var Yr=Kt(Cr,tn);return typeof Yr=="boolean"?Yr:mt.getYear(Cr)===mt.getYear(tn)&&mt.getMonth(Cr)===mt.getMonth(tn)&&mt.getDate(Cr)===mt.getDate(tn)}function xr(mt,Cr,tn){var Yr=Kt(Cr,tn);return typeof Yr=="boolean"?Yr:mt.getHour(Cr)===mt.getHour(tn)&&mt.getMinute(Cr)===mt.getMinute(tn)&&mt.getSecond(Cr)===mt.getSecond(tn)}function qt(mt,Cr,tn,Yr){var Xn=Kt(tn,Yr);return typeof Xn=="boolean"?Xn:mt.locale.getWeek(Cr,tn)===mt.locale.getWeek(Cr,Yr)}function ar(mt,Cr,tn){return Ar(mt,Cr,tn)&&xr(mt,Cr,tn)}function Et(mt,Cr,tn,Yr){return!Cr||!tn||!Yr?!1:!Ar(mt,Cr,Yr)&&!Ar(mt,tn,Yr)&&mt.isAfter(Yr,Cr)&&mt.isAfter(tn,Yr)}function en(mt,Cr,tn){var Yr=Cr.locale.getWeekFirstDay(mt),Xn=Cr.setDate(tn,1),hn=Cr.getWeekDay(Xn),Xr=Cr.addDate(Xn,Yr-hn);return Cr.getMonth(Xr)===Cr.getMonth(tn)&&Cr.getDate(Xr)>1&&(Xr=Cr.addDate(Xr,-7)),Xr}function Mn(mt,Cr,tn){var Yr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;switch(Cr){case"year":return tn.addYear(mt,Yr*10);case"quarter":case"month":return tn.addYear(mt,Yr);default:return tn.addMonth(mt,Yr)}}var Yn=l.createContext({}),ci=Yn;function Vi(mt){var Cr=mt.cellPrefixCls,tn=mt.generateConfig,Yr=mt.rangedValue,Xn=mt.hoverRangedValue,hn=mt.isInView,Xr=mt.isSameCell,ni=mt.offsetCell,nn=mt.today,Wn=mt.value;function si(ui){var ai,Ei=ni(ui,-1),gi=ni(ui,1),Ti=et(Yr,0),_i=et(Yr,1),ia=et(Xn,0),Fi=et(Xn,1),fa=Et(tn,ia,Fi,ui);function za(Oo){return Xr(Ti,Oo)}function Ca(Oo){return Xr(_i,Oo)}var xa=Xr(ia,ui),Ma=Xr(Fi,ui),Pa=(fa||Ma)&&(!hn(Ei)||Ca(Ei)),Wo=(fa||xa)&&(!hn(gi)||za(gi));return ai={},Object(z.a)(ai,"".concat(Cr,"-in-view"),hn(ui)),Object(z.a)(ai,"".concat(Cr,"-in-range"),Et(tn,Ti,_i,ui)),Object(z.a)(ai,"".concat(Cr,"-range-start"),za(ui)),Object(z.a)(ai,"".concat(Cr,"-range-end"),Ca(ui)),Object(z.a)(ai,"".concat(Cr,"-range-start-single"),za(ui)&&!_i),Object(z.a)(ai,"".concat(Cr,"-range-end-single"),Ca(ui)&&!Ti),Object(z.a)(ai,"".concat(Cr,"-range-start-near-hover"),za(ui)&&(Xr(Ei,ia)||Et(tn,ia,Fi,Ei))),Object(z.a)(ai,"".concat(Cr,"-range-end-near-hover"),Ca(ui)&&(Xr(gi,Fi)||Et(tn,ia,Fi,gi))),Object(z.a)(ai,"".concat(Cr,"-range-hover"),fa),Object(z.a)(ai,"".concat(Cr,"-range-hover-start"),xa),Object(z.a)(ai,"".concat(Cr,"-range-hover-end"),Ma),Object(z.a)(ai,"".concat(Cr,"-range-hover-edge-start"),Pa),Object(z.a)(ai,"".concat(Cr,"-range-hover-edge-end"),Wo),Object(z.a)(ai,"".concat(Cr,"-range-hover-edge-start-near-range"),Pa&&Xr(Ei,_i)),Object(z.a)(ai,"".concat(Cr,"-range-hover-edge-end-near-range"),Wo&&Xr(gi,Ti)),Object(z.a)(ai,"".concat(Cr,"-today"),Xr(nn,ui)),Object(z.a)(ai,"".concat(Cr,"-selected"),Xr(Wn,ui)),ai}return si}function jn(mt){for(var Cr=mt.prefixCls,tn=mt.disabledDate,Yr=mt.onSelect,Xn=mt.rowNum,hn=mt.colNum,Xr=mt.prefixColumn,ni=mt.rowClassName,nn=mt.baseDate,Wn=mt.getCellClassName,si=mt.getCellText,ui=mt.getCellNode,ai=mt.getCellDate,Ei=mt.titleCell,gi=mt.headerCells,Ti=l.useContext($),_i=Ti.onDateMouseEnter,ia=Ti.onDateMouseLeave,Fi="".concat(Cr,"-cell"),fa=[],za=0;za<Xn;za+=1){for(var Ca=[],xa=void 0,Ma=function(Oo){var pa=za*hn+Oo,Sa=ai(nn,pa),Ea=tn&&tn(Sa);Oo===0&&(xa=Sa,Xr&&Ca.push(Xr(xa))),Ca.push(l.createElement("td",{key:Oo,title:Ei&&Ei(Sa),className:O()(Fi,Object(W.a)(Object(z.a)({},"".concat(Fi,"-disabled"),Ea),Wn(Sa))),onClick:function(){Ea||Yr(Sa)},onMouseEnter:function(){!Ea&&_i&&_i(Sa)},onMouseLeave:function(){!Ea&&ia&&ia(Sa)}},ui?ui(Sa):l.createElement("div",{className:"".concat(Fi,"-inner")},si(Sa))))},Pa=0;Pa<hn;Pa+=1)Ma(Pa);fa.push(l.createElement("tr",{key:za,className:ni&&ni(xa)},Ca))}return l.createElement("div",{className:"".concat(Cr,"-body")},l.createElement("table",{className:"".concat(Cr,"-content")},gi&&l.createElement("thead",null,l.createElement("tr",null,gi)),l.createElement("tbody",null,fa)))}function Qn(mt){var Cr=mt.prefixCls,tn=mt.generateConfig,Yr=mt.prefixColumn,Xn=mt.locale,hn=mt.rowCount,Xr=mt.viewDate,ni=mt.value,nn=mt.dateRender,Wn=l.useContext(ci),si=Wn.rangedValue,ui=Wn.hoverRangedValue,ai=en(Xn.locale,tn,Xr),Ei="".concat(Cr,"-cell"),gi=tn.locale.getWeekFirstDay(Xn.locale),Ti=tn.getNow(),_i=[],ia=Xn.shortWeekDays||(tn.locale.getShortWeekDays?tn.locale.getShortWeekDays(Xn.locale):[]);Yr&&_i.push(l.createElement("th",{key:"empty","aria-label":"empty cell"}));for(var Fi=0;Fi<pe;Fi+=1)_i.push(l.createElement("th",{key:Fi},ia[(Fi+gi)%pe]));var fa=Vi({cellPrefixCls:Ei,today:Ti,value:ni,generateConfig:tn,rangedValue:Yr?null:si,hoverRangedValue:Yr?null:ui,isSameCell:function(xa,Ma){return Ar(tn,xa,Ma)},isInView:function(xa){return cn(tn,xa,Xr)},offsetCell:function(xa,Ma){return tn.addDate(xa,Ma)}}),za=nn?function(Ca){return nn(Ca,Ti)}:void 0;return l.createElement(jn,Object.assign({},mt,{rowNum:hn,colNum:pe,baseDate:ai,getCellNode:za,getCellText:tn.getDate,getCellClassName:fa,getCellDate:tn.addDate,titleCell:function(xa){return tn.locale.format(Xn.locale,xa,"YYYY-MM-DD")},headerCells:_i}))}var $t=Qn;function Ot(mt){var Cr=mt.prefixCls,tn=mt.generateConfig,Yr=mt.locale,Xn=mt.viewDate,hn=mt.onNextMonth,Xr=mt.onPrevMonth,ni=mt.onNextYear,nn=mt.onPrevYear,Wn=mt.onYearClick,si=mt.onMonthClick,ui=l.useContext($),ai=ui.hideHeader;if(ai)return null;var Ei="".concat(Cr,"-header"),gi=Yr.shortMonths||(tn.locale.getShortMonths?tn.locale.getShortMonths(Yr.locale):[]),Ti=tn.getMonth(Xn),_i=l.createElement("button",{type:"button",key:"year",onClick:Wn,tabIndex:-1,className:"".concat(Cr,"-year-btn")},tn.locale.format(Yr.locale,Xn,Yr.yearFormat)),ia=l.createElement("button",{type:"button",key:"month",onClick:si,tabIndex:-1,className:"".concat(Cr,"-month-btn")},Yr.monthFormat?tn.locale.format(Yr.locale,Xn,Yr.monthFormat):gi[Ti]),Fi=Yr.monthBeforeYear?[ia,_i]:[_i,ia];return l.createElement(Se,Object.assign({},mt,{prefixCls:Ei,onSuperPrev:nn,onPrev:Xr,onNext:hn,onSuperNext:ni}),Fi)}var ke=Ot,Me=6;function Be(mt){var Cr=mt.prefixCls,tn=mt.panelName,Yr=tn===void 0?"date":tn,Xn=mt.keyboardConfig,hn=mt.active,Xr=mt.operationRef,ni=mt.generateConfig,nn=mt.value,Wn=mt.viewDate,si=mt.onViewDateChange,ui=mt.onPanelChange,ai=mt.onSelect,Ei="".concat(Cr,"-").concat(Yr,"-panel");Xr.current={onKeyDown:function(ia){return ue(ia,Object(W.a)({onLeftRight:function(fa){ai(ni.addDate(nn||Wn,fa),"key")},onCtrlLeftRight:function(fa){ai(ni.addYear(nn||Wn,fa),"key")},onUpDown:function(fa){ai(ni.addDate(nn||Wn,fa*pe),"key")},onPageUpDown:function(fa){ai(ni.addMonth(nn||Wn,fa),"key")}},Xn))}};var gi=function(ia){var Fi=ni.addYear(Wn,ia);si(Fi),ui(null,Fi)},Ti=function(ia){var Fi=ni.addMonth(Wn,ia);si(Fi),ui(null,Fi)};return l.createElement("div",{className:O()(Ei,Object(z.a)({},"".concat(Ei,"-active"),hn))},l.createElement(ke,Object.assign({},mt,{prefixCls:Cr,value:nn,viewDate:Wn,onPrevYear:function(){gi(-1)},onNextYear:function(){gi(1)},onPrevMonth:function(){Ti(-1)},onNextMonth:function(){Ti(1)},onMonthClick:function(){ui("month",Wn)},onYearClick:function(){ui("year",Wn)}})),l.createElement($t,Object.assign({},mt,{onSelect:function(ia){return ai(ia,"mouse")},prefixCls:Cr,value:nn,viewDate:Wn,rowCount:Me})))}var at=Be;function At(mt,Cr,tn){if(!tn)return Cr;var Yr=Cr;return Yr=mt.setHour(Yr,mt.getHour(tn)),Yr=mt.setMinute(Yr,mt.getMinute(tn)),Yr=mt.setSecond(Yr,mt.getSecond(tn)),Yr}var Ct=st("date","time");function Yt(mt){var Cr=mt.prefixCls,tn=mt.operationRef,Yr=mt.generateConfig,Xn=mt.value,hn=mt.defaultValue,Xr=mt.disabledTime,ni=mt.showTime,nn=mt.onSelect,Wn="".concat(Cr,"-datetime-panel"),si=l.useState(null),ui=Object(U.a)(si,2),ai=ui[0],Ei=ui[1],gi=l.useRef({}),Ti=l.useRef({}),_i=Object(Q.a)(ni)==="object"?Object(W.a)({},ni):{};function ia(Ca){var xa=Ct.indexOf(ai)+Ca,Ma=Ct[xa]||null;return Ma}var Fi=function(xa){Ti.current.onBlur&&Ti.current.onBlur(xa),Ei(null)};tn.current={onKeyDown:function(xa){if(xa.which===G.a.TAB){var Ma=ia(xa.shiftKey?-1:1);return Ei(Ma),Ma&&xa.preventDefault(),!0}if(ai){var Pa=ai==="date"?gi:Ti;return Pa.current&&Pa.current.onKeyDown&&Pa.current.onKeyDown(xa),!0}return[G.a.LEFT,G.a.RIGHT,G.a.UP,G.a.DOWN].includes(xa.which)?(Ei("date"),!0):!1},onBlur:Fi,onClose:Fi};var fa=function(xa,Ma){var Pa=xa;Ma==="date"&&!Xn&&_i.defaultValue?(Pa=Yr.setHour(Pa,Yr.getHour(_i.defaultValue)),Pa=Yr.setMinute(Pa,Yr.getMinute(_i.defaultValue)),Pa=Yr.setSecond(Pa,Yr.getSecond(_i.defaultValue))):Ma==="time"&&!Xn&&hn&&(Pa=Yr.setYear(Pa,Yr.getYear(hn)),Pa=Yr.setMonth(Pa,Yr.getMonth(hn)),Pa=Yr.setDate(Pa,Yr.getDate(hn))),nn&&nn(Pa,"mouse")},za=Xr?Xr(Xn||null):{};return l.createElement("div",{className:O()(Wn,Object(z.a)({},"".concat(Wn,"-active"),ai))},l.createElement(at,Object.assign({},mt,{operationRef:gi,active:ai==="date",onSelect:function(xa){fa(At(Yr,xa,ni&&Object(Q.a)(ni)==="object"?ni.defaultValue:null),"date")}})),l.createElement(qe,Object.assign({},mt,{format:void 0},_i,za,{defaultValue:void 0,operationRef:Ti,active:ai==="time",onSelect:function(xa){fa(xa,"time")}})))}var Pr=Yt;function qr(mt){var Cr=mt.prefixCls,tn=mt.generateConfig,Yr=mt.locale,Xn=mt.value,hn="".concat(Cr,"-cell"),Xr=function(si){return l.createElement("td",{key:"week",className:O()(hn,"".concat(hn,"-week"))},tn.locale.getWeek(Yr.locale,si))},ni="".concat(Cr,"-week-panel-row"),nn=function(si){return O()(ni,Object(z.a)({},"".concat(ni,"-selected"),qt(tn,Yr.locale,Xn,si)))};return l.createElement(at,Object.assign({},mt,{panelName:"week",prefixColumn:Xr,rowClassName:nn,keyboardConfig:{onLeftRight:null}}))}var An=qr;function Gt(mt){var Cr=mt.prefixCls,tn=mt.generateConfig,Yr=mt.locale,Xn=mt.viewDate,hn=mt.onNextYear,Xr=mt.onPrevYear,ni=mt.onYearClick,nn=l.useContext($),Wn=nn.hideHeader;if(Wn)return null;var si="".concat(Cr,"-header");return l.createElement(Se,Object.assign({},mt,{prefixCls:si,onSuperPrev:Xr,onSuperNext:hn}),l.createElement("button",{type:"button",onClick:ni,className:"".concat(Cr,"-year-btn")},tn.locale.format(Yr.locale,Xn,Yr.yearFormat)))}var vt=Gt,bt=3,fr=4;function Jt(mt){var Cr=mt.prefixCls,tn=mt.locale,Yr=mt.value,Xn=mt.viewDate,hn=mt.generateConfig,Xr=mt.monthCellRender,ni=l.useContext(ci),nn=ni.rangedValue,Wn=ni.hoverRangedValue,si="".concat(Cr,"-cell"),ui=Vi({cellPrefixCls:si,value:Yr,generateConfig:hn,rangedValue:nn,hoverRangedValue:Wn,isSameCell:function(_i,ia){return cn(hn,_i,ia)},isInView:function(){return!0},offsetCell:function(_i,ia){return hn.addMonth(_i,ia)}}),ai=tn.shortMonths||(hn.locale.getShortMonths?hn.locale.getShortMonths(tn.locale):[]),Ei=hn.setMonth(Xn,0),gi=Xr?function(Ti){return Xr(Ti,tn)}:void 0;return l.createElement(jn,Object.assign({},mt,{rowNum:fr,colNum:bt,baseDate:Ei,getCellNode:gi,getCellText:function(_i){return tn.monthFormat?hn.locale.format(tn.locale,_i,tn.monthFormat):ai[hn.getMonth(_i)]},getCellClassName:ui,getCellDate:hn.addMonth,titleCell:function(_i){return hn.locale.format(tn.locale,_i,"YYYY-MM")}}))}var Ut=Jt;function er(mt){var Cr=mt.prefixCls,tn=mt.operationRef,Yr=mt.onViewDateChange,Xn=mt.generateConfig,hn=mt.value,Xr=mt.viewDate,ni=mt.onPanelChange,nn=mt.onSelect,Wn="".concat(Cr,"-month-panel");tn.current={onKeyDown:function(ai){return ue(ai,{onLeftRight:function(gi){nn(Xn.addMonth(hn||Xr,gi),"key")},onCtrlLeftRight:function(gi){nn(Xn.addYear(hn||Xr,gi),"key")},onUpDown:function(gi){nn(Xn.addMonth(hn||Xr,gi*bt),"key")},onEnter:function(){ni("date",hn||Xr)}})}};var si=function(ai){var Ei=Xn.addYear(Xr,ai);Yr(Ei),ni(null,Ei)};return l.createElement("div",{className:Wn},l.createElement(vt,Object.assign({},mt,{prefixCls:Cr,onPrevYear:function(){si(-1)},onNextYear:function(){si(1)},onYearClick:function(){ni("year",Xr)}})),l.createElement(Ut,Object.assign({},mt,{prefixCls:Cr,onSelect:function(ai){nn(ai,"mouse"),ni("date",ai)}})))}var Mt=er;function Zt(mt){var Cr=mt.prefixCls,tn=mt.generateConfig,Yr=mt.locale,Xn=mt.viewDate,hn=mt.onNextYear,Xr=mt.onPrevYear,ni=mt.onYearClick,nn=l.useContext($),Wn=nn.hideHeader;if(Wn)return null;var si="".concat(Cr,"-header");return l.createElement(Se,Object.assign({},mt,{prefixCls:si,onSuperPrev:Xr,onSuperNext:hn}),l.createElement("button",{type:"button",onClick:ni,className:"".concat(Cr,"-year-btn")},tn.locale.format(Yr.locale,Xn,Yr.yearFormat)))}var Hr=Zt,Ir=4,Lr=1;function dn(mt){var Cr=mt.prefixCls,tn=mt.locale,Yr=mt.value,Xn=mt.viewDate,hn=mt.generateConfig,Xr=l.useContext(ci),ni=Xr.rangedValue,nn=Xr.hoverRangedValue,Wn="".concat(Cr,"-cell"),si=Vi({cellPrefixCls:Wn,value:Yr,generateConfig:hn,rangedValue:ni,hoverRangedValue:nn,isSameCell:function(Ei,gi){return mr(hn,Ei,gi)},isInView:function(){return!0},offsetCell:function(Ei,gi){return hn.addMonth(Ei,gi*3)}}),ui=hn.setDate(hn.setMonth(Xn,0),1);return l.createElement(jn,Object.assign({},mt,{rowNum:Lr,colNum:Ir,baseDate:ui,getCellText:function(Ei){return hn.locale.format(tn.locale,Ei,tn.quarterFormat||"[Q]Q")},getCellClassName:si,getCellDate:function(Ei,gi){return hn.addMonth(Ei,gi*3)},titleCell:function(Ei){return hn.locale.format(tn.locale,Ei,"YYYY-[Q]Q")}}))}var gn=dn;function ri(mt){var Cr=mt.prefixCls,tn=mt.operationRef,Yr=mt.onViewDateChange,Xn=mt.generateConfig,hn=mt.value,Xr=mt.viewDate,ni=mt.onPanelChange,nn=mt.onSelect,Wn="".concat(Cr,"-quarter-panel");tn.current={onKeyDown:function(ai){return ue(ai,{onLeftRight:function(gi){nn(Xn.addMonth(hn||Xr,gi*3),"key")},onCtrlLeftRight:function(gi){nn(Xn.addYear(hn||Xr,gi),"key")},onUpDown:function(gi){nn(Xn.addYear(hn||Xr,gi),"key")}})}};var si=function(ai){var Ei=Xn.addYear(Xr,ai);Yr(Ei),ni(null,Ei)};return l.createElement("div",{className:Wn},l.createElement(Hr,Object.assign({},mt,{prefixCls:Cr,onPrevYear:function(){si(-1)},onNextYear:function(){si(1)},onYearClick:function(){ni("year",Xr)}})),l.createElement(gn,Object.assign({},mt,{prefixCls:Cr,onSelect:function(ai){nn(ai,"mouse")}})))}var Zn=ri;function pi(mt){var Cr=mt.prefixCls,tn=mt.generateConfig,Yr=mt.viewDate,Xn=mt.onPrevDecade,hn=mt.onNextDecade,Xr=mt.onDecadeClick,ni=l.useContext($),nn=ni.hideHeader;if(nn)return null;var Wn="".concat(Cr,"-header"),si=tn.getYear(Yr),ui=Math.floor(si/He)*He,ai=ui+He-1;return l.createElement(Se,Object.assign({},mt,{prefixCls:Wn,onSuperPrev:Xn,onSuperNext:hn}),l.createElement("button",{type:"button",onClick:Xr,className:"".concat(Cr,"-decade-btn")},ui,"-",ai))}var Ci=pi,Ni=3,zi=4;function it(mt){var Cr=mt.prefixCls,tn=mt.value,Yr=mt.viewDate,Xn=mt.locale,hn=mt.generateConfig,Xr=l.useContext(ci),ni=Xr.rangedValue,nn=Xr.hoverRangedValue,Wn="".concat(Cr,"-cell"),si=hn.getYear(Yr),ui=Math.floor(si/He)*He,ai=ui+He-1,Ei=hn.setYear(Yr,ui-Math.ceil((Ni*zi-He)/2)),gi=function(ia){var Fi=hn.getYear(ia);return ui<=Fi&&Fi<=ai},Ti=Vi({cellPrefixCls:Wn,value:tn,generateConfig:hn,rangedValue:ni,hoverRangedValue:nn,isSameCell:function(ia,Fi){return gt(hn,ia,Fi)},isInView:gi,offsetCell:function(ia,Fi){return hn.addYear(ia,Fi)}});return l.createElement(jn,Object.assign({},mt,{rowNum:zi,colNum:Ni,baseDate:Ei,getCellText:hn.getYear,getCellClassName:Ti,getCellDate:hn.addYear,titleCell:function(ia){return hn.locale.format(Xn.locale,ia,"YYYY")}}))}var Ne=it,He=10;function Ge(mt){var Cr=mt.prefixCls,tn=mt.operationRef,Yr=mt.onViewDateChange,Xn=mt.generateConfig,hn=mt.value,Xr=mt.viewDate,ni=mt.sourceMode,nn=mt.onSelect,Wn=mt.onPanelChange,si="".concat(Cr,"-year-panel");tn.current={onKeyDown:function(Ei){return ue(Ei,{onLeftRight:function(Ti){nn(Xn.addYear(hn||Xr,Ti),"key")},onCtrlLeftRight:function(Ti){nn(Xn.addYear(hn||Xr,Ti*He),"key")},onUpDown:function(Ti){nn(Xn.addYear(hn||Xr,Ti*Ni),"key")},onEnter:function(){Wn(ni==="date"?"date":"month",hn||Xr)}})}};var ui=function(Ei){var gi=Xn.addYear(Xr,Ei*10);Yr(gi),Wn(null,gi)};return l.createElement("div",{className:si},l.createElement(Ci,Object.assign({},mt,{prefixCls:Cr,onPrevDecade:function(){ui(-1)},onNextDecade:function(){ui(1)},onDecadeClick:function(){Wn("decade",Xr)}})),l.createElement(Ne,Object.assign({},mt,{prefixCls:Cr,onSelect:function(Ei){Wn(ni==="date"?"date":"month",Ei),nn(Ei,"mouse")}})))}var nt=Ge;function $e(mt){var Cr=mt.prefixCls,tn=mt.generateConfig,Yr=mt.viewDate,Xn=mt.onPrevDecades,hn=mt.onNextDecades,Xr=l.useContext($),ni=Xr.hideHeader;if(ni)return null;var nn="".concat(Cr,"-header"),Wn=tn.getYear(Yr),si=Math.floor(Wn/fn)*fn,ui=si+fn-1;return l.createElement(Se,Object.assign({},mt,{prefixCls:nn,onSuperPrev:Xn,onSuperNext:hn}),si,"-",ui)}var ot=$e,Pt=3,xt=4;function rr(mt){var Cr=Vr-1,tn=mt.prefixCls,Yr=mt.viewDate,Xn=mt.generateConfig,hn=mt.disabledDate,Xr="".concat(tn,"-cell"),ni=Xn.getYear(Yr),nn=Math.floor(ni/Vr)*Vr,Wn=Math.floor(ni/fn)*fn,si=Wn+fn-1,ui=Xn.setYear(Yr,Wn-Math.ceil((Pt*xt*Vr-fn)/2)),ai=function(gi){var Ti,_i=hn&&hn(gi),ia=Xn.getYear(gi),Fi=ia+Cr;return Ti={},Object(z.a)(Ti,"".concat(Xr,"-disabled"),_i),Object(z.a)(Ti,"".concat(Xr,"-in-view"),Wn<=ia&&Fi<=si),Object(z.a)(Ti,"".concat(Xr,"-selected"),ia===nn),Ti};return l.createElement(jn,Object.assign({},mt,{rowNum:xt,colNum:Pt,baseDate:ui,getCellText:function(gi){var Ti=Xn.getYear(gi);return"".concat(Ti,"-").concat(Ti+Cr)},getCellClassName:ai,getCellDate:function(gi,Ti){return Xn.addYear(gi,Ti*Vr)}}))}var Fr=rr,Vr=10,fn=Vr*10;function gr(mt){var Cr=mt.prefixCls,tn=mt.onViewDateChange,Yr=mt.generateConfig,Xn=mt.viewDate,hn=mt.operationRef,Xr=mt.onSelect,ni=mt.onPanelChange,nn="".concat(Cr,"-decade-panel");hn.current={onKeyDown:function(ai){return ue(ai,{onLeftRight:function(gi){Xr(Yr.addYear(Xn,gi*Vr),"key")},onCtrlLeftRight:function(gi){Xr(Yr.addYear(Xn,gi*fn),"key")},onUpDown:function(gi){Xr(Yr.addYear(Xn,gi*Vr*Pt),"key")},onEnter:function(){ni("year",Xn)}})}};var Wn=function(ai){var Ei=Yr.addYear(Xn,ai*fn);tn(Ei),ni(null,Ei)},si=function(ai){Xr(ai,"mouse"),ni("year",ai)};return l.createElement("div",{className:nn},l.createElement(ot,Object.assign({},mt,{prefixCls:Cr,onPrevDecades:function(){Wn(-1)},onNextDecades:function(){Wn(1)}})),l.createElement(Fr,Object.assign({},mt,{prefixCls:Cr,onSelect:si})))}var Gn=gr;function Mr(mt,Cr,tn){return tn?l.createElement("div",{className:"".concat(mt,"-footer-extra")},tn(Cr)):null}function Rn(mt){var Cr=mt.prefixCls,tn=mt.rangeList,Yr=tn===void 0?[]:tn,Xn=mt.components,hn=Xn===void 0?{}:Xn,Xr=mt.needConfirmButton,ni=mt.onNow,nn=mt.onOk,Wn=mt.okDisabled,si=mt.showNow,ui=mt.locale,ai,Ei;if(Yr.length){var gi=hn.rangeItem||"span";ai=l.createElement(l.Fragment,null,Yr.map(function(_i){var ia=_i.label,Fi=_i.onClick,fa=_i.onMouseEnter,za=_i.onMouseLeave;return l.createElement("li",{key:ia,className:"".concat(Cr,"-preset")},l.createElement(gi,{onClick:Fi,onMouseEnter:fa,onMouseLeave:za},ia))}))}if(Xr){var Ti=hn.button||"button";ni&&!ai&&si!==!1&&(ai=l.createElement("li",{className:"".concat(Cr,"-now")},l.createElement("a",{className:"".concat(Cr,"-now-btn"),onClick:ni},ui.now))),Ei=Xr&&l.createElement("li",{className:"".concat(Cr,"-ok")},l.createElement(Ti,{disabled:Wn,onClick:nn},ui.ok))}return!ai&&!Ei?null:l.createElement("ul",{className:"".concat(Cr,"-ranges")},ai,Ei)}function bn(mt){var Cr,tn=mt.prefixCls,Yr=tn===void 0?"rc-picker":tn,Xn=mt.className,hn=mt.style,Xr=mt.locale,ni=mt.generateConfig,nn=mt.value,Wn=mt.defaultValue,si=mt.pickerValue,ui=mt.defaultPickerValue,ai=mt.disabledDate,Ei=mt.mode,gi=mt.picker,Ti=gi===void 0?"date":gi,_i=mt.tabIndex,ia=_i===void 0?0:_i,Fi=mt.showNow,fa=mt.showTime,za=mt.showToday,Ca=mt.renderExtraFooter,xa=mt.hideHeader,Ma=mt.onSelect,Pa=mt.onChange,Wo=mt.onPanelChange,Oo=mt.onMouseDown,pa=mt.onPickerValueChange,Sa=mt.onOk,Ea=mt.components,Ka=mt.direction,so=mt.hourStep,lo=so===void 0?1:so,wo=mt.minuteStep,No=wo===void 0?1:wo,cs=mt.secondStep,hs=cs===void 0?1:cs,Bs=Ti==="date"&&!!fa||Ti==="time",rs=24%lo===0,ns=60%No===0,co=60%hs===0,oo=l.useContext($),eo=oo.operationRef,ss=oo.panelRef,xs=oo.onSelect,Po=oo.hideRanges,el=oo.defaultOpenValue,zo=l.useContext(ci),Jo=zo.inRange,ks=zo.panelPosition,as=zo.rangedValue,fs=zo.hoverRangedValue,Sn=l.useRef({}),Ls=l.useRef(!0),yl=Object(V.a)(null,{value:nn,defaultValue:Wn,postState:function(Ai){return!Ai&&el&&Ti==="time"?el:Ai}}),Ks=Object(U.a)(yl,2),Ws=Ks[0],ps=Ks[1],Ms=Object(V.a)(null,{value:si,defaultValue:ui||Ws,postState:function(Ai){return Ai||ni.getNow()}}),Zs=Object(U.a)(Ms,2),zs=Zs[0],Es=Zs[1],Ds=function(Ai){Es(Ai),pa&&pa(Ai)},tl=function(Ai){var Yi=he[Ti];return Yi?Yi(Ai):Ai},Us=Object(V.a)(function(){return Ti==="time"?"time":tl("date")},{value:Ei}),Go=Object(U.a)(Us,2),Do=Go[0],Ts=Go[1];l.useEffect(function(){Ts(Ti)},[Ti]);var Ns=l.useState(function(){return Do}),Ao=Object(U.a)(Ns,2),jt=Ao[0],sr=Ao[1],_n=function(Ai,Yi){var ua=tl(Ai||Do);sr(Do),Ts(ua),Wo&&(Do!==ua||ar(ni,zs,zs))&&Wo(Yi,ua)},hi=function(Ai,Yi){var ua=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;(Do===Ti||ua)&&(ps(Ai),Ma&&Ma(Ai),xs&&xs(Ai,Yi),Pa&&!ar(ni,Ai,Ws)&&Pa(Ai))},Nt=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)};eo&&ks!=="right"&&(eo.current={onKeyDown:Nt,onClose:function(){Sn.current&&Sn.current.onClose&&Sn.current.onClose()}}),l.useEffect(function(){nn&&!Ls.current&&Es(nn)},[nn]),l.useEffect(function(){Ls.current=!1},[]);var Ee,Le=Object(W.a)(Object(W.a)({},mt),{},{operationRef:Sn,prefixCls:Yr,viewDate:zs,value:Ws,onViewDateChange:Ds,sourceMode:jt,onPanelChange:_n,disabledDate:Do!=="decade"?ai:void 0});delete Le.onChange,delete Le.onSelect;switch(Do){case"decade":Ee=l.createElement(Gn,Object.assign({},Le,{onSelect:function(Ai,Yi){Ds(Ai),hi(Ai,Yi)}}));break;case"year":Ee=l.createElement(nt,Object.assign({},Le,{onSelect:function(Ai,Yi){Ds(Ai),hi(Ai,Yi)}}));break;case"month":Ee=l.createElement(Mt,Object.assign({},Le,{onSelect:function(Ai,Yi){Ds(Ai),hi(Ai,Yi)}}));break;case"quarter":Ee=l.createElement(Zn,Object.assign({},Le,{onSelect:function(Ai,Yi){Ds(Ai),hi(Ai,Yi)}}));break;case"week":Ee=l.createElement(An,Object.assign({},Le,{onSelect:function(Ai,Yi){Ds(Ai),hi(Ai,Yi)}}));break;case"time":delete Le.showTime,Ee=l.createElement(qe,Object.assign({},Le,Object(Q.a)(fa)==="object"?fa:null,{onSelect:function(Ai,Yi){Ds(Ai),hi(Ai,Yi)}}));break;default:fa?Ee=l.createElement(Pr,Object.assign({},Le,{onSelect:function(Ai,Yi){Ds(Ai),hi(Ai,Yi)}})):Ee=l.createElement(at,Object.assign({},Le,{onSelect:function(Ai,Yi){Ds(Ai),hi(Ai,Yi)}}))}var Qe,Rt,lr=function(){var Ai=ni.getNow(),Yi=Dt(ni.getHour(Ai),ni.getMinute(Ai),ni.getSecond(Ai),rs?lo:1,ns?No:1,co?hs:1),ua=Ht(ni,Ai,Yi[0],Yi[1],Yi[2]);hi(ua,"submit")};Po||(Qe=Mr(Yr,Do,Ca),Rt=Rn({prefixCls:Yr,components:Ea,needConfirmButton:Bs,okDisabled:!Ws||ai&&ai(Ws),locale:Xr,showNow:Fi,onNow:Bs&&lr,onOk:function(){Ws&&(hi(Ws,"submit",!0),Sa&&Sa(Ws))}}));var Qr;if(za&&Do==="date"&&Ti==="date"&&!fa){var pn=ni.getNow(),In="".concat(Yr,"-today-btn"),li=ai&&ai(pn);Qr=l.createElement("a",{className:O()(In,li&&"".concat(In,"-disabled")),"aria-disabled":li,onClick:function(){li||hi(pn,"mouse",!0)}},Xr.today)}return l.createElement($.Provider,{value:Object(W.a)(Object(W.a)({},oo),{},{hideHeader:"hideHeader"in mt?xa:oo.hideHeader,hidePrevBtn:Jo&&ks==="right",hideNextBtn:Jo&&ks==="left"})},l.createElement("div",{tabIndex:ia,className:O()("".concat(Yr,"-panel"),Xn,(Cr={},Object(z.a)(Cr,"".concat(Yr,"-panel-has-range"),as&&as[0]&&as[1]),Object(z.a)(Cr,"".concat(Yr,"-panel-has-range-hover"),fs&&fs[0]&&fs[1]),Object(z.a)(Cr,"".concat(Yr,"-panel-rtl"),Ka==="rtl"),Cr)),style:hn,onKeyDown:Nt,onBlur:ce,onMouseDown:Oo,ref:ss},Ee,Qe||Rt||Qr?l.createElement("div",{className:"".concat(Yr,"-footer")},Qe,Rt,Qr):null))}var rn=bn,ei=i("JX7q"),fi=i("i8i4"),Mi=i.n(fi),$r=i("l4aY"),En=i("m+aA"),Hn=i("c+Xe"),zt=i("zT1h"),_t=i("QC+M");function Ft(mt,Cr,tn){return tn?mt[0]===Cr[0]:mt[0]===Cr[0]&&mt[1]===Cr[1]}function Wt(mt,Cr,tn){var Yr=mt[Cr]||{};return Object(W.a)(Object(W.a)({},Yr),tn)}function Vt(mt,Cr,tn,Yr){for(var Xn=tn.points,hn=Object.keys(mt),Xr=0;Xr<hn.length;Xr+=1){var ni=hn[Xr];if(Ft(mt[ni].points,Xn,Yr))return"".concat(Cr,"-placement-").concat(ni)}return""}var Lt=i("Ff2n"),cr=i("xEkU"),vr=i.n(cr),yr=i("9mu1"),Dr=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function Kn(mt,Cr){var tn={};return tn[mt.toLowerCase()]=Cr.toLowerCase(),tn["Webkit".concat(mt)]="webkit".concat(Cr),tn["Moz".concat(mt)]="moz".concat(Cr),tn["ms".concat(mt)]="MS".concat(Cr),tn["O".concat(mt)]="o".concat(Cr.toLowerCase()),tn}function Dn(mt,Cr){var tn={animationend:Kn("Animation","AnimationEnd"),transitionend:Kn("Transition","TransitionEnd")};return mt&&("AnimationEvent"in Cr||delete tn.animationend.animation,"TransitionEvent"in Cr||delete tn.transitionend.transition),tn}var di=Dn(Dr,typeof window!="undefined"?window:{}),mn={};if(Dr){var Ur=document.createElement("div");mn=Ur.style}var On={};function zn(mt){if(On[mt])return On[mt];var Cr=di[mt];if(Cr)for(var tn=Object.keys(Cr),Yr=tn.length,Xn=0;Xn<Yr;Xn+=1){var hn=tn[Xn];if(Object.prototype.hasOwnProperty.call(Cr,hn)&&hn in mn)return On[mt]=Cr[hn],On[mt]}return""}var qn=zn("animationend"),oi=zn("transitionend"),xi=!!(qn&&oi);function Di(mt,Cr){if(!mt)return null;if(Object(Q.a)(mt)==="object"){var tn=Cr.replace(/-\w/g,function(Yr){return Yr[1].toUpperCase()});return mt[tn]}return"".concat(mt,"-").concat(Cr)}var Li="none",aa="appear",ma="enter",na="leave";function Aa(mt){var Cr=mt,tn=!!l.forwardRef;Object(Q.a)(mt)==="object"&&(Cr=mt.transitionSupport,tn="forwardRef"in mt?mt.forwardRef:tn);function Yr(hn){return!!(hn.motionName&&Cr)}var Xn=function(hn){Object(X.a)(ni,hn);var Xr=Object(P.a)(ni);function ni(){var nn;return Object(B.a)(this,ni),nn=Xr.apply(this,arguments),nn.$cacheEle=null,nn.node=null,nn.raf=null,nn.destroyed=!1,nn.deadlineId=null,nn.state={status:Li,statusActive:!1,newStatus:!1,statusStyle:null},nn.onDomUpdate=function(){var Wn=nn.state,si=Wn.status,ui=Wn.newStatus,ai=nn.props,Ei=ai.onAppearStart,gi=ai.onEnterStart,Ti=ai.onLeaveStart,_i=ai.onAppearActive,ia=ai.onEnterActive,Fi=ai.onLeaveActive,fa=ai.motionAppear,za=ai.motionEnter,Ca=ai.motionLeave;if(!Yr(nn.props))return;var xa=nn.getElement();nn.$cacheEle!==xa&&(nn.removeEventListener(nn.$cacheEle),nn.addEventListener(xa),nn.$cacheEle=xa),ui&&si===aa&&fa?nn.updateStatus(Ei,null,null,function(){nn.updateActiveStatus(_i,aa)}):ui&&si===ma&&za?nn.updateStatus(gi,null,null,function(){nn.updateActiveStatus(ia,ma)}):ui&&si===na&&Ca&&nn.updateStatus(Ti,null,null,function(){nn.updateActiveStatus(Fi,na)})},nn.onMotionEnd=function(Wn){if(Wn&&!Wn.deadline&&Wn.target!==nn.getElement())return;var si=nn.state,ui=si.status,ai=si.statusActive,Ei=nn.props,gi=Ei.onAppearEnd,Ti=Ei.onEnterEnd,_i=Ei.onLeaveEnd;ui===aa&&ai?nn.updateStatus(gi,{status:Li},Wn):ui===ma&&ai?nn.updateStatus(Ti,{status:Li},Wn):ui===na&&ai&&nn.updateStatus(_i,{status:Li},Wn)},nn.setNodeRef=function(Wn){var si=nn.props.internalRef;nn.node=Wn,Object(Hn.b)(si,Wn)},nn.getElement=function(){try{return Object(En.a)(nn.node||Object(ei.a)(nn))}catch(Wn){return nn.$cacheEle}},nn.addEventListener=function(Wn){if(!Wn)return;Wn.addEventListener(oi,nn.onMotionEnd),Wn.addEventListener(qn,nn.onMotionEnd)},nn.removeEventListener=function(Wn){if(!Wn)return;Wn.removeEventListener(oi,nn.onMotionEnd),Wn.removeEventListener(qn,nn.onMotionEnd)},nn.updateStatus=function(Wn,si,ui,ai){var Ei=Wn?Wn(nn.getElement(),ui):null;if(Ei===!1||nn.destroyed)return;var gi;ai&&(gi=function(){nn.nextFrame(ai)}),nn.setState(Object(W.a)({statusStyle:Object(Q.a)(Ei)==="object"?Ei:null,newStatus:!1},si),gi)},nn.updateActiveStatus=function(Wn,si){nn.nextFrame(function(){var ui=nn.state.status;if(ui!==si)return;var ai=nn.props.motionDeadline;nn.updateStatus(Wn,{statusActive:!0}),ai>0&&(nn.deadlineId=setTimeout(function(){nn.onMotionEnd({deadline:!0})},ai))})},nn.nextFrame=function(Wn){nn.cancelNextFrame(),nn.raf=vr()(Wn)},nn.cancelNextFrame=function(){nn.raf&&(vr.a.cancel(nn.raf),nn.raf=null)},nn}return Object(M.a)(ni,[{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 Wn,si=this.state,ui=si.status,ai=si.statusActive,Ei=si.statusStyle,gi=this.props,Ti=gi.children,_i=gi.motionName,ia=gi.visible,Fi=gi.removeOnLeave,fa=gi.leavedClassName,za=gi.eventProps;return Ti?ui===Li||!Yr(this.props)?ia?Ti(Object(W.a)({},za),this.setNodeRef):Fi?null:Ti(Object(W.a)(Object(W.a)({},za),{},{className:fa}),this.setNodeRef):Ti(Object(W.a)(Object(W.a)({},za),{},{className:O()(Di(_i,ui),(Wn={},Object(z.a)(Wn,Di(_i,"".concat(ui,"-active")),ai),Object(z.a)(Wn,_i,typeof _i=="string"),Wn)),style:Ei}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(Wn,si){var ui=si.prevProps,ai=si.status;if(!Yr(Wn))return{};var Ei=Wn.visible,gi=Wn.motionAppear,Ti=Wn.motionEnter,_i=Wn.motionLeave,ia=Wn.motionLeaveImmediately,Fi={prevProps:Wn};return(ai===aa&&!gi||ai===ma&&!Ti||ai===na&&!_i)&&(Fi.status=Li,Fi.statusActive=!1,Fi.newStatus=!1),!ui&&Ei&&gi&&(Fi.status=aa,Fi.statusActive=!1,Fi.newStatus=!0),ui&&!ui.visible&&Ei&&Ti&&(Fi.status=ma,Fi.statusActive=!1,Fi.newStatus=!0),(ui&&ui.visible&&!Ei&&_i||!ui&&ia&&!Ei&&_i)&&(Fi.status=na,Fi.statusActive=!1,Fi.newStatus=!0),Fi}}]),ni}(l.Component);return Xn.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},tn?l.forwardRef(function(hn,Xr){return l.createElement(Xn,Object.assign({internalRef:Xr},hn))}):Xn}var yi=Aa(xi),Ln="add",ji="keep",ha="remove",ea="removed";function ca(mt){var Cr;return mt&&Object(Q.a)(mt)==="object"&&"key"in mt?Cr=mt:Cr={key:mt},Object(W.a)(Object(W.a)({},Cr),{},{key:String(Cr.key)})}function kr(){var mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return mt.map(ca)}function Sr(){var mt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],tn=[],Yr=0,Xn=Cr.length,hn=kr(mt),Xr=kr(Cr);hn.forEach(function(Wn){for(var si=!1,ui=Yr;ui<Xn;ui+=1){var ai=Xr[ui];if(ai.key===Wn.key){Yr<ui&&(tn=tn.concat(Xr.slice(Yr,ui).map(function(Ei){return Object(W.a)(Object(W.a)({},Ei),{},{status:Ln})})),Yr=ui),tn.push(Object(W.a)(Object(W.a)({},ai),{},{status:ji})),Yr+=1,si=!0;break}}si||tn.push(Object(W.a)(Object(W.a)({},Wn),{},{status:ha}))}),Yr<Xn&&(tn=tn.concat(Xr.slice(Yr).map(function(Wn){return Object(W.a)(Object(W.a)({},Wn),{},{status:Ln})})));var ni={};tn.forEach(function(Wn){var si=Wn.key;ni[si]=(ni[si]||0)+1});var nn=Object.keys(ni).filter(function(Wn){return ni[Wn]>1});return nn.forEach(function(Wn){tn=tn.filter(function(si){var ui=si.key,ai=si.status;return ui!==Wn||ai!==ha}),tn.forEach(function(si){si.key===Wn&&(si.status=ji)})}),tn}var yn=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function dr(mt){var Cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:yi,tn=function(Yr){Object(X.a)(hn,Yr);var Xn=Object(P.a)(hn);function hn(){var Xr;return Object(B.a)(this,hn),Xr=Xn.apply(this,arguments),Xr.state={keyEntities:[]},Xr.removeKey=function(ni){Xr.setState(function(nn){var Wn=nn.keyEntities;return{keyEntities:Wn.map(function(si){return si.key!==ni?si:Object(W.a)(Object(W.a)({},si),{},{status:ea})})}})},Xr}return Object(M.a)(hn,[{key:"render",value:function(){var ni=this,nn=this.state.keyEntities,Wn=this.props,si=Wn.component,ui=Wn.children,ai=Object(Lt.a)(Wn,["component","children"]),Ei=si||l.Fragment,gi={};return yn.forEach(function(Ti){gi[Ti]=ai[Ti],delete ai[Ti]}),delete ai.keys,l.createElement(Ei,Object.assign({},ai),nn.map(function(Ti){var _i=Ti.status,ia=Object(Lt.a)(Ti,["status"]),Fi=_i===Ln||_i===ji;return l.createElement(Cr,Object.assign({},gi,{key:ia.key,visible:Fi,eventProps:ia,onLeaveEnd:function(){gi.onLeaveEnd&&gi.onLeaveEnd.apply(gi,arguments),ni.removeKey(ia.key)}}),ui)}))}}],[{key:"getDerivedStateFromProps",value:function(ni,nn){var Wn=ni.keys,si=nn.keyEntities,ui=kr(Wn);if(!mt)return{keyEntities:ui.map(function(gi){return Object(W.a)(Object(W.a)({},gi),{},{status:ji})})};var ai=Sr(si,ui),Ei=si.length;return{keyEntities:ai.filter(function(gi){for(var Ti=null,_i=0;_i<Ei;_i+=1){var ia=si[_i];if(ia.key===gi.key){Ti=ia;break}}return!(Ti&&Ti.status===ea&&gi.status===ha)})}}}]),hn}(l.Component);return tn.defaultProps={component:"div"},tn}var Rr=dr(xi),Gr=yi,ln=function(Cr,tn){var Yr=Cr.prefixCls,Xn=Cr.className,hn=Cr.style,Xr=Cr.children,ni=Cr.onMouseEnter,nn=Cr.onMouseLeave,Wn=Cr.onMouseDown,si=Cr.onTouchStart,ui=Xr;return l.Children.count(Xr)>1&&(ui=l.createElement("div",{className:"".concat(Yr,"-content")},Xr)),l.createElement("div",{ref:tn,className:Xn,onMouseEnter:ni,onMouseLeave:nn,onMouseDown:Wn,onTouchStart:si,style:hn},ui)},kn=l.forwardRef(ln);kn.displayName="PopupInner";var kt=kn;function _r(mt){var Cr=mt.prefixCls,tn=mt.motion,Yr=mt.animation,Xn=mt.transitionName;return tn||(Yr?{motionName:"".concat(Cr,"-").concat(Yr)}:Xn?{motionName:Xn}:null)}function Nr(mt){return mt&&mt.motionName}var Jr=function(mt){Object(X.a)(tn,mt);var Cr=Object(P.a)(tn);function tn(){var Yr;return Object(B.a)(this,tn),Yr=Cr.apply(this,arguments),Yr.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},Yr.popupRef=o.a.createRef(),Yr.alignRef=o.a.createRef(),Yr.nextFrameState=null,Yr.nextFrameId=null,Yr.onAlign=function(Xn,hn){var Xr=Yr.state.status,ni=Yr.props,nn=ni.getClassNameFromAlign,Wn=ni.onAlign,si=nn(hn);Xr==="align"?Yr.setState({alignClassName:si,status:"aligned"},function(){Yr.alignRef.current.forceAlign()}):Xr==="aligned"?(Yr.setState({alignClassName:si,status:"afterAlign"}),Wn(Xn,hn)):Yr.setState({alignClassName:si})},Yr.onMotionEnd=function(){var Xn=Yr.props.visible;Yr.setState({status:Xn?"AfterMotion":"stable",inMotion:!1})},Yr.setStateOnNextFrame=function(Xn){Yr.cancelFrameState(),Yr.nextFrameState=Object(W.a)(Object(W.a)({},Yr.nextFrameState),Xn),Yr.nextFrameId=vr()(function(){var hn=Object(W.a)({},Yr.nextFrameState);Yr.nextFrameState=null,Yr.setState(hn)})},Yr.getMotion=function(){return Object(W.a)({},_r(Yr.props))},Yr.getAlignTarget=function(){var Xn=Yr.props,hn=Xn.point,Xr=Xn.getRootDomNode;return hn||Xr},Yr.cancelFrameState=function(){vr.a.cancel(Yr.nextFrameId)},Yr.renderPopupElement=function(){var Xn=Yr.state,hn=Xn.status,Xr=Xn.targetHeight,ni=Xn.targetWidth,nn=Xn.alignClassName,Wn=Yr.props,si=Wn.prefixCls,ui=Wn.className,ai=Wn.style,Ei=Wn.stretch,gi=Wn.visible,Ti=Wn.align,_i=Wn.destroyPopupOnHide,ia=Wn.onMouseEnter,Fi=Wn.onMouseLeave,fa=Wn.onMouseDown,za=Wn.onTouchStart,Ca=Wn.children,xa=O()(si,ui,nn),Ma="".concat(si,"-hidden"),Pa={};Ei&&(Ei.indexOf("height")!==-1?Pa.height=Xr:Ei.indexOf("minHeight")!==-1&&(Pa.minHeight=Xr),Ei.indexOf("width")!==-1?Pa.width=ni:Ei.indexOf("minWidth")!==-1&&(Pa.minWidth=ni));var Wo=Object(W.a)(Object(W.a)(Object(W.a)(Object(W.a)({},Pa),Yr.getZIndexStyle()),ai),{},{opacity:hn==="stable"||!gi?void 0:0,pointerEvents:hn==="stable"||!gi?void 0:"none"}),Oo=Yr.getMotion(),pa=gi;gi&&hn!=="beforeMotion"&&hn!=="motion"&&hn!=="stable"&&(Oo.motionAppear=!1,Oo.motionEnter=!1,Oo.motionLeave=!1),(hn==="afterAlign"||hn==="beforeMotion")&&(pa=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(Ka){var so=Oo==null?void 0:Oo[Ka];Oo[Ka]=function(){for(var lo=arguments.length,wo=new Array(lo),No=0;No<lo;No++)wo[No]=arguments[No];so==null||so.apply(void 0,wo),Yr.setState({inMotion:!0})}});var Sa=!gi||hn!=="align"&&hn!=="aligned"&&hn!=="stable",Ea=!0;return hn==="stable"&&(Ea=gi),_i&&!Ea?null:o.a.createElement(Gr,Object.assign({visible:pa},Oo,{removeOnLeave:!1,onEnterEnd:Yr.onMotionEnd,onLeaveEnd:Yr.onMotionEnd,leavedClassName:Ma}),function(Ka,so){var lo=Ka.style,wo=Ka.className;return o.a.createElement(yr.a,{target:Yr.getAlignTarget(),key:"popup",ref:Yr.alignRef,monitorWindowResize:!0,disabled:Sa,align:Ti,onAlign:Yr.onAlign},o.a.createElement(kt,{prefixCls:si,className:O()(xa,wo),ref:Object(Hn.a)(so,Yr.popupRef),onMouseEnter:ia,onMouseLeave:Fi,onMouseDown:fa,onTouchStart:za,style:Object(W.a)(Object(W.a)({},Wo),lo)},Ca))})},Yr.renderMaskElement=function(){var Xn=Yr.props,hn=Xn.mask,Xr=Xn.maskMotion,ni=Xn.maskTransitionName,nn=Xn.maskAnimation,Wn=Xn.prefixCls,si=Xn.visible;if(!hn)return null;var ui={};return Xr&&Xr.motionName&&(ui=Object(W.a)({motionAppear:!0},_r({motion:Xr,prefixCls:Wn,transitionName:ni,animation:nn}))),o.a.createElement(Gr,Object.assign({},ui,{visible:si,removeOnLeave:!0}),function(ai){var Ei=ai.className;return o.a.createElement("div",{style:Yr.getZIndexStyle(),key:"mask",className:O()("".concat(Wn,"-mask"),Ei)})})},Yr}return Object(M.a)(tn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Xn=this.state.status,hn=this.props,Xr=hn.getRootDomNode,ni=hn.visible,nn=hn.stretch;if(this.cancelFrameState(),ni&&Xn!=="stable")switch(Xn){case null:{this.setStateOnNextFrame({status:nn?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:Nr(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var Wn=["measure","align",null,"beforeMotion","motion"],si=Wn.indexOf(Xn),ui=Wn[si+1];si!==-1&&ui&&this.setStateOnNextFrame({status:ui})}}if(Xn==="measure"){var ai=Xr();ai&&this.setStateOnNextFrame({targetHeight:ai.offsetHeight,targetWidth:ai.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Xn=this.props.zIndex;return{zIndex:Xn}}},{key:"render",value:function(){return o.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Xn,hn){var Xr=Xn.visible,ni=Object(Lt.a)(Xn,["visible"]),nn=hn.prevVisible,Wn=hn.status,si=hn.inMotion,ui={prevVisible:Xr,status:Wn},ai=_r(ni);return nn===null&&Xr===!1?(ui.status="stable",ui.inMotion=!1):Xr!==nn&&(ui.inMotion=!1,Xr||Nr(ai)&&si?ui.status=null:ui.status="stable",Xr&&(ui.alignClassName=null)),ui}}]),tn}(l.Component),xn=Jr,Tn=l.createContext(null),wn=Tn;function $n(){}function Vn(){return""}function mi(){return window.document}var Ri=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function vi(mt){var Cr=function(tn){Object(X.a)(Xn,tn);var Yr=Object(P.a)(Xn);function Xn(hn){var Xr;Object(B.a)(this,Xn),Xr=Yr.call(this,hn),Xr.popupRef=o.a.createRef(),Xr.triggerRef=o.a.createRef(),Xr.onMouseEnter=function(nn){var Wn=Xr.props.mouseEnterDelay;Xr.fireEvents("onMouseEnter",nn),Xr.delaySetPopupVisible(!0,Wn,Wn?null:nn)},Xr.onMouseMove=function(nn){Xr.fireEvents("onMouseMove",nn),Xr.setPoint(nn)},Xr.onMouseLeave=function(nn){Xr.fireEvents("onMouseLeave",nn),Xr.delaySetPopupVisible(!1,Xr.props.mouseLeaveDelay)},Xr.onPopupMouseEnter=function(){Xr.clearDelayTimer()},Xr.onPopupMouseLeave=function(nn){if(nn.relatedTarget&&!nn.relatedTarget.setTimeout&&Xr.popupRef.current&&Xr.popupRef.current.popupRef.current&&Object($r.a)(Xr.popupRef.current.popupRef.current,nn.relatedTarget))return;Xr.delaySetPopupVisible(!1,Xr.props.mouseLeaveDelay)},Xr.onFocus=function(nn){Xr.fireEvents("onFocus",nn),Xr.clearDelayTimer(),Xr.isFocusToShow()&&(Xr.focusTime=Date.now(),Xr.delaySetPopupVisible(!0,Xr.props.focusDelay))},Xr.onMouseDown=function(nn){Xr.fireEvents("onMouseDown",nn),Xr.preClickTime=Date.now()},Xr.onTouchStart=function(nn){Xr.fireEvents("onTouchStart",nn),Xr.preTouchTime=Date.now()},Xr.onBlur=function(nn){Xr.fireEvents("onBlur",nn),Xr.clearDelayTimer(),Xr.isBlurToHide()&&Xr.delaySetPopupVisible(!1,Xr.props.blurDelay)},Xr.onContextMenu=function(nn){nn.preventDefault(),Xr.fireEvents("onContextMenu",nn),Xr.setPopupVisible(!0,nn)},Xr.onContextMenuClose=function(){Xr.isContextMenuToShow()&&Xr.close()},Xr.onClick=function(nn){if(Xr.fireEvents("onClick",nn),Xr.focusTime){var Wn;if(Xr.preClickTime&&Xr.preTouchTime?Wn=Math.min(Xr.preClickTime,Xr.preTouchTime):Xr.preClickTime?Wn=Xr.preClickTime:Xr.preTouchTime&&(Wn=Xr.preTouchTime),Math.abs(Wn-Xr.focusTime)<20)return;Xr.focusTime=0}Xr.preClickTime=0,Xr.preTouchTime=0,Xr.isClickToShow()&&(Xr.isClickToHide()||Xr.isBlurToHide())&&nn&&nn.preventDefault&&nn.preventDefault();var si=!Xr.state.popupVisible;(Xr.isClickToHide()&&!si||si&&Xr.isClickToShow())&&Xr.setPopupVisible(!Xr.state.popupVisible,nn)},Xr.onPopupMouseDown=function(){if(Xr.hasPopupMouseDown=!0,clearTimeout(Xr.mouseDownTimeout),Xr.mouseDownTimeout=window.setTimeout(function(){Xr.hasPopupMouseDown=!1},0),Xr.context){var nn;(nn=Xr.context).onPopupMouseDown.apply(nn,arguments)}},Xr.onDocumentClick=function(nn){if(Xr.props.mask&&!Xr.props.maskClosable)return;var Wn=nn.target,si=Xr.getRootDomNode(),ui=Xr.getPopupDomNode();!Object($r.a)(si,Wn)&&!Object($r.a)(ui,Wn)&&!Xr.hasPopupMouseDown&&Xr.close()},Xr.getRootDomNode=function(){var nn=Xr.props.getTriggerDOMNode;if(nn)return nn(Xr.triggerRef.current);try{var Wn=Object(En.a)(Xr.triggerRef.current);if(Wn)return Wn}catch(si){}return Mi.a.findDOMNode(Object(ei.a)(Xr))},Xr.getPopupClassNameFromAlign=function(nn){var Wn=[],si=Xr.props,ui=si.popupPlacement,ai=si.builtinPlacements,Ei=si.prefixCls,gi=si.alignPoint,Ti=si.getPopupClassNameFromAlign;return ui&&ai&&Wn.push(Vt(ai,Ei,nn,gi)),Ti&&Wn.push(Ti(nn)),Wn.join(" ")},Xr.getComponent=function(){var nn=Xr.props,Wn=nn.prefixCls,si=nn.destroyPopupOnHide,ui=nn.popupClassName,ai=nn.onPopupAlign,Ei=nn.popupMotion,gi=nn.popupAnimation,Ti=nn.popupTransitionName,_i=nn.popupStyle,ia=nn.mask,Fi=nn.maskAnimation,fa=nn.maskTransitionName,za=nn.maskMotion,Ca=nn.zIndex,xa=nn.popup,Ma=nn.stretch,Pa=nn.alignPoint,Wo=Xr.state,Oo=Wo.popupVisible,pa=Wo.point,Sa=Xr.getPopupAlign(),Ea={};return Xr.isMouseEnterToShow()&&(Ea.onMouseEnter=Xr.onPopupMouseEnter),Xr.isMouseLeaveToHide()&&(Ea.onMouseLeave=Xr.onPopupMouseLeave),Ea.onMouseDown=Xr.onPopupMouseDown,Ea.onTouchStart=Xr.onPopupMouseDown,o.a.createElement(xn,Object.assign({prefixCls:Wn,destroyPopupOnHide:si,visible:Oo,point:Pa&&pa,className:ui,align:Sa,onAlign:ai,animation:gi,getClassNameFromAlign:Xr.getPopupClassNameFromAlign},Ea,{stretch:Ma,getRootDomNode:Xr.getRootDomNode,style:_i,mask:ia,zIndex:Ca,transitionName:Ti,maskAnimation:Fi,maskTransitionName:fa,maskMotion:za,ref:Xr.popupRef,motion:Ei}),typeof xa=="function"?xa():xa)},Xr.getContainer=function(){var nn=Object(ei.a)(Xr),Wn=nn.props,si=document.createElement("div");si.style.position="absolute",si.style.top="0",si.style.left="0",si.style.width="100%";var ui=Wn.getPopupContainer?Wn.getPopupContainer(Xr.getRootDomNode()):Wn.getDocument().body;return ui.appendChild(si),si},Xr.setPoint=function(nn){var Wn=Xr.props.alignPoint;if(!Wn||!nn)return;Xr.setState({point:{pageX:nn.pageX,pageY:nn.pageY}})},Xr.handlePortalUpdate=function(){Xr.state.prevPopupVisible!==Xr.state.popupVisible&&Xr.props.afterPopupVisibleChange(Xr.state.popupVisible)};var ni;return"popupVisible"in hn?ni=!!hn.popupVisible:ni=!!hn.defaultPopupVisible,Xr.state={prevPopupVisible:ni,popupVisible:ni},Ri.forEach(function(nn){Xr["fire".concat(nn)]=function(Wn){Xr.fireEvents(nn,Wn)}}),Xr}return Object(M.a)(Xn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Xr=this.props,ni=this.state;if(ni.popupVisible){var nn;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(nn=Xr.getDocument(),this.clickOutsideHandler=Object(zt.a)(nn,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(nn=nn||Xr.getDocument(),this.touchOutsideHandler=Object(zt.a)(nn,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(nn=nn||Xr.getDocument(),this.contextMenuOutsideHandler1=Object(zt.a)(nn,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(zt.a)(window,"blur",this.onContextMenuClose));return}this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)}},{key:"getPopupDomNode",value:function(){return this.popupRef.current&&this.popupRef.current.popupRef.current?this.popupRef.current.popupRef.current:null}},{key:"getPopupAlign",value:function(){var Xr=this.props,ni=Xr.popupPlacement,nn=Xr.popupAlign,Wn=Xr.builtinPlacements;return ni&&Wn?Wt(Wn,ni,nn):nn}},{key:"setPopupVisible",value:function(Xr,ni){var nn=this.props.alignPoint,Wn=this.state.popupVisible;this.clearDelayTimer(),Wn!==Xr&&("popupVisible"in this.props||this.setState({popupVisible:Xr,prevPopupVisible:Wn}),this.props.onPopupVisibleChange(Xr)),nn&&ni&&this.setPoint(ni)}},{key:"delaySetPopupVisible",value:function(Xr,ni,nn){var Wn=this,si=ni*1e3;if(this.clearDelayTimer(),si){var ui=nn?{pageX:nn.pageX,pageY:nn.pageY}:null;this.delayTimer=window.setTimeout(function(){Wn.setPopupVisible(Xr,ui),Wn.clearDelayTimer()},si)}else this.setPopupVisible(Xr,nn)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(Xr){var ni=this.props.children.props,nn=this.props;return ni[Xr]&&nn[Xr]?this["fire".concat(Xr)]:ni[Xr]||nn[Xr]}},{key:"isClickToShow",value:function(){var Xr=this.props,ni=Xr.action,nn=Xr.showAction;return ni.indexOf("click")!==-1||nn.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var Xr=this.props,ni=Xr.action,nn=Xr.showAction;return ni.indexOf("contextMenu")!==-1||nn.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Xr=this.props,ni=Xr.action,nn=Xr.hideAction;return ni.indexOf("click")!==-1||nn.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Xr=this.props,ni=Xr.action,nn=Xr.showAction;return ni.indexOf("hover")!==-1||nn.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Xr=this.props,ni=Xr.action,nn=Xr.hideAction;return ni.indexOf("hover")!==-1||nn.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Xr=this.props,ni=Xr.action,nn=Xr.showAction;return ni.indexOf("focus")!==-1||nn.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Xr=this.props,ni=Xr.action,nn=Xr.hideAction;return ni.indexOf("focus")!==-1||nn.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){this.state.popupVisible&&this.popupRef.current&&this.popupRef.current.alignRef.current&&this.popupRef.current.alignRef.current.forceAlign()}},{key:"fireEvents",value:function(Xr,ni){var nn=this.props.children.props[Xr];nn&&nn(ni);var Wn=this.props[Xr];Wn&&Wn(ni)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Xr=this.state.popupVisible,ni=this.props,nn=ni.children,Wn=ni.forceRender,si=ni.alignPoint,ui=ni.className,ai=ni.autoDestroy,Ei=o.a.Children.only(nn),gi={key:"trigger"};this.isContextMenuToShow()?gi.onContextMenu=this.onContextMenu:gi.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(gi.onClick=this.onClick,gi.onMouseDown=this.onMouseDown,gi.onTouchStart=this.onTouchStart):(gi.onClick=this.createTwoChains("onClick"),gi.onMouseDown=this.createTwoChains("onMouseDown"),gi.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(gi.onMouseEnter=this.onMouseEnter,si&&(gi.onMouseMove=this.onMouseMove)):gi.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?gi.onMouseLeave=this.onMouseLeave:gi.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(gi.onFocus=this.onFocus,gi.onBlur=this.onBlur):(gi.onFocus=this.createTwoChains("onFocus"),gi.onBlur=this.createTwoChains("onBlur"));var Ti=O()(Ei&&Ei.props&&Ei.props.className,ui);Ti&&(gi.className=Ti);var _i=Object(W.a)({},gi);Object(Hn.c)(Ei)&&(_i.ref=Object(Hn.a)(this.triggerRef,Ei.ref));var ia=o.a.cloneElement(Ei,_i),Fi;return(Xr||this.popupRef.current||Wn)&&(Fi=o.a.createElement(mt,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Xr&&ai&&(Fi=null),o.a.createElement(wn.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},ia,Fi)}}],[{key:"getDerivedStateFromProps",value:function(Xr,ni){var nn=Xr.popupVisible,Wn={};return nn!==void 0&&ni.popupVisible!==nn&&(Wn.popupVisible=nn,Wn.prevPopupVisible=ni.popupVisible),Wn}}]),Xn}(o.a.Component);return Cr.contextType=wn,Cr.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Vn,getDocument:mi,onPopupVisibleChange:$n,afterPopupVisibleChange:$n,onPopupAlign:$n,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Cr}var Bi=vi(_t.a),Gi={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 ta(mt){var Cr,tn=mt.prefixCls,Yr=mt.popupElement,Xn=mt.popupStyle,hn=mt.visible,Xr=mt.dropdownClassName,ni=mt.dropdownAlign,nn=mt.transitionName,Wn=mt.getPopupContainer,si=mt.children,ui=mt.range,ai=mt.popupPlacement,Ei=mt.direction,gi="".concat(tn,"-dropdown"),Ti=function(){return ai!==void 0?ai:Ei==="rtl"?"bottomRight":"bottomLeft"};return l.createElement(Bi,{showAction:[],hideAction:[],popupPlacement:Ti(),builtinPlacements:Gi,prefixCls:gi,popupTransitionName:nn,popup:Yr,popupAlign:ni,popupVisible:hn,popupClassName:O()(Xr,(Cr={},Object(z.a)(Cr,"".concat(gi,"-range"),ui),Object(z.a)(Cr,"".concat(gi,"-rtl"),Ei==="rtl"),Cr)),popupStyle:Xn,getPopupContainer:Wn},si)}var Pi=ta;function Ki(mt){var Cr=mt.open,tn=mt.value,Yr=mt.isClickOutside,Xn=mt.triggerOpen,hn=mt.forwardKeyDown,Xr=mt.blurToCancel,ni=mt.onSubmit,nn=mt.onCancel,Wn=mt.onFocus,si=mt.onBlur,ui=Object(l.useState)(!1),ai=Object(U.a)(ui,2),Ei=ai[0],gi=ai[1],Ti=Object(l.useState)(!1),_i=Object(U.a)(Ti,2),ia=_i[0],Fi=_i[1],fa=Object(l.useRef)(!1),za=Object(l.useRef)(!1),Ca={onMouseDown:function(){gi(!0),Xn(!0)},onKeyDown:function(Ma){switch(Ma.which){case G.a.ENTER:{Cr?ni()!==!1&&gi(!0):Xn(!0),Ma.preventDefault();return}case G.a.TAB:{Ei&&Cr&&!Ma.shiftKey?(gi(!1),Ma.preventDefault()):!Ei&&Cr&&(!hn(Ma)&&Ma.shiftKey&&(gi(!0),Ma.preventDefault()));return}case G.a.ESC:{gi(!0),nn();return}}!Cr&&![G.a.SHIFT].includes(Ma.which)?Xn(!0):Ei||hn(Ma)},onFocus:function(Ma){gi(!0),Fi(!0),Wn&&Wn(Ma)},onBlur:function(Ma){if(fa.current||!Yr(document.activeElement)){fa.current=!1;return}Xr?setTimeout(function(){Yr(document.activeElement)&&nn()},0):Cr&&(Xn(!1),za.current&&ni()),Fi(!1),si&&si(Ma)}};return Object(l.useEffect)(function(){za.current=!1},[Cr]),Object(l.useEffect)(function(){za.current=!0},[tn]),Object(l.useEffect)(function(){return ee(function(xa){var Ma=xa.target;Cr&&(Yr(Ma)?ia||Xn(!1):(fa.current=!0,requestAnimationFrame(function(){fa.current=!1})))})}),[Ca,{focused:ia,typing:Ei}]}function Hi(mt){var Cr=mt.valueTexts,tn=mt.onTextChange,Yr=l.useState(""),Xn=Object(U.a)(Yr,2),hn=Xn[0],Xr=Xn[1],ni=l.useRef([]);ni.current=Cr;function nn(si){Xr(si),tn(si)}function Wn(){Xr(ni.current[0])}return l.useEffect(function(){Cr.every(function(si){return si!==hn})&&Wn()},[Cr.join("||")]),[hn,nn,Wn]}var Qi=i("Gytx"),da=i.n(Qi);function Oa(mt,Cr){var tn=Cr.formatList,Yr=Cr.generateConfig,Xn=Cr.locale;return Object(Je.a)(function(){if(!mt)return[[""],""];for(var hn="",Xr=[],ni=0;ni<tn.length;ni+=1){var nn=tn[ni],Wn=Yr.locale.format(Xn.locale,mt,nn);Xr.push(Wn),ni===0&&(hn=Wn)}return[Xr,hn]},[mt,tn],function(hn,Xr){return hn[0]!==Xr[0]||!da()(hn[1],Xr[1])})}function ra(mt,Cr){var tn=Cr.formatList,Yr=Cr.generateConfig,Xn=Cr.locale,hn=Object(l.useState)(null),Xr=Object(U.a)(hn,2),ni=Xr[0],nn=Xr[1],Wn=Object(l.useRef)(null);function si(_i){var ia=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(cancelAnimationFrame(Wn.current),ia){nn(_i);return}Wn.current=requestAnimationFrame(function(){nn(_i)})}var ui=Oa(ni,{formatList:tn,generateConfig:Yr,locale:Xn}),ai=Object(U.a)(ui,2),Ei=ai[1];function gi(_i){si(_i)}function Ti(){var _i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;si(null,_i)}return Object(l.useEffect)(function(){Ti(!0)},[mt]),Object(l.useEffect)(function(){return function(){return cancelAnimationFrame(Wn.current)}},[]),[Ei,gi,Ti]}function Da(mt){var Cr,tn=mt.prefixCls,Yr=tn===void 0?"rc-picker":tn,Xn=mt.id,hn=mt.tabIndex,Xr=mt.style,ni=mt.className,nn=mt.dropdownClassName,Wn=mt.dropdownAlign,si=mt.popupStyle,ui=mt.transitionName,ai=mt.generateConfig,Ei=mt.locale,gi=mt.inputReadOnly,Ti=mt.allowClear,_i=mt.autoFocus,ia=mt.showTime,Fi=mt.picker,fa=Fi===void 0?"date":Fi,za=mt.format,Ca=mt.use12Hours,xa=mt.value,Ma=mt.defaultValue,Pa=mt.open,Wo=mt.defaultOpen,Oo=mt.defaultOpenValue,pa=mt.suffixIcon,Sa=mt.clearIcon,Ea=mt.disabled,Ka=mt.disabledDate,so=mt.placeholder,lo=mt.getPopupContainer,wo=mt.pickerRef,No=mt.panelRender,cs=mt.onChange,hs=mt.onOpenChange,Bs=mt.onFocus,rs=mt.onBlur,ns=mt.onMouseDown,co=mt.onMouseUp,oo=mt.onMouseEnter,eo=mt.onMouseLeave,ss=mt.onContextMenu,xs=mt.onClick,Po=mt.direction,el=mt.autoComplete,zo=el===void 0?"off":el,Jo=l.useRef(null),ks=fa==="date"&&!!ia||fa==="time",as=Fe(rt(za,fa,ia,Ca)),fs=l.useRef(null),Sn=l.useRef(null),Ls=Object(V.a)(null,{value:xa,defaultValue:Ma}),yl=Object(U.a)(Ls,2),Ks=yl[0],Ws=yl[1],ps=l.useState(Ks),Ms=Object(U.a)(ps,2),Zs=Ms[0],zs=Ms[1],Es=l.useRef(null),Ds=Object(V.a)(!1,{value:Pa,defaultValue:Wo,postState:function(yo){return Ea?!1:yo},onChange:function(yo){hs&&hs(yo),!yo&&Es.current&&Es.current.onClose&&Es.current.onClose()}}),tl=Object(U.a)(Ds,2),Us=tl[0],Go=tl[1],Do=Oa(Zs,{formatList:as,generateConfig:ai,locale:Ei}),Ts=Object(U.a)(Do,2),Ns=Ts[0],Ao=Ts[1],jt=Hi({valueTexts:Ns,onTextChange:function(yo){var As=ai.locale.parse(Ei.locale,yo,as);As&&(!Ka||!Ka(As))&&zs(As)}}),sr=Object(U.a)(jt,3),_n=sr[0],hi=sr[1],Nt=sr[2],ce=function(yo){zs(yo),Ws(yo),cs&&!ar(ai,Ks,yo)&&cs(yo,yo?ai.locale.format(Ei.locale,yo,as[0]):"")},Ee=function(yo){if(Ea&&yo)return;Go(yo)},Le=function(yo){return Us&&Es.current&&Es.current.onKeyDown?Es.current.onKeyDown(yo):(Object(S.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Qe=function(){co&&co.apply(void 0,arguments),Jo.current&&(Jo.current.focus(),Ee(!0))},Rt=Ki({blurToCancel:ks,open:Us,value:_n,triggerOpen:Ee,forwardKeyDown:Le,isClickOutside:function(yo){return!ye([fs.current,Sn.current],yo)},onSubmit:function(){return Ka&&Ka(Zs)?!1:(ce(Zs),Ee(!1),Nt(),!0)},onCancel:function(){Ee(!1),zs(Ks),Nt()},onFocus:Bs,onBlur:rs}),lr=Object(U.a)(Rt,2),Qr=lr[0],pn=lr[1],In=pn.focused,li=pn.typing;l.useEffect(function(){Us||(zs(Ks),!Ns.length||Ns[0]===""?hi(""):Ao!==_n&&Nt())},[Us,Ns]),l.useEffect(function(){Us||Nt()},[fa]),l.useEffect(function(){zs(Ks)},[Ks]),wo&&(wo.current={focus:function(){Jo.current&&Jo.current.focus()},blur:function(){Jo.current&&Jo.current.blur()}});var bi=Object(W.a)(Object(W.a)({},mt),{},{className:void 0,style:void 0,pickerValue:void 0,onPickerValueChange:void 0}),Ai=l.createElement(rn,Object.assign({},bi,{generateConfig:ai,className:O()(Object(z.a)({},"".concat(Yr,"-panel-focused"),!li)),value:Zs,locale:Ei,tabIndex:-1,onChange:zs,direction:Po}));No&&(Ai=No(Ai));var Yi=l.createElement("div",{className:"".concat(Yr,"-panel-container"),onMouseDown:function(yo){yo.preventDefault()}},Ai),ua;pa&&(ua=l.createElement("span",{className:"".concat(Yr,"-suffix")},pa));var Va;Ti&&Ks&&!Ea&&(Va=l.createElement("span",{onMouseDown:function(yo){yo.preventDefault(),yo.stopPropagation()},onMouseUp:function(yo){yo.preventDefault(),yo.stopPropagation(),ce(null),Ee(!1)},className:"".concat(Yr,"-clear")},Sa||l.createElement("span",{className:"".concat(Yr,"-clear-btn")})));var ro=function(yo,As){(As==="submit"||As!=="key"&&!ks)&&(ce(yo),Ee(!1))},So=Po==="rtl"?"bottomRight":"bottomLeft",Ro=ra(_n,{formatList:as,generateConfig:ai,locale:Ei}),jo=Object(U.a)(Ro,3),Cs=jo[0],vs=jo[1],os=jo[2];return l.createElement($.Provider,{value:{operationRef:Es,hideHeader:fa==="time",panelRef:fs,onSelect:ro,open:Us,defaultOpenValue:Oo,onDateMouseEnter:vs,onDateMouseLeave:os}},l.createElement(Pi,{visible:Us,popupElement:Yi,popupStyle:si,prefixCls:Yr,dropdownClassName:nn,dropdownAlign:Wn,getPopupContainer:lo,transitionName:ui,popupPlacement:So,direction:Po},l.createElement("div",{className:O()(Yr,ni,(Cr={},Object(z.a)(Cr,"".concat(Yr,"-disabled"),Ea),Object(z.a)(Cr,"".concat(Yr,"-focused"),In),Object(z.a)(Cr,"".concat(Yr,"-rtl"),Po==="rtl"),Cr)),style:Xr,onMouseDown:ns,onMouseUp:Qe,onMouseEnter:oo,onMouseLeave:eo,onContextMenu:ss,onClick:xs},l.createElement("div",{className:O()("".concat(Yr,"-input"),Object(z.a)({},"".concat(Yr,"-input-placeholder"),!!Cs)),ref:Sn},l.createElement("input",Object.assign({id:Xn,tabIndex:hn,disabled:Ea,readOnly:gi||!li,value:Cs||_n,onChange:function(yo){hi(yo.target.value)},autoFocus:_i,placeholder:so,ref:Jo,title:_n},Qr,{size:ge(fa,as[0])},ft(mt),{autoComplete:zo})),ua,Va))))}var Ra=function(mt){Object(X.a)(tn,mt);var Cr=Object(P.a)(tn);function tn(){var Yr;return Object(B.a)(this,tn),Yr=Cr.apply(this,arguments),Yr.pickerRef=l.createRef(),Yr.focus=function(){Yr.pickerRef.current&&Yr.pickerRef.current.focus()},Yr.blur=function(){Yr.pickerRef.current&&Yr.pickerRef.current.blur()},Yr}return Object(M.a)(tn,[{key:"render",value:function(){return l.createElement(Da,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),tn}(l.Component),va=Ra;function ga(mt,Cr,tn){var Yr=mt.picker,Xn=mt.locale,hn=mt.selectedValue,Xr=mt.disabledDate,ni=mt.disabled,nn=mt.generateConfig,Wn=et(hn,0),si=et(hn,1);function ui(_i){var ia=nn.getYear(_i),Fi=nn.locale.getWeek(Xn.locale,_i);return ia*100+Fi}function ai(_i){var ia=nn.getYear(_i),Fi=nn.getMonth(_i);return ia*100+Fi}function Ei(_i){var ia=nn.getYear(_i),Fi=nr(nn,_i);return ia*10+Fi}var gi=l.useCallback(function(_i){if(Xr&&Xr(_i))return!0;if(ni[1]&&si)return!Ar(nn,_i,si)&&nn.isAfter(_i,si);if(Cr&&si)switch(Yr){case"quarter":return Ei(_i)>Ei(si);case"month":return ai(_i)>ai(si);case"week":return ui(_i)>ui(si);default:return!Ar(nn,_i,si)&&nn.isAfter(_i,si)}return!1},[Xr,ni[1],si,Cr]),Ti=l.useCallback(function(_i){if(Xr&&Xr(_i))return!0;if(ni[0]&&Wn)return!Ar(nn,_i,si)&&nn.isAfter(Wn,_i);if(tn&&Wn)switch(Yr){case"quarter":return Ei(_i)<Ei(Wn);case"month":return ai(_i)<ai(Wn);case"week":return ui(_i)<ui(Wn);default:return!Ar(nn,_i,Wn)&&nn.isAfter(Wn,_i)}return!1},[Xr,ni[0],Wn,tn]);return[gi,Ti]}function _a(mt,Cr,tn,Yr){var Xn=Mn(mt,tn,Yr,1);function hn(Xr){return Xr(mt,Cr)?"same":Xr(Xn,Cr)?"closing":"far"}switch(tn){case"year":return hn(function(Xr,ni){return hr(Yr,Xr,ni)});case"quarter":case"month":return hn(function(Xr,ni){return gt(Yr,Xr,ni)});default:return hn(function(Xr,ni){return cn(Yr,Xr,ni)})}}function ya(mt,Cr,tn,Yr){var Xn=et(mt,0),hn=et(mt,1);if(Cr===0)return Xn;if(Xn&&hn){var Xr=_a(Xn,hn,tn,Yr);switch(Xr){case"same":return Xn;case"closing":return Xn;default:return Mn(hn,tn,Yr,-1)}}return Xn}function Ga(mt){var Cr=mt.values,tn=mt.picker,Yr=mt.defaultDates,Xn=mt.generateConfig,hn=l.useState(function(){return[et(Yr,0),et(Yr,1)]}),Xr=Object(U.a)(hn,2),ni=Xr[0],nn=Xr[1],Wn=l.useState(null),si=Object(U.a)(Wn,2),ui=si[0],ai=si[1],Ei=et(Cr,0),gi=et(Cr,1);function Ti(ia){return ni[ia]?ni[ia]:et(ui,ia)||ya(Cr,ia,tn,Xn)||Ei||gi||Xn.getNow()}function _i(ia,Fi){if(ia){var fa=wt(ui,ia,Fi);nn(wt(ni,null,Fi)||[null,null]);var za=(Fi+1)%2;et(Cr,za)||(fa=wt(fa,ia,za)),ai(fa)}else(Ei||gi)&&ai(null)}return[Ti,_i]}function Ia(mt,Cr){return mt&&mt[0]&&mt[1]&&Cr.isAfter(mt[0],mt[1])?[mt[1],mt[0]]:mt}function Wa(mt,Cr,tn,Yr){return mt||Yr&&Yr[Cr]?!0:!!tn[(Cr+1)%2]}function no(mt){var Cr,tn,Yr,Xn=mt.prefixCls,hn=Xn===void 0?"rc-picker":Xn,Xr=mt.id,ni=mt.style,nn=mt.className,Wn=mt.popupStyle,si=mt.dropdownClassName,ui=mt.transitionName,ai=mt.dropdownAlign,Ei=mt.getPopupContainer,gi=mt.generateConfig,Ti=mt.locale,_i=mt.placeholder,ia=mt.autoFocus,Fi=mt.disabled,fa=mt.format,za=mt.picker,Ca=za===void 0?"date":za,xa=mt.showTime,Ma=mt.use12Hours,Pa=mt.separator,Wo=Pa===void 0?"~":Pa,Oo=mt.value,pa=mt.defaultValue,Sa=mt.defaultPickerValue,Ea=mt.open,Ka=mt.defaultOpen,so=mt.disabledDate,lo=mt.disabledTime,wo=mt.dateRender,No=mt.panelRender,cs=mt.ranges,hs=mt.allowEmpty,Bs=mt.allowClear,rs=mt.suffixIcon,ns=mt.clearIcon,co=mt.pickerRef,oo=mt.inputReadOnly,eo=mt.mode,ss=mt.renderExtraFooter,xs=mt.onChange,Po=mt.onOpenChange,el=mt.onPanelChange,zo=mt.onCalendarChange,Jo=mt.onFocus,ks=mt.onBlur,as=mt.onOk,fs=mt.components,Sn=mt.order,Ls=mt.direction,yl=mt.activePickerIndex,Ks=mt.autoComplete,Ws=Ks===void 0?"off":Ks,ps=Ca==="date"&&!!xa||Ca==="time",Ms=Object(l.useRef)({}),Zs=Object(l.useRef)(null),zs=Object(l.useRef)(null),Es=Object(l.useRef)(null),Ds=Object(l.useRef)(null),tl=Object(l.useRef)(null),Us=Object(l.useRef)(null),Go=Object(l.useRef)(null),Do=Fe(rt(fa,Ca,xa,Ma)),Ts=Object(V.a)(0,{value:yl}),Ns=Object(U.a)(Ts,2),Ao=Ns[0],jt=Ns[1],sr=Object(l.useRef)(null),_n=l.useMemo(function(){return Array.isArray(Fi)?Fi:[Fi||!1,Fi||!1]},[Fi]),hi=Object(V.a)(null,{value:Oo,defaultValue:pa,postState:function(H){return Ca==="time"&&!Sn?H:Ia(H,gi)}}),Nt=Object(U.a)(hi,2),ce=Nt[0],Ee=Nt[1],Le=Ga({values:ce,picker:Ca,defaultDates:Sa,generateConfig:gi}),Qe=Object(U.a)(Le,2),Rt=Qe[0],lr=Qe[1],Qr=Object(V.a)(ce,{postState:function(H){var J=H;if(_n[0]&&_n[1])return J;for(var ne=0;ne<2;ne+=1)_n[ne]&&!et(J,ne)&&!et(hs,ne)&&(J=wt(J,gi.getNow(),ne));return J}}),pn=Object(U.a)(Qr,2),In=pn[0],li=pn[1],bi=Object(V.a)([Ca,Ca],{value:eo}),Ai=Object(U.a)(bi,2),Yi=Ai[0],ua=Ai[1];Object(l.useEffect)(function(){ua([Ca,Ca])},[Ca]);var Va=function(H,J){ua(H),el&&el(J,H)},ro=ga({picker:Ca,selectedValue:In,locale:Ti,disabled:_n,disabledDate:so,generateConfig:gi},Ms.current[1],Ms.current[0]),So=Object(U.a)(ro,2),Ro=So[0],jo=So[1],Cs=Object(V.a)(!1,{value:Ea,defaultValue:Ka,postState:function(H){return _n[Ao]?!1:H},onChange:function(H){Po&&Po(H),!H&&sr.current&&sr.current.onClose&&sr.current.onClose()}}),vs=Object(U.a)(Cs,2),os=vs[0],Fo=vs[1],yo=os&&Ao===0,As=os&&Ao===1,$s=Object(l.useState)(0),ys=Object(U.a)($s,2),Fa=ys[0],ml=ys[1];Object(l.useEffect)(function(){!os&&Zs.current&&ml(Zs.current.offsetWidth)},[os]);var cl=l.useRef();function Ps(K,H){if(K)clearTimeout(cl.current),Ms.current[H]=!0,jt(H),Fo(K),os||lr(null,H);else if(Ao===H){Fo(K);var J=Ms.current;cl.current=setTimeout(function(){J===Ms.current&&(Ms.current={})})}}function ws(K){Ps(!0,K),setTimeout(function(){var H=[Us,Go][K];H.current&&H.current.focus()},0)}function Ys(K,H){var J=K,ne=et(J,0),we=et(J,1);ne&&we&&gi.isAfter(ne,we)&&(Ca==="week"&&!qt(gi,Ti.locale,ne,we)||Ca==="quarter"&&!mr(gi,ne,we)||Ca!=="week"&&Ca!=="quarter"&&Ca!=="time"&&!Ar(gi,ne,we)?(H===0?(J=[ne,null],we=null):(ne=null,J=[null,we]),Ms.current=Object(z.a)({},H,!0)):(Ca!=="time"||Sn!==!1)&&(J=Ia(J,gi))),li(J);var _e=J&&J[0]?gi.locale.format(Ti.locale,J[0],Do[0]):"",Xe=J&&J[1]?gi.locale.format(Ti.locale,J[1],Do[0]):"";if(zo){var ut={range:H===0?"start":"end"};zo(J,[_e,Xe],ut)}var ht=Wa(ne,0,_n,hs),Qt=Wa(we,1,_n,hs),Tr=J===null||ht&&Qt;Tr&&(Ee(J),xs&&(!ar(gi,et(ce,0),ne)||!ar(gi,et(ce,1),we))&&xs(J,[_e,Xe]));var br=null;H===0&&!_n[1]?br=1:H===1&&!_n[0]&&(br=0),br!==null&&br!==Ao&&(!Ms.current[br]||!et(J,br))&&et(J,H)?ws(br):Ps(!1,H)}var Vl=function(H){return os&&sr.current&&sr.current.onKeyDown?sr.current.onKeyDown(H):(Object(S.a)(!1,"Picker not correct forward KeyDown operation. Please help to fire issue about this."),!1)},Nl={formatList:Do,generateConfig:gi,locale:Ti},hl=Oa(et(In,0),Nl),Os=Object(U.a)(hl,2),Vs=Os[0],_l=Os[1],ol=Oa(et(In,1),Nl),Ho=Object(U.a)(ol,2),vo=Ho[0],$o=Ho[1],ms=function(H,J){var ne=gi.locale.parse(Ti.locale,H,Do),we=J===0?Ro:jo;ne&&!we(ne)&&(li(wt(In,ne,J)),lr(ne,J))},_s=Hi({valueTexts:Vs,onTextChange:function(H){return ms(H,0)}}),qo=Object(U.a)(_s,3),Is=qo[0],Rs=qo[1],nl=qo[2],Il=Hi({valueTexts:vo,onTextChange:function(H){return ms(H,1)}}),Tl=Object(U.a)(Il,3),Ul=Tl[0],Dl=Tl[1],Rl=Tl[2],Hl=Object(l.useState)(null),sl=Object(U.a)(Hl,2),Gs=sl[0],ll=sl[1],Xs=Object(l.useState)(null),bl=Object(U.a)(Xs,2),kl=bl[0],Yl=bl[1],Zl=ra(Is,{formatList:Do,generateConfig:gi,locale:Ti}),wl=Object(U.a)(Zl,3),Gl=wl[0],tu=wl[1],Iu=wl[2],bu=ra(Ul,{formatList:Do,generateConfig:gi,locale:Ti}),du=Object(U.a)(bu,3),hu=du[0],nu=du[1],Sl=du[2],Ml=function(H){Yl(wt(In,H,Ao)),Ao===0?tu(H):nu(H)},Ll=function(){Yl(wt(In,null,Ao)),Ao===0?Iu():Sl()},$l=function(H,J){return{blurToCancel:ps,forwardKeyDown:Vl,onBlur:ks,isClickOutside:function(we){return!ye([zs.current,Es.current,Ds.current],we)},onFocus:function(we){jt(H),Jo&&Jo(we)},triggerOpen:function(we){Ps(we,H)},onSubmit:function(){Ys(In,H),J()},onCancel:function(){Ps(!1,H),li(ce),J()}}},Pl=Ki(Object(W.a)(Object(W.a)({},$l(0,nl)),{},{open:yo,value:Is})),fu=Object(U.a)(Pl,2),xl=fu[0],El=fu[1],pu=El.focused,mu=El.typing,Lu=Ki(Object(W.a)(Object(W.a)({},$l(1,Rl)),{},{open:As,value:Ul})),Kl=Object(U.a)(Lu,2),ql=Kl[0],iu=Kl[1],au=iu.focused,Ql=iu.typing,Ru=function(H){!os&&!Us.current.contains(H.target)&&!Go.current.contains(H.target)&&(_n[0]?_n[1]||ws(1):ws(0))},Nu=function(H){os&&(pu||au)&&!Us.current.contains(H.target)&&!Go.current.contains(H.target)&&H.preventDefault()},Jl=ce&&ce[0]?gi.locale.format(Ti.locale,ce[0],"YYYYMMDDHHmmss"):"",gu=ce&&ce[1]?gi.locale.format(Ti.locale,ce[1],"YYYYMMDDHHmmss"):"";Object(l.useEffect)(function(){os||(li(ce),!Vs.length||Vs[0]===""?Rs(""):_l!==Is&&nl(),!vo.length||vo[0]===""?Dl(""):$o!==Ul&&Rl())},[os,Vs,vo]),Object(l.useEffect)(function(){li(ce)},[Jl,gu]),co&&(co.current={focus:function(){Us.current&&Us.current.focus()},blur:function(){Us.current&&Us.current.blur(),Go.current&&Go.current.blur()}});var wu=Object.keys(cs||{}),vu=wu.map(function(K){var H=cs[K],J=typeof H=="function"?H():H;return{label:K,onClick:function(){Ys(J,null),Ps(!1,Ao)},onMouseEnter:function(){ll(J)},onMouseLeave:function(){ll(null)}}});function ul(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=null;os&&kl&&kl[0]&&kl[1]&&gi.isAfter(kl[1],kl[0])&&(J=kl);var ne=xa;if(xa&&Object(Q.a)(xa)==="object"&&xa.defaultValue){var we=xa.defaultValue;ne=Object(W.a)(Object(W.a)({},xa),{},{defaultValue:et(we,Ao)||void 0})}var _e=null;return wo&&(_e=function(ut,ht){return wo(ut,ht,{range:Ao?"end":"start"})}),l.createElement(ci.Provider,{value:{inRange:!0,panelPosition:K,rangedValue:Gs||In,hoverRangedValue:J}},l.createElement(rn,Object.assign({},mt,H,{dateRender:_e,showTime:ne,mode:Yi[Ao],generateConfig:gi,style:void 0,direction:Ls,disabledDate:Ao===0?Ro:jo,disabledTime:function(ut){return lo?lo(ut,Ao===0?"start":"end"):!1},className:O()(Object(z.a)({},"".concat(hn,"-panel-focused"),Ao===0?!mu:!Ql)),value:et(In,Ao),locale:Ti,tabIndex:-1,onPanelChange:function(ut,ht){Va(wt(Yi,ht,Ao),wt(In,ut,Ao));var Qt=ut;K==="right"&&Yi[Ao]===ht&&(Qt=Mn(Qt,ht,gi,-1)),lr(Qt,Ao)},onOk:null,onSelect:void 0,onChange:void 0,defaultValue:void 0,defaultPickerValue:void 0})))}var Ol=0,ru=0;Ao&&Es.current&&tl.current&&zs.current&&(Ol=Es.current.offsetWidth+tl.current.offsetWidth,zs.current.offsetWidth&&Ol>zs.current.offsetWidth&&(ru=Ol));var Du=Ls==="rtl"?{right:Ol}:{left:Ol};function Su(){var K,H=Mr(hn,Yi[Ao],ss),J=Rn({prefixCls:hn,components:fs,needConfirmButton:ps,okDisabled:!et(In,Ao)||so&&so(In[Ao]),locale:Ti,rangeList:vu,onOk:function(){et(In,Ao)&&(Ys(In,Ao),as&&as(In))}});if(Ca!=="time"&&!xa){var ne=Rt(Ao),we=Mn(ne,Ca,gi),_e=Yi[Ao],Xe=_e===Ca,ut=ul(Xe?"left":!1,{pickerValue:ne,onPickerValueChange:function(br){lr(br,Ao)}}),ht=ul("right",{pickerValue:we,onPickerValueChange:function(br){lr(Mn(br,Ca,gi,-1),Ao)}});Ls==="rtl"?K=l.createElement(l.Fragment,null,ht,Xe&&ut):K=l.createElement(l.Fragment,null,ut,Xe&&ht)}else K=ul();var Qt=l.createElement(l.Fragment,null,l.createElement("div",{className:"".concat(hn,"-panels")},K),(H||J)&&l.createElement("div",{className:"".concat(hn,"-footer")},H,J));return No&&(Qt=No(Qt)),l.createElement("div",{className:"".concat(hn,"-panel-container"),style:{marginLeft:ru},ref:zs,onMouseDown:function(br){br.preventDefault()}},Qt)}var cu=l.createElement("div",{className:O()("".concat(hn,"-range-wrapper"),"".concat(hn,"-").concat(Ca,"-range-wrapper")),style:{minWidth:Fa}},l.createElement("div",{className:"".concat(hn,"-range-arrow"),style:Du}),Su()),ou;rs&&(ou=l.createElement("span",{className:"".concat(hn,"-suffix")},rs));var su;Bs&&(et(ce,0)&&!_n[0]||et(ce,1)&&!_n[1])&&(su=l.createElement("span",{onMouseDown:function(H){H.preventDefault(),H.stopPropagation()},onMouseUp:function(H){H.preventDefault(),H.stopPropagation();var J=ce;_n[0]||(J=wt(J,null,0)),_n[1]||(J=wt(J,null,1)),Ys(J,null),Ps(!1,Ao)},className:"".concat(hn,"-clear")},ns||l.createElement("span",{className:"".concat(hn,"-clear-btn")})));var xu={size:ge(Ca,Do[0])},Au=0,ve=0;Es.current&&Ds.current&&tl.current&&(Ao===0?ve=Es.current.offsetWidth:(Au=Ol,ve=Ds.current.offsetWidth));var q=Ls==="rtl"?{right:Au}:{left:Au},L=function(H,J){var ne=wt(In,H,Ao);J==="submit"||J!=="key"&&!ps?(Ys(ne,Ao),Ao===0?Iu():Sl()):li(ne)};return l.createElement($.Provider,{value:{operationRef:sr,hideHeader:Ca==="time",onDateMouseEnter:Ml,onDateMouseLeave:Ll,hideRanges:!0,onSelect:L,open:os}},l.createElement(Pi,{visible:os,popupElement:cu,popupStyle:Wn,prefixCls:hn,dropdownClassName:si,dropdownAlign:ai,getPopupContainer:Ei,transitionName:ui,range:!0,direction:Ls},l.createElement("div",Object.assign({ref:Zs,className:O()(hn,"".concat(hn,"-range"),nn,(Cr={},Object(z.a)(Cr,"".concat(hn,"-disabled"),_n[0]&&_n[1]),Object(z.a)(Cr,"".concat(hn,"-focused"),Ao===0?pu:au),Object(z.a)(Cr,"".concat(hn,"-rtl"),Ls==="rtl"),Cr)),style:ni,onClick:Ru,onMouseDown:Nu},ft(mt)),l.createElement("div",{className:O()("".concat(hn,"-input"),(tn={},Object(z.a)(tn,"".concat(hn,"-input-active"),Ao===0),Object(z.a)(tn,"".concat(hn,"-input-placeholder"),!!Gl),tn)),ref:Es},l.createElement("input",Object.assign({id:Xr,disabled:_n[0],readOnly:oo||!mu,value:Gl||Is,onChange:function(H){Rs(H.target.value)},autoFocus:ia,placeholder:et(_i,0)||"",ref:Us},xl,xu,{autoComplete:Ws}))),l.createElement("div",{className:"".concat(hn,"-range-separator"),ref:tl},Wo),l.createElement("div",{className:O()("".concat(hn,"-input"),(Yr={},Object(z.a)(Yr,"".concat(hn,"-input-active"),Ao===1),Object(z.a)(Yr,"".concat(hn,"-input-placeholder"),!!hu),Yr)),ref:Ds},l.createElement("input",Object.assign({disabled:_n[1],readOnly:oo||!Ql,value:hu||Ul,onChange:function(H){Dl(H.target.value)},placeholder:et(_i,1)||"",ref:Go},ql,xu,{autoComplete:Ws}))),l.createElement("div",{className:"".concat(hn,"-active-bar"),style:Object(W.a)(Object(W.a)({},q),{},{width:ve,position:"absolute"})}),ou,su)))}var io=function(mt){Object(X.a)(tn,mt);var Cr=Object(P.a)(tn);function tn(){var Yr;return Object(B.a)(this,tn),Yr=Cr.apply(this,arguments),Yr.pickerRef=l.createRef(),Yr.focus=function(){Yr.pickerRef.current&&Yr.pickerRef.current.focus()},Yr.blur=function(){Yr.pickerRef.current&&Yr.pickerRef.current.blur()},Yr}return Object(M.a)(tn,[{key:"render",value:function(){return l.createElement(no,Object.assign({},this.props,{pickerRef:this.pickerRef}))}}]),tn}(l.Component),uo=io,$i=va,mo=i("61s2");function Eo(mt,Cr,tn){return tn!==void 0?tn:mt==="year"&&Cr.lang.yearPlaceholder?Cr.lang.yearPlaceholder:mt==="quarter"&&Cr.lang.quarterPlaceholder?Cr.lang.quarterPlaceholder:mt==="month"&&Cr.lang.monthPlaceholder?Cr.lang.monthPlaceholder:mt==="week"&&Cr.lang.weekPlaceholder?Cr.lang.weekPlaceholder:mt==="time"&&Cr.timePickerLocale.placeholder?Cr.timePickerLocale.placeholder:Cr.lang.placeholder}function ao(mt,Cr,tn){return tn!==void 0?tn:mt==="year"&&Cr.lang.yearPlaceholder?Cr.lang.rangeYearPlaceholder:mt==="month"&&Cr.lang.monthPlaceholder?Cr.lang.rangeMonthPlaceholder:mt==="week"&&Cr.lang.weekPlaceholder?Cr.lang.rangeWeekPlaceholder:mt==="time"&&Cr.timePickerLocale.placeholder?Cr.timePickerLocale.rangePlaceholder:Cr.lang.rangePlaceholder}var Co=i("uaoM"),Ko=i("H84U"),to=i("YMnH"),Qo=i("3Nzz"),bo=function(mt,Cr){var tn={};for(var Yr in mt)Object.prototype.hasOwnProperty.call(mt,Yr)&&Cr.indexOf(Yr)<0&&(tn[Yr]=mt[Yr]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xn=0,Yr=Object.getOwnPropertySymbols(mt);Xn<Yr.length;Xn++)Cr.indexOf(Yr[Xn])<0&&Object.prototype.propertyIsEnumerable.call(mt,Yr[Xn])&&(tn[Yr[Xn]]=mt[Yr[Xn]]);return tn};function xo(mt){function Cr(nn,Wn){var si=function(ui){b()(Ei,ui);var ai=x()(Ei);function Ei(gi){var Ti;return c()(this,Ei),Ti=ai.call(this,gi),Ti.pickerRef=l.createRef(),Ti.focus=function(){Ti.pickerRef.current&&Ti.pickerRef.current.focus()},Ti.blur=function(){Ti.pickerRef.current&&Ti.pickerRef.current.blur()},Ti.getDefaultLocale=function(){var _i=Ti.props.locale,ia=d()(d()({},mo.a),_i);return ia.lang=d()(d()({},ia.lang),(_i||{}).lang),ia},Ti.renderPicker=function(_i){var ia=Ti.context,Fi=ia.getPrefixCls,fa=ia.direction,za=ia.getPopupContainer,Ca=Ti.props,xa=Ca.prefixCls,Ma=Ca.getPopupContainer,Pa=Ca.className,Wo=Ca.size,Oo=Ca.bordered,pa=Oo===void 0?!0:Oo,Sa=Ca.placeholder,Ea=bo(Ca,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),Ka=Ti.props,so=Ka.format,lo=Ka.showTime,wo=Fi("picker",xa),No={showToday:!0},cs={};nn&&(cs.picker=nn);var hs=nn||Ti.props.picker;return cs=d()(d()(d()({},cs),lo?Zo(d()({format:so,picker:hs},lo)):{}),hs==="time"?Zo(d()(d()({format:so},Ti.props),{picker:hs})):{}),l.createElement(Qo.b.Consumer,null,function(Bs){var rs,ns=Wo||Bs;return l.createElement($i,d()({ref:Ti.pickerRef,placeholder:Eo(hs,_i,Sa),suffixIcon:hs==="time"?l.createElement(_.a,null):l.createElement(C.a,null),clearIcon:l.createElement(R.a,null),allowClear:!0,transitionName:"slide-up"},No,Ea,cs,{locale:_i.lang,className:O()(Pa,(rs={},r()(rs,"".concat(wo,"-").concat(ns),ns),r()(rs,"".concat(wo,"-borderless"),!pa),rs)),prefixCls:wo,getPopupContainer:Ma||za,generateConfig:mt,prevIcon:l.createElement("span",{className:"".concat(wo,"-prev-icon")}),nextIcon:l.createElement("span",{className:"".concat(wo,"-next-icon")}),superPrevIcon:l.createElement("span",{className:"".concat(wo,"-super-prev-icon")}),superNextIcon:l.createElement("span",{className:"".concat(wo,"-super-next-icon")}),components:is,direction:fa}))})},Object(Co.a)(nn!=="quarter",Wn,"DatePicker.".concat(Wn," is legacy usage. Please use DatePicker[picker='").concat(nn,"'] directly.")),Ti}return g()(Ei,[{key:"render",value:function(){return l.createElement(to.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),Ei}(l.Component);return si.contextType=Ko.b,Wn&&(si.displayName=Wn),si}var tn=Cr(),Yr=Cr("week","WeekPicker"),Xn=Cr("month","MonthPicker"),hn=Cr("year","YearPicker"),Xr=Cr("time","TimePicker"),ni=Cr("quarter","QuarterPicker");return{DatePicker:tn,WeekPicker:Yr,MonthPicker:Xn,YearPicker:hn,TimePicker:Xr,QuarterPicker:ni}}var ts=i("8ISB"),ka=i.n(ts),Io=function(mt,Cr){var tn={};for(var Yr in mt)Object.prototype.hasOwnProperty.call(mt,Yr)&&Cr.indexOf(Yr)<0&&(tn[Yr]=mt[Yr]);if(mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Xn=0,Yr=Object.getOwnPropertySymbols(mt);Xn<Yr.length;Xn++)Cr.indexOf(Yr[Xn])<0&&Object.prototype.propertyIsEnumerable.call(mt,Yr[Xn])&&(tn[Yr[Xn]]=mt[Yr[Xn]]);return tn};function Mo(mt){var Cr=function(tn){b()(Xn,tn);var Yr=x()(Xn);function Xn(){var hn;return c()(this,Xn),hn=Yr.apply(this,arguments),hn.pickerRef=l.createRef(),hn.focus=function(){hn.pickerRef.current&&hn.pickerRef.current.focus()},hn.blur=function(){hn.pickerRef.current&&hn.pickerRef.current.blur()},hn.getDefaultLocale=function(){var Xr=hn.props.locale,ni=d()(d()({},mo.a),Xr);return ni.lang=d()(d()({},ni.lang),(Xr||{}).lang),ni},hn.renderPicker=function(Xr){var ni=hn.context,nn=ni.getPrefixCls,Wn=ni.direction,si=ni.getPopupContainer,ui=hn.props,ai=ui.prefixCls,Ei=ui.getPopupContainer,gi=ui.className,Ti=ui.size,_i=ui.bordered,ia=_i===void 0?!0:_i,Fi=ui.placeholder,fa=Io(ui,["prefixCls","getPopupContainer","className","size","bordered","placeholder"]),za=hn.props,Ca=za.format,xa=za.showTime,Ma=za.picker,Pa=nn("picker",ai),Wo={};return Wo=d()(d()(d()({},Wo),xa?Zo(d()({format:Ca,picker:Ma},xa)):{}),Ma==="time"?Zo(d()(d()({format:Ca},hn.props),{picker:Ma})):{}),l.createElement(Qo.b.Consumer,null,function(Oo){var pa,Sa=Ti||Oo;return l.createElement(uo,d()({separator:l.createElement("span",{"aria-label":"to",className:"".concat(Pa,"-separator")},l.createElement(ka.a,null)),ref:hn.pickerRef,placeholder:ao(Ma,Xr,Fi),suffixIcon:Ma==="time"?l.createElement(_.a,null):l.createElement(C.a,null),clearIcon:l.createElement(R.a,null),allowClear:!0,transitionName:"slide-up"},fa,Wo,{className:O()(gi,(pa={},r()(pa,"".concat(Pa,"-").concat(Sa),Sa),r()(pa,"".concat(Pa,"-borderless"),!ia),pa)),locale:Xr.lang,prefixCls:Pa,getPopupContainer:Ei||si,generateConfig:mt,prevIcon:l.createElement("span",{className:"".concat(Pa,"-prev-icon")}),nextIcon:l.createElement("span",{className:"".concat(Pa,"-next-icon")}),superPrevIcon:l.createElement("span",{className:"".concat(Pa,"-super-prev-icon")}),superNextIcon:l.createElement("span",{className:"".concat(Pa,"-super-next-icon")}),components:is,direction:Wn}))})},hn}return g()(Xn,[{key:"render",value:function(){return l.createElement(to.a,{componentName:"DatePicker",defaultLocale:this.getDefaultLocale},this.renderPicker)}}]),Xn}(l.Component);return Cr.contextType=Ko.b,Cr}var is={button:t,rangeItem:e};function To(mt){return mt?Array.isArray(mt)?mt:[mt]:[]}function Zo(mt){var Cr=mt.format,tn=mt.picker,Yr=mt.showHour,Xn=mt.showMinute,hn=mt.showSecond,Xr=mt.use12Hours,ni=To(Cr)[0],nn=d()({},mt);return ni&&(!ni.includes("s")&&hn===void 0&&(nn.showSecond=!1),!ni.includes("m")&&Xn===void 0&&(nn.showMinute=!1),!ni.includes("H")&&!ni.includes("h")&&Yr===void 0&&(nn.showHour=!1),(ni.includes("a")||ni.includes("A"))&&Xr===void 0&&(nn.use12Hours=!0)),tn==="time"?nn:{showTime:nn}}function Vo(mt){var Cr=xo(mt),tn=Cr.DatePicker,Yr=Cr.WeekPicker,Xn=Cr.MonthPicker,hn=Cr.YearPicker,Xr=Cr.TimePicker,ni=Cr.QuarterPicker,nn=Mo(mt),Wn=tn;return Wn.WeekPicker=Yr,Wn.MonthPicker=Xn,Wn.YearPicker=hn,Wn.RangePicker=nn,Wn.TimePicker=Xr,Wn.QuarterPicker=ni,Wn}var Lo=Vo,ho=Lo(m),ja=D.a=ho},"+lIL":function(k,D,i){var y=i("ProS");i("/ry/"),i("3OrL");var p=i("L5E0"),S=i("7Phj");y.registerVisual(p),y.registerLayout(S)},"+nKL":function(k,D,i){"use strict";var y=i("wx14"),p=i("VTBJ"),S=i("U8pU"),A=i("ODXe"),m=i("rePB"),f=i("Ff2n"),d=i("q1tI"),l=i("i8i4"),o=i("TSYQ"),n=i.n(o),t=i("t23M"),a=d.forwardRef(function(rt,ge){var Z=rt.height,Y=rt.offsetY,ee=rt.offsetX,fe=rt.children,be=rt.prefixCls,Ce=rt.onInnerResize,Te=rt.innerProps,he=rt.rtl,ye=rt.extra,Ie={},tt={display:"flex",flexDirection:"column"};if(Y!==void 0){var pt;Ie={height:Z,position:"relative",overflow:"hidden"},tt=Object(p.a)(Object(p.a)({},tt),{},(pt={transform:"translateY(".concat(Y,"px)")},Object(m.a)(pt,he?"marginRight":"marginLeft",-ee),Object(m.a)(pt,"position","absolute"),Object(m.a)(pt,"left",0),Object(m.a)(pt,"right",0),Object(m.a)(pt,"top",0),pt))}return d.createElement("div",{style:Ie},d.createElement(t.a,{onResize:function(Fe){var ft=Fe.offsetHeight;ft&&Ce&&Ce()}},d.createElement("div",Object(y.a)({style:tt,className:n()(Object(m.a)({},"".concat(be,"-holder-inner"),be)),ref:ge},Te),fe,ye)))});a.displayName="Filler";var e=a,u=i("wgJM");function r(rt,ge){var Z="touches"in rt?rt.touches[0]:rt;return Z[ge?"pageX":"pageY"]}var s=d.forwardRef(function(rt,ge){var Z,Y=rt.prefixCls,ee=rt.rtl,fe=rt.scrollOffset,be=rt.scrollRange,Ce=rt.onStartMove,Te=rt.onStopMove,he=rt.onScroll,ye=rt.horizontal,Ie=rt.spinSize,tt=rt.containerSize,pt=rt.style,st=rt.thumbStyle,Fe=d.useState(!1),ft=Object(A.a)(Fe,2),et=ft[0],wt=ft[1],Ht=d.useState(null),Dt=Object(A.a)(Ht,2),Tt=Dt[0],Bt=Dt[1],Ke=d.useState(null),de=Object(A.a)(Ke,2),oe=de[0],lt=de[1],qe=!ee,pe=d.useRef(),Kt=d.useRef(),hr=d.useState(!1),gt=Object(A.a)(hr,2),nr=gt[0],mr=gt[1],cn=d.useRef(),Ar=function(){clearTimeout(cn.current),mr(!0),cn.current=setTimeout(function(){mr(!1)},3e3)},xr=be-tt||0,qt=tt-Ie||0,ar=xr>0,Et=d.useMemo(function(){if(fe===0||xr===0)return 0;var Ot=fe/xr;return Ot*qt},[fe,xr,qt]),en=function(ke){ke.stopPropagation(),ke.preventDefault()},Mn=d.useRef({top:Et,dragging:et,pageY:Tt,startTop:oe});Mn.current={top:Et,dragging:et,pageY:Tt,startTop:oe};var Yn=function(ke){wt(!0),Bt(r(ke,ye)),lt(Mn.current.top),Ce(),ke.stopPropagation(),ke.preventDefault()};d.useEffect(function(){var Ot=function(at){at.preventDefault()},ke=pe.current,Me=Kt.current;return ke.addEventListener("touchstart",Ot),Me.addEventListener("touchstart",Yn),function(){ke.removeEventListener("touchstart",Ot),Me.removeEventListener("touchstart",Yn)}},[]);var ci=d.useRef();ci.current=xr;var Vi=d.useRef();Vi.current=qt,d.useEffect(function(){if(et){var Ot,ke=function(at){var At=Mn.current,Ct=At.dragging,Yt=At.pageY,Pr=At.startTop;if(u.a.cancel(Ot),Ct){var qr=r(at,ye)-Yt,An=Pr;!qe&&ye?An-=qr:An+=qr;var Gt=ci.current,vt=Vi.current,bt=vt?An/vt:0,fr=Math.ceil(bt*Gt);fr=Math.max(fr,0),fr=Math.min(fr,Gt),Ot=Object(u.a)(function(){he(fr,ye)})}},Me=function(){wt(!1),Te()};return window.addEventListener("mousemove",ke),window.addEventListener("touchmove",ke),window.addEventListener("mouseup",Me),window.addEventListener("touchend",Me),function(){window.removeEventListener("mousemove",ke),window.removeEventListener("touchmove",ke),window.removeEventListener("mouseup",Me),window.removeEventListener("touchend",Me),u.a.cancel(Ot)}}},[et]),d.useEffect(function(){Ar()},[fe]),d.useImperativeHandle(ge,function(){return{delayHidden:Ar}});var jn="".concat(Y,"-scrollbar"),Qn={position:"absolute",visibility:nr&&ar?null:"hidden"},$t={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return ye?(Qn.height=8,Qn.left=0,Qn.right=0,Qn.bottom=0,$t.height="100%",$t.width=Ie,qe?$t.left=Et:$t.right=Et):(Qn.width=8,Qn.top=0,Qn.bottom=0,qe?Qn.right=0:Qn.left=0,$t.width="100%",$t.height=Ie,$t.top=Et),d.createElement("div",{ref:pe,className:n()(jn,(Z={},Object(m.a)(Z,"".concat(jn,"-horizontal"),ye),Object(m.a)(Z,"".concat(jn,"-vertical"),!ye),Object(m.a)(Z,"".concat(jn,"-visible"),nr),Z)),style:Object(p.a)(Object(p.a)({},Qn),pt),onMouseDown:en,onMouseMove:Ar},d.createElement("div",{ref:Kt,className:n()("".concat(jn,"-thumb"),Object(m.a)({},"".concat(jn,"-thumb-moving"),et)),style:Object(p.a)(Object(p.a)({},$t),st),onMouseDown:Yn}))}),c=s;function h(rt){var ge=rt.children,Z=rt.setRef,Y=d.useCallback(function(ee){Z(ee)},[]);return d.cloneElement(ge,{ref:Y})}function g(rt,ge,Z,Y,ee,fe,be){var Ce=be.getKey;return rt.slice(ge,Z+1).map(function(Te,he){var ye=ge+he,Ie=fe(Te,ye,{style:{width:Y}}),tt=Ce(Te);return d.createElement(h,{key:tt,setRef:function(st){return ee(Te,st)}},Ie)})}var v=i("m+aA"),b=i("1OyB"),w=i("vuIU"),x=function(){function rt(){Object(b.a)(this,rt),this.maps=void 0,this.id=0,this.maps=Object.create(null)}return Object(w.a)(rt,[{key:"set",value:function(Z,Y){this.maps[Z]=Y,this.id+=1}},{key:"get",value:function(Z){return this.maps[Z]}}]),rt}(),T=x;function O(rt,ge,Z){var Y=d.useState(0),ee=Object(A.a)(Y,2),fe=ee[0],be=ee[1],Ce=Object(d.useRef)(new Map),Te=Object(d.useRef)(new T),he=Object(d.useRef)();function ye(){u.a.cancel(he.current)}function Ie(){var pt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ye();var st=function(){Ce.current.forEach(function(ft,et){if(ft&&ft.offsetParent){var wt=Object(v.a)(ft),Ht=wt.offsetHeight;Te.current.get(et)!==Ht&&Te.current.set(et,wt.offsetHeight)}}),be(function(ft){return ft+1})};pt?st():he.current=Object(u.a)(st)}function tt(pt,st){var Fe=rt(pt),ft=Ce.current.get(Fe);st?(Ce.current.set(Fe,st),Ie()):Ce.current.delete(Fe),!ft!==!st&&(st?ge==null||ge(pt):Z==null||Z(pt))}return Object(d.useEffect)(function(){return ye},[]),[tt,Ie,Te.current,fe]}var E=i("TNol"),C=i("mBDr"),I=i("6cGi"),_=i("c+Xe"),F=i("ub+h"),R=i("bG1m"),B=i("Kwbf"),M=10;function X(rt,ge,Z,Y,ee,fe,be,Ce){var Te=d.useRef(),he=d.useState(null),ye=Object(A.a)(he,2),Ie=ye[0],tt=ye[1];return Object(E.a)(function(){if(Ie&&Ie.times<M){if(!rt.current){tt(function(Ar){return Object(p.a)({},Ar)});return}fe();var pt=Ie.targetAlign,st=Ie.originAlign,Fe=Ie.index,ft=Ie.offset,et=rt.current.clientHeight,wt=!1,Ht=pt,Dt=null;if(et){for(var Tt=pt||st,Bt=0,Ke=0,de=0,oe=Math.min(ge.length-1,Fe),lt=0;lt<=oe;lt+=1){var qe=ee(ge[lt]);Ke=Bt;var pe=Z.get(qe);de=Ke+(pe===void 0?Y:pe),Bt=de}for(var Kt=Tt==="top"?ft:et-ft,hr=oe;hr>=0;hr-=1){var gt=ee(ge[hr]),nr=Z.get(gt);if(nr===void 0){wt=!0;break}if(Kt-=nr,Kt<=0)break}switch(Tt){case"top":Dt=Ke-ft;break;case"bottom":Dt=de-et+ft;break;default:{var mr=rt.current.scrollTop,cn=mr+et;Ke<mr?Ht="top":de>cn&&(Ht="bottom")}}Dt!==null&&be(Dt),Dt!==Ie.lastTop&&(wt=!0)}wt&&tt(Object(p.a)(Object(p.a)({},Ie),{},{times:Ie.times+1,targetAlign:Ht,lastTop:Dt}))}},[Ie,rt.current]),function(pt){if(pt==null){Ce();return}if(u.a.cancel(Te.current),typeof pt=="number")be(pt);else if(pt&&Object(S.a)(pt)==="object"){var st,Fe=pt.align;"index"in pt?st=pt.index:st=ge.findIndex(function(wt){return ee(wt)===pt.key});var ft=pt.offset,et=ft===void 0?0:ft;tt({times:0,index:st,offset:et,originAlign:Fe})}}}function P(rt,ge,Z,Y){var ee=Z-rt,fe=ge-Z,be=Math.min(ee,fe)*2;if(Y<=be){var Ce=Math.floor(Y/2);return Y%2?Z+Ce+1:Z-Ce}return ee>fe?Z-(Y-fe):Z+(Y-ee)}function z(rt,ge,Z){var Y=rt.length,ee=ge.length,fe,be;if(Y===0&&ee===0)return null;Y<ee?(fe=rt,be=ge):(fe=ge,be=rt);var Ce={__EMPTY_ITEM__:!0};function Te(st){return st!==void 0?Z(st):Ce}for(var he=null,ye=Math.abs(Y-ee)!==1,Ie=0;Ie<be.length;Ie+=1){var tt=Te(fe[Ie]),pt=Te(be[Ie]);if(tt!==pt){he=Ie,ye=ye||tt!==Te(be[Ie+1]);break}}return he===null?null:{index:he,multiple:ye}}function W(rt,ge,Z){var Y=d.useState(rt),ee=Object(A.a)(Y,2),fe=ee[0],be=ee[1],Ce=d.useState(null),Te=Object(A.a)(Ce,2),he=Te[0],ye=Te[1];return d.useEffect(function(){var Ie=z(fe||[],rt||[],ge);(Ie==null?void 0:Ie.index)!==void 0&&(Z==null||Z(Ie.index),ye(rt[Ie.index])),be(rt)},[rt]),[he]}var U=(typeof navigator=="undefined"?"undefined":Object(S.a)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),V=U,Q=function(rt,ge){var Z=Object(d.useRef)(!1),Y=Object(d.useRef)(null);function ee(){clearTimeout(Y.current),Z.current=!0,Y.current=setTimeout(function(){Z.current=!1},50)}var fe=Object(d.useRef)({top:rt,bottom:ge});return fe.current.top=rt,fe.current.bottom=ge,function(be){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Te=be<0&&fe.current.top||be>0&&fe.current.bottom;return Ce&&Te?(clearTimeout(Y.current),Z.current=!1):(!Te||Z.current)&&ee(),!Z.current&&Te}};function G(rt,ge,Z,Y,ee){var fe=Object(d.useRef)(0),be=Object(d.useRef)(null),Ce=Object(d.useRef)(null),Te=Object(d.useRef)(!1),he=Q(ge,Z);function ye(ft,et){if(u.a.cancel(be.current),fe.current+=et,Ce.current=et,he(et))return;V||ft.preventDefault(),be.current=Object(u.a)(function(){var wt=Te.current?10:1;ee(fe.current*wt),fe.current=0})}function Ie(ft,et){ee(et,!0),V||ft.preventDefault()}var tt=Object(d.useRef)(null),pt=Object(d.useRef)(null);function st(ft){if(!rt)return;u.a.cancel(pt.current),pt.current=Object(u.a)(function(){tt.current=null},2);var et=ft.deltaX,wt=ft.deltaY,Ht=ft.shiftKey,Dt=et,Tt=wt;(tt.current==="sx"||!tt.current&&(Ht||!1)&&wt&&!et)&&(Dt=wt,Tt=0,tt.current="sx");var Bt=Math.abs(Dt),Ke=Math.abs(Tt);tt.current===null&&(tt.current=Y&&Bt>Ke?"x":"y"),tt.current==="y"?ye(ft,Tt):Ie(ft,Dt)}function Fe(ft){if(!rt)return;Te.current=ft.detail===Ce.current}return[st,Fe]}var te=14/15;function $(rt,ge,Z){var Y=Object(d.useRef)(!1),ee=Object(d.useRef)(0),fe=Object(d.useRef)(null),be=Object(d.useRef)(null),Ce,Te=function(tt){if(Y.current){var pt=Math.ceil(tt.touches[0].pageY),st=ee.current-pt;ee.current=pt,Z(st)&&tt.preventDefault(),clearInterval(be.current),be.current=setInterval(function(){st*=te,(!Z(st,!0)||Math.abs(st)<=.1)&&clearInterval(be.current)},16)}},he=function(){Y.current=!1,Ce()},ye=function(tt){Ce(),tt.touches.length===1&&!Y.current&&(Y.current=!0,ee.current=Math.ceil(tt.touches[0].pageY),fe.current=tt.target,fe.current.addEventListener("touchmove",Te),fe.current.addEventListener("touchend",he))};Ce=function(){fe.current&&(fe.current.removeEventListener("touchmove",Te),fe.current.removeEventListener("touchend",he))},Object(E.a)(function(){return rt&&ge.current.addEventListener("touchstart",ye),function(){var Ie;(Ie=ge.current)===null||Ie===void 0||Ie.removeEventListener("touchstart",ye),Ce(),clearInterval(be.current)}},[rt])}var le=20;function re(){var rt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,Z=rt/ge*100;return isNaN(Z)&&(Z=0),Z=Math.max(Z,le),Z=Math.min(Z,rt/2),Math.floor(Z)}function Se(rt,ge,Z,Y){var ee=d.useMemo(function(){return[new Map,[]]},[rt,Z.id,Y]),fe=Object(A.a)(ee,2),be=fe[0],Ce=fe[1],Te=function(ye){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ye,tt=be.get(ye),pt=be.get(Ie);if(tt===void 0||pt===void 0)for(var st=rt.length,Fe=Ce.length;Fe<st;Fe+=1){var ft,et=rt[Fe],wt=ge(et);be.set(wt,Fe);var Ht=(ft=Z.get(wt))!==null&&ft!==void 0?ft:Y;if(Ce[Fe]=(Ce[Fe-1]||0)+Ht,wt===ye&&(tt=Fe),wt===Ie&&(pt=Fe),tt!==void 0&&pt!==void 0)break}return{top:Ce[tt-1]||0,bottom:Ce[pt]}};return Te}var Re=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles"],Pe=[],Je={overflowY:"auto",overflowAnchor:"none"};function Ve(rt,ge){var Z=rt.prefixCls,Y=Z===void 0?"rc-virtual-list":Z,ee=rt.className,fe=rt.height,be=rt.itemHeight,Ce=rt.fullHeight,Te=Ce===void 0?!0:Ce,he=rt.style,ye=rt.data,Ie=rt.children,tt=rt.itemKey,pt=rt.virtual,st=rt.direction,Fe=rt.scrollWidth,ft=rt.component,et=ft===void 0?"div":ft,wt=rt.onScroll,Ht=rt.onVirtualScroll,Dt=rt.onVisibleChange,Tt=rt.innerProps,Bt=rt.extraRender,Ke=rt.styles,de=Object(f.a)(rt,Re),oe=!!(pt!==!1&&fe&&be),lt=oe&&ye&&(be*ye.length>fe||!!Fe),qe=st==="rtl",pe=n()(Y,Object(m.a)({},"".concat(Y,"-rtl"),qe),ee),Kt=ye||Pe,hr=Object(d.useRef)(),gt=Object(d.useRef)(),nr=Object(d.useState)(0),mr=Object(A.a)(nr,2),cn=mr[0],Ar=mr[1],xr=Object(d.useState)(0),qt=Object(A.a)(xr,2),ar=qt[0],Et=qt[1],en=Object(d.useState)(!1),Mn=Object(A.a)(en,2),Yn=Mn[0],ci=Mn[1],Vi=function(){ci(!0)},jn=function(){ci(!1)},Qn=d.useCallback(function(ei){return typeof tt=="function"?tt(ei):ei==null?void 0:ei[tt]},[tt]),$t={getKey:Qn};function Ot(ei){Ar(function(fi){var Mi;typeof ei=="function"?Mi=ei(fi):Mi=ei;var $r=Ci(Mi);return hr.current.scrollTop=$r,$r})}var ke=Object(d.useRef)({start:0,end:Kt.length}),Me=Object(d.useRef)(),Be=W(Kt,Qn),at=Object(A.a)(Be,1),At=at[0];Me.current=At;var Ct=O(Qn,null,null),Yt=Object(A.a)(Ct,4),Pr=Yt[0],qr=Yt[1],An=Yt[2],Gt=Yt[3],vt=d.useMemo(function(){if(!oe)return{scrollHeight:void 0,start:0,end:Kt.length-1,offset:void 0};if(!lt){var ei;return{scrollHeight:((ei=gt.current)===null||ei===void 0?void 0:ei.offsetHeight)||0,start:0,end:Kt.length-1,offset:void 0}}for(var fi=0,Mi,$r,En,Hn=Kt.length,zt=0;zt<Hn;zt+=1){var _t=Kt[zt],Ft=Qn(_t),Wt=An.get(Ft),Vt=fi+(Wt===void 0?be:Wt);Vt>=cn&&Mi===void 0&&(Mi=zt,$r=fi),Vt>cn+fe&&En===void 0&&(En=zt),fi=Vt}return Mi===void 0&&(Mi=0,$r=0,En=Math.ceil(fe/be)),En===void 0&&(En=Kt.length-1),En=Math.min(En+1,Kt.length-1),{scrollHeight:fi,start:Mi,end:En,offset:$r}},[lt,oe,cn,Kt,Gt,fe]),bt=vt.scrollHeight,fr=vt.start,Jt=vt.end,Ut=vt.offset;ke.current.start=fr,ke.current.end=Jt;var er=d.useState({width:0,height:fe}),Mt=Object(A.a)(er,2),Zt=Mt[0],Hr=Mt[1],Ir=function(fi){Hr({width:fi.width||fi.offsetWidth,height:fi.height||fi.offsetHeight})},Lr=Object(d.useRef)(),dn=Object(d.useRef)(),gn=d.useMemo(function(){return re(Zt.width,Fe)},[Zt.width,Fe]),ri=d.useMemo(function(){return re(Zt.height,bt)},[Zt.height,bt]),Zn=bt-fe,pi=Object(d.useRef)(Zn);pi.current=Zn;function Ci(ei){var fi=ei;return Number.isNaN(pi.current)||(fi=Math.min(fi,pi.current)),fi=Math.max(fi,0),fi}var Ni=cn<=0,zi=cn>=Zn,it=Q(Ni,zi),Ne=function(){return{x:qe?-ar:ar,y:cn}},He=Object(d.useRef)(Ne()),Ge=Object(C.a)(function(){if(Ht){var ei=Ne();(He.current.x!==ei.x||He.current.y!==ei.y)&&(Ht(ei),He.current=ei)}});function nt(ei,fi){var Mi=ei;fi?(Object(l.flushSync)(function(){Et(Mi)}),Ge()):Ot(Mi)}function $e(ei){var fi=ei.currentTarget.scrollTop;fi!==cn&&Ot(fi),wt==null||wt(ei),Ge()}var ot=function(fi){var Mi=fi,$r=Fe-Zt.width;return Mi=Math.max(Mi,0),Mi=Math.min(Mi,$r),Mi},Pt=Object(C.a)(function(ei,fi){fi?(Object(l.flushSync)(function(){Et(function(Mi){var $r=Mi+(qe?-ei:ei);return ot($r)})}),Ge()):Ot(function(Mi){var $r=Mi+ei;return $r})}),xt=G(oe,Ni,zi,!!Fe,Pt),rr=Object(A.a)(xt,2),Fr=rr[0],Vr=rr[1];$(oe,hr,function(ei,fi){return it(ei,fi)?!1:(Fr({preventDefault:function(){},deltaY:ei}),!0)}),Object(E.a)(function(){function ei(Mi){oe&&Mi.preventDefault()}var fi=hr.current;return fi.addEventListener("wheel",Fr),fi.addEventListener("DOMMouseScroll",Vr),fi.addEventListener("MozMousePixelScroll",ei),function(){fi.removeEventListener("wheel",Fr),fi.removeEventListener("DOMMouseScroll",Vr),fi.removeEventListener("MozMousePixelScroll",ei)}},[oe]),Object(E.a)(function(){Fe&&Et(function(ei){return ot(ei)})},[Zt.width,Fe]);var fn=function(){var fi,Mi;(fi=Lr.current)===null||fi===void 0||fi.delayHidden(),(Mi=dn.current)===null||Mi===void 0||Mi.delayHidden()},gr=X(hr,Kt,An,be,Qn,function(){return qr(!0)},Ot,fn);d.useImperativeHandle(ge,function(){return{getScrollInfo:Ne,scrollTo:function(fi){function Mi($r){return $r&&Object(S.a)($r)==="object"&&("left"in $r||"top"in $r)}Mi(fi)?(fi.left!==void 0&&Et(ot(fi.left)),gr(fi.top)):gr(fi)}}}),Object(E.a)(function(){if(Dt){var ei=Kt.slice(fr,Jt+1);Dt(ei,Kt)}},[fr,Jt,Kt]);var Gn=Se(Kt,Qn,An,be),Mr=Bt==null?void 0:Bt({start:fr,end:Jt,virtual:lt,offsetX:ar,offsetY:Ut,rtl:qe,getSize:Gn}),Rn=g(Kt,fr,Jt,Fe,Pr,Ie,$t),bn=null;fe&&(bn=Object(p.a)(Object(m.a)({},Te?"height":"maxHeight",fe),Je),oe&&(bn.overflowY="hidden",Fe&&(bn.overflowX="hidden"),Yn&&(bn.pointerEvents="none")));var rn={};return qe&&(rn.dir="rtl"),d.createElement("div",Object(y.a)({style:Object(p.a)(Object(p.a)({},he),{},{position:"relative"}),className:pe},rn,de),d.createElement(t.a,{onResize:Ir},d.createElement(et,{className:"".concat(Y,"-holder"),style:bn,ref:hr,onScroll:$e,onMouseEnter:fn},d.createElement(e,{prefixCls:Y,height:bt,offsetX:ar,offsetY:Ut,scrollWidth:Fe,onInnerResize:qr,ref:gt,innerProps:Tt,rtl:qe,extra:Mr},Rn))),lt&&bt>fe&&d.createElement(c,{ref:Lr,prefixCls:Y,scrollOffset:cn,scrollRange:bt,rtl:qe,onScroll:nt,onStartMove:Vi,onStopMove:jn,spinSize:ri,containerSize:Zt.height,style:Ke==null?void 0:Ke.verticalScrollBar,thumbStyle:Ke==null?void 0:Ke.verticalScrollBarThumb}),lt&&Fe&&d.createElement(c,{ref:dn,prefixCls:Y,scrollOffset:ar,scrollRange:Fe,rtl:qe,onScroll:nt,onStartMove:Vi,onStopMove:jn,spinSize:gn,containerSize:Zt.width,horizontal:!0,style:Ke==null?void 0:Ke.horizontalScrollBar,thumbStyle:Ke==null?void 0:Ke.horizontalScrollBarThumb}))}var ct=d.forwardRef(Ve);ct.displayName="List";var Ue=ct,ue=D.a=Ue},"+rIm":function(k,D,i){var y=i("bYtY"),p=y.retrieve,S=y.defaults,A=y.extend,m=y.each,f=i("7aKB"),d=i("IwbS"),l=i("Qxkt"),o=i("OELB"),n=o.isRadianAroundZero,t=o.remRadian,a=i("oVpE"),e=a.createSymbol,u=i("Fofx"),r=i("QBsz"),s=r.applyTransform,c=i("aX7z"),h=c.shouldShowAllLabels,g=Math.PI,v=function(P,z){this.opt=z,this.axisModel=P,S(z,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new d.Group;var W=new d.Group({position:z.position.slice(),rotation:z.rotation});W.updateTransform(),this._transform=W.transform,this._dumbGroup=W};v.prototype={constructor:v,hasBuilder:function(P){return!!b[P]},add:function(P){b[P].call(this)},getGroup:function(){return this.group}};var b={axisLine:function(){var P=this.opt,z=this.axisModel;if(!z.get("axisLine.show"))return;var W=this.axisModel.axis.getExtent(),U=this._transform,V=[W[0],0],Q=[W[1],0];U&&(s(V,V,U),s(Q,Q,U));var G=A({lineCap:"round"},z.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:P.strokeContainThreshold||5,silent:!0,z2:1}));var te=z.get("axisLine.symbol"),$=z.get("axisLine.symbolSize"),le=z.get("axisLine.symbolOffset")||0;if(typeof le=="number"&&(le=[le,le]),te!=null){typeof te=="string"&&(te=[te,te]),(typeof $=="string"||typeof $=="number")&&($=[$,$]);var re=$[0],Se=$[1];m([{rotate:P.rotation+Math.PI/2,offset:le[0],r:0},{rotate:P.rotation-Math.PI/2,offset:le[1],r:Math.sqrt((V[0]-Q[0])*(V[0]-Q[0])+(V[1]-Q[1])*(V[1]-Q[1]))}],function(Re,Pe){if(te[Pe]!=="none"&&te[Pe]!=null){var Je=e(te[Pe],-re/2,-Se/2,re,Se,G.stroke,!0),Ve=Re.r+Re.offset,ct=[V[0]+Ve*Math.cos(P.rotation),V[1]-Ve*Math.sin(P.rotation)];Je.attr({rotation:Re.rotate,position:ct,silent:!0,z2:11}),this.group.add(Je)}},this)}},axisTickLabel:function(){var P=this.axisModel,z=this.opt,W=R(this,P,z),U=M(this,P,z);E(P,U,W),B(this,P,z)},axisName:function(){var P=this.opt,z=this.axisModel,W=p(P.axisName,z.get("name"));if(!W)return;var U=z.get("nameLocation"),V=P.nameDirection,Q=z.getModel("nameTextStyle"),G=z.get("nameGap")||0,te=this.axisModel.axis.getExtent(),$=te[0]>te[1]?-1:1,le=[U==="start"?te[0]-$*G:U==="end"?te[1]+$*G:(te[0]+te[1])/2,_(U)?P.labelOffset+V*G:0],re,Se=z.get("nameRotate");Se!=null&&(Se=Se*g/180);var Re;_(U)?re=x(P.rotation,Se!=null?Se:P.rotation,V):(re=T(P,U,Se||0,te),Re=P.axisNameAvailableWidth,Re!=null&&(Re=Math.abs(Re/Math.sin(re.rotation)),!isFinite(Re)&&(Re=null)));var Pe=Q.getFont(),Je=z.get("nameTruncate",!0)||{},Ve=Je.ellipsis,ct=p(P.nameTruncateMaxWidth,Je.maxWidth,Re),Ue=Ve!=null&&ct!=null?f.truncateText(W,ct,Pe,Ve,{minChar:2,placeholder:Je.placeholder}):W,ue=z.get("tooltip",!0),rt=z.mainType,ge={componentType:rt,name:W,$vars:["name"]};ge[rt+"Index"]=z.componentIndex;var Z=new d.Text({anid:"name",__fullText:W,__truncatedText:Ue,position:le,rotation:re.rotation,silent:O(z),z2:1,tooltip:ue&&ue.show?A({content:W,formatter:function(){return W},formatterParams:ge},ue):null});d.setTextStyle(Z.style,Q,{text:Ue,textFont:Pe,textFill:Q.getTextColor()||z.get("axisLine.lineStyle.color"),textAlign:Q.get("align")||re.textAlign,textVerticalAlign:Q.get("verticalAlign")||re.textVerticalAlign}),z.get("triggerEvent")&&(Z.eventData=w(z),Z.eventData.targetType="axisName",Z.eventData.name=W),this._dumbGroup.add(Z),Z.updateTransform(),this.group.add(Z),Z.decomposeTransform()}},w=v.makeAxisEventDataBase=function(P){var z={componentType:P.mainType,componentIndex:P.componentIndex};return z[P.mainType+"Index"]=P.componentIndex,z},x=v.innerTextLayout=function(P,z,W){var U=t(z-P),V,Q;return n(U)?(Q=W>0?"top":"bottom",V="center"):n(U-g)?(Q=W>0?"bottom":"top",V="center"):(Q="middle",U>0&&U<g?V=W>0?"right":"left":V=W>0?"left":"right"),{rotation:U,textAlign:V,textVerticalAlign:Q}};function T(P,z,W,U){var V=t(W-P.rotation),Q,G,te=U[0]>U[1],$=z==="start"&&!te||z!=="start"&&te;return n(V-g/2)?(G=$?"bottom":"top",Q="center"):n(V-g*1.5)?(G=$?"top":"bottom",Q="center"):(G="middle",V<g*1.5&&V>g/2?Q=$?"left":"right":Q=$?"right":"left"),{rotation:V,textAlign:Q,textVerticalAlign:G}}var O=v.isLabelSilent=function(P){var z=P.get("tooltip");return P.get("silent")||!(P.get("triggerEvent")||z&&z.show)};function E(P,z,W){if(h(P.axis))return;var U=P.get("axisLabel.showMinLabel"),V=P.get("axisLabel.showMaxLabel");z=z||[],W=W||[];var Q=z[0],G=z[1],te=z[z.length-1],$=z[z.length-2],le=W[0],re=W[1],Se=W[W.length-1],Re=W[W.length-2];U===!1?(C(Q),C(le)):I(Q,G)&&(U?(C(G),C(re)):(C(Q),C(le))),V===!1?(C(te),C(Se)):I($,te)&&(V?(C($),C(Re)):(C(te),C(Se)))}function C(P){P&&(P.ignore=!0)}function I(P,z,W){var U=P&&P.getBoundingRect().clone(),V=z&&z.getBoundingRect().clone();if(!U||!V)return;var Q=u.identity([]);return u.rotate(Q,Q,-P.rotation),U.applyTransform(u.mul([],Q,P.getLocalTransform())),V.applyTransform(u.mul([],Q,z.getLocalTransform())),U.intersect(V)}function _(P){return P==="middle"||P==="center"}function F(P,z,W,U,V){for(var Q=[],G=[],te=[],$=0;$<P.length;$++){var le=P[$].coord;G[0]=le,G[1]=0,te[0]=le,te[1]=W,z&&(s(G,G,z),s(te,te,z));var re=new d.Line({anid:V+"_"+P[$].tickValue,subPixelOptimize:!0,shape:{x1:G[0],y1:G[1],x2:te[0],y2:te[1]},style:U,z2:2,silent:!0});Q.push(re)}return Q}function R(P,z,W){var U=z.axis,V=z.getModel("axisTick");if(!V.get("show")||U.scale.isBlank())return;for(var Q=V.getModel("lineStyle"),G=W.tickDirection*V.get("length"),te=U.getTicksCoords(),$=F(te,P._transform,G,S(Q.getLineStyle(),{stroke:z.get("axisLine.lineStyle.color")}),"ticks"),le=0;le<$.length;le++)P.group.add($[le]);return $}function B(P,z,W){var U=z.axis,V=z.getModel("minorTick");if(!V.get("show")||U.scale.isBlank())return;var Q=U.getMinorTicksCoords();if(!Q.length)return;for(var G=V.getModel("lineStyle"),te=W.tickDirection*V.get("length"),$=S(G.getLineStyle(),S(z.getModel("axisTick").getLineStyle(),{stroke:z.get("axisLine.lineStyle.color")})),le=0;le<Q.length;le++)for(var re=F(Q[le],P._transform,te,$,"minorticks_"+le),Se=0;Se<re.length;Se++)P.group.add(re[Se])}function M(P,z,W){var U=z.axis,V=p(W.axisLabelShow,z.get("axisLabel.show"));if(!V||U.scale.isBlank())return;var Q=z.getModel("axisLabel"),G=Q.get("margin"),te=U.getViewLabels(),$=(p(W.labelRotate,Q.get("rotate"))||0)*g/180,le=x(W.rotation,$,W.labelDirection),re=z.getCategories&&z.getCategories(!0),Se=[],Re=O(z),Pe=z.get("triggerEvent");return m(te,function(Je,Ve){var ct=Je.tickValue,Ue=Je.formattedLabel,ue=Je.rawLabel,rt=Q;re&&re[ct]&&re[ct].textStyle&&(rt=new l(re[ct].textStyle,Q,z.ecModel));var ge=rt.getTextColor()||z.get("axisLine.lineStyle.color"),Z=U.dataToCoord(ct),Y=[Z,W.labelOffset+W.labelDirection*G],ee=new d.Text({anid:"label_"+ct,position:Y,rotation:le.rotation,silent:Re,z2:10});d.setTextStyle(ee.style,rt,{text:Ue,textAlign:rt.getShallow("align",!0)||le.textAlign,textVerticalAlign:rt.getShallow("verticalAlign",!0)||rt.getShallow("baseline",!0)||le.textVerticalAlign,textFill:typeof ge=="function"?ge(U.type==="category"?ue:U.type==="value"?ct+"":ct,Ve):ge}),Pe&&(ee.eventData=w(z),ee.eventData.targetType="axisLabel",ee.eventData.value=ue),P._dumbGroup.add(ee),ee.updateTransform(),Se.push(ee),P.group.add(ee),ee.decomposeTransform()}),Se}var X=v;k.exports=X},"+wW9":function(k,D,i){var y=i("bYtY"),p=y.each,S=y.isArray,A=y.isObject,m=i("JuEJ"),f=i("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 o(u,r,s,c){r=r.split(",");for(var h=u,g,v=0;v<r.length-1;v++)g=r[v],h[g]==null&&(h[g]={}),h=h[g];(c||h[r[v]]==null)&&(h[r[v]]=s)}function n(u){p(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"]],a=["grid","geo","parallel","legend","toolbox","title","visualMap","dataZoom","timeline"];function e(u,r){m(u,r),u.series=d(u.series),p(u.series,function(s){if(!A(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&&o(s,"itemStyle.color",h)}n(s)}),u.dataRange&&(u.visualMap=u.dataRange),p(a,function(s){var c=u[s];c&&(S(c)||(c=[c]),p(c,function(h){n(h)}))})}k.exports=e},"/IIm":function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),A=i("H6uX"),m=i("IwbS"),f=i("pP6R"),d=i("gPAo"),l=S.curry,o=S.each,n=S.map,t=Math.min,a=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]},g={w:"ew",e:"ew",n:"ns",s:"ns",ne:"nesw",sw:"nesw",nw:"nwse",se:"nwse"},v={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 w(he){A.call(this),this._zr=he,this.group=new m.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={},o(Y,function(ye,Ie){this._handlers[Ie]=S.bind(ye,this)},this)}w.prototype={constructor:w,enableBrush:function(he){return this._brushType&&T(this),he.brushType&&x(this,he),this},setPanels:function(he){if(he&&he.length){var ye=this._panels={};S.each(he,function(Ie){ye[Ie.panelId]=S.clone(Ie)})}else this._panels=null;return this},mount:function(he){he=he||{},this._enableGlobalPan=he.enableGlobalPan;var ye=this.group;return this._zr.add(ye),ye.attr({position:he.position||[0,0],rotation:he.rotation||0,scale:he.scale||[1,1]}),this._transform=ye.getLocalTransform(),this},eachCover:function(he,ye){o(this._covers,he,ye)},updateCovers:function(he){he=S.map(he,function(Ht){return S.merge(S.clone(v),Ht,!0)});var ye="\0-brush-index-",Ie=this._covers,tt=this._covers=[],pt=this,st=this._creatingCover;return new d(Ie,he,ft,Fe).add(et).update(et).remove(wt).execute(),this;function Fe(Ht,Dt){return(Ht.id!=null?Ht.id:ye+Dt)+"-"+Ht.brushType}function ft(Ht,Dt){return Fe(Ht.__brushOption,Dt)}function et(Ht,Dt){var Tt=he[Ht];if(Dt!=null&&Ie[Dt]===st)tt[Ht]=Ie[Dt];else{var Bt=tt[Ht]=Dt!=null?(Ie[Dt].__brushOption=Tt,Ie[Dt]):I(pt,C(pt,Tt));R(pt,Bt)}}function wt(Ht){Ie[Ht]!==st&&pt.group.remove(Ie[Ht])}},unmount:function(){return this.enableBrush(!1),P(this),this._zr.remove(this.group),this},dispose:function(){this.unmount(),this.off()}},S.mixin(w,A);function x(he,ye){var Ie=he._zr;he._enableGlobalPan||f.take(Ie,c,he._uid),O(Ie,he._handlers),he._brushType=ye.brushType,he._brushOption=S.merge(S.clone(v),ye,!0)}function T(he){var ye=he._zr;f.release(ye,c,he._uid),E(ye,he._handlers),he._brushType=he._brushOption=null}function O(he,ye){o(ye,function(Ie,tt){he.on(tt,Ie)})}function E(he,ye){o(ye,function(Ie,tt){he.off(tt,Ie)})}function C(he,ye){var Ie=be[ye.brushType].createCover(he,ye);return Ie.__brushOption=ye,F(Ie,ye),he.group.add(Ie),Ie}function I(he,ye){var Ie=B(ye);return Ie.endCreating&&(Ie.endCreating(he,ye),F(ye,ye.__brushOption)),ye}function _(he,ye){var Ie=ye.__brushOption;B(ye).updateCoverShape(he,ye,Ie.range,Ie)}function F(he,ye){var Ie=ye.z;Ie==null&&(Ie=u),he.traverse(function(tt){tt.z=Ie,tt.z2=Ie})}function R(he,ye){B(ye).updateCommon(he,ye),_(he,ye)}function B(he){return be[he.__brushOption.brushType]}function M(he,ye,Ie){var tt=he._panels;if(!tt)return!0;var pt,st=he._transform;return o(tt,function(Fe){Fe.isTargetByCursor(ye,Ie,st)&&(pt=Fe)}),pt}function X(he,ye){var Ie=he._panels;if(!Ie)return!0;var tt=ye.__brushOption.panelId;return tt!=null?Ie[tt]:!0}function P(he){var ye=he._covers,Ie=ye.length;return o(ye,function(tt){he.group.remove(tt)},he),ye.length=0,!!Ie}function z(he,ye){var Ie=n(he._covers,function(tt){var pt=tt.__brushOption,st=S.clone(pt.range);return{brushType:pt.brushType,panelId:pt.panelId,range:st}});he.trigger("brush",Ie,{isEnd:!!ye.isEnd,removeOnClick:!!ye.removeOnClick})}function W(he){var ye=he._track;if(!ye.length)return!1;var Ie=ye[ye.length-1],tt=ye[0],pt=Ie[0]-tt[0],st=Ie[1]-tt[1],Fe=e(pt*pt+st*st,.5);return Fe>r}function U(he){var ye=he.length-1;return ye<0&&(ye=0),[he[0],he[ye]]}function V(he,ye,Ie,tt){var pt=new m.Group;return pt.add(new m.Rect({name:"main",style:$(Ie),silent:!0,draggable:!0,cursor:"move",drift:l(he,ye,pt,"nswe"),ondragend:l(z,ye,{isEnd:!0})})),o(tt,function(st){pt.add(new m.Rect({name:st,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:l(he,ye,pt,st),ondragend:l(z,ye,{isEnd:!0})}))}),pt}function Q(he,ye,Ie,tt){var pt=tt.brushStyle.lineWidth||0,st=a(pt,s),Fe=Ie[0][0],ft=Ie[1][0],et=Fe-pt/2,wt=ft-pt/2,Ht=Ie[0][1],Dt=Ie[1][1],Tt=Ht-st+pt/2,Bt=Dt-st+pt/2,Ke=Ht-Fe,de=Dt-ft,oe=Ke+pt,lt=de+pt;te(he,ye,"main",Fe,ft,Ke,de),tt.transformable&&(te(he,ye,"w",et,wt,st,lt),te(he,ye,"e",Tt,wt,st,lt),te(he,ye,"n",et,wt,oe,st),te(he,ye,"s",et,Bt,oe,st),te(he,ye,"nw",et,wt,st,st),te(he,ye,"ne",Tt,wt,st,st),te(he,ye,"sw",et,Bt,st,st),te(he,ye,"se",Tt,Bt,st,st))}function G(he,ye){var Ie=ye.__brushOption,tt=Ie.transformable,pt=ye.childAt(0);pt.useStyle($(Ie)),pt.attr({silent:!tt,cursor:tt?"move":"default"}),o(["w","e","n","s","se","sw","ne","nw"],function(st){var Fe=ye.childOfName(st),ft=Se(he,st);Fe&&Fe.attr({silent:!tt,invisible:!tt,cursor:tt?g[ft]+"-resize":null})})}function te(he,ye,Ie,tt,pt,st,Fe){var ft=ye.childOfName(Ie);ft&&ft.setShape(ct(Ve(he,ye,[[tt,pt],[tt+st,pt+Fe]])))}function $(he){return S.defaults({strokeNoScale:!0},he.brushStyle)}function le(he,ye,Ie,tt){var pt=[t(he,Ie),t(ye,tt)],st=[a(he,Ie),a(ye,tt)];return[[pt[0],st[0]],[pt[1],st[1]]]}function re(he){return m.getTransform(he.group)}function Se(he,ye){if(ye.length>1){ye=ye.split("");var Ie=[Se(he,ye[0]),Se(he,ye[1])];return(Ie[0]==="e"||Ie[0]==="w")&&Ie.reverse(),Ie.join("")}else{var tt={w:"left",e:"right",n:"top",s:"bottom"},pt={left:"w",right:"e",top:"n",bottom:"s"},Ie=m.transformDirection(tt[ye],re(he));return pt[Ie]}}function Re(he,ye,Ie,tt,pt,st,Fe,ft){var et=tt.__brushOption,wt=he(et.range),Ht=Je(Ie,st,Fe);o(pt.split(""),function(Dt){var Tt=h[Dt];wt[Tt[0]][Tt[1]]+=Ht[Tt[0]]}),et.range=ye(le(wt[0][0],wt[1][0],wt[0][1],wt[1][1])),R(Ie,tt),z(Ie,{isEnd:!1})}function Pe(he,ye,Ie,tt,pt){var st=ye.__brushOption.range,Fe=Je(he,Ie,tt);o(st,function(ft){ft[0]+=Fe[0],ft[1]+=Fe[1]}),R(he,ye),z(he,{isEnd:!1})}function Je(he,ye,Ie){var tt=he.group,pt=tt.transformCoordToLocal(ye,Ie),st=tt.transformCoordToLocal(0,0);return[pt[0]-st[0],pt[1]-st[1]]}function Ve(he,ye,Ie){var tt=X(he,ye);return tt&&tt!==!0?tt.clipPath(Ie,he._transform):S.clone(Ie)}function ct(he){var ye=t(he[0][0],he[1][0]),Ie=t(he[0][1],he[1][1]),tt=a(he[0][0],he[1][0]),pt=a(he[0][1],he[1][1]);return{x:ye,y:Ie,width:tt-ye,height:pt-Ie}}function Ue(he,ye,Ie){if(!he._brushType||fe(he,ye))return;var tt=he._zr,pt=he._covers,st=M(he,ye,Ie);if(!he._dragging)for(var Fe=0;Fe<pt.length;Fe++){var ft=pt[Fe].__brushOption;if(st&&(st===!0||ft.panelId===st.panelId)&&be[ft.brushType].contain(pt[Fe],Ie[0],Ie[1]))return}st&&tt.setCursorStyle("crosshair")}function ue(he){var ye=he.event;ye.preventDefault&&ye.preventDefault()}function rt(he,ye,Ie){return he.childOfName("main").contain(ye,Ie)}function ge(he,ye,Ie,tt){var pt=he._creatingCover,st=he._creatingPanel,Fe=he._brushOption,ft;if(he._track.push(Ie.slice()),W(he)||pt){if(st&&!pt){Fe.brushMode==="single"&&P(he);var et=S.clone(Fe);et.brushType=Z(et.brushType,st),et.panelId=st===!0?null:st.panelId,pt=he._creatingCover=C(he,et),he._covers.push(pt)}if(pt){var wt=be[Z(he._brushType,st)],Ht=pt.__brushOption;Ht.range=wt.getCreatingRange(Ve(he,pt,he._track)),tt&&(I(he,pt),wt.updateCommon(he,pt)),_(he,pt),ft={isEnd:tt}}}else tt&&Fe.brushMode==="single"&&Fe.removeOnClick&&(M(he,ye,Ie)&&P(he)&&(ft={isEnd:tt,removeOnClick:!0}));return ft}function Z(he,ye){return he==="auto"?ye.defaultBrushType:he}var Y={mousedown:function(he){if(this._dragging)ee(this,he);else if(!he.target||!he.target.draggable){ue(he);var ye=this.group.transformCoordToLocal(he.offsetX,he.offsetY);this._creatingCover=null;var Ie=this._creatingPanel=M(this,he,ye);Ie&&(this._dragging=!0,this._track=[ye.slice()])}},mousemove:function(he){var ye=he.offsetX,Ie=he.offsetY,tt=this.group.transformCoordToLocal(ye,Ie);if(Ue(this,he,tt),this._dragging){ue(he);var pt=ge(this,he,tt,!1);pt&&z(this,pt)}},mouseup:function(he){ee(this,he)}};function ee(he,ye){if(he._dragging){ue(ye);var Ie=ye.offsetX,tt=ye.offsetY,pt=he.group.transformCoordToLocal(Ie,tt),st=ge(he,ye,pt,!0);he._dragging=!1,he._track=[],he._creatingCover=null,st&&z(he,st)}}function fe(he,ye,Ie){var tt=he._zr;return ye<0||ye>tt.getWidth()||Ie<0||Ie>tt.getHeight()}var be={lineX:Ce(0),lineY:Ce(1),rect:{createCover:function(he,ye){return V(l(Re,function(Ie){return Ie},function(Ie){return Ie}),he,ye,["w","e","n","s","se","sw","ne","nw"])},getCreatingRange:function(he){var ye=U(he);return le(ye[1][0],ye[1][1],ye[0][0],ye[0][1])},updateCoverShape:function(he,ye,Ie,tt){Q(he,ye,Ie,tt)},updateCommon:G,contain:rt},polygon:{createCover:function(he,ye){var Ie=new m.Group;return Ie.add(new m.Polyline({name:"main",style:$(ye),silent:!0})),Ie},getCreatingRange:function(he){return he},endCreating:function(he,ye){ye.remove(ye.childAt(0)),ye.add(new m.Polygon({name:"main",draggable:!0,drift:l(Pe,he,ye),ondragend:l(z,he,{isEnd:!0})}))},updateCoverShape:function(he,ye,Ie,tt){ye.childAt(0).setShape({points:Ve(he,ye,Ie)})},updateCommon:G,contain:rt}};function Ce(he){return{createCover:function(ye,Ie){return V(l(Re,function(tt){var pt=[tt,[0,100]];return he&&pt.reverse(),pt},function(tt){return tt[he]}),ye,Ie,[["w","e"],["n","s"]][he])},getCreatingRange:function(ye){var Ie=U(ye),tt=t(Ie[0][he],Ie[1][he]),pt=a(Ie[0][he],Ie[1][he]);return[tt,pt]},updateCoverShape:function(ye,Ie,tt,pt){var st,Fe=X(ye,Ie);if(Fe!==!0&&Fe.getLinearBrushOtherExtent)st=Fe.getLinearBrushOtherExtent(he,ye._transform);else{var ft=ye._zr;st=[0,[ft.getWidth(),ft.getHeight()][1-he]]}var et=[tt,st];he&&et.reverse(),Q(ye,Ie,et,pt)},updateCommon:G,contain:rt}}var Te=w;k.exports=Te},"/MfK":function(k,D,i){"use strict";var y=i("VTBJ"),p=i("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"},A=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:A}))};f.displayName="DeleteOutlined";var d=D.a=p.forwardRef(f)},"/POA":function(k,D,i){!function(y,p){if(!0)k.exports=p();else var S,A}(window,function(){return function(y){var p={};function S(A){if(p[A])return p[A].exports;var m=p[A]={i:A,l:!1,exports:{}};return y[A].call(m.exports,m,m.exports,S),m.l=!0,m.exports}return S.m=y,S.c=p,S.d=function(A,m,f){S.o(A,m)||Object.defineProperty(A,m,{enumerable:!0,get:f})},S.r=function(A){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},S.t=function(A,m){if(1&m&&(A=S(A)),8&m)return A;if(4&m&&typeof A=="object"&&A&&A.__esModule)return A;var f=Object.create(null);if(S.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:A}),2&m&&typeof A!="string")for(var d in A)S.d(f,d,function(l){return A[l]}.bind(null,d));return f},S.n=function(A){var m=A&&A.__esModule?function(){return A.default}:function(){return A};return S.d(m,"a",m),m},S.o=function(A,m){return Object.prototype.hasOwnProperty.call(A,m)},S.p="",S(S.s=34)}([function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.forwardEvent=p.EventEmitter=void 0;var A=function(){function m(){this._listeners=[],this._disposed=!1}return Object.defineProperty(m.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 n=0;n<d._listeners.length;n++)if(d._listeners[n]===l)return void d._listeners.splice(n,1)}}}}),this._event},enumerable:!1,configurable:!0}),m.prototype.fire=function(f,d){for(var l=[],o=0;o<this._listeners.length;o++)l.push(this._listeners[o]);for(o=0;o<l.length;o++)l[o].call(void 0,f,d)},m.prototype.dispose=function(){this._listeners&&(this._listeners.length=0),this._disposed=!0},m}();p.EventEmitter=A,p.forwardEvent=function(m,f){return m(function(d){return f.fire(d)})}},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.IUnicodeService=p.IOptionsService=p.ILogService=p.IInstantiationService=p.IDirtyRowService=p.ICharsetService=p.ICoreService=p.ICoreMouseService=p.IBufferService=void 0;var A=S(14);p.IBufferService=A.createDecorator("BufferService"),p.ICoreMouseService=A.createDecorator("CoreMouseService"),p.ICoreService=A.createDecorator("CoreService"),p.ICharsetService=A.createDecorator("CharsetService"),p.IDirtyRowService=A.createDecorator("DirtyRowService"),p.IInstantiationService=A.createDecorator("InstantiationService"),p.ILogService=A.createDecorator("LogService"),p.IOptionsService=A.createDecorator("OptionsService"),p.IUnicodeService=A.createDecorator("UnicodeService")},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.getDisposeArrayDisposable=p.disposeArray=p.Disposable=void 0;var A=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 m(f){for(var d=0,l=f;d<l.length;d++)l[d].dispose();f.length=0}p.Disposable=A,p.disposeArray=m,p.getDisposeArrayDisposable=function(f){return{dispose:function(){return m(f)}}}},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.WHITESPACE_CELL_CODE=p.WHITESPACE_CELL_WIDTH=p.WHITESPACE_CELL_CHAR=p.NULL_CELL_CODE=p.NULL_CELL_WIDTH=p.NULL_CELL_CHAR=p.CHAR_DATA_CODE_INDEX=p.CHAR_DATA_WIDTH_INDEX=p.CHAR_DATA_CHAR_INDEX=p.CHAR_DATA_ATTR_INDEX=p.DEFAULT_ATTR=p.DEFAULT_COLOR=void 0,p.DEFAULT_COLOR=256,p.DEFAULT_ATTR=256|p.DEFAULT_COLOR<<9,p.CHAR_DATA_ATTR_INDEX=0,p.CHAR_DATA_CHAR_INDEX=1,p.CHAR_DATA_WIDTH_INDEX=2,p.CHAR_DATA_CODE_INDEX=3,p.NULL_CELL_CHAR="",p.NULL_CELL_WIDTH=1,p.NULL_CELL_CODE=0,p.WHITESPACE_CELL_CHAR=" ",p.WHITESPACE_CELL_WIDTH=1,p.WHITESPACE_CELL_CODE=32},function(y,p,S){"use strict";var A,m=this&&this.__extends||(A=function(t,a){return(A=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,a)},function(n,t){function a(){this.constructor=n}A(n,t),n.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)});Object.defineProperty(p,"__esModule",{value:!0}),p.CellData=void 0;var f=S(8),d=S(3),l=S(6),o=function(n){function t(){var a=n!==null&&n.apply(this,arguments)||this;return a.content=0,a.fg=0,a.bg=0,a.extended=new l.ExtendedAttrs,a.combinedData="",a}return m(t,n),t.fromCharData=function(a){var e=new t;return e.setFromCharData(a),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(a){this.fg=a[d.CHAR_DATA_ATTR_INDEX],this.bg=0;var e=!1;if(a[d.CHAR_DATA_CHAR_INDEX].length>2)e=!0;else if(a[d.CHAR_DATA_CHAR_INDEX].length===2){var u=a[d.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=u&&u<=56319){var r=a[d.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=r&&r<=57343?this.content=1024*(u-55296)+r-56320+65536|a[d.CHAR_DATA_WIDTH_INDEX]<<22:e=!0}else e=!0}else this.content=a[d.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|a[d.CHAR_DATA_WIDTH_INDEX]<<22;e&&(this.combinedData=a[d.CHAR_DATA_CHAR_INDEX],this.content=2097152|a[d.CHAR_DATA_WIDTH_INDEX]<<22)},t.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},t}(l.AttributeData);p.CellData=o},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ISoundService=p.ISelectionService=p.IRenderService=p.IMouseService=p.ICoreBrowserService=p.ICharSizeService=void 0;var A=S(14);p.ICharSizeService=A.createDecorator("CharSizeService"),p.ICoreBrowserService=A.createDecorator("CoreBrowserService"),p.IMouseService=A.createDecorator("MouseService"),p.IRenderService=A.createDecorator("RenderService"),p.ISelectionService=A.createDecorator("SelectionService"),p.ISoundService=A.createDecorator("SoundService")},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ExtendedAttrs=p.AttributeData=void 0;var A=function(){function f(){this.fg=0,this.bg=0,this.extended=new m}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}();p.AttributeData=A;var m=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}();p.ExtendedAttrs=m},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.addDisposableDomListener=void 0,p.addDisposableDomListener=function(A,m,f,d){A.addEventListener(m,f,d);var l=!1;return{dispose:function(){l||(l=!0,A.removeEventListener(m,f,d))}}}},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.Utf8ToUtf32=p.StringToUtf32=p.utf32ToString=p.stringFromCodePoint=void 0,p.stringFromCodePoint=function(f){return f>65535?(f-=65536,String.fromCharCode(55296+(f>>10))+String.fromCharCode(f%1024+56320)):String.fromCharCode(f)},p.utf32ToString=function(f,d,l){d===void 0&&(d=0),l===void 0&&(l=f.length);for(var o="",n=d;n<l;++n){var t=f[n];t>65535?(t-=65536,o+=String.fromCharCode(55296+(t>>10))+String.fromCharCode(t%1024+56320)):o+=String.fromCharCode(t)}return o};var A=function(){function f(){this._interim=0}return f.prototype.clear=function(){this._interim=0},f.prototype.decode=function(d,l){var o=d.length;if(!o)return 0;var n=0,t=0;this._interim&&(56320<=(u=d.charCodeAt(t++))&&u<=57343?l[n++]=1024*(this._interim-55296)+u-56320+65536:(l[n++]=this._interim,l[n++]=u),this._interim=0);for(var a=t;a<o;++a){var e=d.charCodeAt(a);if(55296<=e&&e<=56319){if(++a>=o)return this._interim=e,n;var u;56320<=(u=d.charCodeAt(a))&&u<=57343?l[n++]=1024*(e-55296)+u-56320+65536:(l[n++]=e,l[n++]=u)}else l[n++]=e}return n},f}();p.StringToUtf32=A;var m=function(){function f(){this.interim=new Uint8Array(3)}return f.prototype.clear=function(){this.interim.fill(0)},f.prototype.decode=function(d,l){var o=d.length;if(!o)return 0;var n,t,a,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 g=0,v=void 0;(v=63&this.interim[++g])&&g<4;)h<<=6,h|=v;for(var b=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,w=b-g;s<w;){if(s>=o)return 0;if((192&(v=d[s++]))!=128){s--,c=!0;break}this.interim[g++]=v,h<<=6,h|=63&v}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 x=o-4,T=s;T<o;){for(;!(!(T<x)||128&(n=d[T])||128&(t=d[T+1])||128&(a=d[T+2])||128&(e=d[T+3]));)l[u++]=n,l[u++]=t,l[u++]=a,l[u++]=e,T+=4;if((n=d[T++])<128)l[u++]=n;else if((224&n)==192){if(T>=o)return this.interim[0]=n,u;if((192&(t=d[T++]))!=128){T--;continue}if((r=(31&n)<<6|63&t)<128){T--;continue}l[u++]=r}else if((240&n)==224){if(T>=o)return this.interim[0]=n,u;if((192&(t=d[T++]))!=128){T--;continue}if(T>=o)return this.interim[0]=n,this.interim[1]=t,u;if((192&(a=d[T++]))!=128){T--;continue}if((r=(15&n)<<12|(63&t)<<6|63&a)<2048||r>=55296&&r<=57343)continue;l[u++]=r}else if((248&n)==240){if(T>=o)return this.interim[0]=n,u;if((192&(t=d[T++]))!=128){T--;continue}if(T>=o)return this.interim[0]=n,this.interim[1]=t,u;if((192&(a=d[T++]))!=128){T--;continue}if(T>=o)return this.interim[0]=n,this.interim[1]=t,this.interim[2]=a,u;if((192&(e=d[T++]))!=128){T--;continue}if((r=(7&n)<<18|(63&t)<<12|(63&a)<<6|63&e)<65536||r>1114111)continue;l[u++]=r}}return u},f}();p.Utf8ToUtf32=m},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CHAR_ATLAS_CELL_SPACING=p.DIM_OPACITY=p.INVERTED_DEFAULT_COLOR=void 0,p.INVERTED_DEFAULT_COLOR=257,p.DIM_OPACITY=.5,p.CHAR_ATLAS_CELL_SPACING=1},function(y,p,S){"use strict";var A,m,f,d;function l(n){var t=n.toString(16);return t.length<2?"0"+t:t}function o(n,t){return n<t?(t+.05)/(n+.05):(n+.05)/(t+.05)}Object.defineProperty(p,"__esModule",{value:!0}),p.contrastRatio=p.toPaddedHex=p.rgba=p.rgb=p.css=p.color=p.channels=void 0,function(n){n.toCss=function(t,a,e,u){return u!==void 0?"#"+l(t)+l(a)+l(e)+l(u):"#"+l(t)+l(a)+l(e)},n.toRgba=function(t,a,e,u){return u===void 0&&(u=255),(t<<24|a<<16|e<<8|u)>>>0}}(A=p.channels||(p.channels={})),(m=p.color||(p.color={})).blend=function(n,t){var a=(255&t.rgba)/255;if(a===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=n.rgba>>24&255,c=n.rgba>>16&255,h=n.rgba>>8&255,g=s+Math.round((e-s)*a),v=c+Math.round((u-c)*a),b=h+Math.round((r-h)*a);return{css:A.toCss(g,v,b),rgba:A.toRgba(g,v,b)}},m.isOpaque=function(n){return(255&n.rgba)==255},m.ensureContrastRatio=function(n,t,a){var e=d.ensureContrastRatio(n.rgba,t.rgba,a);if(e)return d.toColor(e>>24&255,e>>16&255,e>>8&255)},m.opaque=function(n){var t=(255|n.rgba)>>>0,a=d.toChannels(t),e=a[0],u=a[1],r=a[2];return{css:A.toCss(e,u,r),rgba:t}},m.opacity=function(n,t){var a=Math.round(255*t),e=d.toChannels(n.rgba),u=e[0],r=e[1],s=e[2];return{css:A.toCss(u,r,s,a),rgba:A.toRgba(u,r,s,a)}},(p.css||(p.css={})).toColor=function(n){switch(n.length){case 7:return{css:n,rgba:(parseInt(n.slice(1),16)<<8|255)>>>0};case 9:return{css:n,rgba:parseInt(n.slice(1),16)>>>0}}throw new Error("css.toColor: Unsupported css format")},function(n){function t(a,e,u){var r=a/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))}n.relativeLuminance=function(a){return t(a>>16&255,a>>8&255,255&a)},n.relativeLuminance2=t}(f=p.rgb||(p.rgb={})),function(n){function t(e,u,r){for(var s=e>>24&255,c=e>>16&255,h=e>>8&255,g=u>>24&255,v=u>>16&255,b=u>>8&255,w=o(f.relativeLuminance2(g,b,v),f.relativeLuminance2(s,c,h));w<r&&(g>0||v>0||b>0);)g-=Math.max(0,Math.ceil(.1*g)),v-=Math.max(0,Math.ceil(.1*v)),b-=Math.max(0,Math.ceil(.1*b)),w=o(f.relativeLuminance2(g,b,v),f.relativeLuminance2(s,c,h));return(g<<24|v<<16|b<<8|255)>>>0}function a(e,u,r){for(var s=e>>24&255,c=e>>16&255,h=e>>8&255,g=u>>24&255,v=u>>16&255,b=u>>8&255,w=o(f.relativeLuminance2(g,b,v),f.relativeLuminance2(s,c,h));w<r&&(g<255||v<255||b<255);)g=Math.min(255,g+Math.ceil(.1*(255-g))),v=Math.min(255,v+Math.ceil(.1*(255-v))),b=Math.min(255,b+Math.ceil(.1*(255-b))),w=o(f.relativeLuminance2(g,b,v),f.relativeLuminance2(s,c,h));return(g<<24|v<<16|b<<8|255)>>>0}n.ensureContrastRatio=function(e,u,r){var s=f.relativeLuminance(e>>8),c=f.relativeLuminance(u>>8);if(o(s,c)<r)return c<s?t(e,u,r):a(e,u,r)},n.reduceLuminance=t,n.increaseLuminance=a,n.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},n.toColor=function(e,u,r){return{css:A.toCss(e,u,r),rgba:A.toRgba(e,u,r)}}}(d=p.rgba||(p.rgba={})),p.toPaddedHex=l,p.contrastRatio=o},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.isLinux=p.isWindows=p.isIphone=p.isIpad=p.isMac=p.isSafari=p.isFirefox=void 0;var A=typeof navigator=="undefined",m=A?"node":navigator.userAgent,f=A?"node":navigator.platform;function d(l,o){return l.indexOf(o)>=0}p.isFirefox=!!~m.indexOf("Firefox"),p.isSafari=/^((?!chrome|android).)*safari/i.test(m),p.isMac=d(["Macintosh","MacIntel","MacPPC","Mac68K"],f),p.isIpad=f==="iPad",p.isIphone=f==="iPhone",p.isWindows=d(["Windows","Win16","Win32","WinCE"],f),p.isLinux=f.indexOf("Linux")>=0},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.C1=p.C0=void 0,function(A){A.NUL="\0",A.SOH="",A.STX="",A.ETX="",A.EOT="",A.ENQ="",A.ACK="",A.BEL="\x07",A.BS="\b",A.HT=" ",A.LF=`
`,A.VT="\v",A.FF="\f",A.CR="\r",A.SO="",A.SI="",A.DLE="",A.DC1="",A.DC2="",A.DC3="",A.DC4="",A.NAK="",A.SYN="",A.ETB="",A.CAN="",A.EM="",A.SUB="",A.ESC="",A.FS="",A.GS="",A.RS="",A.US="",A.SP=" ",A.DEL="\x7F"}(p.C0||(p.C0={})),function(A){A.PAD="\x80",A.HOP="\x81",A.BPH="\x82",A.NBH="\x83",A.IND="\x84",A.NEL="\x85",A.SSA="\x86",A.ESA="\x87",A.HTS="\x88",A.HTJ="\x89",A.VTS="\x8A",A.PLD="\x8B",A.PLU="\x8C",A.RI="\x8D",A.SS2="\x8E",A.SS3="\x8F",A.DCS="\x90",A.PU1="\x91",A.PU2="\x92",A.STS="\x93",A.CCH="\x94",A.MW="\x95",A.SPA="\x96",A.EPA="\x97",A.SOS="\x98",A.SGCI="\x99",A.SCI="\x9A",A.CSI="\x9B",A.ST="\x9C",A.OSC="\x9D",A.PM="\x9E",A.APC="\x9F"}(p.C1||(p.C1={}))},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BaseRenderLayer=void 0;var A=S(3),m=S(9),f=S(25),d=S(6),l=S(28),o=S(10),n=S(17),t=function(){function a(e,u,r,s,c,h,g,v){this._container=e,this._alpha=s,this._colors=c,this._rendererId=h,this._bufferService=g,this._optionsService=v,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 a.prototype.dispose=function(){var e;n.removeElementFromParent(this._canvas),(e=this._charAtlas)===null||e===void 0||e.dispose()},a.prototype._initCanvas=function(){this._ctx=l.throwIfFalsy(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()},a.prototype.onOptionsChanged=function(){},a.prototype.onBlur=function(){},a.prototype.onFocus=function(){},a.prototype.onCursorMove=function(){},a.prototype.onGridChanged=function(e,u){},a.prototype.onSelectionChanged=function(e,u,r){r===void 0&&(r=!1)},a.prototype.setColors=function(e){this._refreshCharAtlas(e)},a.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)}},a.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())},a.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)},a.prototype._fillCells=function(e,u,r,s){this._ctx.fillRect(e*this._scaledCellWidth,u*this._scaledCellHeight,r*this._scaledCellWidth,s*this._scaledCellHeight)},a.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)},a.prototype._fillLeftLineAtCell=function(e,u,r){this._ctx.fillRect(e*this._scaledCellWidth,u*this._scaledCellHeight,window.devicePixelRatio*r,this._scaledCellHeight)},a.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)},a.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))},a.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))},a.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)},a.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()?m.INVERTED_DEFAULT_COLOR:e.getBgColor(),c=e.isFgDefault()?m.INVERTED_DEFAULT_COLOR:e.getFgColor()):(c=e.isBgDefault()?A.DEFAULT_COLOR:e.getBgColor(),s=e.isFgDefault()?A.DEFAULT_COLOR:e.getFgColor()),s+=this._optionsService.options.drawBoldTextInBrightColors&&e.isBold()&&s<8?8:0,this._currentGlyphIdentifier.chars=e.getChars()||A.WHITESPACE_CELL_CHAR,this._currentGlyphIdentifier.code=e.getCode()||A.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))},a.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=o.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=m.DIM_OPACITY),this._ctx.fillText(e.getChars(),u*this._scaledCellWidth+this._scaledCharLeft,r*this._scaledCellHeight+this._scaledCharTop+this._scaledCharHeight/2),this._ctx.restore()},a.prototype._clipRow=function(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._scaledCellHeight,this._bufferService.cols*this._scaledCellWidth,this._scaledCellHeight),this._ctx.clip()},a.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},a.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(),g=!!e.isInverse(),v=!!e.isInverse();if(g){var b=r;r=c,c=b;var w=s;s=h,h=w}var x=this._resolveBackgroundRgba(h,c,g),T=this._resolveForegroundRgba(s,r,g,v),O=o.rgba.ensureContrastRatio(x,T,this._optionsService.options.minimumContrastRatio);if(O){var E={css:o.channels.toCss(O>>24&255,O>>16&255,O>>8&255),rgba:O};return this._colors.contrastCache.setColor(e.bg,e.fg,E),E}this._colors.contrastCache.setColor(e.bg,e.fg,null)}},a.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}},a.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}},a}();p.BaseRenderLayer=t},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.createDecorator=p.getServiceDependencies=p.serviceRegistry=void 0;function A(m,f,d){f.di$target===f?f.di$dependencies.push({id:m,index:d}):(f.di$dependencies=[{id:m,index:d}],f.di$target=f)}p.serviceRegistry=new Map,p.getServiceDependencies=function(m){return m.di$dependencies||[]},p.createDecorator=function(m){if(p.serviceRegistry.has(m))return p.serviceRegistry.get(m);var f=function d(l,o,n){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");A(d,l,n)};return f.toString=function(){return m},p.serviceRegistry.set(m,f),f}},function(y,p,S){"use strict";function A(m,f,d,l){if(d===void 0&&(d=0),l===void 0&&(l=m.length),d>=m.length)return m;d=(m.length+d)%m.length,l=l>=m.length?m.length:(m.length+l)%m.length;for(var o=d;o<l;++o)m[o]=f;return m}Object.defineProperty(p,"__esModule",{value:!0}),p.concat=p.fillFallback=p.fill=void 0,p.fill=function(m,f,d,l){return m.fill?m.fill(f,d,l):A(m,f,d,l)},p.fillFallback=A,p.concat=function(m,f){var d=new m.constructor(m.length+f.length);return d.set(m),d.set(f,m.length),d}},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BufferLine=p.DEFAULT_ATTR_DATA=void 0;var A=S(8),m=S(3),f=S(4),d=S(6);p.DEFAULT_ATTR_DATA=Object.freeze(new d.AttributeData);var l=function(){function o(n,t,a){a===void 0&&(a=!1),this.isWrapped=a,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*n);for(var e=t||f.CellData.fromCharData([0,m.NULL_CELL_CHAR,m.NULL_CELL_WIDTH,m.NULL_CELL_CODE]),u=0;u<n;++u)this.setCell(u,e);this.length=n}return o.prototype.get=function(n){var t=this._data[3*n+0],a=2097151&t;return[this._data[3*n+1],2097152&t?this._combined[n]:a?A.stringFromCodePoint(a):"",t>>22,2097152&t?this._combined[n].charCodeAt(this._combined[n].length-1):a]},o.prototype.set=function(n,t){this._data[3*n+1]=t[m.CHAR_DATA_ATTR_INDEX],t[m.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[n]=t[1],this._data[3*n+0]=2097152|n|t[m.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*n+0]=t[m.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[m.CHAR_DATA_WIDTH_INDEX]<<22},o.prototype.getWidth=function(n){return this._data[3*n+0]>>22},o.prototype.hasWidth=function(n){return 12582912&this._data[3*n+0]},o.prototype.getFg=function(n){return this._data[3*n+1]},o.prototype.getBg=function(n){return this._data[3*n+2]},o.prototype.hasContent=function(n){return 4194303&this._data[3*n+0]},o.prototype.getCodePoint=function(n){var t=this._data[3*n+0];return 2097152&t?this._combined[n].charCodeAt(this._combined[n].length-1):2097151&t},o.prototype.isCombined=function(n){return 2097152&this._data[3*n+0]},o.prototype.getString=function(n){var t=this._data[3*n+0];return 2097152&t?this._combined[n]:2097151&t?A.stringFromCodePoint(2097151&t):""},o.prototype.loadCell=function(n,t){var a=3*n;return t.content=this._data[a+0],t.fg=this._data[a+1],t.bg=this._data[a+2],2097152&t.content&&(t.combinedData=this._combined[n]),268435456&t.bg&&(t.extended=this._extendedAttrs[n]),t},o.prototype.setCell=function(n,t){2097152&t.content&&(this._combined[n]=t.combinedData),268435456&t.bg&&(this._extendedAttrs[n]=t.extended),this._data[3*n+0]=t.content,this._data[3*n+1]=t.fg,this._data[3*n+2]=t.bg},o.prototype.setCellFromCodePoint=function(n,t,a,e,u,r){268435456&u&&(this._extendedAttrs[n]=r),this._data[3*n+0]=t|a<<22,this._data[3*n+1]=e,this._data[3*n+2]=u},o.prototype.addCodepointToCell=function(n,t){var a=this._data[3*n+0];2097152&a?this._combined[n]+=A.stringFromCodePoint(t):(2097151&a?(this._combined[n]=A.stringFromCodePoint(2097151&a)+A.stringFromCodePoint(t),a&=-2097152,a|=2097152):a=t|1<<22,this._data[3*n+0]=a)},o.prototype.insertCells=function(n,t,a,e){if((n%=this.length)&&this.getWidth(n-1)===2&&this.setCellFromCodePoint(n-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-n){for(var u=new f.CellData,r=this.length-n-t-1;r>=0;--r)this.setCell(n+t+r,this.loadCell(n+r,u));for(r=0;r<t;++r)this.setCell(n+r,a)}else for(r=n;r<this.length;++r)this.setCell(r,a);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)},o.prototype.deleteCells=function(n,t,a,e){if(n%=this.length,t<this.length-n){for(var u=new f.CellData,r=0;r<this.length-n-t;++r)this.setCell(n+r,this.loadCell(n+t+r,u));for(r=this.length-t;r<this.length;++r)this.setCell(r,a)}else for(r=n;r<this.length;++r)this.setCell(r,a);n&&this.getWidth(n-1)===2&&this.setCellFromCodePoint(n-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(n)!==0||this.hasContent(n)||this.setCellFromCodePoint(n,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)},o.prototype.replaceCells=function(n,t,a,e){for(n&&this.getWidth(n-1)===2&&this.setCellFromCodePoint(n-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);n<t&&n<this.length;)this.setCell(n++,a)},o.prototype.resize=function(n,t){if(n!==this.length){if(n>this.length){var a=new Uint32Array(3*n);this.length&&(3*n<this._data.length?a.set(this._data.subarray(0,3*n)):a.set(this._data)),this._data=a;for(var e=this.length;e<n;++e)this.setCell(e,t)}else if(n){(a=new Uint32Array(3*n)).set(this._data.subarray(0,3*n)),this._data=a;var u=Object.keys(this._combined);for(e=0;e<u.length;e++){var r=parseInt(u[e],10);r>=n&&delete this._combined[r]}}else this._data=new Uint32Array(0),this._combined={};this.length=n}},o.prototype.fill=function(n){this._combined={},this._extendedAttrs={};for(var t=0;t<this.length;++t)this.setCell(t,n)},o.prototype.copyFrom=function(n){for(var t in this.length!==n.length?this._data=new Uint32Array(n._data):this._data.set(n._data),this.length=n.length,this._combined={},n._combined)this._combined[t]=n._combined[t];for(var t in this._extendedAttrs={},n._extendedAttrs)this._extendedAttrs[t]=n._extendedAttrs[t];this.isWrapped=n.isWrapped},o.prototype.clone=function(){var n=new o(0);for(var t in n._data=new Uint32Array(this._data),n.length=this.length,this._combined)n._combined[t]=this._combined[t];for(var t in this._extendedAttrs)n._extendedAttrs[t]=this._extendedAttrs[t];return n.isWrapped=this.isWrapped,n},o.prototype.getTrimmedLength=function(){for(var n=this.length-1;n>=0;--n)if(4194303&this._data[3*n+0])return n+(this._data[3*n+0]>>22);return 0},o.prototype.copyCellsFrom=function(n,t,a,e,u){var r=n._data;if(u)for(var s=e-1;s>=0;s--)for(var c=0;c<3;c++)this._data[3*(a+s)+c]=r[3*(t+s)+c];else for(s=0;s<e;s++)for(c=0;c<3;c++)this._data[3*(a+s)+c]=r[3*(t+s)+c];var h=Object.keys(n._combined);for(c=0;c<h.length;c++){var g=parseInt(h[c],10);g>=t&&(this._combined[g-t+a]=n._combined[g])}},o.prototype.translateToString=function(n,t,a){n===void 0&&(n=!1),t===void 0&&(t=0),a===void 0&&(a=this.length),n&&(a=Math.min(a,this.getTrimmedLength()));for(var e="";t<a;){var u=this._data[3*t+0],r=2097151&u;e+=2097152&u?this._combined[t]:r?A.stringFromCodePoint(r):m.WHITESPACE_CELL_CHAR,t+=u>>22||1}return e},o}();p.BufferLine=l},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.removeElementFromParent=void 0,p.removeElementFromParent=function(){for(var A,m=[],f=0;f<arguments.length;f++)m[f]=arguments[f];for(var d=0,l=m;d<l.length;d++){var o=l[d];(A=o==null?void 0:o.parentElement)===null||A===void 0||A.removeChild(o)}}},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.tooMuchOutput=p.promptLabel=void 0,p.promptLabel="Terminal input",p.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},function(y,p,S){"use strict";var A,m=this&&this.__extends||(A=function(O,E){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,I){C.__proto__=I}||function(C,I){for(var _ in I)I.hasOwnProperty(_)&&(C[_]=I[_])})(O,E)},function(T,O){function E(){this.constructor=T}A(T,O),T.prototype=O===null?Object.create(O):(E.prototype=O.prototype,new E)});Object.defineProperty(p,"__esModule",{value:!0}),p.InputHandler=p.WindowsOptionsReportType=void 0;var f,d=S(12),l=S(20),o=S(39),n=S(2),t=S(15),a=S(8),e=S(16),u=S(0),r=S(3),s=S(4),c=S(6),h=S(22),g=S(24),v={"(":0,")":1,"*":2,"+":3,"-":1,".":2};function b(T,O){if(T>24)return O.setWinLines||!1;switch(T){case 1:return!!O.restoreWin;case 2:return!!O.minimizeWin;case 3:return!!O.setWinPosition;case 4:return!!O.setWinSizePixels;case 5:return!!O.raiseWin;case 6:return!!O.lowerWin;case 7:return!!O.refreshWin;case 8:return!!O.setWinSizeChars;case 9:return!!O.maximizeWin;case 10:return!!O.fullscreenWin;case 11:return!!O.getWinState;case 13:return!!O.getWinPosition;case 14:return!!O.getWinSizePixels;case 15:return!!O.getScreenSizePixels;case 16:return!!O.getCellSizePixels;case 18:return!!O.getWinSizeChars;case 19:return!!O.getScreenSizeChars;case 20:return!!O.getIconTitle;case 21:return!!O.getWinTitle;case 22:return!!O.pushTitle;case 23:return!!O.popTitle;case 24:return!!O.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=p.WindowsOptionsReportType||(p.WindowsOptionsReportType={}));var w=function(){function T(O,E,C,I){this._bufferService=O,this._coreService=E,this._logService=C,this._optionsService=I,this._data=new Uint32Array(0)}return T.prototype.hook=function(O){this._data=new Uint32Array(0)},T.prototype.put=function(O,E,C){this._data=t.concat(this._data,O.subarray(E,C))},T.prototype.unhook=function(O){if(O){var E=a.utf32ToString(this._data);switch(this._data=new Uint32Array(0),E){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 C=this._bufferService.buffer.scrollTop+1+";"+(this._bufferService.buffer.scrollBottom+1)+"r";return this._coreService.triggerDataEvent(d.C0.ESC+"P1$r"+C+d.C0.ESC+"\\");case"m":return this._coreService.triggerDataEvent(d.C0.ESC+"P1$r0m"+d.C0.ESC+"\\");case" q":var I={block:2,underline:4,bar:6}[this._optionsService.options.cursorStyle];return I-=this._optionsService.options.cursorBlink?1:0,this._coreService.triggerDataEvent(d.C0.ESC+"P1$r"+I+" q"+d.C0.ESC+"\\");default:this._logService.debug("Unknown DCS $q %s",E),this._coreService.triggerDataEvent(d.C0.ESC+"P0$r"+d.C0.ESC+"\\")}}else this._data=new Uint32Array(0)},T}(),x=function(T){function O(E,C,I,_,F,R,B,M,X){X===void 0&&(X=new o.EscapeSequenceParser);var P=T.call(this)||this;P._bufferService=E,P._charsetService=C,P._coreService=I,P._dirtyRowService=_,P._logService=F,P._optionsService=R,P._coreMouseService=B,P._unicodeService=M,P._parser=X,P._parseBuffer=new Uint32Array(4096),P._stringDecoder=new a.StringToUtf32,P._utf8Decoder=new a.Utf8ToUtf32,P._workCell=new s.CellData,P._windowTitle="",P._iconName="",P._windowTitleStack=[],P._iconNameStack=[],P._curAttrData=e.DEFAULT_ATTR_DATA.clone(),P._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone(),P._onRequestBell=new u.EventEmitter,P._onRequestRefreshRows=new u.EventEmitter,P._onRequestReset=new u.EventEmitter,P._onRequestScroll=new u.EventEmitter,P._onRequestSyncScrollBar=new u.EventEmitter,P._onRequestWindowsOptionsReport=new u.EventEmitter,P._onA11yChar=new u.EventEmitter,P._onA11yTab=new u.EventEmitter,P._onCursorMove=new u.EventEmitter,P._onLineFeed=new u.EventEmitter,P._onScroll=new u.EventEmitter,P._onTitleChange=new u.EventEmitter,P.register(P._parser),P._parser.setCsiHandlerFallback(function(V,Q){P._logService.debug("Unknown CSI code: ",{identifier:P._parser.identToString(V),params:Q.toArray()})}),P._parser.setEscHandlerFallback(function(V){P._logService.debug("Unknown ESC code: ",{identifier:P._parser.identToString(V)})}),P._parser.setExecuteHandlerFallback(function(V){P._logService.debug("Unknown EXECUTE code: ",{code:V})}),P._parser.setOscHandlerFallback(function(V,Q,G){P._logService.debug("Unknown OSC code: ",{identifier:V,action:Q,data:G})}),P._parser.setDcsHandlerFallback(function(V,Q,G){Q==="HOOK"&&(G=G.toArray()),P._logService.debug("Unknown DCS code: ",{identifier:P._parser.identToString(V),action:Q,payload:G})}),P._parser.setPrintHandler(function(V,Q,G){return P.print(V,Q,G)}),P._parser.setCsiHandler({final:"@"},function(V){return P.insertChars(V)}),P._parser.setCsiHandler({intermediates:" ",final:"@"},function(V){return P.scrollLeft(V)}),P._parser.setCsiHandler({final:"A"},function(V){return P.cursorUp(V)}),P._parser.setCsiHandler({intermediates:" ",final:"A"},function(V){return P.scrollRight(V)}),P._parser.setCsiHandler({final:"B"},function(V){return P.cursorDown(V)}),P._parser.setCsiHandler({final:"C"},function(V){return P.cursorForward(V)}),P._parser.setCsiHandler({final:"D"},function(V){return P.cursorBackward(V)}),P._parser.setCsiHandler({final:"E"},function(V){return P.cursorNextLine(V)}),P._parser.setCsiHandler({final:"F"},function(V){return P.cursorPrecedingLine(V)}),P._parser.setCsiHandler({final:"G"},function(V){return P.cursorCharAbsolute(V)}),P._parser.setCsiHandler({final:"H"},function(V){return P.cursorPosition(V)}),P._parser.setCsiHandler({final:"I"},function(V){return P.cursorForwardTab(V)}),P._parser.setCsiHandler({final:"J"},function(V){return P.eraseInDisplay(V)}),P._parser.setCsiHandler({prefix:"?",final:"J"},function(V){return P.eraseInDisplay(V)}),P._parser.setCsiHandler({final:"K"},function(V){return P.eraseInLine(V)}),P._parser.setCsiHandler({prefix:"?",final:"K"},function(V){return P.eraseInLine(V)}),P._parser.setCsiHandler({final:"L"},function(V){return P.insertLines(V)}),P._parser.setCsiHandler({final:"M"},function(V){return P.deleteLines(V)}),P._parser.setCsiHandler({final:"P"},function(V){return P.deleteChars(V)}),P._parser.setCsiHandler({final:"S"},function(V){return P.scrollUp(V)}),P._parser.setCsiHandler({final:"T"},function(V){return P.scrollDown(V)}),P._parser.setCsiHandler({final:"X"},function(V){return P.eraseChars(V)}),P._parser.setCsiHandler({final:"Z"},function(V){return P.cursorBackwardTab(V)}),P._parser.setCsiHandler({final:"`"},function(V){return P.charPosAbsolute(V)}),P._parser.setCsiHandler({final:"a"},function(V){return P.hPositionRelative(V)}),P._parser.setCsiHandler({final:"b"},function(V){return P.repeatPrecedingCharacter(V)}),P._parser.setCsiHandler({final:"c"},function(V){return P.sendDeviceAttributesPrimary(V)}),P._parser.setCsiHandler({prefix:">",final:"c"},function(V){return P.sendDeviceAttributesSecondary(V)}),P._parser.setCsiHandler({final:"d"},function(V){return P.linePosAbsolute(V)}),P._parser.setCsiHandler({final:"e"},function(V){return P.vPositionRelative(V)}),P._parser.setCsiHandler({final:"f"},function(V){return P.hVPosition(V)}),P._parser.setCsiHandler({final:"g"},function(V){return P.tabClear(V)}),P._parser.setCsiHandler({final:"h"},function(V){return P.setMode(V)}),P._parser.setCsiHandler({prefix:"?",final:"h"},function(V){return P.setModePrivate(V)}),P._parser.setCsiHandler({final:"l"},function(V){return P.resetMode(V)}),P._parser.setCsiHandler({prefix:"?",final:"l"},function(V){return P.resetModePrivate(V)}),P._parser.setCsiHandler({final:"m"},function(V){return P.charAttributes(V)}),P._parser.setCsiHandler({final:"n"},function(V){return P.deviceStatus(V)}),P._parser.setCsiHandler({prefix:"?",final:"n"},function(V){return P.deviceStatusPrivate(V)}),P._parser.setCsiHandler({intermediates:"!",final:"p"},function(V){return P.softReset(V)}),P._parser.setCsiHandler({intermediates:" ",final:"q"},function(V){return P.setCursorStyle(V)}),P._parser.setCsiHandler({final:"r"},function(V){return P.setScrollRegion(V)}),P._parser.setCsiHandler({final:"s"},function(V){return P.saveCursor(V)}),P._parser.setCsiHandler({final:"t"},function(V){return P.windowOptions(V)}),P._parser.setCsiHandler({final:"u"},function(V){return P.restoreCursor(V)}),P._parser.setCsiHandler({intermediates:"'",final:"}"},function(V){return P.insertColumns(V)}),P._parser.setCsiHandler({intermediates:"'",final:"~"},function(V){return P.deleteColumns(V)}),P._parser.setExecuteHandler(d.C0.BEL,function(){return P.bell()}),P._parser.setExecuteHandler(d.C0.LF,function(){return P.lineFeed()}),P._parser.setExecuteHandler(d.C0.VT,function(){return P.lineFeed()}),P._parser.setExecuteHandler(d.C0.FF,function(){return P.lineFeed()}),P._parser.setExecuteHandler(d.C0.CR,function(){return P.carriageReturn()}),P._parser.setExecuteHandler(d.C0.BS,function(){return P.backspace()}),P._parser.setExecuteHandler(d.C0.HT,function(){return P.tab()}),P._parser.setExecuteHandler(d.C0.SO,function(){return P.shiftOut()}),P._parser.setExecuteHandler(d.C0.SI,function(){return P.shiftIn()}),P._parser.setExecuteHandler(d.C1.IND,function(){return P.index()}),P._parser.setExecuteHandler(d.C1.NEL,function(){return P.nextLine()}),P._parser.setExecuteHandler(d.C1.HTS,function(){return P.tabSet()}),P._parser.setOscHandler(0,new h.OscHandler(function(V){P.setTitle(V),P.setIconName(V)})),P._parser.setOscHandler(1,new h.OscHandler(function(V){return P.setIconName(V)})),P._parser.setOscHandler(2,new h.OscHandler(function(V){return P.setTitle(V)})),P._parser.setEscHandler({final:"7"},function(){return P.saveCursor()}),P._parser.setEscHandler({final:"8"},function(){return P.restoreCursor()}),P._parser.setEscHandler({final:"D"},function(){return P.index()}),P._parser.setEscHandler({final:"E"},function(){return P.nextLine()}),P._parser.setEscHandler({final:"H"},function(){return P.tabSet()}),P._parser.setEscHandler({final:"M"},function(){return P.reverseIndex()}),P._parser.setEscHandler({final:"="},function(){return P.keypadApplicationMode()}),P._parser.setEscHandler({final:">"},function(){return P.keypadNumericMode()}),P._parser.setEscHandler({final:"c"},function(){return P.fullReset()}),P._parser.setEscHandler({final:"n"},function(){return P.setgLevel(2)}),P._parser.setEscHandler({final:"o"},function(){return P.setgLevel(3)}),P._parser.setEscHandler({final:"|"},function(){return P.setgLevel(3)}),P._parser.setEscHandler({final:"}"},function(){return P.setgLevel(2)}),P._parser.setEscHandler({final:"~"},function(){return P.setgLevel(1)}),P._parser.setEscHandler({intermediates:"%",final:"@"},function(){return P.selectDefaultCharset()}),P._parser.setEscHandler({intermediates:"%",final:"G"},function(){return P.selectDefaultCharset()});var z=function(Q){W._parser.setEscHandler({intermediates:"(",final:Q},function(){return P.selectCharset("("+Q)}),W._parser.setEscHandler({intermediates:")",final:Q},function(){return P.selectCharset(")"+Q)}),W._parser.setEscHandler({intermediates:"*",final:Q},function(){return P.selectCharset("*"+Q)}),W._parser.setEscHandler({intermediates:"+",final:Q},function(){return P.selectCharset("+"+Q)}),W._parser.setEscHandler({intermediates:"-",final:Q},function(){return P.selectCharset("-"+Q)}),W._parser.setEscHandler({intermediates:".",final:Q},function(){return P.selectCharset("."+Q)}),W._parser.setEscHandler({intermediates:"/",final:Q},function(){return P.selectCharset("/"+Q)})},W=this;for(var U in l.CHARSETS)z(U);return P._parser.setEscHandler({intermediates:"#",final:"8"},function(){return P.screenAlignmentPattern()}),P._parser.setErrorHandler(function(V){return P._logService.error("Parsing error: ",V),V}),P._parser.setDcsHandler({intermediates:"$",final:"q"},new w(P._bufferService,P._coreService,P._logService,P._optionsService)),P}return m(O,T),Object.defineProperty(O.prototype,"onRequestBell",{get:function(){return this._onRequestBell.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onRequestRefreshRows",{get:function(){return this._onRequestRefreshRows.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onRequestReset",{get:function(){return this._onRequestReset.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onRequestScroll",{get:function(){return this._onRequestScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onRequestSyncScrollBar",{get:function(){return this._onRequestSyncScrollBar.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onRequestWindowsOptionsReport",{get:function(){return this._onRequestWindowsOptionsReport.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onA11yChar",{get:function(){return this._onA11yChar.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onA11yTab",{get:function(){return this._onA11yTab.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(O.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),O.prototype.dispose=function(){T.prototype.dispose.call(this)},O.prototype.parse=function(E){var C=this._bufferService.buffer,I=C.x,_=C.y;if(this._logService.debug("parsing data",E),this._parseBuffer.length<E.length&&this._parseBuffer.length<131072&&(this._parseBuffer=new Uint32Array(Math.min(E.length,131072))),this._dirtyRowService.clearRange(),E.length>131072)for(var F=0;F<E.length;F+=131072){var R=F+131072<E.length?F+131072:E.length,B=typeof E=="string"?this._stringDecoder.decode(E.substring(F,R),this._parseBuffer):this._utf8Decoder.decode(E.subarray(F,R),this._parseBuffer);this._parser.parse(this._parseBuffer,B)}else B=typeof E=="string"?this._stringDecoder.decode(E,this._parseBuffer):this._utf8Decoder.decode(E,this._parseBuffer),this._parser.parse(this._parseBuffer,B);(C=this._bufferService.buffer).x===I&&C.y===_||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowService.start,this._dirtyRowService.end)},O.prototype.print=function(E,C,I){var _,F,R=this._bufferService.buffer,B=this._charsetService.charset,M=this._optionsService.options.screenReaderMode,X=this._bufferService.cols,P=this._coreService.decPrivateModes.wraparound,z=this._coreService.modes.insertMode,W=this._curAttrData,U=R.lines.get(R.ybase+R.y);this._dirtyRowService.markDirty(R.y),R.x&&I-C>0&&U.getWidth(R.x-1)===2&&U.setCellFromCodePoint(R.x-1,0,1,W.fg,W.bg,W.extended);for(var V=C;V<I;++V){if(_=E[V],F=this._unicodeService.wcwidth(_),_<127&&B){var Q=B[String.fromCharCode(_)];Q&&(_=Q.charCodeAt(0))}if(M&&this._onA11yChar.fire(a.stringFromCodePoint(_)),F||!R.x){if(R.x+F-1>=X){if(P){for(;R.x<X;)U.setCellFromCodePoint(R.x++,0,1,W.fg,W.bg,W.extended);R.x=0,R.y++,R.y===R.scrollBottom+1?(R.y--,this._onRequestScroll.fire(this._eraseAttrData(),!0)):(R.y>=this._bufferService.rows&&(R.y=this._bufferService.rows-1),R.lines.get(R.ybase+R.y).isWrapped=!0),U=R.lines.get(R.ybase+R.y)}else if(R.x=X-1,F===2)continue}if(z&&(U.insertCells(R.x,F,R.getNullCell(W),W),U.getWidth(X-1)===2&&U.setCellFromCodePoint(X-1,r.NULL_CELL_CODE,r.NULL_CELL_WIDTH,W.fg,W.bg,W.extended)),U.setCellFromCodePoint(R.x++,_,F,W.fg,W.bg,W.extended),F>0)for(;--F;)U.setCellFromCodePoint(R.x++,0,0,W.fg,W.bg,W.extended)}else U.getWidth(R.x-1)?U.addCodepointToCell(R.x-1,_):U.addCodepointToCell(R.x-2,_)}I-C>0&&(U.loadCell(R.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),R.x<X&&I-C>0&&U.getWidth(R.x)===0&&!U.hasContent(R.x)&&U.setCellFromCodePoint(R.x,0,1,W.fg,W.bg,W.extended),this._dirtyRowService.markDirty(R.y)},O.prototype.addCsiHandler=function(E,C){var I=this;return E.final!=="t"||E.prefix||E.intermediates?this._parser.addCsiHandler(E,C):this._parser.addCsiHandler(E,function(_){return!b(_.params[0],I._optionsService.options.windowOptions)||C(_)})},O.prototype.addDcsHandler=function(E,C){return this._parser.addDcsHandler(E,new g.DcsHandler(C))},O.prototype.addEscHandler=function(E,C){return this._parser.addEscHandler(E,C)},O.prototype.addOscHandler=function(E,C){return this._parser.addOscHandler(E,new h.OscHandler(C))},O.prototype.bell=function(){this._onRequestBell.fire()},O.prototype.lineFeed=function(){var E=this._bufferService.buffer;this._dirtyRowService.markDirty(E.y),this._optionsService.options.convertEol&&(E.x=0),E.y++,E.y===E.scrollBottom+1?(E.y--,this._onRequestScroll.fire(this._eraseAttrData())):E.y>=this._bufferService.rows&&(E.y=this._bufferService.rows-1),E.x>=this._bufferService.cols&&E.x--,this._dirtyRowService.markDirty(E.y),this._onLineFeed.fire()},O.prototype.carriageReturn=function(){this._bufferService.buffer.x=0},O.prototype.backspace=function(){var E,C=this._bufferService.buffer;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),void(C.x>0&&C.x--);if(this._restrictCursor(this._bufferService.cols),C.x>0)C.x--;else if(C.x===0&&C.y>C.scrollTop&&C.y<=C.scrollBottom&&((E=C.lines.get(C.ybase+C.y))===null||E===void 0?void 0:E.isWrapped)){C.lines.get(C.ybase+C.y).isWrapped=!1,C.y--,C.x=this._bufferService.cols-1;var I=C.lines.get(C.ybase+C.y);I.hasWidth(C.x)&&!I.hasContent(C.x)&&C.x--}this._restrictCursor()},O.prototype.tab=function(){if(!(this._bufferService.buffer.x>=this._bufferService.cols)){var E=this._bufferService.buffer.x;this._bufferService.buffer.x=this._bufferService.buffer.nextStop(),this._optionsService.options.screenReaderMode&&this._onA11yTab.fire(this._bufferService.buffer.x-E)}},O.prototype.shiftOut=function(){this._charsetService.setgLevel(1)},O.prototype.shiftIn=function(){this._charsetService.setgLevel(0)},O.prototype._restrictCursor=function(E){E===void 0&&(E=this._bufferService.cols-1),this._bufferService.buffer.x=Math.min(E,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)},O.prototype._setCursor=function(E,C){this._dirtyRowService.markDirty(this._bufferService.buffer.y),this._coreService.decPrivateModes.origin?(this._bufferService.buffer.x=E,this._bufferService.buffer.y=this._bufferService.buffer.scrollTop+C):(this._bufferService.buffer.x=E,this._bufferService.buffer.y=C),this._restrictCursor(),this._dirtyRowService.markDirty(this._bufferService.buffer.y)},O.prototype._moveCursor=function(E,C){this._restrictCursor(),this._setCursor(this._bufferService.buffer.x+E,this._bufferService.buffer.y+C)},O.prototype.cursorUp=function(E){var C=this._bufferService.buffer.y-this._bufferService.buffer.scrollTop;C>=0?this._moveCursor(0,-Math.min(C,E.params[0]||1)):this._moveCursor(0,-(E.params[0]||1))},O.prototype.cursorDown=function(E){var C=this._bufferService.buffer.scrollBottom-this._bufferService.buffer.y;C>=0?this._moveCursor(0,Math.min(C,E.params[0]||1)):this._moveCursor(0,E.params[0]||1)},O.prototype.cursorForward=function(E){this._moveCursor(E.params[0]||1,0)},O.prototype.cursorBackward=function(E){this._moveCursor(-(E.params[0]||1),0)},O.prototype.cursorNextLine=function(E){this.cursorDown(E),this._bufferService.buffer.x=0},O.prototype.cursorPrecedingLine=function(E){this.cursorUp(E),this._bufferService.buffer.x=0},O.prototype.cursorCharAbsolute=function(E){this._setCursor((E.params[0]||1)-1,this._bufferService.buffer.y)},O.prototype.cursorPosition=function(E){this._setCursor(E.length>=2?(E.params[1]||1)-1:0,(E.params[0]||1)-1)},O.prototype.charPosAbsolute=function(E){this._setCursor((E.params[0]||1)-1,this._bufferService.buffer.y)},O.prototype.hPositionRelative=function(E){this._moveCursor(E.params[0]||1,0)},O.prototype.linePosAbsolute=function(E){this._setCursor(this._bufferService.buffer.x,(E.params[0]||1)-1)},O.prototype.vPositionRelative=function(E){this._moveCursor(0,E.params[0]||1)},O.prototype.hVPosition=function(E){this.cursorPosition(E)},O.prototype.tabClear=function(E){var C=E.params[0];C===0?delete this._bufferService.buffer.tabs[this._bufferService.buffer.x]:C===3&&(this._bufferService.buffer.tabs={})},O.prototype.cursorForwardTab=function(E){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var C=E.params[0]||1;C--;)this._bufferService.buffer.x=this._bufferService.buffer.nextStop()},O.prototype.cursorBackwardTab=function(E){if(!(this._bufferService.buffer.x>=this._bufferService.cols))for(var C=E.params[0]||1,I=this._bufferService.buffer;C--;)I.x=I.prevStop()},O.prototype._eraseInBufferLine=function(E,C,I,_){_===void 0&&(_=!1);var F=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+E);F.replaceCells(C,I,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),_&&(F.isWrapped=!1)},O.prototype._resetBufferLine=function(E){var C=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+E);C.fill(this._bufferService.buffer.getNullCell(this._eraseAttrData())),C.isWrapped=!1},O.prototype.eraseInDisplay=function(E){var C;switch(this._restrictCursor(),E.params[0]){case 0:for(C=this._bufferService.buffer.y,this._dirtyRowService.markDirty(C),this._eraseInBufferLine(C++,this._bufferService.buffer.x,this._bufferService.cols,this._bufferService.buffer.x===0);C<this._bufferService.rows;C++)this._resetBufferLine(C);this._dirtyRowService.markDirty(C);break;case 1:for(C=this._bufferService.buffer.y,this._dirtyRowService.markDirty(C),this._eraseInBufferLine(C,0,this._bufferService.buffer.x+1,!0),this._bufferService.buffer.x+1>=this._bufferService.cols&&(this._bufferService.buffer.lines.get(C+1).isWrapped=!1);C--;)this._resetBufferLine(C);this._dirtyRowService.markDirty(0);break;case 2:for(C=this._bufferService.rows,this._dirtyRowService.markDirty(C-1);C--;)this._resetBufferLine(C);this._dirtyRowService.markDirty(0);break;case 3:var I=this._bufferService.buffer.lines.length-this._bufferService.rows;I>0&&(this._bufferService.buffer.lines.trimStart(I),this._bufferService.buffer.ybase=Math.max(this._bufferService.buffer.ybase-I,0),this._bufferService.buffer.ydisp=Math.max(this._bufferService.buffer.ydisp-I,0),this._onScroll.fire(0))}},O.prototype.eraseInLine=function(E){switch(this._restrictCursor(),E.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)},O.prototype.insertLines=function(E){this._restrictCursor();var C=E.params[0]||1,I=this._bufferService.buffer;if(!(I.y>I.scrollBottom||I.y<I.scrollTop)){for(var _=I.ybase+I.y,F=this._bufferService.rows-1-I.scrollBottom,R=this._bufferService.rows-1+I.ybase-F+1;C--;)I.lines.splice(R-1,1),I.lines.splice(_,0,I.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(I.y,I.scrollBottom),I.x=0}},O.prototype.deleteLines=function(E){this._restrictCursor();var C=E.params[0]||1,I=this._bufferService.buffer;if(!(I.y>I.scrollBottom||I.y<I.scrollTop)){var _,F=I.ybase+I.y;for(_=this._bufferService.rows-1-I.scrollBottom,_=this._bufferService.rows-1+I.ybase-_;C--;)I.lines.splice(F,1),I.lines.splice(_,0,I.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(I.y,I.scrollBottom),I.x=0}},O.prototype.insertChars=function(E){this._restrictCursor();var C=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);C&&(C.insertCells(this._bufferService.buffer.x,E.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},O.prototype.deleteChars=function(E){this._restrictCursor();var C=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);C&&(C.deleteCells(this._bufferService.buffer.x,E.params[0]||1,this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},O.prototype.scrollUp=function(E){for(var C=E.params[0]||1,I=this._bufferService.buffer;C--;)I.lines.splice(I.ybase+I.scrollTop,1),I.lines.splice(I.ybase+I.scrollBottom,0,I.getBlankLine(this._eraseAttrData()));this._dirtyRowService.markRangeDirty(I.scrollTop,I.scrollBottom)},O.prototype.scrollDown=function(E){for(var C=E.params[0]||1,I=this._bufferService.buffer;C--;)I.lines.splice(I.ybase+I.scrollBottom,1),I.lines.splice(I.ybase+I.scrollTop,0,I.getBlankLine(e.DEFAULT_ATTR_DATA));this._dirtyRowService.markRangeDirty(I.scrollTop,I.scrollBottom)},O.prototype.scrollLeft=function(E){var C=this._bufferService.buffer;if(!(C.y>C.scrollBottom||C.y<C.scrollTop)){for(var I=E.params[0]||1,_=C.scrollTop;_<=C.scrollBottom;++_){var F=C.lines.get(C.ybase+_);F.deleteCells(0,I,C.getNullCell(this._eraseAttrData()),this._eraseAttrData()),F.isWrapped=!1}this._dirtyRowService.markRangeDirty(C.scrollTop,C.scrollBottom)}},O.prototype.scrollRight=function(E){var C=this._bufferService.buffer;if(!(C.y>C.scrollBottom||C.y<C.scrollTop)){for(var I=E.params[0]||1,_=C.scrollTop;_<=C.scrollBottom;++_){var F=C.lines.get(C.ybase+_);F.insertCells(0,I,C.getNullCell(this._eraseAttrData()),this._eraseAttrData()),F.isWrapped=!1}this._dirtyRowService.markRangeDirty(C.scrollTop,C.scrollBottom)}},O.prototype.insertColumns=function(E){var C=this._bufferService.buffer;if(!(C.y>C.scrollBottom||C.y<C.scrollTop)){for(var I=E.params[0]||1,_=C.scrollTop;_<=C.scrollBottom;++_){var F=this._bufferService.buffer.lines.get(C.ybase+_);F.insertCells(C.x,I,C.getNullCell(this._eraseAttrData()),this._eraseAttrData()),F.isWrapped=!1}this._dirtyRowService.markRangeDirty(C.scrollTop,C.scrollBottom)}},O.prototype.deleteColumns=function(E){var C=this._bufferService.buffer;if(!(C.y>C.scrollBottom||C.y<C.scrollTop)){for(var I=E.params[0]||1,_=C.scrollTop;_<=C.scrollBottom;++_){var F=C.lines.get(C.ybase+_);F.deleteCells(C.x,I,C.getNullCell(this._eraseAttrData()),this._eraseAttrData()),F.isWrapped=!1}this._dirtyRowService.markRangeDirty(C.scrollTop,C.scrollBottom)}},O.prototype.eraseChars=function(E){this._restrictCursor();var C=this._bufferService.buffer.lines.get(this._bufferService.buffer.ybase+this._bufferService.buffer.y);C&&(C.replaceCells(this._bufferService.buffer.x,this._bufferService.buffer.x+(E.params[0]||1),this._bufferService.buffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowService.markDirty(this._bufferService.buffer.y))},O.prototype.repeatPrecedingCharacter=function(E){if(this._parser.precedingCodepoint){for(var C=E.params[0]||1,I=new Uint32Array(C),_=0;_<C;++_)I[_]=this._parser.precedingCodepoint;this.print(I,0,I.length)}},O.prototype.sendDeviceAttributesPrimary=function(E){E.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"))},O.prototype.sendDeviceAttributesSecondary=function(E){E.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(E.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(d.C0.ESC+"[>83;40003;0c"))},O.prototype._is=function(E){return(this._optionsService.options.termName+"").indexOf(E)===0},O.prototype.setMode=function(E){for(var C=0;C<E.length;C++)switch(E.params[C]){case 4:this._coreService.modes.insertMode=!0}},O.prototype.setModePrivate=function(E){for(var C=0;C<E.length;C++)switch(E.params[C]){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}},O.prototype.resetMode=function(E){for(var C=0;C<E.length;C++)switch(E.params[C]){case 4:this._coreService.modes.insertMode=!1}},O.prototype.resetModePrivate=function(E){for(var C=0;C<E.length;C++)switch(E.params[C]){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(),E.params[C]===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}},O.prototype._updateAttrColor=function(E,C,I,_,F){return C===2?(E|=50331648,E&=-16777216,E|=c.AttributeData.fromColorRGB([I,_,F])):C===5&&(E&=-50331904,E|=33554432|255&I),E},O.prototype._extractColor=function(E,C,I){var _=[0,0,-1,0,0,0],F=0,R=0;do{if(_[R+F]=E.params[C+R],E.hasSubParams(C+R)){var B=E.getSubParams(C+R),M=0;do _[1]===5&&(F=1),_[R+M+1+F]=B[M];while(++M<B.length&&M+R+1+F<_.length);break}if(_[1]===5&&R+F>=2||_[1]===2&&R+F>=5)break;_[1]&&(F=1)}while(++R+C<E.length&&R+F<_.length);for(M=2;M<_.length;++M)_[M]===-1&&(_[M]=0);switch(_[0]){case 38:I.fg=this._updateAttrColor(I.fg,_[1],_[3],_[4],_[5]);break;case 48:I.bg=this._updateAttrColor(I.bg,_[1],_[3],_[4],_[5]);break;case 58:I.extended=I.extended.clone(),I.extended.underlineColor=this._updateAttrColor(I.extended.underlineColor,_[1],_[3],_[4],_[5])}return R},O.prototype._processUnderline=function(E,C){C.extended=C.extended.clone(),(!~E||E>5)&&(E=1),C.extended.underlineStyle=E,C.fg|=268435456,E===0&&(C.fg&=-268435457),C.updateExtended()},O.prototype.charAttributes=function(E){if(E.length===1&&E.params[0]===0)return this._curAttrData.fg=e.DEFAULT_ATTR_DATA.fg,void(this._curAttrData.bg=e.DEFAULT_ATTR_DATA.bg);for(var C,I=E.length,_=this._curAttrData,F=0;F<I;F++)(C=E.params[F])>=30&&C<=37?(_.fg&=-50331904,_.fg|=16777216|C-30):C>=40&&C<=47?(_.bg&=-50331904,_.bg|=16777216|C-40):C>=90&&C<=97?(_.fg&=-50331904,_.fg|=16777224|C-90):C>=100&&C<=107?(_.bg&=-50331904,_.bg|=16777224|C-100):C===0?(_.fg=e.DEFAULT_ATTR_DATA.fg,_.bg=e.DEFAULT_ATTR_DATA.bg):C===1?_.fg|=134217728:C===3?_.bg|=67108864:C===4?(_.fg|=268435456,this._processUnderline(E.hasSubParams(F)?E.getSubParams(F)[0]:1,_)):C===5?_.fg|=536870912:C===7?_.fg|=67108864:C===8?_.fg|=1073741824:C===2?_.bg|=134217728:C===21?this._processUnderline(2,_):C===22?(_.fg&=-134217729,_.bg&=-134217729):C===23?_.bg&=-67108865:C===24?_.fg&=-268435457:C===25?_.fg&=-536870913:C===27?_.fg&=-67108865:C===28?_.fg&=-1073741825:C===39?(_.fg&=-67108864,_.fg|=16777215&e.DEFAULT_ATTR_DATA.fg):C===49?(_.bg&=-67108864,_.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):C===38||C===48||C===58?F+=this._extractColor(E,F,_):C===59?(_.extended=_.extended.clone(),_.extended.underlineColor=-1,_.updateExtended()):C===100?(_.fg&=-67108864,_.fg|=16777215&e.DEFAULT_ATTR_DATA.fg,_.bg&=-67108864,_.bg|=16777215&e.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",C)},O.prototype.deviceStatus=function(E){switch(E.params[0]){case 5:this._coreService.triggerDataEvent(d.C0.ESC+"[0n");break;case 6:var C=this._bufferService.buffer.y+1,I=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(d.C0.ESC+"["+C+";"+I+"R")}},O.prototype.deviceStatusPrivate=function(E){switch(E.params[0]){case 6:var C=this._bufferService.buffer.y+1,I=this._bufferService.buffer.x+1;this._coreService.triggerDataEvent(d.C0.ESC+"[?"+C+";"+I+"R")}},O.prototype.softReset=function(E){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},O.prototype.setCursorStyle=function(E){var C=E.params[0]||1;switch(C){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 I=C%2==1;this._optionsService.options.cursorBlink=I},O.prototype.setScrollRegion=function(E){var C,I=E.params[0]||1;(E.length<2||(C=E.params[1])>this._bufferService.rows||C===0)&&(C=this._bufferService.rows),C>I&&(this._bufferService.buffer.scrollTop=I-1,this._bufferService.buffer.scrollBottom=C-1,this._setCursor(0,0))},O.prototype.windowOptions=function(E){if(b(E.params[0],this._optionsService.options.windowOptions)){var C=E.length>1?E.params[1]:0;switch(E.params[0]){case 14:C!==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:C!==0&&C!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),C!==0&&C!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:C!==0&&C!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),C!==0&&C!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}}},O.prototype.saveCursor=function(E){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},O.prototype.restoreCursor=function(E){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()},O.prototype.setTitle=function(E){this._windowTitle=E,this._onTitleChange.fire(E)},O.prototype.setIconName=function(E){this._iconName=E},O.prototype.nextLine=function(){this._bufferService.buffer.x=0,this.index()},O.prototype.keypadApplicationMode=function(){this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire()},O.prototype.keypadNumericMode=function(){this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire()},O.prototype.selectDefaultCharset=function(){this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,l.DEFAULT_CHARSET)},O.prototype.selectCharset=function(E){E.length===2?E[0]!=="/"&&this._charsetService.setgCharset(v[E[0]],l.CHARSETS[E[1]]||l.DEFAULT_CHARSET):this.selectDefaultCharset()},O.prototype.index=function(){this._restrictCursor();var E=this._bufferService.buffer;this._bufferService.buffer.y++,E.y===E.scrollBottom+1?(E.y--,this._onRequestScroll.fire(this._eraseAttrData())):E.y>=this._bufferService.rows&&(E.y=this._bufferService.rows-1),this._restrictCursor()},O.prototype.tabSet=function(){this._bufferService.buffer.tabs[this._bufferService.buffer.x]=!0},O.prototype.reverseIndex=function(){this._restrictCursor();var E=this._bufferService.buffer;if(E.y===E.scrollTop){var C=E.scrollBottom-E.scrollTop;E.lines.shiftElements(E.ybase+E.y,C,1),E.lines.set(E.ybase+E.y,E.getBlankLine(this._eraseAttrData())),this._dirtyRowService.markRangeDirty(E.scrollTop,E.scrollBottom)}else E.y--,this._restrictCursor()},O.prototype.fullReset=function(){this._parser.reset(),this._onRequestReset.fire()},O.prototype.reset=function(){this._curAttrData=e.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=e.DEFAULT_ATTR_DATA.clone()},O.prototype._eraseAttrData=function(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal},O.prototype.setgLevel=function(E){this._charsetService.setgLevel(E)},O.prototype.screenAlignmentPattern=function(){var E=new s.CellData;E.content=1<<22|"E".charCodeAt(0),E.fg=this._curAttrData.fg,E.bg=this._curAttrData.bg;var C=this._bufferService.buffer;this._setCursor(0,0);for(var I=0;I<this._bufferService.rows;++I){var _=C.ybase+C.y+I,F=C.lines.get(_);F&&(F.fill(E),F.isWrapped=!1)}this._dirtyRowService.markAllDirty(),this._setCursor(0,0)},O}(n.Disposable);p.InputHandler=x},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DEFAULT_CHARSET=p.CHARSETS=void 0,p.CHARSETS={},p.DEFAULT_CHARSET=p.CHARSETS.B,p.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"},p.CHARSETS.A={"#":"\xA3"},p.CHARSETS.B=void 0,p.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},p.CHARSETS.C=p.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},p.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},p.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},p.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},p.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},p.CHARSETS.E=p.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},p.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},p.CHARSETS.H=p.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},p.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.Params=void 0;var A=function(){function m(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 m.fromArray=function(f){var d=new m;if(!f.length)return d;for(var l=f[0]instanceof Array?1:0;l<f.length;++l){var o=f[l];if(o instanceof Array)for(var n=0;n<o.length;++n)d.addSubParam(o[n]);else d.addParam(o)}return d},m.prototype.clone=function(){var f=new m(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},m.prototype.toArray=function(){for(var f=[],d=0;d<this.length;++d){f.push(this.params[d]);var l=this._subParamsIdx[d]>>8,o=255&this._subParamsIdx[d];o-l>0&&f.push(Array.prototype.slice.call(this._subParams,l,o))}return f},m.prototype.reset=function(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1},m.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}},m.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]++}},m.prototype.hasSubParams=function(f){return(255&this._subParamsIdx[f])-(this._subParamsIdx[f]>>8)>0},m.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},m.prototype.getSubParamsAll=function(){for(var f={},d=0;d<this.length;++d){var l=this._subParamsIdx[d]>>8,o=255&this._subParamsIdx[d];o-l>0&&(f[d]=this._subParams.slice(l,o))}return f},m.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,o=l[d-1];l[d-1]=~o?Math.min(10*o+f,2147483647):f}},m}();p.Params=A},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.OscHandler=p.OscParser=void 0;var A=S(23),m=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(o,n){this._handlers[o]===void 0&&(this._handlers[o]=[]);var t=this._handlers[o];return t.push(n),{dispose:function(){var e=t.indexOf(n);e!==-1&&t.splice(e,1)}}},l.prototype.setHandler=function(o,n){this._handlers[o]=[n]},l.prototype.clearHandler=function(o){this._handlers[o]&&delete this._handlers[o]},l.prototype.setHandlerFallback=function(o){this._handlerFb=o},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 o=this._handlers[this._id];if(o)for(var n=o.length-1;n>=0;n--)o[n].start();else this._handlerFb(this._id,"START")},l.prototype._put=function(o,n,t){var a=this._handlers[this._id];if(a)for(var e=a.length-1;e>=0;e--)a[e].put(o,n,t);else this._handlerFb(this._id,"PUT",m.utf32ToString(o,n,t))},l.prototype._end=function(o){var n=this._handlers[this._id];if(n){for(var t=n.length-1;t>=0&&n[t].end(o)===!1;t--);for(t--;t>=0;t--)n[t].end(!1)}else this._handlerFb(this._id,"END",o)},l.prototype.start=function(){this.reset(),this._id=-1,this._state=1},l.prototype.put=function(o,n,t){if(this._state!==3){if(this._state===1)for(;n<t;){var a=o[n++];if(a===59){this._state=2,this._start();break}if(a<48||57<a)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+a-48}this._state===2&&t-n>0&&this._put(o,n,t)}},l.prototype.end=function(o){this._state!==0&&(this._state!==3&&(this._state===1&&this._start(),this._end(o)),this._id=-1,this._state=0)},l}();p.OscParser=f;var d=function(){function l(o){this._handler=o,this._data="",this._hitLimit=!1}return l.prototype.start=function(){this._data="",this._hitLimit=!1},l.prototype.put=function(o,n,t){this._hitLimit||(this._data+=m.utf32ToString(o,n,t),this._data.length>A.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},l.prototype.end=function(o){var n;return this._hitLimit?n=!1:o&&(n=this._handler(this._data)),this._data="",this._hitLimit=!1,n},l}();p.OscHandler=d},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.PAYLOAD_LIMIT=void 0,p.PAYLOAD_LIMIT=1e7},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DcsHandler=p.DcsParser=void 0;var A=S(8),m=S(21),f=S(23),d=[],l=function(){function n(){this._handlers=Object.create(null),this._active=d,this._ident=0,this._handlerFb=function(){}}return n.prototype.dispose=function(){this._handlers=Object.create(null),this._handlerFb=function(){}},n.prototype.addHandler=function(t,a){this._handlers[t]===void 0&&(this._handlers[t]=[]);var e=this._handlers[t];return e.push(a),{dispose:function(){var r=e.indexOf(a);r!==-1&&e.splice(r,1)}}},n.prototype.setHandler=function(t,a){this._handlers[t]=[a]},n.prototype.clearHandler=function(t){this._handlers[t]&&delete this._handlers[t]},n.prototype.setHandlerFallback=function(t){this._handlerFb=t},n.prototype.reset=function(){this._active.length&&this.unhook(!1),this._active=d,this._ident=0},n.prototype.hook=function(t,a){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(a);else this._handlerFb(this._ident,"HOOK",a)},n.prototype.put=function(t,a,e){if(this._active.length)for(var u=this._active.length-1;u>=0;u--)this._active[u].put(t,a,e);else this._handlerFb(this._ident,"PUT",A.utf32ToString(t,a,e))},n.prototype.unhook=function(t){if(this._active.length){for(var a=this._active.length-1;a>=0&&this._active[a].unhook(t)===!1;a--);for(a--;a>=0;a--)this._active[a].unhook(!1)}else this._handlerFb(this._ident,"UNHOOK",t);this._active=d,this._ident=0},n}();p.DcsParser=l;var o=function(){function n(t){this._handler=t,this._data="",this._hitLimit=!1}return n.prototype.hook=function(t){this._params=t.clone(),this._data="",this._hitLimit=!1},n.prototype.put=function(t,a,e){this._hitLimit||(this._data+=A.utf32ToString(t,a,e),this._data.length>f.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))},n.prototype.unhook=function(t){var a;return this._hitLimit?a=!1:t&&(a=this._handler(this._data,this._params||new m.Params)),this._params=void 0,this._data="",this._hitLimit=!1,a},n}();p.DcsHandler=o},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.removeTerminalFromCache=p.acquireCharAtlas=void 0;var A=S(26),m=S(43),f=[];p.acquireCharAtlas=function(d,l,o,n,t){for(var a=A.generateConfig(n,t,d,o),e=0;e<f.length;e++){var u=(r=f[e]).ownedBy.indexOf(l);if(u>=0){if(A.configEquals(r.config,a))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(A.configEquals(r.config,a))return r.ownedBy.push(l),r.atlas}var s={atlas:new m.DynamicCharAtlas(document,a),config:a,ownedBy:[l]};return f.push(s),s.atlas},p.removeTerminalFromCache=function(d){for(var l=0;l<f.length;l++){var o=f[l].ownedBy.indexOf(d);if(o!==-1){f[l].ownedBy.length===1?(f[l].atlas.dispose(),f.splice(l,1)):f[l].ownedBy.splice(o,1);break}}}},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.is256Color=p.configEquals=p.generateConfig=void 0;var A=S(3);p.generateConfig=function(m,f,d,l){var o={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:m,scaledCharHeight:f,fontFamily:d.fontFamily,fontSize:d.fontSize,fontWeight:d.fontWeight,fontWeightBold:d.fontWeightBold,allowTransparency:d.allowTransparency,colors:o}},p.configEquals=function(m,f){for(var d=0;d<m.colors.ansi.length;d++)if(m.colors.ansi[d].rgba!==f.colors.ansi[d].rgba)return!1;return m.devicePixelRatio===f.devicePixelRatio&&m.fontFamily===f.fontFamily&&m.fontSize===f.fontSize&&m.fontWeight===f.fontWeight&&m.fontWeightBold===f.fontWeightBold&&m.allowTransparency===f.allowTransparency&&m.scaledCharWidth===f.scaledCharWidth&&m.scaledCharHeight===f.scaledCharHeight&&m.colors.foreground===f.colors.foreground&&m.colors.background===f.colors.background},p.is256Color=function(m){return m<A.DEFAULT_COLOR}},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ColorManager=p.DEFAULT_ANSI_COLORS=void 0;var A=S(10),m=S(45),f=A.css.toColor("#ffffff"),d=A.css.toColor("#000000"),l=A.css.toColor("#ffffff"),o=A.css.toColor("#000000"),n={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};p.DEFAULT_ANSI_COLORS=function(){for(var a=[A.css.toColor("#2e3436"),A.css.toColor("#cc0000"),A.css.toColor("#4e9a06"),A.css.toColor("#c4a000"),A.css.toColor("#3465a4"),A.css.toColor("#75507b"),A.css.toColor("#06989a"),A.css.toColor("#d3d7cf"),A.css.toColor("#555753"),A.css.toColor("#ef2929"),A.css.toColor("#8ae234"),A.css.toColor("#fce94f"),A.css.toColor("#729fcf"),A.css.toColor("#ad7fa8"),A.css.toColor("#34e2e2"),A.css.toColor("#eeeeec")],e=[0,95,135,175,215,255],u=0;u<216;u++){var r=e[u/36%6|0],s=e[u/6%6|0],c=e[u%6];a.push({css:A.channels.toCss(r,s,c),rgba:A.channels.toRgba(r,s,c)})}for(u=0;u<24;u++){var h=8+10*u;a.push({css:A.channels.toCss(h,h,h),rgba:A.channels.toRgba(h,h,h)})}return a}();var t=function(){function a(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 m.ColorContrastCache,this.colors={foreground:f,background:d,cursor:l,cursorAccent:o,selectionTransparent:n,selectionOpaque:A.color.blend(d,n),ansi:p.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache}}return a.prototype.onOptionsChange=function(e){e==="minimumContrastRatio"&&this._contrastCache.clear()},a.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,o,!0),this.colors.selectionTransparent=this._parseColor(e.selection,n,!0),this.colors.selectionOpaque=A.color.blend(this.colors.background,this.colors.selectionTransparent),A.color.isOpaque(this.colors.selectionTransparent))&&(this.colors.selectionTransparent=A.color.opacity(this.colors.selectionTransparent,.3)),this.colors.ansi[0]=this._parseColor(e.black,p.DEFAULT_ANSI_COLORS[0]),this.colors.ansi[1]=this._parseColor(e.red,p.DEFAULT_ANSI_COLORS[1]),this.colors.ansi[2]=this._parseColor(e.green,p.DEFAULT_ANSI_COLORS[2]),this.colors.ansi[3]=this._parseColor(e.yellow,p.DEFAULT_ANSI_COLORS[3]),this.colors.ansi[4]=this._parseColor(e.blue,p.DEFAULT_ANSI_COLORS[4]),this.colors.ansi[5]=this._parseColor(e.magenta,p.DEFAULT_ANSI_COLORS[5]),this.colors.ansi[6]=this._parseColor(e.cyan,p.DEFAULT_ANSI_COLORS[6]),this.colors.ansi[7]=this._parseColor(e.white,p.DEFAULT_ANSI_COLORS[7]),this.colors.ansi[8]=this._parseColor(e.brightBlack,p.DEFAULT_ANSI_COLORS[8]),this.colors.ansi[9]=this._parseColor(e.brightRed,p.DEFAULT_ANSI_COLORS[9]),this.colors.ansi[10]=this._parseColor(e.brightGreen,p.DEFAULT_ANSI_COLORS[10]),this.colors.ansi[11]=this._parseColor(e.brightYellow,p.DEFAULT_ANSI_COLORS[11]),this.colors.ansi[12]=this._parseColor(e.brightBlue,p.DEFAULT_ANSI_COLORS[12]),this.colors.ansi[13]=this._parseColor(e.brightMagenta,p.DEFAULT_ANSI_COLORS[13]),this.colors.ansi[14]=this._parseColor(e.brightCyan,p.DEFAULT_ANSI_COLORS[14]),this.colors.ansi[15]=this._parseColor(e.brightWhite,p.DEFAULT_ANSI_COLORS[15]),this._contrastCache.clear()},a.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(x){return Number(x)}),h=c[0],g=c[1],v=c[2],b=c[3],w=Math.round(255*b);return{rgba:A.channels.toRgba(h,g,v,w),css:e}}return{css:this._ctx.fillStyle,rgba:A.channels.toRgba(s[0],s[1],s[2],s[3])}},a}();p.ColorManager=t},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.throwIfFalsy=void 0,p.throwIfFalsy=function(A){if(!A)throw new Error("value must not be falsy");return A}},function(y,p,S){"use strict";var A,m=this&&this.__extends||(A=function(a,e){return(A=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])})(a,e)},function(t,a){function e(){this.constructor=t}A(t,a),t.prototype=a===null?Object.create(a):(e.prototype=a.prototype,new e)});Object.defineProperty(p,"__esModule",{value:!0}),p.CharacterJoinerRegistry=p.JoinedCellData=void 0;var f=S(6),d=S(3),l=S(4),o=function(t){function a(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 m(a,t),a.prototype.isCombined=function(){return 2097152},a.prototype.getWidth=function(){return this._width},a.prototype.getChars=function(){return this.combinedData},a.prototype.getCode=function(){return 2097151},a.prototype.setFromCharData=function(e){throw new Error("not implemented")},a.prototype.getAsCharData=function(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]},a}(f.AttributeData);p.JoinedCellData=o;var n=function(){function t(a){this._bufferService=a,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new l.CellData}return t.prototype.registerCharacterJoiner=function(a){var e={id:this._nextCharacterJoinerId++,handler:a};return this._characterJoiners.push(e),e.id},t.prototype.deregisterCharacterJoiner=function(a){for(var e=0;e<this._characterJoiners.length;e++)if(this._characterJoiners[e].id===a)return this._characterJoiners.splice(e,1),!0;return!1},t.prototype.getJoinedCharacters=function(a){if(this._characterJoiners.length===0)return[];var e=this._bufferService.buffer.lines.get(a);if(!e||e.length===0)return[];for(var u=[],r=e.translateToString(!0),s=0,c=0,h=0,g=e.getFg(0),v=e.getBg(0),b=0;b<e.getTrimmedLength();b++)if(e.loadCell(b,this._workCell),this._workCell.getWidth()!==0){if(this._workCell.fg!==g||this._workCell.bg!==v){if(b-s>1)for(var w=this._getJoinedRanges(r,h,c,e,s),x=0;x<w.length;x++)u.push(w[x]);s=b,h=c,g=this._workCell.fg,v=this._workCell.bg}c+=this._workCell.getChars().length||d.WHITESPACE_CELL_CHAR.length}if(this._bufferService.cols-s>1)for(w=this._getJoinedRanges(r,h,c,e,s),x=0;x<w.length;x++)u.push(w[x]);return u},t.prototype._getJoinedRanges=function(a,e,u,r,s){for(var c=a.substring(e,u),h=this._characterJoiners[0].handler(c),g=1;g<this._characterJoiners.length;g++)for(var v=this._characterJoiners[g].handler(c),b=0;b<v.length;b++)t._mergeRanges(h,v[b]);return this._stringRangesToCellRanges(h,r,s),h},t.prototype._stringRangesToCellRanges=function(a,e,u){var r=0,s=!1,c=0,h=a[r];if(h){for(var g=u;g<this._bufferService.cols;g++){var v=e.getWidth(g),b=e.getString(g).length||d.WHITESPACE_CELL_CHAR.length;if(v!==0){if(!s&&h[0]<=c&&(h[0]=g,s=!0),h[1]<=c){if(h[1]=g,!(h=a[++r]))break;h[0]<=c?(h[0]=g,s=!0):s=!1}c+=b}}h&&(h[1]=this._bufferService.cols)}},t._mergeRanges=function(a,e){for(var u=!1,r=0;r<a.length;r++){var s=a[r];if(u){if(e[1]<=s[0])return a[r-1][1]=e[1],a;if(e[1]<=s[1])return a[r-1][1]=Math.max(e[1],s[1]),a.splice(r,1),a;a.splice(r,1),r--}else{if(e[1]<=s[0])return a.splice(r,0,e),a;if(e[1]<=s[1])return s[0]=Math.min(e[0],s[0]),a;e[0]<s[1]&&(s[0]=Math.min(e[0],s[0]),u=!0)}}return u?a[a.length-1][1]=e[1]:a.push(e),a},t}();p.CharacterJoinerRegistry=n},function(y,p,S){"use strict";function A(m,f){var d=f.getBoundingClientRect();return[m.clientX-d.left,m.clientY-d.top]}Object.defineProperty(p,"__esModule",{value:!0}),p.getRawByteCoords=p.getCoords=p.getCoordsRelativeToElement=void 0,p.getCoordsRelativeToElement=A,p.getCoords=function(m,f,d,l,o,n,t,a){if(o){var e=A(m,f);if(e)return e[0]=Math.ceil((e[0]+(a?n/2:0))/n),e[1]=Math.ceil(e[1]/t),e[0]=Math.min(Math.max(e[0],1),d+(a?1:0)),e[1]=Math.min(Math.max(e[1],1),l),e}},p.getRawByteCoords=function(m){if(m)return{x:m[0]+32,y:m[1]+32}}},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.RenderDebouncer=void 0;var A=function(){function m(f){this._renderCallback=f}return m.prototype.dispose=function(){this._animationFrame&&(window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)},m.prototype.refresh=function(f,d,l){var o=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 o._innerRefresh()}))},m.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)}},m}();p.RenderDebouncer=A},function(y,p,S){"use strict";var A,m=this&&this.__extends||(A=function(l,o){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var a in t)t.hasOwnProperty(a)&&(n[a]=t[a])})(l,o)},function(d,l){function o(){this.constructor=d}A(d,l),d.prototype=l===null?Object.create(l):(o.prototype=l.prototype,new o)});Object.defineProperty(p,"__esModule",{value:!0}),p.ScreenDprMonitor=void 0;var f=function(d){function l(){var o=d!==null&&d.apply(this,arguments)||this;return o._currentDevicePixelRatio=window.devicePixelRatio,o}return m(l,d),l.prototype.setListener=function(o){var n=this;this._listener&&this.clearListener(),this._listener=o,this._outerListener=function(){n._listener&&(n._listener(window.devicePixelRatio,n._currentDevicePixelRatio),n._updateDpr())},this._updateDpr()},l.prototype.dispose=function(){d.prototype.dispose.call(this),this.clearListener()},l.prototype._updateDpr=function(){var o;this._outerListener&&((o=this._resolutionMediaMatchList)===null||o===void 0||o.removeListener(this._outerListener),this._currentDevicePixelRatio=window.devicePixelRatio,this._resolutionMediaMatchList=window.matchMedia("screen and (resolution: "+window.devicePixelRatio+"dppx)"),this._resolutionMediaMatchList.addListener(this._outerListener))},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);p.ScreenDprMonitor=f},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.clone=void 0,p.clone=function A(m,f){if(f===void 0&&(f=5),typeof m!="object")return m;var d=Array.isArray(m)?[]:{};for(var l in m)d[l]=f<=1?m[l]:m[l]?A(m[l],f-1):m[l];return d}},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.Terminal=void 0;var A=S(4),m=S(35),f=S(18),d=S(0),l=S(83),o=function(){function r(s){this._core=new m.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,g=s;h<g.length;h++){var v=g[h];if(v===1/0||isNaN(v)||v%1!=0)throw new Error("This API only accepts integers")}},r}();p.Terminal=o;var n=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 a(c)},r.prototype.getNullCell=function(){return new A.CellData},r}(),t=function(){function r(s){var c=this;this._buffers=s,this._onBufferChange=new d.EventEmitter,this._normal=new n(this._buffers.normal,"normal"),this._alternate=new n(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}(),a=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 A.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,g){return c(h,g.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,p,S){"use strict";var A,m=this&&this.__extends||(A=function(P,z){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(W,U){W.__proto__=U}||function(W,U){for(var V in U)U.hasOwnProperty(V)&&(W[V]=U[V])})(P,z)},function(X,P){function z(){this.constructor=X}A(X,P),X.prototype=P===null?Object.create(P):(z.prototype=P.prototype,new z)});Object.defineProperty(p,"__esModule",{value:!0}),p.Terminal=void 0;var f=S(36),d=S(37),l=S(38),o=S(12),n=S(19),t=S(40),a=S(50),e=S(51),u=S(11),r=S(7),s=S(18),c=S(54),h=S(55),g=S(56),v=S(57),b=S(59),w=S(0),x=S(16),T=S(27),O=S(60),E=S(5),C=S(61),I=S(62),_=S(63),F=S(64),R=S(65),B=typeof window!="undefined"?window.document:null,M=function(X){function P(z){z===void 0&&(z={});var W=X.call(this,z)||this;return W.browser=u,W._keyDownHandled=!1,W._onCursorMove=new w.EventEmitter,W._onKey=new w.EventEmitter,W._onRender=new w.EventEmitter,W._onSelectionChange=new w.EventEmitter,W._onTitleChange=new w.EventEmitter,W._onFocus=new w.EventEmitter,W._onBlur=new w.EventEmitter,W._onA11yCharEmitter=new w.EventEmitter,W._onA11yTabEmitter=new w.EventEmitter,W._setup(),W.linkifier=W._instantiationService.createInstance(a.Linkifier),W.linkifier2=W.register(W._instantiationService.createInstance(_.Linkifier2)),W.register(W._inputHandler.onRequestBell(function(){return W.bell()})),W.register(W._inputHandler.onRequestRefreshRows(function(U,V){return W.refresh(U,V)})),W.register(W._inputHandler.onRequestReset(function(){return W.reset()})),W.register(W._inputHandler.onRequestScroll(function(U,V){return W.scroll(U,V||void 0)})),W.register(W._inputHandler.onRequestWindowsOptionsReport(function(U){return W._reportWindowsOptions(U)})),W.register(w.forwardEvent(W._inputHandler.onCursorMove,W._onCursorMove)),W.register(w.forwardEvent(W._inputHandler.onTitleChange,W._onTitleChange)),W.register(w.forwardEvent(W._inputHandler.onA11yChar,W._onA11yCharEmitter)),W.register(w.forwardEvent(W._inputHandler.onA11yTab,W._onA11yTabEmitter)),W.register(W._bufferService.onResize(function(U){return W._afterResize(U.cols,U.rows)})),W}return m(P,X),Object.defineProperty(P.prototype,"options",{get:function(){return this.optionsService.options},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onCursorMove",{get:function(){return this._onCursorMove.event},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onKey",{get:function(){return this._onKey.event},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onRender",{get:function(){return this._onRender.event},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onSelectionChange",{get:function(){return this._onSelectionChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onTitleChange",{get:function(){return this._onTitleChange.event},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onFocus",{get:function(){return this._onFocus.event},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onBlur",{get:function(){return this._onBlur.event},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onA11yChar",{get:function(){return this._onA11yCharEmitter.event},enumerable:!1,configurable:!0}),Object.defineProperty(P.prototype,"onA11yTab",{get:function(){return this._onA11yTabEmitter.event},enumerable:!1,configurable:!0}),P.prototype.dispose=function(){var z,W,U;this._isDisposed||(X.prototype.dispose.call(this),(z=this._renderService)===null||z===void 0||z.dispose(),this._customKeyEventHandler=void 0,this.write=function(){},(U=(W=this.element)===null||W===void 0?void 0:W.parentNode)===null||U===void 0||U.removeChild(this.element))},P.prototype._setup=function(){X.prototype._setup.call(this),this._customKeyEventHandler=void 0},Object.defineProperty(P.prototype,"buffer",{get:function(){return this.buffers.active},enumerable:!1,configurable:!0}),P.prototype.focus=function(){this.textarea&&this.textarea.focus({preventScroll:!0})},P.prototype._updateOptions=function(z){var W,U,V,Q;switch(X.prototype._updateOptions.call(this,z),z){case"fontFamily":case"fontSize":(W=this._renderService)===null||W===void 0||W.clear(),(U=this._charSizeService)===null||U===void 0||U.measure();break;case"cursorBlink":case"cursorStyle":this.refresh(this.buffer.y,this.buffer.y);break;case"drawBoldTextInBrightColors":case"letterSpacing":case"lineHeight":case"fontWeight":case"fontWeightBold":case"minimumContrastRatio":this._renderService&&(this._renderService.clear(),this._renderService.onResize(this.cols,this.rows),this.refresh(0,this.rows-1));break;case"rendererType":this._renderService&&(this._renderService.setRenderer(this._createRenderer()),this._renderService.onResize(this.cols,this.rows));break;case"scrollback":(V=this.viewport)===null||V===void 0||V.syncScrollArea();break;case"screenReaderMode":this.optionsService.options.screenReaderMode?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new g.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)}},P.prototype._onTextAreaFocus=function(z){this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(o.C0.ESC+"[I"),this.updateCursorStyle(z),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()},P.prototype.blur=function(){var z;return(z=this.textarea)===null||z===void 0?void 0:z.blur()},P.prototype._onTextAreaBlur=function(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this._coreService.decPrivateModes.sendFocus&&this._coreService.triggerDataEvent(o.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()},P.prototype._syncTextArea=function(){if(this.textarea&&this.buffer.isCursorInViewport&&!this._compositionHelper.isComposing){var z=Math.ceil(this._charSizeService.height*this.optionsService.options.lineHeight),W=this._bufferService.buffer.y*z,U=this._bufferService.buffer.x*this._charSizeService.width;this.textarea.style.left=U+"px",this.textarea.style.top=W+"px",this.textarea.style.width=this._charSizeService.width+"px",this.textarea.style.height=z+"px",this.textarea.style.lineHeight=z+"px",this.textarea.style.zIndex="-5"}},P.prototype._initGlobal=function(){var z=this;this._bindKeys(),this.register(r.addDisposableDomListener(this.element,"copy",function(U){z.hasSelection()&&l.copyHandler(U,z._selectionService)}));var W=function(V){return l.handlePasteEvent(V,z.textarea,z._coreService)};this.register(r.addDisposableDomListener(this.textarea,"paste",W)),this.register(r.addDisposableDomListener(this.element,"paste",W)),u.isFirefox?this.register(r.addDisposableDomListener(this.element,"mousedown",function(U){U.button===2&&l.rightClickHandler(U,z.textarea,z.screenElement,z._selectionService,z.options.rightClickSelectsWord)})):this.register(r.addDisposableDomListener(this.element,"contextmenu",function(U){l.rightClickHandler(U,z.textarea,z.screenElement,z._selectionService,z.options.rightClickSelectsWord)})),u.isLinux&&this.register(r.addDisposableDomListener(this.element,"auxclick",function(U){U.button===1&&l.moveTextAreaUnderMouseCursor(U,z.textarea,z.screenElement)}))},P.prototype._bindKeys=function(){var z=this;this.register(r.addDisposableDomListener(this.textarea,"keyup",function(W){return z._keyUp(W)},!0)),this.register(r.addDisposableDomListener(this.textarea,"keydown",function(W){return z._keyDown(W)},!0)),this.register(r.addDisposableDomListener(this.textarea,"keypress",function(W){return z._keyPress(W)},!0)),this.register(r.addDisposableDomListener(this.textarea,"compositionstart",function(){return z._compositionHelper.compositionstart()})),this.register(r.addDisposableDomListener(this.textarea,"compositionupdate",function(W){return z._compositionHelper.compositionupdate(W)})),this.register(r.addDisposableDomListener(this.textarea,"compositionend",function(){return z._compositionHelper.compositionend()})),this.register(this.onRender(function(){return z._compositionHelper.updateCompositionElements()})),this.register(this.onRender(function(W){return z._queueLinkification(W.start,W.end)}))},P.prototype.open=function(z){var W=this;if(!z)throw new Error("Terminal requires a parent element.");B.body.contains(z)||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=z.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"),z.appendChild(this.element);var U=B.createDocumentFragment();this._viewportElement=B.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),U.appendChild(this._viewportElement),this._viewportScrollArea=B.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=B.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=B.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),U.appendChild(this.screenElement),this.textarea=B.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 W._onTextAreaFocus(G)})),this.register(r.addDisposableDomListener(this.textarea,"blur",function(){return W._onTextAreaBlur()})),this._helperContainer.appendChild(this.textarea);var V=this._instantiationService.createInstance(F.CoreBrowserService,this.textarea);this._instantiationService.setService(E.ICoreBrowserService,V),this._charSizeService=this._instantiationService.createInstance(C.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(E.ICharSizeService,this._charSizeService),this._compositionView=B.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(U),this._theme=this.options.theme||this._theme,this._colorManager=new T.ColorManager(B,this.options.allowTransparency),this.register(this.optionsService.onOptionChange(function(G){return W._colorManager.onOptionsChange(G)})),this._colorManager.setTheme(this._theme);var Q=this._createRenderer();this._renderService=this.register(this._instantiationService.createInstance(O.RenderService,Q,this.rows,this.screenElement)),this._instantiationService.setService(E.IRenderService,this._renderService),this.register(this._renderService.onRenderedBufferChange(function(G){return W._onRender.fire(G)})),this.onResize(function(G){return W._renderService.resize(G.cols,G.rows)}),this._soundService=this._instantiationService.createInstance(c.SoundService),this._instantiationService.setService(E.ISoundService,this._soundService),this._mouseService=this._instantiationService.createInstance(I.MouseService),this._instantiationService.setService(E.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(d.Viewport,function(G,te){return W.scrollLines(G,te)},this._viewportElement,this._viewportScrollArea),this.viewport.onThemeChange(this._colorManager.colors),this.register(this._inputHandler.onRequestSyncScrollBar(function(){return W.viewport.syncScrollArea()})),this.register(this.viewport),this.register(this.onCursorMove(function(){W._renderService.onCursorMove(),W._syncTextArea()})),this.register(this.onResize(function(){return W._renderService.onResize(W.cols,W.rows)})),this.register(this.onBlur(function(){return W._renderService.onBlur()})),this.register(this.onFocus(function(){return W._renderService.onFocus()})),this.register(this._renderService.onDimensionsChange(function(){return W.viewport.syncScrollArea()})),this._selectionService=this.register(this._instantiationService.createInstance(e.SelectionService,this.element,this.screenElement)),this._instantiationService.setService(E.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(function(G){return W.scrollLines(G.amount,G.suppressScrollEvent)})),this.register(this._selectionService.onSelectionChange(function(){return W._onSelectionChange.fire()})),this.register(this._selectionService.onRequestRedraw(function(G){return W._renderService.onSelectionChanged(G.start,G.end,G.columnSelectMode)})),this.register(this._selectionService.onLinuxMouseSelection(function(G){W.textarea.value=G,W.textarea.focus(),W.textarea.select()})),this.register(this.onScroll(function(){W.viewport.syncScrollArea(),W._selectionService.refresh()})),this.register(r.addDisposableDomListener(this._viewportElement,"scroll",function(){return W._selectionService.refresh()})),this._mouseZoneManager=this._instantiationService.createInstance(h.MouseZoneManager,this.element,this.screenElement),this.register(this._mouseZoneManager),this.register(this.onScroll(function(){return W._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 W._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 g.AccessibilityManager(this,this._renderService)),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()},P.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(v.DomRenderer,this._colorManager.colors,this.element,this.screenElement,this._viewportElement,this.linkifier,this.linkifier2);default:throw new Error('Unrecognized rendererType "'+this.options.rendererType+'"')}},P.prototype._setTheme=function(z){var W,U,V;this._theme=z,(W=this._colorManager)===null||W===void 0||W.setTheme(z),(U=this._renderService)===null||U===void 0||U.setColors(this._colorManager.colors),(V=this.viewport)===null||V===void 0||V.onThemeChange(this._colorManager.colors)},P.prototype.bindMouse=function(){var z=this,W=this,U=this.element;function V(re){var Se,Re,Pe=W._mouseService.getRawByteCoords(re,W.screenElement,W.cols,W.rows);if(!Pe)return!1;switch(re.overrideType||re.type){case"mousemove":Re=32,re.buttons===void 0?(Se=3,re.button!==void 0&&(Se=re.button<3?re.button:3)):Se=1&re.buttons?0:4&re.buttons?1:2&re.buttons?2:3;break;case"mouseup":Re=0,Se=re.button<3?re.button:3;break;case"mousedown":Re=1,Se=re.button<3?re.button:3;break;case"wheel":re.deltaY!==0&&(Re=re.deltaY<0?0:1),Se=4;break;default:return!1}return!(Re===void 0||Se===void 0||Se>4)&&W._coreMouseService.triggerMouseEvent({col:Pe.x-33,row:Pe.y-33,button:Se,action:Re,ctrl:re.ctrlKey,alt:re.altKey,shift:re.shiftKey})}var Q={mouseup:null,wheel:null,mousedrag:null,mousemove:null},G=function(Se){return V(Se),Se.buttons||(z._document.removeEventListener("mouseup",Q.mouseup),Q.mousedrag&&z._document.removeEventListener("mousemove",Q.mousedrag)),z.cancel(Se)},te=function(Se){return V(Se),Se.preventDefault(),z.cancel(Se)},$=function(Se){Se.buttons&&V(Se)},le=function(Se){Se.buttons||V(Se)};this.register(this._coreMouseService.onProtocolChange(function(re){re?(z.optionsService.options.logLevel==="debug"&&z._logService.debug("Binding to mouse events:",z._coreMouseService.explainEvents(re)),z.element.classList.add("enable-mouse-events"),z._selectionService.disable()):(z._logService.debug("Unbinding from mouse events."),z.element.classList.remove("enable-mouse-events"),z._selectionService.enable()),8&re?Q.mousemove||(U.addEventListener("mousemove",le),Q.mousemove=le):(U.removeEventListener("mousemove",Q.mousemove),Q.mousemove=null),16&re?Q.wheel||(U.addEventListener("wheel",te,{passive:!1}),Q.wheel=te):(U.removeEventListener("wheel",Q.wheel),Q.wheel=null),2&re?Q.mouseup||(Q.mouseup=G):(z._document.removeEventListener("mouseup",Q.mouseup),Q.mouseup=null),4&re?Q.mousedrag||(Q.mousedrag=$):(z._document.removeEventListener("mousemove",Q.mousedrag),Q.mousedrag=null)})),this._coreMouseService.activeProtocol=this._coreMouseService.activeProtocol,this.register(r.addDisposableDomListener(U,"mousedown",function(re){if(re.preventDefault(),z.focus(),z._coreMouseService.areMouseEventsActive&&!z._selectionService.shouldForceSelection(re))return V(re),Q.mouseup&&z._document.addEventListener("mouseup",Q.mouseup),Q.mousedrag&&z._document.addEventListener("mousemove",Q.mousedrag),z.cancel(re)})),this.register(r.addDisposableDomListener(U,"wheel",function(re){if(!Q.wheel){if(!z.buffer.hasScrollback){var Se=z.viewport.getLinesScrolled(re);if(Se===0)return;for(var Re=o.C0.ESC+(z._coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(re.deltaY<0?"A":"B"),Pe="",Je=0;Je<Math.abs(Se);Je++)Pe+=Re;z._coreService.triggerDataEvent(Pe,!0)}}},{passive:!0})),this.register(r.addDisposableDomListener(U,"wheel",function(re){if(!Q.wheel)return z.viewport.onWheel(re)?void 0:z.cancel(re)},{passive:!1})),this.register(r.addDisposableDomListener(U,"touchstart",function(re){if(!z._coreMouseService.areMouseEventsActive)return z.viewport.onTouchStart(re),z.cancel(re)},{passive:!0})),this.register(r.addDisposableDomListener(U,"touchmove",function(re){if(!z._coreMouseService.areMouseEventsActive)return z.viewport.onTouchMove(re)?void 0:z.cancel(re)},{passive:!1}))},P.prototype.refresh=function(z,W){var U;(U=this._renderService)===null||U===void 0||U.refreshRows(z,W)},P.prototype._queueLinkification=function(z,W){var U;(U=this.linkifier)===null||U===void 0||U.linkifyRows(z,W)},P.prototype.updateCursorStyle=function(z){this._selectionService&&this._selectionService.shouldColumnSelect(z)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")},P.prototype._showCursor=function(){this._coreService.isCursorInitialized||(this._coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))},P.prototype.scrollLines=function(z,W){X.prototype.scrollLines.call(this,z,W),this.refresh(0,this.rows-1)},P.prototype.paste=function(z){l.paste(z,this.textarea,this._coreService)},P.prototype.attachCustomKeyEventHandler=function(z){this._customKeyEventHandler=z},P.prototype.registerLinkMatcher=function(z,W,U){var V=this.linkifier.registerLinkMatcher(z,W,U);return this.refresh(0,this.rows-1),V},P.prototype.deregisterLinkMatcher=function(z){this.linkifier.deregisterLinkMatcher(z)&&this.refresh(0,this.rows-1)},P.prototype.registerLinkProvider=function(z){return this.linkifier2.registerLinkProvider(z)},P.prototype.registerCharacterJoiner=function(z){var W=this._renderService.registerCharacterJoiner(z);return this.refresh(0,this.rows-1),W},P.prototype.deregisterCharacterJoiner=function(z){this._renderService.deregisterCharacterJoiner(z)&&this.refresh(0,this.rows-1)},Object.defineProperty(P.prototype,"markers",{get:function(){return this.buffer.markers},enumerable:!1,configurable:!0}),P.prototype.addMarker=function(z){if(this.buffer===this.buffers.normal)return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+z)},P.prototype.hasSelection=function(){return!!this._selectionService&&this._selectionService.hasSelection},P.prototype.select=function(z,W,U){this._selectionService.setSelection(z,W,U)},P.prototype.getSelection=function(){return this._selectionService?this._selectionService.selectionText:""},P.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]}},P.prototype.clearSelection=function(){var z;(z=this._selectionService)===null||z===void 0||z.clearSelection()},P.prototype.selectAll=function(){var z;(z=this._selectionService)===null||z===void 0||z.selectAll()},P.prototype.selectLines=function(z,W){var U;(U=this._selectionService)===null||U===void 0||U.selectLines(z,W)},P.prototype._keyDown=function(z){if(this._keyDownHandled=!1,this._customKeyEventHandler&&this._customKeyEventHandler(z)===!1)return!1;if(!this._compositionHelper.keydown(z))return this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;var W=b.evaluateKeyboardEvent(z,this._coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(z),W.type===3||W.type===2){var U=this.rows-1;return this.scrollLines(W.type===2?-U:U),this.cancel(z,!0)}return W.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,z)||(W.cancel&&this.cancel(z,!0),!W.key||(W.key!==o.C0.ETX&&W.key!==o.C0.CR||(this.textarea.value=""),this._onKey.fire({key:W.key,domEvent:z}),this._showCursor(),this._coreService.triggerDataEvent(W.key,!0),this.optionsService.options.screenReaderMode?void(this._keyDownHandled=!0):this.cancel(z,!0)))},P.prototype._isThirdLevelShift=function(z,W){var U=z.isMac&&!this.options.macOptionIsMeta&&W.altKey&&!W.ctrlKey&&!W.metaKey||z.isWindows&&W.altKey&&W.ctrlKey&&!W.metaKey;return W.type==="keypress"?U:U&&(!W.keyCode||W.keyCode>47)},P.prototype._keyUp=function(z){this._customKeyEventHandler&&this._customKeyEventHandler(z)===!1||(function(W){return W.keyCode===16||W.keyCode===17||W.keyCode===18}(z)||this.focus(),this.updateCursorStyle(z))},P.prototype._keyPress=function(z){var W;if(this._keyDownHandled)return!1;if(this._customKeyEventHandler&&this._customKeyEventHandler(z)===!1)return!1;if(this.cancel(z),z.charCode)W=z.charCode;else if(z.which===null||z.which===void 0)W=z.keyCode;else{if(z.which===0||z.charCode===0)return!1;W=z.which}return!(!W||(z.altKey||z.ctrlKey||z.metaKey)&&!this._isThirdLevelShift(this.browser,z))&&(W=String.fromCharCode(W),this._onKey.fire({key:W,domEvent:z}),this._showCursor(),this._coreService.triggerDataEvent(W,!0),!0)},P.prototype.bell=function(){this._soundBell()&&this._soundService.playBellSound()},P.prototype.resize=function(z,W){z!==this.cols||W!==this.rows?X.prototype.resize.call(this,z,W):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()},P.prototype._afterResize=function(z,W){var U,V;(U=this._charSizeService)===null||U===void 0||U.measure(),(V=this.viewport)===null||V===void 0||V.syncScrollArea(!0)},P.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 z=1;z<this.rows;z++)this.buffer.lines.push(this.buffer.getBlankLine(x.DEFAULT_ATTR_DATA));this.refresh(0,this.rows-1),this._onScroll.fire(this.buffer.ydisp)}},P.prototype.reset=function(){var z,W;this.options.rows=this.rows,this.options.cols=this.cols;var U=this._customKeyEventHandler;this._setup(),X.prototype.reset.call(this),(z=this._selectionService)===null||z===void 0||z.reset(),this._customKeyEventHandler=U,this.refresh(0,this.rows-1),(W=this.viewport)===null||W===void 0||W.syncScrollArea()},P.prototype._reportWindowsOptions=function(z){if(this._renderService)switch(z){case n.WindowsOptionsReportType.GET_WIN_SIZE_PIXELS:var W=this._renderService.dimensions.scaledCanvasWidth.toFixed(0),U=this._renderService.dimensions.scaledCanvasHeight.toFixed(0);this._coreService.triggerDataEvent(o.C0.ESC+"[4;"+U+";"+W+"t");break;case n.WindowsOptionsReportType.GET_CELL_SIZE_PIXELS:var V=this._renderService.dimensions.scaledCellWidth.toFixed(0),Q=this._renderService.dimensions.scaledCellHeight.toFixed(0);this._coreService.triggerDataEvent(o.C0.ESC+"[6;"+Q+";"+V+"t")}},P.prototype.cancel=function(z,W){if(this.options.cancelEvents||W)return z.preventDefault(),z.stopPropagation(),!1},P.prototype._visualBell=function(){return!1},P.prototype._soundBell=function(){return this.options.bellStyle==="sound"},P}(R.CoreTerminal);p.Terminal=M},function(y,p,S){"use strict";var A=this&&this.__decorate||function(o,n,t,a){var e,u=arguments.length,r=u<3?n:a===null?a=Object.getOwnPropertyDescriptor(n,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,t,a);else for(var s=o.length-1;s>=0;s--)(e=o[s])&&(r=(u<3?e(r):u>3?e(n,t,r):e(n,t))||r);return u>3&&r&&Object.defineProperty(n,t,r),r},m=this&&this.__param||function(o,n){return function(t,a){n(t,a,o)}};Object.defineProperty(p,"__esModule",{value:!0}),p.CompositionHelper=void 0;var f=S(5),d=S(1),l=function(){function o(n,t,a,e,u,r){this._textarea=n,this._compositionView=t,this._bufferService=a,this._optionsService=e,this._charSizeService=u,this._coreService=r,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0}}return Object.defineProperty(o.prototype,"isComposing",{get:function(){return this._isComposing},enumerable:!1,configurable:!0}),o.prototype.compositionstart=function(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._compositionView.classList.add("active")},o.prototype.compositionupdate=function(n){var t=this;this._compositionView.textContent=n.data,this.updateCompositionElements(),setTimeout(function(){t._compositionPosition.end=t._textarea.value.length},0)},o.prototype.compositionend=function(){this._finalizeComposition(!0)},o.prototype.keydown=function(n){if(this._isComposing||this._isSendingComposition){if(n.keyCode===229)return!1;if(n.keyCode===16||n.keyCode===17||n.keyCode===18)return!1;this._finalizeComposition(!1)}return n.keyCode!==229||(this._handleAnyTextareaChanges(),!1)},o.prototype._finalizeComposition=function(n){var t=this;if(this._compositionView.classList.remove("active"),this._isComposing=!1,n){var a={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(a.start,a.end):t._textarea.value.substring(a.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)}},o.prototype._handleAnyTextareaChanges=function(){var n=this,t=this._textarea.value;setTimeout(function(){if(!n._isComposing){var a=n._textarea.value.replace(t,"");a.length>0&&n._coreService.triggerDataEvent(a,!0)}},0)},o.prototype.updateCompositionElements=function(n){var t=this;if(this._isComposing){if(this._bufferService.buffer.isCursorInViewport){var a=Math.ceil(this._charSizeService.height*this._optionsService.options.lineHeight),e=this._bufferService.buffer.y*a,u=this._bufferService.buffer.x*this._charSizeService.width;this._compositionView.style.left=u+"px",this._compositionView.style.top=e+"px",this._compositionView.style.height=a+"px",this._compositionView.style.lineHeight=a+"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"}n||setTimeout(function(){return t.updateCompositionElements(!0)},0)}},o=A([m(2,d.IBufferService),m(3,d.IOptionsService),m(4,f.ICharSizeService),m(5,d.ICoreService)],o)}();p.CompositionHelper=l},function(y,p,S){"use strict";var A,m=this&&this.__extends||(A=function(u,r){return(A=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}A(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,g=h<3?u:s===null?s=Object.getOwnPropertyDescriptor(u,r):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,u,r,s);else for(var v=e.length-1;v>=0;v--)(c=e[v])&&(g=(h<3?c(g):h>3?c(u,r,g):c(u,r))||g);return h>3&&g&&Object.defineProperty(u,r,g),g},d=this&&this.__param||function(e,u){return function(r,s){u(r,s,e)}};Object.defineProperty(p,"__esModule",{value:!0}),p.Viewport=void 0;var l=S(2),o=S(7),n=S(5),t=S(1),a=function(e){function u(r,s,c,h,g,v,b){var w=e.call(this)||this;return w._scrollLines=r,w._viewportElement=s,w._scrollArea=c,w._bufferService=h,w._optionsService=g,w._charSizeService=v,w._renderService=b,w.scrollBarWidth=0,w._currentRowHeight=0,w._lastRecordedBufferLength=0,w._lastRecordedViewportHeight=0,w._lastRecordedBufferHeight=0,w._lastTouchY=0,w._lastScrollTop=0,w._wheelPartialScroll=0,w._refreshAnimationFrame=null,w._ignoreNextScrollEvent=!1,w.scrollBarWidth=w._viewportElement.offsetWidth-w._scrollArea.offsetWidth||15,w.register(o.addDisposableDomListener(w._viewportElement,"scroll",w._onScroll.bind(w))),setTimeout(function(){return w.syncScrollArea()},0),w}return m(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,n.ICharSizeService),d(6,n.IRenderService)],u)}(l.Disposable);p.Viewport=a},function(y,p,S){"use strict";function A(l){return l.replace(/\r?\n/g,"\r")}function m(l,o){return o?"[200~"+l+"[201~":l}function f(l,o,n){l=m(l=A(l),n.decPrivateModes.bracketedPasteMode),n.triggerDataEvent(l,!0),o.value=""}function d(l,o,n){var t=n.getBoundingClientRect(),a=l.clientX-t.left-10,e=l.clientY-t.top-10;o.style.width="20px",o.style.height="20px",o.style.left=a+"px",o.style.top=e+"px",o.style.zIndex="1000",o.focus()}Object.defineProperty(p,"__esModule",{value:!0}),p.rightClickHandler=p.moveTextAreaUnderMouseCursor=p.paste=p.handlePasteEvent=p.copyHandler=p.bracketTextForPaste=p.prepareTextForTerminal=void 0,p.prepareTextForTerminal=A,p.bracketTextForPaste=m,p.copyHandler=function(l,o){l.clipboardData&&l.clipboardData.setData("text/plain",o.selectionText),l.preventDefault()},p.handlePasteEvent=function(l,o,n){l.stopPropagation(),l.clipboardData&&f(l.clipboardData.getData("text/plain"),o,n)},p.paste=f,p.moveTextAreaUnderMouseCursor=d,p.rightClickHandler=function(l,o,n,t,a){d(l,o,n),a&&!t.isClickInSelection(l)&&t.selectWordAtCursor(l),o.value=t.selectionText,o.select()}},function(y,p,S){"use strict";var A,m=this&&this.__extends||(A=function(u,r){return(A=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}A(e,u),e.prototype=u===null?Object.create(u):(r.prototype=u.prototype,new r)});Object.defineProperty(p,"__esModule",{value:!0}),p.EscapeSequenceParser=p.VT500_TRANSITION_TABLE=p.TransitionTable=void 0;var f=S(2),d=S(15),l=S(21),o=S(22),n=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}();p.TransitionTable=t,p.VT500_TRANSITION_TABLE=function(){var e=new t(4095),u=Array.apply(null,Array(256)).map(function(v,b){return b}),r=function(b,w){return u.slice(b,w)},s=r(32,127),c=r(0,24);c.push(25),c.push.apply(c,r(28,32));var h,g=r(0,14);for(h in e.setDefault(1,0),e.addMany(s,0,2,0),g)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 a=function(e){function u(r){r===void 0&&(r=p.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,g){},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 o.OscParser,s._dcsParser=new n.DcsParser,s._errorHandler=s._errorHandlerFb,s.setEscHandler({final:"\\"},function(){}),s}return m(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 g=r.intermediates.charCodeAt(h);if(32>g||g>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");c<<=8,c|=g}}if(r.final.length!==1)throw new Error("final must be a single byte");var v=r.final.charCodeAt(0);if(s[0]>v||v>s[1])throw new Error("final must be in range "+s[0]+" .. "+s[1]);return c<<=8,c|=v},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 v=h.indexOf(s);v!==-1&&h.splice(v,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 v=h.indexOf(s);v!==-1&&h.splice(v,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,g=this.currentState,v=this._oscParser,b=this._dcsParser,w=this._collect,x=this._params,T=this._transitions.table,O=0;O<s;++O){switch((h=T[g<<8|((c=r[O])<160?c:160)])>>4){case 2:for(var E=O+1;;++E){if(E>=s||(c=r[E])<32||c>126&&c<160){this._printHandler(r,O,E),O=E-1;break}if(++E>=s||(c=r[E])<32||c>126&&c<160){this._printHandler(r,O,E),O=E-1;break}if(++E>=s||(c=r[E])<32||c>126&&c<160){this._printHandler(r,O,E),O=E-1;break}if(++E>=s||(c=r[E])<32||c>126&&c<160){this._printHandler(r,O,E),O=E-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:O,code:c,currentState:g,collect:w,params:x,abort:!1}).abort)return;break;case 7:for(var C=this._csiHandlers[w<<8|c],I=C?C.length-1:-1;I>=0&&C[I](x)===!1;I--);I<0&&this._csiHandlerFb(w<<8|c,x),this.precedingCodepoint=0;break;case 8:do switch(c){case 59:x.addParam(0);break;case 58:x.addSubParam(-1);break;default:x.addDigit(c-48)}while(++O<s&&(c=r[O])>47&&c<60);O--;break;case 9:w<<=8,w|=c;break;case 10:for(var _=this._escHandlers[w<<8|c],F=_?_.length-1:-1;F>=0&&_[F]()===!1;F--);F<0&&this._escHandlerFb(w<<8|c),this.precedingCodepoint=0;break;case 11:x.reset(),x.addParam(0),w=0;break;case 12:b.hook(w<<8|c,x);break;case 13:for(var R=O+1;;++R)if(R>=s||(c=r[R])===24||c===26||c===27||c>127&&c<160){b.put(r,O,R),O=R-1;break}break;case 14:b.unhook(c!==24&&c!==26),c===27&&(h|=1),x.reset(),x.addParam(0),w=0,this.precedingCodepoint=0;break;case 4:v.start();break;case 5:for(var B=O+1;;B++)if(B>=s||(c=r[B])<32||c>127&&c<=159){v.put(r,O,B),O=B-1;break}break;case 6:v.end(c!==24&&c!==26),c===27&&(h|=1),x.reset(),x.addParam(0),w=0,this.precedingCodepoint=0}g=15&h}this._collect=w,this.currentState=g},u}(f.Disposable);p.EscapeSequenceParser=a},function(y,p,S){"use strict";var A,m=this&&this.__extends||(A=function(b,w){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,T){x.__proto__=T}||function(x,T){for(var O in T)T.hasOwnProperty(O)&&(x[O]=T[O])})(b,w)},function(v,b){function w(){this.constructor=v}A(v,b),v.prototype=b===null?Object.create(b):(w.prototype=b.prototype,new w)}),f=this&&this.__decorate||function(v,b,w,x){var T,O=arguments.length,E=O<3?b:x===null?x=Object.getOwnPropertyDescriptor(b,w):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(v,b,w,x);else for(var C=v.length-1;C>=0;C--)(T=v[C])&&(E=(O<3?T(E):O>3?T(b,w,E):T(b,w))||E);return O>3&&E&&Object.defineProperty(b,w,E),E},d=this&&this.__param||function(v,b){return function(w,x){b(w,x,v)}};Object.defineProperty(p,"__esModule",{value:!0}),p.Renderer=void 0;var l=S(41),o=S(47),n=S(48),t=S(49),a=S(29),e=S(2),u=S(5),r=S(1),s=S(25),c=S(0),h=1,g=function(v){function b(w,x,T,O,E,C,I,_,F){var R=v.call(this)||this;R._colors=w,R._screenElement=x,R._bufferService=E,R._charSizeService=C,R._optionsService=I,R._id=h++,R._onRequestRedraw=new c.EventEmitter;var B=R._optionsService.options.allowTransparency;return R._characterJoinerRegistry=new a.CharacterJoinerRegistry(R._bufferService),R._renderLayers=[new l.TextRenderLayer(R._screenElement,0,R._colors,R._characterJoinerRegistry,B,R._id,R._bufferService,I),new o.SelectionRenderLayer(R._screenElement,1,R._colors,R._id,R._bufferService,I),new t.LinkRenderLayer(R._screenElement,2,R._colors,R._id,T,O,R._bufferService,I),new n.CursorRenderLayer(R._screenElement,3,R._colors,R._id,R._onRequestRedraw,R._bufferService,I,_,F)],R.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},R._devicePixelRatio=window.devicePixelRatio,R._updateDimensions(),R.onOptionsChanged(),R}return m(b,v),Object.defineProperty(b.prototype,"onRequestRedraw",{get:function(){return this._onRequestRedraw.event},enumerable:!1,configurable:!0}),b.prototype.dispose=function(){for(var w=0,x=this._renderLayers;w<x.length;w++)x[w].dispose();v.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(w){this._colors=w;for(var x=0,T=this._renderLayers;x<T.length;x++){var O=T[x];O.setColors(this._colors),O.reset()}},b.prototype.onResize=function(w,x){this._updateDimensions();for(var T=0,O=this._renderLayers;T<O.length;T++)O[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(w){return w.onBlur()})},b.prototype.onFocus=function(){this._runOperation(function(w){return w.onFocus()})},b.prototype.onSelectionChanged=function(w,x,T){T===void 0&&(T=!1),this._runOperation(function(O){return O.onSelectionChanged(w,x,T)})},b.prototype.onCursorMove=function(){this._runOperation(function(w){return w.onCursorMove()})},b.prototype.onOptionsChanged=function(){this._runOperation(function(w){return w.onOptionsChanged()})},b.prototype.clear=function(){this._runOperation(function(w){return w.reset()})},b.prototype._runOperation=function(w){for(var x=0,T=this._renderLayers;x<T.length;x++)w(T[x])},b.prototype.renderRows=function(w,x){for(var T=0,O=this._renderLayers;T<O.length;T++)O[T].onGridChanged(w,x)},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(w){return this._characterJoinerRegistry.registerCharacterJoiner(w)},b.prototype.deregisterCharacterJoiner=function(w){return this._characterJoinerRegistry.deregisterCharacterJoiner(w)},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);p.Renderer=g},function(y,p,S){"use strict";var A,m=this&&this.__extends||(A=function(u,r){return(A=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}A(e,u),e.prototype=u===null?Object.create(u):(r.prototype=u.prototype,new r)});Object.defineProperty(p,"__esModule",{value:!0}),p.TextRenderLayer=void 0;var f=S(42),d=S(13),l=S(6),o=S(3),n=S(29),t=S(4),a=function(e){function u(r,s,c,h,g,v,b,w){var x=e.call(this,r,"text",s,g,c,v,b,w)||this;return x._characterWidth=0,x._characterFont="",x._characterOverlapCache={},x._workCell=new t.CellData,x._state=new f.GridCache,x._characterJoinerRegistry=h,x}return m(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 g=r;g<=s;g++)for(var v=g+this._bufferService.buffer.ydisp,b=this._bufferService.buffer.lines.get(v),w=c?c.getJoinedCharacters(v):[],x=0;x<this._bufferService.cols;x++){b.loadCell(x,this._workCell);var T=this._workCell,O=!1,E=x;if(T.getWidth()!==0){if(w.length>0&&x===w[0][0]){O=!0;var C=w.shift();T=new n.JoinedCellData(this._workCell,b.translateToString(!0,C[0],C[1]),C[1]-C[0]),E=C[1]-1}!O&&this._isOverlapping(T)&&E<b.length-1&&b.getCodePoint(E+1)===o.NULL_CELL_CODE&&(T.content&=-12582913,T.content|=2<<22),h(T,x,g),x=E}}},u.prototype._drawBackground=function(r,s){var c=this,h=this._ctx,g=this._bufferService.cols,v=0,b=0,w=null;h.save(),this._forEachCell(r,s,null,function(x,T,O){var E=null;x.isInverse()?E=x.isFgDefault()?c._colors.foreground.css:x.isFgRGB()?"rgb("+l.AttributeData.toColorRGB(x.getFgColor()).join(",")+")":c._colors.ansi[x.getFgColor()].css:x.isBgRGB()?E="rgb("+l.AttributeData.toColorRGB(x.getBgColor()).join(",")+")":x.isBgPalette()&&(E=c._colors.ansi[x.getBgColor()].css),w===null&&(v=T,b=O),O!==b?(h.fillStyle=w||"",c._fillCells(v,b,g-v,1),v=T,b=O):w!==E&&(h.fillStyle=w||"",c._fillCells(v,b,T-v,1),v=T,b=O),w=E}),w!==null&&(h.fillStyle=w,this._fillCells(v,b,g-v,1)),h.restore()},u.prototype._drawForeground=function(r,s){var c=this;this._forEachCell(r,s,this._characterJoinerRegistry,function(h,g,v){if(!h.isInvisible()&&(c._drawChars(h,g,v),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 w=h.getFgColor();c._optionsService.options.drawBoldTextInBrightColors&&h.isBold()&&w<8&&(w+=8),c._ctx.fillStyle=c._colors.ansi[w].css}c._fillBottomLineAtCells(g,v,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);p.TextRenderLayer=a},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.GridCache=void 0;var A=function(){function m(){this.cache=[]}return m.prototype.resize=function(f,d){for(var l=0;l<f;l++){this.cache.length<=l&&this.cache.push([]);for(var o=this.cache[l].length;o<d;o++)this.cache[l].push(void 0);this.cache[l].length=d}this.cache.length=f},m.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},m}();p.GridCache=A},function(y,p,S){"use strict";var A,m=this&&this.__extends||(A=function(h,g){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var w in b)b.hasOwnProperty(w)&&(v[w]=b[w])})(h,g)},function(c,h){function g(){this.constructor=c}A(c,h),c.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)});Object.defineProperty(p,"__esModule",{value:!0}),p.NoneCharAtlas=p.DynamicCharAtlas=p.getGlyphCacheKey=void 0;var f=S(9),d=S(44),l=S(27),o=S(46),n=S(11),t=S(28),a=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)}p.getGlyphCacheKey=u;var r=function(c){function h(g,v){var b=c.call(this)||this;b._config=v,b._drawToCacheCount=0,b._glyphsWaitingOnBitmap=[],b._bitmapCommitTimeout=null,b._bitmap=null,b._cacheCanvas=g.createElement("canvas"),b._cacheCanvas.width=1024,b._cacheCanvas.height=1024,b._cacheCtx=t.throwIfFalsy(b._cacheCanvas.getContext("2d",{alpha:!0}));var w=g.createElement("canvas");w.width=b._config.scaledCharWidth,w.height=b._config.scaledCharHeight,b._tmpCtx=t.throwIfFalsy(w.getContext("2d",{alpha:b._config.allowTransparency})),b._width=Math.floor(1024/b._config.scaledCharWidth),b._height=Math.floor(1024/b._config.scaledCharHeight);var x=b._width*b._height;return b._cacheMap=new o.LRUMap(x),b._cacheMap.prealloc(x),b}return m(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(g,v,b,w){if(v.code===32)return!0;if(!this._canCache(v))return!1;var x=u(v),T=this._cacheMap.get(x);if(T!=null)return this._drawFromCache(g,T,b,w),!0;if(this._drawToCacheCount<100){var O=void 0;O=this._cacheMap.size<this._cacheMap.capacity?this._cacheMap.size:this._cacheMap.peek().index;var E=this._drawToCache(v,O);return this._cacheMap.set(x,E),this._drawFromCache(g,E,b,w),!0}return!1},h.prototype._canCache=function(g){return g.code<256},h.prototype._toCoordinateX=function(g){return g%this._width*this._config.scaledCharWidth},h.prototype._toCoordinateY=function(g){return Math.floor(g/this._width)*this._config.scaledCharHeight},h.prototype._drawFromCache=function(g,v,b,w){if(!v.isEmpty){var x=this._toCoordinateX(v.index),T=this._toCoordinateY(v.index);g.drawImage(v.inBitmap?this._bitmap:this._cacheCanvas,x,T,this._config.scaledCharWidth,this._config.scaledCharHeight,b,w,this._config.scaledCharWidth,this._config.scaledCharHeight)}},h.prototype._getColorFromAnsiIndex=function(g){return g<this._config.colors.ansi.length?this._config.colors.ansi[g]:l.DEFAULT_ANSI_COLORS[g]},h.prototype._getBackgroundColor=function(g){return this._config.allowTransparency?e:g.bg===f.INVERTED_DEFAULT_COLOR?this._config.colors.foreground:g.bg<256?this._getColorFromAnsiIndex(g.bg):this._config.colors.background},h.prototype._getForegroundColor=function(g){return g.fg===f.INVERTED_DEFAULT_COLOR?a.color.opaque(this._config.colors.background):g.fg<256?this._getColorFromAnsiIndex(g.fg):this._config.colors.foreground},h.prototype._drawToCache=function(g,v){this._drawToCacheCount++,this._tmpCtx.save();var b=this._getBackgroundColor(g);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 w=g.bold?this._config.fontWeightBold:this._config.fontWeight,x=g.italic?"italic":"";this._tmpCtx.font=x+" "+w+" "+this._config.fontSize*this._config.devicePixelRatio+"px "+this._config.fontFamily,this._tmpCtx.textBaseline="middle",this._tmpCtx.fillStyle=this._getForegroundColor(g).css,g.dim&&(this._tmpCtx.globalAlpha=f.DIM_OPACITY),this._tmpCtx.fillText(g.chars,0,this._config.scaledCharHeight/2),this._tmpCtx.restore();var T=this._tmpCtx.getImageData(0,0,this._config.scaledCharWidth,this._config.scaledCharHeight),O=!1;this._config.allowTransparency||(O=function(_,F){for(var R=!0,B=F.rgba>>>24,M=F.rgba>>>16&255,X=F.rgba>>>8&255,P=0;P<_.data.length;P+=4)_.data[P]===B&&_.data[P+1]===M&&_.data[P+2]===X?_.data[P+3]=0:R=!1;return R}(T,b));var E=this._toCoordinateX(v),C=this._toCoordinateY(v);this._cacheCtx.putImageData(T,E,C);var I={index:v,isEmpty:O,inBitmap:!1};return this._addGlyphToBitmap(I),I},h.prototype._addGlyphToBitmap=function(g){var v=this;!("createImageBitmap"in window)||n.isFirefox||n.isSafari||(this._glyphsWaitingOnBitmap.push(g),this._bitmapCommitTimeout===null&&(this._bitmapCommitTimeout=window.setTimeout(function(){return v._generateBitmap()},100)))},h.prototype._generateBitmap=function(){var g=this,v=this._glyphsWaitingOnBitmap;this._glyphsWaitingOnBitmap=[],window.createImageBitmap(this._cacheCanvas).then(function(b){g._bitmap=b;for(var w=0;w<v.length;w++)v[w].inBitmap=!0}),this._bitmapCommitTimeout=null},h}(d.BaseCharAtlas);p.DynamicCharAtlas=r;var s=function(c){function h(g,v){return c.call(this)||this}return m(h,c),h.prototype.draw=function(g,v,b,w){return!1},h}(d.BaseCharAtlas);p.NoneCharAtlas=s},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BaseCharAtlas=void 0;var A=function(){function m(){this._didWarmUp=!1}return m.prototype.dispose=function(){},m.prototype.warmUp=function(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)},m.prototype._doWarmUp=function(){},m.prototype.beginFrame=function(){},m}();p.BaseCharAtlas=A},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.ColorContrastCache=void 0;var A=function(){function m(){this._color={},this._rgba={}}return m.prototype.clear=function(){this._color={},this._rgba={}},m.prototype.setCss=function(f,d,l){this._rgba[f]||(this._rgba[f]={}),this._rgba[f][d]=l},m.prototype.getCss=function(f,d){return this._rgba[f]?this._rgba[f][d]:void 0},m.prototype.setColor=function(f,d,l){this._color[f]||(this._color[f]={}),this._color[f][d]=l},m.prototype.getColor=function(f,d){return this._color[f]?this._color[f][d]:void 0},m}();p.ColorContrastCache=A},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.LRUMap=void 0;var A=function(){function m(f){this.capacity=f,this._map={},this._head=null,this._tail=null,this._nodePool=[],this.size=0}return m.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)},m.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)},m.prototype.prealloc=function(f){for(var d=this._nodePool,l=0;l<f;l++)d.push({prev:null,next:null,key:null,value:null})},m.prototype.get=function(f){var d=this._map[f];return d!==void 0?(this._unlinkNode(d),this._appendNode(d),d.value):null},m.prototype.peekValue=function(f){var d=this._map[f];return d!==void 0?d.value:null},m.prototype.peek=function(){var f=this._head;return f===null?null:f.value},m.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 o=this._nodePool;o.length>0?((l=o.pop()).key=f,l.value=d):l={prev:null,next:null,key:f,value:d},this._map[f]=l,this.size++}this._appendNode(l)},m}();p.LRUMap=A},function(y,p,S){"use strict";var A,m=this&&this.__extends||(A=function(l,o){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var a in t)t.hasOwnProperty(a)&&(n[a]=t[a])})(l,o)},function(d,l){function o(){this.constructor=d}A(d,l),d.prototype=l===null?Object.create(l):(o.prototype=l.prototype,new o)});Object.defineProperty(p,"__esModule",{value:!0}),p.SelectionRenderLayer=void 0;var f=function(d){function l(o,n,t,a,e,u){var r=d.call(this,o,"selection",n,!0,t,a,e,u)||this;return r._clearState(),r}return m(l,d),l.prototype._clearState=function(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}},l.prototype.resize=function(o){d.prototype.resize.call(this,o),this._clearState()},l.prototype.reset=function(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())},l.prototype.onSelectionChanged=function(o,n,t){if(this._didStateChange(o,n,t,this._bufferService.buffer.ydisp))if(this._clearAll(),o&&n){var a=o[1]-this._bufferService.buffer.ydisp,e=n[1]-this._bufferService.buffer.ydisp,u=Math.max(a,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=o[0],c=n[0]-s,h=r-u+1;this._fillCells(s,u,c,h)}else{s=a===u?o[0]:0;var g=u===r?n[0]:this._bufferService.cols;this._fillCells(s,u,g-s,1);var v=Math.max(r-u-1,0);if(this._fillCells(0,u+1,this._bufferService.cols,v),u!==r){var b=e===r?n[0]:this._bufferService.cols;this._fillCells(0,r,b,1)}}this._state.start=[o[0],o[1]],this._state.end=[n[0],n[1]],this._state.columnSelectMode=t,this._state.ydisp=this._bufferService.buffer.ydisp}}else this._clearState()},l.prototype._didStateChange=function(o,n,t,a){return!this._areCoordinatesEqual(o,this._state.start)||!this._areCoordinatesEqual(n,this._state.end)||t!==this._state.columnSelectMode||a!==this._state.ydisp},l.prototype._areCoordinatesEqual=function(o,n){return!(!o||!n)&&o[0]===n[0]&&o[1]===n[1]},l}(S(13).BaseRenderLayer);p.SelectionRenderLayer=f},function(y,p,S){"use strict";var A,m=this&&this.__extends||(A=function(t,a){return(A=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,a)},function(n,t){function a(){this.constructor=n}A(n,t),n.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)});Object.defineProperty(p,"__esModule",{value:!0}),p.CursorRenderLayer=void 0;var f=S(13),d=S(4),l=function(n){function t(a,e,u,r,s,c,h,g,v){var b=n.call(this,a,"cursor",e,!0,u,r,c,h)||this;return b._onRequestRedraw=s,b._coreService=g,b._coreBrowserService=v,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 m(t,n),t.prototype.resize=function(a){n.prototype.resize.call(this,a),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 a,e=this;this._optionsService.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new o(this._coreBrowserService.isFocused,function(){e._render(!0)})):((a=this._cursorBlinkStateManager)===null||a===void 0||a.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(a,e){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()},t.prototype._render=function(a){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(a,e,u){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillLeftLineAtCell(a,e,this._optionsService.options.cursorWidth),this._ctx.restore()},t.prototype._renderBlockCursor=function(a,e,u){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillCells(a,e,u.getWidth(),1),this._ctx.fillStyle=this._colors.cursorAccent.css,this._fillCharTrueColor(u,a,e),this._ctx.restore()},t.prototype._renderUnderlineCursor=function(a,e,u){this._ctx.save(),this._ctx.fillStyle=this._colors.cursor.css,this._fillBottomLineAtCells(a,e),this._ctx.restore()},t.prototype._renderBlurCursor=function(a,e,u){this._ctx.save(),this._ctx.strokeStyle=this._colors.cursor.css,this._strokeRectAtCell(a,e,u.getWidth(),1),this._ctx.restore()},t}(f.BaseRenderLayer);p.CursorRenderLayer=l;var o=function(){function n(t,a){this._renderCallback=a,this.isCursorVisible=!0,t&&this._restartInterval()}return Object.defineProperty(n.prototype,"isPaused",{get:function(){return!(this._blinkStartTimeout||this._blinkInterval)},enumerable:!1,configurable:!0}),n.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)},n.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})))},n.prototype._restartInterval=function(t){var a=this;t===void 0&&(t=600),this._blinkInterval&&window.clearInterval(this._blinkInterval),this._blinkStartTimeout=window.setTimeout(function(){if(a._animationTimeRestarted){var e=600-(Date.now()-a._animationTimeRestarted);if(a._animationTimeRestarted=void 0,e>0)return void a._restartInterval(e)}a.isCursorVisible=!1,a._animationFrame=window.requestAnimationFrame(function(){a._renderCallback(),a._animationFrame=void 0}),a._blinkInterval=window.setInterval(function(){if(a._animationTimeRestarted){var u=600-(Date.now()-a._animationTimeRestarted);return a._animationTimeRestarted=void 0,void a._restartInterval(u)}a.isCursorVisible=!a.isCursorVisible,a._animationFrame=window.requestAnimationFrame(function(){a._renderCallback(),a._animationFrame=void 0})},600)},t)},n.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)},n.prototype.resume=function(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()},n}()},function(y,p,S){"use strict";var A,m=this&&this.__extends||(A=function(t,a){return(A=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,a)},function(n,t){function a(){this.constructor=n}A(n,t),n.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)});Object.defineProperty(p,"__esModule",{value:!0}),p.LinkRenderLayer=void 0;var f=S(13),d=S(9),l=S(26),o=function(n){function t(a,e,u,r,s,c,h,g){var v=n.call(this,a,"link",e,!0,u,r,h,g)||this;return s.onShowLinkUnderline(function(b){return v._onShowLinkUnderline(b)}),s.onHideLinkUnderline(function(b){return v._onHideLinkUnderline(b)}),c.onShowLinkUnderline(function(b){return v._onShowLinkUnderline(b)}),c.onHideLinkUnderline(function(b){return v._onHideLinkUnderline(b)}),v}return m(t,n),t.prototype.resize=function(a){n.prototype.resize.call(this,a),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 a=this._state.y2-this._state.y1-1;a>0&&this._clearCells(0,this._state.y1+1,this._state.cols,a),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}},t.prototype._onShowLinkUnderline=function(a){if(a.fg===d.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._colors.background.css:a.fg&&l.is256Color(a.fg)?this._ctx.fillStyle=this._colors.ansi[a.fg].css:this._ctx.fillStyle=this._colors.foreground.css,a.y1===a.y2)this._fillBottomLineAtCells(a.x1,a.y1,a.x2-a.x1);else{this._fillBottomLineAtCells(a.x1,a.y1,a.cols-a.x1);for(var e=a.y1+1;e<a.y2;e++)this._fillBottomLineAtCells(0,e,a.cols);this._fillBottomLineAtCells(0,a.y2,a.x2)}this._state=a},t.prototype._onHideLinkUnderline=function(a){this._clearCurrentLink()},t}(f.BaseRenderLayer);p.LinkRenderLayer=o},function(y,p,S){"use strict";var A=this&&this.__decorate||function(n,t,a,e){var u,r=arguments.length,s=r<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,a):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,t,a,e);else for(var c=n.length-1;c>=0;c--)(u=n[c])&&(s=(r<3?u(s):r>3?u(t,a,s):u(t,a))||s);return r>3&&s&&Object.defineProperty(t,a,s),s},m=this&&this.__param||function(n,t){return function(a,e){t(a,e,n)}};Object.defineProperty(p,"__esModule",{value:!0}),p.MouseZone=p.Linkifier=void 0;var f=S(0),d=S(1),l=function(){function n(t,a,e){this._bufferService=t,this._logService=a,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(n.prototype,"onShowLinkUnderline",{get:function(){return this._onShowLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onHideLinkUnderline",{get:function(){return this._onHideLinkUnderline.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onLinkTooltip",{get:function(){return this._onLinkTooltip.event},enumerable:!1,configurable:!0}),n.prototype.attachToDom=function(t,a){this._element=t,this._mouseZoneManager=a},n.prototype.linkifyRows=function(t,a){var e=this;this._mouseZoneManager&&(this._rowsToLinkify.start===void 0||this._rowsToLinkify.end===void 0?(this._rowsToLinkify.start=t,this._rowsToLinkify.end=a):(this._rowsToLinkify.start=Math.min(this._rowsToLinkify.start,t),this._rowsToLinkify.end=Math.max(this._rowsToLinkify.end,a)),this._mouseZoneManager.clearAll(t,a),this._rowsTimeoutId&&clearTimeout(this._rowsTimeoutId),this._rowsTimeoutId=setTimeout(function(){return e._linkifyRows()},n._timeBeforeLatency))},n.prototype._linkifyRows=function(){this._rowsTimeoutId=void 0;var t=this._bufferService.buffer;if(this._rowsToLinkify.start!==void 0&&this._rowsToLinkify.end!==void 0){var a=t.ydisp+this._rowsToLinkify.start;if(!(a>=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,a,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")},n.prototype.registerLinkMatcher=function(t,a,e){if(e===void 0&&(e={}),!a)throw new Error("handler must be defined");var u={id:this._nextLinkMatcherId++,regex:t,handler:a,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},n.prototype._addLinkMatcherToList=function(t){if(this._linkMatchers.length!==0){for(var a=this._linkMatchers.length-1;a>=0;a--)if(t.priority<=this._linkMatchers[a].priority)return void this._linkMatchers.splice(a+1,0,t);this._linkMatchers.splice(0,0,t)}else this._linkMatchers.push(t)},n.prototype.deregisterLinkMatcher=function(t){for(var a=0;a<this._linkMatchers.length;a++)if(this._linkMatchers[a].id===t)return this._linkMatchers.splice(a,1),!0;return!1},n.prototype._doLinkifyRow=function(t,a,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 g._logService.debug("match found without corresponding matchIndex",u,e),"break";if(c=a.indexOf(b,c+1),s.lastIndex=c+b.length,c<0)return"break";var w=g._bufferService.buffer.stringIndexToBufferIndex(t,c);if(w[0]<0)return"break";var x=g._bufferService.buffer.lines.get(w[0]);if(!x)return"break";var T=x.getFg(w[1]),O=T?T>>9&511:void 0;e.validationCallback?e.validationCallback(b,function(E){r._rowsTimeoutId||E&&r._addLink(w[1],w[0]-r._bufferService.buffer.ydisp,b,e,O)}):g._addLink(w[1],w[0]-g._bufferService.buffer.ydisp,b,e,O)},g=this;(u=s.exec(a))!==null&&!(h()==="break"););},n.prototype._addLink=function(t,a,e,u,r){var s=this;if(this._mouseZoneManager&&this._element){var c=this._unicodeService.getStringCellWidth(e),h=t%this._bufferService.cols,g=a+Math.floor(t/this._bufferService.cols),v=(h+c)%this._bufferService.cols,b=g+Math.floor((h+c)/this._bufferService.cols);v===0&&(v=this._bufferService.cols,b--),this._mouseZoneManager.add(new o(h+1,g+1,v+1,b+1,function(w){if(u.handler)return u.handler(w,e);var x=window.open();x?(x.opener=null,x.location.href=e):console.warn("Opening link blocked as opener could not be cleared")},function(){s._onShowLinkUnderline.fire(s._createLinkHoverEvent(h,g,v,b,r)),s._element.classList.add("xterm-cursor-pointer")},function(w){s._onLinkTooltip.fire(s._createLinkHoverEvent(h,g,v,b,r)),u.hoverTooltipCallback&&u.hoverTooltipCallback(w,e,{start:{x:h,y:g},end:{x:v,y:b}})},function(){s._onHideLinkUnderline.fire(s._createLinkHoverEvent(h,g,v,b,r)),s._element.classList.remove("xterm-cursor-pointer"),u.hoverLeaveCallback&&u.hoverLeaveCallback()},function(w){return!u.willLinkActivate||u.willLinkActivate(w,e)}))}},n.prototype._createLinkHoverEvent=function(t,a,e,u,r){return{x1:t,y1:a,x2:e,y2:u,cols:this._bufferService.cols,fg:r}},n._timeBeforeLatency=200,n=A([m(0,d.IBufferService),m(1,d.ILogService),m(2,d.IUnicodeService)],n)}();p.Linkifier=l;var o=function(t,a,e,u,r,s,c,h,g){this.x1=t,this.y1=a,this.x2=e,this.y2=u,this.clickCallback=r,this.hoverCallback=s,this.tooltipCallback=c,this.leaveCallback=h,this.willLinkActivate=g};p.MouseZone=o},function(y,p,S){"use strict";var A,m=this&&this.__extends||(A=function(b,w){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,T){x.__proto__=T}||function(x,T){for(var O in T)T.hasOwnProperty(O)&&(x[O]=T[O])})(b,w)},function(v,b){function w(){this.constructor=v}A(v,b),v.prototype=b===null?Object.create(b):(w.prototype=b.prototype,new w)}),f=this&&this.__decorate||function(v,b,w,x){var T,O=arguments.length,E=O<3?b:x===null?x=Object.getOwnPropertyDescriptor(b,w):x;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(v,b,w,x);else for(var C=v.length-1;C>=0;C--)(T=v[C])&&(E=(O<3?T(E):O>3?T(b,w,E):T(b,w))||E);return O>3&&E&&Object.defineProperty(b,w,E),E},d=this&&this.__param||function(v,b){return function(w,x){b(w,x,v)}};Object.defineProperty(p,"__esModule",{value:!0}),p.SelectionService=void 0;var l=S(11),o=S(52),n=S(4),t=S(0),a=S(5),e=S(1),u=S(30),r=S(53),s=S(2),c=String.fromCharCode(160),h=new RegExp(c,"g"),g=function(v){function b(w,x,T,O,E,C,I){var _=v.call(this)||this;return _._element=w,_._screenElement=x,_._bufferService=T,_._coreService=O,_._mouseService=E,_._optionsService=C,_._renderService=I,_._dragScrollAmount=0,_._enabled=!0,_._workCell=new n.CellData,_._mouseDownTimeStamp=0,_._onLinuxMouseSelection=_.register(new t.EventEmitter),_._onRedrawRequest=_.register(new t.EventEmitter),_._onSelectionChange=_.register(new t.EventEmitter),_._onRequestScrollLines=_.register(new t.EventEmitter),_._mouseMoveListener=function(F){return _._onMouseMove(F)},_._mouseUpListener=function(F){return _._onMouseUp(F)},_._coreService.onUserInput(function(){_.hasSelection&&_.clearSelection()}),_._trimListener=_._bufferService.buffer.lines.onTrim(function(F){return _._onTrim(F)}),_.register(_._bufferService.buffers.onBufferActivate(function(F){return _._onBufferActivate(F)})),_.enable(),_._model=new o.SelectionModel(_._bufferService),_._activeSelectionMode=0,_}return m(b,v),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 x=this._model.finalSelectionStart,T=this._model.finalSelectionEnd;return!(!x||!T)&&(x[0]!==T[0]||x[1]!==T[1])},enumerable:!1,configurable:!0}),Object.defineProperty(b.prototype,"selectionText",{get:function(){var x=this._model.finalSelectionStart,T=this._model.finalSelectionEnd;if(!x||!T)return"";var O=this._bufferService.buffer,E=[];if(this._activeSelectionMode===3){if(x[0]===T[0])return"";for(var C=x[1];C<=T[1];C++){var I=O.translateBufferLineToString(C,!0,x[0],T[0]);E.push(I)}}else{var _=x[1]===T[1]?T[0]:void 0;for(E.push(O.translateBufferLineToString(x[1],!0,x[0],_)),C=x[1]+1;C<=T[1]-1;C++){var F=O.lines.get(C);I=O.translateBufferLineToString(C,!0),F&&F.isWrapped?E[E.length-1]+=I:E.push(I)}x[1]!==T[1]&&(F=O.lines.get(T[1]),I=O.translateBufferLineToString(T[1],!0,0,T[0]),F&&F.isWrapped?E[E.length-1]+=I:E.push(I))}return E.map(function(R){return R.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(w){var x=this;(this._refreshAnimationFrame||(this._refreshAnimationFrame=window.requestAnimationFrame(function(){return x._refresh()})),l.isLinux&&w)&&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(w){var x=this._getMouseBufferCoords(w),T=this._model.finalSelectionStart,O=this._model.finalSelectionEnd;return!!(T&&O&&x)&&this._areCoordsInSelection(x,T,O)},b.prototype._areCoordsInSelection=function(w,x,T){return w[1]>x[1]&&w[1]<T[1]||x[1]===T[1]&&w[1]===x[1]&&w[0]>=x[0]&&w[0]<T[0]||x[1]<T[1]&&w[1]===T[1]&&w[0]<T[0]||x[1]<T[1]&&w[1]===x[1]&&w[0]>=x[0]},b.prototype.selectWordAtCursor=function(w){var x=this._getMouseBufferCoords(w);x&&(this._selectWordAt(x,!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(w,x){this._model.clearSelection(),w=Math.max(w,0),x=Math.min(x,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,w],this._model.selectionEnd=[this._bufferService.cols,x],this.refresh(),this._onSelectionChange.fire()},b.prototype._onTrim=function(w){this._model.onTrim(w)&&this.refresh()},b.prototype._getMouseBufferCoords=function(w){var x=this._mouseService.getCoords(w,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(x)return x[0]--,x[1]--,x[1]+=this._bufferService.buffer.ydisp,x},b.prototype._getMouseEventScrollAmount=function(w){var x=u.getCoordsRelativeToElement(w,this._screenElement)[1],T=this._renderService.dimensions.canvasHeight;return x>=0&&x<=T?0:(x>T&&(x-=T),x=Math.min(Math.max(x,-50),50),(x/=50)/Math.abs(x)+Math.round(14*x))},b.prototype.shouldForceSelection=function(w){return l.isMac?w.altKey&&this._optionsService.options.macOptionClickForcesSelection:w.shiftKey},b.prototype.onMouseDown=function(w){if(this._mouseDownTimeStamp=w.timeStamp,(w.button!==2||!this.hasSelection)&&w.button===0){if(!this._enabled){if(!this.shouldForceSelection(w))return;w.stopPropagation()}w.preventDefault(),this._dragScrollAmount=0,this._enabled&&w.shiftKey?this._onIncrementalClick(w):w.detail===1?this._onSingleClick(w):w.detail===2?this._onDoubleClick(w):w.detail===3&&this._onTripleClick(w),this._addMouseDownListeners(),this.refresh(!0)}},b.prototype._addMouseDownListeners=function(){var w=this;this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=window.setInterval(function(){return w._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(w){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(w))},b.prototype._onSingleClick=function(w){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(w)?3:0,this._model.selectionStart=this._getMouseBufferCoords(w),this._model.selectionStart){this._model.selectionEnd=void 0;var x=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);x&&x.length!==this._model.selectionStart[0]&&x.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}},b.prototype._onDoubleClick=function(w){var x=this._getMouseBufferCoords(w);x&&(this._activeSelectionMode=1,this._selectWordAt(x,!0))},b.prototype._onTripleClick=function(w){var x=this._getMouseBufferCoords(w);x&&(this._activeSelectionMode=2,this._selectLineAt(x[1]))},b.prototype.shouldColumnSelect=function(w){return w.altKey&&!(l.isMac&&this._optionsService.options.macOptionClickForcesSelection)},b.prototype._onMouseMove=function(w){if(w.stopImmediatePropagation(),this._model.selectionStart){var x=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(w),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(w),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 O=T.lines.get(this._model.selectionEnd[1]);O&&O.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}x&&x[0]===this._model.selectionEnd[0]&&x[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 w=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(w.ydisp+this._bufferService.rows,w.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=w.ydisp),this.refresh()}},b.prototype._onMouseUp=function(w){var x=w.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&x<500&&w.altKey){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){var T=this._mouseService.getCoords(w,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(T&&T[0]!==void 0&&T[1]!==void 0){var O=r.moveToCellSequence(T[0]-1,T[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(O,!0)}}}else this.hasSelection&&this._onSelectionChange.fire()},b.prototype._onBufferActivate=function(w){var x=this;this.clearSelection(),this._trimListener.dispose(),this._trimListener=w.activeBuffer.lines.onTrim(function(T){return x._onTrim(T)})},b.prototype._convertViewportColToCharacterIndex=function(w,x){for(var T=x[0],O=0;x[0]>=O;O++){var E=w.loadCell(O,this._workCell).getChars().length;this._workCell.getWidth()===0?T--:E>1&&x[0]!==O&&(T+=E-1)}return T},b.prototype.setSelection=function(w,x,T){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[w,x],this._model.selectionStartLength=T,this.refresh()},b.prototype._getWordAt=function(w,x,T,O){if(T===void 0&&(T=!0),O===void 0&&(O=!0),!(w[0]>=this._bufferService.cols)){var E=this._bufferService.buffer,C=E.lines.get(w[1]);if(C){var I=E.translateBufferLineToString(w[1],!1),_=this._convertViewportColToCharacterIndex(C,w),F=_,R=w[0]-_,B=0,M=0,X=0,P=0;if(I.charAt(_)===" "){for(;_>0&&I.charAt(_-1)===" ";)_--;for(;F<I.length&&I.charAt(F+1)===" ";)F++}else{var z=w[0],W=w[0];C.getWidth(z)===0&&(B++,z--),C.getWidth(W)===2&&(M++,W++);var U=C.getString(W).length;for(U>1&&(P+=U-1,F+=U-1);z>0&&_>0&&!this._isCharWordSeparator(C.loadCell(z-1,this._workCell));){C.loadCell(z-1,this._workCell);var V=this._workCell.getChars().length;this._workCell.getWidth()===0?(B++,z--):V>1&&(X+=V-1,_-=V-1),_--,z--}for(;W<C.length&&F+1<I.length&&!this._isCharWordSeparator(C.loadCell(W+1,this._workCell));){C.loadCell(W+1,this._workCell);var Q=this._workCell.getChars().length;this._workCell.getWidth()===2?(M++,W++):Q>1&&(P+=Q-1,F+=Q-1),F++,W++}}F++;var G=_+R-B+X,te=Math.min(this._bufferService.cols,F-_+B+M-X-P);if(x||I.slice(_,F).trim()!==""){if(T&&G===0&&C.getCodePoint(0)!==32){var $=E.lines.get(w[1]-1);if($&&C.isWrapped&&$.getCodePoint(this._bufferService.cols-1)!==32){var le=this._getWordAt([this._bufferService.cols-1,w[1]-1],!1,!0,!1);if(le){var re=this._bufferService.cols-le.start;G-=re,te+=re}}}if(O&&G+te===this._bufferService.cols&&C.getCodePoint(this._bufferService.cols-1)!==32){var Se=E.lines.get(w[1]+1);if(Se&&Se.isWrapped&&Se.getCodePoint(0)!==32){var Re=this._getWordAt([0,w[1]+1],!1,!1,!0);Re&&(te+=Re.length)}}return{start:G,length:te}}}}},b.prototype._selectWordAt=function(w,x){var T=this._getWordAt(w,x);if(T){for(;T.start<0;)T.start+=this._bufferService.cols,w[1]--;this._model.selectionStart=[T.start,w[1]],this._model.selectionStartLength=T.length}},b.prototype._selectToWordAt=function(w){var x=this._getWordAt(w,!0);if(x){for(var T=w[1];x.start<0;)x.start+=this._bufferService.cols,T--;if(!this._model.areSelectionValuesReversed())for(;x.start+x.length>this._bufferService.cols;)x.length-=this._bufferService.cols,T++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?x.start:x.start+x.length,T]}},b.prototype._isCharWordSeparator=function(w){return w.getWidth()!==0&&this._optionsService.options.wordSeparator.indexOf(w.getChars())>=0},b.prototype._selectLineAt=function(w){var x=this._bufferService.buffer.getWrappedRangeForLine(w);this._model.selectionStart=[0,x.first],this._model.selectionEnd=[this._bufferService.cols,x.last],this._model.selectionStartLength=0},b=f([d(2,e.IBufferService),d(3,e.ICoreService),d(4,a.IMouseService),d(5,e.IOptionsService),d(6,a.IRenderService)],b)}(s.Disposable);p.SelectionService=g},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.SelectionModel=void 0;var A=function(){function m(f){this._bufferService=f,this.isSelectAllActive=!1,this.selectionStartLength=0}return m.prototype.clearSelection=function(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0},Object.defineProperty(m.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(m.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}),m.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])},m.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)},m}();p.SelectionModel=A},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.moveToCellSequence=void 0;var A=S(12);function m(t,a,e,u){var r=t-f(e,t),s=a-f(e,a);return n(Math.abs(r-s)-function(c,h,g){for(var v=0,b=c-f(g,c),w=h-f(g,h),x=0;x<Math.abs(b-w);x++){var T=d(c,h)==="A"?-1:1,O=g.buffer.lines.get(b+T*x);O&&O.isWrapped&&v++}return v}(t,a,e),o(d(t,a),u))}function f(t,a){for(var e=0,u=t.buffer.lines.get(a),r=u&&u.isWrapped;r&&a>=0&&a<t.rows;)e++,r=(u=t.buffer.lines.get(--a))&&u.isWrapped;return e}function d(t,a){return t>a?"A":"B"}function l(t,a,e,u,r,s){for(var c=t,h=a,g="";c!==e||h!==u;)c+=r?1:-1,r&&c>s.cols-1?(g+=s.buffer.translateBufferLineToString(h,!1,t,c),c=0,t=0,h++):!r&&c<0&&(g+=s.buffer.translateBufferLineToString(h,!1,0,t+1),t=c=s.cols-1,h--);return g+s.buffer.translateBufferLineToString(h,!1,t,c)}function o(t,a){var e=a?"O":"[";return A.C0.ESC+e+t}function n(t,a){t=Math.floor(t);for(var e="",u=0;u<t;u++)e+=a;return e}p.moveToCellSequence=function(t,a,e,u){var r,s=e.buffer.x,c=e.buffer.y;if(!e.buffer.hasScrollback)return function(g,v,b,w,x,T){return m(v,w,x,T).length===0?"":n(l(g,v,g,v-f(x,v),!1,x).length,o("D",T))}(s,c,0,a,e,u)+m(c,a,e,u)+function(g,v,b,w,x,T){var O;O=m(v,w,x,T).length>0?w-f(x,w):v;var E=w,C=function(I,_,F,R,B,M){var X;return X=m(F,R,B,M).length>0?R-f(B,R):_,I<F&&X<=R||I>=F&&X<R?"C":"D"}(g,v,b,w,x,T);return n(l(g,O,b,E,C==="C",x).length,o(C,T))}(s,c,t,a,e,u);if(c===a)return r=s>t?"D":"C",n(Math.abs(s-t),o(r,u));r=c>a?"D":"C";var h=Math.abs(c-a);return n(function(g,v){return v.cols-g}(c>a?t:s,e)+(h-1)*e.cols+1+((c>a?s:t)-1),o(r,u))}},function(y,p,S){"use strict";var A=this&&this.__decorate||function(l,o,n,t){var a,e=arguments.length,u=e<3?o:t===null?t=Object.getOwnPropertyDescriptor(o,n):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(l,o,n,t);else for(var r=l.length-1;r>=0;r--)(a=l[r])&&(u=(e<3?a(u):e>3?a(o,n,u):a(o,n))||u);return e>3&&u&&Object.defineProperty(o,n,u),u},m=this&&this.__param||function(l,o){return function(n,t){o(n,t,l)}};Object.defineProperty(p,"__esModule",{value:!0}),p.SoundService=void 0;var f=S(1),d=function(){function l(o){this._optionsService=o}return Object.defineProperty(l,"audioContext",{get:function(){if(!l._audioContext){var n=window.AudioContext||window.webkitAudioContext;if(!n)return console.warn("Web Audio API is not supported by this browser. Consider upgrading to the latest version"),null;l._audioContext=new n}return l._audioContext},enumerable:!1,configurable:!0}),l.prototype.playBellSound=function(){var o=l.audioContext;if(o){var n=o.createBufferSource();o.decodeAudioData(this._base64ToArrayBuffer(this._removeMimeType(this._optionsService.options.bellSound)),function(t){n.buffer=t,n.connect(o.destination),n.start(0)})}},l.prototype._base64ToArrayBuffer=function(o){for(var n=window.atob(o),t=n.length,a=new Uint8Array(t),e=0;e<t;e++)a[e]=n.charCodeAt(e);return a.buffer},l.prototype._removeMimeType=function(o){return o.split(",")[1]},l=A([m(0,f.IOptionsService)],l)}();p.SoundService=d},function(y,p,S){"use strict";var A,m=this&&this.__extends||(A=function(u,r){return(A=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}A(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,g=h<3?u:s===null?s=Object.getOwnPropertyDescriptor(u,r):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,u,r,s);else for(var v=e.length-1;v>=0;v--)(c=e[v])&&(g=(h<3?c(g):h>3?c(u,r,g):c(u,r))||g);return h>3&&g&&Object.defineProperty(u,r,g),g},d=this&&this.__param||function(e,u){return function(r,s){u(r,s,e)}};Object.defineProperty(p,"__esModule",{value:!0}),p.MouseZoneManager=void 0;var l=S(2),o=S(7),n=S(5),t=S(1),a=function(e){function u(r,s,c,h,g,v){var b=e.call(this)||this;return b._element=r,b._screenElement=s,b._bufferService=c,b._mouseService=h,b._selectionService=g,b._optionsService=v,b._zones=[],b._areZonesActive=!1,b._lastHoverCoords=[void 0,void 0],b._initialSelectionLength=0,b.register(o.addDisposableDomListener(b._element,"mousedown",function(w){return b._onMouseDown(w)})),b._mouseMoveListener=function(w){return b._onMouseMove(w)},b._mouseLeaveListener=function(w){return b._onMouseLeave(w)},b._clickListener=function(w){return b._onClick(w)},b}return m(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],g=0;g<this._zones.length;g++){var v=this._zones[g];if(v.y1===v.y2){if(h===v.y1&&c>=v.x1&&c<v.x2)return v}else if(h===v.y1&&c>=v.x1||h===v.y2&&c<v.x2||h>v.y1&&h<v.y2)return v}},u=f([d(2,t.IBufferService),d(3,n.IMouseService),d(4,n.ISelectionService),d(5,t.IOptionsService)],u)}(l.Disposable);p.MouseZoneManager=a},function(y,p,S){"use strict";var A,m=this&&this.__extends||(A=function(r,s){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,h){c.__proto__=h}||function(c,h){for(var g in h)h.hasOwnProperty(g)&&(c[g]=h[g])})(r,s)},function(u,r){function s(){this.constructor=u}A(u,r),u.prototype=r===null?Object.create(r):(s.prototype=r.prototype,new s)});Object.defineProperty(p,"__esModule",{value:!0}),p.AccessibilityManager=void 0;var f=S(18),d=S(11),l=S(31),o=S(7),n=S(2),t=S(32),a=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 g=0;g<h._terminal.rows;g++)h._rowElements[g]=h._createAccessibilityTreeNode(),h._rowContainer.appendChild(h._rowElements[g]);if(h._topBoundaryFocusListener=function(v){return h._onBoundaryFocus(v,0)},h._bottomBoundaryFocusListener=function(v){return h._onBoundaryFocus(v,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(v){return h._onResize(v.rows)})),h.register(h._terminal.onRender(function(v){return h._refreshRows(v.start,v.end)})),h.register(h._terminal.onScroll(function(){return h._refreshRows()})),h.register(h._terminal.onA11yChar(function(v){return h._onChar(v)})),h.register(h._terminal.onLineFeed(function(){return h._onChar(`
`)})),h.register(h._terminal.onA11yTab(function(v){return h._onTab(v)})),h.register(h._terminal.onKey(function(v){return h._onKey(v.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(o.addDisposableDomListener(window,"resize",function(){return h._refreshRowsDimensions()})),h}return m(r,u),r.prototype.dispose=function(){u.prototype.dispose.call(this),a.removeElementFromParent(this._accessibilityTreeRoot),this._rowElements.length=0},r.prototype._onBoundaryFocus=function(s,c){var h=s.target,g=this._rowElements[c===0?1:this._rowElements.length-2];if(h.getAttribute("aria-posinset")!==(c===0?"1":""+this._terminal.buffer.lines.length)&&s.relatedTarget===g){var v,b;if(c===0?(v=h,b=this._rowElements.pop(),this._rowContainer.removeChild(b)):(v=this._rowElements.shift(),b=h,this._rowContainer.removeChild(v)),v.removeEventListener("focus",this._topBoundaryFocusListener),b.removeEventListener("focus",this._bottomBoundaryFocusListener),c===0){var w=this._createAccessibilityTreeNode();this._rowElements.unshift(w),this._rowContainer.insertAdjacentElement("afterbegin",w)}else w=this._createAccessibilityTreeNode(),this._rowElements.push(w),this._rowContainer.appendChild(w);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&&a.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,g=h.lines.length.toString(),v=s;v<=c;v++){var b=h.translateBufferLineToString(h.ydisp+v,!0),w=(h.ydisp+v+1).toString(),x=this._rowElements[v];x&&(b.length===0?x.innerHTML="&nbsp;":x.textContent=b,x.setAttribute("aria-posinset",w),x.setAttribute("aria-setsize",g))}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}(n.Disposable);p.AccessibilityManager=e},function(y,p,S){"use strict";var A,m=this&&this.__extends||(A=function(g,v){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,w){b.__proto__=w}||function(b,w){for(var x in w)w.hasOwnProperty(x)&&(b[x]=w[x])})(g,v)},function(h,g){function v(){this.constructor=h}A(h,g),h.prototype=g===null?Object.create(g):(v.prototype=g.prototype,new v)}),f=this&&this.__decorate||function(h,g,v,b){var w,x=arguments.length,T=x<3?g:b===null?b=Object.getOwnPropertyDescriptor(g,v):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")T=Reflect.decorate(h,g,v,b);else for(var O=h.length-1;O>=0;O--)(w=h[O])&&(T=(x<3?w(T):x>3?w(g,v,T):w(g,v))||T);return x>3&&T&&Object.defineProperty(g,v,T),T},d=this&&this.__param||function(h,g){return function(v,b){g(v,b,h)}};Object.defineProperty(p,"__esModule",{value:!0}),p.DomRenderer=void 0;var l=S(58),o=S(9),n=S(2),t=S(5),a=S(1),e=S(0),u=S(10),r=S(17),s=1,c=function(h){function g(v,b,w,x,T,O,E,C,I){var _=h.call(this)||this;return _._colors=v,_._element=b,_._screenElement=w,_._viewportElement=x,_._linkifier=T,_._linkifier2=O,_._charSizeService=E,_._optionsService=C,_._bufferService=I,_._terminalClass=s++,_._rowElements=[],_._rowContainer=document.createElement("div"),_._rowContainer.classList.add("xterm-rows"),_._rowContainer.style.lineHeight="normal",_._rowContainer.setAttribute("aria-hidden","true"),_._refreshRowElements(_._bufferService.cols,_._bufferService.rows),_._selectionContainer=document.createElement("div"),_._selectionContainer.classList.add("xterm-selection"),_._selectionContainer.setAttribute("aria-hidden","true"),_.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},_._updateDimensions(),_._injectCss(),_._rowFactory=new l.DomRendererRowFactory(document,_._optionsService,_._colors),_._element.classList.add("xterm-dom-renderer-owner-"+_._terminalClass),_._screenElement.appendChild(_._rowContainer),_._screenElement.appendChild(_._selectionContainer),_._linkifier.onShowLinkUnderline(function(F){return _._onLinkHover(F)}),_._linkifier.onHideLinkUnderline(function(F){return _._onLinkLeave(F)}),_._linkifier2.onShowLinkUnderline(function(F){return _._onLinkHover(F)}),_._linkifier2.onHideLinkUnderline(function(F){return _._onLinkLeave(F)}),_}return m(g,h),Object.defineProperty(g.prototype,"onRequestRedraw",{get:function(){return new e.EventEmitter().event},enumerable:!1,configurable:!0}),g.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)},g.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 v=0,b=this._rowElements;v<b.length;v++){var w=b[v];w.style.width=this.dimensions.canvasWidth+"px",w.style.height=this.dimensions.actualCellHeight+"px",w.style.lineHeight=this.dimensions.actualCellHeight+"px",w.style.overflow="hidden"}this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));var x=this._terminalSelector+" .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: "+this.dimensions.actualCellWidth+"px}";this._dimensionsStyleElement.innerHTML=x,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=this.dimensions.canvasWidth+"px",this._screenElement.style.height=this.dimensions.canvasHeight+"px"},g.prototype.setColors=function(v){this._colors=v,this._injectCss()},g.prototype._injectCss=function(){var v=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(w,x){b+=v._terminalSelector+" .xterm-fg-"+x+" { color: "+w.css+"; }"+v._terminalSelector+" .xterm-bg-"+x+" { background-color: "+w.css+"; }"}),b+=this._terminalSelector+" .xterm-fg-"+o.INVERTED_DEFAULT_COLOR+" { color: "+u.color.opaque(this._colors.background).css+"; }"+this._terminalSelector+" .xterm-bg-"+o.INVERTED_DEFAULT_COLOR+" { background-color: "+this._colors.foreground.css+"; }",this._themeStyleElement.innerHTML=b},g.prototype.onDevicePixelRatioChange=function(){this._updateDimensions()},g.prototype._refreshRowElements=function(v,b){for(var w=this._rowElements.length;w<=b;w++){var x=document.createElement("div");this._rowContainer.appendChild(x),this._rowElements.push(x)}for(;this._rowElements.length>b;)this._rowContainer.removeChild(this._rowElements.pop())},g.prototype.onResize=function(v,b){this._refreshRowElements(v,b),this._updateDimensions()},g.prototype.onCharSizeChanged=function(){this._updateDimensions()},g.prototype.onBlur=function(){this._rowContainer.classList.remove("xterm-focus")},g.prototype.onFocus=function(){this._rowContainer.classList.add("xterm-focus")},g.prototype.onSelectionChanged=function(v,b,w){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(v&&b){var x=v[1]-this._bufferService.buffer.ydisp,T=b[1]-this._bufferService.buffer.ydisp,O=Math.max(x,0),E=Math.min(T,this._bufferService.rows-1);if(!(O>=this._bufferService.rows||E<0)){var C=document.createDocumentFragment();if(w)C.appendChild(this._createSelectionElement(O,v[0],b[0],E-O+1));else{var I=x===O?v[0]:0,_=O===E?b[0]:this._bufferService.cols;C.appendChild(this._createSelectionElement(O,I,_));var F=E-O-1;if(C.appendChild(this._createSelectionElement(O+1,0,this._bufferService.cols,F)),O!==E){var R=T===E?b[0]:this._bufferService.cols;C.appendChild(this._createSelectionElement(E,0,R))}}this._selectionContainer.appendChild(C)}}},g.prototype._createSelectionElement=function(v,b,w,x){x===void 0&&(x=1);var T=document.createElement("div");return T.style.height=x*this.dimensions.actualCellHeight+"px",T.style.top=v*this.dimensions.actualCellHeight+"px",T.style.left=b*this.dimensions.actualCellWidth+"px",T.style.width=this.dimensions.actualCellWidth*(w-b)+"px",T},g.prototype.onCursorMove=function(){},g.prototype.onOptionsChanged=function(){this._updateDimensions(),this._injectCss()},g.prototype.clear=function(){for(var v=0,b=this._rowElements;v<b.length;v++)b[v].innerHTML=""},g.prototype.renderRows=function(v,b){for(var w=this._bufferService.buffer.ybase+this._bufferService.buffer.y,x=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),T=this._optionsService.options.cursorBlink,O=v;O<=b;O++){var E=this._rowElements[O];E.innerHTML="";var C=O+this._bufferService.buffer.ydisp,I=this._bufferService.buffer.lines.get(C),_=this._optionsService.options.cursorStyle;E.appendChild(this._rowFactory.createRow(I,C===w,_,x,T,this.dimensions.actualCellWidth,this._bufferService.cols))}},Object.defineProperty(g.prototype,"_terminalSelector",{get:function(){return".xterm-dom-renderer-owner-"+this._terminalClass},enumerable:!1,configurable:!0}),g.prototype.registerCharacterJoiner=function(v){return-1},g.prototype.deregisterCharacterJoiner=function(v){return!1},g.prototype._onLinkHover=function(v){this._setCellUnderline(v.x1,v.x2,v.y1,v.y2,v.cols,!0)},g.prototype._onLinkLeave=function(v){this._setCellUnderline(v.x1,v.x2,v.y1,v.y2,v.cols,!1)},g.prototype._setCellUnderline=function(v,b,w,x,T,O){for(;v!==b||w!==x;){var E=this._rowElements[w];if(!E)return;var C=E.children[v];C&&(C.style.textDecoration=O?"underline":"none"),++v>=T&&(v=0,w++)}},g=f([d(6,t.ICharSizeService),d(7,a.IOptionsService),d(8,a.IBufferService)],g)}(n.Disposable);p.DomRenderer=c},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.DomRendererRowFactory=p.CURSOR_STYLE_UNDERLINE_CLASS=p.CURSOR_STYLE_BAR_CLASS=p.CURSOR_STYLE_BLOCK_CLASS=p.CURSOR_BLINK_CLASS=p.CURSOR_CLASS=p.UNDERLINE_CLASS=p.ITALIC_CLASS=p.DIM_CLASS=p.BOLD_CLASS=void 0;var A=S(9),m=S(3),f=S(4),d=S(10);p.BOLD_CLASS="xterm-bold",p.DIM_CLASS="xterm-dim",p.ITALIC_CLASS="xterm-italic",p.UNDERLINE_CLASS="xterm-underline",p.CURSOR_CLASS="xterm-cursor",p.CURSOR_BLINK_CLASS="xterm-cursor-blink",p.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",p.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",p.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";var l=function(){function n(t,a,e){this._document=t,this._optionsService=a,this._colors=e,this._workCell=new f.CellData}return n.prototype.setColors=function(t){this._colors=t},n.prototype.createRow=function(t,a,e,u,r,s,c){for(var h=this._document.createDocumentFragment(),g=0,v=Math.min(t.length,c)-1;v>=0;v--)if(t.loadCell(v,this._workCell).getCode()!==m.NULL_CELL_CODE||a&&v===u){g=v+1;break}for(v=0;v<g;v++){t.loadCell(v,this._workCell);var b=this._workCell.getWidth();if(b!==0){var w=this._document.createElement("span");if(b>1&&(w.style.width=s*b+"px"),a&&v===u)switch(w.classList.add(p.CURSOR_CLASS),r&&w.classList.add(p.CURSOR_BLINK_CLASS),e){case"bar":w.classList.add(p.CURSOR_STYLE_BAR_CLASS);break;case"underline":w.classList.add(p.CURSOR_STYLE_UNDERLINE_CLASS);break;default:w.classList.add(p.CURSOR_STYLE_BLOCK_CLASS)}this._workCell.isBold()&&w.classList.add(p.BOLD_CLASS),this._workCell.isItalic()&&w.classList.add(p.ITALIC_CLASS),this._workCell.isDim()&&w.classList.add(p.DIM_CLASS),this._workCell.isUnderline()&&w.classList.add(p.UNDERLINE_CLASS),this._workCell.isInvisible()?w.textContent=m.WHITESPACE_CELL_CHAR:w.textContent=this._workCell.getChars()||m.WHITESPACE_CELL_CHAR;var x=this._workCell.getFgColor(),T=this._workCell.getFgColorMode(),O=this._workCell.getBgColor(),E=this._workCell.getBgColorMode(),C=!!this._workCell.isInverse();if(C){var I=x;x=O,O=I;var _=T;T=E,E=_}switch(T){case 16777216:case 33554432:this._workCell.isBold()&&x<8&&this._optionsService.options.drawBoldTextInBrightColors&&(x+=8),this._applyMinimumContrast(w,this._colors.background,this._colors.ansi[x])||w.classList.add("xterm-fg-"+x);break;case 50331648:var F=d.rgba.toColor(x>>16&255,x>>8&255,255&x);this._applyMinimumContrast(w,this._colors.background,F)||this._addStyle(w,"color:#"+o(x.toString(16),"0",6));break;case 0:default:this._applyMinimumContrast(w,this._colors.background,this._colors.foreground)||C&&w.classList.add("xterm-fg-"+A.INVERTED_DEFAULT_COLOR)}switch(E){case 16777216:case 33554432:w.classList.add("xterm-bg-"+O);break;case 50331648:this._addStyle(w,"background-color:#"+o(O.toString(16),"0",6));break;case 0:default:C&&w.classList.add("xterm-bg-"+A.INVERTED_DEFAULT_COLOR)}h.appendChild(w)}}return h},n.prototype._applyMinimumContrast=function(t,a,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(a,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)},n.prototype._addStyle=function(t,a){t.setAttribute("style",""+(t.getAttribute("style")||"")+a+";")},n}();function o(n,t,a){for(;n.length<a;)n=t+n;return n}p.DomRendererRowFactory=l},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.evaluateKeyboardEvent=void 0;var A=S(12),m={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:["'",'"']};p.evaluateKeyboardEvent=function(f,d,l,o){var n={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"?n.key=d?A.C0.ESC+"OA":A.C0.ESC+"[A":f.key==="UIKeyInputLeftArrow"?n.key=d?A.C0.ESC+"OD":A.C0.ESC+"[D":f.key==="UIKeyInputRightArrow"?n.key=d?A.C0.ESC+"OC":A.C0.ESC+"[C":f.key==="UIKeyInputDownArrow"&&(n.key=d?A.C0.ESC+"OB":A.C0.ESC+"[B");break;case 8:if(f.shiftKey){n.key=A.C0.BS;break}if(f.altKey){n.key=A.C0.ESC+A.C0.DEL;break}n.key=A.C0.DEL;break;case 9:if(f.shiftKey){n.key=A.C0.ESC+"[Z";break}n.key=A.C0.HT,n.cancel=!0;break;case 13:n.key=f.altKey?A.C0.ESC+A.C0.CR:A.C0.CR,n.cancel=!0;break;case 27:n.key=A.C0.ESC,f.altKey&&(n.key=A.C0.ESC+A.C0.ESC),n.cancel=!0;break;case 37:if(f.metaKey)break;t?(n.key=A.C0.ESC+"[1;"+(t+1)+"D",n.key===A.C0.ESC+"[1;3D"&&(n.key=A.C0.ESC+(l?"b":"[1;5D"))):n.key=d?A.C0.ESC+"OD":A.C0.ESC+"[D";break;case 39:if(f.metaKey)break;t?(n.key=A.C0.ESC+"[1;"+(t+1)+"C",n.key===A.C0.ESC+"[1;3C"&&(n.key=A.C0.ESC+(l?"f":"[1;5C"))):n.key=d?A.C0.ESC+"OC":A.C0.ESC+"[C";break;case 38:if(f.metaKey)break;t?(n.key=A.C0.ESC+"[1;"+(t+1)+"A",l||n.key!==A.C0.ESC+"[1;3A"||(n.key=A.C0.ESC+"[1;5A")):n.key=d?A.C0.ESC+"OA":A.C0.ESC+"[A";break;case 40:if(f.metaKey)break;t?(n.key=A.C0.ESC+"[1;"+(t+1)+"B",l||n.key!==A.C0.ESC+"[1;3B"||(n.key=A.C0.ESC+"[1;5B")):n.key=d?A.C0.ESC+"OB":A.C0.ESC+"[B";break;case 45:f.shiftKey||f.ctrlKey||(n.key=A.C0.ESC+"[2~");break;case 46:n.key=t?A.C0.ESC+"[3;"+(t+1)+"~":A.C0.ESC+"[3~";break;case 36:n.key=t?A.C0.ESC+"[1;"+(t+1)+"H":d?A.C0.ESC+"OH":A.C0.ESC+"[H";break;case 35:n.key=t?A.C0.ESC+"[1;"+(t+1)+"F":d?A.C0.ESC+"OF":A.C0.ESC+"[F";break;case 33:f.shiftKey?n.type=2:n.key=A.C0.ESC+"[5~";break;case 34:f.shiftKey?n.type=3:n.key=A.C0.ESC+"[6~";break;case 112:n.key=t?A.C0.ESC+"[1;"+(t+1)+"P":A.C0.ESC+"OP";break;case 113:n.key=t?A.C0.ESC+"[1;"+(t+1)+"Q":A.C0.ESC+"OQ";break;case 114:n.key=t?A.C0.ESC+"[1;"+(t+1)+"R":A.C0.ESC+"OR";break;case 115:n.key=t?A.C0.ESC+"[1;"+(t+1)+"S":A.C0.ESC+"OS";break;case 116:n.key=t?A.C0.ESC+"[15;"+(t+1)+"~":A.C0.ESC+"[15~";break;case 117:n.key=t?A.C0.ESC+"[17;"+(t+1)+"~":A.C0.ESC+"[17~";break;case 118:n.key=t?A.C0.ESC+"[18;"+(t+1)+"~":A.C0.ESC+"[18~";break;case 119:n.key=t?A.C0.ESC+"[19;"+(t+1)+"~":A.C0.ESC+"[19~";break;case 120:n.key=t?A.C0.ESC+"[20;"+(t+1)+"~":A.C0.ESC+"[20~";break;case 121:n.key=t?A.C0.ESC+"[21;"+(t+1)+"~":A.C0.ESC+"[21~";break;case 122:n.key=t?A.C0.ESC+"[23;"+(t+1)+"~":A.C0.ESC+"[23~";break;case 123:n.key=t?A.C0.ESC+"[24;"+(t+1)+"~":A.C0.ESC+"[24~";break;default:if(!f.ctrlKey||f.shiftKey||f.altKey||f.metaKey)if(l&&!o||!f.altKey||f.metaKey)l&&!f.altKey&&!f.ctrlKey&&f.metaKey?f.keyCode===65&&(n.type=1):f.key&&!f.ctrlKey&&!f.altKey&&!f.metaKey&&f.keyCode>=48&&f.key.length===1?n.key=f.key:f.key&&f.ctrlKey&&f.key==="_"&&(n.key=A.C0.US);else{var a=m[f.keyCode],e=a&&a[f.shiftKey?1:0];if(e)n.key=A.C0.ESC+e;else if(f.keyCode>=65&&f.keyCode<=90){var u=f.ctrlKey?f.keyCode-64:f.keyCode+32;n.key=A.C0.ESC+String.fromCharCode(u)}}else f.keyCode>=65&&f.keyCode<=90?n.key=String.fromCharCode(f.keyCode-64):f.keyCode===32?n.key=A.C0.NUL:f.keyCode>=51&&f.keyCode<=55?n.key=String.fromCharCode(f.keyCode-51+27):f.keyCode===56?n.key=A.C0.DEL:f.keyCode===219?n.key=A.C0.ESC:f.keyCode===220?n.key=A.C0.FS:f.keyCode===221&&(n.key=A.C0.GS)}return n}},function(y,p,S){"use strict";var A,m=this&&this.__extends||(A=function(c,h){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,v){g.__proto__=v}||function(g,v){for(var b in v)v.hasOwnProperty(b)&&(g[b]=v[b])})(c,h)},function(s,c){function h(){this.constructor=s}A(s,c),s.prototype=c===null?Object.create(c):(h.prototype=c.prototype,new h)}),f=this&&this.__decorate||function(s,c,h,g){var v,b=arguments.length,w=b<3?c:g===null?g=Object.getOwnPropertyDescriptor(c,h):g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(s,c,h,g);else for(var x=s.length-1;x>=0;x--)(v=s[x])&&(w=(b<3?v(w):b>3?v(c,h,w):v(c,h))||w);return b>3&&w&&Object.defineProperty(c,h,w),w},d=this&&this.__param||function(s,c){return function(h,g){c(h,g,s)}};Object.defineProperty(p,"__esModule",{value:!0}),p.RenderService=void 0;var l=S(31),o=S(0),n=S(2),t=S(32),a=S(7),e=S(1),u=S(5),r=function(s){function c(h,g,v,b,w,x){var T=s.call(this)||this;if(T._renderer=h,T._rowCount=g,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 o.EventEmitter,T._onRender=new o.EventEmitter,T._onRefreshRequest=new o.EventEmitter,T.register({dispose:function(){return T._renderer.dispose()}}),T._renderDebouncer=new l.RenderDebouncer(function(E,C){return T._renderRows(E,C)}),T.register(T._renderDebouncer),T._screenDprMonitor=new t.ScreenDprMonitor,T._screenDprMonitor.setListener(function(){return T.onDevicePixelRatioChange()}),T.register(T._screenDprMonitor),T.register(x.onResize(function(E){return T._fullRefresh()})),T.register(b.onOptionChange(function(){return T._renderer.onOptionsChanged()})),T.register(w.onCharSizeChange(function(){return T.onCharSizeChanged()})),T._renderer.onRequestRedraw(function(E){return T.refreshRows(E.start,E.end,!0)}),T.register(a.addDisposableDomListener(window,"resize",function(){return T.onDevicePixelRatioChange()})),"IntersectionObserver"in window){var O=new IntersectionObserver(function(E){return T._onIntersectionChange(E[E.length-1])},{threshold:0});O.observe(v),T.register({dispose:function(){return O.disconnect()}})}return T}return m(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,g,v){v===void 0&&(v=!1),this._isPaused?this._needsFullRefresh=!0:(v||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(h,g,this._rowCount))},c.prototype._renderRows=function(h,g){this._renderer.renderRows(h,g),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:g}),this._isNextRenderRedrawOnly=!0},c.prototype.resize=function(h,g){this._rowCount=g,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 g=this;this._renderer.dispose(),this._renderer=h,this._renderer.onRequestRedraw(function(v){return g.refreshRows(v.start,v.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,g){this._renderer.onResize(h,g),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,g,v){this._selectionState.start=h,this._selectionState.end=g,this._selectionState.columnSelectMode=v,this._renderer.onSelectionChanged(h,g,v)},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)}(n.Disposable);p.RenderService=r},function(y,p,S){"use strict";var A=this&&this.__decorate||function(n,t,a,e){var u,r=arguments.length,s=r<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,a):e;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(n,t,a,e);else for(var c=n.length-1;c>=0;c--)(u=n[c])&&(s=(r<3?u(s):r>3?u(t,a,s):u(t,a))||s);return r>3&&s&&Object.defineProperty(t,a,s),s},m=this&&this.__param||function(n,t){return function(a,e){t(a,e,n)}};Object.defineProperty(p,"__esModule",{value:!0}),p.CharSizeService=void 0;var f=S(1),d=S(0),l=function(){function n(t,a,e){this._optionsService=e,this.width=0,this.height=0,this._onCharSizeChange=new d.EventEmitter,this._measureStrategy=new o(t,a,this._optionsService)}return Object.defineProperty(n.prototype,"hasValidSize",{get:function(){return this.width>0&&this.height>0},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"onCharSizeChange",{get:function(){return this._onCharSizeChange.event},enumerable:!1,configurable:!0}),n.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())},n=A([m(2,f.IOptionsService)],n)}();p.CharSizeService=l;var o=function(){function n(t,a,e){this._document=t,this._parentElement=a,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 n.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},n}()},function(y,p,S){"use strict";var A=this&&this.__decorate||function(o,n,t,a){var e,u=arguments.length,r=u<3?n:a===null?a=Object.getOwnPropertyDescriptor(n,t):a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(o,n,t,a);else for(var s=o.length-1;s>=0;s--)(e=o[s])&&(r=(u<3?e(r):u>3?e(n,t,r):e(n,t))||r);return u>3&&r&&Object.defineProperty(n,t,r),r},m=this&&this.__param||function(o,n){return function(t,a){n(t,a,o)}};Object.defineProperty(p,"__esModule",{value:!0}),p.MouseService=void 0;var f=S(5),d=S(30),l=function(){function o(n,t){this._renderService=n,this._charSizeService=t}return o.prototype.getCoords=function(n,t,a,e,u){return d.getCoords(n,t,a,e,this._charSizeService.hasValidSize,this._renderService.dimensions.actualCellWidth,this._renderService.dimensions.actualCellHeight,u)},o.prototype.getRawByteCoords=function(n,t,a,e){var u=this.getCoords(n,t,a,e);return d.getRawByteCoords(u)},o=A([m(0,f.IRenderService),m(1,f.ICharSizeService)],o)}();p.MouseService=l},function(y,p,S){"use strict";var A,m=this&&this.__extends||(A=function(u,r){return(A=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}A(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,g=h<3?u:s===null?s=Object.getOwnPropertyDescriptor(u,r):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,u,r,s);else for(var v=e.length-1;v>=0;v--)(c=e[v])&&(g=(h<3?c(g):h>3?c(u,r,g):c(u,r))||g);return h>3&&g&&Object.defineProperty(u,r,g),g},d=this&&this.__param||function(e,u){return function(r,s){u(r,s,e)}};Object.defineProperty(p,"__esModule",{value:!0}),p.Linkifier2=void 0;var l=S(1),o=S(0),n=S(2),t=S(7),a=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 o.EventEmitter),s._onHideLinkUnderline=s.register(new o.EventEmitter),s.register(n.getDisposeArrayDisposable(s._linkCacheDisposables)),s}return m(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 g=c[h];if(g.classList.contains("xterm"))break;if(g.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(g,v){var b;s?((b=c._activeProviderReplies)===null||b===void 0?void 0:b.get(v))&&(h=c._checkLinkProviderResult(v,r,h)):g.provideLinks(r.y,function(w){var x,T;if(!c._isMouseOut){var O=w==null?void 0:w.map(function(E){return{link:E}});(x=c._activeProviderReplies)===null||x===void 0||x.set(v,O),h=c._checkLinkProviderResult(v,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 g=s.get(h);if(g)for(var v=0;v<g.length;v++)for(var b=g[v],w=b.link.range.start.y<r?0:b.link.range.start.x,x=b.link.range.end.y>r?this._bufferService.cols:b.link.range.end.x,T=w;T<=x;T++){if(c.has(T)){g.splice(v--,1);break}c.add(T)}}},u.prototype._checkLinkProviderResult=function(r,s,c){var h,g=this;if(!this._activeProviderReplies)return c;for(var v=this._activeProviderReplies.get(r),b=!1,w=0;w<r;w++)this._activeProviderReplies.has(w)&&!this._activeProviderReplies.get(w)||(b=!0);if(!b&&v){var x=v.find(function(O){return g._linkAtPosition(O.link,s)});x&&(c=!0,this._handleNewLink(x))}if(this._activeProviderReplies.size===this._linkProviders.length&&!c)for(w=0;w<this._activeProviderReplies.size;w++){var T=(h=this._activeProviderReplies.get(w))===null||h===void 0?void 0:h.find(function(O){return g._linkAtPosition(O.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,n.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 g,v;return(v=(g=s._currentLink)===null||g===void 0?void 0:g.state)===null||v===void 0?void 0:v.decorations.pointerCursor},set:function(g){var v,b;((v=s._currentLink)===null||v===void 0?void 0:v.state)&&s._currentLink.state.decorations.pointerCursor!==g&&(s._currentLink.state.decorations.pointerCursor=g,s._currentLink.state.isHovered&&((b=s._element)===null||b===void 0||b.classList.toggle("xterm-cursor-pointer",g)))}},underline:{get:function(){var g,v;return(v=(g=s._currentLink)===null||g===void 0?void 0:g.state)===null||v===void 0?void 0:v.decorations.underline},set:function(g){var v,b,w;((v=s._currentLink)===null||v===void 0?void 0:v.state)&&((w=(b=s._currentLink)===null||b===void 0?void 0:b.state)===null||w===void 0?void 0:w.decorations.underline)!==g&&(s._currentLink.state.decorations.underline=g,s._currentLink.state.isHovered&&s._fireUnderlineEvent(r.link,g))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedBufferChange(function(h){var g=h.start===0?0:h.start+1+s._bufferService.buffer.ydisp;s._clearCurrentLink(g,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,g=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(g)},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,g=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||g&&r.range.start.x<=s.x||h&&g)&&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,g){return{x1:r,y1:s,x2:c,y2:h,cols:this._bufferService.cols,fg:g}},u=f([d(0,l.IBufferService)],u)}(n.Disposable);p.Linkifier2=a},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CoreBrowserService=void 0;var A=function(){function m(f){this._textarea=f}return Object.defineProperty(m.prototype,"isFocused",{get:function(){return document.activeElement===this._textarea&&document.hasFocus()},enumerable:!1,configurable:!0}),m}();p.CoreBrowserService=A},function(y,p,S){"use strict";var A,m=this&&this.__extends||(A=function(x,T){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,E){O.__proto__=E}||function(O,E){for(var C in E)E.hasOwnProperty(C)&&(O[C]=E[C])})(x,T)},function(w,x){function T(){this.constructor=w}A(w,x),w.prototype=x===null?Object.create(x):(T.prototype=x.prototype,new T)});Object.defineProperty(p,"__esModule",{value:!0}),p.CoreTerminal=void 0;var f=S(2),d=S(1),l=S(66),o=S(67),n=S(68),t=S(74),a=S(75),e=S(0),u=S(76),r=S(77),s=S(78),c=S(80),h=S(81),g=S(19),v=S(82),b=function(w){function x(T){var O=w.call(this)||this;return O._onBinary=new e.EventEmitter,O._onData=new e.EventEmitter,O._onLineFeed=new e.EventEmitter,O._onResize=new e.EventEmitter,O._onScroll=new e.EventEmitter,O._instantiationService=new l.InstantiationService,O.optionsService=new t.OptionsService(T),O._instantiationService.setService(d.IOptionsService,O.optionsService),O._bufferService=O.register(O._instantiationService.createInstance(n.BufferService)),O._instantiationService.setService(d.IBufferService,O._bufferService),O._logService=O._instantiationService.createInstance(o.LogService),O._instantiationService.setService(d.ILogService,O._logService),O._coreService=O.register(O._instantiationService.createInstance(a.CoreService,function(){return O.scrollToBottom()})),O._instantiationService.setService(d.ICoreService,O._coreService),O._coreMouseService=O._instantiationService.createInstance(u.CoreMouseService),O._instantiationService.setService(d.ICoreMouseService,O._coreMouseService),O._dirtyRowService=O._instantiationService.createInstance(r.DirtyRowService),O._instantiationService.setService(d.IDirtyRowService,O._dirtyRowService),O.unicodeService=O._instantiationService.createInstance(s.UnicodeService),O._instantiationService.setService(d.IUnicodeService,O.unicodeService),O._charsetService=O._instantiationService.createInstance(c.CharsetService),O._instantiationService.setService(d.ICharsetService,O._charsetService),O._inputHandler=new g.InputHandler(O._bufferService,O._charsetService,O._coreService,O._dirtyRowService,O._logService,O.optionsService,O._coreMouseService,O.unicodeService),O.register(e.forwardEvent(O._inputHandler.onLineFeed,O._onLineFeed)),O.register(O._inputHandler),O.register(e.forwardEvent(O._bufferService.onResize,O._onResize)),O.register(e.forwardEvent(O._coreService.onData,O._onData)),O.register(e.forwardEvent(O._coreService.onBinary,O._onBinary)),O.register(O.optionsService.onOptionChange(function(E){return O._updateOptions(E)})),O._writeBuffer=new v.WriteBuffer(function(E){return O._inputHandler.parse(E)}),O}return m(x,w),Object.defineProperty(x.prototype,"onBinary",{get:function(){return this._onBinary.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onData",{get:function(){return this._onData.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onLineFeed",{get:function(){return this._onLineFeed.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onResize",{get:function(){return this._onResize.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"onScroll",{get:function(){return this._onScroll.event},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"cols",{get:function(){return this._bufferService.cols},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"rows",{get:function(){return this._bufferService.rows},enumerable:!1,configurable:!0}),Object.defineProperty(x.prototype,"buffers",{get:function(){return this._bufferService.buffers},enumerable:!1,configurable:!0}),x.prototype.dispose=function(){var T;this._isDisposed||(w.prototype.dispose.call(this),(T=this._windowsMode)===null||T===void 0||T.dispose(),this._windowsMode=void 0)},x.prototype.write=function(T,O){this._writeBuffer.write(T,O)},x.prototype.writeSync=function(T){this._writeBuffer.writeSync(T)},x.prototype.resize=function(T,O){isNaN(T)||isNaN(O)||(T=Math.max(T,n.MINIMUM_COLS),O=Math.max(O,n.MINIMUM_ROWS),this._bufferService.resize(T,O))},x.prototype.scroll=function(T,O){O===void 0&&(O=!1);var E,C=this._bufferService.buffer;(E=this._cachedBlankLine)&&E.length===this.cols&&E.getFg(0)===T.fg&&E.getBg(0)===T.bg||(E=C.getBlankLine(T,O),this._cachedBlankLine=E),E.isWrapped=O;var I=C.ybase+C.scrollTop,_=C.ybase+C.scrollBottom;if(C.scrollTop===0){var F=C.lines.isFull;_===C.lines.length-1?F?C.lines.recycle().copyFrom(E):C.lines.push(E.clone()):C.lines.splice(_+1,0,E.clone()),F?this._bufferService.isUserScrolling&&(C.ydisp=Math.max(C.ydisp-1,0)):(C.ybase++,this._bufferService.isUserScrolling||C.ydisp++)}else{var R=_-I+1;C.lines.shiftElements(I+1,R-1,-1),C.lines.set(_,E.clone())}this._bufferService.isUserScrolling||(C.ydisp=C.ybase),this._dirtyRowService.markRangeDirty(C.scrollTop,C.scrollBottom),this._onScroll.fire(C.ydisp)},x.prototype.scrollLines=function(T,O){var E=this._bufferService.buffer;if(T<0){if(E.ydisp===0)return;this._bufferService.isUserScrolling=!0}else T+E.ydisp>=E.ybase&&(this._bufferService.isUserScrolling=!1);var C=E.ydisp;E.ydisp=Math.max(Math.min(E.ydisp+T,E.ybase),0),C!==E.ydisp&&(O||this._onScroll.fire(E.ydisp))},x.prototype.scrollPages=function(T){this.scrollLines(T*(this.rows-1))},x.prototype.scrollToTop=function(){this.scrollLines(-this._bufferService.buffer.ydisp)},x.prototype.scrollToBottom=function(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)},x.prototype.scrollToLine=function(T){var O=T-this._bufferService.buffer.ydisp;O!==0&&this.scrollLines(O)},x.prototype.addEscHandler=function(T,O){return this._inputHandler.addEscHandler(T,O)},x.prototype.addDcsHandler=function(T,O){return this._inputHandler.addDcsHandler(T,O)},x.prototype.addCsiHandler=function(T,O){return this._inputHandler.addCsiHandler(T,O)},x.prototype.addOscHandler=function(T,O){return this._inputHandler.addOscHandler(T,O)},x.prototype._setup=function(){this.optionsService.options.windowsMode&&this._enableWindowsMode()},x.prototype.reset=function(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this._coreService.reset(),this._coreMouseService.reset()},x.prototype._updateOptions=function(T){var O;switch(T){case"scrollback":this.buffers.resize(this.cols,this.rows);break;case"windowsMode":this.optionsService.options.windowsMode?this._enableWindowsMode():((O=this._windowsMode)===null||O===void 0||O.dispose(),this._windowsMode=void 0)}},x.prototype._enableWindowsMode=function(){var T=this;if(!this._windowsMode){var O=[];O.push(this.onLineFeed(h.updateWindowsModeWrappedState.bind(null,this._bufferService))),O.push(this.addCsiHandler({final:"H"},function(){return h.updateWindowsModeWrappedState(T._bufferService),!1})),this._windowsMode={dispose:function(){for(var C=0,I=O;C<I.length;C++)I[C].dispose()}}}},x}(f.Disposable);p.CoreTerminal=b},function(y,p,S){"use strict";var A=this&&this.__spreadArrays||function(){for(var o=0,n=0,t=arguments.length;n<t;n++)o+=arguments[n].length;var a=Array(o),e=0;for(n=0;n<t;n++)for(var u=arguments[n],r=0,s=u.length;r<s;r++,e++)a[e]=u[r];return a};Object.defineProperty(p,"__esModule",{value:!0}),p.InstantiationService=p.ServiceCollection=void 0;var m=S(1),f=S(14),d=function(){function o(){for(var n=[],t=0;t<arguments.length;t++)n[t]=arguments[t];this._entries=new Map;for(var a=0,e=n;a<e.length;a++){var u=e[a],r=u[0],s=u[1];this.set(r,s)}}return o.prototype.set=function(n,t){var a=this._entries.get(n);return this._entries.set(n,t),a},o.prototype.forEach=function(n){this._entries.forEach(function(t,a){return n(a,t)})},o.prototype.has=function(n){return this._entries.has(n)},o.prototype.get=function(n){return this._entries.get(n)},o}();p.ServiceCollection=d;var l=function(){function o(){this._services=new d,this._services.set(m.IInstantiationService,this)}return o.prototype.setService=function(n,t){this._services.set(n,t)},o.prototype.getService=function(n){return this._services.get(n)},o.prototype.createInstance=function(n){for(var t=[],a=1;a<arguments.length;a++)t[a-1]=arguments[a];for(var e=f.getServiceDependencies(n).sort(function(v,b){return v.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] "+n.name+" depends on UNKNOWN service "+c.id+".");u.push(h)}var g=e.length>0?e[0].index:t.length;if(t.length!==g)throw new Error("[createInstance] First service dependency of "+n.name+" at position "+(g+1)+" conflicts with "+t.length+" static arguments");return new(n.bind.apply(n,A([void 0],A(t,u))))},o}();p.InstantiationService=l},function(y,p,S){"use strict";var A=this&&this.__decorate||function(t,a,e,u){var r,s=arguments.length,c=s<3?a:u===null?u=Object.getOwnPropertyDescriptor(a,e):u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(t,a,e,u);else for(var h=t.length-1;h>=0;h--)(r=t[h])&&(c=(s<3?r(c):s>3?r(a,e,c):r(a,e))||c);return s>3&&c&&Object.defineProperty(a,e,c),c},m=this&&this.__param||function(t,a){return function(e,u){a(e,u,t)}},f=this&&this.__spreadArrays||function(){for(var t=0,a=0,e=arguments.length;a<e;a++)t+=arguments[a].length;var u=Array(t),r=0;for(a=0;a<e;a++)for(var s=arguments[a],c=0,h=s.length;c<h;c++,r++)u[r]=s[c];return u};Object.defineProperty(p,"__esModule",{value:!0}),p.LogService=p.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=p.LogLevel||(p.LogLevel={}));var o={debug:d.DEBUG,info:d.INFO,warn:d.WARN,error:d.ERROR,off:d.OFF},n=function(){function t(a){var e=this;this._optionsService=a,this._updateLogLevel(),this._optionsService.onOptionChange(function(u){u==="logLevel"&&e._updateLogLevel()})}return t.prototype._updateLogLevel=function(){this._logLevel=o[this._optionsService.options.logLevel]},t.prototype._evalLazyOptionalParams=function(a){for(var e=0;e<a.length;e++)typeof a[e]=="function"&&(a[e]=a[e]())},t.prototype._log=function(a,e,u){this._evalLazyOptionalParams(u),a.call.apply(a,f([console,"xterm.js: "+e],u))},t.prototype.debug=function(a){for(var e=[],u=1;u<arguments.length;u++)e[u-1]=arguments[u];this._logLevel<=d.DEBUG&&this._log(console.log,a,e)},t.prototype.info=function(a){for(var e=[],u=1;u<arguments.length;u++)e[u-1]=arguments[u];this._logLevel<=d.INFO&&this._log(console.info,a,e)},t.prototype.warn=function(a){for(var e=[],u=1;u<arguments.length;u++)e[u-1]=arguments[u];this._logLevel<=d.WARN&&this._log(console.warn,a,e)},t.prototype.error=function(a){for(var e=[],u=1;u<arguments.length;u++)e[u-1]=arguments[u];this._logLevel<=d.ERROR&&this._log(console.error,a,e)},t=A([m(0,l.IOptionsService)],t)}();p.LogService=n},function(y,p,S){"use strict";var A,m=this&&this.__extends||(A=function(u,r){return(A=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}A(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,g=h<3?u:s===null?s=Object.getOwnPropertyDescriptor(u,r):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,u,r,s);else for(var v=e.length-1;v>=0;v--)(c=e[v])&&(g=(h<3?c(g):h>3?c(u,r,g):c(u,r))||g);return h>3&&g&&Object.defineProperty(u,r,g),g},d=this&&this.__param||function(e,u){return function(r,s){u(r,s,e)}};Object.defineProperty(p,"__esModule",{value:!0}),p.BufferService=p.MINIMUM_ROWS=p.MINIMUM_COLS=void 0;var l=S(1),o=S(69),n=S(0),t=S(2);p.MINIMUM_COLS=2,p.MINIMUM_ROWS=1;var a=function(e){function u(r){var s=e.call(this)||this;return s._optionsService=r,s.isUserScrolling=!1,s._onResize=new n.EventEmitter,s.cols=Math.max(r.options.cols,p.MINIMUM_COLS),s.rows=Math.max(r.options.rows,p.MINIMUM_ROWS),s.buffers=new o.BufferSet(r,s),s}return m(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 o.BufferSet(this._optionsService,this),this.isUserScrolling=!1},u=f([d(0,l.IOptionsService)],u)}(t.Disposable);p.BufferService=a},function(y,p,S){"use strict";var A,m=this&&this.__extends||(A=function(n,t){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,e){a.__proto__=e}||function(a,e){for(var u in e)e.hasOwnProperty(u)&&(a[u]=e[u])})(n,t)},function(o,n){function t(){this.constructor=o}A(o,n),o.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)});Object.defineProperty(p,"__esModule",{value:!0}),p.BufferSet=void 0;var f=S(70),d=S(0),l=function(o){function n(t,a){var e=o.call(this)||this;return e._onBufferActivate=e.register(new d.EventEmitter),e._normal=new f.Buffer(!0,t,a),e._normal.fillViewportRows(),e._alt=new f.Buffer(!1,t,a),e._activeBuffer=e._normal,e.setupTabStops(),e}return m(n,o),Object.defineProperty(n.prototype,"onBufferActivate",{get:function(){return this._onBufferActivate.event},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"alt",{get:function(){return this._alt},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"active",{get:function(){return this._activeBuffer},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"normal",{get:function(){return this._normal},enumerable:!1,configurable:!0}),n.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}))},n.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}))},n.prototype.resize=function(t,a){this._normal.resize(t,a),this._alt.resize(t,a)},n.prototype.setupTabStops=function(t){this._normal.setupTabStops(t),this._alt.setupTabStops(t)},n}(S(2).Disposable);p.BufferSet=l},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.BufferStringIterator=p.Buffer=p.MAX_BUFFER_SIZE=void 0;var A=S(71),m=S(16),f=S(4),d=S(3),l=S(72),o=S(73),n=S(20),t=S(6);p.MAX_BUFFER_SIZE=4294967295;var a=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=m.DEFAULT_ATTR_DATA.clone(),this.savedCharset=n.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 A.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 m.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>p.MAX_BUFFER_SIZE?p.MAX_BUFFER_SIZE:s},u.prototype.fillViewportRows=function(r){if(this.lines.length===0){r===void 0&&(r=m.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 A.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(m.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 g=0;g<this.lines.length;g++)this.lines.get(g).resize(r,c);var v=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 m.BufferLine(r,c)):this.ybase>0&&this.lines.length<=this.ybase+this.y+v+1?(this.ybase--,v++,this.ydisp>0&&this.ydisp--):this.lines.push(new m.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 w=this.lines.length-h;w>0&&(this.lines.trimStart(w),this.ybase=Math.max(this.ybase-w,0),this.ydisp=Math.max(this.ydisp-w,0),this.savedY=Math.max(this.savedY-w,0)),this.lines.maxLength=h}this.x=Math.min(this.x,r-1),this.y=Math.min(this.y,s-1),v&&(this.y+=v),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(g=0;g<this.lines.length;g++)this.lines.get(g).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(m.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(m.DEFAULT_ATTR_DATA),g=c;g-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<s&&this.lines.push(new m.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(m.DEFAULT_ATTR_DATA),h=[],g=0,v=this.lines.length-1;v>=0;v--){var b=this.lines.get(v);if(!(!b||!b.isWrapped&&b.getTrimmedLength()<=r)){for(var w=[b];b.isWrapped&&v>0;)b=this.lines.get(--v),w.unshift(b);var x=this.ybase+this.y;if(!(x>=v&&x<v+w.length)){var T=w[w.length-1].getTrimmedLength(),O=l.reflowSmallerGetNewLineLengths(w,this._cols,r),E=O.length-w.length,C=void 0;C=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+E):Math.max(0,this.lines.length-this.lines.maxLength+E);for(var I=[],_=0;_<E;_++){var F=this.getBlankLine(m.DEFAULT_ATTR_DATA,!0);I.push(F)}I.length>0&&(h.push({start:v+w.length+g,newLines:I}),g+=I.length),w.push.apply(w,I);var R=O.length-1,B=O[R];B===0&&(B=O[--R]);for(var M=w.length-E-1,X=T;M>=0;){var P=Math.min(X,B);if(w[R].copyCellsFrom(w[M],X-P,B-P,P,!0),(B-=P)===0&&(B=O[--R]),(X-=P)===0){M--;var z=Math.max(M,0);X=l.getWrappedLineTrimmedLength(w,z,this._cols)}}for(_=0;_<w.length;_++)O[_]<r&&w[_].setCell(O[_],c);for(var W=E-C;W-- >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+g)-s&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+E,this.ybase+s-1)}}}if(h.length>0){var U=[],V=[];for(_=0;_<this.lines.length;_++)V.push(this.lines.get(_));var Q=this.lines.length,G=Q-1,te=0,$=h[te];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+g);var le=0;for(_=Math.min(this.lines.maxLength-1,Q+g-1);_>=0;_--)if($&&$.start>G+le){for(var re=$.newLines.length-1;re>=0;re--)this.lines.set(_--,$.newLines[re]);_++,U.push({index:G+1,amount:$.newLines.length}),le+=$.newLines.length,$=h[++te]}else this.lines.set(_,V[G--]);var Se=0;for(_=U.length-1;_>=0;_--)U[_].index+=Se,this.lines.onInsertEmitter.fire(U[_]),Se+=U[_].amount;var Re=Math.max(0,Q+g-this.lines.maxLength);Re>0&&this.lines.onTrimEmitter.fire(Re)}},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 g=c?h.getTrimmedLength():h.length,v=0;v<g;++v)if(h.get(v)[d.CHAR_DATA_WIDTH_INDEX]&&(s-=h.get(v)[d.CHAR_DATA_CHAR_INDEX].length||1),s<0)return[r,v];r++}return[r,0]},u.prototype.translateBufferLineToString=function(r,s,c,h){c===void 0&&(c=0);var g=this.lines.get(r);return g?g.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 o.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,g){return new e(this,r,s,c,h,g)},u}();p.Buffer=a;var e=function(){function u(r,s,c,h,g,v){c===void 0&&(c=0),h===void 0&&(h=r.lines.length),g===void 0&&(g=0),v===void 0&&(v=0),this._buffer=r,this._trimRight=s,this._startIndex=c,this._endIndex=h,this._startOverscan=g,this._endOverscan=v,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}();p.BufferStringIterator=e},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CircularList=void 0;var A=S(0),m=function(){function f(d){this._maxLength=d,this.onDeleteEmitter=new A.EventEmitter,this.onInsertEmitter=new A.EventEmitter,this.onTrimEmitter=new A.EventEmitter,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}return Object.defineProperty(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 o=new Array(l),n=0;n<Math.min(l,this.length);n++)o[n]=this._array[this._getCyclicIndex(n)];this._array=o,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 o=this._length;o<l;o++)this._array[o]=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 o=[],n=2;n<arguments.length;n++)o[n-2]=arguments[n];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+o.length)]=this._array[this._getCyclicIndex(t)];for(t=0;t<o.length;t++)this._array[this._getCyclicIndex(d+t)]=o[t];if(this._length+o.length>this._maxLength){var a=this._length+o.length-this._maxLength;this._startIndex+=a,this._length=this._maxLength,this.onTrimEmitter.fire(a)}else this._length+=o.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,o){if(!(l<=0)){if(d<0||d>=this._length)throw new Error("start argument out of range");if(d+o<0)throw new Error("Cannot shift elements in list beyond index 0");if(o>0){for(var n=l-1;n>=0;n--)this.set(d+n+o,this.get(d+n));var t=d+l+o-this._length;if(t>0)for(this._length+=t;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(n=0;n<l;n++)this.set(d+n+o,this.get(d+n))}},f.prototype._getCyclicIndex=function(d){return(this._startIndex+d)%this._maxLength},f}();p.CircularList=m},function(y,p,S){"use strict";function A(m,f,d){if(f===m.length-1)return m[f].getTrimmedLength();var l=!m[f].hasContent(d-1)&&m[f].getWidth(d-1)===1,o=m[f+1].getWidth(0)===2;return l&&o?d-1:d}Object.defineProperty(p,"__esModule",{value:!0}),p.getWrappedLineTrimmedLength=p.reflowSmallerGetNewLineLengths=p.reflowLargerApplyNewLayout=p.reflowLargerCreateNewLayout=p.reflowLargerGetLinesToRemove=void 0,p.reflowLargerGetLinesToRemove=function(m,f,d,l,o){for(var n=[],t=0;t<m.length-1;t++){var a=t,e=m.get(++a);if(e.isWrapped){for(var u=[m.get(t)];a<m.length&&e.isWrapped;)u.push(e),e=m.get(++a);if(l>=t&&l<a)t+=u.length-1;else{for(var r=0,s=A(u,r,f),c=1,h=0;c<u.length;){var g=A(u,c,f),v=g-h,b=d-s,w=Math.min(v,b);u[r].copyCellsFrom(u[c],h,s,w,!1),(s+=w)===d&&(r++,s=0),(h+=w)===g&&(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,o))}u[r].replaceCells(s,d,o);for(var x=0,T=u.length-1;T>0&&(T>r||u[T].getTrimmedLength()===0);T--)x++;x>0&&(n.push(t+u.length-x),n.push(x)),t+=u.length-1}}}return n},p.reflowLargerCreateNewLayout=function(m,f){for(var d=[],l=0,o=f[l],n=0,t=0;t<m.length;t++)if(o===t){var a=f[++l];m.onDeleteEmitter.fire({index:t-n,amount:a}),t+=a-1,n+=a,o=f[++l]}else d.push(t);return{layout:d,countRemoved:n}},p.reflowLargerApplyNewLayout=function(m,f){for(var d=[],l=0;l<f.length;l++)d.push(m.get(f[l]));for(l=0;l<d.length;l++)m.set(l,d[l]);m.length=f.length},p.reflowSmallerGetNewLineLengths=function(m,f,d){for(var l=[],o=m.map(function(s,c){return A(m,c,f)}).reduce(function(s,c){return s+c}),n=0,t=0,a=0;a<o;){if(o-a<d){l.push(o-a);break}n+=d;var e=A(m,t,f);n>e&&(n-=e,t++);var u=m[t].getWidth(n-1)===2;u&&n--;var r=u?d-1:d;l.push(r),a+=r}return l},p.getWrappedLineTrimmedLength=A},function(y,p,S){"use strict";var A,m=this&&this.__extends||(A=function(o,n){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var e in a)a.hasOwnProperty(e)&&(t[e]=a[e])})(o,n)},function(l,o){function n(){this.constructor=l}A(l,o),l.prototype=o===null?Object.create(o):(n.prototype=o.prototype,new n)});Object.defineProperty(p,"__esModule",{value:!0}),p.Marker=void 0;var f=S(0),d=function(l){function o(n){var t=l.call(this)||this;return t.line=n,t._id=o._nextId++,t.isDisposed=!1,t._onDispose=new f.EventEmitter,t}return m(o,l),Object.defineProperty(o.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"onDispose",{get:function(){return this._onDispose.event},enumerable:!1,configurable:!0}),o.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire())},o._nextId=1,o}(S(2).Disposable);p.Marker=d},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.OptionsService=p.DEFAULT_OPTIONS=p.DEFAULT_BELL_SOUND=void 0;var A=S(0),m=S(11),f=S(33);p.DEFAULT_BELL_SOUND="data:audio/mp3;base64,SUQzBAAAAAAAI1RTU0UAAAAPAAADTGF2ZjU4LjMyLjEwNAAAAAAAAAAAAAAA//tQxAADB8AhSmxhIIEVCSiJrDCQBTcu3UrAIwUdkRgQbFAZC1CQEwTJ9mjRvBA4UOLD8nKVOWfh+UlK3z/177OXrfOdKl7pyn3Xf//WreyTRUoAWgBgkOAGbZHBgG1OF6zM82DWbZaUmMBptgQhGjsyYqc9ae9XFz280948NMBWInljyzsNRFLPWdnZGWrddDsjK1unuSrVN9jJsK8KuQtQCtMBjCEtImISdNKJOopIpBFpNSMbIHCSRpRR5iakjTiyzLhchUUBwCgyKiweBv/7UsQbg8isVNoMPMjAAAA0gAAABEVFGmgqK////9bP/6XCykxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq",p.DEFAULT_OPTIONS=Object.freeze({cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,bellSound:p.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:m.isMac,rendererType:"canvas",windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",convertEol:!1,termName:"xterm",cancelEvents:!1});var d=["cols","rows"],l=function(){function o(n){this._onOptionChange=new A.EventEmitter,this.options=f.clone(p.DEFAULT_OPTIONS);for(var t=0,a=Object.keys(n);t<a.length;t++){var e=a[t];if(e in this.options){var u=n[e];this.options[e]=u}}}return Object.defineProperty(o.prototype,"onOptionChange",{get:function(){return this._onOptionChange.event},enumerable:!1,configurable:!0}),o.prototype.setOption=function(n,t){if(!(n in p.DEFAULT_OPTIONS))throw new Error('No option with key "'+n+'"');if(d.indexOf(n)!==-1)throw new Error('Option "'+n+'" can only be set in the constructor');this.options[n]!==t&&(t=this._sanitizeAndValidateOption(n,t),this.options[n]!==t&&(this.options[n]=t,this._onOptionChange.fire(n)))},o.prototype._sanitizeAndValidateOption=function(n,t){switch(n){case"bellStyle":case"cursorStyle":case"fontWeight":case"fontWeightBold":case"rendererType":case"wordSeparator":t||(t=p.DEFAULT_OPTIONS[n]);break;case"cursorWidth":t=Math.floor(t);case"lineHeight":case"tabStopWidth":if(t<1)throw new Error(n+" 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(n+" cannot be less than 0, value: "+t);break;case"fastScrollSensitivity":case"scrollSensitivity":if(t<=0)throw new Error(n+" cannot be less than or equal to 0, value: "+t)}return t},o.prototype.getOption=function(n){if(!(n in p.DEFAULT_OPTIONS))throw new Error('No option with key "'+n+'"');return this.options[n]},o}();p.OptionsService=l},function(y,p,S){"use strict";var A,m=this&&this.__extends||(A=function(s,c){return(A=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,g){h.__proto__=g}||function(h,g){for(var v in g)g.hasOwnProperty(v)&&(h[v]=g[v])})(s,c)},function(r,s){function c(){this.constructor=r}A(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 g,v=arguments.length,b=v<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 w=r.length-1;w>=0;w--)(g=r[w])&&(b=(v<3?g(b):v>3?g(s,c,b):g(s,c))||b);return v>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(p,"__esModule",{value:!0}),p.CoreService=void 0;var l=S(1),o=S(0),n=S(33),t=S(2),a=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,g,v){var b=r.call(this)||this;return b._bufferService=h,b._logService=g,b._optionsService=v,b.isCursorInitialized=!1,b.isCursorHidden=!1,b._onData=b.register(new o.EventEmitter),b._onUserInput=b.register(new o.EventEmitter),b._onBinary=b.register(new o.EventEmitter),b._scrollToBottom=c,b.register({dispose:function(){return b._scrollToBottom=void 0}}),b.modes=n.clone(a),b.decPrivateModes=n.clone(e),b}return m(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=n.clone(a),this.decPrivateModes=n.clone(e)},s.prototype.triggerDataEvent=function(c,h){if(h===void 0&&(h=!1),!this._optionsService.options.disableStdin){var g=this._bufferService.buffer;g.ybase!==g.ydisp&&this._scrollToBottom(),h&&this._onUserInput.fire(),this._logService.debug('sending data "'+c+'"',function(){return c.split("").map(function(v){return v.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);p.CoreService=u},function(y,p,S){"use strict";var A=this&&this.__decorate||function(e,u,r,s){var c,h=arguments.length,g=h<3?u:s===null?s=Object.getOwnPropertyDescriptor(u,r):s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")g=Reflect.decorate(e,u,r,s);else for(var v=e.length-1;v>=0;v--)(c=e[v])&&(g=(h<3?c(g):h>3?c(u,r,g):c(u,r))||g);return h>3&&g&&Object.defineProperty(u,r,g),g},m=this&&this.__param||function(e,u){return function(r,s){u(r,s,e)}};Object.defineProperty(p,"__esModule",{value:!0}),p.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 o(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 n=String.fromCharCode,t={DEFAULT:function(u){var r=[o(u,!1)+32,u.col+32,u.row+32];return r[0]>255||r[1]>255||r[2]>255?"":""+n(r[0])+n(r[1])+n(r[2])},SGR:function(u){var r=u.action===0&&u.button!==4?"m":"M";return"[<"+o(u,!0)+";"+u.col+";"+u.row+r}},a=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 g=0,v=Object.keys(t);g<v.length;g++){var b=v[g];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=A([m(0,f.IBufferService),m(1,f.ICoreService)],e)}();p.CoreMouseService=a},function(y,p,S){"use strict";var A=this&&this.__decorate||function(l,o,n,t){var a,e=arguments.length,u=e<3?o:t===null?t=Object.getOwnPropertyDescriptor(o,n):t;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")u=Reflect.decorate(l,o,n,t);else for(var r=l.length-1;r>=0;r--)(a=l[r])&&(u=(e<3?a(u):e>3?a(o,n,u):a(o,n))||u);return e>3&&u&&Object.defineProperty(o,n,u),u},m=this&&this.__param||function(l,o){return function(n,t){o(n,t,l)}};Object.defineProperty(p,"__esModule",{value:!0}),p.DirtyRowService=void 0;var f=S(1),d=function(){function l(o){this._bufferService=o,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(o){o<this._start?this._start=o:o>this._end&&(this._end=o)},l.prototype.markRangeDirty=function(o,n){if(o>n){var t=o;o=n,n=t}o<this._start&&(this._start=o),n>this._end&&(this._end=n)},l.prototype.markAllDirty=function(){this.markRangeDirty(0,this._bufferService.rows-1)},l=A([m(0,f.IBufferService)],l)}();p.DirtyRowService=d},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.UnicodeService=void 0;var A=S(0),m=S(79),f=function(){function d(){this._providers=Object.create(null),this._active="",this._onChange=new A.EventEmitter;var l=new m.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(o){if(!this._providers[o])throw new Error('unknown Unicode version "'+o+'"');this._active=o,this._activeProvider=this._providers[o],this._onChange.fire(o)},enumerable:!1,configurable:!0}),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 o=0,n=l.length,t=0;t<n;++t){var a=l.charCodeAt(t);if(55296<=a&&a<=56319){if(++t>=n)return o+this.wcwidth(a);var e=l.charCodeAt(t);56320<=e&&e<=57343?a=1024*(a-55296)+e-56320+65536:o+=this.wcwidth(e)}o+=this.wcwidth(a)}return o},d}();p.UnicodeService=f},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.UnicodeV6=void 0;var A,m=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 o(){if(this.version="6",!A){A=new Uint8Array(65536),m.fill(A,1),A[0]=0,m.fill(A,0,1,32),m.fill(A,0,127,160),m.fill(A,2,4352,4448),A[9001]=2,A[9002]=2,m.fill(A,2,11904,42192),A[12351]=1,m.fill(A,2,44032,55204),m.fill(A,2,63744,64256),m.fill(A,2,65040,65050),m.fill(A,2,65072,65136),m.fill(A,2,65280,65377),m.fill(A,2,65504,65511);for(var n=0;n<f.length;++n)m.fill(A,0,f[n][0],f[n][1]+1)}}return o.prototype.wcwidth=function(n){return n<32?0:n<127?1:n<65536?A[n]:function(t,a){var e,u=0,r=a.length-1;if(t<a[0][0]||t>a[r][1])return!1;for(;r>=u;)if(t>a[e=u+r>>1][1])u=e+1;else{if(!(t<a[e][0]))return!0;r=e-1}return!1}(n,d)?0:n>=131072&&n<=196605||n>=196608&&n<=262141?2:1},o}();p.UnicodeV6=l},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.CharsetService=void 0;var A=function(){function m(){this.glevel=0,this._charsets=[]}return m.prototype.reset=function(){this.charset=void 0,this._charsets=[],this.glevel=0},m.prototype.setgLevel=function(f){this.glevel=f,this.charset=this._charsets[f]},m.prototype.setgCharset=function(f,d){this._charsets[f]=d,this.glevel===f&&(this.charset=d)},m}();p.CharsetService=A},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.updateWindowsModeWrappedState=void 0;var A=S(3);p.updateWindowsModeWrappedState=function(m){var f=m.buffer.lines.get(m.buffer.ybase+m.buffer.y-1),d=f==null?void 0:f.get(m.cols-1),l=m.buffer.lines.get(m.buffer.ybase+m.buffer.y);l&&d&&(l.isWrapped=d[A.CHAR_DATA_CODE_INDEX]!==A.NULL_CELL_CODE&&d[A.CHAR_DATA_CODE_INDEX]!==A.WHITESPACE_CELL_CODE)}},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.WriteBuffer=void 0;var A=function(){function m(f){this._action=f,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0}return m.prototype.writeSync=function(f){if(this._writeBuffer.length){for(var d=this._bufferOffset;d<this._writeBuffer.length;++d){var l=this._writeBuffer[d],o=this._callbacks[d];this._action(l),o&&o()}this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=2147483647}this._action(f)},m.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)},m.prototype._innerWrite=function(){for(var f=this,d=Date.now();this._writeBuffer.length>this._bufferOffset;){var l=this._writeBuffer[this._bufferOffset],o=this._callbacks[this._bufferOffset];if(this._bufferOffset++,this._action(l),this._pendingData-=l.length,o&&o(),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)},m}();p.WriteBuffer=A},function(y,p,S){"use strict";Object.defineProperty(p,"__esModule",{value:!0}),p.AddonManager=void 0;var A=function(){function m(){this._addons=[]}return m.prototype.dispose=function(){for(var f=this._addons.length-1;f>=0;f--)this._addons[f].instance.dispose()},m.prototype.loadAddon=function(f,d){var l=this,o={instance:d,dispose:d.dispose,isDisposed:!1};this._addons.push(o),d.dispose=function(){return l._wrappedAddonDispose(o)},d.activate(f)},m.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)}},m}();p.AddonManager=A}])})},"/SeX":function(k,D,i){var y=i("knOB"),p=i("qZFw"),S=function(m){this.name=m||"",this.cx=0,this.cy=0,this._radiusAxis=new y,this._angleAxis=new p,this._radiusAxis.polar=this._angleAxis.polar=this};S.prototype={type:"polar",axisPointerEnabled:!0,constructor:S,dimensions:["radius","angle"],model:null,containPoint:function(m){var f=this.pointToCoord(m);return this._radiusAxis.contain(f[0])&&this._angleAxis.contain(f[1])},containData:function(m){return this._radiusAxis.containData(m[0])&&this._angleAxis.containData(m[1])},getAxis:function(m){return this["_"+m+"Axis"]},getAxes:function(){return[this._radiusAxis,this._angleAxis]},getAxesByScale:function(m){var f=[],d=this._angleAxis,l=this._radiusAxis;return d.scale.type===m&&f.push(d),l.scale.type===m&&f.push(l),f},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(m){var f=this._angleAxis;return m===f?this._radiusAxis:f},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},getTooltipAxes:function(m){var f=m!=null&&m!=="auto"?this.getAxis(m):this.getBaseAxis();return{baseAxes:[f],otherAxes:[this.getOtherAxis(f)]}},dataToPoint:function(m,f){return this.coordToPoint([this._radiusAxis.dataToRadius(m[0],f),this._angleAxis.dataToAngle(m[1],f)])},pointToData:function(m,f){var d=this.pointToCoord(m);return[this._radiusAxis.radiusToData(d[0],f),this._angleAxis.angleToData(d[1],f)]},pointToCoord:function(m){var f=m[0]-this.cx,d=m[1]-this.cy,l=this.getAngleAxis(),o=l.getExtent(),n=Math.min(o[0],o[1]),t=Math.max(o[0],o[1]);l.inverse?n=t-360:t=n+360;var a=Math.sqrt(f*f+d*d);f/=a,d/=a;for(var e=Math.atan2(-d,f)/Math.PI*180,u=e<n?1:-1;e<n||e>t;)e+=u*360;return[a,e]},coordToPoint:function(m){var f=m[0],d=m[1]/180*Math.PI,l=Math.cos(d)*f+this.cx,o=-Math.sin(d)*f+this.cy;return[l,o]},getArea:function(){var m=this.getAngleAxis(),f=this.getRadiusAxis(),d=f.getExtent().slice();d[0]>d[1]&&d.reverse();var l=m.getExtent(),o=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:d[0],r:d[1],startAngle:-l[0]*o,endAngle:-l[1]*o,clockwise:m.inverse,contain:function(n,t){var a=n-this.cx,e=t-this.cy,u=a*a+e*e,r=this.r,s=this.r0;return u<=r*r&&u>=s*s}}}};var A=S;k.exports=A},"/WM3":function(k,D,i){var y=i("QuXc"),p=i("bYtY"),S=p.isFunction,A={createOnAllSeries:!0,performRawSeries:!0,reset:function(m,f){var d=m.getData(),l=(m.visualColorAccessPath||"itemStyle.color").split("."),o=m.get(l),n=S(o)&&!(o instanceof y)?o:null;(!o||n)&&(o=m.getColorFromPalette(m.name,null,f.getSeriesCount())),d.setVisual("color",o);var t=(m.visualBorderColorAccessPath||"itemStyle.borderColor").split("."),a=m.get(t);if(d.setVisual("borderColor",a),!f.isSeriesFiltered(m)){n&&d.each(function(u){d.setItemVisual(u,"color",n(m.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}}}};k.exports=A},"/d5a":function(k,D){var i={average:function(S){for(var A=0,m=0,f=0;f<S.length;f++)isNaN(S[f])||(A+=S[f],m++);return m===0?NaN:A/m},sum:function(S){for(var A=0,m=0;m<S.length;m++)A+=S[m]||0;return A},max:function(S){for(var A=-Infinity,m=0;m<S.length;m++)S[m]>A&&(A=S[m]);return isFinite(A)?A:NaN},min:function(S){for(var A=Infinity,m=0;m<S.length;m++)S[m]<A&&(A=S[m]);return isFinite(A)?A:NaN},nearest:function(S){return S[0]}},y=function(S,A){return Math.round(S.length/2)};function p(S){return{seriesType:S,modifyOutputEnd:!0,reset:function(A,m,f){var d=A.getData(),l=A.get("sampling"),o=A.coordinateSystem;if(o.type==="cartesian2d"&&l){var n=o.getBaseAxis(),t=o.getOtherAxis(n),a=n.getExtent(),e=a[1]-a[0],u=Math.round(d.count()/e);if(u>1){var r;typeof l=="string"?r=i[l]:typeof l=="function"&&(r=l),r&&A.setData(d.downSample(d.mapDimension(t.dim),1/u,r,y))}}}}}k.exports=p},"/ezw":function(k,D,i){"use strict";var y=i("lSNA"),p=i.n(y),S=i("pVnL"),A=i.n(S),m=i("cDf5"),f=i.n(m),d=i("q1tI"),l=i("TSYQ"),o=i.n(l),n=function(W){var U=W.prefixCls,V=W.className,Q=W.width,G=W.style;return d.createElement("h3",{className:o()(U,V),style:A()({width:Q},G)})},t=n,a=i("RIqP"),e=i.n(a),u=function(W){var U=function(re){var Se=W.width,Re=W.rows,Pe=Re===void 0?2:Re;return Array.isArray(Se)?Se[re]:Pe-1===re?Se:void 0},V=W.prefixCls,Q=W.className,G=W.style,te=W.rows,$=e()(Array(te)).map(function(le,re){return d.createElement("li",{key:re,style:{width:U(re)}})});return d.createElement("ul",{className:o()(V,Q),style:G},$)},r=u,s=i("H84U"),c=function(W){var U,V,Q=W.prefixCls,G=W.className,te=W.style,$=W.size,le=W.shape,re=o()((U={},p()(U,"".concat(Q,"-lg"),$==="large"),p()(U,"".concat(Q,"-sm"),$==="small"),U)),Se=o()((V={},p()(V,"".concat(Q,"-circle"),le==="circle"),p()(V,"".concat(Q,"-square"),le==="square"),p()(V,"".concat(Q,"-round"),le==="round"),V)),Re=typeof $=="number"?{width:$,height:$,lineHeight:"".concat($,"px")}:{};return d.createElement("span",{className:o()(Q,G,re,Se),style:A()(A()({},Re),te)})},h=c,g=i("BGR+"),v=function(W){var U=function(Q){var G=Q.getPrefixCls,te=W.prefixCls,$=W.className,le=W.active,re=G("skeleton",te),Se=Object(g.default)(W,["prefixCls"]),Re=o()(re,$,"".concat(re,"-element"),p()({},"".concat(re,"-active"),le));return d.createElement("div",{className:Re},d.createElement(h,A()({prefixCls:"".concat(re,"-avatar")},Se)))};return d.createElement(s.a,null,U)};v.defaultProps={size:"default",shape:"circle"};var b=v,w=function(W){var U=function(Q){var G=Q.getPrefixCls,te=W.prefixCls,$=W.className,le=W.active,re=G("skeleton",te),Se=Object(g.default)(W,["prefixCls"]),Re=o()(re,$,"".concat(re,"-element"),p()({},"".concat(re,"-active"),le));return d.createElement("div",{className:Re},d.createElement(h,A()({prefixCls:"".concat(re,"-button")},Se)))};return d.createElement(s.a,null,U)};w.defaultProps={size:"default"};var x=w,T=function(W){var U=function(Q){var G=Q.getPrefixCls,te=W.prefixCls,$=W.className,le=W.active,re=G("skeleton",te),Se=Object(g.default)(W,["prefixCls"]),Re=o()(re,$,"".concat(re,"-element"),p()({},"".concat(re,"-active"),le));return d.createElement("div",{className:Re},d.createElement(h,A()({prefixCls:"".concat(re,"-input")},Se)))};return d.createElement(s.a,null,U)};T.defaultProps={size:"default"};var O=T,E="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",C=function(W){var U=function(Q){var G=Q.getPrefixCls,te=W.prefixCls,$=W.className,le=W.style,re=G("skeleton",te),Se=o()(re,$,"".concat(re,"-element"));return d.createElement("div",{className:Se},d.createElement("div",{className:o()("".concat(re,"-image"),$),style:le},d.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(re,"-image-svg")},d.createElement("path",{d:E,className:"".concat(re,"-image-path")}))))};return d.createElement(s.a,null,U)},I=C;function _(z){return z&&f()(z)==="object"?z:{}}function F(z,W){return z&&!W?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function R(z,W){return!z&&W?{width:"38%"}:z&&W?{width:"50%"}:{}}function B(z,W){var U={};return(!z||!W)&&(U.width="61%"),!z&&W?U.rows=3:U.rows=2,U}var M=function(W){var U=function(Q){var G=Q.getPrefixCls,te=Q.direction,$=W.prefixCls,le=W.loading,re=W.className,Se=W.children,Re=W.avatar,Pe=W.title,Je=W.paragraph,Ve=W.active,ct=W.round,Ue=G("skeleton",$);if(le||!("loading"in W)){var ue,rt=!!Re,ge=!!Pe,Z=!!Je,Y;if(rt){var ee=A()(A()({prefixCls:"".concat(Ue,"-avatar")},F(ge,Z)),_(Re));Y=d.createElement("div",{className:"".concat(Ue,"-header")},d.createElement(h,ee))}var fe;if(ge||Z){var be;if(ge){var Ce=A()(A()({prefixCls:"".concat(Ue,"-title")},R(rt,Z)),_(Pe));be=d.createElement(t,Ce)}var Te;if(Z){var he=A()(A()({prefixCls:"".concat(Ue,"-paragraph")},B(rt,ge)),_(Je));Te=d.createElement(r,he)}fe=d.createElement("div",{className:"".concat(Ue,"-content")},be,Te)}var ye=o()(Ue,re,(ue={},p()(ue,"".concat(Ue,"-with-avatar"),rt),p()(ue,"".concat(Ue,"-active"),Ve),p()(ue,"".concat(Ue,"-rtl"),te==="rtl"),p()(ue,"".concat(Ue,"-round"),ct),ue));return d.createElement("div",{className:ye},Y,fe)}return Se};return d.createElement(s.a,null,U)};M.defaultProps={avatar:!1,title:!0,paragraph:!0},M.Button=x,M.Avatar=b,M.Input=O,M.Image=I;var X=M,P=D.a=X},"/iHx":function(k,D,i){var y=i("6GrX"),p=i("IwbS"),S=["textStyle","color"],A={getTextColor:function(m){var f=this.ecModel;return this.getShallow("color")||(!m&&f?f.get(S):null)},getFont:function(){return p.getFont({fontStyle:this.getShallow("fontStyle"),fontWeight:this.getShallow("fontWeight"),fontSize:this.getShallow("fontSize"),fontFamily:this.getShallow("fontFamily")},this.ecModel)},getTextRect:function(m){return y.getBoundingRect(m,this.getFont(),this.getShallow("align"),this.getShallow("verticalAlign")||this.getShallow("baseline"),this.getShallow("padding"),this.getShallow("lineHeight"),this.getShallow("rich"),this.getShallow("truncateText"))}};k.exports=A},"/ry/":function(k,D,i){var y=i("bYtY"),p=i("T4UG"),S=i("5GhG"),A=S.seriesModelMixin,m=p.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(m,A,!0);var f=m;k.exports=f},"/stD":function(k,D,i){var y=i("bYtY"),p=i("IUWy"),S=i("Kagy"),A=S.toolbox.brush;function m(l,o,n){this.model=l,this.ecModel=o,this.api=n,this._brushType,this._brushMode}m.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(A.title)};var f=m.prototype;f.render=f.updateView=function(l,o,n){var t,a,e;o.eachComponent({mainType:"brush"},function(u){t=u.brushType,a=u.brushOption.brushMode||"single",e|=u.areas.length}),this._brushType=t,this._brushMode=a,y.each(l.get("type",!0),function(u){l.setIconStatus(u,(u==="keep"?a==="multiple":u==="clear"?e:u===t)?"emphasis":"normal")})},f.getIcons=function(){var l=this.model,o=l.get("icon",!0),n={};return y.each(l.get("type",!0),function(t){o[t]&&(n[t]=o[t])}),n},f.onclick=function(l,o,n){var t=this._brushType,a=this._brushMode;n==="clear"?(o.dispatchAction({type:"axisAreaSelect",intervals:[]}),o.dispatchAction({type:"brush",command:"clear",areas:[]})):o.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:n==="keep"?t:t===n?!1:n,brushMode:n==="keep"?a==="multiple"?"single":"multiple":a}})},p.register("brush",m);var d=m;k.exports=d},"/wGt":function(k,D,i){"use strict";var y=i("lSNA"),p=i.n(y),S=i("pVnL"),A=i.n(S),m=i("lwsE"),f=i.n(m),d=i("W8MJ"),l=i.n(d),o=i("PJYZ"),n=i.n(o),t=i("7W2i"),a=i.n(t),e=i("LQ03"),u=i.n(e),r=i("q1tI"),s=i("Ff2n"),c=i("1OyB"),h=i("vuIU"),g=i("Ji7U"),v=i("md7G"),b=i("foSv"),w=i("1W/9"),x=i("rePB"),T=i("JX7q"),O=i("TSYQ"),E=i.n(O),C=i("qx4F"),I=i("4IlW");function _(be){return Array.isArray(be)?be:[be]}var F={transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend"},R=Object.keys(F).filter(function(be){if(typeof document=="undefined")return!1;var Ce=document.getElementsByTagName("html")[0];return be in(Ce?Ce.style:{})})[0],B=F[R];function M(be,Ce,Te,he){be.addEventListener?be.addEventListener(Ce,Te,he):be.attachEvent&&be.attachEvent("on".concat(Ce),Te)}function X(be,Ce,Te,he){be.removeEventListener?be.removeEventListener(Ce,Te,he):be.attachEvent&&be.detachEvent("on".concat(Ce),Te)}function P(be,Ce){var Te=typeof be=="function"?be(Ce):be;return Array.isArray(Te)?Te.length===2?Te:[Te[0],Te[1]]:[Te]}var z=function(Ce){return!isNaN(parseFloat(Ce))&&isFinite(Ce)},W=!(typeof window!="undefined"&&window.document&&window.document.createElement),U=function be(Ce,Te,he,ye){if(!Te||Te===document||Te instanceof Document)return!1;if(Te===Ce.parentNode)return!0;var Ie=Math.max(Math.abs(he),Math.abs(ye))===Math.abs(ye),tt=Math.max(Math.abs(he),Math.abs(ye))===Math.abs(he),pt=Te.scrollHeight-Te.clientHeight,st=Te.scrollWidth-Te.clientWidth,Fe=document.defaultView.getComputedStyle(Te),ft=Fe.overflowY==="auto"||Fe.overflowY==="scroll",et=Fe.overflowX==="auto"||Fe.overflowX==="scroll",wt=pt&&ft,Ht=st&&et;return Ie&&(!wt||wt&&(Te.scrollTop>=pt&&ye<0||Te.scrollTop<=0&&ye>0))||tt&&(!Ht||Ht&&(Te.scrollLeft>=st&&he<0||Te.scrollLeft<=0&&he>0))?be(Ce,Te.parentNode,he,ye):!1};function V(be){var Ce=Q();return function(){var he=Object(b.a)(be),ye;if(Ce){var Ie=Object(b.a)(this).constructor;ye=Reflect.construct(he,arguments,Ie)}else ye=he.apply(this,arguments);return Object(v.a)(this,ye)}}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(g.a)(Te,be);var Ce=V(Te);function Te(he){var ye;return Object(c.a)(this,Te),ye=Ce.call(this,he),ye.domFocus=function(){ye.dom&&ye.dom.focus()},ye.removeStartHandler=function(Ie){if(Ie.touches.length>1)return;ye.startPos={x:Ie.touches[0].clientX,y:Ie.touches[0].clientY}},ye.removeMoveHandler=function(Ie){if(Ie.changedTouches.length>1)return;var tt=Ie.currentTarget,pt=Ie.changedTouches[0].clientX-ye.startPos.x,st=Ie.changedTouches[0].clientY-ye.startPos.y;(tt===ye.maskDom||tt===ye.handlerDom||tt===ye.contentDom&&U(tt,Ie.target,pt,st))&&Ie.cancelable&&Ie.preventDefault()},ye.transitionEnd=function(Ie){var tt=Ie.target;X(tt,B,ye.transitionEnd),tt.style.transition=""},ye.onKeyDown=function(Ie){if(Ie.keyCode===I.a.ESC){var tt=ye.props.onClose;Ie.stopPropagation(),tt&&tt(Ie)}},ye.onWrapperTransitionEnd=function(Ie){var tt=ye.props,pt=tt.open,st=tt.afterVisibleChange;Ie.target===ye.contentWrapper&&Ie.propertyName.match(/transform$/)&&(ye.dom.style.transition="",!pt&&ye.getCurrentDrawerSome()&&(document.body.style.overflowX="",ye.maskDom&&(ye.maskDom.style.left="",ye.maskDom.style.width="")),st&&st(!!pt))},ye.openLevelTransition=function(){var Ie=ye.props,tt=Ie.open,pt=Ie.width,st=Ie.height,Fe=ye.getHorizontalBoolAndPlacementName(),ft=Fe.isHorizontal,et=Fe.placementName,wt=ye.contentDom?ye.contentDom.getBoundingClientRect()[ft?"width":"height"]:0,Ht=(ft?pt:st)||wt;ye.setLevelAndScrolling(tt,et,Ht)},ye.setLevelTransform=function(Ie,tt,pt,st){var Fe=ye.props,ft=Fe.placement,et=Fe.levelMove,wt=Fe.duration,Ht=Fe.ease,Dt=Fe.showMask;ye.levelDom.forEach(function(Tt){Tt.style.transition="transform ".concat(wt," ").concat(Ht),M(Tt,B,ye.transitionEnd);var Bt=Ie?pt:0;if(et){var Ke=P(et,{target:Tt,open:Ie});Bt=Ie?Ke[0]:Ke[1]||0}var de=typeof Bt=="number"?"".concat(Bt,"px"):Bt,oe=ft==="left"||ft==="top"?de:"-".concat(de);oe=Dt&&ft==="right"&&st?"calc(".concat(oe," + ").concat(st,"px)"):oe,Tt.style.transform=Bt?"".concat(tt,"(").concat(oe,")"):""})},ye.setLevelAndScrolling=function(Ie,tt,pt){var st=ye.props.onChange;if(!W){var Fe=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(C.a)(!0):0;ye.setLevelTransform(Ie,tt,pt,Fe),ye.toggleScrollingToDrawerAndBody(Fe)}st&&st(Ie)},ye.toggleScrollingToDrawerAndBody=function(Ie){var tt=ye.props,pt=tt.getOpenCount,st=tt.getContainer,Fe=tt.showMask,ft=tt.open,et=st&&st(),wt=pt&&pt();if(et&&et.parentNode===document.body&&Fe){var Ht=["touchstart"],Dt=[document.body,ye.maskDom,ye.handlerDom,ye.contentDom];ft&&document.body.style.overflow!=="hidden"?(Ie&&ye.addScrollingEffect(Ie),wt===1&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",Dt.forEach(function(Tt,Bt){if(!Tt)return;M(Tt,Ht[Bt]||"touchmove",Bt?ye.removeMoveHandler:ye.removeStartHandler,ye.passive)})):ye.getCurrentDrawerSome()&&(wt||(document.body.style.overflow=""),document.body.style.touchAction="",Ie&&ye.remScrollingEffect(Ie),Dt.forEach(function(Tt,Bt){if(!Tt)return;X(Tt,Ht[Bt]||"touchmove",Bt?ye.removeMoveHandler:ye.removeStartHandler,ye.passive)}))}},ye.addScrollingEffect=function(Ie){var tt=ye.props,pt=tt.placement,st=tt.duration,Fe=tt.ease,ft=tt.getOpenCount,et=tt.switchScrollingEffect,wt=ft&&ft();wt===1&&et();var Ht="width ".concat(st," ").concat(Fe),Dt="transform ".concat(st," ").concat(Fe);ye.dom.style.transition="none";switch(pt){case"right":ye.dom.style.transform="translateX(-".concat(Ie,"px)");break;case"top":case"bottom":ye.dom.style.width="calc(100% - ".concat(Ie,"px)"),ye.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(ye.timeout),ye.timeout=setTimeout(function(){ye.dom&&(ye.dom.style.transition="".concat(Dt,",").concat(Ht),ye.dom.style.width="",ye.dom.style.transform="")})},ye.remScrollingEffect=function(Ie){var tt=ye.props,pt=tt.placement,st=tt.duration,Fe=tt.ease,ft=tt.getOpenCount,et=tt.switchScrollingEffect,wt=ft&&ft();wt||et(!0),R&&(document.body.style.overflowX="hidden"),ye.dom.style.transition="none";var Ht,Dt="width ".concat(st," ").concat(Fe),Tt="transform ".concat(st," ").concat(Fe);switch(pt){case"left":{ye.dom.style.width="100%",Dt="width 0s ".concat(Fe," ").concat(st);break}case"right":{ye.dom.style.transform="translateX(".concat(Ie,"px)"),ye.dom.style.width="100%",Dt="width 0s ".concat(Fe," ").concat(st),ye.maskDom&&(ye.maskDom.style.left="-".concat(Ie,"px"),ye.maskDom.style.width="calc(100% + ".concat(Ie,"px)"));break}case"top":case"bottom":{ye.dom.style.width="calc(100% + ".concat(Ie,"px)"),ye.dom.style.height="100%",ye.dom.style.transform="translateZ(0)",Ht="height 0s ".concat(Fe," ").concat(st);break}default:break}clearTimeout(ye.timeout),ye.timeout=setTimeout(function(){ye.dom&&(ye.dom.style.transition="".concat(Tt,",").concat(Ht?"".concat(Ht,","):"").concat(Dt),ye.dom.style.transform="",ye.dom.style.width="",ye.dom.style.height="")})},ye.getCurrentDrawerSome=function(){return!Object.keys(G).some(function(Ie){return G[Ie]})},ye.getLevelDom=function(Ie){var tt=Ie.level,pt=Ie.getContainer;if(W)return;var st=pt&&pt(),Fe=st?st.parentNode:null;if(ye.levelDom=[],tt==="all"){var ft=Fe?Array.prototype.slice.call(Fe.children):[];ft.forEach(function(et){et.nodeName!=="SCRIPT"&&et.nodeName!=="STYLE"&&et.nodeName!=="LINK"&&et!==st&&ye.levelDom.push(et)})}else tt&&_(tt).forEach(function(et){document.querySelectorAll(et).forEach(function(wt){ye.levelDom.push(wt)})})},ye.getHorizontalBoolAndPlacementName=function(){var Ie=ye.props.placement,tt=Ie==="left"||Ie==="right",pt="translate".concat(tt?"X":"Y");return{isHorizontal:tt,placementName:pt}},ye.state={_self:Object(T.a)(ye)},ye}return Object(h.a)(Te,[{key:"componentDidMount",value:function(){var ye=this;if(!W){var Ie=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Ie=!0,null}}))}catch(ft){}this.passive=Ie?{passive:!1}:!1}var tt=this.props,pt=tt.open,st=tt.getContainer,Fe=st&&st();this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(Math.random()*9).toString())).toString(16)),this.getLevelDom(this.props),pt&&(Fe&&Fe.parentNode===document.body&&(G[this.drawerId]=pt),this.openLevelTransition(),this.forceUpdate(function(){ye.domFocus()}))}},{key:"componentDidUpdate",value:function(ye){var Ie=this.props,tt=Ie.open,pt=Ie.getContainer,st=pt&&pt();tt!==ye.open&&(tt&&this.domFocus(),st&&st.parentNode===document.body&&(G[this.drawerId]=!!tt),this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var ye=this.props,Ie=ye.getOpenCount,tt=ye.open,pt=ye.switchScrollingEffect,st=typeof Ie=="function"&&Ie();delete G[this.drawerId],tt&&(this.setLevelTransform(!1),document.body.style.touchAction=""),st||(document.body.style.overflow="",pt(!0))}},{key:"render",value:function(){var ye,Ie=this,tt=this.props,pt=tt.className,st=tt.children,Fe=tt.style,ft=tt.width,et=tt.height,wt=tt.defaultOpen,Ht=tt.open,Dt=tt.prefixCls,Tt=tt.placement,Bt=tt.level,Ke=tt.levelMove,de=tt.ease,oe=tt.duration,lt=tt.getContainer,qe=tt.handler,pe=tt.onChange,Kt=tt.afterVisibleChange,hr=tt.showMask,gt=tt.maskClosable,nr=tt.maskStyle,mr=tt.onClose,cn=tt.onHandleClick,Ar=tt.keyboard,xr=tt.getOpenCount,qt=tt.switchScrollingEffect,ar=Object(s.a)(tt,["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"]),Et=this.dom?Ht:!1,en=E()(Dt,(ye={},Object(x.a)(ye,"".concat(Dt,"-").concat(Tt),!0),Object(x.a)(ye,"".concat(Dt,"-open"),Et),Object(x.a)(ye,pt||"",!!pt),Object(x.a)(ye,"no-mask",!hr),ye)),Mn=this.getHorizontalBoolAndPlacementName(),Yn=Mn.placementName,ci=Tt==="left"||Tt==="top"?"-100%":"100%",Vi=Et?"":"".concat(Yn,"(").concat(ci,")"),jn=qe&&r.cloneElement(qe,{onClick:function($t){qe.props.onClick&&qe.props.onClick(),cn&&cn($t)},ref:function($t){Ie.handlerDom=$t}});return r.createElement("div",Object.assign({},ar,{tabIndex:-1,className:en,style:Fe,ref:function($t){Ie.dom=$t},onKeyDown:Et&&Ar?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),hr&&r.createElement("div",{className:"".concat(Dt,"-mask"),onClick:gt?mr:void 0,style:nr,ref:function($t){Ie.maskDom=$t}}),r.createElement("div",{className:"".concat(Dt,"-content-wrapper"),style:{transform:Vi,msTransform:Vi,width:z(ft)?"".concat(ft,"px"):ft,height:z(et)?"".concat(et,"px"):et},ref:function($t){Ie.contentWrapper=$t}},r.createElement("div",{className:"".concat(Dt,"-content"),ref:function($t){Ie.contentDom=$t},onTouchStart:Et&&hr?this.removeStartHandler:void 0,onTouchMove:Et&&hr?this.removeMoveHandler:void 0},st),jn))}}],[{key:"getDerivedStateFromProps",value:function(ye,Ie){var tt=Ie.prevProps,pt=Ie._self,st={prevProps:ye};if(tt!==void 0){var Fe=ye.placement,ft=ye.level;Fe!==tt.placement&&(pt.contentDom=null),ft!==tt.level&&pt.getLevelDom(ye)}return st}}]),Te}(r.Component);te.defaultProps={switchScrollingEffect:function(){}};var $=te;function le(be){var Ce=re();return function(){var he=Object(b.a)(be),ye;if(Ce){var Ie=Object(b.a)(this).constructor;ye=Reflect.construct(he,arguments,Ie)}else ye=he.apply(this,arguments);return Object(v.a)(this,ye)}}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 Se=function(be){Object(g.a)(Te,be);var Ce=le(Te);function Te(he){var ye;Object(c.a)(this,Te),ye=Ce.call(this,he),ye.onHandleClick=function(tt){var pt=ye.props,st=pt.onHandleClick,Fe=pt.open;if(st&&st(tt),typeof Fe=="undefined"){var ft=ye.state.open;ye.setState({open:!ft})}},ye.onClose=function(tt){var pt=ye.props,st=pt.onClose,Fe=pt.open;st&&st(tt),typeof Fe=="undefined"&&ye.setState({open:!1})};var Ie=typeof he.open!="undefined"?he.open:!!he.defaultOpen;return ye.state={open:Ie},"onMaskClick"in he&&console.warn("`onMaskClick` are removed, please use `onClose` instead."),ye}return Object(h.a)(Te,[{key:"render",value:function(){var ye=this,Ie=this.props,tt=Ie.defaultOpen,pt=Ie.getContainer,st=Ie.wrapperClassName,Fe=Ie.forceRender,ft=Ie.handler,et=Object(s.a)(Ie,["defaultOpen","getContainer","wrapperClassName","forceRender","handler"]),wt=this.state.open;if(!pt)return r.createElement("div",{className:st,ref:function(Tt){ye.dom=Tt}},r.createElement($,Object.assign({},et,{open:wt,handler:ft,getContainer:function(){return ye.dom},onClose:this.onClose,onHandleClick:this.onHandleClick})));var Ht=!!ft||Fe;return r.createElement(w.a,{visible:wt,forceRender:Ht,getContainer:pt,wrapperClassName:st},function(Dt){var Tt=Dt.visible,Bt=Dt.afterClose,Ke=Object(s.a)(Dt,["visible","afterClose"]);return r.createElement($,Object.assign({},et,Ke,{open:Tt!==void 0?Tt:wt,afterVisibleChange:Bt!==void 0?Bt:et.afterVisibleChange,handler:ft,onClose:ye.onClose,onHandleClick:ye.onHandleClick}))})}}],[{key:"getDerivedStateFromProps",value:function(ye,Ie){var tt=Ie.prevProps,pt={prevProps:ye};return typeof tt!="undefined"&&ye.open!==tt.open&&(pt.open=ye.open),pt}}]),Te}(r.Component);Se.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 Re=Se,Pe=Re,Je=i("V/uB"),Ve=i.n(Je),ct=i("BGR+"),Ue=i("H84U"),ue=i("CWQg"),rt=function(be,Ce){var Te={};for(var he in be)Object.prototype.hasOwnProperty.call(be,he)&&Ce.indexOf(he)<0&&(Te[he]=be[he]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,he=Object.getOwnPropertySymbols(be);ye<he.length;ye++)Ce.indexOf(he[ye])<0&&Object.prototype.propertyIsEnumerable.call(be,he[ye])&&(Te[he[ye]]=be[he[ye]]);return Te},ge=r.createContext(null),Z=Object(ue.a)("top","right","bottom","left"),Y={distance:180},ee=function(be){a()(Te,be);var Ce=u()(Te);function Te(){var he;return f()(this,Te),he=Ce.apply(this,arguments),he.state={push:!1},he.push=function(){he.props.push&&he.setState({push:!0})},he.pull=function(){he.props.push&&he.setState({push:!1})},he.onDestroyTransitionEnd=function(){var ye=he.getDestroyOnClose();if(!ye)return;he.props.visible||(he.destroyClose=!0,he.forceUpdate())},he.getDestroyOnClose=function(){return he.props.destroyOnClose&&!he.props.visible},he.getPushDistance=function(){var ye=he.props.push,Ie;return typeof ye=="boolean"?Ie=ye?Y.distance:0:Ie=ye.distance,parseFloat(String(Ie||0))},he.getPushTransform=function(ye){var Ie=he.getPushDistance();if(ye==="left"||ye==="right")return"translateX(".concat(ye==="left"?Ie:-Ie,"px)");if(ye==="top"||ye==="bottom")return"translateY(".concat(ye==="top"?Ie:-Ie,"px)")},he.getRcDrawerStyle=function(){var ye=he.props,Ie=ye.zIndex,tt=ye.placement,pt=ye.mask,st=ye.style,Fe=he.state.push,ft=pt?{}:he.getOffsetStyle();return A()(A()({zIndex:Ie,transform:Fe?he.getPushTransform(tt):void 0},ft),st)},he.renderBody=function(){var ye=he.props,Ie=ye.bodyStyle,tt=ye.drawerStyle,pt=ye.prefixCls,st=ye.visible;if(he.destroyClose&&!st)return null;he.destroyClose=!1;var Fe={},ft=he.getDestroyOnClose();return ft&&(Fe.opacity=0,Fe.transition="opacity .3s"),r.createElement("div",{className:"".concat(pt,"-wrapper-body"),style:A()(A()({},Fe),tt),onTransitionEnd:he.onDestroyTransitionEnd},he.renderHeader(),r.createElement("div",{className:"".concat(pt,"-body"),style:Ie},he.props.children),he.renderFooter())},he.renderProvider=function(ye){return he.parentDrawer=ye,r.createElement(Ue.a,null,function(Ie){var tt=Ie.getPopupContainer,pt=Ie.getPrefixCls,st=he.props,Fe=st.prefixCls,ft=st.placement,et=st.className,wt=st.mask,Ht=st.direction,Dt=st.visible,Tt=rt(st,["prefixCls","placement","className","mask","direction","visible"]),Bt=pt("select",Fe),Ke=E()(et,p()({"no-mask":!wt},"".concat(Bt,"-rtl"),Ht==="rtl")),de=wt?he.getOffsetStyle():{};return r.createElement(ge.Provider,{value:n()(he)},r.createElement(Pe,A()({handler:!1},Object(ct.default)(Tt,["zIndex","style","closable","closeIcon","destroyOnClose","drawerStyle","headerStyle","bodyStyle","footerStyle","footer","locale","title","push","visible","getPopupContainer","rootPrefixCls","getPrefixCls","renderEmpty","csp","pageHeader","autoInsertSpaceInButton","width","height","dropdownMatchSelectWidth","getTargetContainer"]),{getContainer:Tt.getContainer===void 0&&tt?function(){return tt(document.body)}:Tt.getContainer},de,{prefixCls:Bt,open:Dt,showMask:wt,placement:ft,style:he.getRcDrawerStyle(),className:Ke}),he.renderBody()))})},he}return l()(Te,[{key:"componentDidMount",value:function(){var ye=this.props.visible;ye&&this.parentDrawer&&this.parentDrawer.push()}},{key:"componentDidUpdate",value:function(ye){var Ie=this.props.visible;ye.visible!==Ie&&this.parentDrawer&&(Ie?this.parentDrawer.push():this.parentDrawer.pull())}},{key:"componentWillUnmount",value:function(){this.parentDrawer&&(this.parentDrawer.pull(),this.parentDrawer=null)}},{key:"getOffsetStyle",value:function(){var ye=this.props,Ie=ye.placement,tt=ye.width,pt=ye.height,st=ye.visible,Fe=ye.mask;if(!st&&!Fe)return{};var ft={};return Ie==="left"||Ie==="right"?ft.width=tt:ft.height=pt,ft}},{key:"renderHeader",value:function(){var ye=this.props,Ie=ye.title,tt=ye.prefixCls,pt=ye.closable,st=ye.headerStyle;if(!Ie&&!pt)return null;var Fe=Ie?"".concat(tt,"-header"):"".concat(tt,"-header-no-title");return r.createElement("div",{className:Fe,style:st},Ie&&r.createElement("div",{className:"".concat(tt,"-title")},Ie),pt&&this.renderCloseIcon())}},{key:"renderFooter",value:function(){var ye=this.props,Ie=ye.footer,tt=ye.footerStyle,pt=ye.prefixCls;if(!Ie)return null;var st="".concat(pt,"-footer");return r.createElement("div",{className:st,style:tt},Ie)}},{key:"renderCloseIcon",value:function(){var ye=this.props,Ie=ye.closable,tt=ye.closeIcon,pt=tt===void 0?r.createElement(Ve.a,null):tt,st=ye.prefixCls,Fe=ye.onClose;return Ie&&r.createElement("button",{onClick:Fe,"aria-label":"Close",className:"".concat(st,"-close"),style:{"--scroll-bar":"".concat(Object(C.a)(),"px")}},pt)}},{key:"render",value:function(){return r.createElement(ge.Consumer,null,this.renderProvider)}}]),Te}(r.Component);ee.defaultProps={width:256,height:256,closable:!0,placement:"right",maskClosable:!0,mask:!0,level:null,keyboard:!0,push:Y};var fe=D.a=Object(Ue.c)({prefixCls:"drawer"})(ee)},"/y7N":function(k,D,i){var y=i("bYtY"),p=i("IwbS"),S=i("6GrX"),A=i("7aKB"),m=i("Fofx"),f=i("aX7z"),d=i("+rIm");function l(c){var h=c.get("type"),g=c.getModel(h+"Style"),v;return h==="line"?(v=g.getLineStyle(),v.fill=null):h==="shadow"&&(v=g.getAreaStyle(),v.stroke=null),v}function o(c,h,g,v,b){var w=g.get("value"),x=t(w,h.axis,h.ecModel,g.get("seriesDataIndices"),{precision:g.get("label.precision"),formatter:g.get("label.formatter")}),T=g.getModel("label"),O=A.normalizeCssArray(T.get("padding")||0),E=T.getFont(),C=S.getBoundingRect(x,E),I=b.position,_=C.width+O[1]+O[3],F=C.height+O[0]+O[2],R=b.align;R==="right"&&(I[0]-=_),R==="center"&&(I[0]-=_/2);var B=b.verticalAlign;B==="bottom"&&(I[1]-=F),B==="middle"&&(I[1]-=F/2),n(I,_,F,v);var M=T.get("backgroundColor");(!M||M==="auto")&&(M=h.get("axisLine.lineStyle.color")),c.label={shape:{x:0,y:0,width:_,height:F,r:T.get("borderRadius")},position:I.slice(),style:{text:x,textFont:E,textFill:T.getTextColor(),textPosition:"inside",textPadding:O,fill:M,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 n(c,h,g,v){var b=v.getWidth(),w=v.getHeight();c[0]=Math.min(c[0]+h,b)-h,c[1]=Math.min(c[1]+g,w)-g,c[0]=Math.max(c[0],0),c[1]=Math.max(c[1],0)}function t(c,h,g,v,b){c=h.scale.parse(c);var w=h.scale.getLabel(c,{precision:b.precision}),x=b.formatter;if(x){var T={value:f.getAxisRawValue(h,c),axisDimension:h.dim,axisIndex:h.index,seriesData:[]};y.each(v,function(O){var E=g.getSeriesByIndex(O.seriesIndex),C=O.dataIndexInside,I=E&&E.getDataParams(C);I&&T.seriesData.push(I)}),y.isString(x)?w=x.replace("{value}",w):y.isFunction(x)&&(w=x(T))}return w}function a(c,h,g){var v=m.create();return m.rotate(v,v,g.rotation),m.translate(v,v,g.position),p.applyTransform([c.dataToCoord(h),(g.labelOffset||0)+(g.labelDirection||1)*(g.labelMargin||0)],v)}function e(c,h,g,v,b,w){var x=d.innerTextLayout(g.rotation,0,g.labelDirection);g.labelMargin=b.get("label.margin"),o(h,v,b,w,{position:a(v.axis,c,g),align:x.textAlign,verticalAlign:x.textVerticalAlign})}function u(c,h,g){return g=g||0,{x1:c[g],y1:c[1-g],x2:h[g],y2:h[1-g]}}function r(c,h,g){return g=g||0,{x:c[g],y:c[1-g],width:h[g],height:h[1-g]}}function s(c,h,g,v,b,w){return{cx:c,cy:h,r0:g,r:v,startAngle:b,endAngle:w,clockwise:!0}}D.buildElStyle=l,D.buildLabelElOption=o,D.getValueLabel=t,D.getTransformedPosition=a,D.buildCartesianSingleLabelElOption=e,D.makeLineShape=u,D.makeRectShape=r,D.makeSectorShape=s},"/zsF":function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("bE4E"),A=i.n(S)},"0/Rx":function(k,D){function i(y){return{seriesType:y,reset:function(p,S){var A=S.findComponents({mainType:"legend"});if(!A||!A.length)return;var m=p.getData();m.filterSelf(function(f){for(var d=m.getName(f),l=0;l<A.length;l++)if(!A[l].isSelected(d))return!1;return!0})}}}k.exports=i},"01d+":function(k,D,i){var y=i("bYtY"),p=y.each,S=i("HF/U"),A=S.simpleLayout,m=S.simpleLayoutEdge;function f(d,l){d.eachSeriesByType("graph",function(o){var n=o.get("layout"),t=o.coordinateSystem;if(t&&t.type!=="view"){var a=o.getData(),e=[];p(t.dimensions,function(g){e=e.concat(a.mapDimension(g,!0))});for(var u=0;u<a.count();u++){for(var r=[],s=!1,c=0;c<e.length;c++){var h=a.get(e[c],u);isNaN(h)||(s=!0),r.push(h)}s?a.setItemLayout(u,t.dataToPoint(r)):a.setItemLayout(u,[NaN,NaN])}m(a.graph)}else(!n||n==="none")&&A(o)})}k.exports=f},"03A+":function(k,D,i){var y=i("JTzB"),p=i("ExA7"),S=Object.prototype,A=S.hasOwnProperty,m=S.propertyIsEnumerable,f=y(function(){return arguments}())?y:function(d){return p(d)&&A.call(d,"callee")&&!m.call(d,"callee")};k.exports=f},"06DH":function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("Kagy"),A=i("IUWy"),m=S.toolbox.magicType,f="__ec_magicType_stack__";function d(a){this.model=a}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:p.clone(m.title),option:{},seriesIndex:{}};var l=d.prototype;l.getIcons=function(){var a=this.model,e=a.get("icon"),u={};return p.each(a.get("type"),function(r){e[r]&&(u[r]=e[r])}),u};var o={line:function(a,e,u,r){if(a==="bar")return p.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(a,e,u,r){if(a==="line")return p.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(a,e,u,r){var s=u.get("stack")===f;if(a==="line"||a==="bar")return r.setIconStatus("stack",s?"normal":"emphasis"),p.merge({id:e,stack:s?"":f},r.get("option.stack")||{},!0)}},n=[["line","bar"],["stack"]];l.onclick=function(a,e,u){var r=this.model,s=r.get("seriesIndex."+u);if(!o[u])return;var c={series:[]},h=function(b){var w=b.subType,x=b.id,T=o[u](w,x,b,r);T&&(p.defaults(T,b.option),c.series.push(T));var O=b.coordinateSystem;if(O&&O.type==="cartesian2d"&&(u==="line"||u==="bar")){var E=O.getAxesByScale("ordinal")[0];if(E){var C=E.dim,I=C+"Axis",_=a.queryComponents({mainType:I,index:b.get(name+"Index"),id:b.get(name+"Id")})[0],F=_.componentIndex;c[I]=c[I]||[];for(var R=0;R<=F;R++)c[I][F]=c[I][F]||{};c[I][F].boundaryGap=u==="bar"}}};p.each(n,function(b){p.indexOf(b,u)>=0&&p.each(b,function(w){r.setIconStatus(w,"normal")})}),r.setIconStatus(u,"emphasis"),a.eachComponent({mainType:"series",query:s==null?null:{seriesIndex:s}},h);var g;if(u==="stack"){var v=c.series&&c.series[0]&&c.series[0].stack===f;g=v?p.merge({stack:m.title.tiled},m.title):p.clone(m.title)}e.dispatchAction({type:"changeMagicType",currentType:u,newOption:c,newTitle:g,featureName:"magicType"})},y.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(a,e){e.mergeOption(a.newOption)}),A.register("magicType",d);var t=d;k.exports=t},"06Qe":function(k,D,i){var y=i("ItGF"),p="urn:schemas-microsoft-com:vml",S=typeof window=="undefined"?null:window,A=!1,m=S&&S.document;function f(o){return d(o)}var d;if(m&&!y.canvasSupported)try{!m.namespaces.zrvml&&m.namespaces.add("zrvml",p),d=function(n){return m.createElement("<zrvml:"+n+' class="zrvml">')}}catch(o){d=function(t){return m.createElement("<"+t+' xmlns="'+p+'" class="zrvml">')}}function l(){if(A||!m)return;A=!0;var o=m.styleSheets;o.length<31?m.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):o[0].addRule(".zrvml","behavior:url(#default#VML)")}D.doc=m,D.createNode=f,D.initVML=l},"09Wf":function(k,D,i){"use strict";i.d(D,"b",function(){return p}),i.d(D,"a",function(){return S});var y=i("CWQg"),p=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(k,D,i){var y=i("T4UG"),p=i("I3/A"),S=i("7aKB"),A=S.encodeHTML,m=i("Qxkt"),f=i("Tghj"),d=f.__DEV__,l=y.extend({type:"series.sankey",layoutInfo:null,levelModels:null,getInitialData:function(n,t){for(var a=n.edges||n.links,e=n.data||n.nodes,u=n.levels,r=this.levelModels={},s=0;s<u.length;s++)u[s].depth!=null&&u[s].depth>=0&&(r[u[s].depth]=new m(u[s],this,t));if(e&&a){var c=p(e,a,this,!0,h);return c.data}function h(g,v){g.wrapMethod("getItemModel",function(b,w){return b.customizeGetParent(function(x){var T=this.parentModel,O=T.getData().getItemLayout(w).depth,E=T.levelModels[O];return E||this.parentModel}),b}),v.wrapMethod("getItemModel",function(b,w){return b.customizeGetParent(function(x){var T=this.parentModel,O=T.getGraph().getEdgeByIndex(w),E=O.node1.getLayout().depth,C=T.levelModels[E];return C||this.parentModel}),b})}},setNodePosition:function(n,t){var a=this.option.data[n];a.localX=t[0],a.localY=t[1]},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},formatTooltip:function(n,t,a){if(a==="edge"){var e=this.getDataParams(n,a),u=e.data,r=u.source+" -- "+u.target;return e.value&&(r+=" : "+e.value),A(r)}else if(a==="node"){var s=this.getGraph().getNodeByIndex(n),c=s.getLayout().value,h=this.getDataParams(n,a).data.name;if(c)var r=h+" : "+c;return A(r)}return l.superCall(this,"formatTooltip",n,t)},optionUpdated:function(){var n=this.option;n.focusNodeAdjacency===!0&&(n.focusNodeAdjacency="allEdges")},getDataParams:function(n,t){var a=l.superCall(this,"getDataParams",n,t);if(a.value==null&&t==="node"){var e=this.getGraph().getNodeByIndex(n),u=e.getLayout().value;a.value=u}return a},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",layout:null,left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,focusNodeAdjacency:!1,layoutIterations:32,label:{show:!0,position:"right",color:"#000",fontSize:12},levels:[],nodeAlign:"justify",itemStyle:{borderWidth:1,borderColor:"#333"},lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},animationEasing:"linear",animationDuration:1e3}}),o=l;k.exports=o},"0Cz8":function(k,D,i){var y=i("Xi7e"),p=i("ebwN"),S=i("e4Nc"),A=200;function m(f,d){var l=this.__data__;if(l instanceof y){var o=l.__data__;if(!p||o.length<A-1)return o.push([f,d]),this.size=++l.size,this;l=this.__data__=new S(o)}return l.set(f,d),this.size=l.size,this}k.exports=m},"0HBW":function(k,D,i){var y=i("ProS"),p=i("bYtY");i("Hxpc"),i("7uqq"),i("dmGj"),i("SehX");function S(A,m){m.update="updateView",y.registerAction(m,function(f,d){var l={};return d.eachComponent({mainType:"geo",query:f},function(o){o[A](f.name);var n=o.coordinateSystem;p.each(n.regions,function(t){l[t.name]=o.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(k,D,i){var y=i("bYtY"),p=i("+TT/"),S=i("OELB"),A=i("IDmD"),m=864e5;function f(o,n,t){this._model=o}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(o){o=S.parseDate(o);var n=o.getFullYear(),t=o.getMonth()+1;t=t<10?"0"+t:t;var a=o.getDate();a=a<10?"0"+a:a;var e=o.getDay();return e=Math.abs((e+7-this.getFirstDayOfWeek())%7),{y:n,m:t,d:a,day:e,time:o.getTime(),formatedDate:n+"-"+t+"-"+a,date:o}},getNextNDay:function(o,n){return n=n||0,n===0?this.getDateInfo(o):(o=new Date(this.getDateInfo(o).time),o.setDate(o.getDate()+n),this.getDateInfo(o))},update:function(o,n){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,a=["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(g){h(e,g)&&(u[a[g]]=e[g]*r[g])});var s={width:n.getWidth(),height:n.getHeight()},c=this._rect=p.getLayoutRect(u,s);y.each([0,1],function(g){h(e,g)||(e[g]=c[a[g]]/r[g])});function h(g,v){return g[v]!=null&&g[v]!=="auto"}this._sw=e[0],this._sh=e[1]},dataToPoint:function(o,n){y.isArray(o)&&(o=o[0]),n==null&&(n=!0);var t=this.getDateInfo(o),a=this._rangeInfo,e=t.formatedDate;if(n&&!(t.time>=a.start.time&&t.time<a.end.time+m))return[NaN,NaN];var u=t.day,r=this._getRangeInfo([a.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(o){var n=this.pointToDate(o);return n&&n.time},dataToRect:function(o,n){var t=this.dataToPoint(o,n);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(o){var n=Math.floor((o[0]-this._rect.x)/this._sw)+1,t=Math.floor((o[1]-this._rect.y)/this._sh)+1,a=this._rangeInfo.range;return this._orient==="vertical"?this._getDateByWeeksAndDay(t,n-1,a):this._getDateByWeeksAndDay(n,t-1,a)},convertToPixel:y.curry(d,"dataToPoint"),convertFromPixel:y.curry(d,"pointToData"),_initRangeOption:function(){var o=this._model.get("range"),n=o;if(y.isArray(n)&&n.length===1&&(n=n[0]),/^\d{4}$/.test(n)&&(o=[n+"-01-01",n+"-12-31"]),/^\d{4}[\/|-]\d{1,2}$/.test(n)){var t=this.getDateInfo(n),a=t.date;a.setMonth(a.getMonth()+1);var e=this.getNextNDay(a,-1);o=[t.formatedDate,e.formatedDate]}/^\d{4}[\/|-]\d{1,2}[\/|-]\d{1,2}$/.test(n)&&(o=[n,n]);var u=this._getRangeInfo(o);return u.start.time>u.end.time&&o.reverse(),o},_getRangeInfo:function(o){o=[this.getDateInfo(o[0]),this.getDateInfo(o[1])];var n;o[0].time>o[1].time&&(n=!0,o.reverse());var t=Math.floor(o[1].time/m)-Math.floor(o[0].time/m)+1,a=new Date(o[0].time),e=a.getDate(),u=o[1].date.getDate();a.setDate(e+t-1);var r=a.getDate();if(r!==u)for(var s=a.getTime()-o[1].time>0?1:-1;(r=a.getDate())!==u&&(a.getTime()-o[1].time)*s>0;)t-=s,a.setDate(r-s);var c=Math.floor((t+o[0].day+6)/7),h=n?-c+1:c-1;return n&&o.reverse(),{range:[o[0].formatedDate,o[1].formatedDate],start:o[0],end:o[1],allDay:t,weeks:c,nthWeek:h,fweek:o[0].day,lweek:o[1].day}},_getDateByWeeksAndDay:function(o,n,t){var a=this._getRangeInfo(t);if(o>a.weeks||o===0&&n<a.fweek||o===a.weeks&&n>a.lweek)return!1;var e=(o-1)*7-a.fweek+n,u=new Date(a.start.time);return u.setDate(a.start.d+e),this.getDateInfo(u)}},f.dimensions=f.prototype.dimensions,f.getDimensionsInfo=f.prototype.getDimensionsInfo,f.create=function(o,n){var t=[];return o.eachComponent("calendar",function(a){var e=new f(a,o,n);t.push(e),a.coordinateSystem=e}),o.eachSeries(function(a){a.get("coordinateSystem")==="calendar"&&(a.coordinateSystem=t[a.get("calendarIndex")||0])}),t};function d(o,n,t,a){var e=t.calendarModel,u=t.seriesModel,r=e?e.coordinateSystem:u?u.coordinateSystem:null;return r===this?r[o](a):null}A.register("calendar",f);var l=f;k.exports=l},"0NbB":function(k,D,i){"use strict";var y=i("VTBJ"),p=i("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"},A=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:A}))};f.displayName="CaretDownOutlined";var d=D.a=p.forwardRef(f)},"0V0F":function(k,D,i){var y=i("bYtY"),p=y.createHashMap,S=y.each;function A(f){var d=p();f.eachSeries(function(l){var o=l.get("stack");if(o){var n=d.get(o)||d.set(o,[]),t=l.getData(),a={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(!a.stackedDimension||!(a.isStackedByIndex||a.stackedByDimension))return;n.length&&t.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(a)}}),d.each(m)}function m(f){S(f,function(d,l){var o=[],n=[NaN,NaN],t=[d.stackResultDimension,d.stackedOverDimension],a=d.data,e=d.isStackedByIndex,u=a.map(t,function(r,s,c){var h=a.get(d.stackedDimension,c);if(isNaN(h))return n;var g,v;e?v=a.getRawIndex(c):g=a.get(d.stackedByDimension,c);for(var b=NaN,w=l-1;w>=0;w--){var x=f[w];if(e||(v=x.data.rawIndexOf(x.stackedByDimension,g)),v>=0){var T=x.data.getByRawIndex(x.stackResultDimension,v);if(h>=0&&T>0||h<=0&&T<0){h+=T,b=T;break}}}return o[0]=h,o[1]=b,o});a.hostModel.setData(u),d.data=u})}k.exports=A},"0XgM":function(k,D,i){},"0fbx":function(k,D,i){},"0o9m":function(k,D,i){var y=i("ProS");i("hNWo"),i("RlCK"),i("XpcN");var p=i("kDyi"),S=i("bLfw");y.registerProcessor(y.PRIORITY.PROCESSOR.SERIES_FILTER,p),S.registerSubTypeDefaulter("legend",function(){return"plain"})},"0qV/":function(k,D,i){var y=i("ProS");y.registerAction({type:"focusNodeAdjacency",event:"focusNodeAdjacency",update:"series:focusNodeAdjacency"},function(){}),y.registerAction({type:"unfocusNodeAdjacency",event:"unfocusNodeAdjacency",update:"series:unfocusNodeAdjacency"},function(){})},"0r65":function(k,D){var i=arguments[3],y=arguments[4],p=arguments[5],S=JSON.stringify;k.exports=function(A,m){for(var f,d=Object.keys(p),l=0,o=d.length;l<o;l++){var n=d[l],t=p[n].exports;if(t===A||t&&t.default===A){f=n;break}}if(!f){f=Math.floor(Math.pow(16,8)*Math.random()).toString(16);for(var a={},l=0,o=d.length;l<o;l++){var n=d[l];a[n]=n}y[f]=["function(require,module,exports){"+A+"(self); }",a]}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(w){r[w]=!0;for(var x in y[w][1]){var T=y[w][1][x];r[T]||s(T)}}var c="("+i+")({"+Object.keys(r).map(function(w){return S(w)+":["+y[w][0]+","+S(y[w][1])+"]"}).join(",")+"},{},["+S(e)+"])",h=window.URL||window.webkitURL||window.mozURL||window.msURL,g=new Blob([c],{type:"text/javascript"});if(m&&m.bare)return g;var v=h.createObjectURL(g),b=new Worker(v);return b.objectURL=v,b}},"0s+r":function(k,D,i){var y=i("bYtY"),p=i("QBsz"),S=i("y23F"),A=i("H6uX"),m=i("YH21"),f=i("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:o}}function o(){m.stop(this.event)}function n(){}n.prototype.dispose=function(){};var t=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],a=function(c,h,g,v){A.call(this),this.storage=c,this.painter=h,this.painterRoot=v,g=g||new n,this.proxy=null,this._hovered={},this._lastTouchMoment,this._lastX,this._lastY,this._gestureMgr,S.call(this),this.setHandlerProxy(g)};a.prototype={constructor:a,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,g=c.zrY,v=u(this,h,g),b=this._hovered,w=b.target;w&&!w.__zr&&(b=this.findHover(b.x,b.y),w=b.target);var x=this._hovered=v?{x:h,y:g}:this.findHover(h,g),T=x.target,O=this.proxy;O.setCursor&&O.setCursor(T?T.cursor:"default"),w&&T!==w&&this.dispatchToElement(b,"mouseout",c),this.dispatchToElement(x,"mousemove",c),T&&T!==w&&this.dispatchToElement(x,"mouseover",c)},mouseout:function(c){var h=c.zrEventControl,g=c.zrIsToLocalDOM;h!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",c),h!=="no_globalout"&&(!g&&this.trigger("globalout",{type:"globalout",event:c}))},resize:function(c){this._hovered={}},dispatch:function(c,h){var g=this[c];g&&g.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,g){c=c||{};var v=c.target;if(v&&v.silent)return;for(var b="on"+h,w=l(h,c,g);v&&!(v[b]&&(w.cancelBubble=v[b].call(v,w)),v.trigger(h,w),v=v.parent,w.cancelBubble););w.cancelBubble||(this.trigger(h,w),this.painter&&this.painter.eachOtherLayer(function(x){typeof x[b]=="function"&&x[b].call(x,w),x.trigger&&x.trigger(h,w)}))},findHover:function(c,h,g){for(var v=this.storage.getDisplayList(),b={x:c,y:h},w=v.length-1;w>=0;w--){var x;if(v[w]!==g&&!v[w].ignore&&(x=e(v[w],c,h))&&(!b.topTarget&&(b.topTarget=v[w]),x!==d)){b.target=v[w];break}}return b},processGesture:function(c,h){this._gestureMgr||(this._gestureMgr=new f);var g=this._gestureMgr;h==="start"&&g.clear();var v=g.recognize(c,this.findHover(c.zrX,c.zrY,null).target,this.proxy.dom);if(h==="end"&&g.clear(),v){var b=v.type;c.gestureEvent=b,this.dispatchToElement({target:v.target},b,v.event)}}},y.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(s){a.prototype[s]=function(c){var h=c.zrX,g=c.zrY,v=u(this,h,g),b,w;if((s!=="mouseup"||!v)&&(b=this.findHover(h,g),w=b.target),s==="mousedown")this._downEl=w,this._downPoint=[c.zrX,c.zrY],this._upEl=w;else if(s==="mouseup")this._upEl=w;else if(s==="click"){if(this._downEl!==this._upEl||!this._downPoint||p.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 g=s,v;g;){if(g.clipPath&&!g.clipPath.contain(c,h))return!1;g.silent&&(v=!0),g=g.parent}return v?d:!0}return!1}function u(s,c,h){var g=s.painter;return c<0||c>g.getWidth()||h<0||h>g.getHeight()}y.mixin(a,A),y.mixin(a,S);var r=a;k.exports=r},"0ycA":function(k,D){function i(){return[]}k.exports=i},"10cm":function(k,D,i){var y=i("ProS"),p=i("2B6p"),S=p.updateCenterAndZoom;i("0qV/");var A={type:"graphRoam",event:"graphRoam",update:"none"};y.registerAction(A,function(m,f){f.eachComponent({mainType:"series",query:m},function(d){var l=d.coordinateSystem,o=S(l,m);d.setCenter&&d.setCenter(o.center),d.setZoom&&d.setZoom(o.zoom)})})},"15/o":function(k,D,i){},"19Vz":function(k,D,i){(function(y){y(i("VrN/"))})(function(y){y.defineOption("placeholder","",function(l,o,n){var t=n&&n!=y.Init;if(o&&!t)l.on("blur",m),l.on("change",f),l.on("swapDoc",f),y.on(l.getInputField(),"compositionupdate",l.state.placeholderCompose=function(){A(l)}),f(l);else if(!o&&t){l.off("blur",m),l.off("change",f),l.off("swapDoc",f),y.off(l.getInputField(),"compositionupdate",l.state.placeholderCompose),p(l);var a=l.getWrapperElement();a.className=a.className.replace(" CodeMirror-empty","")}o&&!l.hasFocus()&&m(l)});function p(l){l.state.placeholder&&(l.state.placeholder.parentNode.removeChild(l.state.placeholder),l.state.placeholder=null)}function S(l){p(l);var o=l.state.placeholder=document.createElement("pre");o.style.cssText="height: 0; overflow: visible",o.style.direction=l.getOption("direction"),o.className="CodeMirror-placeholder CodeMirror-line-like";var n=l.getOption("placeholder");typeof n=="string"&&(n=document.createTextNode(n)),o.appendChild(n),l.display.lineSpace.insertBefore(o,l.display.lineSpace.firstChild)}function A(l){setTimeout(function(){var o=!1,n=l.getInputField();n.nodeName=="TEXTAREA"?o=!n.value:l.lineCount()==1&&(o=!/[^\u200b]/.test(n.querySelector(".CodeMirror-line").textContent)),o?S(l):p(l)},20)}function m(l){d(l)&&S(l)}function f(l){var o=l.getWrapperElement(),n=d(l);o.className=o.className.replace(" CodeMirror-empty","")+(n?" CodeMirror-empty":""),n?S(l):p(l)}function d(l){return l.lineCount()===1&&l.getLine(0)===""}})},"1Jh7":function(k,D,i){var y=i("y+Vt"),p=i("T6xi"),S=y.extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(m,f){p.buildPath(m,f,!1)}});k.exports=S},"1LEl":function(k,D,i){var y=i("ProS"),p=i("F9bG"),S=y.extendComponentView({type:"axisPointer",render:function(m,f,d){var l=f.getComponent("tooltip"),o=m.get("triggerOn")||l&&l.get("triggerOn")||"mousemove|click";p.register("axisPointer",d,function(n,t,a){o!=="none"&&(n==="leave"||o.indexOf(n)>=0)&&a({type:"updateAxisPointer",currTrigger:n,x:t&&t.offsetX,y:t&&t.offsetY})})},remove:function(m,f){p.unregister(f.getZr(),"axisPointer"),S.superApply(this._model,"remove",arguments)},dispose:function(m,f){p.unregister("axisPointer",f),S.superApply(this._model,"dispose",arguments)}}),A=S;k.exports=A},"1MYJ":function(k,D,i){var y=i("y+Vt"),p=y.extend({type:"compound",shape:{paths:null},_updatePathDirty:function(){for(var A=this.__dirtyPath,m=this.shape.paths,f=0;f<m.length;f++)A=A||m[f].__dirtyPath;this.__dirtyPath=A,this.__dirty=this.__dirty||A},beforeBrush:function(){this._updatePathDirty();for(var A=this.shape.paths||[],m=this.getGlobalScale(),f=0;f<A.length;f++)A[f].path||A[f].createPathProxy(),A[f].path.setScale(m[0],m[1],A[f].segmentIgnoreThreshold)},buildPath:function(A,m){for(var f=m.paths||[],d=0;d<f.length;d++)f[d].buildPath(A,f[d].shape,!0)},afterBrush:function(){for(var A=this.shape.paths||[],m=0;m<A.length;m++)A[m].__dirtyPath=!1},getBoundingRect:function(){return this._updatePathDirty(),y.prototype.getBoundingRect.call(this)}});k.exports=p},"1NG9":function(k,D,i){var y=i("y+Vt"),p=i("QBsz"),S=i("iXp4"),A=p.min,m=p.max,f=p.scaleAndAdd,d=p.copy,l=[],o=[],n=[];function t(h){return isNaN(h[0])||isNaN(h[1])}function a(h,g,v,b,w,x,T,O,E,C,I){return C==="none"||!C?u.apply(this,arguments):e.apply(this,arguments)}function e(h,g,v,b,w,x,T,O,E,C,I){for(var _=0,F=v,R=0;R<b;R++){var B=g[F];if(F>=w||F<0)break;if(t(B)){if(I){F+=x;continue}break}if(F===v)h[x>0?"moveTo":"lineTo"](B[0],B[1]);else if(E>0){var M=g[_],X=C==="y"?1:0,P=(B[X]-M[X])*E;d(o,M),o[X]=M[X]+P,d(n,B),n[X]=B[X]-P,h.bezierCurveTo(o[0],o[1],n[0],n[1],B[0],B[1])}else h.lineTo(B[0],B[1]);_=F,F+=x}return R}function u(h,g,v,b,w,x,T,O,E,C,I){for(var _=0,F=v,R=0;R<b;R++){var B=g[F];if(F>=w||F<0)break;if(t(B)){if(I){F+=x;continue}break}if(F===v)h[x>0?"moveTo":"lineTo"](B[0],B[1]),d(o,B);else if(E>0){var M=F+x,X=g[M];if(I)for(;X&&t(g[M]);)M+=x,X=g[M];var P=.5,z=g[_],X=g[M];if(!X||t(X))d(n,B);else{t(X)&&!I&&(X=B),p.sub(l,X,z);var W,U;if(C==="x"||C==="y"){var V=C==="x"?0:1;W=Math.abs(B[V]-z[V]),U=Math.abs(B[V]-X[V])}else W=p.dist(B,z),U=p.dist(B,X);P=U/(U+W),f(n,B,l,-E*(1-P))}A(o,o,O),m(o,o,T),A(n,n,O),m(n,n,T),h.bezierCurveTo(o[0],o[1],n[0],n[1],B[0],B[1]),f(o,B,l,E*P)}else h.lineTo(B[0],B[1]);_=F,F+=x}return R}function r(h,g){var v=[Infinity,Infinity],b=[-Infinity,-Infinity];if(g)for(var w=0;w<h.length;w++){var x=h[w];x[0]<v[0]&&(v[0]=x[0]),x[1]<v[1]&&(v[1]=x[1]),x[0]>b[0]&&(b[0]=x[0]),x[1]>b[1]&&(b[1]=x[1])}return{min:g?v:b,max:g?b:v}}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,g){var v=g.points,b=0,w=v.length,x=r(v,g.smoothConstraint);if(g.connectNulls){for(;w>0&&t(v[w-1]);w--);for(;b<w&&t(v[b]);b++);}for(;b<w;)b+=a(h,v,b,w,w,1,x.min,x.max,g.smooth,g.smoothMonotone,g.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,g){var v=g.points,b=g.stackedOnPoints,w=0,x=v.length,T=g.smoothMonotone,O=r(v,g.smoothConstraint),E=r(b,g.smoothConstraint);if(g.connectNulls){for(;x>0&&t(v[x-1]);x--);for(;w<x&&t(v[w]);w++);}for(;w<x;){var C=a(h,v,w,x,x,1,O.min,O.max,g.smooth,T,g.connectNulls);a(h,b,w+C-1,C,x,-1,E.min,E.max,g.stackedOnSmooth,T,g.connectNulls),w+=C+1,h.closePath()}}});D.Polyline=s,D.Polygon=c},"1RvN":function(k,D){var i=function(){this.head=null,this.tail=null,this._len=0},y=i.prototype;y.insert=function(f){var d=new p(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 p=function(d){this.value=d,this.next,this.prev},S=function(d){this._list=new i,this._map={},this._maxSize=d||10,this._lastRemovedEntry=null},A=S.prototype;A.put=function(f,d){var l=this._list,o=this._map,n=null;if(o[f]==null){var t=l.len(),a=this._lastRemovedEntry;if(t>=this._maxSize&&t>0){var e=l.head;l.remove(e),delete o[e.key],n=e.value,this._lastRemovedEntry=e}a?a.value=d:a=new p(d),a.key=f,l.insertEntry(a),o[f]=a}return n},A.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},A.clear=function(){this._list.clear(),this._map={}};var m=S;k.exports=m},"1bdT":function(k,D,i){var y=i("3gBT"),p=i("H6uX"),S=i("DN4a"),A=i("vWvF"),m=i("bYtY"),f=function(o){S.call(this,o),p.call(this,o),A.call(this,o),this.id=o.id||y()};f.prototype={type:"element",name:"",__zr:null,ignore:!1,clipPath:null,isGroup:!1,drift:function(o,n){switch(this.draggable){case"horizontal":n=0;break;case"vertical":o=0;break}var t=this.transform;t||(t=this.transform=[1,0,0,1,0,0]),t[4]+=o,t[5]+=n,this.decomposeTransform(),this.dirty(!1)},beforeUpdate:function(){},afterUpdate:function(){},update:function(){this.updateTransform()},traverse:function(o,n){},attrKV:function(o,n){if(o==="position"||o==="scale"||o==="origin"){if(n){var t=this[o];t||(t=this[o]=[]),t[0]=n[0],t[1]=n[1]}}else this[o]=n},hide:function(){this.ignore=!0,this.__zr&&this.__zr.refresh()},show:function(){this.ignore=!1,this.__zr&&this.__zr.refresh()},attr:function(o,n){if(typeof o=="string")this.attrKV(o,n);else if(m.isObject(o))for(var t in o)o.hasOwnProperty(t)&&this.attrKV(t,o[t]);return this.dirty(!1),this},setClipPath:function(o){var n=this.__zr;n&&o.addSelfToZr(n),this.clipPath&&this.clipPath!==o&&this.removeClipPath(),this.clipPath=o,o.__zr=n,o.__clipTarget=this,this.dirty(!1)},removeClipPath:function(){var o=this.clipPath;o&&(o.__zr&&o.removeSelfFromZr(o.__zr),o.__zr=null,o.__clipTarget=null,this.clipPath=null,this.dirty(!1))},addSelfToZr:function(o){this.__zr=o;var n=this.animators;if(n)for(var t=0;t<n.length;t++)o.animation.addAnimator(n[t]);this.clipPath&&this.clipPath.addSelfToZr(o)},removeSelfFromZr:function(o){this.__zr=null;var n=this.animators;if(n)for(var t=0;t<n.length;t++)o.animation.removeAnimator(n[t]);this.clipPath&&this.clipPath.removeSelfFromZr(o)}},m.mixin(f,A),m.mixin(f,S),m.mixin(f,p);var d=f;k.exports=d},"1dTM":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=i("GQ8N"),p=C(i("Lo0S")),S=i("VSMT"),A=i("GdRQ"),m=i("SZEN"),f=i("vewr"),d=O(i("YJ9k")),l=O(i("MZdM")),o=O(i("ItS6")),n=O(i("whVF")),t=O(i("Fv0C")),a=O(i("LCi9")),e=O(i("rwxt")),u=O(i("Mmt2")),r=O(i("iUHT")),s=O(i("mHUz")),c=O(i("P2ho")),h=i("NBmB");i("mdZa");var g=O(i("34/K")),v=O(i("hXwI")),b=O(i("SgaC")),w=O(i("3690")),x=O(i("8K/p")),T=O(i("xO64"));function O(fe){return fe&&fe.__esModule?fe:{default:fe}}function E(){if(typeof WeakMap!="function")return null;var fe=new WeakMap;return E=function(){return fe},fe}function C(fe){if(fe&&fe.__esModule)return fe;if(fe===null||I(fe)!=="object"&&typeof fe!="function")return{default:fe};var be=E();if(be&&be.has(fe))return be.get(fe);var Ce={},Te=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var he in fe)if(Object.prototype.hasOwnProperty.call(fe,he)){var ye=Te?Object.getOwnPropertyDescriptor(fe,he):null;ye&&(ye.get||ye.set)?Object.defineProperty(Ce,he,ye):Ce[he]=fe[he]}return Ce.default=fe,be&&be.set(fe,Ce),Ce}function I(fe){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I=function(Ce){return typeof Ce}:I=function(Ce){return Ce&&typeof Symbol=="function"&&Ce.constructor===Symbol&&Ce!==Symbol.prototype?"symbol":typeof Ce},I(fe)}function _(fe,be){if(!(fe instanceof be))throw new TypeError("Cannot call a class as a function")}function F(fe,be){for(var Ce=0;Ce<be.length;Ce++){var Te=be[Ce];Te.enumerable=Te.enumerable||!1,Te.configurable=!0,"value"in Te&&(Te.writable=!0),Object.defineProperty(fe,Te.key,Te)}}function R(fe,be,Ce){return be&&F(fe.prototype,be),Ce&&F(fe,Ce),fe}function B(fe,be){if(typeof be!="function"&&be!==null)throw new TypeError("Super expression must either be null or a function");fe.prototype=Object.create(be&&be.prototype,{constructor:{value:fe,writable:!0,configurable:!0}}),be&&M(fe,be)}function M(fe,be){return M=Object.setPrototypeOf||function(Te,he){return Te.__proto__=he,Te},M(fe,be)}function X(fe){var be=W();return function(){var Te=U(fe),he;if(be){var ye=U(this).constructor;he=Reflect.construct(Te,arguments,ye)}else he=Te.apply(this,arguments);return P(this,he)}}function P(fe,be){return be&&(I(be)==="object"||typeof be=="function")?be:z(fe)}function z(fe){if(fe===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return fe}function W(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(fe){return!1}}function U(fe){return U=Object.setPrototypeOf?Object.getPrototypeOf:function(Ce){return Ce.__proto__||Object.getPrototypeOf(Ce)},U(fe)}var V=3,Q="rgb(40, 40, 40)",G=17,te=50,$=19,le=75,re=50,Se=1e3,Re=50,Pe=1,Je=1<<1,Ve=1<<2,ct=1<<3,Ue=1<<4,ue=1<<24,rt=1<<25,ge=1<<26,Z=1<<27,Y=1<<28,ee=function(fe){B(Ce,fe);var be=X(Ce);function Ce(Te,he,ye){var Ie;if(_(this,Ce),!Te)throw new Error("Must specify target");if(!he)throw new Error("Must specify URL");Ie=be.call(this),Ie._target=Te,Ie._url=he,ye=ye||{},Ie._rfbCredentials=ye.credentials||{},Ie._shared="shared"in ye?!!ye.shared:!0,Ie._repeaterID=ye.repeaterID||"",Ie._wsProtocols=ye.wsProtocols||[],Ie._rfbConnectionState="",Ie._rfbInitState="",Ie._rfbAuthScheme=-1,Ie._rfbCleanDisconnect=!0,Ie._rfbVersion=0,Ie._rfbMaxVersion=3.8,Ie._rfbTightVNC=!1,Ie._rfbVeNCryptState=0,Ie._rfbXvpVer=0,Ie._fbWidth=0,Ie._fbHeight=0,Ie._fbName="",Ie._capabilities={power:!1},Ie._supportsFence=!1,Ie._supportsContinuousUpdates=!1,Ie._enabledContinuousUpdates=!1,Ie._supportsSetDesktopSize=!1,Ie._screenID=0,Ie._screenFlags=0,Ie._qemuExtKeyEventSupported=!1,Ie._clipboardText=null,Ie._clipboardServerCapabilitiesActions={},Ie._clipboardServerCapabilitiesFormats={},Ie._sock=null,Ie._display=null,Ie._flushing=!1,Ie._keyboard=null,Ie._gestures=null,Ie._disconnTimer=null,Ie._resizeTimeout=null,Ie._mouseMoveTimer=null,Ie._decoders={},Ie._FBU={rects:0,x:0,y:0,width:0,height:0,encoding:null},Ie._mousePos={},Ie._mouseButtonMask=0,Ie._mouseLastMoveTime=0,Ie._viewportDragging=!1,Ie._viewportDragPos={},Ie._viewportHasMoved=!1,Ie._accumulatedWheelDeltaX=0,Ie._accumulatedWheelDeltaY=0,Ie._gestureLastTapTime=null,Ie._gestureFirstDoubleTapEv=null,Ie._gestureLastMagnitudeX=0,Ie._gestureLastMagnitudeY=0,Ie._eventHandlers={focusCanvas:Ie._focusCanvas.bind(z(Ie)),windowResize:Ie._windowResize.bind(z(Ie)),handleMouse:Ie._handleMouse.bind(z(Ie)),handleWheel:Ie._handleWheel.bind(z(Ie)),handleGesture:Ie._handleGesture.bind(z(Ie))},p.Debug(">> RFB.constructor"),Ie._screen=document.createElement("div"),Ie._screen.style.display="flex",Ie._screen.style.width="100%",Ie._screen.style.height="100%",Ie._screen.style.overflow="auto",Ie._screen.style.background=Q,Ie._canvas=document.createElement("canvas"),Ie._canvas.style.margin="auto",Ie._canvas.style.outline="none",Ie._canvas.style.flexShrink="0",Ie._canvas.width=0,Ie._canvas.height=0,Ie._canvas.tabIndex=-1,Ie._screen.appendChild(Ie._canvas),Ie._cursor=new e.default,Ie._cursorImage=Ce.cursors.none,Ie._decoders[h.encodings.encodingRaw]=new g.default,Ie._decoders[h.encodings.encodingCopyRect]=new v.default,Ie._decoders[h.encodings.encodingRRE]=new b.default,Ie._decoders[h.encodings.encodingHextile]=new w.default,Ie._decoders[h.encodings.encodingTight]=new x.default,Ie._decoders[h.encodings.encodingTightPNG]=new T.default;try{Ie._display=new l.default(Ie._canvas)}catch(tt){throw p.Error("Display exception: "+tt),tt}return Ie._display.onflush=Ie._onFlush.bind(z(Ie)),Ie._keyboard=new t.default(Ie._canvas),Ie._keyboard.onkeyevent=Ie._handleKeyEvent.bind(z(Ie)),Ie._gestures=new a.default,Ie._sock=new u.default,Ie._sock.on("message",function(){Ie._handleMessage()}),Ie._sock.on("open",function(){Ie._rfbConnectionState==="connecting"&&Ie._rfbInitState===""?(Ie._rfbInitState="ProtocolVersion",p.Debug("Starting VNC handshake")):Ie._fail("Unexpected server connection while "+Ie._rfbConnectionState)}),Ie._sock.on("close",function(tt){p.Debug("WebSocket on-close event");var pt="";tt.code&&(pt="(code: "+tt.code,tt.reason&&(pt+=", reason: "+tt.reason),pt+=")");switch(Ie._rfbConnectionState){case"connecting":Ie._fail("Connection closed "+pt);break;case"connected":Ie._updateConnectionState("disconnecting"),Ie._updateConnectionState("disconnected");break;case"disconnecting":Ie._updateConnectionState("disconnected");break;case"disconnected":Ie._fail("Unexpected server disconnect when already disconnected "+pt);break;default:Ie._fail("Unexpected server disconnect before connecting "+pt);break}Ie._sock.off("close")}),Ie._sock.on("error",function(tt){return p.Warn("WebSocket on-error event")}),setTimeout(Ie._updateConnectionState.bind(z(Ie),"connecting")),p.Debug("<< RFB.constructor"),Ie.dragViewport=!1,Ie.focusOnClick=!0,Ie._viewOnly=!1,Ie._clipViewport=!1,Ie._scaleViewport=!1,Ie._resizeSession=!1,Ie._showDotCursor=!1,ye.showDotCursor!==void 0&&(p.Warn("Specifying showDotCursor as a RFB constructor argument is deprecated"),Ie._showDotCursor=ye.showDotCursor),Ie._qualityLevel=6,Ie._compressionLevel=2,Ie}return R(Ce,[{key:"disconnect",value:function(){this._updateConnectionState("disconnecting"),this._sock.off("error"),this._sock.off("message"),this._sock.off("open")}},{key:"sendCredentials",value:function(he){this._rfbCredentials=he,setTimeout(this._initMsg.bind(this),0)}},{key:"sendCtrlAltDel",value:function(){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;p.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(he,ye,Ie){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(Ie===void 0){this.sendKey(he,ye,!0),this.sendKey(he,ye,!1);return}var tt=c.default[ye];if(this._qemuExtKeyEventSupported&&tt)he=he||0,p.Info("Sending key ("+(Ie?"down":"up")+"): keysym "+he+", scancode "+tt),Ce.messages.QEMUExtendedKeyEvent(this._sock,he,Ie,tt);else{if(!he)return;p.Info("Sending keysym ("+(Ie?"down":"up")+"): "+he),Ce.messages.keyEvent(this._sock,he,Ie?1:0)}}},{key:"focus",value:function(){this._canvas.focus()}},{key:"blur",value:function(){this._canvas.blur()}},{key:"clipboardPasteFrom",value:function(he){if(this._rfbConnectionState!=="connected"||this._viewOnly)return;if(this._clipboardServerCapabilitiesFormats[Pe]&&this._clipboardServerCapabilitiesActions[Z])this._clipboardText=he,Ce.messages.extendedClipboardNotify(this._sock,[Pe]);else{for(var ye=new Uint8Array(he.length),Ie=0;Ie<he.length;Ie++)ye[Ie]=he.charCodeAt(Ie);Ce.messages.clientCutText(this._sock,ye)}}},{key:"_connect",value:function(){p.Debug(">> RFB.connect"),p.Info("connecting to "+this._url);try{this._sock.open(this._url,this._wsProtocols)}catch(he){he.name==="SyntaxError"?this._fail("Invalid host or port ("+he+")"):this._fail("Error when opening socket ("+he+")")}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),p.Debug("<< RFB.connect")}},{key:"_disconnect",value:function(){p.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(he){if(!(he.name==="NotFoundError"))throw he}clearTimeout(this._resizeTimeout),clearTimeout(this._mouseMoveTimer),p.Debug("<< RFB.disconnect")}},{key:"_focusCanvas",value:function(he){if(!this.focusOnClick)return;this.focus()}},{key:"_setDesktopName",value:function(he){this._fbName=he,this.dispatchEvent(new CustomEvent("desktopname",{detail:{name:this._fbName}}))}},{key:"_windowResize",value:function(he){var ye=this;window.requestAnimationFrame(function(){ye._updateClip(),ye._updateScale()}),this._resizeSession&&(clearTimeout(this._resizeTimeout),this._resizeTimeout=setTimeout(this._requestRemoteResize.bind(this),500))}},{key:"_updateClip",value:function(){var he=this._display.clipViewport,ye=this._clipViewport;if(this._scaleViewport&&(ye=!1),he!==ye&&(this._display.clipViewport=ye),ye){var Ie=this._screenSize();this._display.viewportChangeSize(Ie.w,Ie.h),this._fixScrollbars()}}},{key:"_updateScale",value:function(){if(!this._scaleViewport)this._display.scale=1;else{var he=this._screenSize();this._display.autoscale(he.w,he.h)}this._fixScrollbars()}},{key:"_requestRemoteResize",value:function(){if(clearTimeout(this._resizeTimeout),this._resizeTimeout=null,!this._resizeSession||this._viewOnly||!this._supportsSetDesktopSize)return;var he=this._screenSize();Ce.messages.setDesktopSize(this._sock,Math.floor(he.w),Math.floor(he.h),this._screenID,this._screenFlags),p.Debug("Requested new desktop size: "+he.w+"x"+he.h)}},{key:"_screenSize",value:function(){var he=this._screen.getBoundingClientRect();return{w:he.width,h:he.height}}},{key:"_fixScrollbars",value:function(){var he=this._screen.style.overflow;this._screen.style.overflow="hidden",this._screen.getBoundingClientRect(),this._screen.style.overflow=he}},{key:"_updateConnectionState",value:function(he){var ye=this,Ie=this._rfbConnectionState;if(he===Ie){p.Debug("Already in state '"+he+"', ignoring");return}if(Ie==="disconnected"){p.Error("Tried changing state of a disconnected RFB object");return}switch(he){case"connected":if(Ie!=="connecting"){p.Error("Bad transition to connected state, previous connection state: "+Ie);return}break;case"disconnected":if(Ie!=="disconnecting"){p.Error("Bad transition to disconnected state, previous connection state: "+Ie);return}break;case"connecting":if(Ie!==""){p.Error("Bad transition to connecting state, previous connection state: "+Ie);return}break;case"disconnecting":if(Ie!=="connected"&&Ie!=="connecting"){p.Error("Bad transition to disconnecting state, previous connection state: "+Ie);return}break;default:p.Error("Unknown connection state: "+he);return}this._rfbConnectionState=he,p.Debug("New state '"+he+"', was '"+Ie+"'."),this._disconnTimer&&he!=="disconnecting"&&(p.Debug("Clearing disconnect timer"),clearTimeout(this._disconnTimer),this._disconnTimer=null,this._sock.off("close"));switch(he){case"connecting":this._connect();break;case"connected":this.dispatchEvent(new CustomEvent("connect",{detail:{}}));break;case"disconnecting":this._disconnect(),this._disconnTimer=setTimeout(function(){p.Error("Disconnection timed out."),ye._updateConnectionState("disconnected")},V*1e3);break;case"disconnected":this.dispatchEvent(new CustomEvent("disconnect",{detail:{clean:this._rfbCleanDisconnect}}));break}}},{key:"_fail",value:function(he){switch(this._rfbConnectionState){case"disconnecting":p.Error("Failed when disconnecting: "+he);break;case"connected":p.Error("Failed while connected: "+he);break;case"connecting":p.Error("Failed when connecting: "+he);break;default:p.Error("RFB failure: "+he);break}return this._rfbCleanDisconnect=!1,this._updateConnectionState("disconnecting"),this._updateConnectionState("disconnected"),!1}},{key:"_setCapability",value:function(he,ye){this._capabilities[he]=ye,this.dispatchEvent(new CustomEvent("capabilities",{detail:{capabilities:this._capabilities}}))}},{key:"_handleMessage",value:function(){if(this._sock.rQlen===0){p.Warn("handleMessage called on an empty receive queue");return}switch(this._rfbConnectionState){case"disconnected":p.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(he,ye,Ie){this.sendKey(he,ye,Ie)}},{key:"_handleMouse",value:function(he){if(he.type==="click"&&he.target!==this._canvas)return;if(he.stopPropagation(),he.preventDefault(),he.type==="click"||he.type==="contextmenu")return;var ye=(0,m.clientToElement)(he.clientX,he.clientY,this._canvas);switch(he.type){case"mousedown":(0,f.setCapture)(this._canvas),this._handleMouseButton(ye.x,ye.y,!0,1<<he.button);break;case"mouseup":this._handleMouseButton(ye.x,ye.y,!1,1<<he.button);break;case"mousemove":this._handleMouseMove(ye.x,ye.y);break}}},{key:"_handleMouseButton",value:function(he,ye,Ie,tt){if(this.dragViewport)if(Ie&&!this._viewportDragging){this._viewportDragging=!0,this._viewportDragPos={x:he,y:ye},this._viewportHasMoved=!1;return}else{if(this._viewportDragging=!1,this._viewportHasMoved)return;this._sendMouse(he,ye,tt)}this._mouseMoveTimer!==null&&(clearTimeout(this._mouseMoveTimer),this._mouseMoveTimer=null,this._sendMouse(he,ye,this._mouseButtonMask)),Ie?this._mouseButtonMask|=tt:this._mouseButtonMask&=~tt,this._sendMouse(he,ye,this._mouseButtonMask)}},{key:"_handleMouseMove",value:function(he,ye){var Ie=this;if(this._viewportDragging){var tt=this._viewportDragPos.x-he,pt=this._viewportDragPos.y-ye;(this._viewportHasMoved||Math.abs(tt)>A.dragThreshold||Math.abs(pt)>A.dragThreshold)&&(this._viewportHasMoved=!0,this._viewportDragPos={x:he,y:ye},this._display.viewportChangePos(tt,pt));return}if(this._mousePos={x:he,y:ye},this._mouseMoveTimer==null){var st=Date.now()-this._mouseLastMoveTime;st>G?(this._sendMouse(he,ye,this._mouseButtonMask),this._mouseLastMoveTime=Date.now()):this._mouseMoveTimer=setTimeout(function(){Ie._handleDelayedMouseMove()},G-st)}}},{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(he,ye,Ie){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;Ce.messages.pointerEvent(this._sock,this._display.absX(he),this._display.absY(ye),Ie)}},{key:"_handleWheel",value:function(he){if(this._rfbConnectionState!=="connected")return;if(this._viewOnly)return;he.stopPropagation(),he.preventDefault();var ye=(0,m.clientToElement)(he.clientX,he.clientY,this._canvas),Ie=he.deltaX,tt=he.deltaY;he.deltaMode!==0&&(Ie*=$,tt*=$),this._accumulatedWheelDeltaX+=Ie,this._accumulatedWheelDeltaY+=tt,Math.abs(this._accumulatedWheelDeltaX)>=te&&(this._accumulatedWheelDeltaX<0?(this._handleMouseButton(ye.x,ye.y,!0,1<<5),this._handleMouseButton(ye.x,ye.y,!1,1<<5)):this._accumulatedWheelDeltaX>0&&(this._handleMouseButton(ye.x,ye.y,!0,1<<6),this._handleMouseButton(ye.x,ye.y,!1,1<<6)),this._accumulatedWheelDeltaX=0),Math.abs(this._accumulatedWheelDeltaY)>=te&&(this._accumulatedWheelDeltaY<0?(this._handleMouseButton(ye.x,ye.y,!0,1<<3),this._handleMouseButton(ye.x,ye.y,!1,1<<3)):this._accumulatedWheelDeltaY>0&&(this._handleMouseButton(ye.x,ye.y,!0,1<<4),this._handleMouseButton(ye.x,ye.y,!1,1<<4)),this._accumulatedWheelDeltaY=0)}},{key:"_fakeMouseMove",value:function(he,ye,Ie){this._handleMouseMove(ye,Ie),this._cursor.move(he.detail.clientX,he.detail.clientY)}},{key:"_handleTapEvent",value:function(he,ye){var Ie=(0,m.clientToElement)(he.detail.clientX,he.detail.clientY,this._canvas);if(this._gestureLastTapTime!==null&&Date.now()-this._gestureLastTapTime<Se&&this._gestureFirstDoubleTapEv.detail.type===he.detail.type){var tt=this._gestureFirstDoubleTapEv.detail.clientX-he.detail.clientX,pt=this._gestureFirstDoubleTapEv.detail.clientY-he.detail.clientY,st=Math.hypot(tt,pt);st<Re?Ie=(0,m.clientToElement)(this._gestureFirstDoubleTapEv.detail.clientX,this._gestureFirstDoubleTapEv.detail.clientY,this._canvas):this._gestureFirstDoubleTapEv=he}else this._gestureFirstDoubleTapEv=he;this._gestureLastTapTime=Date.now(),this._fakeMouseMove(this._gestureFirstDoubleTapEv,Ie.x,Ie.y),this._handleMouseButton(Ie.x,Ie.y,!0,ye),this._handleMouseButton(Ie.x,Ie.y,!1,ye)}},{key:"_handleGesture",value:function(he){var ye,Ie=(0,m.clientToElement)(he.detail.clientX,he.detail.clientY,this._canvas);switch(he.type){case"gesturestart":switch(he.detail.type){case"onetap":this._handleTapEvent(he,1);break;case"twotap":this._handleTapEvent(he,4);break;case"threetap":this._handleTapEvent(he,2);break;case"drag":this._fakeMouseMove(he,Ie.x,Ie.y),this._handleMouseButton(Ie.x,Ie.y,!0,1);break;case"longpress":this._fakeMouseMove(he,Ie.x,Ie.y),this._handleMouseButton(Ie.x,Ie.y,!0,4);break;case"twodrag":this._gestureLastMagnitudeX=he.detail.magnitudeX,this._gestureLastMagnitudeY=he.detail.magnitudeY,this._fakeMouseMove(he,Ie.x,Ie.y);break;case"pinch":this._gestureLastMagnitudeX=Math.hypot(he.detail.magnitudeX,he.detail.magnitudeY),this._fakeMouseMove(he,Ie.x,Ie.y);break}break;case"gesturemove":switch(he.detail.type){case"onetap":case"twotap":case"threetap":break;case"drag":case"longpress":this._fakeMouseMove(he,Ie.x,Ie.y);break;case"twodrag":for(this._fakeMouseMove(he,Ie.x,Ie.y);he.detail.magnitudeY-this._gestureLastMagnitudeY>re;)this._handleMouseButton(Ie.x,Ie.y,!0,8),this._handleMouseButton(Ie.x,Ie.y,!1,8),this._gestureLastMagnitudeY+=re;for(;he.detail.magnitudeY-this._gestureLastMagnitudeY<-re;)this._handleMouseButton(Ie.x,Ie.y,!0,16),this._handleMouseButton(Ie.x,Ie.y,!1,16),this._gestureLastMagnitudeY-=re;for(;he.detail.magnitudeX-this._gestureLastMagnitudeX>re;)this._handleMouseButton(Ie.x,Ie.y,!0,32),this._handleMouseButton(Ie.x,Ie.y,!1,32),this._gestureLastMagnitudeX+=re;for(;he.detail.magnitudeX-this._gestureLastMagnitudeX<-re;)this._handleMouseButton(Ie.x,Ie.y,!0,64),this._handleMouseButton(Ie.x,Ie.y,!1,64),this._gestureLastMagnitudeX-=re;break;case"pinch":if(this._fakeMouseMove(he,Ie.x,Ie.y),ye=Math.hypot(he.detail.magnitudeX,he.detail.magnitudeY),Math.abs(ye-this._gestureLastMagnitudeX)>le){for(this._handleKeyEvent(s.default.XK_Control_L,"ControlLeft",!0);ye-this._gestureLastMagnitudeX>le;)this._handleMouseButton(Ie.x,Ie.y,!0,8),this._handleMouseButton(Ie.x,Ie.y,!1,8),this._gestureLastMagnitudeX+=le;for(;ye-this._gestureLastMagnitudeX<-le;)this._handleMouseButton(Ie.x,Ie.y,!0,16),this._handleMouseButton(Ie.x,Ie.y,!1,16),this._gestureLastMagnitudeX-=le}this._handleKeyEvent(s.default.XK_Control_L,"ControlLeft",!1);break}break;case"gestureend":switch(he.detail.type){case"onetap":case"twotap":case"threetap":case"pinch":case"twodrag":break;case"drag":this._fakeMouseMove(he,Ie.x,Ie.y),this._handleMouseButton(Ie.x,Ie.y,!1,1);break;case"longpress":this._fakeMouseMove(he,Ie.x,Ie.y),this._handleMouseButton(Ie.x,Ie.y,!1,4);break}break}}},{key:"_negotiateProtocolVersion",value:function(){if(this._sock.rQwait("version",12))return!1;var he=this._sock.rQshiftStr(12).substr(4,7);p.Info("Server ProtocolVersion: "+he);var ye=0;switch(he){case"000.000":ye=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 "+he)}if(ye){for(var Ie="ID:"+this._repeaterID;Ie.length<250;)Ie+="\0";return this._sock.sendString(Ie),!0}this._rfbVersion>this._rfbMaxVersion&&(this._rfbVersion=this._rfbMaxVersion);var tt="00"+parseInt(this._rfbVersion,10)+".00"+this._rfbVersion*10%10;this._sock.sendString("RFB "+tt+`
`),p.Debug("Sent ProtocolVersion: "+tt),this._rfbInitState="Security"}},{key:"_negotiateSecurity",value:function(){function he(tt,pt){for(var st=0;st<pt.length;st++)if(pt[st]===tt)return!0;return!1}if(this._rfbVersion>=3.7){var ye=this._sock.rQshift8();if(this._sock.rQwait("security type",ye,1))return!1;if(ye===0)return this._rfbInitState="SecurityReason",this._securityContext="no security types",this._securityStatus=1,this._initMsg();var Ie=this._sock.rQshiftBytes(ye);if(p.Debug("Server security types: "+Ie),he(1,Ie))this._rfbAuthScheme=1;else if(he(22,Ie))this._rfbAuthScheme=22;else if(he(16,Ie))this._rfbAuthScheme=16;else if(he(2,Ie))this._rfbAuthScheme=2;else if(he(19,Ie))this._rfbAuthScheme=19;else return this._fail("Unsupported security types (types: "+Ie+")");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",p.Debug("Authenticating using scheme: "+this._rfbAuthScheme),this._initMsg()}},{key:"_handleSecurityReason",value:function(){if(this._sock.rQwait("reason length",4))return!1;var he=this._sock.rQshift32(),ye="";if(he>0){if(this._sock.rQwait("reason",he,4))return!1;ye=this._sock.rQshiftStr(he)}return ye!==""?(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:this._securityStatus,reason:ye}})),this._fail("Security negotiation failed on "+this._securityContext+" (reason: "+ye+")")):(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 he=String.fromCharCode(this._rfbCredentials.username.length)+String.fromCharCode(this._rfbCredentials.target.length)+this._rfbCredentials.username+this._rfbCredentials.target;return this._sock.sendString(he),this._rfbAuthScheme=2,this._negotiateAuthentication()}},{key:"_negotiateVeNCryptAuth",value:function(){if(this._rfbVeNCryptState==0){if(this._sock.rQwait("vencrypt version",2))return!1;var he=this._sock.rQshift8(),ye=this._sock.rQshift8();if(!(he==0&&ye==2))return this._fail("Unsupported VeNCrypt version "+he+"."+ye);this._sock.send([0,2]),this._rfbVeNCryptState=1}if(this._rfbVeNCryptState==1){if(this._sock.rQwait("vencrypt ack",1))return!1;var Ie=this._sock.rQshift8();if(Ie!=0)return this._fail("VeNCrypt failure "+Ie);this._rfbVeNCryptState=2}if(this._rfbVeNCryptState==2){if(this._sock.rQwait("vencrypt subtypes length",1))return!1;var tt=this._sock.rQshift8();if(tt<1)return this._fail("VeNCrypt subtypes empty");this._rfbVeNCryptSubtypesLength=tt,this._rfbVeNCryptState=3}if(this._rfbVeNCryptState==3){if(this._sock.rQwait("vencrypt subtypes",4*this._rfbVeNCryptSubtypesLength))return!1;for(var pt=[],st=0;st<this._rfbVeNCryptSubtypesLength;st++)pt.push(this._sock.rQshift32());if(pt.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 Fe=(0,S.encodeUTF8)(this._rfbCredentials.username),ft=(0,S.encodeUTF8)(this._rfbCredentials.password);return this._sock.send([0,0,0,Fe.length]),this._sock.send([0,0,0,ft.length]),this._sock.sendString(Fe),this._sock.sendString(ft),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 he=Array.prototype.slice.call(this._sock.rQshiftBytes(16)),ye=Ce.genDES(this._rfbCredentials.password,he);return this._sock.send(ye),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(he){for(var ye={0:{vendor:"TGHT",signature:"NOTUNNEL"}},Ie={},tt=0;tt<he;tt++){var pt=this._sock.rQshift32(),st=this._sock.rQshiftStr(4),Fe=this._sock.rQshiftStr(8);Ie[pt]={vendor:st,signature:Fe}}return p.Debug("Server Tight tunnel types: "+Ie),Ie[1]&&Ie[1].vendor==="SICR"&&Ie[1].signature==="SCHANNEL"&&(p.Debug("Detected Siemens server. Assuming NOTUNNEL support."),Ie[0]={vendor:"TGHT",signature:"NOTUNNEL"}),Ie[0]?Ie[0].vendor!=ye[0].vendor||Ie[0].signature!=ye[0].signature?this._fail("Client's tunnel type had the incorrect vendor or signature"):(p.Debug("Selected tunnel type: "+ye[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 he=this._sock.rQshift32();if(he>0&&this._sock.rQwait("tunnel capabilities",16*he,4))return!1;if(this._rfbTightVNC=!0,he>0)return this._negotiateTightTunnels(he),!1}if(this._sock.rQwait("sub auth count",4))return!1;var ye=this._sock.rQshift32();if(ye===0)return this._rfbInitState="SecurityResult",!0;if(this._sock.rQwait("sub auth capabilities",16*ye,4))return!1;for(var Ie={STDVNOAUTH__:1,STDVVNCAUTH_:2,TGHTULGNAUTH:129},tt=[],pt=0;pt<ye;pt++){this._sock.rQshift32();var st=this._sock.rQshiftStr(12);tt.push(st)}p.Debug("Server Tight authentication types: "+tt);for(var Fe in Ie)if(tt.indexOf(Fe)!=-1){this._sock.send([0,0,0,Ie[Fe]]),p.Debug("Selected authentication type: "+Fe);switch(Fe){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: "+Fe+")")}}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 he=this._sock.rQshift32();return he===0?(this._rfbInitState="ClientInitialisation",p.Debug("Authentication OK"),this._initMsg()):this._rfbVersion>=3.8?(this._rfbInitState="SecurityReason",this._securityContext="security result",this._securityStatus=he,this._initMsg()):(this.dispatchEvent(new CustomEvent("securityfailure",{detail:{status:he}})),this._fail("Security handshake failed"))}},{key:"_negotiateServerInit",value:function(){if(this._sock.rQwait("server initialization",24))return!1;var he=this._sock.rQshift16(),ye=this._sock.rQshift16(),Ie=this._sock.rQshift8(),tt=this._sock.rQshift8(),pt=this._sock.rQshift8(),st=this._sock.rQshift8(),Fe=this._sock.rQshift16(),ft=this._sock.rQshift16(),et=this._sock.rQshift16(),wt=this._sock.rQshift8(),Ht=this._sock.rQshift8(),Dt=this._sock.rQshift8();this._sock.rQskipBytes(3);var Tt=this._sock.rQshift32();if(this._sock.rQwait("server init name",Tt,24))return!1;var Bt=this._sock.rQshiftStr(Tt);if(Bt=(0,S.decodeUTF8)(Bt,!0),this._rfbTightVNC){if(this._sock.rQwait("TightVNC extended server init header",8,24+Tt))return!1;var Ke=this._sock.rQshift16(),de=this._sock.rQshift16(),oe=this._sock.rQshift16();this._sock.rQskipBytes(2);var lt=(Ke+de+oe)*16;if(this._sock.rQwait("TightVNC extended server init header",lt,32+Tt))return!1;this._sock.rQskipBytes(16*Ke),this._sock.rQskipBytes(16*de),this._sock.rQskipBytes(16*oe)}return p.Info("Screen: "+he+"x"+ye+", bpp: "+Ie+", depth: "+tt+", bigEndian: "+pt+", trueColor: "+st+", redMax: "+Fe+", greenMax: "+ft+", blueMax: "+et+", redShift: "+wt+", greenShift: "+Ht+", blueShift: "+Dt),this._setDesktopName(Bt),this._resize(he,ye),this._viewOnly||this._keyboard.grab(),this._fbDepth=24,this._fbName==="Intel(r) AMT KVM"&&(p.Warn("Intel AMT KVM only supports 8/16 bit depths. Using low color mode."),this._fbDepth=8),Ce.messages.pixelFormat(this._sock,this._fbDepth,!0),this._sendEncodings(),Ce.messages.fbUpdateRequest(this._sock,!1,0,0,this._fbWidth,this._fbHeight),this._updateConnectionState("connected"),!0}},{key:"_sendEncodings",value:function(){var he=[];he.push(h.encodings.encodingCopyRect),this._fbDepth==24&&(he.push(h.encodings.encodingTight),he.push(h.encodings.encodingTightPNG),he.push(h.encodings.encodingHextile),he.push(h.encodings.encodingRRE)),he.push(h.encodings.encodingRaw),he.push(h.encodings.pseudoEncodingQualityLevel0+this._qualityLevel),he.push(h.encodings.pseudoEncodingCompressLevel0+this._compressionLevel),he.push(h.encodings.pseudoEncodingDesktopSize),he.push(h.encodings.pseudoEncodingLastRect),he.push(h.encodings.pseudoEncodingQEMUExtendedKeyEvent),he.push(h.encodings.pseudoEncodingExtendedDesktopSize),he.push(h.encodings.pseudoEncodingXvp),he.push(h.encodings.pseudoEncodingFence),he.push(h.encodings.pseudoEncodingContinuousUpdates),he.push(h.encodings.pseudoEncodingDesktopName),he.push(h.encodings.pseudoEncodingExtendedClipboard),this._fbDepth==24&&(he.push(h.encodings.pseudoEncodingVMwareCursor),he.push(h.encodings.pseudoEncodingCursor)),Ce.messages.clientEncodings(this._sock,he)}},{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 p.Debug("SetColorMapEntries"),this._fail("Unexpected SetColorMapEntries message")}},{key:"_handleServerCutText",value:function(){if(p.Debug("ServerCutText"),this._sock.rQwait("ServerCutText header",7,1))return!1;this._sock.rQskipBytes(3);var he=this._sock.rQshift32();if(he=(0,y.toSigned32bit)(he),this._sock.rQwait("ServerCutText content",Math.abs(he),8))return!1;if(he>=0){var ye=this._sock.rQshiftStr(he);if(this._viewOnly)return!0;this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:ye}}))}else{he=Math.abs(he);var Ie=this._sock.rQshift32(),tt=Ie&65535,pt=Ie&4278190080,st=!!(pt&ue);if(st){this._clipboardServerCapabilitiesFormats={},this._clipboardServerCapabilitiesActions={};for(var Fe=0;Fe<=15;Fe++){var ft=1<<Fe;tt&ft&&(this._clipboardServerCapabilitiesFormats[ft]=!0,this._sock.rQshift32())}for(var et=24;et<=31;et++){var wt=1<<et;this._clipboardServerCapabilitiesActions[wt]=!!(pt&wt)}var Ht=[ue,rt,ge,Z,Y];Ce.messages.extendedClipboardCaps(this._sock,Ht,{extendedClipboardFormatText:0})}else if(pt===rt){if(this._viewOnly)return!0;this._clipboardText!=null&&this._clipboardServerCapabilitiesActions[Y]&&(tt&Pe&&Ce.messages.extendedClipboardProvide(this._sock,[Pe],[this._clipboardText]))}else if(pt===ge){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[Z]&&(this._clipboardText!=null?Ce.messages.extendedClipboardNotify(this._sock,[Pe]):Ce.messages.extendedClipboardNotify(this._sock,[]))}else if(pt===Z){if(this._viewOnly)return!0;this._clipboardServerCapabilitiesActions[rt]&&(tt&Pe&&Ce.messages.extendedClipboardRequest(this._sock,[Pe]))}else if(pt===Y){if(this._viewOnly)return!0;if(!(tt&Pe))return!0;this._clipboardText=null;var Dt=this._sock.rQshiftBytes(he-4),Tt=new o.default,Bt=null;Tt.setInput(Dt);for(var Ke=0;Ke<=15;Ke++){var de=1<<Ke;if(tt&de){var oe=0,lt=Tt.inflate(4);oe|=lt[0]<<24,oe|=lt[1]<<16,oe|=lt[2]<<8,oe|=lt[3];var qe=Tt.inflate(oe);de===Pe&&(Bt=qe)}}if(Tt.setInput(null),Bt!==null){for(var pe="",Kt=0;Kt<Bt.length;Kt++)pe+=String.fromCharCode(Bt[Kt]);Bt=pe,Bt=(0,S.decodeUTF8)(Bt),Bt.length>0&&Bt.charAt(Bt.length-1)==="\0"&&(Bt=Bt.slice(0,-1)),Bt=Bt.replace(`\r
`,`
`),this.dispatchEvent(new CustomEvent("clipboard",{detail:{text:Bt}}))}}else return this._fail("Unexpected action in extended clipboard message: "+pt)}return!0}},{key:"_handleServerFenceMsg",value:function(){if(this._sock.rQwait("ServerFence header",8,1))return!1;this._sock.rQskipBytes(3);var he=this._sock.rQshift32(),ye=this._sock.rQshift8();if(this._sock.rQwait("ServerFence payload",ye,9))return!1;ye>64&&(p.Warn("Bad payload length ("+ye+") in fence response"),ye=64);var Ie=this._sock.rQshiftStr(ye);return this._supportsFence=!0,he&1<<31?(he&=1<<0|1<<1,Ce.messages.clientFence(this._sock,he,Ie),!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 he=this._sock.rQshift8(),ye=this._sock.rQshift8();switch(ye){case 0:p.Error("XVP Operation Failed");break;case 1:this._rfbXvpVer=he,p.Info("XVP extensions enabled (version "+this._rfbXvpVer+")"),this._setCapability("power",!0);break;default:this._fail("Illegal server XVP message (msg: "+ye+")");break}return!0}},{key:"_normalMsg",value:function(){var he;this._FBU.rects>0?he=0:he=this._sock.rQshift8();var ye,Ie;switch(he){case 0:return Ie=this._framebufferUpdate(),Ie&&!this._enabledContinuousUpdates&&Ce.messages.fbUpdateRequest(this._sock,!0,0,0,this._fbWidth,this._fbHeight),Ie;case 1:return this._handleSetColourMapMsg();case 2:return p.Debug("Bell"),this.dispatchEvent(new CustomEvent("bell",{detail:{}})),!0;case 3:return this._handleServerCutText();case 150:return ye=!this._supportsContinuousUpdates,this._supportsContinuousUpdates=!0,this._enabledContinuousUpdates=!1,ye&&(this._enabledContinuousUpdates=!0,this._updateContinuousUpdates(),p.Info("Enabling continuous updates.")),!0;case 248:return this._handleServerFenceMsg();case 250:return this._handleXvpMsg();default:return this._fail("Unexpected server message (type "+he+")"),p.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 he=this._sock.rQshiftBytes(12);this._FBU.x=(he[0]<<8)+he[1],this._FBU.y=(he[2]<<8)+he[3],this._FBU.width=(he[4]<<8)+he[5],this._FBU.height=(he[6]<<8)+he[7],this._FBU.encoding=parseInt((he[8]<<24)+(he[9]<<16)+(he[10]<<8)+he[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 he=document.createEvent("keyboardEvent");he.code!==void 0&&(this._qemuExtKeyEventSupported=!0)}catch(ye){}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 he=this._FBU.x,ye=this._FBU.y,Ie=this._FBU.width,tt=this._FBU.height;if(this._sock.rQwait("VMware cursor encoding",1))return!1;var pt=this._sock.rQshift8();this._sock.rQshift8();var st,Fe=4;if(pt==0){var ft=4294967040|0;if(st=new Array(Ie*tt*Fe),this._sock.rQwait("VMware cursor classic encoding",Ie*tt*Fe*2,2))return!1;for(var et=new Array(Ie*tt),wt=0;wt<Ie*tt;wt++)et[wt]=this._sock.rQshift32();for(var Ht=new Array(Ie*tt),Dt=0;Dt<Ie*tt;Dt++)Ht[Dt]=this._sock.rQshift32();for(var Tt=0;Tt<Ie*tt;Tt++)if(et[Tt]==0){var Bt=Ht[Tt],Ke=Bt>>8&255,de=Bt>>16&255,oe=Bt>>24&255;st[Tt*Fe]=Ke,st[Tt*Fe+1]=de,st[Tt*Fe+2]=oe,st[Tt*Fe+3]=255}else(et[Tt]&ft)==ft?Ht[Tt]==0?(st[Tt*Fe]=0,st[Tt*Fe+1]=0,st[Tt*Fe+2]=0,st[Tt*Fe+3]=0):((Ht[Tt]&ft)==ft,st[Tt*Fe]=0,st[Tt*Fe+1]=0,st[Tt*Fe+2]=0,st[Tt*Fe+3]=255):(st[Tt*Fe]=0,st[Tt*Fe+1]=0,st[Tt*Fe+2]=0,st[Tt*Fe+3]=255)}else if(pt==1){if(this._sock.rQwait("VMware cursor alpha encoding",Ie*tt*4,2))return!1;st=new Array(Ie*tt*Fe);for(var lt=0;lt<Ie*tt;lt++){var qe=this._sock.rQshift32();st[lt*4]=qe>>24&255,st[lt*4+1]=qe>>16&255,st[lt*4+2]=qe>>8&255,st[lt*4+3]=qe&255}}else return p.Warn("The given cursor type is not supported: "+pt+" given."),!1;return this._updateCursor(st,he,ye,Ie,tt),!0}},{key:"_handleCursor",value:function(){var he=this._FBU.x,ye=this._FBU.y,Ie=this._FBU.width,tt=this._FBU.height,pt=Ie*tt*4,st=Math.ceil(Ie/8)*tt,Fe=pt+st;if(this._sock.rQwait("cursor encoding",Fe))return!1;for(var ft=this._sock.rQshiftBytes(pt),et=this._sock.rQshiftBytes(st),wt=new Uint8Array(Ie*tt*4),Ht=0,Dt=0;Dt<tt;Dt++)for(var Tt=0;Tt<Ie;Tt++){var Bt=Dt*Math.ceil(Ie/8)+Math.floor(Tt/8),Ke=et[Bt]<<Tt%8&128?255:0;wt[Ht]=ft[Ht+2],wt[Ht+1]=ft[Ht+1],wt[Ht+2]=ft[Ht],wt[Ht+3]=Ke,Ht+=4}return this._updateCursor(wt,he,ye,Ie,tt),!0}},{key:"_handleDesktopName",value:function(){if(this._sock.rQwait("DesktopName",4))return!1;var he=this._sock.rQshift32();if(this._sock.rQwait("DesktopName",he,4))return!1;var ye=this._sock.rQshiftStr(he);return ye=(0,S.decodeUTF8)(ye,!0),this._setDesktopName(ye),!0}},{key:"_handleExtendedDesktopSize",value:function(){if(this._sock.rQwait("ExtendedDesktopSize",4))return!1;var he=this._sock.rQpeek8(),ye=4+he*16;if(this._sock.rQwait("ExtendedDesktopSize",ye))return!1;var Ie=!this._supportsSetDesktopSize;this._supportsSetDesktopSize=!0,Ie&&this._requestRemoteResize(),this._sock.rQskipBytes(1),this._sock.rQskipBytes(3);for(var tt=0;tt<he;tt+=1)tt===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 pt="";switch(this._FBU.y){case 1:pt="Resize is administratively prohibited";break;case 2:pt="Out of resources";break;case 3:pt="Invalid screen layout";break;default:pt="Unknown reason";break}p.Warn("Server did not accept the resize request: "+pt)}else this._resize(this._FBU.width,this._FBU.height);return!0}},{key:"_handleDataRect",value:function(){var he=this._decoders[this._FBU.encoding];if(!he)return this._fail("Unsupported encoding (encoding: "+this._FBU.encoding+")"),!1;try{return he.decodeRect(this._FBU.x,this._FBU.y,this._FBU.width,this._FBU.height,this._sock,this._display,this._fbDepth)}catch(ye){return this._fail("Error decoding rect: "+ye),!1}}},{key:"_updateContinuousUpdates",value:function(){if(!this._enabledContinuousUpdates)return;Ce.messages.enableContinuousUpdates(this._sock,!0,0,0,this._fbWidth,this._fbHeight)}},{key:"_resize",value:function(he,ye){this._fbWidth=he,this._fbHeight=ye,this._display.resize(this._fbWidth,this._fbHeight),this._updateClip(),this._updateScale(),this._updateContinuousUpdates()}},{key:"_xvpOp",value:function(he,ye){if(this._rfbXvpVer<he)return;p.Info("Sending XVP operation "+ye+" (version "+he+")"),Ce.messages.xvpOp(this._sock,he,ye)}},{key:"_updateCursor",value:function(he,ye,Ie,tt,pt){this._cursorImage={rgbaPixels:he,hotx:ye,hoty:Ie,w:tt,h:pt},this._refreshCursor()}},{key:"_shouldShowDotCursor",value:function(){if(!this._showDotCursor)return!1;for(var he=3;he<this._cursorImage.rgbaPixels.length;he+=4)if(this._cursorImage.rgbaPixels[he])return!1;return!0}},{key:"_refreshCursor",value:function(){if(this._rfbConnectionState!=="connecting"&&this._rfbConnectionState!=="connected")return;var he=this._shouldShowDotCursor()?Ce.cursors.dot:this._cursorImage;this._cursor.change(he.rgbaPixels,he.hotx,he.hoty,he.w,he.h)}},{key:"viewOnly",get:function(){return this._viewOnly},set:function(he){this._viewOnly=he,(this._rfbConnectionState==="connecting"||this._rfbConnectionState==="connected")&&(he?this._keyboard.ungrab():this._keyboard.grab())}},{key:"capabilities",get:function(){return this._capabilities}},{key:"touchButton",get:function(){return 0},set:function(he){p.Warn("Using old API!")}},{key:"clipViewport",get:function(){return this._clipViewport},set:function(he){this._clipViewport=he,this._updateClip()}},{key:"scaleViewport",get:function(){return this._scaleViewport},set:function(he){this._scaleViewport=he,he&&this._clipViewport&&this._updateClip(),this._updateScale(),!he&&this._clipViewport&&this._updateClip()}},{key:"resizeSession",get:function(){return this._resizeSession},set:function(he){this._resizeSession=he,he&&this._requestRemoteResize()}},{key:"showDotCursor",get:function(){return this._showDotCursor},set:function(he){this._showDotCursor=he,this._refreshCursor()}},{key:"background",get:function(){return this._screen.style.background},set:function(he){this._screen.style.background=he}},{key:"qualityLevel",get:function(){return this._qualityLevel},set:function(he){if(!Number.isInteger(he)||he<0||he>9){p.Error("qualityLevel must be an integer between 0 and 9");return}if(this._qualityLevel===he)return;this._qualityLevel=he,this._rfbConnectionState==="connected"&&this._sendEncodings()}},{key:"compressionLevel",get:function(){return this._compressionLevel},set:function(he){if(!Number.isInteger(he)||he<0||he>9){p.Error("compressionLevel must be an integer between 0 and 9");return}if(this._compressionLevel===he)return;this._compressionLevel=he,this._rfbConnectionState==="connected"&&this._sendEncodings()}}],[{key:"genDES",value:function(he,ye){var Ie=he.split("").map(function(tt){return tt.charCodeAt(0)});return new r.default(Ie).encrypt(ye)}}]),Ce}(d.default);D.default=ee,ee.messages={keyEvent:function(be,Ce,Te){var he=be._sQ,ye=be._sQlen;he[ye]=4,he[ye+1]=Te,he[ye+2]=0,he[ye+3]=0,he[ye+4]=Ce>>24,he[ye+5]=Ce>>16,he[ye+6]=Ce>>8,he[ye+7]=Ce,be._sQlen+=8,be.flush()},QEMUExtendedKeyEvent:function(be,Ce,Te,he){function ye(st){var Fe=he>>8,ft=he&255;return Fe===224&&ft<127?ft|128:st}var Ie=be._sQ,tt=be._sQlen;Ie[tt]=255,Ie[tt+1]=0,Ie[tt+2]=Te>>8,Ie[tt+3]=Te,Ie[tt+4]=Ce>>24,Ie[tt+5]=Ce>>16,Ie[tt+6]=Ce>>8,Ie[tt+7]=Ce;var pt=ye(he);Ie[tt+8]=pt>>24,Ie[tt+9]=pt>>16,Ie[tt+10]=pt>>8,Ie[tt+11]=pt,be._sQlen+=12,be.flush()},pointerEvent:function(be,Ce,Te,he){var ye=be._sQ,Ie=be._sQlen;ye[Ie]=5,ye[Ie+1]=he,ye[Ie+2]=Ce>>8,ye[Ie+3]=Ce,ye[Ie+4]=Te>>8,ye[Ie+5]=Te,be._sQlen+=6,be.flush()},_buildExtendedClipboardFlags:function(be,Ce){for(var Te=new Uint8Array(4),he=0,ye=0,Ie=0;Ie<be.length;Ie++)ye|=be[Ie];for(var tt=0;tt<Ce.length;tt++)he|=Ce[tt];return Te[0]=ye>>24,Te[1]=0,Te[2]=0,Te[3]=he,Te},extendedClipboardProvide:function(be,Ce,Te){for(var he=new n.default,ye=[],Ie=0;Ie<Ce.length;Ie++){if(Ce[Ie]!=Pe)throw new Error("Unsupported extended clipboard format for Provide message.");Te[Ie]=Te[Ie].replace(/\r\n|\r|\n/gm,`\r
`);var tt=(0,S.encodeUTF8)(Te[Ie]+"\0");ye.push(tt.length>>24&255,tt.length>>16&255,tt.length>>8&255,tt.length&255);for(var pt=0;pt<tt.length;pt++)ye.push(tt.charCodeAt(pt))}var st=he.deflate(new Uint8Array(ye)),Fe=new Uint8Array(4+st.length);Fe.set(ee.messages._buildExtendedClipboardFlags([Y],Ce)),Fe.set(st,4),ee.messages.clientCutText(be,Fe,!0)},extendedClipboardNotify:function(be,Ce){var Te=ee.messages._buildExtendedClipboardFlags([Z],Ce);ee.messages.clientCutText(be,Te,!0)},extendedClipboardRequest:function(be,Ce){var Te=ee.messages._buildExtendedClipboardFlags([rt],Ce);ee.messages.clientCutText(be,Te,!0)},extendedClipboardCaps:function(be,Ce,Te){var he=Object.keys(Te),ye=new Uint8Array(4+4*he.length);he.map(function(pt){return parseInt(pt)}),he.sort(function(pt,st){return pt-st}),ye.set(ee.messages._buildExtendedClipboardFlags(Ce,[]));for(var Ie=4,tt=0;tt<he.length;tt++)ye[Ie]=Te[he[tt]]>>24,ye[Ie+1]=Te[he[tt]]>>16,ye[Ie+2]=Te[he[tt]]>>8,ye[Ie+3]=Te[he[tt]]>>0,Ie+=4,ye[3]|=1<<he[tt];ee.messages.clientCutText(be,ye,!0)},clientCutText:function(be,Ce){var Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,he=be._sQ,ye=be._sQlen;he[ye]=6,he[ye+1]=0,he[ye+2]=0,he[ye+3]=0;var Ie;Te?Ie=(0,y.toUnsigned32bit)(-Ce.length):Ie=Ce.length,he[ye+4]=Ie>>24,he[ye+5]=Ie>>16,he[ye+6]=Ie>>8,he[ye+7]=Ie,be._sQlen+=8;for(var tt=0,pt=Ce.length;pt>0;){for(var st=Math.min(pt,be._sQbufferSize-be._sQlen),Fe=0;Fe<st;Fe++)he[be._sQlen+Fe]=Ce[tt+Fe];be._sQlen+=st,be.flush(),pt-=st,tt+=st}},setDesktopSize:function(be,Ce,Te,he,ye){var Ie=be._sQ,tt=be._sQlen;Ie[tt]=251,Ie[tt+1]=0,Ie[tt+2]=Ce>>8,Ie[tt+3]=Ce,Ie[tt+4]=Te>>8,Ie[tt+5]=Te,Ie[tt+6]=1,Ie[tt+7]=0,Ie[tt+8]=he>>24,Ie[tt+9]=he>>16,Ie[tt+10]=he>>8,Ie[tt+11]=he,Ie[tt+12]=0,Ie[tt+13]=0,Ie[tt+14]=0,Ie[tt+15]=0,Ie[tt+16]=Ce>>8,Ie[tt+17]=Ce,Ie[tt+18]=Te>>8,Ie[tt+19]=Te,Ie[tt+20]=ye>>24,Ie[tt+21]=ye>>16,Ie[tt+22]=ye>>8,Ie[tt+23]=ye,be._sQlen+=24,be.flush()},clientFence:function(be,Ce,Te){var he=be._sQ,ye=be._sQlen;he[ye]=248,he[ye+1]=0,he[ye+2]=0,he[ye+3]=0,he[ye+4]=Ce>>24,he[ye+5]=Ce>>16,he[ye+6]=Ce>>8,he[ye+7]=Ce;var Ie=Te.length;he[ye+8]=Ie;for(var tt=0;tt<Ie;tt++)he[ye+9+tt]=Te.charCodeAt(tt);be._sQlen+=9+Ie,be.flush()},enableContinuousUpdates:function(be,Ce,Te,he,ye,Ie){var tt=be._sQ,pt=be._sQlen;tt[pt]=150,tt[pt+1]=Ce,tt[pt+2]=Te>>8,tt[pt+3]=Te,tt[pt+4]=he>>8,tt[pt+5]=he,tt[pt+6]=ye>>8,tt[pt+7]=ye,tt[pt+8]=Ie>>8,tt[pt+9]=Ie,be._sQlen+=10,be.flush()},pixelFormat:function(be,Ce,Te){var he=be._sQ,ye=be._sQlen,Ie;Ce>16?Ie=32:Ce>8?Ie=16:Ie=8;var tt=Math.floor(Ce/3);he[ye]=0,he[ye+1]=0,he[ye+2]=0,he[ye+3]=0,he[ye+4]=Ie,he[ye+5]=Ce,he[ye+6]=0,he[ye+7]=Te?1:0,he[ye+8]=0,he[ye+9]=(1<<tt)-1,he[ye+10]=0,he[ye+11]=(1<<tt)-1,he[ye+12]=0,he[ye+13]=(1<<tt)-1,he[ye+14]=tt*2,he[ye+15]=tt*1,he[ye+16]=tt*0,he[ye+17]=0,he[ye+18]=0,he[ye+19]=0,be._sQlen+=20,be.flush()},clientEncodings:function(be,Ce){var Te=be._sQ,he=be._sQlen;Te[he]=2,Te[he+1]=0,Te[he+2]=Ce.length>>8,Te[he+3]=Ce.length;for(var ye=he+4,Ie=0;Ie<Ce.length;Ie++){var tt=Ce[Ie];Te[ye]=tt>>24,Te[ye+1]=tt>>16,Te[ye+2]=tt>>8,Te[ye+3]=tt,ye+=4}be._sQlen+=ye-he,be.flush()},fbUpdateRequest:function(be,Ce,Te,he,ye,Ie){var tt=be._sQ,pt=be._sQlen;typeof Te=="undefined"&&(Te=0),typeof he=="undefined"&&(he=0),tt[pt]=3,tt[pt+1]=Ce?1:0,tt[pt+2]=Te>>8&255,tt[pt+3]=Te&255,tt[pt+4]=he>>8&255,tt[pt+5]=he&255,tt[pt+6]=ye>>8&255,tt[pt+7]=ye&255,tt[pt+8]=Ie>>8&255,tt[pt+9]=Ie&255,be._sQlen+=10,be.flush()},xvpOp:function(be,Ce,Te){var he=be._sQ,ye=be._sQlen;he[ye]=250,he[ye+1]=0,he[ye+2]=Ce,he[ye+3]=Te,be._sQlen+=4,be.flush()}},ee.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(k,D,i){(function(y){y(i("VrN/"))})(function(y){"use strict";var p={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(A,m){var f=A.indentUnit,d={},l=m.htmlMode?p:S;for(var o in l)d[o]=l[o];for(var o in m)d[o]=m[o];var n,t;function a(_,F){function R(X){return F.tokenize=X,X(_,F)}var B=_.next();if(B=="<")return _.eat("!")?_.eat("[")?_.match("CDATA[")?R(r("atom","]]>")):null:_.match("--")?R(r("comment","-->")):_.match("DOCTYPE",!0,!0)?(_.eatWhile(/[\w\._\-]/),R(s(1))):null:_.eat("?")?(_.eatWhile(/[\w\._\-]/),F.tokenize=r("meta","?>"),"meta"):(n=_.eat("/")?"closeTag":"openTag",F.tokenize=e,"tag bracket");if(B=="&"){var M;return _.eat("#")?_.eat("x")?M=_.eatWhile(/[a-fA-F\d]/)&&_.eat(";"):M=_.eatWhile(/[\d]/)&&_.eat(";"):M=_.eatWhile(/[\w\.\-:]/)&&_.eat(";"),M?"atom":"error"}else return _.eatWhile(/[^&<]/),null}a.isInText=!0;function e(_,F){var R=_.next();if(R==">"||R=="/"&&_.eat(">"))return F.tokenize=a,n=R==">"?"endTag":"selfcloseTag","tag bracket";if(R=="=")return n="equals",null;if(R=="<"){F.tokenize=a,F.state=v,F.tagName=F.tagStart=null;var B=F.tokenize(_,F);return B?B+" tag error":"tag error"}else return/[\'\"]/.test(R)?(F.tokenize=u(R),F.stringStartCol=_.column(),F.tokenize(_,F)):(_.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function u(_){var F=function(B,M){for(;!B.eol();)if(B.next()==_){M.tokenize=e;break}return"string"};return F.isInAttribute=!0,F}function r(_,F){return function(R,B){for(;!R.eol();){if(R.match(F)){B.tokenize=a;break}R.next()}return _}}function s(_){return function(F,R){for(var B;(B=F.next())!=null;){if(B=="<")return R.tokenize=s(_+1),R.tokenize(F,R);if(B==">")if(_==1){R.tokenize=a;break}else return R.tokenize=s(_-1),R.tokenize(F,R)}return"meta"}}function c(_,F,R){this.prev=_.context,this.tagName=F,this.indent=_.indented,this.startOfLine=R,(d.doNotIndent.hasOwnProperty(F)||_.context&&_.context.noIndent)&&(this.noIndent=!0)}function h(_){_.context&&(_.context=_.context.prev)}function g(_,F){for(var R;;){if(!_.context)return;if(R=_.context.tagName,!d.contextGrabbers.hasOwnProperty(R)||!d.contextGrabbers[R].hasOwnProperty(F))return;h(_)}}function v(_,F,R){return _=="openTag"?(R.tagStart=F.column(),b):_=="closeTag"?w:v}function b(_,F,R){return _=="word"?(R.tagName=F.current(),t="tag",O):d.allowMissingTagName&&_=="endTag"?(t="tag bracket",O(_,F,R)):(t="error",b)}function w(_,F,R){if(_=="word"){var B=F.current();return R.context&&R.context.tagName!=B&&d.implicitlyClosed.hasOwnProperty(R.context.tagName)&&h(R),R.context&&R.context.tagName==B||d.matchClosing===!1?(t="tag",x):(t="tag error",T)}else return d.allowMissingTagName&&_=="endTag"?(t="tag bracket",x(_,F,R)):(t="error",T)}function x(_,F,R){return _!="endTag"?(t="error",x):(h(R),v)}function T(_,F,R){return t="error",x(_,F,R)}function O(_,F,R){if(_=="word")return t="attribute",E;if(_=="endTag"||_=="selfcloseTag"){var B=R.tagName,M=R.tagStart;return R.tagName=R.tagStart=null,_=="selfcloseTag"||d.autoSelfClosers.hasOwnProperty(B)?g(R,B):(g(R,B),R.context=new c(R,B,M==R.indented)),v}return t="error",O}function E(_,F,R){return _=="equals"?C:(d.allowMissing||(t="error"),O(_,F,R))}function C(_,F,R){return _=="string"?I:_=="word"&&d.allowUnquoted?(t="string",O):(t="error",O(_,F,R))}function I(_,F,R){return _=="string"?I:O(_,F,R)}return{startState:function(F){var R={tokenize:a,state:v,indented:F||0,tagName:null,tagStart:null,context:null};return F!=null&&(R.baseIndent=F),R},token:function(F,R){if(!R.tagName&&F.sol()&&(R.indented=F.indentation()),F.eatSpace())return null;n=null;var B=R.tokenize(F,R);return(B||n)&&B!="comment"&&(t=null,R.state=R.state(n||B,F,R),t&&(B=t=="error"?B+" error":t)),B},indent:function(F,R,B){var M=F.context;if(F.tokenize.isInAttribute)return F.tagStart==F.indented?F.stringStartCol+1:F.indented+f;if(M&&M.noIndent)return y.Pass;if(F.tokenize!=e&&F.tokenize!=a)return B?B.match(/^(\s*)/)[0].length:0;if(F.tagName)return d.multilineTagIndentPastTag!==!1?F.tagStart+F.tagName.length+2:F.tagStart+f*(d.multilineTagIndentFactor||1);if(d.alignCDATA&&/<!\[CDATA\[/.test(R))return 0;var X=R&&/^<(\/)?([\w_:\.-]*)/.exec(R);if(X&&X[1])for(;M;)if(M.tagName==X[2]){M=M.prev;break}else if(d.implicitlyClosed.hasOwnProperty(M.tagName))M=M.prev;else break;else if(X)for(;M;){var P=d.contextGrabbers[M.tagName];if(P&&P.hasOwnProperty(X[2]))M=M.prev;else break}for(;M&&M.prev&&!M.startOfLine;)M=M.prev;return M?M.indent+f:F.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:d.htmlMode?"html":"xml",helperType:d.htmlMode?"html":"xml",skipAttribute:function(F){F.state==C&&(F.state=O)},xmlCurrentTag:function(F){return F.tagName?{name:F.tagName,close:F.type=="closeTag"}:null},xmlCurrentContext:function(F){for(var R=[],B=F.context;B;B=B.prev)B.tagName&&R.push(B.tagName);return R.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(k,D,i){var y=i("e4Nc"),p=i("ftKO"),S=i("3A9y");function A(m){var f=-1,d=m==null?0:m.length;for(this.__data__=new y;++f<d;)this.add(m[f])}A.prototype.add=A.prototype.push=p,A.prototype.has=S,k.exports=A},"1n7x":function(k,D,i){(function(y,p){/*!
* html2pdf.js v0.10.1
* Copyright (c) 2021 Erik Koopmans
* Released under the MIT License.
*/(function(A,m){k.exports=m(i("dtIV"),i("wOnQ"))})(self,function(S,A){return function(){var m={"./src/plugin/hyperlinks.js":function(n,t,a){"use strict";a.r(t);var e=a("./node_modules/core-js/modules/web.dom-collections.for-each.js"),u=a.n(e),r=a("./node_modules/core-js/modules/es.string.link.js"),s=a.n(r),c=a("./src/worker.js"),h=a("./src/utils.js"),g=[],v={toContainer:c.default.prototype.toContainer,toPdf:c.default.prototype.toPdf};c.default.prototype.toContainer=function(){return v.toContainer.call(this).then(function(){if(this.opt.enableLinks){var x=this.prop.container,T=x.querySelectorAll("a"),O=(0,h.unitConvert)(x.getBoundingClientRect(),this.prop.pageSize.k);g=[],Array.prototype.forEach.call(T,function(E){for(var C=E.getClientRects(),I=0;I<C.length;I++){var _=(0,h.unitConvert)(C[I],this.prop.pageSize.k);_.left-=O.left,_.top-=O.top;var F=Math.floor(_.top/this.prop.pageSize.inner.height)+1,R=this.opt.margin[0]+_.top%this.prop.pageSize.inner.height,B=this.opt.margin[1]+_.left;g.push({page:F,top:R,left:B,clientRect:_,link:E})}},this)}})},c.default.prototype.toPdf=function(){return v.toPdf.call(this).then(function(){if(this.opt.enableLinks){g.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 x=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(x)}})}},"./src/plugin/jspdf-plugin.js":function(n,t,a){"use strict";a.r(t);var e=a("./node_modules/core-js/modules/es.symbol.js"),u=a.n(e),r=a("./node_modules/core-js/modules/es.symbol.description.js"),s=a.n(r),c=a("./node_modules/core-js/modules/es.object.to-string.js"),h=a.n(c),g=a("./node_modules/core-js/modules/es.symbol.iterator.js"),v=a.n(g),b=a("./node_modules/core-js/modules/es.array.iterator.js"),w=a.n(b),x=a("./node_modules/core-js/modules/es.string.iterator.js"),T=a.n(x),O=a("./node_modules/core-js/modules/web.dom-collections.iterator.js"),E=a.n(O),C=a("jspdf"),I=a.n(C);function _(F){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(B){return typeof B}:_=function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},_(F)}C.jsPDF.getPageSize=function(F,R,B){if(_(F)==="object"){var M=F;F=M.orientation,R=M.unit||R,B=M.format||B}R=R||"mm",B=B||"a4",F=(""+(F||"P")).toLowerCase();var X=(""+B).toLowerCase(),P={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(R){case"pt":var z=1;break;case"mm":var z=72/25.4;break;case"cm":var z=72/2.54;break;case"in":var z=72;break;case"px":var z=72/96;break;case"pc":var z=12;break;case"em":var z=12;break;case"ex":var z=6;break;default:throw"Invalid unit: "+R}if(P.hasOwnProperty(X))var W=P[X][1]/z,U=P[X][0]/z;else try{var W=B[1],U=B[0]}catch(G){throw new Error("Invalid format: "+B)}if(F==="p"||F==="portrait"){if(F="p",U>W){var V=U;U=W,W=V}}else if(F==="l"||F==="landscape"){if(F="l",W>U){var V=U;U=W,W=V}}else throw"Invalid orientation: "+F;var Q={width:U,height:W,unit:R,k:z};return Q},t.default=C.jsPDF},"./src/plugin/pagebreaks.js":function(n,t,a){"use strict";a.r(t);var e=a("./node_modules/core-js/modules/es.array.concat.js"),u=a.n(e),r=a("./node_modules/core-js/modules/es.array.slice.js"),s=a.n(r),c=a("./node_modules/core-js/modules/es.array.join.js"),h=a.n(c),g=a("./node_modules/core-js/modules/web.dom-collections.for-each.js"),v=a.n(g),b=a("./node_modules/core-js/modules/es.object.keys.js"),w=a.n(b),x=a("./src/worker.js"),T=a("./src/utils.js"),O={toContainer:x.default.prototype.toContainer};x.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},x.default.prototype.toContainer=function(){return O.toContainer.call(this).then(function(){var I=this.prop.container,_=this.prop.pageSize.inner.px.height,F=[].concat(this.opt.pagebreak.mode),R={avoidAll:F.indexOf("avoid-all")!==-1,css:F.indexOf("css")!==-1,legacy:F.indexOf("legacy")!==-1},B={},M=this;["before","after","avoid"].forEach(function(z){var W=R.avoidAll&&z==="avoid";B[z]=W?[]:[].concat(M.opt.pagebreak[z]||[]),B[z].length>0&&(B[z]=Array.prototype.slice.call(I.querySelectorAll(B[z].join(", "))))});var X=I.querySelectorAll(".html2pdf__page-break");X=Array.prototype.slice.call(X);var P=I.querySelectorAll("*");Array.prototype.forEach.call(P,function(W){var U={before:!1,after:R.legacy&&X.indexOf(W)!==-1,avoid:R.avoidAll};if(R.css){var V=window.getComputedStyle(W),Q=["always","page","left","right"],G=["avoid","avoid-page"];U={before:U.before||Q.indexOf(V.breakBefore||V.pageBreakBefore)!==-1,after:U.after||Q.indexOf(V.breakAfter||V.pageBreakAfter)!==-1,avoid:U.avoid||G.indexOf(V.breakInside||V.pageBreakInside)!==-1}}Object.keys(U).forEach(function(Re){U[Re]=U[Re]||B[Re].indexOf(W)!==-1});var te=W.getBoundingClientRect();if(U.avoid&&!U.before){var $=Math.floor(te.top/_),le=Math.floor(te.bottom/_),re=Math.abs(te.bottom-te.top)/_;le!==$&&re<=1&&(U.before=!0)}if(U.before){var Se=(0,T.createElement)("div",{style:{display:"block",height:_-te.top%_+"px"}});W.parentNode.insertBefore(Se,W)}if(U.after){var Se=(0,T.createElement)("div",{style:{display:"block",height:_-te.bottom%_+"px"}});W.parentNode.insertBefore(Se,W.nextSibling)}})})}},"./src/utils.js":function(n,t,a){"use strict";a.r(t),a.d(t,{objType:function(){return F},createElement:function(){return R},cloneNode:function(){return B},unitConvert:function(){return M},toPx:function(){return X}});var e=a("./node_modules/core-js/modules/es.number.constructor.js"),u=a.n(e),r=a("./node_modules/core-js/modules/es.symbol.js"),s=a.n(r),c=a("./node_modules/core-js/modules/es.symbol.description.js"),h=a.n(c),g=a("./node_modules/core-js/modules/es.object.to-string.js"),v=a.n(g),b=a("./node_modules/core-js/modules/es.symbol.iterator.js"),w=a.n(b),x=a("./node_modules/core-js/modules/es.array.iterator.js"),T=a.n(x),O=a("./node_modules/core-js/modules/es.string.iterator.js"),E=a.n(O),C=a("./node_modules/core-js/modules/web.dom-collections.iterator.js"),I=a.n(C);function _(P){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?_=function(W){return typeof W}:_=function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},_(P)}var F=function(z){var W=_(z);return W==="undefined"?"undefined":W==="string"||z instanceof String?"string":W==="number"||z instanceof Number?"number":W==="function"||z instanceof Function?"function":!!z&&z.constructor===Array?"array":z&&z.nodeType===1?"element":W==="object"?"object":"unknown"},R=function(z,W){var U=document.createElement(z);if(W.className&&(U.className=W.className),W.innerHTML){U.innerHTML=W.innerHTML;for(var V=U.getElementsByTagName("script"),Q=V.length;Q-- >0;null)V[Q].parentNode.removeChild(V[Q])}for(var G in W.style)U.style[G]=W.style[G];return U},B=function P(z,W){for(var U=z.nodeType===3?document.createTextNode(z.nodeValue):z.cloneNode(!1),V=z.firstChild;V;V=V.nextSibling)(W===!0||V.nodeType!==1||V.nodeName!=="SCRIPT")&&U.appendChild(P(V,W));return z.nodeType===1&&(z.nodeName==="CANVAS"?(U.width=z.width,U.height=z.height,U.getContext("2d").drawImage(z,0,0)):(z.nodeName==="TEXTAREA"||z.nodeName==="SELECT")&&(U.value=z.value),U.addEventListener("load",function(){U.scrollTop=z.scrollTop,U.scrollLeft=z.scrollLeft},!0)),U},M=function(z,W){if(F(z)==="number")return z*72/96/W;var U={};for(var V in z)U[V]=z[V]*72/96/W;return U},X=function(z,W){return Math.floor(z*W/72*96)}},"./src/worker.js":function(n,t,a){"use strict";a.r(t);var e=a("./node_modules/core-js/modules/es.object.assign.js"),u=a.n(e),r=a("./node_modules/core-js/modules/es.array.map.js"),s=a.n(r),c=a("./node_modules/core-js/modules/es.object.keys.js"),h=a.n(c),g=a("./node_modules/core-js/modules/es.array.concat.js"),v=a.n(g),b=a("./node_modules/core-js/modules/es.object.to-string.js"),w=a.n(b),x=a("./node_modules/core-js/modules/es.regexp.to-string.js"),T=a.n(x),O=a("./node_modules/core-js/modules/es.function.name.js"),E=a.n(O),C=a("./node_modules/core-js/modules/web.dom-collections.for-each.js"),I=a.n(C),_=a("jspdf"),F=a.n(_),R=a("html2canvas"),B=a.n(R),M=a("./src/utils.js"),X=a("./node_modules/es6-promise/dist/es6-promise.js"),P=a.n(X),z=P().Promise,W=function U(V){var Q=Object.assign(U.convert(z.resolve()),JSON.parse(JSON.stringify(U.template))),G=U.convert(z.resolve(),Q);return G=G.setProgress(1,U,1,[U]),G=G.set(V),G};W.prototype=Object.create(z.prototype),W.prototype.constructor=W,W.convert=function(V,Q){return V.__proto__=Q||W.prototype,V},W.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:{}}},W.prototype.from=function(V,Q){function G(te){switch((0,M.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,M.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.")}})},W.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.")}},W.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 $=(0,M.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,M.createElement)("div",{className:"html2pdf__overlay",style:G}),this.prop.container=(0,M.createElement)("div",{className:"html2pdf__container",style:te}),this.prop.container.appendChild($),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},W.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,R(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)})},W.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})},W.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,$=G.height,le=Math.floor(G.width*this.prop.pageSize.inner.ratio),re=Math.ceil($/le),Se=this.prop.pageSize.inner.height,Re=document.createElement("canvas"),Pe=Re.getContext("2d");Re.width=G.width,Re.height=le,this.prop.pdf=this.prop.pdf||new _.jsPDF(te.jsPDF);for(var Je=0;Je<re;Je++){Je===re-1&&$%le!==0&&(Re.height=$%le,Se=Re.height*this.prop.pageSize.inner.width/Re.width);var Ve=Re.width,ct=Re.height;Pe.fillStyle="white",Pe.fillRect(0,0,Ve,ct),Pe.drawImage(G,0,Je*le,Ve,ct,0,0,Ve,ct),Je&&this.prop.pdf.addPage();var Ue=Re.toDataURL("image/"+te.image.type,te.image.quality);this.prop.pdf.addImage(Ue,te.image.type,te.margin[1],te.margin[0],this.prop.pageSize.inner.width,Se)}})},W.prototype.output=function(V,Q,G){return G=G||"pdf",G.toLowerCase()==="img"||G.toLowerCase()==="image"?this.outputImg(V,Q):this.outputPdf(V,Q)},W.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)})},W.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.'}})},W.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)})},W.prototype.set=function(V){if((0,M.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 W.template.prop?function(){this.prop[G]=V[G]}:function(){this.opt[G]=V[G]}}},this);return this.then(function(){return this.thenList(Q)})},W.prototype.get=function(V,Q){return this.then(function(){var te=V in W.template.prop?this.prop[V]:this.opt[V];return Q?Q(te):te})},W.prototype.setMargin=function(V){return this.then(function(){switch((0,M.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)},W.prototype.setPageSize=function(V){return this.then(function(){V=V||_.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,M.toPx)(V.inner.width,V.k),height:(0,M.toPx)(V.inner.height,V.k)},V.inner.ratio=V.inner.height/V.inner.width),this.prop.pageSize=V})},W.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},W.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)},W.prototype.then=function(V,Q){var G=this;return this.thenCore(V,Q,function($,le){return G.updateProgress(null,null,1,[$]),z.prototype.then.call(this,function(Se){return G.updateProgress(null,$),Se}).then($,le).then(function(Se){return G.updateProgress(1),Se})})},W.prototype.thenCore=function(V,Q,G){G=G||z.prototype.then;var te=this;V&&(V=V.bind(te)),Q&&(Q=Q.bind(te));var $=z.toString().indexOf("[native code]")!==-1&&z.name==="Promise",le=$?te:W.convert(Object.assign({},te),z.prototype),re=G.call(le,V,Q);return W.convert(re,te.__proto__)},W.prototype.thenExternal=function(V,Q){return z.prototype.then.call(this,V,Q)},W.prototype.thenList=function(V){var Q=this;return V.forEach(function(te){Q=Q.thenCore(te)}),Q},W.prototype.catch=function(U){U&&(U=U.bind(this));var V=z.prototype.catch.call(this,U);return W.convert(V,this)},W.prototype.catchExternal=function(V){return z.prototype.catch.call(this,V)},W.prototype.error=function(V){return this.then(function(){throw new Error(V)})},W.prototype.using=W.prototype.set,W.prototype.saveAs=W.prototype.save,W.prototype.export=W.prototype.output,W.prototype.run=W.prototype.then,t.default=W},"./node_modules/core-js/internals/a-function.js":function(n){n.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(n,t,a){var e=a("./node_modules/core-js/internals/is-object.js");n.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(n,t,a){var e=a("./node_modules/core-js/internals/well-known-symbol.js"),u=a("./node_modules/core-js/internals/object-create.js"),r=a("./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)}),n.exports=function(h){c[s][h]=!0}},"./node_modules/core-js/internals/an-object.js":function(n,t,a){var e=a("./node_modules/core-js/internals/is-object.js");n.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(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/array-iteration.js").forEach,u=a("./node_modules/core-js/internals/array-method-is-strict.js"),r=u("forEach");n.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(n,t,a){var e=a("./node_modules/core-js/internals/to-indexed-object.js"),u=a("./node_modules/core-js/internals/to-length.js"),r=a("./node_modules/core-js/internals/to-absolute-index.js"),s=function(h){return function(g,v,b){var w=e(g),x=u(w.length),T=r(b,x),O;if(h&&v!=v){for(;x>T;)if(O=w[T++],O!=O)return!0}else for(;x>T;T++)if((h||T in w)&&w[T]===v)return h||T||0;return!h&&-1}};n.exports={includes:s(!0),indexOf:s(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(n,t,a){var e=a("./node_modules/core-js/internals/function-bind-context.js"),u=a("./node_modules/core-js/internals/indexed-object.js"),r=a("./node_modules/core-js/internals/to-object.js"),s=a("./node_modules/core-js/internals/to-length.js"),c=a("./node_modules/core-js/internals/array-species-create.js"),h=[].push,g=function(b){var w=b==1,x=b==2,T=b==3,O=b==4,E=b==6,C=b==7,I=b==5||E;return function(_,F,R,B){for(var M=r(_),X=u(M),P=e(F,R,3),z=s(X.length),W=0,U=B||c,V=w?U(_,z):x||C?U(_,0):void 0,Q,G;z>W;W++)if((I||W in X)&&(Q=X[W],G=P(Q,W,M),b))if(w)V[W]=G;else if(G)switch(b){case 3:return!0;case 5:return Q;case 6:return W;case 2:h.call(V,Q)}else switch(b){case 4:return!1;case 7:h.call(V,Q)}return E?-1:T||O?O:V}};n.exports={forEach:g(0),map:g(1),filter:g(2),some:g(3),every:g(4),find:g(5),findIndex:g(6),filterReject:g(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(n,t,a){var e=a("./node_modules/core-js/internals/fails.js"),u=a("./node_modules/core-js/internals/well-known-symbol.js"),r=a("./node_modules/core-js/internals/engine-v8-version.js"),s=u("species");n.exports=function(c){return r>=51||!e(function(){var h=[],g=h.constructor={};return g[s]=function(){return{foo:1}},h[c](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/fails.js");n.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(n,t,a){var e=a("./node_modules/core-js/internals/is-object.js"),u=a("./node_modules/core-js/internals/is-array.js"),r=a("./node_modules/core-js/internals/well-known-symbol.js"),s=r("species");n.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(n,t,a){var e=a("./node_modules/core-js/internals/array-species-constructor.js");n.exports=function(u,r){return new(e(u))(r===0?0:r)}},"./node_modules/core-js/internals/classof-raw.js":function(n){var t={}.toString;n.exports=function(a){return t.call(a).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(n,t,a){var e=a("./node_modules/core-js/internals/to-string-tag-support.js"),u=a("./node_modules/core-js/internals/classof-raw.js"),r=a("./node_modules/core-js/internals/well-known-symbol.js"),s=r("toStringTag"),c=u(function(){return arguments}())=="Arguments",h=function(v,b){try{return v[b]}catch(w){}};n.exports=e?u:function(g){var v,b,w;return g===void 0?"Undefined":g===null?"Null":typeof(b=h(v=Object(g),s))=="string"?b:c?u(v):(w=u(v))=="Object"&&typeof v.callee=="function"?"Arguments":w}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(n,t,a){var e=a("./node_modules/core-js/internals/has.js"),u=a("./node_modules/core-js/internals/own-keys.js"),r=a("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),s=a("./node_modules/core-js/internals/object-define-property.js");n.exports=function(c,h){for(var g=u(h),v=s.f,b=r.f,w=0;w<g.length;w++){var x=g[w];e(c,x)||v(c,x,b(h,x))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(n,t,a){var e=a("./node_modules/core-js/internals/fails.js");n.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(n,t,a){var e=a("./node_modules/core-js/internals/require-object-coercible.js"),u=a("./node_modules/core-js/internals/to-string.js"),r=/"/g;n.exports=function(s,c,h,g){var v=u(e(s)),b="<"+c;return h!==""&&(b+=" "+h+'="'+u(g).replace(r,"&quot;")+'"'),b+">"+v+"</"+c+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,u=a("./node_modules/core-js/internals/object-create.js"),r=a("./node_modules/core-js/internals/create-property-descriptor.js"),s=a("./node_modules/core-js/internals/set-to-string-tag.js"),c=a("./node_modules/core-js/internals/iterators.js"),h=function(){return this};n.exports=function(g,v,b){var w=v+" Iterator";return g.prototype=u(e,{next:r(1,b)}),s(g,w,!1,!0),c[w]=h,g}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(n,t,a){var e=a("./node_modules/core-js/internals/descriptors.js"),u=a("./node_modules/core-js/internals/object-define-property.js"),r=a("./node_modules/core-js/internals/create-property-descriptor.js");n.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(n){n.exports=function(t,a){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:a}}},"./node_modules/core-js/internals/create-property.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/to-property-key.js"),u=a("./node_modules/core-js/internals/object-define-property.js"),r=a("./node_modules/core-js/internals/create-property-descriptor.js");n.exports=function(s,c,h){var g=e(c);g in s?u.f(s,g,r(0,h)):s[g]=h}},"./node_modules/core-js/internals/define-iterator.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/export.js"),u=a("./node_modules/core-js/internals/create-iterator-constructor.js"),r=a("./node_modules/core-js/internals/object-get-prototype-of.js"),s=a("./node_modules/core-js/internals/object-set-prototype-of.js"),c=a("./node_modules/core-js/internals/set-to-string-tag.js"),h=a("./node_modules/core-js/internals/create-non-enumerable-property.js"),g=a("./node_modules/core-js/internals/redefine.js"),v=a("./node_modules/core-js/internals/well-known-symbol.js"),b=a("./node_modules/core-js/internals/is-pure.js"),w=a("./node_modules/core-js/internals/iterators.js"),x=a("./node_modules/core-js/internals/iterators-core.js"),T=x.IteratorPrototype,O=x.BUGGY_SAFARI_ITERATORS,E=v("iterator"),C="keys",I="values",_="entries",F=function(){return this};n.exports=function(R,B,M,X,P,z,W){u(M,B,X);var U=function(Je){if(Je===P&&$)return $;if(!O&&Je in G)return G[Je];switch(Je){case C:return function(){return new M(this,Je)};case I:return function(){return new M(this,Je)};case _:return function(){return new M(this,Je)}}return function(){return new M(this)}},V=B+" Iterator",Q=!1,G=R.prototype,te=G[E]||G["@@iterator"]||P&&G[P],$=!O&&te||U(P),le=B=="Array"&&G.entries||te,re,Se,Re;if(le&&(re=r(le.call(new R)),T!==Object.prototype&&re.next&&(!b&&r(re)!==T&&(s?s(re,T):typeof re[E]!="function"&&h(re,E,F)),c(re,V,!0,!0),b&&(w[V]=F))),P==I&&te&&te.name!==I&&(Q=!0,$=function(){return te.call(this)}),(!b||W)&&G[E]!==$&&h(G,E,$),w[B]=$,P)if(Se={values:U(I),keys:z?$:U(C),entries:U(_)},W)for(Re in Se)(O||Q||!(Re in G))&&g(G,Re,Se[Re]);else e({target:B,proto:!0,forced:O||Q},Se);return Se}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(n,t,a){var e=a("./node_modules/core-js/internals/path.js"),u=a("./node_modules/core-js/internals/has.js"),r=a("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),s=a("./node_modules/core-js/internals/object-define-property.js").f;n.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(n,t,a){var e=a("./node_modules/core-js/internals/fails.js");n.exports=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(n,t,a){var e=a("./node_modules/core-js/internals/global.js"),u=a("./node_modules/core-js/internals/is-object.js"),r=e.document,s=u(r)&&u(r.createElement);n.exports=function(c){return s?r.createElement(c):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(n){n.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(n,t,a){var e=a("./node_modules/core-js/internals/get-built-in.js");n.exports=e("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(n,t,a){var e=a("./node_modules/core-js/internals/global.js"),u=a("./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,g,v;h?(g=h.split("."),v=g[0]<4?1:g[0]+g[1]):u&&(g=u.match(/Edge\/(\d+)/),(!g||g[1]>=74)&&(g=u.match(/Chrome\/(\d+)/),g&&(v=g[1]))),n.exports=v&&+v},"./node_modules/core-js/internals/enum-bug-keys.js":function(n){n.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(n,t,a){var e=a("./node_modules/core-js/internals/global.js"),u=a("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,r=a("./node_modules/core-js/internals/create-non-enumerable-property.js"),s=a("./node_modules/core-js/internals/redefine.js"),c=a("./node_modules/core-js/internals/set-global.js"),h=a("./node_modules/core-js/internals/copy-constructor-properties.js"),g=a("./node_modules/core-js/internals/is-forced.js");n.exports=function(v,b){var w=v.target,x=v.global,T=v.stat,O,E,C,I,_,F;if(x?E=e:T?E=e[w]||c(w,{}):E=(e[w]||{}).prototype,E)for(C in b){if(_=b[C],v.noTargetGet?(F=u(E,C),I=F&&F.value):I=E[C],O=g(x?C:w+(T?".":"#")+C,v.forced),!O&&I!==void 0){if(typeof _===typeof I)continue;h(_,I)}(v.sham||I&&I.sham)&&r(_,"sham",!0),s(E,C,_,v)}}},"./node_modules/core-js/internals/fails.js":function(n){n.exports=function(t){try{return!!t()}catch(a){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(n,t,a){var e=a("./node_modules/core-js/internals/a-function.js");n.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,g){return u.call(r,c,h,g)}}return function(){return u.apply(r,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(n,t,a){var e=a("./node_modules/core-js/internals/global.js"),u=function(s){return typeof s=="function"?s:void 0};n.exports=function(r,s){return arguments.length<2?u(e[r]):e[r]&&e[r][s]}},"./node_modules/core-js/internals/global.js":function(n){var t=function(e){return e&&e.Math==Math&&e};n.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(n,t,a){var e=a("./node_modules/core-js/internals/to-object.js"),u={}.hasOwnProperty;n.exports=Object.hasOwn||function(s,c){return u.call(e(s),c)}},"./node_modules/core-js/internals/hidden-keys.js":function(n){n.exports={}},"./node_modules/core-js/internals/html.js":function(n,t,a){var e=a("./node_modules/core-js/internals/get-built-in.js");n.exports=e("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(n,t,a){var e=a("./node_modules/core-js/internals/descriptors.js"),u=a("./node_modules/core-js/internals/fails.js"),r=a("./node_modules/core-js/internals/document-create-element.js");n.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(n,t,a){var e=a("./node_modules/core-js/internals/fails.js"),u=a("./node_modules/core-js/internals/classof-raw.js"),r="".split;n.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(n,t,a){var e=a("./node_modules/core-js/internals/is-object.js"),u=a("./node_modules/core-js/internals/object-set-prototype-of.js");n.exports=function(r,s,c){var h,g;return u&&typeof(h=s.constructor)=="function"&&h!==c&&e(g=h.prototype)&&g!==c.prototype&&u(r,g),r}},"./node_modules/core-js/internals/inspect-source.js":function(n,t,a){var e=a("./node_modules/core-js/internals/shared-store.js"),u=Function.toString;typeof e.inspectSource!="function"&&(e.inspectSource=function(r){return u.call(r)}),n.exports=e.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(n,t,a){var e=a("./node_modules/core-js/internals/native-weak-map.js"),u=a("./node_modules/core-js/internals/global.js"),r=a("./node_modules/core-js/internals/is-object.js"),s=a("./node_modules/core-js/internals/create-non-enumerable-property.js"),c=a("./node_modules/core-js/internals/has.js"),h=a("./node_modules/core-js/internals/shared-store.js"),g=a("./node_modules/core-js/internals/shared-key.js"),v=a("./node_modules/core-js/internals/hidden-keys.js"),b="Object already initialized",w=u.WeakMap,x,T,O,E=function(X){return O(X)?T(X):x(X,{})},C=function(X){return function(P){var z;if(!r(P)||(z=T(P)).type!==X)throw TypeError("Incompatible receiver, "+X+" required");return z}};if(e||h.state){var I=h.state||(h.state=new w),_=I.get,F=I.has,R=I.set;x=function(X,P){if(F.call(I,X))throw new TypeError(b);return P.facade=X,R.call(I,X,P),P},T=function(X){return _.call(I,X)||{}},O=function(X){return F.call(I,X)}}else{var B=g("state");v[B]=!0,x=function(X,P){if(c(X,B))throw new TypeError(b);return P.facade=X,s(X,B,P),P},T=function(X){return c(X,B)?X[B]:{}},O=function(X){return c(X,B)}}n.exports={set:x,get:T,has:O,enforce:E,getterFor:C}},"./node_modules/core-js/internals/is-array.js":function(n,t,a){var e=a("./node_modules/core-js/internals/classof-raw.js");n.exports=Array.isArray||function(r){return e(r)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(n,t,a){var e=a("./node_modules/core-js/internals/fails.js"),u=/#|\.prototype\./,r=function(b,w){var x=c[s(b)];return x==g?!0:x==h?!1:typeof w=="function"?e(w):!!w},s=r.normalize=function(v){return String(v).replace(u,".").toLowerCase()},c=r.data={},h=r.NATIVE="N",g=r.POLYFILL="P";n.exports=r},"./node_modules/core-js/internals/is-object.js":function(n){n.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}},"./node_modules/core-js/internals/is-pure.js":function(n){n.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(n,t,a){var e=a("./node_modules/core-js/internals/get-built-in.js"),u=a("./node_modules/core-js/internals/use-symbol-as-uid.js");n.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(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/fails.js"),u=a("./node_modules/core-js/internals/object-get-prototype-of.js"),r=a("./node_modules/core-js/internals/create-non-enumerable-property.js"),s=a("./node_modules/core-js/internals/has.js"),c=a("./node_modules/core-js/internals/well-known-symbol.js"),h=a("./node_modules/core-js/internals/is-pure.js"),g=c("iterator"),v=!1,b=function(){return this},w,x,T;[].keys&&(T=[].keys(),"next"in T?(x=u(u(T)),x!==Object.prototype&&(w=x)):v=!0);var O=w==null||e(function(){var E={};return w[g].call(E)!==E});O&&(w={}),(!h||O)&&!s(w,g)&&r(w,g,b),n.exports={IteratorPrototype:w,BUGGY_SAFARI_ITERATORS:v}},"./node_modules/core-js/internals/iterators.js":function(n){n.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(n,t,a){var e=a("./node_modules/core-js/internals/engine-v8-version.js"),u=a("./node_modules/core-js/internals/fails.js");n.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(n,t,a){var e=a("./node_modules/core-js/internals/global.js"),u=a("./node_modules/core-js/internals/inspect-source.js"),r=e.WeakMap;n.exports=typeof r=="function"&&/native code/.test(u(r))},"./node_modules/core-js/internals/object-assign.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/descriptors.js"),u=a("./node_modules/core-js/internals/fails.js"),r=a("./node_modules/core-js/internals/object-keys.js"),s=a("./node_modules/core-js/internals/object-get-own-property-symbols.js"),c=a("./node_modules/core-js/internals/object-property-is-enumerable.js"),h=a("./node_modules/core-js/internals/to-object.js"),g=a("./node_modules/core-js/internals/indexed-object.js"),v=Object.assign,b=Object.defineProperty;n.exports=!v||u(function(){if(e&&v({b:1},v(b({},"a",{enumerable:!0,get:function(){b(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var w={},x={},T=Symbol(),O="abcdefghijklmnopqrst";return w[T]=7,O.split("").forEach(function(E){x[E]=E}),v({},w)[T]!=7||r(v({},x)).join("")!=O})?function(x,T){for(var O=h(x),E=arguments.length,C=1,I=s.f,_=c.f;E>C;)for(var F=g(arguments[C++]),R=I?r(F).concat(I(F)):r(F),B=R.length,M=0,X;B>M;)X=R[M++],(!e||_.call(F,X))&&(O[X]=F[X]);return O}:v},"./node_modules/core-js/internals/object-create.js":function(n,t,a){var e=a("./node_modules/core-js/internals/an-object.js"),u=a("./node_modules/core-js/internals/object-define-properties.js"),r=a("./node_modules/core-js/internals/enum-bug-keys.js"),s=a("./node_modules/core-js/internals/hidden-keys.js"),c=a("./node_modules/core-js/internals/html.js"),h=a("./node_modules/core-js/internals/document-create-element.js"),g=a("./node_modules/core-js/internals/shared-key.js"),v=">",b="<",w="prototype",x="script",T=g("IE_PROTO"),O=function(){},E=function(B){return b+x+v+B+b+"/"+x+v},C=function(B){B.write(E("")),B.close();var M=B.parentWindow.Object;return B=null,M},I=function(){var B=h("iframe"),M="java"+x+":",X;if(B.style)return B.style.display="none",c.appendChild(B),B.src=String(M),X=B.contentWindow.document,X.open(),X.write(E("document.F=Object")),X.close(),X.F},_,F=function(){try{_=new ActiveXObject("htmlfile")}catch(M){}F=document.domain&&_?C(_):I()||C(_);for(var B=r.length;B--;)delete F[w][r[B]];return F()};s[T]=!0,n.exports=Object.create||function(B,M){var X;return B!==null?(O[w]=e(B),X=new O,O[w]=null,X[T]=B):X=F(),M===void 0?X:u(X,M)}},"./node_modules/core-js/internals/object-define-properties.js":function(n,t,a){var e=a("./node_modules/core-js/internals/descriptors.js"),u=a("./node_modules/core-js/internals/object-define-property.js"),r=a("./node_modules/core-js/internals/an-object.js"),s=a("./node_modules/core-js/internals/object-keys.js");n.exports=e?Object.defineProperties:function(h,g){r(h);for(var v=s(g),b=v.length,w=0,x;b>w;)u.f(h,x=v[w++],g[x]);return h}},"./node_modules/core-js/internals/object-define-property.js":function(n,t,a){var e=a("./node_modules/core-js/internals/descriptors.js"),u=a("./node_modules/core-js/internals/ie8-dom-define.js"),r=a("./node_modules/core-js/internals/an-object.js"),s=a("./node_modules/core-js/internals/to-property-key.js"),c=Object.defineProperty;t.f=e?c:function(g,v,b){if(r(g),v=s(v),r(b),u)try{return c(g,v,b)}catch(w){}if("get"in b||"set"in b)throw TypeError("Accessors not supported");return"value"in b&&(g[v]=b.value),g}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(n,t,a){var e=a("./node_modules/core-js/internals/descriptors.js"),u=a("./node_modules/core-js/internals/object-property-is-enumerable.js"),r=a("./node_modules/core-js/internals/create-property-descriptor.js"),s=a("./node_modules/core-js/internals/to-indexed-object.js"),c=a("./node_modules/core-js/internals/to-property-key.js"),h=a("./node_modules/core-js/internals/has.js"),g=a("./node_modules/core-js/internals/ie8-dom-define.js"),v=Object.getOwnPropertyDescriptor;t.f=e?v:function(w,x){if(w=s(w),x=c(x),g)try{return v(w,x)}catch(T){}if(h(w,x))return r(!u.f.call(w,x),w[x])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(n,t,a){var e=a("./node_modules/core-js/internals/to-indexed-object.js"),u=a("./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(g){try{return u(g)}catch(v){return s.slice()}};n.exports.f=function(g){return s&&r.call(g)=="[object Window]"?c(g):u(e(g))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(n,t,a){var e=a("./node_modules/core-js/internals/object-keys-internal.js"),u=a("./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(n,t){t.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(n,t,a){var e=a("./node_modules/core-js/internals/has.js"),u=a("./node_modules/core-js/internals/to-object.js"),r=a("./node_modules/core-js/internals/shared-key.js"),s=a("./node_modules/core-js/internals/correct-prototype-getter.js"),c=r("IE_PROTO"),h=Object.prototype;n.exports=s?Object.getPrototypeOf:function(g){return g=u(g),e(g,c)?g[c]:typeof g.constructor=="function"&&g instanceof g.constructor?g.constructor.prototype:g instanceof Object?h:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(n,t,a){var e=a("./node_modules/core-js/internals/has.js"),u=a("./node_modules/core-js/internals/to-indexed-object.js"),r=a("./node_modules/core-js/internals/array-includes.js").indexOf,s=a("./node_modules/core-js/internals/hidden-keys.js");n.exports=function(c,h){var g=u(c),v=0,b=[],w;for(w in g)!e(s,w)&&e(g,w)&&b.push(w);for(;h.length>v;)e(g,w=h[v++])&&(~r(b,w)||b.push(w));return b}},"./node_modules/core-js/internals/object-keys.js":function(n,t,a){var e=a("./node_modules/core-js/internals/object-keys-internal.js"),u=a("./node_modules/core-js/internals/enum-bug-keys.js");n.exports=Object.keys||function(s){return e(s,u)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(n,t){"use strict";var a={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,u=e&&!a.call({1:2},1);t.f=u?function(s){var c=e(this,s);return!!c&&c.enumerable}:a},"./node_modules/core-js/internals/object-set-prototype-of.js":function(n,t,a){var e=a("./node_modules/core-js/internals/an-object.js"),u=a("./node_modules/core-js/internals/a-possible-prototype.js");n.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(g,v){return e(g),u(v),r?c.call(g,v):g.__proto__=v,g}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/to-string-tag-support.js"),u=a("./node_modules/core-js/internals/classof.js");n.exports=e?{}.toString:function(){return"[object "+u(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(n,t,a){var e=a("./node_modules/core-js/internals/is-object.js");n.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(n,t,a){var e=a("./node_modules/core-js/internals/get-built-in.js"),u=a("./node_modules/core-js/internals/object-get-own-property-names.js"),r=a("./node_modules/core-js/internals/object-get-own-property-symbols.js"),s=a("./node_modules/core-js/internals/an-object.js");n.exports=e("Reflect","ownKeys")||function(h){var g=u.f(s(h)),v=r.f;return v?g.concat(v(h)):g}},"./node_modules/core-js/internals/path.js":function(n,t,a){var e=a("./node_modules/core-js/internals/global.js");n.exports=e},"./node_modules/core-js/internals/redefine.js":function(n,t,a){var e=a("./node_modules/core-js/internals/global.js"),u=a("./node_modules/core-js/internals/create-non-enumerable-property.js"),r=a("./node_modules/core-js/internals/has.js"),s=a("./node_modules/core-js/internals/set-global.js"),c=a("./node_modules/core-js/internals/inspect-source.js"),h=a("./node_modules/core-js/internals/internal-state.js"),g=h.get,v=h.enforce,b=String(String).split("String");(n.exports=function(w,x,T,O){var E=O?!!O.unsafe:!1,C=O?!!O.enumerable:!1,I=O?!!O.noTargetGet:!1,_;if(typeof T=="function"&&(typeof x=="string"&&!r(T,"name")&&u(T,"name",x),_=v(T),_.source||(_.source=b.join(typeof x=="string"?x:""))),w===e){C?w[x]=T:s(x,T);return}else E?!I&&w[x]&&(C=!0):delete w[x];C?w[x]=T:u(w,x,T)})(Function.prototype,"toString",function(){return typeof this=="function"&&g(this).source||c(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/an-object.js");n.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(n){n.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(n,t,a){var e=a("./node_modules/core-js/internals/global.js");n.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(n,t,a){var e=a("./node_modules/core-js/internals/object-define-property.js").f,u=a("./node_modules/core-js/internals/has.js"),r=a("./node_modules/core-js/internals/well-known-symbol.js"),s=r("toStringTag");n.exports=function(c,h,g){c&&!u(c=g?c:c.prototype,s)&&e(c,s,{configurable:!0,value:h})}},"./node_modules/core-js/internals/shared-key.js":function(n,t,a){var e=a("./node_modules/core-js/internals/shared.js"),u=a("./node_modules/core-js/internals/uid.js"),r=e("keys");n.exports=function(s){return r[s]||(r[s]=u(s))}},"./node_modules/core-js/internals/shared-store.js":function(n,t,a){var e=a("./node_modules/core-js/internals/global.js"),u=a("./node_modules/core-js/internals/set-global.js"),r="__core-js_shared__",s=e[r]||u(r,{});n.exports=s},"./node_modules/core-js/internals/shared.js":function(n,t,a){var e=a("./node_modules/core-js/internals/is-pure.js"),u=a("./node_modules/core-js/internals/shared-store.js");(n.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(n,t,a){var e=a("./node_modules/core-js/internals/fails.js");n.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(n,t,a){var e=a("./node_modules/core-js/internals/to-integer.js"),u=a("./node_modules/core-js/internals/to-string.js"),r=a("./node_modules/core-js/internals/require-object-coercible.js"),s=function(h){return function(g,v){var b=u(r(g)),w=e(v),x=b.length,T,O;return w<0||w>=x?h?"":void 0:(T=b.charCodeAt(w),T<55296||T>56319||w+1===x||(O=b.charCodeAt(w+1))<56320||O>57343?h?b.charAt(w):T:h?b.slice(w,w+2):(T-55296<<10)+(O-56320)+65536)}};n.exports={codeAt:s(!1),charAt:s(!0)}},"./node_modules/core-js/internals/string-trim.js":function(n,t,a){var e=a("./node_modules/core-js/internals/require-object-coercible.js"),u=a("./node_modules/core-js/internals/to-string.js"),r=a("./node_modules/core-js/internals/whitespaces.js"),s="["+r+"]",c=RegExp("^"+s+s+"*"),h=RegExp(s+s+"*$"),g=function(b){return function(w){var x=u(e(w));return b&1&&(x=x.replace(c,"")),b&2&&(x=x.replace(h,"")),x}};n.exports={start:g(1),end:g(2),trim:g(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(n,t,a){var e=a("./node_modules/core-js/internals/to-integer.js"),u=Math.max,r=Math.min;n.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(n,t,a){var e=a("./node_modules/core-js/internals/indexed-object.js"),u=a("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(r){return e(u(r))}},"./node_modules/core-js/internals/to-integer.js":function(n){var t=Math.ceil,a=Math.floor;n.exports=function(e){return isNaN(e=+e)?0:(e>0?a:t)(e)}},"./node_modules/core-js/internals/to-length.js":function(n,t,a){var e=a("./node_modules/core-js/internals/to-integer.js"),u=Math.min;n.exports=function(r){return r>0?u(e(r),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(n,t,a){var e=a("./node_modules/core-js/internals/require-object-coercible.js");n.exports=function(u){return Object(e(u))}},"./node_modules/core-js/internals/to-primitive.js":function(n,t,a){var e=a("./node_modules/core-js/internals/is-object.js"),u=a("./node_modules/core-js/internals/is-symbol.js"),r=a("./node_modules/core-js/internals/ordinary-to-primitive.js"),s=a("./node_modules/core-js/internals/well-known-symbol.js"),c=s("toPrimitive");n.exports=function(h,g){if(!e(h)||u(h))return h;var v=h[c],b;if(v!==void 0){if(g===void 0&&(g="default"),b=v.call(h,g),!e(b)||u(b))return b;throw TypeError("Can't convert object to primitive value")}return g===void 0&&(g="number"),r(h,g)}},"./node_modules/core-js/internals/to-property-key.js":function(n,t,a){var e=a("./node_modules/core-js/internals/to-primitive.js"),u=a("./node_modules/core-js/internals/is-symbol.js");n.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(n,t,a){var e=a("./node_modules/core-js/internals/well-known-symbol.js"),u=e("toStringTag"),r={};r[u]="z",n.exports=String(r)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(n,t,a){var e=a("./node_modules/core-js/internals/is-symbol.js");n.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(n){var t=0,a=Math.random();n.exports=function(e){return"Symbol("+String(e===void 0?"":e)+")_"+(++t+a).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(n,t,a){var e=a("./node_modules/core-js/internals/native-symbol.js");n.exports=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(n,t,a){var e=a("./node_modules/core-js/internals/well-known-symbol.js");t.f=e},"./node_modules/core-js/internals/well-known-symbol.js":function(n,t,a){var e=a("./node_modules/core-js/internals/global.js"),u=a("./node_modules/core-js/internals/shared.js"),r=a("./node_modules/core-js/internals/has.js"),s=a("./node_modules/core-js/internals/uid.js"),c=a("./node_modules/core-js/internals/native-symbol.js"),h=a("./node_modules/core-js/internals/use-symbol-as-uid.js"),g=u("wks"),v=e.Symbol,b=h?v:v&&v.withoutSetter||s;n.exports=function(w){return(!r(g,w)||!(c||typeof g[w]=="string"))&&(c&&r(v,w)?g[w]=v[w]:g[w]=b("Symbol."+w)),g[w]}},"./node_modules/core-js/internals/whitespaces.js":function(n){n.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(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/export.js"),u=a("./node_modules/core-js/internals/fails.js"),r=a("./node_modules/core-js/internals/is-array.js"),s=a("./node_modules/core-js/internals/is-object.js"),c=a("./node_modules/core-js/internals/to-object.js"),h=a("./node_modules/core-js/internals/to-length.js"),g=a("./node_modules/core-js/internals/create-property.js"),v=a("./node_modules/core-js/internals/array-species-create.js"),b=a("./node_modules/core-js/internals/array-method-has-species-support.js"),w=a("./node_modules/core-js/internals/well-known-symbol.js"),x=a("./node_modules/core-js/internals/engine-v8-version.js"),T=w("isConcatSpreadable"),O=9007199254740991,E="Maximum allowed index exceeded",C=x>=51||!u(function(){var R=[];return R[T]=!1,R.concat()[0]!==R}),I=b("concat"),_=function(B){if(!s(B))return!1;var M=B[T];return M!==void 0?!!M:r(B)},F=!C||!I;e({target:"Array",proto:!0,forced:F},{concat:function(B){var M=c(this),X=v(M,0),P=0,z,W,U,V,Q;for(z=-1,U=arguments.length;z<U;z++)if(Q=z===-1?M:arguments[z],_(Q)){if(V=h(Q.length),P+V>O)throw TypeError(E);for(W=0;W<V;W++,P++)W in Q&&g(X,P,Q[W])}else{if(P>=O)throw TypeError(E);g(X,P++,Q)}return X.length=P,X}})},"./node_modules/core-js/modules/es.array.iterator.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/to-indexed-object.js"),u=a("./node_modules/core-js/internals/add-to-unscopables.js"),r=a("./node_modules/core-js/internals/iterators.js"),s=a("./node_modules/core-js/internals/internal-state.js"),c=a("./node_modules/core-js/internals/define-iterator.js"),h="Array Iterator",g=s.set,v=s.getterFor(h);n.exports=c(Array,"Array",function(b,w){g(this,{type:h,target:e(b),index:0,kind:w})},function(){var b=v(this),w=b.target,x=b.kind,T=b.index++;return!w||T>=w.length?(b.target=void 0,{value:void 0,done:!0}):x=="keys"?{value:T,done:!1}:x=="values"?{value:w[T],done:!1}:{value:[T,w[T]],done:!1}},"values"),r.Arguments=r.Array,u("keys"),u("values"),u("entries")},"./node_modules/core-js/modules/es.array.join.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/export.js"),u=a("./node_modules/core-js/internals/indexed-object.js"),r=a("./node_modules/core-js/internals/to-indexed-object.js"),s=a("./node_modules/core-js/internals/array-method-is-strict.js"),c=[].join,h=u!=Object,g=s("join",",");e({target:"Array",proto:!0,forced:h||!g},{join:function(b){return c.call(r(this),b===void 0?",":b)}})},"./node_modules/core-js/modules/es.array.map.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/export.js"),u=a("./node_modules/core-js/internals/array-iteration.js").map,r=a("./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(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/export.js"),u=a("./node_modules/core-js/internals/is-object.js"),r=a("./node_modules/core-js/internals/is-array.js"),s=a("./node_modules/core-js/internals/to-absolute-index.js"),c=a("./node_modules/core-js/internals/to-length.js"),h=a("./node_modules/core-js/internals/to-indexed-object.js"),g=a("./node_modules/core-js/internals/create-property.js"),v=a("./node_modules/core-js/internals/well-known-symbol.js"),b=a("./node_modules/core-js/internals/array-method-has-species-support.js"),w=b("slice"),x=v("species"),T=[].slice,O=Math.max;e({target:"Array",proto:!0,forced:!w},{slice:function(C,I){var _=h(this),F=c(_.length),R=s(C,F),B=s(I===void 0?F:I,F),M,X,P;if(r(_)&&(M=_.constructor,typeof M=="function"&&(M===Array||r(M.prototype))?M=void 0:u(M)&&(M=M[x],M===null&&(M=void 0)),M===Array||M===void 0))return T.call(_,R,B);for(X=new(M===void 0?Array:M)(O(B-R,0)),P=0;R<B;R++,P++)R in _&&g(X,P,_[R]);return X.length=P,X}})},"./node_modules/core-js/modules/es.function.name.js":function(n,t,a){var e=a("./node_modules/core-js/internals/descriptors.js"),u=a("./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(v){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/descriptors.js"),u=a("./node_modules/core-js/internals/global.js"),r=a("./node_modules/core-js/internals/is-forced.js"),s=a("./node_modules/core-js/internals/redefine.js"),c=a("./node_modules/core-js/internals/has.js"),h=a("./node_modules/core-js/internals/classof-raw.js"),g=a("./node_modules/core-js/internals/inherit-if-required.js"),v=a("./node_modules/core-js/internals/is-symbol.js"),b=a("./node_modules/core-js/internals/to-primitive.js"),w=a("./node_modules/core-js/internals/fails.js"),x=a("./node_modules/core-js/internals/object-create.js"),T=a("./node_modules/core-js/internals/object-get-own-property-names.js").f,O=a("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,E=a("./node_modules/core-js/internals/object-define-property.js").f,C=a("./node_modules/core-js/internals/string-trim.js").trim,I="Number",_=u[I],F=_.prototype,R=h(x(F))==I,B=function(U){if(v(U))throw TypeError("Cannot convert a Symbol value to a number");var V=b(U,"number"),Q,G,te,$,le,re,Se,Re;if(typeof V=="string"&&V.length>2){if(V=C(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,$=49;break;case 79:case 111:te=8,$=55;break;default:return+V}for(le=V.slice(2),re=le.length,Se=0;Se<re;Se++)if(Re=le.charCodeAt(Se),Re<48||Re>$)return NaN;return parseInt(le,te)}}return+V};if(r(I,!_(" 0o1")||!_("0b1")||_("+0x1"))){for(var M=function(U){var V=arguments.length<1?0:U,Q=this;return Q instanceof M&&(R?w(function(){F.valueOf.call(Q)}):h(Q)!=I)?g(new _(B(V)),Q,M):B(V)},X=e?T(_):"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(","),P=0,z;X.length>P;P++)c(_,z=X[P])&&!c(M,z)&&E(M,z,O(_,z));M.prototype=F,F.constructor=M,s(u,I,M)}},"./node_modules/core-js/modules/es.object.assign.js":function(n,t,a){var e=a("./node_modules/core-js/internals/export.js"),u=a("./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(n,t,a){var e=a("./node_modules/core-js/internals/export.js"),u=a("./node_modules/core-js/internals/to-object.js"),r=a("./node_modules/core-js/internals/object-keys.js"),s=a("./node_modules/core-js/internals/fails.js"),c=s(function(){r(1)});e({target:"Object",stat:!0,forced:c},{keys:function(g){return r(u(g))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(n,t,a){var e=a("./node_modules/core-js/internals/to-string-tag-support.js"),u=a("./node_modules/core-js/internals/redefine.js"),r=a("./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(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/redefine.js"),u=a("./node_modules/core-js/internals/an-object.js"),r=a("./node_modules/core-js/internals/to-string.js"),s=a("./node_modules/core-js/internals/fails.js"),c=a("./node_modules/core-js/internals/regexp-flags.js"),h="toString",g=RegExp.prototype,v=g[h],b=s(function(){return v.call({source:"a",flags:"b"})!="/a/b"}),w=v.name!=h;(b||w)&&e(RegExp.prototype,h,function(){var T=u(this),O=r(T.source),E=T.flags,C=r(E===void 0&&T instanceof RegExp&&!("flags"in g)?c.call(T):E);return"/"+O+"/"+C},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/string-multibyte.js").charAt,u=a("./node_modules/core-js/internals/to-string.js"),r=a("./node_modules/core-js/internals/internal-state.js"),s=a("./node_modules/core-js/internals/define-iterator.js"),c="String Iterator",h=r.set,g=r.getterFor(c);s(String,"String",function(v){h(this,{type:c,string:u(v),index:0})},function(){var b=g(this),w=b.string,x=b.index,T;return x>=w.length?{value:void 0,done:!0}:(T=e(w,x),b.index+=T.length,{value:T,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/export.js"),u=a("./node_modules/core-js/internals/create-html.js"),r=a("./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(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/export.js"),u=a("./node_modules/core-js/internals/descriptors.js"),r=a("./node_modules/core-js/internals/global.js"),s=a("./node_modules/core-js/internals/has.js"),c=a("./node_modules/core-js/internals/is-object.js"),h=a("./node_modules/core-js/internals/object-define-property.js").f,g=a("./node_modules/core-js/internals/copy-constructor-properties.js"),v=r.Symbol;if(u&&typeof v=="function"&&(!("description"in v.prototype)||v().description!==void 0)){var b={},w=function(){var I=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),_=this instanceof w?new v(I):I===void 0?v():v(I);return I===""&&(b[_]=!0),_};g(w,v);var x=w.prototype=v.prototype;x.constructor=w;var T=x.toString,O=String(v("test"))=="Symbol(test)",E=/^Symbol\((.*)\)[^)]+$/;h(x,"description",{configurable:!0,get:function(){var I=c(this)?this.valueOf():this,_=T.call(I);if(s(b,I))return"";var F=O?_.slice(7,-1):_.replace(E,"$1");return F===""?void 0:F}}),e({global:!0,forced:!0},{Symbol:w})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(n,t,a){var e=a("./node_modules/core-js/internals/define-well-known-symbol.js");e("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(n,t,a){"use strict";var e=a("./node_modules/core-js/internals/export.js"),u=a("./node_modules/core-js/internals/global.js"),r=a("./node_modules/core-js/internals/get-built-in.js"),s=a("./node_modules/core-js/internals/is-pure.js"),c=a("./node_modules/core-js/internals/descriptors.js"),h=a("./node_modules/core-js/internals/native-symbol.js"),g=a("./node_modules/core-js/internals/fails.js"),v=a("./node_modules/core-js/internals/has.js"),b=a("./node_modules/core-js/internals/is-array.js"),w=a("./node_modules/core-js/internals/is-object.js"),x=a("./node_modules/core-js/internals/is-symbol.js"),T=a("./node_modules/core-js/internals/an-object.js"),O=a("./node_modules/core-js/internals/to-object.js"),E=a("./node_modules/core-js/internals/to-indexed-object.js"),C=a("./node_modules/core-js/internals/to-property-key.js"),I=a("./node_modules/core-js/internals/to-string.js"),_=a("./node_modules/core-js/internals/create-property-descriptor.js"),F=a("./node_modules/core-js/internals/object-create.js"),R=a("./node_modules/core-js/internals/object-keys.js"),B=a("./node_modules/core-js/internals/object-get-own-property-names.js"),M=a("./node_modules/core-js/internals/object-get-own-property-names-external.js"),X=a("./node_modules/core-js/internals/object-get-own-property-symbols.js"),P=a("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),z=a("./node_modules/core-js/internals/object-define-property.js"),W=a("./node_modules/core-js/internals/object-property-is-enumerable.js"),U=a("./node_modules/core-js/internals/create-non-enumerable-property.js"),V=a("./node_modules/core-js/internals/redefine.js"),Q=a("./node_modules/core-js/internals/shared.js"),G=a("./node_modules/core-js/internals/shared-key.js"),te=a("./node_modules/core-js/internals/hidden-keys.js"),$=a("./node_modules/core-js/internals/uid.js"),le=a("./node_modules/core-js/internals/well-known-symbol.js"),re=a("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Se=a("./node_modules/core-js/internals/define-well-known-symbol.js"),Re=a("./node_modules/core-js/internals/set-to-string-tag.js"),Pe=a("./node_modules/core-js/internals/internal-state.js"),Je=a("./node_modules/core-js/internals/array-iteration.js").forEach,Ve=G("hidden"),ct="Symbol",Ue="prototype",ue=le("toPrimitive"),rt=Pe.set,ge=Pe.getterFor(ct),Z=Object[Ue],Y=u.Symbol,ee=r("JSON","stringify"),fe=P.f,be=z.f,Ce=M.f,Te=W.f,he=Q("symbols"),ye=Q("op-symbols"),Ie=Q("string-to-symbol-registry"),tt=Q("symbol-to-string-registry"),pt=Q("wks"),st=u.QObject,Fe=!st||!st[Ue]||!st[Ue].findChild,ft=c&&g(function(){return F(be({},"a",{get:function(){return be(this,"a",{value:7}).a}})).a!=7})?function(lt,qe,pe){var Kt=fe(Z,qe);Kt&&delete Z[qe],be(lt,qe,pe),Kt&&lt!==Z&&be(Z,qe,Kt)}:be,et=function(qe,pe){var Kt=he[qe]=F(Y[Ue]);return rt(Kt,{type:ct,tag:qe,description:pe}),c||(Kt.description=pe),Kt},wt=function(qe,pe,Kt){qe===Z&&wt(ye,pe,Kt),T(qe);var hr=C(pe);return T(Kt),v(he,hr)?(Kt.enumerable?(v(qe,Ve)&&qe[Ve][hr]&&(qe[Ve][hr]=!1),Kt=F(Kt,{enumerable:_(0,!1)})):(v(qe,Ve)||be(qe,Ve,_(1,{})),qe[Ve][hr]=!0),ft(qe,hr,Kt)):be(qe,hr,Kt)},Ht=function(qe,pe){T(qe);var Kt=E(pe),hr=R(Kt).concat(de(Kt));return Je(hr,function(gt){(!c||Tt.call(Kt,gt))&&wt(qe,gt,Kt[gt])}),qe},Dt=function(qe,pe){return pe===void 0?F(qe):Ht(F(qe),pe)},Tt=function(qe){var pe=C(qe),Kt=Te.call(this,pe);return this===Z&&v(he,pe)&&!v(ye,pe)?!1:Kt||!v(this,pe)||!v(he,pe)||v(this,Ve)&&this[Ve][pe]?Kt:!0},Bt=function(qe,pe){var Kt=E(qe),hr=C(pe);if(Kt===Z&&v(he,hr)&&!v(ye,hr))return;var gt=fe(Kt,hr);return gt&&v(he,hr)&&!(v(Kt,Ve)&&Kt[Ve][hr])&&(gt.enumerable=!0),gt},Ke=function(qe){var pe=Ce(E(qe)),Kt=[];return Je(pe,function(hr){!v(he,hr)&&!v(te,hr)&&Kt.push(hr)}),Kt},de=function(qe){var pe=qe===Z,Kt=Ce(pe?ye:E(qe)),hr=[];return Je(Kt,function(gt){v(he,gt)&&(!pe||v(Z,gt))&&hr.push(he[gt])}),hr};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:I(arguments[0]),pe=$(qe),Kt=function hr(gt){this===Z&&hr.call(ye,gt),v(this,Ve)&&v(this[Ve],pe)&&(this[Ve][pe]=!1),ft(this,pe,_(1,gt))};return c&&Fe&&ft(Z,pe,{configurable:!0,set:Kt}),et(pe,qe)},V(Y[Ue],"toString",function(){return ge(this).tag}),V(Y,"withoutSetter",function(lt){return et($(lt),lt)}),W.f=Tt,z.f=wt,P.f=Bt,B.f=M.f=Ke,X.f=de,re.f=function(lt){return et(le(lt),lt)},c&&(be(Y[Ue],"description",{configurable:!0,get:function(){return ge(this).description}}),s||V(Z,"propertyIsEnumerable",Tt,{unsafe:!0}))),e({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:Y}),Je(R(pt),function(lt){Se(lt)}),e({target:ct,stat:!0,forced:!h},{for:function(qe){var pe=I(qe);if(v(Ie,pe))return Ie[pe];var Kt=Y(pe);return Ie[pe]=Kt,tt[Kt]=pe,Kt},keyFor:function(qe){if(!x(qe))throw TypeError(qe+" is not a symbol");if(v(tt,qe))return tt[qe]},useSetter:function(){Fe=!0},useSimple:function(){Fe=!1}}),e({target:"Object",stat:!0,forced:!h,sham:!c},{create:Dt,defineProperty:wt,defineProperties:Ht,getOwnPropertyDescriptor:Bt}),e({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:Ke,getOwnPropertySymbols:de}),e({target:"Object",stat:!0,forced:g(function(){X.f(1)})},{getOwnPropertySymbols:function(qe){return X.f(O(qe))}}),ee){var oe=!h||g(function(){var lt=Y();return ee([lt])!="[null]"||ee({a:lt})!="{}"||ee(Object(lt))!="{}"});e({target:"JSON",stat:!0,forced:oe},{stringify:function(qe,pe,Kt){for(var hr=[qe],gt=1,nr;arguments.length>gt;)hr.push(arguments[gt++]);return nr=pe,!w(pe)&&qe===void 0||x(qe)?void 0:(b(pe)||(pe=function(cn,Ar){if(typeof nr=="function"&&(Ar=nr.call(this,cn,Ar)),!x(Ar))return Ar}),hr[1]=pe,ee.apply(null,hr))}})}Y[Ue][ue]||U(Y[Ue],ue,Y[Ue].valueOf),Re(Y,ct),te[Ve]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(n,t,a){var e=a("./node_modules/core-js/internals/global.js"),u=a("./node_modules/core-js/internals/dom-iterables.js"),r=a("./node_modules/core-js/internals/array-for-each.js"),s=a("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var c in u){var h=e[c],g=h&&h.prototype;if(g&&g.forEach!==r)try{s(g,"forEach",r)}catch(v){g.forEach=r}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(n,t,a){var e=a("./node_modules/core-js/internals/global.js"),u=a("./node_modules/core-js/internals/dom-iterables.js"),r=a("./node_modules/core-js/modules/es.array.iterator.js"),s=a("./node_modules/core-js/internals/create-non-enumerable-property.js"),c=a("./node_modules/core-js/internals/well-known-symbol.js"),h=c("iterator"),g=c("toStringTag"),v=r.values;for(var b in u){var w=e[b],x=w&&w.prototype;if(x){if(x[h]!==v)try{s(x,h,v)}catch(O){x[h]=v}if(x[g]||s(x,g,b),u[b]){for(var T in r)if(x[T]!==r[T])try{s(x,T,r[T])}catch(O){x[T]=r[T]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(n){/*!
* @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,a){n.exports=a()})(this,function(){"use strict";function t(st){var Fe=typeof st;return st!==null&&(Fe==="object"||Fe==="function")}function a(st){return typeof st=="function"}var e=void 0;Array.isArray?e=Array.isArray:e=function(Fe){return Object.prototype.toString.call(Fe)==="[object Array]"};var u=e,r=0,s=void 0,c=void 0,h=function(Fe,ft){R[r]=Fe,R[r+1]=ft,r+=2,r===2&&(c?c(B):X())};function g(st){c=st}function v(st){h=st}var b=typeof window!="undefined"?window:void 0,w=b||{},x=w.MutationObserver||w.WebKitMutationObserver,T=typeof self=="undefined"&&typeof p!="undefined"&&{}.toString.call(p)==="[object process]",O=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function E(){return function(){return p.nextTick(B)}}function C(){return typeof s!="undefined"?function(){s(B)}:F()}function I(){var st=0,Fe=new x(B),ft=document.createTextNode("");return Fe.observe(ft,{characterData:!0}),function(){ft.data=st=++st%2}}function _(){var st=new MessageChannel;return st.port1.onmessage=B,function(){return st.port2.postMessage(0)}}function F(){var st=setTimeout;return function(){return st(B,1)}}var R=new Array(1e3);function B(){for(var st=0;st<r;st+=2){var Fe=R[st],ft=R[st+1];Fe(ft),R[st]=void 0,R[st+1]=void 0}r=0}function M(){try{var st=Function("return this")().require("vertx");return s=st.runOnLoop||st.runOnContext,C()}catch(Fe){return F()}}var X=void 0;T?X=E():x?X=I():O?X=_():b===void 0&&!0?X=M():X=F();function P(st,Fe){var ft=this,et=new this.constructor(U);et[W]===void 0&&ee(et);var wt=ft._state;if(wt){var Ht=arguments[wt-1];h(function(){return rt(wt,et,Ht,ft._result)})}else Ue(ft,et,st,Fe);return et}function z(st){var Fe=this;if(st&&typeof st=="object"&&st.constructor===Fe)return st;var ft=new Fe(U);return Pe(ft,st),ft}var W=Math.random().toString(36).substring(2);function U(){}var V=void 0,Q=1,G=2;function te(){return new TypeError("You cannot resolve a promise with itself")}function $(){return new TypeError("A promises callback cannot return that same promise.")}function le(st,Fe,ft,et){try{st.call(Fe,ft,et)}catch(wt){return wt}}function re(st,Fe,ft){h(function(et){var wt=!1,Ht=le(ft,Fe,function(Dt){if(wt)return;wt=!0,Fe!==Dt?Pe(et,Dt):Ve(et,Dt)},function(Dt){if(wt)return;wt=!0,ct(et,Dt)},"Settle: "+(et._label||" unknown promise"));!wt&&Ht&&(wt=!0,ct(et,Ht))},st)}function Se(st,Fe){Fe._state===Q?Ve(st,Fe._result):Fe._state===G?ct(st,Fe._result):Ue(Fe,void 0,function(ft){return Pe(st,ft)},function(ft){return ct(st,ft)})}function Re(st,Fe,ft){Fe.constructor===st.constructor&&ft===P&&Fe.constructor.resolve===z?Se(st,Fe):ft===void 0?Ve(st,Fe):a(ft)?re(st,Fe,ft):Ve(st,Fe)}function Pe(st,Fe){if(st===Fe)ct(st,te());else if(t(Fe)){var ft=void 0;try{ft=Fe.then}catch(et){ct(st,et);return}Re(st,Fe,ft)}else Ve(st,Fe)}function Je(st){st._onerror&&st._onerror(st._result),ue(st)}function Ve(st,Fe){if(st._state!==V)return;st._result=Fe,st._state=Q,st._subscribers.length!==0&&h(ue,st)}function ct(st,Fe){if(st._state!==V)return;st._state=G,st._result=Fe,h(Je,st)}function Ue(st,Fe,ft,et){var wt=st._subscribers,Ht=wt.length;st._onerror=null,wt[Ht]=Fe,wt[Ht+Q]=ft,wt[Ht+G]=et,Ht===0&&st._state&&h(ue,st)}function ue(st){var Fe=st._subscribers,ft=st._state;if(Fe.length===0)return;for(var et=void 0,wt=void 0,Ht=st._result,Dt=0;Dt<Fe.length;Dt+=3)et=Fe[Dt],wt=Fe[Dt+ft],et?rt(ft,et,wt,Ht):wt(Ht);st._subscribers.length=0}function rt(st,Fe,ft,et){var wt=a(ft),Ht=void 0,Dt=void 0,Tt=!0;if(wt){try{Ht=ft(et)}catch(Bt){Tt=!1,Dt=Bt}if(Fe===Ht){ct(Fe,$());return}}else Ht=et;Fe._state!==V||(wt&&Tt?Pe(Fe,Ht):Tt===!1?ct(Fe,Dt):st===Q?Ve(Fe,Ht):st===G&&ct(Fe,Ht))}function ge(st,Fe){try{Fe(function(et){Pe(st,et)},function(et){ct(st,et)})}catch(ft){ct(st,ft)}}var Z=0;function Y(){return Z++}function ee(st){st[W]=Z++,st._state=void 0,st._result=void 0,st._subscribers=[]}function fe(){return new Error("Array Methods must be provided an Array")}var be=function(){function st(Fe,ft){this._instanceConstructor=Fe,this.promise=new Fe(U),this.promise[W]||ee(this.promise),u(ft)?(this.length=ft.length,this._remaining=ft.length,this._result=new Array(this.length),this.length===0?Ve(this.promise,this._result):(this.length=this.length||0,this._enumerate(ft),this._remaining===0&&Ve(this.promise,this._result))):ct(this.promise,fe())}return st.prototype._enumerate=function(ft){for(var et=0;this._state===V&&et<ft.length;et++)this._eachEntry(ft[et],et)},st.prototype._eachEntry=function(ft,et){var wt=this._instanceConstructor,Ht=wt.resolve;if(Ht===z){var Dt=void 0,Tt=void 0,Bt=!1;try{Dt=ft.then}catch(de){Bt=!0,Tt=de}if(Dt===P&&ft._state!==V)this._settledAt(ft._state,et,ft._result);else if(typeof Dt!="function")this._remaining--,this._result[et]=ft;else if(wt===tt){var Ke=new wt(U);Bt?ct(Ke,Tt):Re(Ke,ft,Dt),this._willSettleAt(Ke,et)}else this._willSettleAt(new wt(function(de){return de(ft)}),et)}else this._willSettleAt(Ht(ft),et)},st.prototype._settledAt=function(ft,et,wt){var Ht=this.promise;Ht._state===V&&(this._remaining--,ft===G?ct(Ht,wt):this._result[et]=wt),this._remaining===0&&Ve(Ht,this._result)},st.prototype._willSettleAt=function(ft,et){var wt=this;Ue(ft,void 0,function(Ht){return wt._settledAt(Q,et,Ht)},function(Ht){return wt._settledAt(G,et,Ht)})},st}();function Ce(st){return new be(this,st).promise}function Te(st){var Fe=this;return u(st)?new Fe(function(ft,et){for(var wt=st.length,Ht=0;Ht<wt;Ht++)Fe.resolve(st[Ht]).then(ft,et)}):new Fe(function(ft,et){return et(new TypeError("You must pass an array to race."))})}function he(st){var Fe=this,ft=new Fe(U);return ct(ft,st),ft}function ye(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function Ie(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var tt=function(){function st(Fe){this[W]=Y(),this._result=this._state=void 0,this._subscribers=[],U!==Fe&&(typeof Fe!="function"&&ye(),this instanceof st?ge(this,Fe):Ie())}return st.prototype.catch=function(ft){return this.then(null,ft)},st.prototype.finally=function(ft){var et=this,wt=et.constructor;return a(ft)?et.then(function(Ht){return wt.resolve(ft()).then(function(){return Ht})},function(Ht){return wt.resolve(ft()).then(function(){throw Ht})}):et.then(ft,ft)},st}();tt.prototype.then=P,tt.all=Ce,tt.race=Te,tt.resolve=z,tt.reject=he,tt._setScheduler=g,tt._setAsap=v,tt._asap=h;function pt(){var st=void 0;if(typeof y!="undefined")st=y;else if(typeof self!="undefined")st=self;else try{st=Function("return this")()}catch(et){throw new Error("polyfill failed because global object is unavailable in this environment")}var Fe=st.Promise;if(Fe){var ft=null;try{ft=Object.prototype.toString.call(Fe.resolve())}catch(et){}if(ft==="[object Promise]"&&!Fe.cast)return}st.Promise=tt}return tt.polyfill=pt,tt.Promise=tt,tt})},html2canvas:function(n){"use strict";n.exports=A},jspdf:function(n){"use strict";n.exports=S}},f={};function d(o){var n=f[o];if(n!==void 0)return n.exports;var t=f[o]={exports:{}};return m[o].call(t.exports,t,t.exports,d),t.exports}!function(){d.n=function(o){var n=o&&o.__esModule?function(){return o.default}:function(){return o};return d.d(n,{a:n}),n}}(),!function(){d.d=function(o,n){for(var t in n)d.o(n,t)&&!d.o(o,t)&&Object.defineProperty(o,t,{enumerable:!0,get:n[t]})}}(),!function(){d.o=function(o,n){return Object.prototype.hasOwnProperty.call(o,n)}}(),!function(){d.r=function(o){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})}}();var l={};return!function(){"use strict";/*!**********************!*\
!*** ./src/index.js ***!
\**********************/d.r(l);var o=d("./src/worker.js"),n=d("./src/plugin/jspdf-plugin.js"),t=d("./src/plugin/pagebreaks.js"),a=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=o.default,l.default=e}(),l=l.default,l}()})}).call(this,i("yLpj"),i("Q2Ig"))},"1q3G":function(k,D,i){"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(k,D,i){var y=i("MBQ8"),p=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(A){return A.stack=null,p.superApply(this,"getInitialData",arguments)}}),S=p;k.exports=S},"1u/T":function(k,D,i){var y=i("ProS"),p={type:"selectDataRange",event:"dataRangeSelected",update:"update"};y.registerAction(p,function(S,A){A.eachComponent({mainType:"visualMap",query:S},function(m){m.setSelected(S.selected)})})},"1uat":function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("MlIO"))})(this,function(y){return function(){var p=y,S=p.lib,A=S.Hasher,m=p.x64,f=m.Word,d=m.WordArray,l=p.algo;function o(){return f.create.apply(f,arguments)}var n=[o(1116352408,3609767458),o(1899447441,602891725),o(3049323471,3964484399),o(3921009573,2173295548),o(961987163,4081628472),o(1508970993,3053834265),o(2453635748,2937671579),o(2870763221,3664609560),o(3624381080,2734883394),o(310598401,1164996542),o(607225278,1323610764),o(1426881987,3590304994),o(1925078388,4068182383),o(2162078206,991336113),o(2614888103,633803317),o(3248222580,3479774868),o(3835390401,2666613458),o(4022224774,944711139),o(264347078,2341262773),o(604807628,2007800933),o(770255983,1495990901),o(1249150122,1856431235),o(1555081692,3175218132),o(1996064986,2198950837),o(2554220882,3999719339),o(2821834349,766784016),o(2952996808,2566594879),o(3210313671,3203337956),o(3336571891,1034457026),o(3584528711,2466948901),o(113926993,3758326383),o(338241895,168717936),o(666307205,1188179964),o(773529912,1546045734),o(1294757372,1522805485),o(1396182291,2643833823),o(1695183700,2343527390),o(1986661051,1014477480),o(2177026350,1206759142),o(2456956037,344077627),o(2730485921,1290863460),o(2820302411,3158454273),o(3259730800,3505952657),o(3345764771,106217008),o(3516065817,3606008344),o(3600352804,1432725776),o(4094571909,1467031594),o(275423344,851169720),o(430227734,3100823752),o(506948616,1363258195),o(659060556,3750685593),o(883997877,3785050280),o(958139571,3318307427),o(1322822218,3812723403),o(1537002063,2003034995),o(1747873779,3602036899),o(1955562222,1575990012),o(2024104815,1125592928),o(2227730452,2716904306),o(2361852424,442776044),o(2428436474,593698344),o(2756734187,3733110249),o(3204031479,2999351573),o(3329325298,3815920427),o(3391569614,3928383900),o(3515267271,566280711),o(3940187606,3454069534),o(4118630271,4000239992),o(116418474,1914138554),o(174292421,2731055270),o(289380356,3203993006),o(460393269,320620315),o(685471733,587496836),o(852142971,1086792851),o(1017036298,365543100),o(1126000580,2618297676),o(1288033470,3409855158),o(1501505948,4234509866),o(1607167915,987167468),o(1816402316,1246189591)],t=[];(function(){for(var e=0;e<80;e++)t[e]=o()})();var a=l.SHA512=A.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],g=s[2],v=s[3],b=s[4],w=s[5],x=s[6],T=s[7],O=c.high,E=c.low,C=h.high,I=h.low,_=g.high,F=g.low,R=v.high,B=v.low,M=b.high,X=b.low,P=w.high,z=w.low,W=x.high,U=x.low,V=T.high,Q=T.low,G=O,te=E,$=C,le=I,re=_,Se=F,Re=R,Pe=B,Je=M,Ve=X,ct=P,Ue=z,ue=W,rt=U,ge=V,Z=Q,Y=0;Y<80;Y++){var ee,fe,be=t[Y];if(Y<16)fe=be.high=u[r+Y*2]|0,ee=be.low=u[r+Y*2+1]|0;else{var Ce=t[Y-15],Te=Ce.high,he=Ce.low,ye=(Te>>>1|he<<31)^(Te>>>8|he<<24)^Te>>>7,Ie=(he>>>1|Te<<31)^(he>>>8|Te<<24)^(he>>>7|Te<<25),tt=t[Y-2],pt=tt.high,st=tt.low,Fe=(pt>>>19|st<<13)^(pt<<3|st>>>29)^pt>>>6,ft=(st>>>19|pt<<13)^(st<<3|pt>>>29)^(st>>>6|pt<<26),et=t[Y-7],wt=et.high,Ht=et.low,Dt=t[Y-16],Tt=Dt.high,Bt=Dt.low;ee=Ie+Ht,fe=ye+wt+(ee>>>0<Ie>>>0?1:0),ee=ee+ft,fe=fe+Fe+(ee>>>0<ft>>>0?1:0),ee=ee+Bt,fe=fe+Tt+(ee>>>0<Bt>>>0?1:0),be.high=fe,be.low=ee}var Ke=Je&ct^~Je&ue,de=Ve&Ue^~Ve&rt,oe=G&$^G&re^$&re,lt=te&le^te&Se^le&Se,qe=(G>>>28|te<<4)^(G<<30|te>>>2)^(G<<25|te>>>7),pe=(te>>>28|G<<4)^(te<<30|G>>>2)^(te<<25|G>>>7),Kt=(Je>>>14|Ve<<18)^(Je>>>18|Ve<<14)^(Je<<23|Ve>>>9),hr=(Ve>>>14|Je<<18)^(Ve>>>18|Je<<14)^(Ve<<23|Je>>>9),gt=n[Y],nr=gt.high,mr=gt.low,cn=Z+hr,Ar=ge+Kt+(cn>>>0<Z>>>0?1:0),cn=cn+de,Ar=Ar+Ke+(cn>>>0<de>>>0?1:0),cn=cn+mr,Ar=Ar+nr+(cn>>>0<mr>>>0?1:0),cn=cn+ee,Ar=Ar+fe+(cn>>>0<ee>>>0?1:0),xr=pe+lt,qt=qe+oe+(xr>>>0<pe>>>0?1:0);ge=ue,Z=rt,ue=ct,rt=Ue,ct=Je,Ue=Ve,Ve=Pe+cn|0,Je=Re+Ar+(Ve>>>0<Pe>>>0?1:0)|0,Re=re,Pe=Se,re=$,Se=le,$=G,le=te,te=cn+xr|0,G=Ar+qt+(te>>>0<cn>>>0?1:0)|0}E=c.low=E+te,c.high=O+G+(E>>>0<te>>>0?1:0),I=h.low=I+le,h.high=C+$+(I>>>0<le>>>0?1:0),F=g.low=F+Se,g.high=_+re+(F>>>0<Se>>>0?1:0),B=v.low=B+Pe,v.high=R+Re+(B>>>0<Pe>>>0?1:0),X=b.low=X+Ve,b.high=M+Je+(X>>>0<Ve>>>0?1:0),z=w.low=z+Ue,w.high=P+ct+(z>>>0<Ue>>>0?1:0),U=x.low=U+rt,x.high=W+ue+(U>>>0<rt>>>0?1:0),Q=T.low=Q+Z,T.high=V+ge+(Q>>>0<Z>>>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=A.clone.call(this);return u._hash=this._hash.clone(),u},blockSize:1024/32});p.SHA512=A._createHelper(a),p.HmacSHA512=A._createHmacHelper(a)}(),y.SHA512})},"1vzs":function(k,D,i){"use strict";i.d(D,"a",function(){return r});var y=i("q1tI"),p=i.n(y),S=i("HQEm"),A=i.n(S),m=i("gZBC"),f=i.n(m),d=i("NAnI"),l=i.n(d),o=i("V/uB"),n=i.n(o),t=i("kbBi"),a=i.n(t),e=i("w6Tc"),u=i.n(e);function r(s){var c=s.suffixIcon,h=s.clearIcon,g=s.menuItemSelectedIcon,v=s.removeIcon,b=s.loading,w=s.multiple,x=s.prefixCls,T=h;h||(T=y.createElement(a.a,null));var O=null;if(c!==void 0)O=c;else if(b)O=y.createElement(f.a,{spin:!0});else{var E="".concat(x,"-suffix");O=function(F){var R=F.open,B=F.showSearch;return R&&B?y.createElement(u.a,{className:E}):y.createElement(A.a,{className:E})}}var C=null;g!==void 0?C=g:w?C=y.createElement(l.a,null):C=null;var I=null;return v!==void 0?I=v:I=y.createElement(n.a,null),{clearIcon:T,suffixIcon:O,itemIcon:C,removeIcon:I}}},"1xaR":function(k,D,i){var y=i("ProS"),p=i("bYtY");i("qgGe"),i("NA0q"),i("RPvy");var S=i("mOdp"),A=i("y3NT"),m=i("0/Rx");y.registerVisual(p.curry(S,"sunburst")),y.registerLayout(p.curry(A,"sunburst")),y.registerProcessor(p.curry(m,"sunburst"))},"24YM":function(k,D,i){"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 p="size-sensor-object";D.SensorClassName=p;var S="-1";D.SensorTabIndex=S},"2548":function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("6GrX"),A=i("IUWy"),m=i("IwbS"),f=i("Qxkt"),d=i("gPAo"),l=i("eRkO"),o=y.extendComponentView({type:"toolbox",render:function(t,a,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={}),g=[];p.each(c,function(w,x){g.push(x)}),new d(this._featureNames||[],g).add(v).update(v).remove(p.curry(v,null)).execute(),this._featureNames=g;function v(w,x){var T=g[w],O=g[x],E=c[T],C=new f(E,t,t.ecModel),I;if(u&&u.newTitle!=null&&u.featureName===T&&(E.title=u.newTitle),T&&!O){if(n(T))I={model:C,onclick:C.option.onclick,featureName:T};else{var _=A.get(T);if(!_)return;I=new _(C,a,e)}h[T]=I}else{if(I=h[O],!I)return;I.model=C,I.ecModel=a,I.api=e}if(!T&&O){I.dispose&&I.dispose(a,e);return}if(!C.get("show")||I.unusable){I.remove&&I.remove(a,e);return}b(C,I,T),C.setIconStatus=function(F,R){var B=this.option,M=this.iconPaths;B.iconStatus=B.iconStatus||{},B.iconStatus[F]=R,M[F]&&M[F].trigger(R)},I.render&&I.render(C,a,e,u)}function b(w,x,T){var O=w.getModel("iconStyle"),E=w.getModel("emphasis.iconStyle"),C=x.getIcons?x.getIcons():w.get("icon"),I=w.get("title")||{};if(typeof C=="string"){var _=C,F=I;C={},I={},C[T]=_,I[T]=F}var R=w.iconPaths={};p.each(C,function(B,M){var X=m.createIcon(B,{},{x:-s/2,y:-s/2,width:s,height:s});X.setStyle(O.getItemStyle()),X.hoverStyle=E.getItemStyle(),X.setStyle({text:I[M],textAlign:E.get("textAlign"),textBorderRadius:E.get("textBorderRadius"),textPadding:E.get("textPadding"),textFill:null});var P=t.getModel("tooltip");P&&P.get("show")&&X.attr("tooltip",p.extend({content:I[M],formatter:P.get("formatter",!0)||function(){return I[M]},formatterParams:{componentType:"toolbox",name:M,title:I[M],$vars:["name","title"]},position:P.get("position",!0)||"bottom"},P.option)),m.setHoverStyle(X),t.get("showTitle")&&(X.__title=I[M],X.on("mouseover",function(){var z=E.getItemStyle(),W=t.get("orient")==="vertical"?t.get("right")==null?"right":"left":t.get("bottom")==null?"bottom":"top";X.setStyle({textFill:E.get("textFill")||z.fill||z.stroke||"#000",textBackgroundColor:E.get("textBackgroundColor"),textPosition:E.get("textPosition")||W})}).on("mouseout",function(){X.setStyle({textFill:null,textBackgroundColor:null})})),X.trigger(w.get("iconStatus."+M)||"normal"),r.add(X),X.on("click",p.bind(x.onclick,x,a,e,M)),R[M]=X})}l.layout(r,t,e),r.add(l.makeBackground(r.getBoundingRect(),t)),r.eachChild(function(w){var x=w.__title,T=w.hoverStyle;if(T&&x){var O=S.getBoundingRect(x,S.makeFont(T)),E=w.position[0]+r.position[0],C=w.position[1]+r.position[1]+s,I=!1;C+O.height>e.getHeight()&&(T.textPosition="top",I=!0);var _=I?-5-O.height:s+8;E+O.width/2>e.getWidth()?(T.textPosition=["100%",_],T.textAlign="right"):E-O.width/2<0&&(T.textPosition=[0,_],T.textAlign="left")}})},updateView:function(t,a,e,u){p.each(this._features,function(r){r.updateView&&r.updateView(r.model,a,e,u)})},remove:function(t,a){p.each(this._features,function(e){e.remove&&e.remove(t,a)}),this.group.removeAll()},dispose:function(t,a){p.each(this._features,function(e){e.dispose&&e.dispose(t,a)})}});function n(t){return t.indexOf("my")===0}k.exports=o},"2B6p":function(k,D){function i(y,p,S){var A=y.getZoom(),m=y.getCenter(),f=p.zoom,d=y.dataToPoint(m);if(p.dx!=null&&p.dy!=null){d[0]-=p.dx,d[1]-=p.dy;var m=y.pointToData(d);y.setCenter(m)}if(f!=null){if(S){var l=S.min||0,o=S.max||Infinity;f=Math.max(Math.min(A*f,o),l)/A}y.scale[0]*=f,y.scale[1]*=f;var n=y.position,t=(p.originX-n[0])*(f-1),a=(p.originY-n[1])*(f-1);n[0]-=t,n[1]-=a,y.updateTransform();var m=y.pointToData(d);y.setCenter(m),y.setZoom(f*A)}return{center:y.getCenter(),zoom:y.getZoom()}}D.updateCenterAndZoom=i},"2BaD":function(k,D,i){"use strict";var y=i("VTBJ"),p=i("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"},A=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:A}))};f.displayName="CloseCircleOutlined";var d=D.a=p.forwardRef(f)},"2DNl":function(k,D,i){var y=i("IMiH"),p=i("loD1"),S=i("59Ip"),A=i("aKvl"),m=i("n1HI"),f=i("hX1E"),d=f.normalizeRadian,l=i("Sj9i"),o=i("hyiK"),n=y.CMD,t=Math.PI*2,a=1e-4;function e(x,T){return Math.abs(x-T)<a}var u=[-1,-1,-1],r=[-1,-1];function s(){var x=r[0];r[0]=r[1],r[1]=x}function c(x,T,O,E,C,I,_,F,R,B){if(B>T&&B>E&&B>I&&B>F||B<T&&B<E&&B<I&&B<F)return 0;var M=l.cubicRootAt(T,E,I,F,B,u);if(M===0)return 0;for(var X=0,P=-1,z,W,U=0;U<M;U++){var V=u[U],Q=V===0||V===1?.5:1,G=l.cubicAt(x,O,C,_,V);if(G<R)continue;P<0&&(P=l.cubicExtrema(T,E,I,F,r),r[1]<r[0]&&P>1&&s(),z=l.cubicAt(T,E,I,F,r[0]),P>1&&(W=l.cubicAt(T,E,I,F,r[1]))),P===2?V<r[0]?X+=z<T?Q:-Q:V<r[1]?X+=W<z?Q:-Q:X+=F<W?Q:-Q:V<r[0]?X+=z<T?Q:-Q:X+=F<z?Q:-Q}return X}function h(x,T,O,E,C,I,_,F){if(F>T&&F>E&&F>I||F<T&&F<E&&F<I)return 0;var R=l.quadraticRootAt(T,E,I,F,u);if(R===0)return 0;var B=l.quadraticExtremum(T,E,I);if(B>=0&&B<=1){for(var M=0,X=l.quadraticAt(T,E,I,B),P=0;P<R;P++){var z=u[P]===0||u[P]===1?.5:1,W=l.quadraticAt(x,O,C,u[P]);if(W<_)continue;u[P]<B?M+=X<T?z:-z:M+=I<X?z:-z}return M}else{var z=u[0]===0||u[0]===1?.5:1,W=l.quadraticAt(x,O,C,u[0]);return W<_?0:I<T?z:-z}}function g(x,T,O,E,C,I,_,F){if(F-=T,F>O||F<-O)return 0;var R=Math.sqrt(O*O-F*F);u[0]=-R,u[1]=R;var B=Math.abs(E-C);if(B<1e-4)return 0;if(B%t<1e-4){E=0,C=t;var M=I?1:-1;return _>=u[0]+x&&_<=u[1]+x?M:0}if(I){var R=E;E=d(C),C=d(R)}else E=d(E),C=d(C);E>C&&(C+=t);for(var X=0,P=0;P<2;P++){var z=u[P];if(z+x>_){var W=Math.atan2(F,z),M=I?1:-1;W<0&&(W=t+W),(W>=E&&W<=C||W+t>=E&&W+t<=C)&&(W>Math.PI/2&&W<Math.PI*1.5&&(M=-M),X+=M)}}return X}function v(x,T,O,E,C){for(var I=0,_=0,F=0,R=0,B=0,M=0;M<x.length;){var X=x[M++];X===n.M&&M>1&&(O||(I+=o(_,F,R,B,E,C))),M===1&&(_=x[M],F=x[M+1],R=_,B=F);switch(X){case n.M:R=x[M++],B=x[M++],_=R,F=B;break;case n.L:if(O){if(p.containStroke(_,F,x[M],x[M+1],T,E,C))return!0}else I+=o(_,F,x[M],x[M+1],E,C)||0;_=x[M++],F=x[M++];break;case n.C:if(O){if(S.containStroke(_,F,x[M++],x[M++],x[M++],x[M++],x[M],x[M+1],T,E,C))return!0}else I+=c(_,F,x[M++],x[M++],x[M++],x[M++],x[M],x[M+1],E,C)||0;_=x[M++],F=x[M++];break;case n.Q:if(O){if(A.containStroke(_,F,x[M++],x[M++],x[M],x[M+1],T,E,C))return!0}else I+=h(_,F,x[M++],x[M++],x[M],x[M+1],E,C)||0;_=x[M++],F=x[M++];break;case n.A:var P=x[M++],z=x[M++],W=x[M++],U=x[M++],V=x[M++],Q=x[M++];M+=1;var G=1-x[M++],te=Math.cos(V)*W+P,$=Math.sin(V)*U+z;M>1?I+=o(_,F,te,$,E,C):(R=te,B=$);var le=(E-P)*U/W+P;if(O){if(m.containStroke(P,z,U,V,V+Q,G,T,le,C))return!0}else I+=g(P,z,U,V,V+Q,G,le,C);_=Math.cos(V+Q)*W+P,F=Math.sin(V+Q)*U+z;break;case n.R:R=_=x[M++],B=F=x[M++];var re=x[M++],Se=x[M++],te=R+re,$=B+Se;if(O){if(p.containStroke(R,B,te,B,T,E,C)||p.containStroke(te,B,te,$,T,E,C)||p.containStroke(te,$,R,$,T,E,C)||p.containStroke(R,$,R,B,T,E,C))return!0}else I+=o(te,B,te,$,E,C),I+=o(R,$,R,B,E,C);break;case n.Z:if(O){if(p.containStroke(_,F,R,B,T,E,C))return!0}else I+=o(_,F,R,B,E,C);_=R,F=B;break}}return!O&&!e(F,B)&&(I+=o(_,F,R,B,E,C)||0),I!==0}function b(x,T,O){return v(x,0,!1,T,O)}function w(x,T,O,E){return v(x,T,!0,O,E)}D.contain=b,D.containStroke=w},"2dDv":function(k,D,i){var y=i("bYtY"),p=i("Fofx"),S=i("+TT/"),A=i("aX7z"),m=i("D1WM"),f=i("IwbS"),d=i("OELB"),l=i("72pK"),o=y.each,n=Math.min,t=Math.max,a=Math.floor,e=Math.ceil,u=d.round,r=Math.PI;function s(b,w,x){this._axesMap=y.createHashMap(),this._axesLayout={},this.dimensions=b.dimensions,this._rect,this._model=b,this._init(b,w,x)}s.prototype={type:"parallel",constructor:s,_init:function(b,w,x){var T=b.dimensions,O=b.parallelAxisIndex;o(T,function(E,C){var I=O[C],_=w.getComponent("parallelAxis",I),F=this._axesMap.set(E,new m(E,A.createScaleByModel(_),[0,0],_.get("type"),I)),R=F.type==="category";F.onBand=R&&_.get("boundaryGap"),F.inverse=_.get("inverse"),_.axis=F,F.model=_,F.coordinateSystem=_.coordinateSystem=this},this)},update:function(b,w){this._updateAxesFromSeries(this._model,b)},containPoint:function(b){var w=this._makeLayoutInfo(),x=w.axisBase,T=w.layoutBase,O=w.pixelDimIndex,E=b[1-O],C=b[O];return E>=x&&E<=x+w.axisLength&&C>=T&&C<=T+w.layoutLength},getModel:function(){return this._model},_updateAxesFromSeries:function(b,w){w.eachSeries(function(x){if(!b.contains(x,w))return;var T=x.getData();o(this.dimensions,function(O){var E=this._axesMap.get(O);E.scale.unionExtentFromData(T,T.mapDimension(O)),A.niceScaleExtent(E.scale,E.model)},this)},this)},resize:function(b,w){this._rect=S.getLayoutRect(b.getBoxLayoutParams(),{width:w.getWidth(),height:w.getHeight()}),this._layoutAxes()},getRect:function(){return this._rect},_makeLayoutInfo:function(){var b=this._model,w=this._rect,x=["x","y"],T=["width","height"],O=b.get("layout"),E=O==="horizontal"?0:1,C=w[T[E]],I=[0,C],_=this.dimensions.length,F=c(b.get("axisExpandWidth"),I),R=c(b.get("axisExpandCount")||0,[0,_]),B=b.get("axisExpandable")&&_>3&&_>R&&R>1&&F>0&&C>0,M=b.get("axisExpandWindow"),X;if(M)X=c(M[1]-M[0],I),M[1]=M[0]+X;else{X=c(F*(R-1),I);var P=b.get("axisExpandCenter")||a(_/2);M=[F*P-X/2],M[1]=M[0]+X}var z=(C-X)/(_-R);z<3&&(z=0);var W=[a(u(M[0]/F,1))+1,e(u(M[1]/F,1))-1],U=z/F*M[0];return{layout:O,pixelDimIndex:E,layoutBase:w[x[E]],layoutLength:C,axisBase:w[x[1-E]],axisLength:w[T[1-E]],axisExpandable:B,axisExpandWidth:F,axisCollapseWidth:z,axisExpandWindow:M,axisCount:_,winInnerIndices:W,axisExpandWindow0Pos:U}},_layoutAxes:function(){var b=this._rect,w=this._axesMap,x=this.dimensions,T=this._makeLayoutInfo(),O=T.layout;w.each(function(E){var C=[0,T.axisLength],I=E.inverse?1:0;E.setExtent(C[I],C[1-I])}),o(x,function(E,C){var I=(T.axisExpandable?g:h)(C,T),_={horizontal:{x:I.position,y:T.axisLength},vertical:{x:0,y:I.position}},F={horizontal:r/2,vertical:0},R=[_[O].x+b.x,_[O].y+b.y],B=F[O],M=p.create();p.rotate(M,M,B),p.translate(M,M,R),this._axesLayout[E]={position:R,rotation:B,transform:M,axisNameAvailableWidth:I.axisNameAvailableWidth,axisLabelShow:I.axisLabelShow,nameTruncateMaxWidth:I.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},getAxis:function(b){return this._axesMap.get(b)},dataToPoint:function(b,w){return this.axisCoordToPoint(this._axesMap.get(w).dataToCoord(b),w)},eachActiveState:function(b,w,x,T){x==null&&(x=0),T==null&&(T=b.count());var O=this._axesMap,E=this.dimensions,C=[],I=[];y.each(E,function(z){C.push(b.mapDimension(z)),I.push(O.get(z).model)});for(var _=this.hasAxisBrushed(),F=x;F<T;F++){var R;if(!_)R="normal";else{R="active";for(var B=b.getValues(C,F),M=0,X=E.length;M<X;M++){var P=I[M].getActiveState(B[M]);if(P==="inactive"){R="inactive";break}}}w(R,F)}},hasAxisBrushed:function(){for(var b=this.dimensions,w=this._axesMap,x=!1,T=0,O=b.length;T<O;T++)w.get(b[T]).model.getActiveState()!=="normal"&&(x=!0);return x},axisCoordToPoint:function(b,w){var x=this._axesLayout[w];return f.applyTransform([b,0],x.transform)},getAxisLayout:function(b){return y.clone(this._axesLayout[b])},getSlidedAxisExpandWindow:function(b){var w=this._makeLayoutInfo(),x=w.pixelDimIndex,T=w.axisExpandWindow.slice(),O=T[1]-T[0],E=[0,w.axisExpandWidth*(w.axisCount-1)];if(!this.containPoint(b))return{behavior:"none",axisExpandWindow:T};var C=b[x]-w.layoutBase-w.axisExpandWindow0Pos,I,_="slide",F=w.axisCollapseWidth,R=this._model.get("axisExpandSlideTriggerArea"),B=R[0]!=null;if(F)B&&F&&C<O*R[0]?(_="jump",I=C-O*R[2]):B&&F&&C>O*(1-R[0])?(_="jump",I=C-O*(1-R[2])):(I=C-O*R[1])>=0&&(I=C-O*(1-R[1]))<=0&&(I=0),I*=w.axisExpandWidth/F,I?l(I,T,E,"all"):_="none";else{var O=T[1]-T[0],M=E[1]*C/O;T=[t(0,M-O/2)],T[1]=n(E[1],T[0]+O),T[0]=T[1]-O}return{axisExpandWindow:T,behavior:_}}};function c(b,w){return n(t(b,w[0]),w[1])}function h(b,w){var x=w.layoutLength/(w.axisCount-1);return{position:x*b,axisNameAvailableWidth:x,axisLabelShow:!0}}function g(b,w){var x=w.layoutLength,T=w.axisExpandWidth,O=w.axisCount,E=w.axisCollapseWidth,C=w.winInnerIndices,I,_=E,F=!1,R;return b<C[0]?(I=b*E,R=E):b<=C[1]?(I=w.axisExpandWindow0Pos+b*T-w.axisExpandWindow[0],_=T,F=!0):(I=x-(O-1-b)*E,R=E),{position:I,axisNameAvailableWidth:_,axisLabelShow:F,nameTruncateMaxWidth:R}}var v=s;k.exports=v},"2fGM":function(k,D,i){var y=i("bYtY"),p=i("bLfw"),S=i("nkfE"),A=i("ICMv"),m=p.extend({type:"polarAxis",axis:null,getCoordSysModel:function(){return this.ecModel.queryComponents({mainType:"polar",index:this.option.polarIndex,id:this.option.polarId})[0]}});y.merge(m.prototype,A);var f={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};function d(l,o){return o.type||(o.data?"category":"value")}S("angle",m,d,f.angle),S("radius",m,d,f.radius)},"2fM7":function(k,D,i){"use strict";var y=i("lSNA"),p=i.n(y),S=i("pVnL"),A=i.n(S),m=i("lwsE"),f=i.n(m),d=i("W8MJ"),l=i.n(d),o=i("7W2i"),n=i.n(o),t=i("LQ03"),a=i.n(t),e=i("q1tI"),u=i("BGR+"),r=i("TSYQ"),s=i.n(r),c=i("1OyB"),h=i("vuIU"),g=i("Ji7U"),v=i("LK+K"),b=i("rePB"),w=i("Ff2n"),x=i("ODXe"),T=i("4IlW"),O=i("bX4T"),E=i("YrtM"),C=i("+nKL"),I=function(Me){var Be=Me.className,at=Me.customizeIcon,At=Me.customizeIconProps,Ct=Me.onMouseDown,Yt=Me.onClick,Pr=Me.children,qr;return typeof at=="function"?qr=at(At):qr=at,e.createElement("span",{className:Be,onMouseDown:function(Gt){Gt.preventDefault(),Ct&&Ct(Gt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Yt,"aria-hidden":!0},qr!==void 0?qr:e.createElement("span",{className:s()(Be.split(/\s+/).map(function(An){return"".concat(An,"-icon")}))},Pr))},_=I,F=function(Me,Be){var at=Me.prefixCls,At=Me.id,Ct=Me.flattenOptions,Yt=Me.childrenAsData,Pr=Me.values,qr=Me.searchValue,An=Me.multiple,Gt=Me.defaultActiveFirstOption,vt=Me.height,bt=Me.itemHeight,fr=Me.notFoundContent,Jt=Me.open,Ut=Me.menuItemSelectedIcon,er=Me.virtual,Mt=Me.onSelect,Zt=Me.onToggleOpen,Hr=Me.onActiveValue,Ir=Me.onScroll,Lr=Me.onMouseEnter,dn="".concat(at,"-item"),gn=Object(E.a)(function(){return Ct},[Jt,Ct],function($e,ot){return ot[0]&&$e[1]!==ot[1]}),ri=e.useRef(null),Zn=function(ot){ot.preventDefault()},pi=function(ot){ri.current&&ri.current.scrollTo({index:ot})},Ci=function(ot){for(var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,xt=gn.length,rr=0;rr<xt;rr+=1){var Fr=(ot+rr*Pt+xt)%xt,Vr=gn[Fr],fn=Vr.group,gr=Vr.data;if(!fn&&!gr.disabled)return Fr}return-1},Ni=e.useState(function(){return Ci(0)}),zi=Object(x.a)(Ni,2),it=zi[0],Ne=zi[1],He=function(ot){Ne(ot);var Pt=gn[ot];if(!Pt){Hr(null,-1);return}Hr(Pt.data.value,ot)};e.useEffect(function(){He(Gt!==!1?Ci(0):-1)},[gn.length,qr]),e.useEffect(function(){var $e=setTimeout(function(){if(!An&&Jt&&Pr.size===1){var ot=Array.from(Pr)[0],Pt=gn.findIndex(function(xt){var rr=xt.data;return rr.value===ot});He(Pt),pi(Pt)}});return function(){return clearTimeout($e)}},[Jt]);var Ge=function(ot){ot!==void 0&&Mt(ot,{selected:!Pr.has(ot)}),An||Zt(!1)};if(e.useImperativeHandle(Be,function(){return{onKeyDown:function(ot){var Pt=ot.which;switch(Pt){case T.a.UP:case T.a.DOWN:{var xt=0;if(Pt===T.a.UP?xt=-1:Pt===T.a.DOWN&&(xt=1),xt!==0){var rr=Ci(it+xt,xt);pi(rr),He(rr)}break}case T.a.ENTER:{var Fr=gn[it];Fr&&!Fr.data.disabled?Ge(Fr.data.value):Ge(void 0),Jt&&ot.preventDefault();break}case T.a.ESC:Zt(!1)}},onKeyUp:function(){},scrollTo:function(ot){pi(ot)}}}),gn.length===0)return e.createElement("div",{role:"listbox",id:"".concat(At,"_list"),className:"".concat(dn,"-empty"),onMouseDown:Zn},fr);function nt($e){var ot=gn[$e];if(!ot)return null;var Pt=ot.data||{},xt=Pt.value,rr=Pt.label,Fr=Pt.children,Vr=Object(O.a)(Pt,!0),fn=Yt?Fr:rr;return ot?e.createElement("div",Object.assign({"aria-label":typeof fn=="string"?fn:null},Vr,{key:$e,role:"option",id:"".concat(At,"_list_").concat($e),"aria-selected":Pr.has(xt)}),xt):null}return e.createElement(e.Fragment,null,e.createElement("div",{role:"listbox",id:"".concat(At,"_list"),style:{height:0,width:0,overflow:"hidden"}},nt(it-1),nt(it),nt(it+1)),e.createElement(C.a,{itemKey:"key",ref:ri,data:gn,height:vt,itemHeight:bt,fullHeight:!1,onMouseDown:Zn,onScroll:Ir,virtual:er,onMouseEnter:Lr},function($e,ot){var Pt,xt=$e.group,rr=$e.groupOption,Fr=$e.data,Vr=Fr.label,fn=Fr.key;if(xt)return e.createElement("div",{className:s()(dn,"".concat(dn,"-group"))},Vr!==void 0?Vr:fn);var gr=Fr.disabled,Gn=Fr.value,Mr=Fr.title,Rn=Fr.children,bn=Fr.style,rn=Fr.className,ei=Object(w.a)(Fr,["disabled","value","title","children","style","className"]),fi=Pr.has(Gn),Mi="".concat(dn,"-option"),$r=s()(dn,Mi,rn,(Pt={},Object(b.a)(Pt,"".concat(Mi,"-grouped"),rr),Object(b.a)(Pt,"".concat(Mi,"-active"),it===ot&&!gr),Object(b.a)(Pt,"".concat(Mi,"-disabled"),gr),Object(b.a)(Pt,"".concat(Mi,"-selected"),fi),Pt)),En=Yt?Rn:Vr,Hn=!Ut||typeof Ut=="function"||fi;return e.createElement("div",Object.assign({},ei,{"aria-selected":fi,className:$r,title:Mr,onMouseMove:function(){if(it===ot||gr)return;He(ot)},onClick:function(){gr||Ge(Gn)},style:bn}),e.createElement("div",{className:"".concat(Mi,"-content")},En||Gn),e.isValidElement(Ut)||fi,Hn&&e.createElement(_,{className:"".concat(dn,"-option-state"),customizeIcon:Ut,customizeIconProps:{isSelected:fi}},fi?"\u2713":null))}))},R=e.forwardRef(F);R.displayName="OptionList";var B=R,M=function(){return null};M.isSelectOption=!0;var X=M,P=function(){return null};P.isSelectOptGroup=!0;var z=P,W=i("VTBJ"),U=i("Zm9Q");function V(ke){var Me=ke.key,Be=ke.props,at=Be.children,At=Be.value,Ct=Object(w.a)(Be,["children","value"]);return Object(W.a)({key:Me,value:At!==void 0?At:Me,children:at},Ct)}function Q(ke){var Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return Object(U.a)(ke).map(function(Be,at){if(!e.isValidElement(Be)||!Be.type)return null;var At=Be.type.isSelectOptGroup,Ct=Be.key,Yt=Be.props,Pr=Yt.children,qr=Object(w.a)(Yt,["children"]);return Me||!At?V(Be):Object(W.a)(Object(W.a)({key:"__RC_SELECT_GRP__".concat(Ct===null?at:Ct,"__"),label:Ct},qr),{},{options:Q(Pr)})}).filter(function(Be){return Be})}var G=i("KQm4"),te=i("T5bk"),$=i("U8pU"),le=i("Kwbf");function re(ke){return Array.isArray(ke)?ke:ke!==void 0?[ke]:[]}function Se(ke,Me){var Be=Me.labelInValue,at=Me.combobox;if(ke===void 0||ke===""&&at)return[];var At=Array.isArray(ke)?ke:[ke];return Be?At.map(function(Ct){var Yt=Ct.key,Pr=Ct.value;return Pr!==void 0?Pr:Yt}):At}function Re(ke,Me){var Be=Me.optionLabelProp,at=Me.labelInValue,At=Me.prevValue,Ct=Me.options,Yt=Me.getLabeledValue,Pr=ke;return at&&(Pr=Pr.map(function(qr){return Yt(qr,{options:Ct,prevValue:At,labelInValue:at,optionLabelProp:Be})})),Pr}function Pe(ke,Me){var Be=Object(G.a)(Me),at;for(at=ke.length-1;at>=0&&ke[at].disabled;at-=1);var At=null;return at!==-1&&(At=Be[at],Be.splice(at,1)),{values:Be,removedValue:At}}var Je=typeof window!="undefined"&&window.document&&window.document.documentElement,Ve=Je,ct=0;function Ue(){var ke;return Ve?(ke=ct,ct+=1):ke="TEST_OR_SSR",ke}function ue(ke,Me){var Be=ke.key,at;return"value"in ke&&(at=ke.value),Be!=null?Be:at!==void 0?at:"rc-index-key-".concat(Me)}function rt(ke){var Me=[];function Be(at,At){at.forEach(function(Ct){At||!("options"in Ct)?Me.push({key:ue(Ct,Me.length),groupOption:At,data:Ct}):(Me.push({key:ue(Ct,Me.length),group:!0,data:Ct}),Be(Ct.options,!0))})}return Be(ke,!1),Me}function ge(ke){var Me=Object(W.a)({},ke);return"props"in Me||Object.defineProperty(Me,"props",{get:function(){return Object(le.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Me}}),Me}function Z(ke,Me){var Be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},at=Be.prevValueOptions,At=at===void 0?[]:at,Ct=new Map;return Me.forEach(function(Yt){if(!Yt.group){var Pr=Yt.data;Ct.set(Pr.value,Pr)}}),ke.map(function(Yt){var Pr=Ct.get(Yt);return Pr||(Pr=Object(W.a)({},At.find(function(qr){return qr._INTERNAL_OPTION_VALUE_===Yt}))),ge(Pr)})}var Y=function(Me,Be){var at=Be.options,At=Be.prevValue,Ct=Be.labelInValue,Yt=Be.optionLabelProp,Pr=Z([Me],at)[0],qr={value:Me},An,Gt=re(At);return Ct&&(An=Gt.find(function(vt){return Object($.a)(vt)==="object"&&"value"in vt?vt.value===Me:vt.key===Me})),An&&Object($.a)(An)==="object"&&"label"in An?(qr.label=An.label,Pr&&typeof An.label=="string"&&typeof Pr[Yt]=="string"&&An.label.trim()!==Pr[Yt].trim()&&Object(le.a)(!1,"`label` of `value` is not same as `label` in Select options.")):Pr&&Yt in Pr?qr.label=Pr[Yt]:qr.label=Me,qr.key=qr.value,qr};function ee(ke){return re(ke).join("")}function fe(ke){return function(Me,Be){var at=Me.toLowerCase();if("options"in Be)return ee(Be.label).toLowerCase().includes(at);var At=Be[ke],Ct=ee(At).toLowerCase();return Ct.includes(at)}}function be(ke,Me,Be){var at=Be.optionFilterProp,At=Be.filterOption,Ct=[],Yt;return At===!1?Me:(typeof At=="function"?Yt=At:Yt=fe(at),Me.forEach(function(Pr){if("options"in Pr){var qr=Yt(ke,Pr);if(qr)Ct.push(Pr);else{var An=Pr.options.filter(function(Gt){return Yt(ke,Gt)});An.length&&Ct.push(Object(W.a)(Object(W.a)({},Pr),{},{options:An}))}return}Yt(ke,ge(Pr))&&Ct.push(Pr)}),Ct)}function Ce(ke,Me){if(!Me||!Me.length)return null;var Be=!1;function at(Ct,Yt){var Pr=Object(te.a)(Yt),qr=Pr[0],An=Pr.slice(1);if(!qr)return[Ct];var Gt=Ct.split(qr);return Be=Be||Gt.length>1,Gt.reduce(function(vt,bt){return[].concat(Object(G.a)(vt),Object(G.a)(at(bt,An)))},[]).filter(function(vt){return vt})}var At=at(ke,Me);return Be?At:null}function Te(ke,Me){var Be=Z([ke],Me)[0];return Be.disabled}function he(ke,Me,Be,at){var At=re(Me).slice().sort(),Ct=Object(G.a)(ke),Yt=new Set;return ke.forEach(function(Pr){Pr.options?Pr.options.forEach(function(qr){Yt.add(qr.value)}):Yt.add(Pr.value)}),At.forEach(function(Pr){var qr=at?Pr.value:Pr;if(!Yt.has(qr)){var An;Ct.push(at?(An={},Object(b.a)(An,Be,Pr.label),Object(b.a)(An,"value",qr),An):{value:qr})}}),Ct}var ye=i("6cGi"),Ie=i("HTfv"),tt=i("c+Xe"),pt=function(Me,Be){var at=Me.prefixCls,At=Me.id,Ct=Me.inputElement,Yt=Me.disabled,Pr=Me.tabIndex,qr=Me.autoFocus,An=Me.autoComplete,Gt=Me.editable,vt=Me.accessibilityIndex,bt=Me.value,fr=Me.onKeyDown,Jt=Me.onMouseDown,Ut=Me.onChange,er=Me.onPaste,Mt=Me.onCompositionStart,Zt=Me.onCompositionEnd,Hr=Me.open,Ir=Me.attrs,Lr=Ct||e.createElement("input",null),dn=Lr,gn=dn.ref,ri=dn.props,Zn=ri.onKeyDown,pi=ri.onChange,Ci=ri.onMouseDown,Ni=ri.onCompositionStart,zi=ri.onCompositionEnd,it=ri.style;return Lr=e.cloneElement(Lr,Object(W.a)(Object(W.a)({id:At,ref:Object(tt.a)(Be,gn),disabled:Yt,tabIndex:Pr,autoComplete:An||"off",autoFocus:qr,className:"".concat(at,"-selection-search-input"),style:Object(W.a)(Object(W.a)({},it),{},{opacity:Gt?null:0}),role:"combobox","aria-expanded":Hr,"aria-haspopup":"listbox","aria-owns":"".concat(At,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(At,"_list"),"aria-activedescendant":"".concat(At,"_list_").concat(vt)},Ir),{},{value:Gt?bt:"",readOnly:!Gt,unselectable:Gt?null:"on",onKeyDown:function(He){fr(He),Zn&&Zn(He)},onMouseDown:function(He){Jt(He),Ci&&Ci(He)},onChange:function(He){Ut(He),pi&&pi(He)},onCompositionStart:function(He){Mt(He),Ni&&Ni(He)},onCompositionEnd:function(He){Zt(He),zi&&zi(He)},onPaste:er})),Lr},st=e.forwardRef(pt);st.displayName="Input";var Fe=st;function ft(ke,Me){Ve?e.useLayoutEffect(ke,Me):e.useEffect(ke,Me)}var et="__RC_SELECT_MAX_REST_COUNT__",wt=function(Me){var Be=Me.id,at=Me.prefixCls,At=Me.values,Ct=Me.open,Yt=Me.searchValue,Pr=Me.inputRef,qr=Me.placeholder,An=Me.disabled,Gt=Me.mode,vt=Me.showSearch,bt=Me.autoFocus,fr=Me.autoComplete,Jt=Me.accessibilityIndex,Ut=Me.tabIndex,er=Me.removeIcon,Mt=Me.choiceTransitionName,Zt=Me.maxTagCount,Hr=Me.maxTagTextLength,Ir=Me.maxTagPlaceholder,Lr=Ir===void 0?function(Gn){return"+ ".concat(Gn.length," ...")}:Ir,dn=Me.tagRender,gn=Me.onSelect,ri=Me.onInputChange,Zn=Me.onInputPaste,pi=Me.onInputKeyDown,Ci=Me.onInputMouseDown,Ni=Me.onInputCompositionStart,zi=Me.onInputCompositionEnd,it=e.useState(!1),Ne=Object(x.a)(it,2),He=Ne[0],Ge=Ne[1],nt=e.useRef(null),$e=e.useState(0),ot=Object(x.a)($e,2),Pt=ot[0],xt=ot[1];e.useEffect(function(){Ge(!0)},[]);var rr=Ct||Gt==="tags"?Yt:"",Fr=Gt==="tags"||Ct&&vt;ft(function(){xt(nt.current.scrollWidth)},[rr]);var Vr=At,fn;typeof Zt=="number"&&(fn=At.length-Zt,Vr=At.slice(0,Zt)),typeof Hr=="number"&&(Vr=Vr.map(function(Gn){var Mr=Gn.label,Rn=Object(w.a)(Gn,["label"]),bn=Mr;if(typeof Mr=="string"||typeof Mr=="number"){var rn=String(bn);rn.length>Hr&&(bn="".concat(rn.slice(0,Hr),"..."))}return Object(W.a)(Object(W.a)({},Rn),{},{label:bn})})),fn>0&&Vr.push({key:et,label:typeof Lr=="function"?Lr(At.slice(Zt)):Lr});var gr=e.createElement(Ie.CSSMotionList,{component:!1,keys:Vr,motionName:Mt,motionAppear:He},function(Gn){var Mr=Gn.key,Rn=Gn.label,bn=Gn.value,rn=Gn.disabled,ei=Gn.className,fi=Gn.style,Mi=Mr||bn,$r=Mr!==et&&!rn,En=function(_t){_t.preventDefault(),_t.stopPropagation()},Hn=function(_t){_t&&_t.stopPropagation(),gn(bn,{selected:!1})};return typeof dn=="function"?e.createElement("span",{key:Mi,onMouseDown:En,className:ei,style:fi},dn({label:Rn,value:bn,disabled:rn,closable:$r,onClose:Hn})):e.createElement("span",{key:Mi,className:s()(ei,"".concat(at,"-selection-item"),Object(b.a)({},"".concat(at,"-selection-item-disabled"),rn)),style:fi},e.createElement("span",{className:"".concat(at,"-selection-item-content")},Rn),$r&&e.createElement(_,{className:"".concat(at,"-selection-item-remove"),onMouseDown:En,onClick:Hn,customizeIcon:er},"\xD7"))});return e.createElement(e.Fragment,null,gr,e.createElement("span",{className:"".concat(at,"-selection-search"),style:{width:Pt}},e.createElement(Fe,{ref:Pr,open:Ct,prefixCls:at,id:Be,inputElement:null,disabled:An,autoFocus:bt,autoComplete:fr,editable:Fr,accessibilityIndex:Jt,value:rr,onKeyDown:pi,onMouseDown:Ci,onChange:ri,onPaste:Zn,onCompositionStart:Ni,onCompositionEnd:zi,tabIndex:Ut,attrs:Object(O.a)(Me,!0)}),e.createElement("span",{ref:nt,className:"".concat(at,"-selection-search-mirror"),"aria-hidden":!0},rr,"\xA0")),!At.length&&!rr&&e.createElement("span",{className:"".concat(at,"-selection-placeholder")},qr))},Ht=wt,Dt=function(Me){var Be=Me.inputElement,at=Me.prefixCls,At=Me.id,Ct=Me.inputRef,Yt=Me.disabled,Pr=Me.autoFocus,qr=Me.autoComplete,An=Me.accessibilityIndex,Gt=Me.mode,vt=Me.open,bt=Me.values,fr=Me.placeholder,Jt=Me.tabIndex,Ut=Me.showSearch,er=Me.searchValue,Mt=Me.activeValue,Zt=Me.onInputKeyDown,Hr=Me.onInputMouseDown,Ir=Me.onInputChange,Lr=Me.onInputPaste,dn=Me.onInputCompositionStart,gn=Me.onInputCompositionEnd,ri=e.useState(!1),Zn=Object(x.a)(ri,2),pi=Zn[0],Ci=Zn[1],Ni=Gt==="combobox",zi=Ni||Ut&&vt,it=bt[0],Ne=er||"";Ni&&Mt&&!pi&&(Ne=Mt),e.useEffect(function(){Ni&&Ci(!1)},[Ni,Mt]);var He=Gt!=="combobox"&&!vt?!1:!!Ne,Ge=it&&(typeof it.label=="string"||typeof it.label=="number")?it.label.toString():void 0;return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(at,"-selection-search")},e.createElement(Fe,{ref:Ct,prefixCls:at,id:At,open:vt,inputElement:Be,disabled:Yt,autoFocus:Pr,autoComplete:qr,editable:zi,accessibilityIndex:An,value:Ne,onKeyDown:Zt,onMouseDown:Hr,onChange:function($e){Ci(!0),Ir($e)},onPaste:Lr,onCompositionStart:dn,onCompositionEnd:gn,tabIndex:Jt,attrs:Object(O.a)(Me,!0)})),!Ni&&it&&!He&&e.createElement("span",{className:"".concat(at,"-selection-item"),title:Ge},it.label),!it&&!He&&e.createElement("span",{className:"".concat(at,"-selection-placeholder")},fr))},Tt=Dt;function Bt(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Me=e.useRef(null),Be=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(Be.current)}},[]);function at(At){(At||Me.current===null)&&(Me.current=At),window.clearTimeout(Be.current),Be.current=window.setTimeout(function(){Me.current=null},ke)}return[function(){return Me.current},at]}var Ke=function(Me,Be){var at=Object(e.useRef)(null),At=Object(e.useRef)(!1),Ct=Me.prefixCls,Yt=Me.multiple,Pr=Me.open,qr=Me.mode,An=Me.showSearch,Gt=Me.tokenWithEnter,vt=Me.onSearch,bt=Me.onSearchSubmit,fr=Me.onToggleOpen,Jt=Me.onInputKeyDown,Ut=Me.domRef;e.useImperativeHandle(Be,function(){return{focus:function(){at.current.focus()},blur:function(){at.current.blur()}}});var er=Bt(0),Mt=Object(x.a)(er,2),Zt=Mt[0],Hr=Mt[1],Ir=function(He){var Ge=He.which;(Ge===T.a.UP||Ge===T.a.DOWN)&&He.preventDefault(),Jt&&Jt(He),Ge===T.a.ENTER&&qr==="tags"&&!At.current&&!Pr&&bt(He.target.value),[T.a.SHIFT,T.a.TAB,T.a.BACKSPACE,T.a.ESC].includes(Ge)||fr(!0)},Lr=function(){Hr(!0)},dn=Object(e.useRef)(null),gn=function(He){vt(He,!0,At.current)!==!1&&fr(!0)},ri=function(){At.current=!0},Zn=function(){At.current=!1},pi=function(He){var Ge=He.target.value;if(Gt&&dn.current&&/[\r\n]/.test(dn.current)){var nt=dn.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");Ge=Ge.replace(nt,dn.current)}dn.current=null,gn(Ge)},Ci=function(He){var Ge=He.clipboardData,nt=Ge.getData("text");dn.current=nt},Ni=function(He){var Ge=Zt();if(He.target!==at.current){Ge||He.preventDefault();var nt=document.body.style.msTouchAction!==void 0;nt?setTimeout(function(){at.current.focus()}):at.current.focus()}(qr!=="combobox"&&(!An||!Ge)||!Pr)&&(Pr&&vt("",!0,!1),fr())},zi={inputRef:at,onInputKeyDown:Ir,onInputMouseDown:Lr,onInputChange:pi,onInputPaste:Ci,onInputCompositionStart:ri,onInputCompositionEnd:Zn},it=Yt?e.createElement(Ht,Object.assign({},Me,zi)):e.createElement(Tt,Object.assign({},Me,zi));return e.createElement("div",{ref:Ut,className:"".concat(Ct,"-selector"),onMouseDown:Ni},it)},de=e.forwardRef(Ke);de.displayName="Selector";var oe=de,lt=i("Uaa1"),qe=function(Me){var Be=typeof Me!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Be,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Be,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Be,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Be,adjustY:1}}}},pe=function(Me,Be){var at=Me.prefixCls,At=Me.disabled,Ct=Me.visible,Yt=Me.children,Pr=Me.popupElement,qr=Me.containerWidth,An=Me.animation,Gt=Me.transitionName,vt=Me.dropdownStyle,bt=Me.dropdownClassName,fr=Me.direction,Jt=fr===void 0?"ltr":fr,Ut=Me.dropdownMatchSelectWidth,er=Ut===void 0?!0:Ut,Mt=Me.dropdownRender,Zt=Me.dropdownAlign,Hr=Me.getPopupContainer,Ir=Me.empty,Lr=Me.getTriggerDOMNode,dn=Object(w.a)(Me,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),gn="".concat(at,"-dropdown"),ri=Pr;Mt&&(ri=Mt(Pr));var Zn=e.useMemo(function(){return qe(er)},[er]),pi=An?"".concat(gn,"-").concat(An):Gt,Ci=e.useRef(null);e.useImperativeHandle(Be,function(){return{getPopupElement:function(){return Ci.current}}});var Ni=Object(W.a)({minWidth:qr},vt);return typeof er=="number"?Ni.width=er:er&&(Ni.width=qr),e.createElement(lt.a,Object.assign({},dn,{showAction:[],hideAction:[],popupPlacement:Jt==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:Zn,prefixCls:gn,popupTransitionName:pi,popup:e.createElement("div",{ref:Ci},ri),popupAlign:Zt,popupVisible:Ct,getPopupContainer:Hr,popupClassName:s()(bt,Object(b.a)({},"".concat(gn,"-empty"),Ir)),popupStyle:Ni,getTriggerDOMNode:Lr}),Yt)},Kt=e.forwardRef(pe);Kt.displayName="SelectTrigger";var hr=Kt,gt="RC_SELECT_INTERNAL_PROPS_MARK";function nr(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Me=e.useState(!1),Be=Object(x.a)(Me,2),at=Be[0],At=Be[1],Ct=e.useRef(null),Yt=function(){window.clearTimeout(Ct.current)};e.useEffect(function(){return Yt},[]);var Pr=function(An,Gt){Yt(),Ct.current=window.setTimeout(function(){At(An),Gt&&Gt()},ke)};return[at,Pr,Yt]}function mr(ke,Me,Be){var at=e.useRef(null);at.current={elements:ke.filter(function(At){return At}),open:Me,triggerOpen:Be},e.useEffect(function(){function At(Ct){var Yt=Ct.target;at.current.open&&at.current.elements.every(function(Pr){return!Pr.contains(Yt)&&Pr!==Yt})&&at.current.triggerOpen(!1)}return window.addEventListener("mousedown",At),function(){return window.removeEventListener("mousedown",At)}},[])}function cn(ke){var Me=e.useRef(ke),Be=e.useMemo(function(){var at=new Map;Me.current.forEach(function(Ct){var Yt=Ct.value,Pr=Ct.label;Yt!==Pr&&at.set(Yt,Pr)});var At=ke.map(function(Ct){var Yt=at.get(Ct.value);return Ct.value===Ct.label&&Yt?Object(W.a)(Object(W.a)({},Ct),{},{label:Yt}):Ct});return Me.current=At,At},[ke]);return Be}function Ar(ke,Me){var Be=e.useRef(null),at=e.useMemo(function(){var Ct=new Map;return Me.forEach(function(Yt){var Pr=Yt.data.value;Ct.set(Pr,Yt)}),Ct},[ke,Me]);Be.current=at;var At=function(Yt){return Yt.map(function(Pr){return Be.current.get(Pr)}).filter(Boolean)};return At}var xr=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function qt(ke){var Me=ke.prefixCls,Be=ke.components.optionList,at=ke.convertChildrenToData,At=ke.flattenOptions,Ct=ke.getLabeledValue,Yt=ke.filterOptions,Pr=ke.isValueDisabled,qr=ke.findValueOption,An=ke.warningProps,Gt=ke.fillOptionsWithMissingValue,vt=ke.omitDOMProps;function bt(Jt,Ut){var er,Mt=Jt.prefixCls,Zt=Mt===void 0?Me:Mt,Hr=Jt.className,Ir=Jt.id,Lr=Jt.open,dn=Jt.defaultOpen,gn=Jt.options,ri=Jt.children,Zn=Jt.mode,pi=Jt.value,Ci=Jt.defaultValue,Ni=Jt.labelInValue,zi=Jt.showSearch,it=Jt.inputValue,Ne=Jt.searchValue,He=Jt.filterOption,Ge=Jt.optionFilterProp,nt=Ge===void 0?"value":Ge,$e=Jt.autoClearSearchValue,ot=$e===void 0?!0:$e,Pt=Jt.onSearch,xt=Jt.allowClear,rr=Jt.clearIcon,Fr=Jt.showArrow,Vr=Jt.inputIcon,fn=Jt.menuItemSelectedIcon,gr=Jt.disabled,Gn=Jt.loading,Mr=Jt.defaultActiveFirstOption,Rn=Jt.notFoundContent,bn=Rn===void 0?"Not Found":Rn,rn=Jt.optionLabelProp,ei=Jt.backfill,fi=Jt.getInputElement,Mi=Jt.getPopupContainer,$r=Jt.listHeight,En=$r===void 0?200:$r,Hn=Jt.listItemHeight,zt=Hn===void 0?20:Hn,_t=Jt.animation,Ft=Jt.transitionName,Wt=Jt.virtual,Vt=Jt.dropdownStyle,Lt=Jt.dropdownClassName,cr=Jt.dropdownMatchSelectWidth,vr=Jt.dropdownRender,yr=Jt.dropdownAlign,Dr=Jt.showAction,Kn=Dr===void 0?[]:Dr,Dn=Jt.direction,di=Jt.tokenSeparators,mn=Jt.tagRender,Ur=Jt.onPopupScroll,On=Jt.onDropdownVisibleChange,zn=Jt.onFocus,qn=Jt.onBlur,oi=Jt.onKeyUp,xi=Jt.onKeyDown,Di=Jt.onMouseDown,Li=Jt.onChange,aa=Jt.onSelect,ma=Jt.onDeselect,na=Jt.onClear,Aa=Jt.internalProps,yi=Aa===void 0?{}:Aa,Ln=Object(w.a)(Jt,["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=yi.mark===gt,ha=vt?vt(Ln):Ln;xr.forEach(function(pa){delete ha[pa]});var ea=Object(e.useRef)(null),ca=Object(e.useRef)(null),kr=Object(e.useRef)(null),Sr=Object(e.useRef)(null),yn=Object(e.useMemo)(function(){return(di||[]).some(function(pa){return[`
`,`\r
`].includes(pa)})},[di]),dr=nr(),Rr=Object(x.a)(dr,3),Gr=Rr[0],ln=Rr[1],kn=Rr[2],kt=Object(e.useState)(),_r=Object(x.a)(kt,2),Nr=_r[0],Jr=_r[1];Object(e.useEffect)(function(){Jr("rc_select_".concat(Ue()))},[]);var xn=Ir||Nr,Tn=rn;Tn===void 0&&(Tn=gn?"label":"children");var wn=Zn==="combobox"?!1:Ni,$n=Zn==="tags"||Zn==="multiple",Vn=zi!==void 0?zi:$n||Zn==="combobox",mi=Object(e.useRef)(null);e.useImperativeHandle(Ut,function(){return{focus:kr.current.focus,blur:kr.current.blur}});var Ri=Object(ye.a)(Ci,{value:pi}),vi=Object(x.a)(Ri,2),Bi=vi[0],Gi=vi[1],ta=Object(e.useMemo)(function(){return Se(Bi,{labelInValue:wn,combobox:Zn==="combobox"})},[Bi,wn]),Pi=Object(e.useMemo)(function(){return new Set(ta)},[ta]),Ki=Object(e.useState)(null),Hi=Object(x.a)(Ki,2),Qi=Hi[0],da=Hi[1],Oa=Object(e.useState)(""),ra=Object(x.a)(Oa,2),Da=ra[0],Ra=ra[1],va=Da;Zn==="combobox"&&Bi!==void 0?va=Bi:Ne!==void 0?va=Ne:it&&(va=it);var ga=Object(e.useMemo)(function(){var pa=gn;return pa===void 0&&(pa=at(ri)),Zn==="tags"&&Gt&&(pa=Gt(pa,Bi,Tn,Ni)),pa||[]},[gn,ri,Zn,Bi]),_a=Object(e.useMemo)(function(){return At(ga,Jt)},[ga]),ya=Ar(ta,_a),Ga=Object(e.useMemo)(function(){if(!va||!Vn)return Object(G.a)(ga);var pa=Yt(va,ga,{optionFilterProp:nt,filterOption:Zn==="combobox"&&He===void 0?function(){return!0}:He});return Zn==="tags"&&pa.every(function(Sa){return Sa[nt]!==va})&&pa.unshift({value:va,label:va,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),pa},[ga,va,Zn,Vn]),Ia=Object(e.useMemo)(function(){return At(Ga,Jt)},[Ga]);Object(e.useEffect)(function(){Sr.current&&Sr.current.scrollTo&&Sr.current.scrollTo(0)},[va]);var Wa=Object(e.useMemo)(function(){var pa=ta.map(function(Sa){var Ea=ya([Sa]),Ka=Ct(Sa,{options:Ea,prevValue:Bi,labelInValue:wn,optionLabelProp:Tn});return Object(W.a)(Object(W.a)({},Ka),{},{disabled:Pr(Sa,Ea)})});return!Zn&&pa.length===1&&pa[0].value===null&&pa[0].label===null?[]:pa},[Bi,ga,Zn]);Wa=cn(Wa);var no=function(Sa,Ea,Ka){var so=ya([Sa]),lo=qr([Sa],so)[0];if(!yi.skipTriggerSelect){var wo=wn?Ct(Sa,{options:so,prevValue:Bi,labelInValue:wn,optionLabelProp:Tn}):Sa;Ea&&aa?aa(wo,lo):!Ea&&ma&&ma(wo,lo)}ji&&(Ea&&yi.onRawSelect?yi.onRawSelect(Sa,lo,Ka):!Ea&&yi.onRawDeselect&&yi.onRawDeselect(Sa,lo,Ka))},io=Object(e.useState)([]),uo=Object(x.a)(io,2),$i=uo[0],mo=uo[1],Eo=function(Sa){if(ji&&yi.skipTriggerChange)return;var Ea=ya(Sa),Ka=Re(Array.from(Sa),{labelInValue:wn,options:Ea,getLabeledValue:Ct,prevValue:Bi,optionLabelProp:Tn}),so=$n?Ka:Ka[0];if(Li&&(ta.length!==0||Ka.length!==0)){var lo=qr(Sa,Ea,{prevValueOptions:$i});mo(lo.map(function(wo,No){var cs=Object(W.a)({},wo);return Object.defineProperty(cs,"_INTERNAL_OPTION_VALUE_",{get:function(){return Sa[No]}}),cs})),Li(so,$n?lo:lo[0])}Gi(so)},ao=function(Sa,Ea){var Ka=Ea.selected,so=Ea.source;if(gr)return;var lo;$n?(lo=new Set(ta),Ka?lo.add(Sa):lo.delete(Sa)):(lo=new Set,lo.add(Sa)),($n||!$n&&Array.from(ta)[0]!==Sa)&&Eo(Array.from(lo)),no(Sa,!$n||Ka,so),Zn==="combobox"?(Ra(String(Sa)),da("")):(!$n||ot)&&(Ra(""),da(""))},Co=function(Sa,Ea){ao(Sa,Object(W.a)(Object(W.a)({},Ea),{},{source:"option"}))},Ko=function(Sa,Ea){ao(Sa,Object(W.a)(Object(W.a)({},Ea),{},{source:"selection"}))},to=Zn==="combobox"&&fi&&fi()||null,Qo=Object(ye.a)(void 0,{defaultValue:dn,value:Lr}),bo=Object(x.a)(Qo,2),xo=bo[0],ts=bo[1],ka=xo,Io=!bn&&!Ga.length;(gr||Io&&ka&&Zn==="combobox")&&(ka=!1);var Mo=Io?!1:ka,is=function(Sa){var Ea=Sa!==void 0?Sa:!ka;xo!==Ea&&!gr&&(ts(Ea),On&&On(Ea))};mr([ea.current,ca.current&&ca.current.getPopupElement()],Mo,is);var To=function(Sa,Ea,Ka){var so=!0,lo=Sa;da(null);var wo=Ka?null:Ce(Sa,di),No=wo;if(Zn==="combobox")Ea&&Eo([lo]);else if(wo){lo="",Zn!=="tags"&&(No=wo.map(function(hs){var Bs=_a.find(function(rs){var ns=rs.data;return ns[Tn]===hs});return Bs?Bs.data.value:null}).filter(function(hs){return hs!==null}));var cs=Array.from(new Set([].concat(Object(G.a)(ta),Object(G.a)(No))));Eo(cs),cs.forEach(function(hs){no(hs,!0,"input")}),is(!1),so=!1}return Ra(lo),Pt&&va!==lo&&Pt(lo),so},Zo=function(Sa){var Ea=Array.from(new Set([].concat(Object(G.a)(ta),[Sa])));Eo(Ea),Ea.forEach(function(Ka){no(Ka,!0,"input")}),Ra("")};Object(e.useEffect)(function(){xo&&!!gr&&ts(!1)},[gr]),Object(e.useEffect)(function(){!ka&&!$n&&Zn!=="combobox"&&To("",!1,!1)},[ka]);var Vo=Bt(),Lo=Object(x.a)(Vo,2),ho=Lo[0],ja=Lo[1],mt=function(Sa){var Ea=ho(),Ka=Sa.which;if(!ka&&Ka===T.a.ENTER&&is(!0),ja(!!va),Ka===T.a.BACKSPACE&&!Ea&&$n&&!va&&ta.length){var so=Pe(Wa,ta);so.removedValue!==null&&(Eo(so.values),no(so.removedValue,!1,"input"))}for(var lo=arguments.length,wo=new Array(lo>1?lo-1:0),No=1;No<lo;No++)wo[No-1]=arguments[No];if(ka&&Sr.current){var cs;(cs=Sr.current).onKeyDown.apply(cs,[Sa].concat(wo))}xi&&xi.apply(void 0,[Sa].concat(wo))},Cr=function(Sa){for(var Ea=arguments.length,Ka=new Array(Ea>1?Ea-1:0),so=1;so<Ea;so++)Ka[so-1]=arguments[so];if(ka&&Sr.current){var lo;(lo=Sr.current).onKeyUp.apply(lo,[Sa].concat(Ka))}oi&&oi.apply(void 0,[Sa].concat(Ka))},tn=Object(e.useRef)(!1),Yr=function(){ln(!0),gr||(zn&&!tn.current&&zn.apply(void 0,arguments),Kn.includes("focus")&&is(!0)),tn.current=!0},Xn=function(){if(ln(!1,function(){tn.current=!1,is(!1)}),gr)return;va&&(Zn==="tags"?(To("",!1,!1),Eo(Array.from(new Set([].concat(Object(G.a)(ta),[va]))))):Zn==="multiple"&&Ra("")),qn&&qn.apply(void 0,arguments)},hn=[];Object(e.useEffect)(function(){return function(){hn.forEach(function(pa){return clearTimeout(pa)}),hn.splice(0,hn.length)}},[]);var Xr=function(Sa){var Ea=Sa.target,Ka=ca.current&&ca.current.getPopupElement();if(Ka&&Ka.contains(Ea)){var so=setTimeout(function(){var cs=hn.indexOf(so);cs!==-1&&hn.splice(cs,1),kn(),Ka.contains(document.activeElement)||kr.current.focus()});hn.push(so)}if(Di){for(var lo=arguments.length,wo=new Array(lo>1?lo-1:0),No=1;No<lo;No++)wo[No-1]=arguments[No];Di.apply(void 0,[Sa].concat(wo))}},ni=Object(e.useState)(0),nn=Object(x.a)(ni,2),Wn=nn[0],si=nn[1],ui=Mr!==void 0?Mr:Zn!=="combobox",ai=function(Sa,Ea){si(Ea),ei&&Zn==="combobox"&&Sa!==null&&da(String(Sa))},Ei=Object(e.useState)(null),gi=Object(x.a)(Ei,2),Ti=gi[0],_i=gi[1],ia=Object(e.useState)({}),Fi=Object(x.a)(ia,2),fa=Fi[1];function za(){fa({})}ft(function(){if(Mo){var pa=Math.ceil(ea.current.offsetWidth);Ti!==pa&&_i(pa)}},[Mo]);var Ca=e.createElement(Be,{ref:Sr,prefixCls:Zt,id:xn,open:ka,childrenAsData:!gn,options:Ga,flattenOptions:Ia,multiple:$n,values:Pi,height:En,itemHeight:zt,onSelect:Co,onToggleOpen:is,onActiveValue:ai,defaultActiveFirstOption:ui,notFoundContent:bn,onScroll:Ur,searchValue:va,menuItemSelectedIcon:fn,virtual:Wt!==!1&&cr!==!1,onMouseEnter:za}),xa,Ma=function(){ji&&yi.onClear&&yi.onClear(),na&&na(),Eo([]),To("",!1,!1)};!gr&&xt&&(ta.length||va)&&(xa=e.createElement(_,{className:"".concat(Zt,"-clear"),onMouseDown:Ma,customizeIcon:rr},"\xD7"));var Pa=Fr!==void 0?Fr:Gn||!$n&&Zn!=="combobox",Wo;Pa&&(Wo=e.createElement(_,{className:s()("".concat(Zt,"-arrow"),Object(b.a)({},"".concat(Zt,"-arrow-loading"),Gn)),customizeIcon:Vr,customizeIconProps:{loading:Gn,searchValue:va,open:ka,focused:Gr,showSearch:Vn}}));var Oo=s()(Zt,Hr,(er={},Object(b.a)(er,"".concat(Zt,"-focused"),Gr),Object(b.a)(er,"".concat(Zt,"-multiple"),$n),Object(b.a)(er,"".concat(Zt,"-single"),!$n),Object(b.a)(er,"".concat(Zt,"-allow-clear"),xt),Object(b.a)(er,"".concat(Zt,"-show-arrow"),Pa),Object(b.a)(er,"".concat(Zt,"-disabled"),gr),Object(b.a)(er,"".concat(Zt,"-loading"),Gn),Object(b.a)(er,"".concat(Zt,"-open"),ka),Object(b.a)(er,"".concat(Zt,"-customize-input"),to),Object(b.a)(er,"".concat(Zt,"-show-search"),Vn),er));return e.createElement("div",Object.assign({className:Oo},ha,{ref:ea,onMouseDown:Xr,onKeyDown:mt,onKeyUp:Cr,onFocus:Yr,onBlur:Xn}),Gr&&!ka&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(ta.join(", "))),e.createElement(hr,{ref:ca,disabled:gr,prefixCls:Zt,visible:Mo,popupElement:Ca,containerWidth:Ti,animation:_t,transitionName:Ft,dropdownStyle:Vt,dropdownClassName:Lt,direction:Dn,dropdownMatchSelectWidth:cr,dropdownRender:vr,dropdownAlign:yr,getPopupContainer:Mi,empty:!ga.length,getTriggerDOMNode:function(){return mi.current}},e.createElement(oe,Object.assign({},Jt,{domRef:mi,prefixCls:Zt,inputElement:to,ref:kr,id:xn,showSearch:Vn,mode:Zn,accessibilityIndex:Wn,multiple:$n,tagRender:mn,values:Wa,open:ka,onToggleOpen:is,searchValue:va,activeValue:Qi,onSearch:To,onSearchSubmit:Zo,onSelect:Ko,tokenWithEnter:yn}))),Wo,xa)}var fr=e.forwardRef(bt);return fr}function ar(ke){var Me=ke.mode,Be=ke.options,at=ke.children,At=ke.backfill,Ct=ke.allowClear,Yt=ke.placeholder,Pr=ke.getInputElement,qr=ke.showSearch,An=ke.onSearch,Gt=ke.defaultOpen,vt=ke.autoFocus,bt=ke.labelInValue,fr=ke.value,Jt=ke.inputValue,Ut=ke.optionLabelProp,er=Me==="multiple"||Me==="tags",Mt=qr!==void 0?qr:er||Me==="combobox",Zt=Be||Q(at);if(Object(le.a)(Me!=="tags"||Zt.every(function(dn){return!dn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Me==="tags"||Me==="combobox"){var Hr=Zt.some(function(dn){return dn.options?dn.options.some(function(gn){return typeof("value"in gn?gn.value:gn.key)=="number"}):typeof("value"in dn?dn.value:dn.key)=="number"});Object(le.a)(!Hr,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(le.a)(Me!=="combobox"||!Ut,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(le.a)(Me==="combobox"||!At,"`backfill` only works with `combobox` mode."),Object(le.a)(Me==="combobox"||!Pr,"`getInputElement` only work with `combobox` mode."),Object(le.b)(Me!=="combobox"||!Pr||!Ct||!Yt,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),An&&!Mt&&Me!=="combobox"&&Me!=="tags"&&Object(le.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(le.b)(!Gt||vt,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),fr!=null){var Ir=re(fr);Object(le.a)(!bt||Ir.every(function(dn){return Object($.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(le.a)(!er||Array.isArray(fr),"`value` should be array when `mode` is `multiple` or `tags`")}if(at){var Lr=null;Object(U.a)(at).some(function(dn){if(!e.isValidElement(dn)||!dn.type)return!1;var gn=dn.type;if(gn.isSelectOption)return!1;if(gn.isSelectOptGroup){var ri=Object(U.a)(dn.props.children).every(function(Zn){return!e.isValidElement(Zn)||!dn.type||Zn.type.isSelectOption?!0:(Lr=Zn.type,!1)});return!ri}return Lr=gn,!0}),Lr&&Object(le.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Lr.displayName||Lr.name||Lr,"`.")),Object(le.a)(Jt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}var Et=ar,en=qt({prefixCls:"rc-select",components:{optionList:B},convertChildrenToData:Q,flattenOptions:rt,getLabeledValue:Y,filterOptions:be,isValueDisabled:Te,findValueOption:Z,warningProps:Et,fillOptionsWithMissingValue:he}),Mn=function(ke){Object(g.a)(Be,ke);var Me=Object(v.a)(Be);function Be(){var at;return Object(c.a)(this,Be),at=Me.apply(this,arguments),at.selectRef=e.createRef(),at.focus=function(){at.selectRef.current.focus()},at.blur=function(){at.selectRef.current.blur()},at}return Object(h.a)(Be,[{key:"render",value:function(){return e.createElement(en,Object.assign({ref:this.selectRef},this.props))}}]),Be}(e.Component);Mn.Option=X,Mn.OptGroup=z;var Yn=Mn,ci=Yn,Vi=i("H84U"),jn=i("1vzs"),Qn=i("3Nzz"),$t=function(ke){n()(Be,ke);var Me=a()(Be);function Be(){var at;return f()(this,Be),at=Me.apply(this,arguments),at.selectRef=e.createRef(),at.focus=function(){at.selectRef.current&&at.selectRef.current.focus()},at.blur=function(){at.selectRef.current&&at.selectRef.current.blur()},at.getMode=function(){var At=at.props.mode;return At==="combobox"?void 0:At===Be.SECRET_COMBOBOX_MODE_DO_NOT_USE?"combobox":At},at.renderSelect=function(At){var Ct=At.getPopupContainer,Yt=At.getPrefixCls,Pr=At.renderEmpty,qr=At.direction,An=At.virtual,Gt=At.dropdownMatchSelectWidth,vt=at.props,bt=vt.prefixCls,fr=vt.notFoundContent,Jt=vt.className,Ut=vt.size,er=vt.listHeight,Mt=er===void 0?256:er,Zt=vt.listItemHeight,Hr=Zt===void 0?24:Zt,Ir=vt.getPopupContainer,Lr=vt.dropdownClassName,dn=vt.bordered,gn=Yt("select",bt),ri=at.getMode(),Zn=ri==="multiple"||ri==="tags",pi;fr!==void 0?pi=fr:ri==="combobox"?pi=null:pi=Pr("Select");var Ci=Object(jn.a)(A()(A()({},at.props),{multiple:Zn,prefixCls:gn})),Ni=Ci.suffixIcon,zi=Ci.itemIcon,it=Ci.removeIcon,Ne=Ci.clearIcon,He=Object(u.default)(at.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","size","bordered"]),Ge=s()(Lr,p()({},"".concat(gn,"-dropdown-").concat(qr),qr==="rtl"));return e.createElement(Qn.b.Consumer,null,function(nt){var $e,ot=Ut||nt,Pt=s()(Jt,($e={},p()($e,"".concat(gn,"-lg"),ot==="large"),p()($e,"".concat(gn,"-sm"),ot==="small"),p()($e,"".concat(gn,"-rtl"),qr==="rtl"),p()($e,"".concat(gn,"-borderless"),!dn),$e));return e.createElement(ci,A()({ref:at.selectRef,virtual:An,dropdownMatchSelectWidth:Gt},He,{listHeight:Mt,listItemHeight:Hr,mode:ri,prefixCls:gn,direction:qr,inputIcon:Ni,menuItemSelectedIcon:zi,removeIcon:it,clearIcon:Ne,notFoundContent:pi,className:Pt,getPopupContainer:Ir||Ct,dropdownClassName:Ge}))})},at}return l()(Be,[{key:"render",value:function(){return e.createElement(Vi.a,null,this.renderSelect)}}]),Be}(e.Component);$t.Option=X,$t.OptGroup=z,$t.SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",$t.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var Ot=D.a=$t},"2fw6":function(k,D,i){var y=i("y+Vt"),p=y.extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(A,m,f){f&&A.moveTo(m.cx+m.r,m.cy),A.arc(m.cx,m.cy,m.r,0,Math.PI*2,!0)}});k.exports=p},"2gN3":function(k,D,i){var y=i("Kz5y"),p=y["__core-js_shared__"];k.exports=p},"2jpz":function(k,D,i){"use strict";i.d(D,"a",function(){return h});var y=i("cDf5"),p=i.n(y),S=i("q1tI"),A=i.n(S),m=i("TSYQ"),f=i.n(m),d=i("gZBC"),l=i.n(d),o=i("vk+C"),n=i.n(o),t=i("pG52"),a=i.n(t),e=i("Csr3"),u=i.n(e),r=i("e5VY"),s=i.n(r),c=i("0n0R");function h(g,v,b,w){var x=w.isLeaf,T=w.expanded,O=w.loading;if(O)return S.createElement(l.a,{className:"".concat(g,"-switcher-loading-icon")});var E;if(b&&p()(b)==="object"&&(E=b.showLeafIcon),x)return b?p()(b)==="object"&&!E?S.createElement("span",{className:"".concat(g,"-switcher-leaf-line")}):S.createElement(n.a,{className:"".concat(g,"-switcher-line-icon")}):null;var C="".concat(g,"-switcher-icon");return Object(c.b)(v)?Object(c.a)(v,{className:f()(v.props.className||"",C)}):v||(b?T?S.createElement(a.a,{className:"".concat(g,"-switcher-line-icon")}):S.createElement(u.a,{className:"".concat(g,"-switcher-line-icon")}):S.createElement(s.a,{className:C}))}},"2oIt":function(k,D,i){"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(k,D,i){var y=i("ProS");i("ko1b"),i("s2lz"),i("RBEP");var p=i("kMLO"),S=i("nKiI");y.registerVisual(p),y.registerLayout(S)},"2w7y":function(k,D,i){var y=i("ProS");i("qMZE"),i("g0SD"),y.registerPreprocessor(function(p){p.markPoint=p.markPoint||{}})},"33Ds":function(k,D,i){var y=i("ProS"),p=i("b9oc"),S=i("Kagy"),A=i("IUWy"),m=S.toolbox.restore;function f(o){this.model=o}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:m.title};var d=f.prototype;d.onclick=function(o,n,t){p.clear(o),n.dispatchAction({type:"restore",from:this.uid})},A.register("restore",f),y.registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(o,n){n.resetOption("recreate")});var l=f;k.exports=l},"34/K":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(m,f){if(!(m instanceof f))throw new TypeError("Cannot call a class as a function")}function p(m,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(m,l.key,l)}}function S(m,f,d){return f&&p(m.prototype,f),d&&p(m,d),m}var A=function(){function m(){y(this,m),this._lines=0}return S(m,[{key:"decodeRect",value:function(d,l,o,n,t,a,e){this._lines===0&&(this._lines=n);var u=e==8?1:4,r=o*u;if(t.rQwait("RAW",r))return!1;var s=l+(n-this._lines),c=Math.min(this._lines,Math.floor(t.rQlen/r)),h=t.rQ,g=t.rQi;if(e==8){for(var v=o*c,b=new Uint8Array(v*4),w=0;w<v;w++)b[w*4+0]=(h[g+w]>>0&3)*255/3,b[w*4+1]=(h[g+w]>>2&3)*255/3,b[w*4+2]=(h[g+w]>>4&3)*255/3,b[w*4+4]=0;h=b,g=0}return a.blitImage(d,s,o,c,h,g),t.rQskipBytes(c*r),this._lines-=c,!(this._lines>0)}}]),m}();D.default=A},"3690":function(k,D,i){"use strict";function y(o){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(o)}Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var p=A(i("Lo0S"));function S(){if(typeof WeakMap!="function")return null;var o=new WeakMap;return S=function(){return o},o}function A(o){if(o&&o.__esModule)return o;if(o===null||y(o)!=="object"&&typeof o!="function")return{default:o};var n=S();if(n&&n.has(o))return n.get(o);var t={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var e in o)if(Object.prototype.hasOwnProperty.call(o,e)){var u=a?Object.getOwnPropertyDescriptor(o,e):null;u&&(u.get||u.set)?Object.defineProperty(t,e,u):t[e]=o[e]}return t.default=o,n&&n.set(o,t),t}function m(o,n){if(!(o instanceof n))throw new TypeError("Cannot call a class as a function")}function f(o,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(o,a.key,a)}}function d(o,n,t){return n&&f(o.prototype,n),t&&f(o,t),o}var l=function(){function o(){m(this,o),this._tiles=0,this._lastsubencoding=0}return d(o,[{key:"decodeRect",value:function(t,a,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 g=r.rQ,v=r.rQi,b=g[v];if(b>30)throw new Error("Illegal hextile subencoding (subencoding: "+b+")");var w=this._totalTiles-this._tiles,x=w%this._tilesX,T=Math.floor(w/this._tilesX),O=t+x*16,E=a+T*16,C=Math.min(16,t+e-O),I=Math.min(16,a+u-E);if(b&1)h+=C*I*4;else if(b&2&&(h+=4),b&4&&(h+=4),b&8){if(h++,r.rQwait("HEXTILE",h))return!1;var _=g[v+h-1];b&16?h+=_*(4+2):h+=_*2}if(r.rQwait("HEXTILE",h))return!1;if(v++,b===0)this._lastsubencoding&1?p.Debug(" Ignoring blank after RAW"):s.fillRect(O,E,C,I,this._background);else if(b&1)s.blitImage(O,E,C,I,g,v),v+=h-1;else{if(b&2&&(this._background=[g[v],g[v+1],g[v+2],g[v+3]],v+=4),b&4&&(this._foreground=[g[v],g[v+1],g[v+2],g[v+3]],v+=4),s.startTile(O,E,C,I,this._background),b&8){var F=g[v];v++;for(var R=0;R<F;R++){var B=void 0;b&16?(B=[g[v],g[v+1],g[v+2],g[v+3]],v+=4):B=this._foreground;var M=g[v];v++;var X=M>>4,P=M&15,z=g[v];v++;var W=(z>>4)+1,U=(z&15)+1;s.subTile(X,P,W,U,B)}}s.finishTile()}r.rQi=v,this._lastsubencoding=b,this._tiles--}return!0}}]),o}();D.default=l},"3A9y":function(k,D){function i(y){return this.__data__.has(y)}k.exports=i},"3C/r":function(k,D){var i=function(S,A){this.image=S,this.repeat=A,this.type="pattern"};i.prototype.getCanvasPattern=function(p){return p.createPattern(this.image,this.repeat||"repeat")};var y=i;k.exports=y},"3CBa":function(k,D,i){var y=i("hydK"),p=y.createElement,S=i("bYtY"),A=i("SUKs"),m=i("y+Vt"),f=i("Dagg"),d=i("dqUG"),l=i("DBLp"),o=i("sW+o"),n=i("n6Mw"),t=i("vKoX"),a=i("P47w"),e=a.path,u=a.image,r=a.text;function s(C){return parseInt(C,10)}function c(C){return C instanceof m?e:C instanceof f?u:C instanceof d?r:e}function h(C,I){return I&&C&&I.parentNode!==C}function g(C,I,_){if(h(C,I)&&_){var F=_.nextSibling;F?C.insertBefore(I,F):C.appendChild(I)}}function v(C,I){if(h(C,I)){var _=C.firstChild;_?C.insertBefore(I,_):C.appendChild(I)}}function b(C,I){I&&C&&I.parentNode===C&&C.removeChild(I)}function w(C){return C.__textSvgEl}function x(C){return C.__svgEl}var T=function(I,_,F,R){this.root=I,this.storage=_,this._opts=F=S.extend({},F||{});var B=p("svg");B.setAttribute("xmlns","http://www.w3.org/2000/svg"),B.setAttribute("version","1.1"),B.setAttribute("baseProfile","full"),B.style.cssText="user-select:none;position:absolute;left:0;top:0;";var M=p("g");B.appendChild(M);var X=p("g");B.appendChild(X),this.gradientManager=new o(R,X),this.clipPathManager=new n(R,X),this.shadowManager=new t(R,X);var P=document.createElement("div");P.style.cssText="overflow:hidden;position:relative",this._svgDom=B,this._svgRoot=X,this._backgroundRoot=M,this._viewport=P,I.appendChild(P),P.appendChild(B),this.resize(F.width,F.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 I=this.getViewportRoot();if(I)return{offsetLeft:I.offsetLeft||0,offsetTop:I.offsetTop||0}},refresh:function(){var I=this.storage.getDisplayList(!0);this._paintList(I)},setBackgroundColor:function(I){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var _=p("rect");_.setAttribute("width",this.getWidth()),_.setAttribute("height",this.getHeight()),_.setAttribute("x",0),_.setAttribute("y",0),_.setAttribute("id",0),_.style.fill=I,this._backgroundRoot.appendChild(_),this._backgroundNode=_},_paintList:function(I){this.gradientManager.markAllUnused(),this.clipPathManager.markAllUnused(),this.shadowManager.markAllUnused();var _=this._svgRoot,F=this._visibleList,R=I.length,B=[],M;for(M=0;M<R;M++){var X=I[M],P=c(X),z=x(X)||w(X);X.invisible||(X.__dirty&&(P&&P.brush(X),this.clipPathManager.update(X),X.style&&(this.gradientManager.update(X.style.fill),this.gradientManager.update(X.style.stroke),this.shadowManager.update(z,X)),X.__dirty=!1),B.push(X))}var W=l(F,B),U;for(M=0;M<W.length;M++){var V=W[M];if(V.removed)for(var Q=0;Q<V.count;Q++){var X=F[V.indices[Q]],z=x(X),G=w(X);b(_,z),b(_,G)}}for(M=0;M<W.length;M++){var V=W[M];if(V.added)for(var Q=0;Q<V.count;Q++){var X=B[V.indices[Q]],z=x(X),G=w(X);U?g(_,z,U):v(_,z),z?g(_,G,z):U?g(_,G,U):v(_,G),g(_,G,z),U=G||z||U,this.gradientManager.addWithoutUpdate(z||G,X),this.shadowManager.addWithoutUpdate(z||G,X),this.clipPathManager.markUsed(X)}else if(!V.removed)for(var Q=0;Q<V.count;Q++){var X=B[V.indices[Q]],z=x(X),G=w(X),z=x(X),G=w(X);this.gradientManager.markUsed(X),this.gradientManager.addWithoutUpdate(z||G,X),this.shadowManager.markUsed(X),this.shadowManager.addWithoutUpdate(z||G,X),this.clipPathManager.markUsed(X),G&&g(_,G,z),U=z||G||U}}this.gradientManager.removeUnused(),this.clipPathManager.removeUnused(),this.shadowManager.removeUnused(),this._visibleList=B},_getDefs:function(I){var _=this._svgDom,F=_.getElementsByTagName("defs");if(F.length===0)if(I){var F=_.insertBefore(p("defs"),_.firstChild);return F.contains||(F.contains=function(B){var M=F.children;if(!M)return!1;for(var X=M.length-1;X>=0;--X)if(M[X]===B)return!0;return!1}),F}else return null;else return F[0]},resize:function(I,_){var F=this._viewport;F.style.display="none";var R=this._opts;if(I!=null&&(R.width=I),_!=null&&(R.height=_),I=this._getSize(0),_=this._getSize(1),F.style.display="",this._width!==I||this._height!==_){this._width=I,this._height=_;var B=F.style;B.width=I+"px",B.height=_+"px";var M=this._svgDom;M.setAttribute("width",I),M.setAttribute("height",_)}this._backgroundNode&&(this._backgroundNode.setAttribute("width",I),this._backgroundNode.setAttribute("height",_))},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(I){var _=this._opts,F=["width","height"][I],R=["clientWidth","clientHeight"][I],B=["paddingLeft","paddingTop"][I],M=["paddingRight","paddingBottom"][I];if(_[F]!=null&&_[F]!=="auto")return parseFloat(_[F]);var X=this.root,P=document.defaultView.getComputedStyle(X);return(X[R]||s(P[F])||s(X.style[F]))-(s(P[B])||0)-(s(P[M])||0)|0},dispose:function(){this.root.innerHTML="",this._svgRoot=this._backgroundRoot=this._svgDom=this._backgroundNode=this._viewport=this.storage=null},clear:function(){this._viewport&&this.root.removeChild(this._viewport)},toDataURL:function(){this.refresh();var I=encodeURIComponent(this._svgDom.outerHTML.replace(/></g,`>
\r<`));return"data:image/svg+xml;charset=UTF-8,"+I}};function O(C){return function(){A('In SVG mode painter not support method "'+C+'"')}}S.each(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","pathToImage"],function(C){T.prototype[C]=O(C)});var E=T;k.exports=E},"3Fdi":function(k,D){var i=Function.prototype,y=i.toString;function p(S){if(S!=null){try{return y.call(S)}catch(A){}try{return S+""}catch(A){}}return""}k.exports=p},"3LNs":function(k,D,i){var y=i("bYtY"),p=i("Yl7c"),S=i("IwbS"),A=i("zTMp"),m=i("YH21"),f=i("iLNv"),d=i("4NO4"),l=d.makeInner,o=l(),n=y.clone,t=y.bind;function a(){}a.prototype={_group:null,_lastGraphicKey:null,_handle:null,_dragging:!1,_lastValue:null,_lastStatus:null,_payloadInfo:null,animationThreshold:15,render:function(g,v,b,w){var x=v.get("value"),T=v.get("status");if(this._axisModel=g,this._axisPointerModel=v,this._api=b,!w&&this._lastValue===x&&this._lastStatus===T)return;this._lastValue=x,this._lastStatus=T;var O=this._group,E=this._handle;if(!T||T==="hide"){O&&O.hide(),E&&E.hide();return}O&&O.show(),E&&E.show();var C={};this.makeElOption(C,x,g,v,b);var I=C.graphicKey;I!==this._lastGraphicKey&&this.clear(b),this._lastGraphicKey=I;var _=this._moveAnimation=this.determineAnimation(g,v);if(!O)O=this._group=new S.Group,this.createPointerEl(O,C,g,v),this.createLabelEl(O,C,g,v),b.getZr().add(O);else{var F=y.curry(e,v,_);this.updatePointerEl(O,C,F,v),this.updateLabelEl(O,C,F,v)}c(O,v,!0),this._renderHandle(x)},remove:function(g){this.clear(g)},dispose:function(g){this.clear(g)},determineAnimation:function(g,v){var b=v.get("animation"),w=g.axis,x=w.type==="category",T=v.get("snap");if(!T&&!x)return!1;if(b==="auto"||b==null){var O=this.animationThreshold;if(x&&w.getBandWidth()>O)return!0;if(T){var E=A.getAxisInfo(g).seriesDataCount,C=w.getExtent();return Math.abs(C[0]-C[1])/E>O}return!1}return b===!0},makeElOption:function(g,v,b,w,x){},createPointerEl:function(g,v,b,w){var x=v.pointer;if(x){var T=o(g).pointerEl=new S[x.type](n(v.pointer));g.add(T)}},createLabelEl:function(g,v,b,w){if(v.label){var x=o(g).labelEl=new S.Rect(n(v.label));g.add(x),r(x,w)}},updatePointerEl:function(g,v,b){var w=o(g).pointerEl;w&&v.pointer&&(w.setStyle(v.pointer.style),b(w,{shape:v.pointer.shape}))},updateLabelEl:function(g,v,b,w){var x=o(g).labelEl;x&&(x.setStyle(v.label.style),b(x,{shape:v.label.shape,position:v.label.position}),r(x,w))},_renderHandle:function(g){if(this._dragging||!this.updateHandleTransform)return;var v=this._axisPointerModel,b=this._api.getZr(),w=this._handle,x=v.getModel("handle"),T=v.get("status");if(!x.get("show")||!T||T==="hide"){w&&b.remove(w),this._handle=null;return}var O;this._handle||(O=!0,w=this._handle=S.createIcon(x.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(I){m.stop(I.event)},onmousedown:t(this._onHandleDragMove,this,0,0),drift:t(this._onHandleDragMove,this),ondragend:t(this._onHandleDragEnd,this)}),b.add(w)),c(w,v,!1);var E=["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];w.setStyle(x.getItemStyle(null,E));var C=x.get("size");y.isArray(C)||(C=[C,C]),w.attr("scale",[C[0]/2,C[1]/2]),f.createOrUpdate(this,"_doDispatchAxisPointer",x.get("throttle")||0,"fixRate"),this._moveHandleToValue(g,O)},_moveHandleToValue:function(g,v){e(this._axisPointerModel,!v&&this._moveAnimation,this._handle,s(this.getHandleTransform(g,this._axisModel,this._axisPointerModel)))},_onHandleDragMove:function(g,v){var b=this._handle;if(!b)return;this._dragging=!0;var w=this.updateHandleTransform(s(b),[g,v],this._axisModel,this._axisPointerModel);this._payloadInfo=w,b.stopAnimation(),b.attr(s(w)),o(b).lastProp=null,this._doDispatchAxisPointer()},_doDispatchAxisPointer:function(){var g=this._handle;if(!g)return;var v=this._payloadInfo,b=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:v.cursorPoint[0],y:v.cursorPoint[1],tooltipOption:v.tooltipOption,axesInfo:[{axisDim:b.axis.dim,axisIndex:b.componentIndex}]})},_onHandleDragEnd:function(g){this._dragging=!1;var v=this._handle;if(!v)return;var b=this._axisPointerModel.get("value");this._moveHandleToValue(b),this._api.dispatchAction({type:"hideTip"})},getHandleTransform:null,updateHandleTransform:null,clear:function(g){this._lastValue=null,this._lastStatus=null;var v=g.getZr(),b=this._group,w=this._handle;v&&b&&(this._lastGraphicKey=null,b&&v.remove(b),w&&v.remove(w),this._group=null,this._handle=null,this._payloadInfo=null)},doClear:function(){},buildLabel:function(g,v,b){return b=b||0,{x:g[b],y:g[1-b],width:v[b],height:v[1-b]}}},a.prototype.constructor=a;function e(g,v,b,w){u(o(b).lastProp,w)||(o(b).lastProp=w,v?S.updateProps(b,w,g):(b.stopAnimation(),b.attr(w)))}function u(g,v){if(y.isObject(g)&&y.isObject(v)){var b=!0;return y.each(v,function(w,x){b=b&&u(g[x],w)}),!!b}else return g===v}function r(g,v){g[v.get("label.show")?"show":"hide"]()}function s(g){return{position:g.position.slice(),rotation:g.rotation||0}}function c(g,v,b){var w=v.get("z"),x=v.get("zlevel");g&&g.traverse(function(T){T.type!=="group"&&(w!=null&&(T.z=w),x!=null&&(T.zlevel=x),T.silent=b)})}p.enableClassExtend(a);var h=a;k.exports=h},"3OrL":function(k,D,i){var y=i("bYtY"),p=i("6Ic6"),S=i("IwbS"),A=i("y+Vt"),m=["itemStyle"],f=["emphasis","itemStyle"],d=p.extend({type:"boxplot",render:function(e,u,r){var s=e.getData(),c=this.group,h=this._data;this._data||c.removeAll();var g=e.get("layout")==="horizontal"?1:0;s.diff(h).add(function(v){if(s.hasValue(v)){var b=s.getItemLayout(v),w=o(b,s,v,g,!0);s.setItemGraphicEl(v,w),c.add(w)}}).update(function(v,b){var w=h.getItemGraphicEl(b);if(!s.hasValue(v)){c.remove(w);return}var x=s.getItemLayout(v);w?n(x,w,s,v):w=o(x,s,v,g),c.add(w),s.setItemGraphicEl(v,w)}).remove(function(v){var b=h.getItemGraphicEl(v);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=A.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 o(e,u,r,s,c){var h=e.ends,g=new l({shape:{points:c?t(h,s,e):h}});return n(e,g,u,r,c),g}function n(e,u,r,s,c){var h=r.hostModel,g=S[c?"initProps":"updateProps"];g(u,{shape:{points:e.ends}},h,s);var v=r.getItemModel(s),b=v.getModel(m),w=r.getItemVisual(s,"color"),x=b.getItemStyle(["borderColor"]);x.stroke=w,x.strokeNoScale=!0,u.useStyle(x),u.z2=100;var T=v.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 a=d;k.exports=a},"3S7+":function(k,D,i){"use strict";var y=i("lSNA"),p=i.n(y),S=i("J4zp"),A=i.n(S),m=i("pVnL"),f=i.n(m),d=i("q1tI"),l=i.n(d),o=i("U8pU"),n=i("VTBJ"),t=i("Ff2n"),a=i("1OyB"),e=i("vuIU"),u=i("JX7q"),r=i("Ji7U"),s=i("LK+K"),c=i("i8i4"),h=i.n(c),g=i("l4aY"),v=i("m+aA"),b=i("c+Xe"),w=i("zT1h"),x=i("QC+M"),T=i("TSYQ"),O=i.n(T);function E(jn,Qn,$t){return $t?jn[0]===Qn[0]:jn[0]===Qn[0]&&jn[1]===Qn[1]}function C(jn,Qn,$t){var Ot=jn[Qn]||{};return Object(n.a)(Object(n.a)({},Ot),$t)}function I(jn,Qn,$t,Ot){for(var ke=$t.points,Me=Object.keys(jn),Be=0;Be<Me.length;Be+=1){var at=Me[Be];if(E(jn[at].points,ke,Ot))return"".concat(Qn,"-placement-").concat(at)}return""}var _=i("xEkU"),F=i.n(_),R=i("9mu1"),B=i("rePB"),M=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function X(jn,Qn){var $t={};return $t[jn.toLowerCase()]=Qn.toLowerCase(),$t["Webkit".concat(jn)]="webkit".concat(Qn),$t["Moz".concat(jn)]="moz".concat(Qn),$t["ms".concat(jn)]="MS".concat(Qn),$t["O".concat(jn)]="o".concat(Qn.toLowerCase()),$t}function P(jn,Qn){var $t={animationend:X("Animation","AnimationEnd"),transitionend:X("Transition","TransitionEnd")};return jn&&("AnimationEvent"in Qn||delete $t.animationend.animation,"TransitionEvent"in Qn||delete $t.transitionend.transition),$t}var z=P(M,typeof window!="undefined"?window:{}),W={};if(M){var U=document.createElement("div");W=U.style}var V={};function Q(jn){if(V[jn])return V[jn];var Qn=z[jn];if(Qn)for(var $t=Object.keys(Qn),Ot=$t.length,ke=0;ke<Ot;ke+=1){var Me=$t[ke];if(Object.prototype.hasOwnProperty.call(Qn,Me)&&Me in W)return V[jn]=Qn[Me],V[jn]}return""}var G=Q("animationend"),te=Q("transitionend"),$=!!(G&&te);function le(jn,Qn){if(!jn)return null;if(Object(o.a)(jn)==="object"){var $t=Qn.replace(/-\w/g,function(Ot){return Ot[1].toUpperCase()});return jn[$t]}return"".concat(jn,"-").concat(Qn)}var re="none",Se="appear",Re="enter",Pe="leave";function Je(jn){var Qn=jn,$t=!!d.forwardRef;Object(o.a)(jn)==="object"&&(Qn=jn.transitionSupport,$t="forwardRef"in jn?jn.forwardRef:$t);function Ot(Me){return!!(Me.motionName&&Qn)}var ke=function(Me){Object(r.a)(at,Me);var Be=Object(s.a)(at);function at(){var At;return Object(a.a)(this,at),At=Be.apply(this,arguments),At.$cacheEle=null,At.node=null,At.raf=null,At.destroyed=!1,At.deadlineId=null,At.state={status:re,statusActive:!1,newStatus:!1,statusStyle:null},At.onDomUpdate=function(){var Ct=At.state,Yt=Ct.status,Pr=Ct.newStatus,qr=At.props,An=qr.onAppearStart,Gt=qr.onEnterStart,vt=qr.onLeaveStart,bt=qr.onAppearActive,fr=qr.onEnterActive,Jt=qr.onLeaveActive,Ut=qr.motionAppear,er=qr.motionEnter,Mt=qr.motionLeave;if(!Ot(At.props))return;var Zt=At.getElement();At.$cacheEle!==Zt&&(At.removeEventListener(At.$cacheEle),At.addEventListener(Zt),At.$cacheEle=Zt),Pr&&Yt===Se&&Ut?At.updateStatus(An,null,null,function(){At.updateActiveStatus(bt,Se)}):Pr&&Yt===Re&&er?At.updateStatus(Gt,null,null,function(){At.updateActiveStatus(fr,Re)}):Pr&&Yt===Pe&&Mt&&At.updateStatus(vt,null,null,function(){At.updateActiveStatus(Jt,Pe)})},At.onMotionEnd=function(Ct){if(Ct&&!Ct.deadline&&Ct.target!==At.getElement())return;var Yt=At.state,Pr=Yt.status,qr=Yt.statusActive,An=At.props,Gt=An.onAppearEnd,vt=An.onEnterEnd,bt=An.onLeaveEnd;Pr===Se&&qr?At.updateStatus(Gt,{status:re},Ct):Pr===Re&&qr?At.updateStatus(vt,{status:re},Ct):Pr===Pe&&qr&&At.updateStatus(bt,{status:re},Ct)},At.setNodeRef=function(Ct){var Yt=At.props.internalRef;At.node=Ct,Object(b.b)(Yt,Ct)},At.getElement=function(){try{return Object(v.a)(At.node||Object(u.a)(At))}catch(Ct){return At.$cacheEle}},At.addEventListener=function(Ct){if(!Ct)return;Ct.addEventListener(te,At.onMotionEnd),Ct.addEventListener(G,At.onMotionEnd)},At.removeEventListener=function(Ct){if(!Ct)return;Ct.removeEventListener(te,At.onMotionEnd),Ct.removeEventListener(G,At.onMotionEnd)},At.updateStatus=function(Ct,Yt,Pr,qr){var An=Ct?Ct(At.getElement(),Pr):null;if(An===!1||At.destroyed)return;var Gt;qr&&(Gt=function(){At.nextFrame(qr)}),At.setState(Object(n.a)({statusStyle:Object(o.a)(An)==="object"?An:null,newStatus:!1},Yt),Gt)},At.updateActiveStatus=function(Ct,Yt){At.nextFrame(function(){var Pr=At.state.status;if(Pr!==Yt)return;var qr=At.props.motionDeadline;At.updateStatus(Ct,{statusActive:!0}),qr>0&&(At.deadlineId=setTimeout(function(){At.onMotionEnd({deadline:!0})},qr))})},At.nextFrame=function(Ct){At.cancelNextFrame(),At.raf=F()(Ct)},At.cancelNextFrame=function(){At.raf&&(F.a.cancel(At.raf),At.raf=null)},At}return Object(e.a)(at,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this.destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame(),clearTimeout(this.deadlineId)}},{key:"render",value:function(){var Ct,Yt=this.state,Pr=Yt.status,qr=Yt.statusActive,An=Yt.statusStyle,Gt=this.props,vt=Gt.children,bt=Gt.motionName,fr=Gt.visible,Jt=Gt.removeOnLeave,Ut=Gt.leavedClassName,er=Gt.eventProps;return vt?Pr===re||!Ot(this.props)?fr?vt(Object(n.a)({},er),this.setNodeRef):Jt?null:vt(Object(n.a)(Object(n.a)({},er),{},{className:Ut}),this.setNodeRef):vt(Object(n.a)(Object(n.a)({},er),{},{className:O()(le(bt,Pr),(Ct={},Object(B.a)(Ct,le(bt,"".concat(Pr,"-active")),qr),Object(B.a)(Ct,bt,typeof bt=="string"),Ct)),style:An}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(Ct,Yt){var Pr=Yt.prevProps,qr=Yt.status;if(!Ot(Ct))return{};var An=Ct.visible,Gt=Ct.motionAppear,vt=Ct.motionEnter,bt=Ct.motionLeave,fr=Ct.motionLeaveImmediately,Jt={prevProps:Ct};return(qr===Se&&!Gt||qr===Re&&!vt||qr===Pe&&!bt)&&(Jt.status=re,Jt.statusActive=!1,Jt.newStatus=!1),!Pr&&An&&Gt&&(Jt.status=Se,Jt.statusActive=!1,Jt.newStatus=!0),Pr&&!Pr.visible&&An&&vt&&(Jt.status=Re,Jt.statusActive=!1,Jt.newStatus=!0),(Pr&&Pr.visible&&!An&&bt||!Pr&&fr&&!An&&bt)&&(Jt.status=Pe,Jt.statusActive=!1,Jt.newStatus=!0),Jt}}]),at}(d.Component);return ke.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},$t?d.forwardRef(function(Me,Be){return d.createElement(ke,Object.assign({internalRef:Be},Me))}):ke}var Ve=Je($),ct="add",Ue="keep",ue="remove",rt="removed";function ge(jn){var Qn;return jn&&Object(o.a)(jn)==="object"&&"key"in jn?Qn=jn:Qn={key:jn},Object(n.a)(Object(n.a)({},Qn),{},{key:String(Qn.key)})}function Z(){var jn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return jn.map(ge)}function Y(){var jn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Qn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],$t=[],Ot=0,ke=Qn.length,Me=Z(jn),Be=Z(Qn);Me.forEach(function(Ct){for(var Yt=!1,Pr=Ot;Pr<ke;Pr+=1){var qr=Be[Pr];if(qr.key===Ct.key){Ot<Pr&&($t=$t.concat(Be.slice(Ot,Pr).map(function(An){return Object(n.a)(Object(n.a)({},An),{},{status:ct})})),Ot=Pr),$t.push(Object(n.a)(Object(n.a)({},qr),{},{status:Ue})),Ot+=1,Yt=!0;break}}Yt||$t.push(Object(n.a)(Object(n.a)({},Ct),{},{status:ue}))}),Ot<ke&&($t=$t.concat(Be.slice(Ot).map(function(Ct){return Object(n.a)(Object(n.a)({},Ct),{},{status:ct})})));var at={};$t.forEach(function(Ct){var Yt=Ct.key;at[Yt]=(at[Yt]||0)+1});var At=Object.keys(at).filter(function(Ct){return at[Ct]>1});return At.forEach(function(Ct){$t=$t.filter(function(Yt){var Pr=Yt.key,qr=Yt.status;return Pr!==Ct||qr!==ue}),$t.forEach(function(Yt){Yt.key===Ct&&(Yt.status=Ue)})}),$t}var ee=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function fe(jn){var Qn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ve,$t=function(Ot){Object(r.a)(Me,Ot);var ke=Object(s.a)(Me);function Me(){var Be;return Object(a.a)(this,Me),Be=ke.apply(this,arguments),Be.state={keyEntities:[]},Be.removeKey=function(at){Be.setState(function(At){var Ct=At.keyEntities;return{keyEntities:Ct.map(function(Yt){return Yt.key!==at?Yt:Object(n.a)(Object(n.a)({},Yt),{},{status:rt})})}})},Be}return Object(e.a)(Me,[{key:"render",value:function(){var at=this,At=this.state.keyEntities,Ct=this.props,Yt=Ct.component,Pr=Ct.children,qr=Object(t.a)(Ct,["component","children"]),An=Yt||d.Fragment,Gt={};return ee.forEach(function(vt){Gt[vt]=qr[vt],delete qr[vt]}),delete qr.keys,d.createElement(An,Object.assign({},qr),At.map(function(vt){var bt=vt.status,fr=Object(t.a)(vt,["status"]),Jt=bt===ct||bt===Ue;return d.createElement(Qn,Object.assign({},Gt,{key:fr.key,visible:Jt,eventProps:fr,onLeaveEnd:function(){Gt.onLeaveEnd&&Gt.onLeaveEnd.apply(Gt,arguments),at.removeKey(fr.key)}}),Pr)}))}}],[{key:"getDerivedStateFromProps",value:function(at,At){var Ct=at.keys,Yt=At.keyEntities,Pr=Z(Ct);if(!jn)return{keyEntities:Pr.map(function(Gt){return Object(n.a)(Object(n.a)({},Gt),{},{status:Ue})})};var qr=Y(Yt,Pr),An=Yt.length;return{keyEntities:qr.filter(function(Gt){for(var vt=null,bt=0;bt<An;bt+=1){var fr=Yt[bt];if(fr.key===Gt.key){vt=fr;break}}return!(vt&&vt.status===rt&&Gt.status===ue)})}}}]),Me}(d.Component);return $t.defaultProps={component:"div"},$t}var be=fe($),Ce=Ve,Te=function(Qn,$t){var Ot=Qn.prefixCls,ke=Qn.className,Me=Qn.style,Be=Qn.children,at=Qn.onMouseEnter,At=Qn.onMouseLeave,Ct=Qn.onMouseDown,Yt=Qn.onTouchStart,Pr=Be;return d.Children.count(Be)>1&&(Pr=d.createElement("div",{className:"".concat(Ot,"-content")},Be)),d.createElement("div",{ref:$t,className:ke,onMouseEnter:at,onMouseLeave:At,onMouseDown:Ct,onTouchStart:Yt,style:Me},Pr)},he=d.forwardRef(Te);he.displayName="PopupInner";var ye=he;function Ie(jn){var Qn=jn.prefixCls,$t=jn.motion,Ot=jn.animation,ke=jn.transitionName;return $t||(Ot?{motionName:"".concat(Qn,"-").concat(Ot)}:ke?{motionName:ke}:null)}function tt(jn){return jn&&jn.motionName}var pt=function(jn){Object(r.a)($t,jn);var Qn=Object(s.a)($t);function $t(){var Ot;return Object(a.a)(this,$t),Ot=Qn.apply(this,arguments),Ot.state={targetWidth:void 0,targetHeight:void 0,status:null,prevVisible:null,alignClassName:null,inMotion:!1},Ot.popupRef=l.a.createRef(),Ot.alignRef=l.a.createRef(),Ot.nextFrameState=null,Ot.nextFrameId=null,Ot.onAlign=function(ke,Me){var Be=Ot.state.status,at=Ot.props,At=at.getClassNameFromAlign,Ct=at.onAlign,Yt=At(Me);Be==="align"?Ot.setState({alignClassName:Yt,status:"aligned"},function(){Ot.alignRef.current.forceAlign()}):Be==="aligned"?(Ot.setState({alignClassName:Yt,status:"afterAlign"}),Ct(ke,Me)):Ot.setState({alignClassName:Yt})},Ot.onMotionEnd=function(){var ke=Ot.props.visible;Ot.setState({status:ke?"AfterMotion":"stable",inMotion:!1})},Ot.setStateOnNextFrame=function(ke){Ot.cancelFrameState(),Ot.nextFrameState=Object(n.a)(Object(n.a)({},Ot.nextFrameState),ke),Ot.nextFrameId=F()(function(){var Me=Object(n.a)({},Ot.nextFrameState);Ot.nextFrameState=null,Ot.setState(Me)})},Ot.getMotion=function(){return Object(n.a)({},Ie(Ot.props))},Ot.getAlignTarget=function(){var ke=Ot.props,Me=ke.point,Be=ke.getRootDomNode;return Me||Be},Ot.cancelFrameState=function(){F.a.cancel(Ot.nextFrameId)},Ot.renderPopupElement=function(){var ke=Ot.state,Me=ke.status,Be=ke.targetHeight,at=ke.targetWidth,At=ke.alignClassName,Ct=Ot.props,Yt=Ct.prefixCls,Pr=Ct.className,qr=Ct.style,An=Ct.stretch,Gt=Ct.visible,vt=Ct.align,bt=Ct.destroyPopupOnHide,fr=Ct.onMouseEnter,Jt=Ct.onMouseLeave,Ut=Ct.onMouseDown,er=Ct.onTouchStart,Mt=Ct.children,Zt=O()(Yt,Pr,At),Hr="".concat(Yt,"-hidden"),Ir={};An&&(An.indexOf("height")!==-1?Ir.height=Be:An.indexOf("minHeight")!==-1&&(Ir.minHeight=Be),An.indexOf("width")!==-1?Ir.width=at:An.indexOf("minWidth")!==-1&&(Ir.minWidth=at));var Lr=Object(n.a)(Object(n.a)(Object(n.a)(Object(n.a)({},Ir),Ot.getZIndexStyle()),qr),{},{opacity:Me==="stable"||!Gt?void 0:0,pointerEvents:Me==="stable"||!Gt?void 0:"none"}),dn=Ot.getMotion(),gn=Gt;Gt&&Me!=="beforeMotion"&&Me!=="motion"&&Me!=="stable"&&(dn.motionAppear=!1,dn.motionEnter=!1,dn.motionLeave=!1),(Me==="afterAlign"||Me==="beforeMotion")&&(gn=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(pi){var Ci=dn==null?void 0:dn[pi];dn[pi]=function(){for(var Ni=arguments.length,zi=new Array(Ni),it=0;it<Ni;it++)zi[it]=arguments[it];Ci==null||Ci.apply(void 0,zi),Ot.setState({inMotion:!0})}});var ri=!Gt||Me!=="align"&&Me!=="aligned"&&Me!=="stable",Zn=!0;return Me==="stable"&&(Zn=Gt),bt&&!Zn?null:l.a.createElement(Ce,Object.assign({visible:gn},dn,{removeOnLeave:!1,onEnterEnd:Ot.onMotionEnd,onLeaveEnd:Ot.onMotionEnd,leavedClassName:Hr}),function(pi,Ci){var Ni=pi.style,zi=pi.className;return l.a.createElement(R.a,{target:Ot.getAlignTarget(),key:"popup",ref:Ot.alignRef,monitorWindowResize:!0,disabled:ri,align:vt,onAlign:Ot.onAlign},l.a.createElement(ye,{prefixCls:Yt,className:O()(Zt,zi),ref:Object(b.a)(Ci,Ot.popupRef),onMouseEnter:fr,onMouseLeave:Jt,onMouseDown:Ut,onTouchStart:er,style:Object(n.a)(Object(n.a)({},Lr),Ni)},Mt))})},Ot.renderMaskElement=function(){var ke=Ot.props,Me=ke.mask,Be=ke.maskMotion,at=ke.maskTransitionName,At=ke.maskAnimation,Ct=ke.prefixCls,Yt=ke.visible;if(!Me)return null;var Pr={};return Be&&Be.motionName&&(Pr=Object(n.a)({motionAppear:!0},Ie({motion:Be,prefixCls:Ct,transitionName:at,animation:At}))),l.a.createElement(Ce,Object.assign({},Pr,{visible:Yt,removeOnLeave:!0}),function(qr){var An=qr.className;return l.a.createElement("div",{style:Ot.getZIndexStyle(),key:"mask",className:O()("".concat(Ct,"-mask"),An)})})},Ot}return Object(e.a)($t,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var ke=this.state.status,Me=this.props,Be=Me.getRootDomNode,at=Me.visible,At=Me.stretch;if(this.cancelFrameState(),at&&ke!=="stable")switch(ke){case null:{this.setStateOnNextFrame({status:At?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:tt(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var Ct=["measure","align",null,"beforeMotion","motion"],Yt=Ct.indexOf(ke),Pr=Ct[Yt+1];Yt!==-1&&Pr&&this.setStateOnNextFrame({status:Pr})}}if(ke==="measure"){var qr=Be();qr&&this.setStateOnNextFrame({targetHeight:qr.offsetHeight,targetWidth:qr.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var ke=this.props.zIndex;return{zIndex:ke}}},{key:"render",value:function(){return l.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(ke,Me){var Be=ke.visible,at=Object(t.a)(ke,["visible"]),At=Me.prevVisible,Ct=Me.status,Yt=Me.inMotion,Pr={prevVisible:Be,status:Ct},qr=Ie(at);return At===null&&Be===!1?(Pr.status="stable",Pr.inMotion=!1):Be!==At&&(Pr.inMotion=!1,Be||tt(qr)&&Yt?Pr.status=null:Pr.status="stable",Be&&(Pr.alignClassName=null)),Pr}}]),$t}(d.Component),st=pt,Fe=d.createContext(null),ft=Fe;function et(){}function wt(){return""}function Ht(){return window.document}var Dt=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Tt(jn){var Qn=function($t){Object(r.a)(ke,$t);var Ot=Object(s.a)(ke);function ke(Me){var Be;Object(a.a)(this,ke),Be=Ot.call(this,Me),Be.popupRef=l.a.createRef(),Be.triggerRef=l.a.createRef(),Be.onMouseEnter=function(At){var Ct=Be.props.mouseEnterDelay;Be.fireEvents("onMouseEnter",At),Be.delaySetPopupVisible(!0,Ct,Ct?null:At)},Be.onMouseMove=function(At){Be.fireEvents("onMouseMove",At),Be.setPoint(At)},Be.onMouseLeave=function(At){Be.fireEvents("onMouseLeave",At),Be.delaySetPopupVisible(!1,Be.props.mouseLeaveDelay)},Be.onPopupMouseEnter=function(){Be.clearDelayTimer()},Be.onPopupMouseLeave=function(At){if(At.relatedTarget&&!At.relatedTarget.setTimeout&&Be.popupRef.current&&Be.popupRef.current.popupRef.current&&Object(g.a)(Be.popupRef.current.popupRef.current,At.relatedTarget))return;Be.delaySetPopupVisible(!1,Be.props.mouseLeaveDelay)},Be.onFocus=function(At){Be.fireEvents("onFocus",At),Be.clearDelayTimer(),Be.isFocusToShow()&&(Be.focusTime=Date.now(),Be.delaySetPopupVisible(!0,Be.props.focusDelay))},Be.onMouseDown=function(At){Be.fireEvents("onMouseDown",At),Be.preClickTime=Date.now()},Be.onTouchStart=function(At){Be.fireEvents("onTouchStart",At),Be.preTouchTime=Date.now()},Be.onBlur=function(At){Be.fireEvents("onBlur",At),Be.clearDelayTimer(),Be.isBlurToHide()&&Be.delaySetPopupVisible(!1,Be.props.blurDelay)},Be.onContextMenu=function(At){At.preventDefault(),Be.fireEvents("onContextMenu",At),Be.setPopupVisible(!0,At)},Be.onContextMenuClose=function(){Be.isContextMenuToShow()&&Be.close()},Be.onClick=function(At){if(Be.fireEvents("onClick",At),Be.focusTime){var Ct;if(Be.preClickTime&&Be.preTouchTime?Ct=Math.min(Be.preClickTime,Be.preTouchTime):Be.preClickTime?Ct=Be.preClickTime:Be.preTouchTime&&(Ct=Be.preTouchTime),Math.abs(Ct-Be.focusTime)<20)return;Be.focusTime=0}Be.preClickTime=0,Be.preTouchTime=0,Be.isClickToShow()&&(Be.isClickToHide()||Be.isBlurToHide())&&At&&At.preventDefault&&At.preventDefault();var Yt=!Be.state.popupVisible;(Be.isClickToHide()&&!Yt||Yt&&Be.isClickToShow())&&Be.setPopupVisible(!Be.state.popupVisible,At)},Be.onPopupMouseDown=function(){if(Be.hasPopupMouseDown=!0,clearTimeout(Be.mouseDownTimeout),Be.mouseDownTimeout=window.setTimeout(function(){Be.hasPopupMouseDown=!1},0),Be.context){var At;(At=Be.context).onPopupMouseDown.apply(At,arguments)}},Be.onDocumentClick=function(At){if(Be.props.mask&&!Be.props.maskClosable)return;var Ct=At.target,Yt=Be.getRootDomNode(),Pr=Be.getPopupDomNode();!Object(g.a)(Yt,Ct)&&!Object(g.a)(Pr,Ct)&&!Be.hasPopupMouseDown&&Be.close()},Be.getRootDomNode=function(){var At=Be.props.getTriggerDOMNode;if(At)return At(Be.triggerRef.current);try{var Ct=Object(v.a)(Be.triggerRef.current);if(Ct)return Ct}catch(Yt){}return h.a.findDOMNode(Object(u.a)(Be))},Be.getPopupClassNameFromAlign=function(At){var Ct=[],Yt=Be.props,Pr=Yt.popupPlacement,qr=Yt.builtinPlacements,An=Yt.prefixCls,Gt=Yt.alignPoint,vt=Yt.getPopupClassNameFromAlign;return Pr&&qr&&Ct.push(I(qr,An,At,Gt)),vt&&Ct.push(vt(At)),Ct.join(" ")},Be.getComponent=function(){var At=Be.props,Ct=At.prefixCls,Yt=At.destroyPopupOnHide,Pr=At.popupClassName,qr=At.onPopupAlign,An=At.popupMotion,Gt=At.popupAnimation,vt=At.popupTransitionName,bt=At.popupStyle,fr=At.mask,Jt=At.maskAnimation,Ut=At.maskTransitionName,er=At.maskMotion,Mt=At.zIndex,Zt=At.popup,Hr=At.stretch,Ir=At.alignPoint,Lr=Be.state,dn=Lr.popupVisible,gn=Lr.point,ri=Be.getPopupAlign(),Zn={};return Be.isMouseEnterToShow()&&(Zn.onMouseEnter=Be.onPopupMouseEnter),Be.isMouseLeaveToHide()&&(Zn.onMouseLeave=Be.onPopupMouseLeave),Zn.onMouseDown=Be.onPopupMouseDown,Zn.onTouchStart=Be.onPopupMouseDown,l.a.createElement(st,Object.assign({prefixCls:Ct,destroyPopupOnHide:Yt,visible:dn,point:Ir&&gn,className:Pr,align:ri,onAlign:qr,animation:Gt,getClassNameFromAlign:Be.getPopupClassNameFromAlign},Zn,{stretch:Hr,getRootDomNode:Be.getRootDomNode,style:bt,mask:fr,zIndex:Mt,transitionName:vt,maskAnimation:Jt,maskTransitionName:Ut,maskMotion:er,ref:Be.popupRef,motion:An}),typeof Zt=="function"?Zt():Zt)},Be.getContainer=function(){var At=Object(u.a)(Be),Ct=At.props,Yt=document.createElement("div");Yt.style.position="absolute",Yt.style.top="0",Yt.style.left="0",Yt.style.width="100%";var Pr=Ct.getPopupContainer?Ct.getPopupContainer(Be.getRootDomNode()):Ct.getDocument().body;return Pr.appendChild(Yt),Yt},Be.setPoint=function(At){var Ct=Be.props.alignPoint;if(!Ct||!At)return;Be.setState({point:{pageX:At.pageX,pageY:At.pageY}})},Be.handlePortalUpdate=function(){Be.state.prevPopupVisible!==Be.state.popupVisible&&Be.props.afterPopupVisibleChange(Be.state.popupVisible)};var at;return"popupVisible"in Me?at=!!Me.popupVisible:at=!!Me.defaultPopupVisible,Be.state={prevPopupVisible:at,popupVisible:at},Dt.forEach(function(At){Be["fire".concat(At)]=function(Ct){Be.fireEvents(At,Ct)}}),Be}return Object(e.a)(ke,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Be=this.props,at=this.state;if(at.popupVisible){var At;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(At=Be.getDocument(),this.clickOutsideHandler=Object(w.a)(At,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(At=At||Be.getDocument(),this.touchOutsideHandler=Object(w.a)(At,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(At=At||Be.getDocument(),this.contextMenuOutsideHandler1=Object(w.a)(At,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(w.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 Be=this.props,at=Be.popupPlacement,At=Be.popupAlign,Ct=Be.builtinPlacements;return at&&Ct?C(Ct,at,At):At}},{key:"setPopupVisible",value:function(Be,at){var At=this.props.alignPoint,Ct=this.state.popupVisible;this.clearDelayTimer(),Ct!==Be&&("popupVisible"in this.props||this.setState({popupVisible:Be,prevPopupVisible:Ct}),this.props.onPopupVisibleChange(Be)),At&&at&&this.setPoint(at)}},{key:"delaySetPopupVisible",value:function(Be,at,At){var Ct=this,Yt=at*1e3;if(this.clearDelayTimer(),Yt){var Pr=At?{pageX:At.pageX,pageY:At.pageY}:null;this.delayTimer=window.setTimeout(function(){Ct.setPopupVisible(Be,Pr),Ct.clearDelayTimer()},Yt)}else this.setPopupVisible(Be,At)}},{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(Be){var at=this.props.children.props,At=this.props;return at[Be]&&At[Be]?this["fire".concat(Be)]:at[Be]||At[Be]}},{key:"isClickToShow",value:function(){var Be=this.props,at=Be.action,At=Be.showAction;return at.indexOf("click")!==-1||At.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var Be=this.props,at=Be.action,At=Be.showAction;return at.indexOf("contextMenu")!==-1||At.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var Be=this.props,at=Be.action,At=Be.hideAction;return at.indexOf("click")!==-1||At.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var Be=this.props,at=Be.action,At=Be.showAction;return at.indexOf("hover")!==-1||At.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var Be=this.props,at=Be.action,At=Be.hideAction;return at.indexOf("hover")!==-1||At.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var Be=this.props,at=Be.action,At=Be.showAction;return at.indexOf("focus")!==-1||At.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var Be=this.props,at=Be.action,At=Be.hideAction;return at.indexOf("focus")!==-1||At.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(Be,at){var At=this.props.children.props[Be];At&&At(at);var Ct=this.props[Be];Ct&&Ct(at)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var Be=this.state.popupVisible,at=this.props,At=at.children,Ct=at.forceRender,Yt=at.alignPoint,Pr=at.className,qr=at.autoDestroy,An=l.a.Children.only(At),Gt={key:"trigger"};this.isContextMenuToShow()?Gt.onContextMenu=this.onContextMenu:Gt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Gt.onClick=this.onClick,Gt.onMouseDown=this.onMouseDown,Gt.onTouchStart=this.onTouchStart):(Gt.onClick=this.createTwoChains("onClick"),Gt.onMouseDown=this.createTwoChains("onMouseDown"),Gt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Gt.onMouseEnter=this.onMouseEnter,Yt&&(Gt.onMouseMove=this.onMouseMove)):Gt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Gt.onMouseLeave=this.onMouseLeave:Gt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Gt.onFocus=this.onFocus,Gt.onBlur=this.onBlur):(Gt.onFocus=this.createTwoChains("onFocus"),Gt.onBlur=this.createTwoChains("onBlur"));var vt=O()(An&&An.props&&An.props.className,Pr);vt&&(Gt.className=vt);var bt=Object(n.a)({},Gt);Object(b.c)(An)&&(bt.ref=Object(b.a)(this.triggerRef,An.ref));var fr=l.a.cloneElement(An,bt),Jt;return(Be||this.popupRef.current||Ct)&&(Jt=l.a.createElement(jn,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!Be&&qr&&(Jt=null),l.a.createElement(ft.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},fr,Jt)}}],[{key:"getDerivedStateFromProps",value:function(Be,at){var At=Be.popupVisible,Ct={};return At!==void 0&&at.popupVisible!==At&&(Ct.popupVisible=At,Ct.prevPopupVisible=at.popupVisible),Ct}}]),ke}(l.a.Component);return Qn.contextType=ft,Qn.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:wt,getDocument:Ht,onPopupVisibleChange:et,afterPopupVisibleChange:et,onPopupAlign:et,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},Qn}var Bt=Tt(x.a),Ke={adjustX:1,adjustY:1},de=[0,0],oe={left:{points:["cr","cl"],overflow:Ke,offset:[-4,0],targetOffset:de},right:{points:["cl","cr"],overflow:Ke,offset:[4,0],targetOffset:de},top:{points:["bc","tc"],overflow:Ke,offset:[0,-4],targetOffset:de},bottom:{points:["tc","bc"],overflow:Ke,offset:[0,4],targetOffset:de},topLeft:{points:["bl","tl"],overflow:Ke,offset:[0,-4],targetOffset:de},leftTop:{points:["tr","tl"],overflow:Ke,offset:[-4,0],targetOffset:de},topRight:{points:["br","tr"],overflow:Ke,offset:[0,-4],targetOffset:de},rightTop:{points:["tl","tr"],overflow:Ke,offset:[4,0],targetOffset:de},bottomRight:{points:["tr","br"],overflow:Ke,offset:[0,4],targetOffset:de},rightBottom:{points:["bl","br"],overflow:Ke,offset:[4,0],targetOffset:de},bottomLeft:{points:["tl","bl"],overflow:Ke,offset:[0,4],targetOffset:de},leftBottom:{points:["br","bl"],overflow:Ke,offset:[-4,0],targetOffset:de}},lt=oe,qe=function(Qn){var $t=Qn.overlay,Ot=Qn.prefixCls,ke=Qn.id,Me=Qn.overlayInnerStyle;return d.createElement("div",{className:"".concat(Ot,"-inner"),id:ke,role:"tooltip",style:Me},typeof $t=="function"?$t():$t)},pe=qe,Kt=function(Qn,$t){var Ot=Qn.overlayClassName,ke=Qn.trigger,Me=ke===void 0?["hover"]:ke,Be=Qn.mouseEnterDelay,at=Be===void 0?0:Be,At=Qn.mouseLeaveDelay,Ct=At===void 0?.1:At,Yt=Qn.overlayStyle,Pr=Qn.prefixCls,qr=Pr===void 0?"rc-tooltip":Pr,An=Qn.children,Gt=Qn.onVisibleChange,vt=Qn.afterVisibleChange,bt=Qn.transitionName,fr=Qn.animation,Jt=Qn.placement,Ut=Jt===void 0?"right":Jt,er=Qn.align,Mt=er===void 0?{}:er,Zt=Qn.destroyTooltipOnHide,Hr=Zt===void 0?!1:Zt,Ir=Qn.defaultVisible,Lr=Qn.getTooltipContainer,dn=Qn.overlayInnerStyle,gn=Object(t.a)(Qn,["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)($t,function(){return ri.current});var Zn=Object(n.a)({},gn);"visible"in Qn&&(Zn.popupVisible=Qn.visible);var pi=function(){var Ne=Qn.arrowContent,He=Ne===void 0?null:Ne,Ge=Qn.overlay,nt=Qn.id;return[d.createElement("div",{className:"".concat(qr,"-arrow"),key:"arrow"},He),d.createElement(pe,{key:"content",prefixCls:qr,id:nt,overlay:Ge,overlayInnerStyle:dn})]},Ci=!1,Ni=!1;if(typeof Hr=="boolean")Ci=Hr;else if(Hr&&Object(o.a)(Hr)==="object"){var zi=Hr.keepParent;Ci=zi===!0,Ni=zi===!1}return d.createElement(Bt,Object.assign({popupClassName:Ot,prefixCls:qr,popup:pi,action:Me,builtinPlacements:oe,popupPlacement:Ut,ref:ri,popupAlign:Mt,getPopupContainer:Lr,onPopupVisibleChange:Gt,afterPopupVisibleChange:vt,popupTransitionName:bt,popupAnimation:fr,defaultPopupVisible:Ir,destroyPopupOnHide:Ci,autoDestroy:Ni,mouseLeaveDelay:Ct,popupStyle:Yt,mouseEnterDelay:at},Zn),An)},hr=Object(d.forwardRef)(Kt),gt=hr,nr={adjustX:1,adjustY:1},mr={adjustX:0,adjustY:0},cn=[0,0];function Ar(jn){return typeof jn=="boolean"?jn?nr:mr:f()(f()({},mr),jn)}function xr(jn){var Qn=jn.arrowWidth,$t=Qn===void 0?5:Qn,Ot=jn.horizontalArrowShift,ke=Ot===void 0?16:Ot,Me=jn.verticalArrowShift,Be=Me===void 0?8:Me,at=jn.autoAdjustOverflow,At={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:[-(ke+$t),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(Be+$t)]},topRight:{points:["br","tc"],offset:[ke+$t,-4]},rightTop:{points:["tl","cr"],offset:[4,-(Be+$t)]},bottomRight:{points:["tr","bc"],offset:[ke+$t,4]},rightBottom:{points:["bl","cr"],offset:[4,Be+$t]},bottomLeft:{points:["tl","bc"],offset:[-(ke+$t),4]},leftBottom:{points:["br","cl"],offset:[-4,Be+$t]}};return Object.keys(At).forEach(function(Ct){At[Ct]=jn.arrowPointAtCenter?f()(f()({},At[Ct]),{overflow:Ar(at),targetOffset:cn}):f()(f()({},oe[Ct]),{overflow:Ar(at)}),At[Ct].ignoreShake=!0}),At}var qt=i("0n0R"),ar=i("H84U"),Et=i("09Wf"),en=function(Qn,$t){var Ot={},ke=f()({},Qn);return $t.forEach(function(Me){Qn&&Me in Qn&&(Ot[Me]=Qn[Me],delete ke[Me])}),{picked:Ot,omitted:ke}},Mn=new RegExp("^(".concat(Et.a.join("|"),")(-inverse)?$"));function Yn(jn,Qn){var $t=jn.type;if(($t.__ANT_BUTTON===!0||$t.__ANT_SWITCH===!0||$t.__ANT_CHECKBOX===!0||jn.type==="button")&&jn.props.disabled){var Ot=en(jn.props.style,["position","left","right","top","bottom","float","display","zIndex"]),ke=Ot.picked,Me=Ot.omitted,Be=f()(f()({display:"inline-block"},ke),{cursor:"not-allowed",width:jn.props.block?"100%":null}),at=f()(f()({},Me),{pointerEvents:"none"}),At=Object(qt.a)(jn,{style:at,className:null});return d.createElement("span",{style:Be,className:O()(jn.props.className,"".concat(Qn,"-disabled-compatible-wrapper"))},At)}return jn}var ci=d.forwardRef(function(jn,Qn){var $t,Ot=d.useContext(ar.b),ke=Ot.getPopupContainer,Me=Ot.getPrefixCls,Be=Ot.direction,at=d.useState(!!jn.visible||!!jn.defaultVisible),At=A()(at,2),Ct=At[0],Yt=At[1];d.useEffect(function(){"visible"in jn&&Yt(jn.visible)},[jn.visible]);var Pr=function(){var zi=jn.title,it=jn.overlay;return!zi&&!it&&zi!==0},qr=function(zi){"visible"in jn||Yt(Pr()?!1:zi),jn.onVisibleChange&&!Pr()&&jn.onVisibleChange(zi)},An=function(){var zi=jn.builtinPlacements,it=jn.arrowPointAtCenter,Ne=jn.autoAdjustOverflow;return zi||xr({arrowPointAtCenter:it,autoAdjustOverflow:Ne})},Gt=function(zi,it){var Ne=An(),He=Object.keys(Ne).filter(function($e){return Ne[$e].points[0]===it.points[0]&&Ne[$e].points[1]===it.points[1]})[0];if(!He)return;var Ge=zi.getBoundingClientRect(),nt={top:"50%",left:"50%"};He.indexOf("top")>=0||He.indexOf("Bottom")>=0?nt.top="".concat(Ge.height-it.offset[1],"px"):(He.indexOf("Top")>=0||He.indexOf("bottom")>=0)&&(nt.top="".concat(-it.offset[1],"px")),He.indexOf("left")>=0||He.indexOf("Right")>=0?nt.left="".concat(Ge.width-it.offset[0],"px"):(He.indexOf("right")>=0||He.indexOf("Left")>=0)&&(nt.left="".concat(-it.offset[0],"px")),zi.style.transformOrigin="".concat(nt.left," ").concat(nt.top)},vt=function(){var zi=jn.title,it=jn.overlay;return zi===0?zi:it||zi||""},bt=jn.prefixCls,fr=jn.openClassName,Jt=jn.getPopupContainer,Ut=jn.getTooltipContainer,er=jn.overlayClassName,Mt=jn.color,Zt=jn.overlayInnerStyle,Hr=jn.children,Ir=Me("tooltip",bt),Lr=Ct;!("visible"in jn)&&Pr()&&(Lr=!1);var dn=Yn(Object(qt.b)(Hr)?Hr:d.createElement("span",null,Hr),Ir),gn=dn.props,ri=O()(gn.className,p()({},fr||"".concat(Ir,"-open"),!0)),Zn=O()(er,($t={},p()($t,"".concat(Ir,"-rtl"),Be==="rtl"),p()($t,"".concat(Ir,"-").concat(Mt),Mt&&Mn.test(Mt)),$t)),pi,Ci;return Mt&&!Mn.test(Mt)&&(pi=f()(f()({},Zt),{background:Mt}),Ci={background:Mt}),d.createElement(gt,f()({},jn,{prefixCls:Ir,overlayClassName:Zn,getTooltipContainer:Jt||Ut||ke,ref:Qn,builtinPlacements:An(),overlay:vt(),visible:Lr,onVisibleChange:qr,onPopupAlign:Gt,overlayInnerStyle:pi,arrowContent:d.createElement("span",{className:"".concat(Ir,"-arrow-content"),style:Ci})}),Lr?Object(qt.a)(dn,{className:ri}):dn)});ci.displayName="Tooltip",ci.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};var Vi=D.a=ci},"3TkU":function(k,D,i){i("aTJb"),i("OlYY"),i("fc+c"),i("QUw5"),i("Swgg"),i("LBfv"),i("noeP")},"3X6L":function(k,D,i){var y=i("bYtY"),p=i("7a+S"),S=i("OKJ2"),A=p.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(A,S);var m=A;k.exports=m},"3e3G":function(k,D,i){var y=i("bYtY"),p=i("QuXc"),S=function(f,d,l,o,n){this.x=f==null?.5:f,this.y=d==null?.5:d,this.r=l==null?.5:l,this.type="radial",this.global=n||!1,p.call(this,o)};S.prototype={constructor:S},y.inherits(S,p);var A=S;k.exports=A},"3gBT":function(k,D){var i=2311;function y(){return i++}k.exports=y},"3hzK":function(k,D){var i={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")}}};k.exports=i},"3m61":function(k,D){function i(p){return p instanceof Array||(p=[p,p]),p}function y(p){p.eachSeriesByType("graph",function(S){var A=S.getGraph(),m=S.getEdgeData(),f=i(S.get("edgeSymbol")),d=i(S.get("edgeSymbolSize")),l="lineStyle.color".split("."),o="lineStyle.opacity".split(".");m.setVisual("fromSymbol",f&&f[0]),m.setVisual("toSymbol",f&&f[1]),m.setVisual("fromSymbolSize",d&&d[0]),m.setVisual("toSymbolSize",d&&d[1]),m.setVisual("color",S.get(l)),m.setVisual("opacity",S.get(o)),m.each(function(n){var t=m.getItemModel(n),a=A.getEdgeByIndex(n),e=i(t.getShallow("symbol",!0)),u=i(t.getShallow("symbolSize",!0)),r=t.get(l),s=t.get(o);switch(r){case"source":r=a.node1.getVisual("color");break;case"target":r=a.node2.getVisual("color");break}e[0]&&a.setVisual("fromSymbol",e[0]),e[1]&&a.setVisual("toSymbol",e[1]),u[0]&&a.setVisual("fromSymbolSize",u[0]),u[1]&&a.setVisual("toSymbolSize",u[1]),a.setVisual("color",r),a.setVisual("opacity",s)})})}k.exports=y},"3ouR":function(k,D,i){"use strict";var y=i("VTBJ"),p=i("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"},A=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:A}))};f.displayName="CloseSquareOutlined";var d=D.a=p.forwardRef(f)},"3y9D":function(k,D,i){(function(y,p){k.exports=D=p(i("Ib8C"))})(this,function(y){return function(){var p=y,S=p.lib,A=S.WordArray,m=S.Hasher,f=p.algo,d=[],l=f.SHA1=m.extend({_doReset:function(){this._hash=new A.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(n,t){for(var a=this._hash.words,e=a[0],u=a[1],r=a[2],s=a[3],c=a[4],h=0;h<80;h++){if(h<16)d[h]=n[t+h]|0;else{var g=d[h-3]^d[h-8]^d[h-14]^d[h-16];d[h]=g<<1|g>>>31}var v=(e<<5|e>>>27)+c+d[h];h<20?v+=(u&r|~u&s)+1518500249:h<40?v+=(u^r^s)+1859775393:h<60?v+=(u&r|u&s|r&s)-1894007588:v+=(u^r^s)-899497514,c=s,s=r,r=u<<30|u>>>2,u=e,e=v}a[0]=a[0]+e|0,a[1]=a[1]+u|0,a[2]=a[2]+r|0,a[3]=a[3]+s|0,a[4]=a[4]+c|0},_doFinalize:function(){var n=this._data,t=n.words,a=this._nDataBytes*8,e=n.sigBytes*8;return t[e>>>5]|=128<<24-e%32,t[(e+64>>>9<<4)+14]=Math.floor(a/4294967296),t[(e+64>>>9<<4)+15]=a,n.sigBytes=t.length*4,this._process(),this._hash},clone:function(){var n=m.clone.call(this);return n._hash=this._hash.clone(),n}});p.SHA1=m._createHelper(l),p.HmacSHA1=m._createHmacHelper(l)}(),y.SHA1})},"3zoK":function(k,D,i){var y=i("bYtY"),p=i("bLfw"),S=i("KCsZ"),A=i("nkfE"),m=i("OELB"),f=i("ICMv"),d=p.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 a=this.activeIntervals=y.clone(t);if(a)for(var e=a.length-1;e>=0;e--)m.asc(a[e])},getActiveState:function(t){var a=this.activeIntervals;if(!a.length)return"normal";if(t==null||isNaN(t))return"inactive";if(a.length===1){var e=a[0];if(e[0]<=t&&t<=e[1])return"active"}else for(var u=0,r=a.length;u<r;u++)if(a[u][0]<=t&&t<=a[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 o(t,a){return a.type||(a.data?"category":"value")}A("parallel",d,o,l);var n=d;k.exports=n},"49sm":function(k,D){var i={}.toString;k.exports=Array.isArray||function(y){return i.call(y)=="[object Array]"}},"4Feb":function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),A=i("IwbS"),m=i("x3X8"),f=m.getDefaultLabel,d=i("MwEJ"),l=i("nVfU"),o=l.getLayoutOnAxis,n=i("gPAo"),t=i("T4UG"),a=i("Qxkt"),e=i("6Ic6"),u=i("sK/D"),r=u.createClipPath,s=i("qj72"),c=i("ANjR"),h=i("MHtr"),g=i("6usn"),v=i("Rx6q"),b=A.CACHED_LABEL_STYLE_PROPERTIES,w=["itemStyle"],x=["emphasis","itemStyle"],T=["label"],O=["emphasis","label"],E="e\0\0",C={cartesian2d:s,geo:c,singleAxis:h,polar:g,calendar:v};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,Se){return d(this.getSource(),this)},getDataParams:function(re,Se,Re){var Pe=t.prototype.getDataParams.apply(this,arguments);return Re&&(Pe.info=Re.info),Pe}}),e.extend({type:"custom",_data:null,render:function(re,Se,Re,Pe){var Je=this._data,Ve=re.getData(),ct=this.group,Ue=R(re,Ve,Se,Re);Ve.diff(Je).add(function(rt){M(null,rt,Ue(rt,Pe),re,ct,Ve)}).update(function(rt,ge){var Z=Je.getItemGraphicEl(ge);M(Z,rt,Ue(rt,Pe),re,ct,Ve)}).remove(function(rt){var ge=Je.getItemGraphicEl(rt);ge&&ct.remove(ge)}).execute();var ue=re.get("clip",!0)?r(re.coordinateSystem,!1,re):null;ue?ct.setClipPath(ue):ct.removeClipPath(),this._data=Ve},incrementalPrepareRender:function(re,Se,Re){this.group.removeAll(),this._data=null},incrementalRender:function(re,Se,Re,Pe,Je){var Ve=Se.getData(),ct=R(Se,Ve,Re,Pe);function Ue(ge){ge.isGroup||(ge.incremental=!0,ge.useHoverLayer=!0)}for(var ue=re.start;ue<re.end;ue++){var rt=M(null,ue,ct(ue,Je),Se,this.group,Ve);rt.traverse(Ue)}},dispose:S.noop,filterForExposedEvent:function(re,Se,Re,Pe){var Je=Se.element;if(Je==null||Re.name===Je)return!0;for(;(Re=Re.parent)&&Re!==this.group;)if(Re.name===Je)return!0;return!1}});function I(re){var Se=re.type,Re;if(Se==="path"){var Pe=re.shape,Je=Pe.width!=null&&Pe.height!=null?{x:Pe.x||0,y:Pe.y||0,width:Pe.width,height:Pe.height}:null,Ve=te(Pe);Re=A.makePath(Ve,null,Je,Pe.layout||"center"),Re.__customPathData=Ve}else if(Se==="image")Re=new A.Image({}),Re.__customImagePath=re.style.image;else if(Se==="text")Re=new A.Text({}),Re.__customText=re.style.text;else if(Se==="group")Re=new A.Group;else{if(Se==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var ct=A.getShapeClass(Se);Re=new ct}return Re.__customGraphicType=Se,Re.name=re.name,Re}function _(re,Se,Re,Pe,Je,Ve,ct){var Ue={},ue=Re.style||{};if(Re.shape&&(Ue.shape=S.clone(Re.shape)),Re.position&&(Ue.position=Re.position.slice()),Re.scale&&(Ue.scale=Re.scale.slice()),Re.origin&&(Ue.origin=Re.origin.slice()),Re.rotation&&(Ue.rotation=Re.rotation),re.type==="image"&&Re.style){var rt=Ue.style={};S.each(["x","y","width","height"],function(Y){F(Y,rt,ue,re.style,Ve)})}if(re.type==="text"&&Re.style){var rt=Ue.style={};S.each(["x","y"],function(ee){F(ee,rt,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 ge=ue.opacity;ge==null&&(ge=1),A.initProps(re,{style:{opacity:ge}},Pe,Se)}Ve?re.attr(Ue):A.updateProps(re,Ue,Pe,Se),Re.hasOwnProperty("z2")&&re.attr("z2",Re.z2||0),Re.hasOwnProperty("silent")&&re.attr("silent",Re.silent),Re.hasOwnProperty("invisible")&&re.attr("invisible",Re.invisible),Re.hasOwnProperty("ignore")&&re.attr("ignore",Re.ignore),Re.hasOwnProperty("info")&&re.attr("info",Re.info);var Z=Re.styleEmphasis;A.setElementHoverStyle(re,Z),ct&&A.setAsHighDownDispatcher(re,Z!==!1)}function F(re,Se,Re,Pe,Je){Re[re]!=null&&!Je&&(Se[re]=Re[re],Re[re]=Pe[re])}function R(re,Se,Re,Pe){var Je=re.get("renderItem"),Ve=re.coordinateSystem,ct={};Ve&&(ct=Ve.prepareCustoms?Ve.prepareCustoms():C[Ve.type](Ve));var Ue=S.defaults({getWidth:Pe.getWidth,getHeight:Pe.getHeight,getZr:Pe.getZr,getDevicePixelRatio:Pe.getDevicePixelRatio,value:Ce,style:Te,styleEmphasis:he,visual:ye,barLayout:Ie,currentSeriesIndices:tt,font:pt},ct.api||{}),ue={context:{},seriesId:re.id,seriesName:re.name,seriesIndex:re.seriesIndex,coordSys:ct.coordSys,dataInsideLength:Se.count(),encode:B(re.getData())},rt,ge=!0,Z,Y,ee,fe;return function(st,Fe){return rt=st,ge=!0,Je&&Je(S.defaults({dataIndexInside:st,dataIndex:Se.getRawIndex(st),actionType:Fe?Fe.type:null},ue),Ue)};function be(st){st==null&&(st=rt),ge&&(Z=Se.getItemModel(st),Y=Z.getModel(T),ee=Z.getModel(O),fe=Se.getItemVisual(st,"color"),ge=!1)}function Ce(st,Fe){return Fe==null&&(Fe=rt),Se.get(Se.getDimension(st||0),Fe)}function Te(st,Fe){Fe==null&&(Fe=rt),be(Fe);var ft=Z.getModel(w).getItemStyle();fe!=null&&(ft.fill=fe);var et=Se.getItemVisual(Fe,"opacity");et!=null&&(ft.opacity=et);var wt=st?V(st,Y):Y;return A.setTextStyle(ft,wt,null,{autoColor:fe,isRectText:!0}),ft.text=wt.getShallow("show")?S.retrieve2(re.getFormattedLabel(Fe,"normal"),f(Se,Fe)):null,st&&Q(ft,st),ft}function he(st,Fe){Fe==null&&(Fe=rt),be(Fe);var ft=Z.getModel(x).getItemStyle(),et=st?V(st,ee):ee;return A.setTextStyle(ft,et,null,{isRectText:!0},!0),ft.text=et.getShallow("show")?S.retrieve3(re.getFormattedLabel(Fe,"emphasis"),re.getFormattedLabel(Fe,"normal"),f(Se,Fe)):null,st&&Q(ft,st),ft}function ye(st,Fe){return Fe==null&&(Fe=rt),Se.getItemVisual(Fe,st)}function Ie(st){if(Ve.getBaseAxis){var Fe=Ve.getBaseAxis();return o(S.defaults({axis:Fe},st),Pe)}}function tt(){return Re.getCurrentSeriesIndices()}function pt(st){return A.getFont(st,Re)}}function B(re){var Se={};return S.each(re.dimensions,function(Re,Pe){var Je=re.getDimensionInfo(Re);if(!Je.isExtraCoord){var Ve=Je.coordDim,ct=Se[Ve]=Se[Ve]||[];ct[Je.coordDimIndex]=Pe}}),Se}function M(re,Se,Re,Pe,Je,Ve){return re=X(re,Se,Re,Pe,Je,Ve,!0),re&&Ve.setItemGraphicEl(Se,re),re}function X(re,Se,Re,Pe,Je,Ve,ct){var Ue=!Re;Re=Re||{};var ue=Re.type,rt=Re.shape,ge=Re.style;if(re&&(Ue||ue!=null&&ue!==re.__customGraphicType||ue==="path"&&$(rt)&&te(rt)!==re.__customPathData||ue==="image"&&le(ge,"image")&&ge.image!==re.__customImagePath||ue==="text"&&le(rt,"text")&&ge.text!==re.__customText)&&(Je.remove(re),re=null),Ue)return;var Z=!re;return!re&&(re=I(Re)),_(re,Se,Re,Pe,Ve,Z,ct),ue==="group"&&P(re,Se,Re,Pe,Ve),Je.add(re),re}function P(re,Se,Re,Pe,Je){var Ve=Re.children,ct=Ve?Ve.length:0,Ue=Re.$mergeChildren,ue=Ue==="byName"||Re.diffChildrenByName,rt=Ue===!1;if(!ct&&!ue&&!rt)return;if(ue){z({oldChildren:re.children()||[],newChildren:Ve||[],dataIndex:Se,animatableModel:Pe,group:re,data:Je});return}rt&&re.removeAll();for(var ge=0;ge<ct;ge++)Ve[ge]&&X(re.childAt(ge),Se,Ve[ge],Pe,re,Je)}function z(re){new n(re.oldChildren,re.newChildren,W,W,re).add(U).update(U).remove(G).execute()}function W(re,Se){var Re=re&&re.name;return Re!=null?Re:E+Se}function U(re,Se){var Re=this.context,Pe=re!=null?Re.newChildren[re]:null,Je=Se!=null?Re.oldChildren[Se]:null;X(Je,Re.dataIndex,Pe,Re.animatableModel,Re.group,Re.data)}function V(re,Se){var Re=new a({},Se);return S.each(b,function(Pe,Je){re.hasOwnProperty(Pe)&&(Re.option[Je]=re[Pe])}),Re}function Q(re,Se){for(var Re in Se)(Se.hasOwnProperty(Re)||!b.hasOwnProperty(Re))&&(re[Re]=Se[Re])}function G(re){var Se=this.context,Re=Se.oldChildren[re];Re&&Se.group.remove(Re)}function te(re){return re&&(re.pathData||re.d)}function $(re){return re&&(re.hasOwnProperty("pathData")||re.hasOwnProperty("d"))}function le(re,Se){return re&&re.hasOwnProperty(Se)}},"4HMb":function(k,D,i){var y=i("bYtY"),p=i("6GrX"),S=i("4NO4"),A=S.makeInner,m=i("aX7z"),f=m.makeLabelFormatter,d=m.getOptionCategoryInterval,l=m.shouldShowAllLabels,o=A();function n(T){return T.type==="category"?a(T):r(T)}function t(T,O){return T.type==="category"?u(T,O):{ticks:T.scale.getTicks()}}function a(T){var O=T.getLabelModel(),E=e(T,O);return!O.get("show")||T.scale.isBlank()?{labels:[],labelCategoryInterval:E.labelCategoryInterval}:E}function e(T,O){var E=s(T,"labels"),C=d(O),I=c(E,C);if(I)return I;var _,F;return y.isFunction(C)?_=x(T,C):(F=C==="auto"?g(T):C,_=w(T,F)),h(E,C,{labels:_,labelCategoryInterval:F})}function u(T,O){var E=s(T,"ticks"),C=d(O),I=c(E,C);if(I)return I;var _,F;if((!O.get("show")||T.scale.isBlank())&&(_=[]),y.isFunction(C))_=x(T,C,!0);else if(C==="auto"){var R=e(T,T.getLabelModel());F=R.labelCategoryInterval,_=y.map(R.labels,function(B){return B.tickValue})}else F=C,_=w(T,F,!0);return h(E,C,{ticks:_,tickCategoryInterval:F})}function r(T){var O=T.scale.getTicks(),E=f(T);return{labels:y.map(O,function(C,I){return{formattedLabel:E(C,I),rawLabel:T.scale.getLabel(C),tickValue:C}})}}function s(T,O){return o(T)[O]||(o(T)[O]=[])}function c(T,O){for(var E=0;E<T.length;E++)if(T[E].key===O)return T[E].value}function h(T,O,E){return T.push({key:O,value:E}),E}function g(T){var O=o(T).autoInterval;return O!=null?O:o(T).autoInterval=T.calculateCategoryInterval()}function v(T){var O=b(T),E=f(T),C=(O.axisRotate-O.labelRotate)/180*Math.PI,I=T.scale,_=I.getExtent(),F=I.count();if(_[1]-_[0]<1)return 0;var R=1;F>40&&(R=Math.max(1,Math.floor(F/40)));for(var B=_[0],M=T.dataToCoord(B+1)-T.dataToCoord(B),X=Math.abs(M*Math.cos(C)),P=Math.abs(M*Math.sin(C)),z=0,W=0;B<=_[1];B+=R){var U=0,V=0,Q=p.getBoundingRect(E(B),O.font,"center","top");U=Q.width*1.3,V=Q.height*1.3,z=Math.max(z,U,7),W=Math.max(W,V,7)}var G=z/X,te=W/P;isNaN(G)&&(G=Infinity),isNaN(te)&&(te=Infinity);var $=Math.max(0,Math.floor(Math.min(G,te))),le=o(T.model),re=T.getExtent(),Se=le.lastAutoInterval,Re=le.lastTickCount;return Se!=null&&Re!=null&&Math.abs(Se-$)<=1&&Math.abs(Re-F)<=1&&Se>$&&le.axisExtend0===re[0]&&le.axisExtend1===re[1]?$=Se:(le.lastTickCount=F,le.lastAutoInterval=$,le.axisExtend0=re[0],le.axisExtend1=re[1]),$}function b(T){var O=T.getLabelModel();return{axisRotate:T.getRotate?T.getRotate():T.isHorizontal&&!T.isHorizontal()?90:0,labelRotate:O.get("rotate")||0,font:O.getFont()}}function w(T,O,E){var C=f(T),I=T.scale,_=I.getExtent(),F=T.getLabelModel(),R=[],B=Math.max((O||0)+1,1),M=_[0],X=I.count();M!==0&&B>1&&X/B>2&&(M=Math.round(Math.ceil(M/B)*B));var P=l(T),z=F.get("showMinLabel")||P,W=F.get("showMaxLabel")||P;z&&M!==_[0]&&V(_[0]);for(var U=M;U<=_[1];U+=B)V(U);W&&U-B!==_[1]&&V(_[1]);function V(Q){R.push(E?Q:{formattedLabel:C(Q),rawLabel:I.getLabel(Q),tickValue:Q})}return R}function x(T,O,E){var C=T.scale,I=f(T),_=[];return y.each(C.getTicks(),function(F){var R=C.getLabel(F);O(F,R)&&_.push(E?F:{formattedLabel:I(F),rawLabel:R,tickValue:F})}),_}D.createAxisLabels=n,D.createAxisTicks=t,D.calculateCategoryInterval=v},"4NO4":function(k,D,i){var y=i("bYtY"),p=i("ItGF"),S=y.each,A=y.isObject,m=y.isArray,f="series\0";function d(E){return E instanceof Array?E:E==null?[]:[E]}function l(E,C,I){if(E){E[C]=E[C]||{},E.emphasis=E.emphasis||{},E.emphasis[C]=E.emphasis[C]||{};for(var _=0,F=I.length;_<F;_++){var R=I[_];!E.emphasis[C].hasOwnProperty(R)&&E[C].hasOwnProperty(R)&&(E.emphasis[C][R]=E[C][R])}}}var o=["fontStyle","fontWeight","fontSize","fontFamily","rich","tag","color","textBorderColor","textBorderWidth","width","height","lineHeight","align","verticalAlign","baseline","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","textShadowColor","textShadowBlur","textShadowOffsetX","textShadowOffsetY","backgroundColor","borderColor","borderWidth","borderRadius","padding"];function n(E){return A(E)&&!m(E)&&!(E instanceof Date)?E.value:E}function t(E){return A(E)&&!(E instanceof Array)}function a(E,C){C=(C||[]).slice();var I=y.map(E||[],function(_,F){return{exist:_}});return S(C,function(_,F){if(!A(_))return;for(var R=0;R<I.length;R++)if(!I[R].option&&_.id!=null&&I[R].exist.id===_.id+""){I[R].option=_,C[F]=null;return}for(var R=0;R<I.length;R++){var B=I[R].exist;if(!I[R].option&&(B.id==null||_.id==null)&&_.name!=null&&!r(_)&&!r(B)&&B.name===_.name+""){I[R].option=_,C[F]=null;return}}}),S(C,function(_,F){if(!A(_))return;for(var R=0;R<I.length;R++){var B=I[R].exist;if(!I[R].option&&!r(B)&&_.id==null){I[R].option=_;break}}R>=I.length&&I.push({option:_})}),I}function e(E){var C=y.createHashMap();S(E,function(I,_){var F=I.exist;F&&C.set(F.id,I)}),S(E,function(I,_){var F=I.option;y.assert(!F||F.id==null||!C.get(F.id)||C.get(F.id)===I,"id duplicates: "+(F&&F.id)),F&&F.id!=null&&C.set(F.id,I),!I.keyInfo&&(I.keyInfo={})}),S(E,function(I,_){var F=I.exist,R=I.option,B=I.keyInfo;if(!A(R))return;if(B.name=R.name!=null?R.name+"":F?F.name:f+_,F)B.id=F.id;else if(R.id!=null)B.id=R.id+"";else{var M=0;do B.id="\0"+B.name+"\0"+M++;while(C.get(B.id))}C.set(B.id,I)})}function u(E){var C=E.name;return!!(C&&C.indexOf(f))}function r(E){return A(E)&&E.id&&(E.id+"").indexOf("\0_ec_\0")===0}function s(E,C){var I={},_={};return F(E||[],I),F(C||[],_,I),[R(I),R(_)];function F(B,M,X){for(var P=0,z=B.length;P<z;P++)for(var W=B[P].seriesId,U=d(B[P].dataIndex),V=X&&X[W],Q=0,G=U.length;Q<G;Q++){var te=U[Q];V&&V[te]?V[te]=null:(M[W]||(M[W]={}))[te]=1}}function R(B,M){var X=[];for(var P in B)if(B.hasOwnProperty(P)&&B[P]!=null)if(M)X.push(+P);else{var z=R(B[P],!0);z.length&&X.push({seriesId:P,dataIndex:z})}return X}}function c(E,C){if(C.dataIndexInside!=null)return C.dataIndexInside;if(C.dataIndex!=null)return y.isArray(C.dataIndex)?y.map(C.dataIndex,function(I){return E.indexOfRawIndex(I)}):E.indexOfRawIndex(C.dataIndex);if(C.name!=null)return y.isArray(C.name)?y.map(C.name,function(I){return E.indexOfName(I)}):E.indexOfName(C.name)}function h(){var E="__\0ec_inner_"+g+++"_"+Math.random().toFixed(5);return function(C){return C[E]||(C[E]={})}}var g=0;function v(E,C,I){if(y.isString(C)){var _={};_[C+"Index"]=0,C=_}var F=I&&I.defaultMainType;F&&!b(C,F+"Index")&&!b(C,F+"Id")&&!b(C,F+"Name")&&(C[F+"Index"]=0);var R={};return S(C,function(B,M){var B=C[M];if(M==="dataIndex"||M==="dataIndexInside"){R[M]=B;return}var X=M.match(/^(\w+)(Index|Id|Name)$/)||[],P=X[1],z=(X[2]||"").toLowerCase();if(!P||!z||B==null||z==="index"&&B==="none"||I&&I.includeMainTypes&&y.indexOf(I.includeMainTypes,P)<0)return;var W={mainType:P};(z!=="index"||B!=="all")&&(W[z]=B);var U=E.queryComponents(W);R[P+"Models"]=U,R[P+"Model"]=U[0]}),R}function b(E,C){return E&&E.hasOwnProperty(C)}function w(E,C,I){E.setAttribute?E.setAttribute(C,I):E[C]=I}function x(E,C){return E.getAttribute?E.getAttribute(C):E[C]}function T(E){return E==="auto"?p.domSupported?"html":"richText":E||"html"}function O(E,C){var I=y.createHashMap(),_=[];return y.each(E,function(F){var R=C(F);(I.get(R)||(_.push(R),I.set(R,[]))).push(F)}),{keys:_,buckets:I}}D.normalizeToArray=d,D.defaultEmphasis=l,D.TEXT_STYLE_OPTIONS=o,D.getDataItemValue=n,D.isDataItemOption=t,D.mappingToExists=a,D.makeIdAndName=e,D.isNameSpecified=u,D.isIdInner=r,D.compressBatches=s,D.queryDataIndex=c,D.makeInner=h,D.parseFinder=v,D.setAttribute=w,D.getAttribute=x,D.getTooltipRenderMode=T,D.groupData=O},"4NgU":function(k,D,i){var y=i("Yl7c");function p(A){this._setting=A||{},this._extent=[Infinity,-Infinity],this._interval=0,this.init&&this.init.apply(this,arguments)}p.prototype.parse=function(A){return A},p.prototype.getSetting=function(A){return this._setting[A]},p.prototype.contain=function(A){var m=this._extent;return A>=m[0]&&A<=m[1]},p.prototype.normalize=function(A){var m=this._extent;return m[1]===m[0]?.5:(A-m[0])/(m[1]-m[0])},p.prototype.scale=function(A){var m=this._extent;return A*(m[1]-m[0])+m[0]},p.prototype.unionExtent=function(A){var m=this._extent;A[0]<m[0]&&(m[0]=A[0]),A[1]>m[1]&&(m[1]=A[1])},p.prototype.unionExtentFromData=function(A,m){this.unionExtent(A.getApproximateExtent(m))},p.prototype.getExtent=function(){return this._extent.slice()},p.prototype.setExtent=function(A,m){var f=this._extent;isNaN(A)||(f[0]=A),isNaN(m)||(f[1]=m)},p.prototype.isBlank=function(){return this._isBlank},p.prototype.setBlank=function(A){this._isBlank=A},p.prototype.getLabel=null,y.enableClassExtend(p),y.enableClassManagement(p,{registerWhenExtend:!0});var S=p;k.exports=S},"4fz+":function(k,D,i){var y=i("bYtY"),p=i("1bdT"),S=i("mFDi"),A=function(d){d=d||{},p.call(this,d);for(var l in d)d.hasOwnProperty(l)&&(this[l]=d[l]);this._children=[],this.__storage=null,this.__dirty=!0};A.prototype={constructor:A,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(d){return this._children[d]},childOfName:function(d){for(var l=this._children,o=0;o<l.length;o++)if(l[o].name===d)return l[o]},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 o=this._children,n=o.indexOf(l);n>=0&&(o.splice(n,0,d),this._doAdd(d))}return this},_doAdd:function(d){d.parent&&d.parent.remove(d),d.parent=this;var l=this.__storage,o=this.__zr;l&&l!==d.__storage&&(l.addToStorage(d),d instanceof A&&d.addChildrenToStorage(l)),o&&o.refresh()},remove:function(d){var l=this.__zr,o=this.__storage,n=this._children,t=y.indexOf(n,d);return t<0?this:(n.splice(t,1),d.parent=null,o&&(o.delFromStorage(d),d instanceof A&&d.delChildrenFromStorage(o)),l&&l.refresh(),this)},removeAll:function(){var d=this._children,l=this.__storage,o,n;for(n=0;n<d.length;n++)o=d[n],l&&(l.delFromStorage(o),o instanceof A&&o.delChildrenFromStorage(l)),o.parent=null;return d.length=0,this},eachChild:function(d,l){for(var o=this._children,n=0;n<o.length;n++){var t=o[n];d.call(l,t,n)}return this},traverse:function(d,l){for(var o=0;o<this._children.length;o++){var n=this._children[o];d.call(l,n),n.type==="group"&&n.traverse(d,l)}return this},addChildrenToStorage:function(d){for(var l=0;l<this._children.length;l++){var o=this._children[l];d.addToStorage(o),o instanceof A&&o.addChildrenToStorage(d)}},delChildrenFromStorage:function(d){for(var l=0;l<this._children.length;l++){var o=this._children[l];d.delFromStorage(o),o instanceof A&&o.delChildrenFromStorage(d)}},dirty:function(){return this.__dirty=!0,this.__zr&&this.__zr.refresh(),this},getBoundingRect:function(d){for(var l=null,o=new S(0,0,0,0),n=d||this._children,t=[],a=0;a<n.length;a++){var e=n[a];if(e.ignore||e.invisible)continue;var u=e.getBoundingRect(),r=e.getLocalTransform(t);r?(o.copy(u),o.applyTransform(r),l=l||o.clone(),l.union(o)):(l=l||u.clone(),l.union(u))}return l||o}},y.inherits(A,p);var m=A;k.exports=m},"4i/N":function(k,D,i){"use strict";var y=i("VTBJ"),p=i("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"},A=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:A}))};f.displayName="CloseOutlined";var d=D.a=p.forwardRef(f)},"4kuk":function(k,D,i){var y=i("SfRM"),p=i("Hvzi"),S=i("u8Dt"),A=i("ekgI"),m=i("JSQU");function f(d){var l=-1,o=d==null?0:d.length;for(this.clear();++l<o;){var n=d[l];this.set(n[0],n[1])}}f.prototype.clear=y,f.prototype.delete=p,f.prototype.get=S,f.prototype.has=A,f.prototype.set=m,k.exports=f},"4mN7":function(k,D,i){var y=i("QBsz"),p=i("Sj9i"),S=Math.min,A=Math.max,m=Math.sin,f=Math.cos,d=Math.PI*2,l=y.create(),o=y.create(),n=y.create();function t(h,g,v){if(h.length===0)return;var b=h[0],w=b[0],x=b[0],T=b[1],O=b[1],E;for(E=1;E<h.length;E++)b=h[E],w=S(w,b[0]),x=A(x,b[0]),T=S(T,b[1]),O=A(O,b[1]);g[0]=w,g[1]=T,v[0]=x,v[1]=O}function a(h,g,v,b,w,x){w[0]=S(h,v),w[1]=S(g,b),x[0]=A(h,v),x[1]=A(g,b)}var e=[],u=[];function r(h,g,v,b,w,x,T,O,E,C){var I=p.cubicExtrema,_=p.cubicAt,F,R=I(h,v,w,T,e);for(E[0]=Infinity,E[1]=Infinity,C[0]=-Infinity,C[1]=-Infinity,F=0;F<R;F++){var B=_(h,v,w,T,e[F]);E[0]=S(B,E[0]),C[0]=A(B,C[0])}for(R=I(g,b,x,O,u),F=0;F<R;F++){var M=_(g,b,x,O,u[F]);E[1]=S(M,E[1]),C[1]=A(M,C[1])}E[0]=S(h,E[0]),C[0]=A(h,C[0]),E[0]=S(T,E[0]),C[0]=A(T,C[0]),E[1]=S(g,E[1]),C[1]=A(g,C[1]),E[1]=S(O,E[1]),C[1]=A(O,C[1])}function s(h,g,v,b,w,x,T,O){var E=p.quadraticExtremum,C=p.quadraticAt,I=A(S(E(h,v,w),1),0),_=A(S(E(g,b,x),1),0),F=C(h,v,w,I),R=C(g,b,x,_);T[0]=S(h,w,F),T[1]=S(g,x,R),O[0]=A(h,w,F),O[1]=A(g,x,R)}function c(h,g,v,b,w,x,T,O,E){var C=y.min,I=y.max,_=Math.abs(w-x);if(_%d<1e-4&&_>1e-4){O[0]=h-v,O[1]=g-b,E[0]=h+v,E[1]=g+b;return}if(l[0]=f(w)*v+h,l[1]=m(w)*b+g,o[0]=f(x)*v+h,o[1]=m(x)*b+g,C(O,l,o),I(E,l,o),w=w%d,w<0&&(w=w+d),x=x%d,x<0&&(x=x+d),w>x&&!T?x+=d:w<x&&T&&(w+=d),T){var F=x;x=w,w=F}for(var R=0;R<x;R+=Math.PI/2)R>w&&(n[0]=f(R)*v+h,n[1]=m(R)*b+g,C(O,n,O),I(E,n,E))}D.fromPoints=t,D.fromLine=a,D.fromCubic=r,D.fromQuadratic=s,D.fromArc=c},"4vCz":function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("X2/X")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="PlusSquareOutlined";var n=A.forwardRef(o);D.default=n},"4xFK":function(k,D,i){"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(k,D,i){var y=i("IwbS"),p=i("x3X8"),S=p.getDefaultLabel;function A(f,d,l,o,n,t,a){var e=l.getModel("label"),u=l.getModel("emphasis.label");y.setLabelStyle(f,d,e,u,{labelFetcher:n,labelDataIndex:t,defaultText:S(n.getData(),t),isRectText:!0,autoColor:o}),m(f),m(d)}function m(f,d){f.textPosition==="outside"&&(f.textPosition=d)}D.setLabel=A},"59Ip":function(k,D,i){var y=i("Sj9i");function p(S,A,m,f,d,l,o,n,t,a,e){if(t===0)return!1;var u=t;if(e>A+u&&e>f+u&&e>l+u&&e>n+u||e<A-u&&e<f-u&&e<l-u&&e<n-u||a>S+u&&a>m+u&&a>d+u&&a>o+u||a<S-u&&a<m-u&&a<d-u&&a<o-u)return!1;var r=y.cubicProjectPoint(S,A,m,f,d,l,o,n,a,e,null);return r<=u/2}D.containStroke=p},"5Dmo":function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("5YgA"),A=i.n(S)},"5GOC":function(k,D,i){"use strict";var y=i("cIOH"),p=i("b56q"),S=i("15/o")},"5GhG":function(k,D,i){var y=i("5GtS"),p=i("bYtY"),S=i("L0Ub"),A=S.getDimensionTypeByAxis,m=i("D5nY"),f=m.makeSeriesEncodeForAxisCoordSys,d={_baseAxisDim:null,getInitialData:function(l,o){var n,t=o.getComponent("xAxis",this.get("xAxisIndex")),a=o.getComponent("yAxis",this.get("yAxisIndex")),e=t.get("type"),u=a.get("type"),r;e==="category"?(l.layout="horizontal",n=t.getOrdinalMeta(),r=!0):u==="category"?(l.layout="vertical",n=a.getOrdinalMeta(),r=!0):l.layout=l.layout||"horizontal";var s=["x","y"],c=l.layout==="horizontal"?0:1,h=this._baseAxisDim=s[c],g=s[1-c],v=[t,a],b=v[c].get("type"),w=v[1-c].get("type"),x=l.data;if(x&&r){var T=[];p.each(x,function(C,I){var _;C.value&&p.isArray(C.value)?(_=C.value.slice(),C.value.unshift(I)):p.isArray(C)?(_=C.slice(),C.unshift(I)):_=C,T.push(_)}),l.data=T}var O=this.defaultValueDimensions,E=[{name:h,type:A(b),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:g,type:A(w),dimsDef:O.slice()}];return y(this,{coordDimensions:E,dimensionsCount:O.length+1,encodeDefaulter:p.curry(f,E,this)})},getBaseAxis:function(){var l=this._baseAxisDim;return this.ecModel.getComponent(l+"Axis",this.get(l+"AxisIndex")).axis}};D.seriesModelMixin=d},"5GtS":function(k,D,i){var y=i("sdST"),p=i("YXkt"),S=i("bYtY"),A=S.extend,m=S.isArray;function f(d,l,o){l=m(l)&&{coordDimensions:l}||A({},l);var n=d.getSource(),t=y(n,l),a=new p(t,d);return a.initData(n,o),a}k.exports=f},"5Hur":function(k,D,i){var y=i("4NO4"),p=y.makeInner,S=y.normalizeToArray,A=p();function m(d,l){for(var o=d.length,n=0;n<o;n++)if(d[n].length>l)return d[n];return d[o-1]}var f={clearColorPalette:function(){A(this).colorIdx=0,A(this).colorNameMap={}},getColorFromPalette:function(d,l,o){l=l||this;var n=A(l),t=n.colorIdx||0,a=n.colorNameMap=n.colorNameMap||{};if(a.hasOwnProperty(d))return a[d];var e=S(this.get("color",!0)),u=this.get("colorLayer",!0),r=o==null||!u?e:m(u,o);if(r=r||e,!r||!r.length)return;var s=r[t];return d&&(a[d]=s),n.colorIdx=(t+1)%r.length,s}};k.exports=f},"5NDa":function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("OnYD"),A=i.n(S),m=i("+L6B")},"5NHt":function(k,D,i){i("aTJb"),i("OlYY"),i("fc+c"),i("N5BQ"),i("IyUQ"),i("LBfv"),i("noeP")},"5OYt":function(k,D,i){"use strict";var y=i("J4zp"),p=i.n(y),S=i("q1tI"),A=i.n(S),m=i("ACnJ");function f(){var d=Object(S.useState)({}),l=p()(d,2),o=l[0],n=l[1];return Object(S.useEffect)(function(){var t=m.a.subscribe(function(a){n(a)});return function(){return m.a.unsubscribe(t)}},[]),o}D.a=f},"5RzL":function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("lSNA"),A=i.n(S),m=i("lwsE"),f=i.n(m),d=i("W8MJ"),l=i.n(d),o=i("7W2i"),n=i.n(o),t=i("LQ03"),a=i.n(t),e=i("q1tI"),u=i.n(e),r=i("1OyB"),s=i("vuIU"),c=i("Ji7U"),h=i("LK+K"),g=i("KQm4"),v=i("U8pU"),b=i("ODXe"),w=i("VTBJ"),x=i("rePB"),T=i("Ff2n"),O=i("4IlW"),E=i("TSYQ"),C=i.n(E),I=i("6cGi"),_=i("bX4T"),F=i("8XRh"),R=function(Sr){var yn=Sr.className,dr=Sr.customizeIcon,Rr=Sr.customizeIconProps,Gr=Sr.onMouseDown,ln=Sr.onClick,kn=Sr.children,kt;return typeof dr=="function"?kt=dr(Rr):kt=dr,e.createElement("span",{className:yn,onMouseDown:function(Nr){Nr.preventDefault(),Gr&&Gr(Nr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ln,"aria-hidden":!0},kt!==void 0?kt:e.createElement("span",{className:C()(yn.split(/\s+/).map(function(_r){return"".concat(_r,"-icon")}))},kn))},B=R,M=i("c+Xe"),X=function(Sr,yn){var dr=Sr.prefixCls,Rr=Sr.id,Gr=Sr.inputElement,ln=Sr.disabled,kn=Sr.tabIndex,kt=Sr.autoFocus,_r=Sr.autoComplete,Nr=Sr.editable,Jr=Sr.accessibilityIndex,xn=Sr.value,Tn=Sr.maxLength,wn=Sr.onKeyDown,$n=Sr.onMouseDown,Vn=Sr.onChange,mi=Sr.onPaste,Ri=Sr.onCompositionStart,vi=Sr.onCompositionEnd,Bi=Sr.open,Gi=Sr.attrs,ta=Gr||e.createElement("input",null),Pi=ta,Ki=Pi.ref,Hi=Pi.props,Qi=Hi.onKeyDown,da=Hi.onChange,Oa=Hi.onMouseDown,ra=Hi.onCompositionStart,Da=Hi.onCompositionEnd,Ra=Hi.style;return ta=e.cloneElement(ta,Object(w.a)(Object(w.a)({id:Rr,ref:Object(M.a)(yn,Ki),disabled:ln,tabIndex:kn,autoComplete:_r||"off",type:"search",autoFocus:kt,className:"".concat(dr,"-selection-search-input"),style:Object(w.a)(Object(w.a)({},Ra),{},{opacity:Nr?null:0}),role:"combobox","aria-expanded":Bi,"aria-haspopup":"listbox","aria-owns":"".concat(Rr,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Rr,"_list"),"aria-activedescendant":"".concat(Rr,"_list_").concat(Jr)},Gi),{},{value:Nr?xn:"",maxLength:Tn,readOnly:!Nr,unselectable:Nr?null:"on",onKeyDown:function(ga){wn(ga),Qi&&Qi(ga)},onMouseDown:function(ga){$n(ga),Oa&&Oa(ga)},onChange:function(ga){Vn(ga),da&&da(ga)},onCompositionStart:function(ga){Ri(ga),ra&&ra(ga)},onCompositionEnd:function(ga){vi(ga),Da&&Da(ga)},onPaste:mi})),ta},P=e.forwardRef(X);P.displayName="Input";var z=P;function W(kr){return Array.isArray(kr)?kr:kr!==void 0?[kr]:[]}function U(kr,Sr){var yn=Sr.labelInValue,dr=Sr.combobox;if(kr===void 0||kr===""&&dr)return[];var Rr=Array.isArray(kr)?kr:[kr];return yn?Rr.map(function(Gr){var ln=Gr.key,kn=Gr.value;return kn!==void 0?kn:ln}):Rr}function V(kr,Sr){var yn=Sr.optionLabelProp,dr=Sr.labelInValue,Rr=Sr.prevValue,Gr=Sr.options,ln=Sr.getLabeledValue,kn=kr;return dr&&(kn=kn.map(function(kt){return ln(kt,{options:Gr,prevValue:Rr,labelInValue:dr,optionLabelProp:yn})})),kn}function Q(kr,Sr){var yn=Object(g.a)(Sr),dr;for(dr=kr.length-1;dr>=0&&kr[dr].disabled;dr-=1);var Rr=null;return dr!==-1&&(Rr=yn[dr],yn.splice(dr,1)),{values:yn,removedValue:Rr}}var G=typeof window!="undefined"&&window.document&&window.document.documentElement,te=G,$=0;function le(){var kr;return te?(kr=$,$+=1):kr="TEST_OR_SSR",kr}function re(kr,Sr){te?e.useLayoutEffect(kr,Sr):e.useEffect(kr,Sr)}var Se="__RC_SELECT_MAX_REST_COUNT__",Re=function(Sr){var yn=Sr.id,dr=Sr.prefixCls,Rr=Sr.values,Gr=Sr.open,ln=Sr.searchValue,kn=Sr.inputRef,kt=Sr.placeholder,_r=Sr.disabled,Nr=Sr.mode,Jr=Sr.showSearch,xn=Sr.autoFocus,Tn=Sr.autoComplete,wn=Sr.accessibilityIndex,$n=Sr.tabIndex,Vn=Sr.removeIcon,mi=Sr.choiceTransitionName,Ri=Sr.maxTagCount,vi=Sr.maxTagTextLength,Bi=Sr.maxTagPlaceholder,Gi=Bi===void 0?function(to){return"+ ".concat(to.length," ...")}:Bi,ta=Sr.tagRender,Pi=Sr.onSelect,Ki=Sr.onInputChange,Hi=Sr.onInputPaste,Qi=Sr.onInputKeyDown,da=Sr.onInputMouseDown,Oa=Sr.onInputCompositionStart,ra=Sr.onInputCompositionEnd,Da=Object(e.useState)(!1),Ra=Object(b.a)(Da,2),va=Ra[0],ga=Ra[1],_a=e.useRef(null),ya=Object(e.useState)(0),Ga=Object(b.a)(ya,2),Ia=Ga[0],Wa=Ga[1],no=Object(e.useState)(!1),io=Object(b.a)(no,2),uo=io[0],$i=io[1];e.useEffect(function(){ga(!0)},[]);var mo=Gr||Nr==="tags"?ln:"",Eo=Nr==="tags"||Jr&&(Gr||uo);re(function(){Wa(_a.current.scrollWidth)},[mo]);var ao=Rr,Co;typeof Ri=="number"&&(Co=Rr.length-Ri,ao=Rr.slice(0,Ri)),typeof vi=="number"&&(ao=ao.map(function(to){var Qo=to.label,bo=Object(T.a)(to,["label"]),xo=Qo;if(typeof Qo=="string"||typeof Qo=="number"){var ts=String(xo);ts.length>vi&&(xo="".concat(ts.slice(0,vi),"..."))}return Object(w.a)(Object(w.a)({},bo),{},{label:xo})})),Co>0&&ao.push({key:Se,label:typeof Gi=="function"?Gi(Rr.slice(Ri)):Gi});var Ko=e.createElement(F.a,{component:!1,keys:ao,motionName:mi,motionAppear:va},function(to){var Qo=to.key,bo=to.label,xo=to.value,ts=to.disabled,ka=to.className,Io=to.style,Mo=Qo||xo,is=!_r&&Qo!==Se&&!ts,To=function(Lo){Lo.preventDefault(),Lo.stopPropagation()},Zo=function(Lo){Lo&&Lo.stopPropagation(),Pi(xo,{selected:!1})};return typeof ta=="function"?e.createElement("span",{key:Mo,onMouseDown:To,className:ka,style:Io},ta({label:bo,value:xo,disabled:ts,closable:is,onClose:Zo})):e.createElement("span",{key:Mo,className:C()(ka,"".concat(dr,"-selection-item"),Object(x.a)({},"".concat(dr,"-selection-item-disabled"),ts)),style:Io},e.createElement("span",{className:"".concat(dr,"-selection-item-content")},bo),is&&e.createElement(B,{className:"".concat(dr,"-selection-item-remove"),onMouseDown:To,onClick:Zo,customizeIcon:Vn},"\xD7"))});return e.createElement(e.Fragment,null,Ko,e.createElement("span",{className:"".concat(dr,"-selection-search"),style:{width:Ia},onFocus:function(){$i(!0)},onBlur:function(){$i(!1)}},e.createElement(z,{ref:kn,open:Gr,prefixCls:dr,id:yn,inputElement:null,disabled:_r,autoFocus:xn,autoComplete:Tn,editable:Eo,accessibilityIndex:wn,value:mo,onKeyDown:Qi,onMouseDown:da,onChange:Ki,onPaste:Hi,onCompositionStart:Oa,onCompositionEnd:ra,tabIndex:$n,attrs:Object(_.a)(Sr,!0)}),e.createElement("span",{ref:_a,className:"".concat(dr,"-selection-search-mirror"),"aria-hidden":!0},mo,"\xA0")),!Rr.length&&!mo&&e.createElement("span",{className:"".concat(dr,"-selection-placeholder")},kt))},Pe=Re,Je=function(Sr){var yn=Sr.inputElement,dr=Sr.prefixCls,Rr=Sr.id,Gr=Sr.inputRef,ln=Sr.disabled,kn=Sr.autoFocus,kt=Sr.autoComplete,_r=Sr.accessibilityIndex,Nr=Sr.mode,Jr=Sr.open,xn=Sr.values,Tn=Sr.placeholder,wn=Sr.tabIndex,$n=Sr.showSearch,Vn=Sr.searchValue,mi=Sr.activeValue,Ri=Sr.maxLength,vi=Sr.onInputKeyDown,Bi=Sr.onInputMouseDown,Gi=Sr.onInputChange,ta=Sr.onInputPaste,Pi=Sr.onInputCompositionStart,Ki=Sr.onInputCompositionEnd,Hi=e.useState(!1),Qi=Object(b.a)(Hi,2),da=Qi[0],Oa=Qi[1],ra=Nr==="combobox",Da=ra||$n,Ra=xn[0],va=Vn||"";ra&&mi&&!da&&(va=mi),e.useEffect(function(){ra&&Oa(!1)},[ra,mi]);var ga=Nr!=="combobox"&&!Jr?!1:!!va,_a=Ra&&(typeof Ra.label=="string"||typeof Ra.label=="number")?Ra.label.toString():void 0;return e.createElement(e.Fragment,null,e.createElement("span",{className:"".concat(dr,"-selection-search")},e.createElement(z,{ref:Gr,prefixCls:dr,id:Rr,open:Jr,inputElement:yn,disabled:ln,autoFocus:kn,autoComplete:kt,editable:Da,accessibilityIndex:_r,value:va,onKeyDown:vi,onMouseDown:Bi,onChange:function(Ga){Oa(!0),Gi(Ga)},onPaste:ta,onCompositionStart:Pi,onCompositionEnd:Ki,tabIndex:wn,attrs:Object(_.a)(Sr,!0),maxLength:ra?Ri:void 0})),!ra&&Ra&&!ga&&e.createElement("span",{className:"".concat(dr,"-selection-item"),title:_a},Ra.label),!Ra&&!ga&&e.createElement("span",{className:"".concat(dr,"-selection-placeholder")},Tn))},Ve=Je;function ct(){var kr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Sr=e.useRef(null),yn=e.useRef(null);e.useEffect(function(){return function(){window.clearTimeout(yn.current)}},[]);function dr(Rr){(Rr||Sr.current===null)&&(Sr.current=Rr),window.clearTimeout(yn.current),yn.current=window.setTimeout(function(){Sr.current=null},kr)}return[function(){return Sr.current},dr]}var Ue=function(Sr,yn){var dr=Object(e.useRef)(null),Rr=Object(e.useRef)(!1),Gr=Sr.prefixCls,ln=Sr.multiple,kn=Sr.open,kt=Sr.mode,_r=Sr.showSearch,Nr=Sr.tokenWithEnter,Jr=Sr.onSearch,xn=Sr.onSearchSubmit,Tn=Sr.onToggleOpen,wn=Sr.onInputKeyDown,$n=Sr.domRef;e.useImperativeHandle(yn,function(){return{focus:function(){dr.current.focus()},blur:function(){dr.current.blur()}}});var Vn=ct(0),mi=Object(b.a)(Vn,2),Ri=mi[0],vi=mi[1],Bi=function(ga){var _a=ga.which;(_a===O.a.UP||_a===O.a.DOWN)&&ga.preventDefault(),wn&&wn(ga),_a===O.a.ENTER&&kt==="tags"&&!Rr.current&&!kn&&xn(ga.target.value),[O.a.SHIFT,O.a.TAB,O.a.BACKSPACE,O.a.ESC].includes(_a)||Tn(!0)},Gi=function(){vi(!0)},ta=Object(e.useRef)(null),Pi=function(ga){Jr(ga,!0,Rr.current)!==!1&&Tn(!0)},Ki=function(){Rr.current=!0},Hi=function(){Rr.current=!1},Qi=function(ga){var _a=ga.target.value;if(Nr&&ta.current&&/[\r\n]/.test(ta.current)){var ya=ta.current.replace(/\r\n/g," ").replace(/[\r\n]/g," ");_a=_a.replace(ya,ta.current)}ta.current=null,Pi(_a)},da=function(ga){var _a=ga.clipboardData,ya=_a.getData("text");ta.current=ya},Oa=function(ga){var _a=ga.target;if(_a!==dr.current){var ya=document.body.style.msTouchAction!==void 0;ya?setTimeout(function(){dr.current.focus()}):dr.current.focus()}},ra=function(ga){var _a=Ri();ga.target!==dr.current&&!_a&&ga.preventDefault(),(kt!=="combobox"&&(!_r||!_a)||!kn)&&(kn&&Jr("",!0,!1),Tn())},Da={inputRef:dr,onInputKeyDown:Bi,onInputMouseDown:Gi,onInputChange:Qi,onInputPaste:da,onInputCompositionStart:Ki,onInputCompositionEnd:Hi},Ra=ln?e.createElement(Pe,Object.assign({},Sr,Da)):e.createElement(Ve,Object.assign({},Sr,Da));return e.createElement("div",{ref:$n,className:"".concat(Gr,"-selector"),onClick:Oa,onMouseDown:ra},Ra)},ue=e.forwardRef(Ue);ue.displayName="Selector";var rt=ue,ge=i("uciX"),Z=function(Sr){var yn=typeof Sr!="number"?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:yn,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:yn,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:yn,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:yn,adjustY:1}}}},Y=function(Sr,yn){var dr=Sr.prefixCls,Rr=Sr.disabled,Gr=Sr.visible,ln=Sr.children,kn=Sr.popupElement,kt=Sr.containerWidth,_r=Sr.animation,Nr=Sr.transitionName,Jr=Sr.dropdownStyle,xn=Sr.dropdownClassName,Tn=Sr.direction,wn=Tn===void 0?"ltr":Tn,$n=Sr.dropdownMatchSelectWidth,Vn=$n===void 0?!0:$n,mi=Sr.dropdownRender,Ri=Sr.dropdownAlign,vi=Sr.getPopupContainer,Bi=Sr.empty,Gi=Sr.getTriggerDOMNode,ta=Object(T.a)(Sr,["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode"]),Pi="".concat(dr,"-dropdown"),Ki=kn;mi&&(Ki=mi(kn));var Hi=e.useMemo(function(){return Z(Vn)},[Vn]),Qi=_r?"".concat(Pi,"-").concat(_r):Nr,da=e.useRef(null);e.useImperativeHandle(yn,function(){return{getPopupElement:function(){return da.current}}});var Oa=Object(w.a)({minWidth:kt},Jr);return typeof Vn=="number"?Oa.width=Vn:Vn&&(Oa.width=kt),e.createElement(ge.a,Object.assign({},ta,{showAction:[],hideAction:[],popupPlacement:wn==="rtl"?"bottomRight":"bottomLeft",builtinPlacements:Hi,prefixCls:Pi,popupTransitionName:Qi,popup:e.createElement("div",{ref:da},Ki),popupAlign:Ri,popupVisible:Gr,getPopupContainer:vi,popupClassName:C()(xn,Object(x.a)({},"".concat(Pi,"-empty"),Bi)),popupStyle:Oa,getTriggerDOMNode:Gi}),ln)},ee=e.forwardRef(Y);ee.displayName="SelectTrigger";var fe=ee,be="RC_SELECT_INTERNAL_PROPS_MARK";function Ce(){var kr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Sr=e.useState(!1),yn=Object(b.a)(Sr,2),dr=yn[0],Rr=yn[1],Gr=e.useRef(null),ln=function(){window.clearTimeout(Gr.current)};e.useEffect(function(){return ln},[]);var kn=function(_r,Nr){ln(),Gr.current=window.setTimeout(function(){Rr(_r),Nr&&Nr()},kr)};return[dr,kn,ln]}var Te=i("T5bk"),he=i("Kwbf");function ye(kr,Sr){var yn=kr.key,dr;return"value"in kr&&(dr=kr.value),yn!=null?yn:dr!==void 0?dr:"rc-index-key-".concat(Sr)}function Ie(kr){var Sr=[];function yn(dr,Rr){dr.forEach(function(Gr){Rr||!("options"in Gr)?Sr.push({key:ye(Gr,Sr.length),groupOption:Rr,data:Gr}):(Sr.push({key:ye(Gr,Sr.length),group:!0,data:Gr}),yn(Gr.options,!0))})}return yn(kr,!1),Sr}function tt(kr){var Sr=Object(w.a)({},kr);return"props"in Sr||Object.defineProperty(Sr,"props",{get:function(){return Object(he.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Sr}}),Sr}function pt(kr,Sr){var yn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},dr=yn.prevValueOptions,Rr=dr===void 0?[]:dr,Gr=new Map;return Sr.forEach(function(ln){if(!ln.group){var kn=ln.data;Gr.set(kn.value,kn)}}),kr.map(function(ln){var kn=Gr.get(ln);return kn||(kn=Object(w.a)({},Rr.find(function(kt){return kt._INTERNAL_OPTION_VALUE_===ln}))),tt(kn)})}var st=function(Sr,yn){var dr=yn.options,Rr=yn.prevValue,Gr=yn.labelInValue,ln=yn.optionLabelProp,kn=pt([Sr],dr)[0],kt={value:Sr},_r,Nr=W(Rr);return Gr&&(_r=Nr.find(function(Jr){return Object(v.a)(Jr)==="object"&&"value"in Jr?Jr.value===Sr:Jr.key===Sr})),_r&&Object(v.a)(_r)==="object"&&"label"in _r?(kt.label=_r.label,kn&&typeof _r.label=="string"&&typeof kn[ln]=="string"&&_r.label.trim()!==kn[ln].trim()&&Object(he.a)(!1,"`label` of `value` is not same as `label` in Select options.")):kn&&ln in kn?kt.label=kn[ln]:kt.label=Sr,kt.key=kt.value,kt};function Fe(kr){return W(kr).join("")}function ft(kr){return function(Sr,yn){var dr=Sr.toLowerCase();if("options"in yn)return Fe(yn.label).toLowerCase().includes(dr);var Rr=yn[kr],Gr=Fe(Rr).toLowerCase();return Gr.includes(dr)}}function et(kr,Sr,yn){var dr=yn.optionFilterProp,Rr=yn.filterOption,Gr=[],ln;return Rr===!1?Object(g.a)(Sr):(typeof Rr=="function"?ln=Rr:ln=ft(dr),Sr.forEach(function(kn){if("options"in kn){var kt=ln(kr,kn);if(kt)Gr.push(kn);else{var _r=kn.options.filter(function(Nr){return ln(kr,Nr)});_r.length&&Gr.push(Object(w.a)(Object(w.a)({},kn),{},{options:_r}))}return}ln(kr,tt(kn))&&Gr.push(kn)}),Gr)}function wt(kr,Sr){if(!Sr||!Sr.length)return null;var yn=!1;function dr(Gr,ln){var kn=Object(Te.a)(ln),kt=kn[0],_r=kn.slice(1);if(!kt)return[Gr];var Nr=Gr.split(kt);return yn=yn||Nr.length>1,Nr.reduce(function(Jr,xn){return[].concat(Object(g.a)(Jr),Object(g.a)(dr(xn,_r)))},[]).filter(function(Jr){return Jr})}var Rr=dr(kr,Sr);return yn?Rr:null}function Ht(kr,Sr){var yn=pt([kr],Sr)[0];return yn.disabled}function Dt(kr,Sr,yn,dr){var Rr=W(Sr).slice().sort(),Gr=Object(g.a)(kr),ln=new Set;return kr.forEach(function(kn){kn.options?kn.options.forEach(function(kt){ln.add(kt.value)}):ln.add(kn.value)}),Rr.forEach(function(kn){var kt=dr?kn.value:kn;if(!ln.has(kt)){var _r;Gr.push(dr?(_r={},Object(x.a)(_r,yn,kn.label),Object(x.a)(_r,"value",kt),_r):{value:kt})}}),Gr}function Tt(kr,Sr,yn){var dr=e.useRef(null);dr.current={elements:kr.filter(function(Rr){return Rr}),open:Sr,triggerOpen:yn},e.useEffect(function(){function Rr(Gr){var ln=Gr.target;dr.current.open&&dr.current.elements.every(function(kn){return!kn.contains(ln)&&kn!==ln})&&dr.current.triggerOpen(!1)}return window.addEventListener("mousedown",Rr),function(){return window.removeEventListener("mousedown",Rr)}},[])}function Bt(kr){var Sr=e.useRef(kr),yn=e.useMemo(function(){var dr=new Map;Sr.current.forEach(function(Gr){var ln=Gr.value,kn=Gr.label;ln!==kn&&dr.set(ln,kn)});var Rr=kr.map(function(Gr){var ln=dr.get(Gr.value);return Gr.value===Gr.label&&ln?Object(w.a)(Object(w.a)({},Gr),{},{label:ln}):Gr});return Sr.current=Rr,Rr},[kr]);return yn}function Ke(kr,Sr){var yn=e.useRef(null),dr=e.useMemo(function(){var Gr=new Map;return Sr.forEach(function(ln){var kn=ln.data.value;Gr.set(kn,ln)}),Gr},[kr,Sr]);yn.current=dr;var Rr=function(ln){return ln.map(function(kn){return yn.current.get(kn)}).filter(Boolean)};return Rr}var de=["removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown"];function oe(kr){var Sr=kr.prefixCls,yn=kr.components.optionList,dr=kr.convertChildrenToData,Rr=kr.flattenOptions,Gr=kr.getLabeledValue,ln=kr.filterOptions,kn=kr.isValueDisabled,kt=kr.findValueOption,_r=kr.warningProps,Nr=kr.fillOptionsWithMissingValue,Jr=kr.omitDOMProps;function xn(wn,$n){var Vn,mi=wn.prefixCls,Ri=mi===void 0?Sr:mi,vi=wn.className,Bi=wn.id,Gi=wn.open,ta=wn.defaultOpen,Pi=wn.options,Ki=wn.children,Hi=wn.mode,Qi=wn.value,da=wn.defaultValue,Oa=wn.labelInValue,ra=wn.showSearch,Da=wn.inputValue,Ra=wn.searchValue,va=wn.filterOption,ga=wn.filterSort,_a=wn.optionFilterProp,ya=_a===void 0?"value":_a,Ga=wn.autoClearSearchValue,Ia=Ga===void 0?!0:Ga,Wa=wn.onSearch,no=wn.allowClear,io=wn.clearIcon,uo=wn.showArrow,$i=wn.inputIcon,mo=wn.menuItemSelectedIcon,Eo=wn.disabled,ao=wn.loading,Co=wn.defaultActiveFirstOption,Ko=wn.notFoundContent,to=Ko===void 0?"Not Found":Ko,Qo=wn.optionLabelProp,bo=wn.backfill,xo=wn.getInputElement,ts=wn.getPopupContainer,ka=wn.listHeight,Io=ka===void 0?200:ka,Mo=wn.listItemHeight,is=Mo===void 0?20:Mo,To=wn.animation,Zo=wn.transitionName,Vo=wn.virtual,Lo=wn.dropdownStyle,ho=wn.dropdownClassName,ja=wn.dropdownMatchSelectWidth,mt=wn.dropdownRender,Cr=wn.dropdownAlign,tn=wn.showAction,Yr=tn===void 0?[]:tn,Xn=wn.direction,hn=wn.tokenSeparators,Xr=wn.tagRender,ni=wn.onPopupScroll,nn=wn.onDropdownVisibleChange,Wn=wn.onFocus,si=wn.onBlur,ui=wn.onKeyUp,ai=wn.onKeyDown,Ei=wn.onMouseDown,gi=wn.onChange,Ti=wn.onSelect,_i=wn.onDeselect,ia=wn.onClear,Fi=wn.internalProps,fa=Fi===void 0?{}:Fi,za=Object(T.a)(wn,["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"]),Ca=fa.mark===be,xa=Jr?Jr(za):za;de.forEach(function(Ho){delete xa[Ho]});var Ma=Object(e.useRef)(null),Pa=Object(e.useRef)(null),Wo=Object(e.useRef)(null),Oo=Object(e.useRef)(null),pa=Object(e.useMemo)(function(){return(hn||[]).some(function(Ho){return[`
`,`\r
`].includes(Ho)})},[hn]),Sa=Ce(),Ea=Object(b.a)(Sa,3),Ka=Ea[0],so=Ea[1],lo=Ea[2],wo=Object(e.useState)(),No=Object(b.a)(wo,2),cs=No[0],hs=No[1];Object(e.useEffect)(function(){hs("rc_select_".concat(le()))},[]);var Bs=Bi||cs,rs=Qo;rs===void 0&&(rs=Pi?"label":"children");var ns=Hi==="combobox"?!1:Oa,co=Hi==="tags"||Hi==="multiple",oo=ra!==void 0?ra:co||Hi==="combobox",eo=Object(e.useRef)(null);e.useImperativeHandle($n,function(){return{focus:Wo.current.focus,blur:Wo.current.blur}});var ss=Object(I.a)(da,{value:Qi}),xs=Object(b.a)(ss,2),Po=xs[0],el=xs[1],zo=Object(e.useMemo)(function(){return U(Po,{labelInValue:ns,combobox:Hi==="combobox"})},[Po,ns]),Jo=Object(e.useMemo)(function(){return new Set(zo)},[zo]),ks=Object(e.useState)(null),as=Object(b.a)(ks,2),fs=as[0],Sn=as[1],Ls=Object(e.useState)(""),yl=Object(b.a)(Ls,2),Ks=yl[0],Ws=yl[1],ps=Ks;Hi==="combobox"&&Po!==void 0?ps=Po:Ra!==void 0?ps=Ra:Da&&(ps=Da);var Ms=Object(e.useMemo)(function(){var Ho=Pi;return Ho===void 0&&(Ho=dr(Ki)),Hi==="tags"&&Nr&&(Ho=Nr(Ho,Po,rs,Oa)),Ho||[]},[Pi,Ki,Hi,Po]),Zs=Object(e.useMemo)(function(){return Rr(Ms,wn)},[Ms]),zs=Ke(zo,Zs),Es=Object(e.useMemo)(function(){if(!ps||!oo)return Object(g.a)(Ms);var Ho=ln(ps,Ms,{optionFilterProp:ya,filterOption:Hi==="combobox"&&va===void 0?function(){return!0}:va});return Hi==="tags"&&Ho.every(function(vo){return vo[ya]!==ps})&&Ho.unshift({value:ps,label:ps,key:"__RC_SELECT_TAG_PLACEHOLDER__"}),ga&&Array.isArray(Ho)?Object(g.a)(Ho).sort(ga):Ho},[Ms,ps,Hi,oo,ga]),Ds=Object(e.useMemo)(function(){return Rr(Es,wn)},[Es]);Object(e.useEffect)(function(){Oo.current&&Oo.current.scrollTo&&Oo.current.scrollTo(0)},[ps]);var tl=Object(e.useMemo)(function(){var Ho=zo.map(function(vo){var $o=zs([vo]),ms=Gr(vo,{options:$o,prevValue:Po,labelInValue:ns,optionLabelProp:rs});return Object(w.a)(Object(w.a)({},ms),{},{disabled:kn(vo,$o)})});return!Hi&&Ho.length===1&&Ho[0].value===null&&Ho[0].label===null?[]:Ho},[Po,Ms,Hi]);tl=Bt(tl);var Us=function(vo,$o,ms){var _s=zs([vo]),qo=kt([vo],_s)[0];if(!fa.skipTriggerSelect){var Is=ns?Gr(vo,{options:_s,prevValue:Po,labelInValue:ns,optionLabelProp:rs}):vo;$o&&Ti?Ti(Is,qo):!$o&&_i&&_i(Is,qo)}Ca&&($o&&fa.onRawSelect?fa.onRawSelect(vo,qo,ms):!$o&&fa.onRawDeselect&&fa.onRawDeselect(vo,qo,ms))},Go=Object(e.useState)([]),Do=Object(b.a)(Go,2),Ts=Do[0],Ns=Do[1],Ao=function(vo){if(Ca&&fa.skipTriggerChange)return;var $o=zs(vo),ms=V(Array.from(vo),{labelInValue:ns,options:$o,getLabeledValue:Gr,prevValue:Po,optionLabelProp:rs}),_s=co?ms:ms[0];if(gi&&(zo.length!==0||ms.length!==0)){var qo=kt(vo,$o,{prevValueOptions:Ts});Ns(qo.map(function(Is,Rs){var nl=Object(w.a)({},Is);return Object.defineProperty(nl,"_INTERNAL_OPTION_VALUE_",{get:function(){return vo[Rs]}}),nl})),gi(_s,co?qo:qo[0])}el(_s)},jt=function(vo,$o){var ms=$o.selected,_s=$o.source;if(Eo)return;var qo;co?(qo=new Set(zo),ms?qo.add(vo):qo.delete(vo)):(qo=new Set,qo.add(vo)),(co||!co&&Array.from(zo)[0]!==vo)&&Ao(Array.from(qo)),Us(vo,!co||ms,_s),Hi==="combobox"?(Ws(String(vo)),Sn("")):(!co||Ia)&&(Ws(""),Sn(""))},sr=function(vo,$o){jt(vo,Object(w.a)(Object(w.a)({},$o),{},{source:"option"}))},_n=function(vo,$o){jt(vo,Object(w.a)(Object(w.a)({},$o),{},{source:"selection"}))},hi=Hi==="combobox"&&xo&&xo()||null,Nt=Object(I.a)(void 0,{defaultValue:ta,value:Gi}),ce=Object(b.a)(Nt,2),Ee=ce[0],Le=ce[1],Qe=Ee,Rt=!to&&!Es.length;(Eo||Rt&&Qe&&Hi==="combobox")&&(Qe=!1);var lr=Rt?!1:Qe,Qr=function(vo){var $o=vo!==void 0?vo:!Qe;Ee!==$o&&!Eo&&(Le($o),nn&&nn($o))};Tt([Ma.current,Pa.current&&Pa.current.getPopupElement()],lr,Qr);var pn=function(vo,$o,ms){var _s=!0,qo=vo;Sn(null);var Is=ms?null:wt(vo,hn),Rs=Is;if(Hi==="combobox")$o&&Ao([qo]);else if(Is){qo="",Hi!=="tags"&&(Rs=Is.map(function(Il){var Tl=Zs.find(function(Ul){var Dl=Ul.data;return Dl[rs]===Il});return Tl?Tl.data.value:null}).filter(function(Il){return Il!==null}));var nl=Array.from(new Set([].concat(Object(g.a)(zo),Object(g.a)(Rs))));Ao(nl),nl.forEach(function(Il){Us(Il,!0,"input")}),Qr(!1),_s=!1}return Ws(qo),Wa&&ps!==qo&&Wa(qo),_s},In=function(vo){var $o=Array.from(new Set([].concat(Object(g.a)(zo),[vo])));Ao($o),$o.forEach(function(ms){Us(ms,!0,"input")}),Ws("")};Object(e.useEffect)(function(){Ee&&!!Eo&&Le(!1)},[Eo]),Object(e.useEffect)(function(){!Qe&&!co&&Hi!=="combobox"&&pn("",!1,!1)},[Qe]);var li=ct(),bi=Object(b.a)(li,2),Ai=bi[0],Yi=bi[1],ua=function(vo){var $o=Ai(),ms=vo.which;if(!Qe&&ms===O.a.ENTER&&Qr(!0),Yi(!!ps),ms===O.a.BACKSPACE&&!$o&&co&&!ps&&zo.length){var _s=Q(tl,zo);_s.removedValue!==null&&(Ao(_s.values),Us(_s.removedValue,!1,"input"))}for(var qo=arguments.length,Is=new Array(qo>1?qo-1:0),Rs=1;Rs<qo;Rs++)Is[Rs-1]=arguments[Rs];if(Qe&&Oo.current){var nl;(nl=Oo.current).onKeyDown.apply(nl,[vo].concat(Is))}ai&&ai.apply(void 0,[vo].concat(Is))},Va=function(vo){for(var $o=arguments.length,ms=new Array($o>1?$o-1:0),_s=1;_s<$o;_s++)ms[_s-1]=arguments[_s];if(Qe&&Oo.current){var qo;(qo=Oo.current).onKeyUp.apply(qo,[vo].concat(ms))}ui&&ui.apply(void 0,[vo].concat(ms))},ro=Object(e.useRef)(!1),So=function(){so(!0),Eo||(Wn&&!ro.current&&Wn.apply(void 0,arguments),Yr.includes("focus")&&Qr(!0)),ro.current=!0},Ro=function(){if(so(!1,function(){ro.current=!1,Qr(!1)}),Eo)return;ps&&(Hi==="tags"?(pn("",!1,!1),Ao(Array.from(new Set([].concat(Object(g.a)(zo),[ps]))))):Hi==="multiple"&&Ws("")),si&&si.apply(void 0,arguments)},jo=[];Object(e.useEffect)(function(){return function(){jo.forEach(function(Ho){return clearTimeout(Ho)}),jo.splice(0,jo.length)}},[]);var Cs=function(vo){var $o=vo.target,ms=Pa.current&&Pa.current.getPopupElement();if(ms&&ms.contains($o)){var _s=setTimeout(function(){var nl=jo.indexOf(_s);nl!==-1&&jo.splice(nl,1),lo(),ms.contains(document.activeElement)||Wo.current.focus()});jo.push(_s)}if(Ei){for(var qo=arguments.length,Is=new Array(qo>1?qo-1:0),Rs=1;Rs<qo;Rs++)Is[Rs-1]=arguments[Rs];Ei.apply(void 0,[vo].concat(Is))}},vs=Object(e.useState)(0),os=Object(b.a)(vs,2),Fo=os[0],yo=os[1],As=Co!==void 0?Co:Hi!=="combobox",$s=function(vo,$o){var ms=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},_s=ms.source,qo=_s===void 0?"keyboard":_s;yo($o),bo&&Hi==="combobox"&&vo!==null&&qo==="keyboard"&&Sn(String(vo))},ys=Object(e.useState)(null),Fa=Object(b.a)(ys,2),ml=Fa[0],cl=Fa[1],Ps=Object(e.useState)({}),ws=Object(b.a)(Ps,2),Ys=ws[1];function Vl(){Ys({})}re(function(){if(lr){var Ho=Math.ceil(Ma.current.offsetWidth);ml!==Ho&&cl(Ho)}},[lr]);var Nl=e.createElement(yn,{ref:Oo,prefixCls:Ri,id:Bs,open:Qe,childrenAsData:!Pi,options:Es,flattenOptions:Ds,multiple:co,values:Jo,height:Io,itemHeight:is,onSelect:sr,onToggleOpen:Qr,onActiveValue:$s,defaultActiveFirstOption:As,notFoundContent:to,onScroll:ni,searchValue:ps,menuItemSelectedIcon:mo,virtual:Vo!==!1&&ja!==!1,onMouseEnter:Vl}),hl,Os=function(){Ca&&fa.onClear&&fa.onClear(),ia&&ia(),Ao([]),pn("",!1,!1)};!Eo&&no&&(zo.length||ps)&&(hl=e.createElement(B,{className:"".concat(Ri,"-clear"),onMouseDown:Os,customizeIcon:io},"\xD7"));var Vs=uo!==void 0?uo:ao||!co&&Hi!=="combobox",_l;Vs&&(_l=e.createElement(B,{className:C()("".concat(Ri,"-arrow"),Object(x.a)({},"".concat(Ri,"-arrow-loading"),ao)),customizeIcon:$i,customizeIconProps:{loading:ao,searchValue:ps,open:Qe,focused:Ka,showSearch:oo}}));var ol=C()(Ri,vi,(Vn={},Object(x.a)(Vn,"".concat(Ri,"-focused"),Ka),Object(x.a)(Vn,"".concat(Ri,"-multiple"),co),Object(x.a)(Vn,"".concat(Ri,"-single"),!co),Object(x.a)(Vn,"".concat(Ri,"-allow-clear"),no),Object(x.a)(Vn,"".concat(Ri,"-show-arrow"),Vs),Object(x.a)(Vn,"".concat(Ri,"-disabled"),Eo),Object(x.a)(Vn,"".concat(Ri,"-loading"),ao),Object(x.a)(Vn,"".concat(Ri,"-open"),Qe),Object(x.a)(Vn,"".concat(Ri,"-customize-input"),hi),Object(x.a)(Vn,"".concat(Ri,"-show-search"),oo),Vn));return e.createElement("div",Object.assign({className:ol},xa,{ref:Ma,onMouseDown:Cs,onKeyDown:ua,onKeyUp:Va,onFocus:So,onBlur:Ro}),Ka&&!Qe&&e.createElement("span",{style:{width:0,height:0,display:"flex",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(zo.join(", "))),e.createElement(fe,{ref:Pa,disabled:Eo,prefixCls:Ri,visible:lr,popupElement:Nl,containerWidth:ml,animation:To,transitionName:Zo,dropdownStyle:Lo,dropdownClassName:ho,direction:Xn,dropdownMatchSelectWidth:ja,dropdownRender:mt,dropdownAlign:Cr,getPopupContainer:ts,empty:!Ms.length,getTriggerDOMNode:function(){return eo.current}},e.createElement(rt,Object.assign({},wn,{domRef:eo,prefixCls:Ri,inputElement:hi,ref:Wo,id:Bs,showSearch:oo,mode:Hi,accessibilityIndex:Fo,multiple:co,tagRender:Xr,values:tl,open:Qe,onToggleOpen:Qr,searchValue:ps,activeValue:fs,onSearch:pn,onSearchSubmit:In,onSelect:_n,tokenWithEnter:pa}))),_l,hl)}var Tn=e.forwardRef(xn);return Tn}var lt=i("Zm9Q"),qe=i("JX7q"),pe=e.createContext(null),Kt=function(Sr){var yn=Sr.prefixCls,dr=Sr.level,Rr=Sr.isStart,Gr=Sr.isEnd;if(!dr)return null;for(var ln="".concat(yn,"-indent-unit"),kn=[],kt=0;kt<dr;kt+=1){var _r;kn.push(e.createElement("span",{key:kt,className:C()(ln,(_r={},Object(x.a)(_r,"".concat(ln,"-start"),Rr[kt]),Object(x.a)(_r,"".concat(ln,"-end"),Gr[kt]),_r))}))}return e.createElement("span",{"aria-hidden":"true",className:"".concat(yn,"-indent")},kn)},hr=Kt,gt="open",nr="close",mr="---",cn=function(kr){Object(c.a)(yn,kr);var Sr=Object(h.a)(yn);function yn(){var dr;return Object(r.a)(this,yn),dr=Sr.apply(this,arguments),dr.state={dragNodeHighlight:!1},dr.onSelectorClick=function(Rr){var Gr=dr.props.context.onNodeClick;Gr(Rr,Gt(dr.props)),dr.isSelectable()?dr.onSelect(Rr):dr.onCheck(Rr)},dr.onSelectorDoubleClick=function(Rr){var Gr=dr.props.context.onNodeDoubleClick;Gr(Rr,Gt(dr.props))},dr.onSelect=function(Rr){if(dr.isDisabled())return;var Gr=dr.props.context.onNodeSelect;Rr.preventDefault(),Gr(Rr,Gt(dr.props))},dr.onCheck=function(Rr){if(dr.isDisabled())return;var Gr=dr.props,ln=Gr.disableCheckbox,kn=Gr.checked,kt=dr.props.context.onNodeCheck;if(!dr.isCheckable()||ln)return;Rr.preventDefault();var _r=!kn;kt(Rr,Gt(dr.props),_r)},dr.onMouseEnter=function(Rr){var Gr=dr.props.context.onNodeMouseEnter;Gr(Rr,Gt(dr.props))},dr.onMouseLeave=function(Rr){var Gr=dr.props.context.onNodeMouseLeave;Gr(Rr,Gt(dr.props))},dr.onContextMenu=function(Rr){var Gr=dr.props.context.onNodeContextMenu;Gr(Rr,Gt(dr.props))},dr.onDragStart=function(Rr){var Gr=dr.props.context.onNodeDragStart;Rr.stopPropagation(),dr.setState({dragNodeHighlight:!0}),Gr(Rr,Object(qe.a)(dr));try{Rr.dataTransfer.setData("text/plain","")}catch(ln){}},dr.onDragEnter=function(Rr){var Gr=dr.props.context.onNodeDragEnter;Rr.preventDefault(),Rr.stopPropagation(),Gr(Rr,Object(qe.a)(dr))},dr.onDragOver=function(Rr){var Gr=dr.props.context.onNodeDragOver;Rr.preventDefault(),Rr.stopPropagation(),Gr(Rr,Object(qe.a)(dr))},dr.onDragLeave=function(Rr){var Gr=dr.props.context.onNodeDragLeave;Rr.stopPropagation(),Gr(Rr,Object(qe.a)(dr))},dr.onDragEnd=function(Rr){var Gr=dr.props.context.onNodeDragEnd;Rr.stopPropagation(),dr.setState({dragNodeHighlight:!1}),Gr(Rr,Object(qe.a)(dr))},dr.onDrop=function(Rr){var Gr=dr.props.context.onNodeDrop;Rr.preventDefault(),Rr.stopPropagation(),dr.setState({dragNodeHighlight:!1}),Gr(Rr,Object(qe.a)(dr))},dr.onExpand=function(Rr){var Gr=dr.props.context.onNodeExpand;Gr(Rr,Gt(dr.props))},dr.setSelectHandle=function(Rr){dr.selectHandle=Rr},dr.getNodeState=function(){var Rr=dr.props.expanded;return dr.isLeaf()?null:Rr?gt:nr},dr.hasChildren=function(){var Rr=dr.props.eventKey,Gr=dr.props.context.keyEntities,ln=Gr[Rr]||{},kn=ln.children;return!!(kn||[]).length},dr.isLeaf=function(){var Rr=dr.props,Gr=Rr.isLeaf,ln=Rr.loaded,kn=dr.props.context.loadData,kt=dr.hasChildren();return Gr===!1?!1:Gr||!kn&&!kt||kn&&ln&&!kt},dr.isDisabled=function(){var Rr=dr.props.disabled,Gr=dr.props.context.disabled;return!!(Gr||Rr)},dr.isCheckable=function(){var Rr=dr.props.checkable,Gr=dr.props.context.checkable;return!Gr||Rr===!1?!1:Gr},dr.syncLoadData=function(Rr){var Gr=Rr.expanded,ln=Rr.loading,kn=Rr.loaded,kt=dr.props.context,_r=kt.loadData,Nr=kt.onNodeLoad;if(ln)return;_r&&Gr&&!dr.isLeaf()&&(!dr.hasChildren()&&!kn&&Nr(Gt(dr.props)))},dr.renderSwitcher=function(){var Rr=dr.props,Gr=Rr.expanded,ln=Rr.switcherIcon,kn=dr.props.context,kt=kn.prefixCls,_r=kn.switcherIcon,Nr=ln||_r;if(dr.isLeaf())return e.createElement("span",{className:C()("".concat(kt,"-switcher"),"".concat(kt,"-switcher-noop"))},typeof Nr=="function"?Nr(Object(w.a)(Object(w.a)({},dr.props),{},{isLeaf:!0})):Nr);var Jr=C()("".concat(kt,"-switcher"),"".concat(kt,"-switcher_").concat(Gr?gt:nr));return e.createElement("span",{onClick:dr.onExpand,className:Jr},typeof Nr=="function"?Nr(Object(w.a)(Object(w.a)({},dr.props),{},{isLeaf:!1})):Nr)},dr.renderCheckbox=function(){var Rr=dr.props,Gr=Rr.checked,ln=Rr.halfChecked,kn=Rr.disableCheckbox,kt=dr.props.context.prefixCls,_r=dr.isDisabled(),Nr=dr.isCheckable();if(!Nr)return null;var Jr=typeof Nr!="boolean"?Nr:null;return e.createElement("span",{className:C()("".concat(kt,"-checkbox"),Gr&&"".concat(kt,"-checkbox-checked"),!Gr&&ln&&"".concat(kt,"-checkbox-indeterminate"),(_r||kn)&&"".concat(kt,"-checkbox-disabled")),onClick:dr.onCheck},Jr)},dr.renderIcon=function(){var Rr=dr.props.loading,Gr=dr.props.context.prefixCls;return e.createElement("span",{className:C()("".concat(Gr,"-iconEle"),"".concat(Gr,"-icon__").concat(dr.getNodeState()||"docu"),Rr&&"".concat(Gr,"-icon_loading"))})},dr.renderSelector=function(){var Rr=dr.state.dragNodeHighlight,Gr=dr.props,ln=Gr.title,kn=Gr.selected,kt=Gr.icon,_r=Gr.loading,Nr=Gr.data,Jr=dr.props.context,xn=Jr.prefixCls,Tn=Jr.showIcon,wn=Jr.icon,$n=Jr.draggable,Vn=Jr.loadData,mi=Jr.titleRender,Ri=dr.isDisabled(),vi="".concat(xn,"-node-content-wrapper"),Bi;if(Tn){var Gi=kt||wn;Bi=Gi?e.createElement("span",{className:C()("".concat(xn,"-iconEle"),"".concat(xn,"-icon__customize"))},typeof Gi=="function"?Gi(dr.props):Gi):dr.renderIcon()}else Vn&&_r&&(Bi=dr.renderIcon());var ta;typeof ln=="function"?ta=ln(Nr):mi?ta=mi(Nr):ta=ln;var Pi=e.createElement("span",{className:"".concat(xn,"-title")},ta);return e.createElement("span",{ref:dr.setSelectHandle,title:typeof ln=="string"?ln:"",className:C()("".concat(vi),"".concat(vi,"-").concat(dr.getNodeState()||"normal"),!Ri&&(kn||Rr)&&"".concat(xn,"-node-selected"),!Ri&&$n&&"draggable"),draggable:!Ri&&$n||void 0,"aria-grabbed":!Ri&&$n||void 0,onMouseEnter:dr.onMouseEnter,onMouseLeave:dr.onMouseLeave,onContextMenu:dr.onContextMenu,onClick:dr.onSelectorClick,onDoubleClick:dr.onSelectorDoubleClick,onDragStart:$n?dr.onDragStart:void 0},Bi,Pi)},dr}return Object(s.a)(yn,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Rr=this.props.selectable,Gr=this.props.context.selectable;return typeof Rr=="boolean"?Rr:Gr}},{key:"render",value:function(){var Rr,Gr=this.props,ln=Gr.eventKey,kn=Gr.className,kt=Gr.style,_r=Gr.dragOver,Nr=Gr.dragOverGapTop,Jr=Gr.dragOverGapBottom,xn=Gr.isLeaf,Tn=Gr.isStart,wn=Gr.isEnd,$n=Gr.expanded,Vn=Gr.selected,mi=Gr.checked,Ri=Gr.halfChecked,vi=Gr.loading,Bi=Gr.domRef,Gi=Gr.active,ta=Gr.onMouseMove,Pi=Object(T.a)(Gr,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),Ki=this.props.context,Hi=Ki.prefixCls,Qi=Ki.filterTreeNode,da=Ki.draggable,Oa=Ki.keyEntities,ra=this.isDisabled(),Da=Be(Pi),Ra=Oa[ln]||{},va=Ra.level,ga=wn[wn.length-1];return e.createElement("div",Object.assign({ref:Bi,className:C()(kn,"".concat(Hi,"-treenode"),(Rr={},Object(x.a)(Rr,"".concat(Hi,"-treenode-disabled"),ra),Object(x.a)(Rr,"".concat(Hi,"-treenode-switcher-").concat($n?"open":"close"),!xn),Object(x.a)(Rr,"".concat(Hi,"-treenode-checkbox-checked"),mi),Object(x.a)(Rr,"".concat(Hi,"-treenode-checkbox-indeterminate"),Ri),Object(x.a)(Rr,"".concat(Hi,"-treenode-selected"),Vn),Object(x.a)(Rr,"".concat(Hi,"-treenode-loading"),vi),Object(x.a)(Rr,"".concat(Hi,"-treenode-active"),Gi),Object(x.a)(Rr,"".concat(Hi,"-treenode-leaf-last"),ga),Object(x.a)(Rr,"drag-over",!ra&&_r),Object(x.a)(Rr,"drag-over-gap-top",!ra&&Nr),Object(x.a)(Rr,"drag-over-gap-bottom",!ra&&Jr),Object(x.a)(Rr,"filter-node",Qi&&Qi(Gt(this.props))),Rr)),style:kt,onDragEnter:da?this.onDragEnter:void 0,onDragOver:da?this.onDragOver:void 0,onDragLeave:da?this.onDragLeave:void 0,onDrop:da?this.onDrop:void 0,onDragEnd:da?this.onDragEnd:void 0,onMouseMove:ta},Da),e.createElement(hr,{prefixCls:Hi,level:va,isStart:Tn,isEnd:wn}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),yn}(e.Component),Ar=function(Sr){return e.createElement(pe.Consumer,null,function(yn){return e.createElement(cn,Object.assign({},Sr,{context:yn}))})};Ar.displayName="TreeNode",Ar.defaultProps={title:mr},Ar.isTreeNode=1;var xr=Ar,qt=.25,ar=2;function Et(kr,Sr){var yn=kr.slice(),dr=yn.indexOf(Sr);return dr>=0&&yn.splice(dr,1),yn}function en(kr,Sr){var yn=kr.slice();return yn.indexOf(Sr)===-1&&yn.push(Sr),yn}function Mn(kr){return kr.split("-")}function Yn(kr,Sr){return"".concat(kr,"-").concat(Sr)}function ci(kr){return kr&&kr.type&&kr.type.isTreeNode}function Vi(kr,Sr){var yn=[kr],dr=Sr[kr];function Rr(){var Gr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Gr.forEach(function(ln){var kn=ln.key,kt=ln.children;yn.push(kn),Rr(kt)})}return Rr(dr.children),yn}function jn(kr,Sr){var yn=kr.clientY,dr=Sr.selectHandle.getBoundingClientRect(),Rr=dr.top,Gr=dr.bottom,ln=dr.height,kn=Math.max(ln*qt,ar);return yn<=Rr+kn?-1:yn>=Gr-kn?1:0}function Qn(kr,Sr){if(!kr)return;var yn=Sr.multiple;return yn?kr.slice():kr.length?[kr[0]]:kr}var $t=function(Sr){return Sr};function Ot(kr,Sr){if(!kr)return[];var yn=Sr||{},dr=yn.processProps,Rr=dr===void 0?$t:dr,Gr=Array.isArray(kr)?kr:[kr];return Gr.map(function(ln){var kn=ln.children,kt=Object(T.a)(ln,["children"]),_r=Ot(kn,Sr);return u.a.createElement(xr,Object.assign({},Rr(kt)),_r)})}function ke(kr){if(!kr)return null;var Sr;if(Array.isArray(kr))Sr={checkedKeys:kr,halfCheckedKeys:void 0};else if(Object(v.a)(kr)==="object")Sr={checkedKeys:kr.checked||void 0,halfCheckedKeys:kr.halfChecked||void 0};else return Object(he.a)(!1,"`checkedKeys` is not an array or an object"),null;return Sr}function Me(kr,Sr){var yn=new Set;function dr(Rr){if(yn.has(Rr))return;var Gr=Sr[Rr];if(!Gr)return;yn.add(Rr);var ln=Gr.parent,kn=Gr.node;if(kn.disabled)return;ln&&dr(ln.key)}return(kr||[]).forEach(function(Rr){dr(Rr)}),Object(g.a)(yn)}function Be(kr){var Sr={};return Object.keys(kr).forEach(function(yn){(yn.startsWith("data-")||yn.startsWith("aria-"))&&(Sr[yn]=kr[yn])}),Sr}function at(kr,Sr){return kr!=null?kr:Sr}function At(){var kr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Sr=new Map;function yn(dr){var Rr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(dr||[]).forEach(function(Gr){var ln=Gr.key,kn=Gr.children;Object(he.a)(ln!=null,"Tree node must have a certain key: [".concat(Rr).concat(ln,"]"));var kt=String(ln);Object(he.a)(!Sr.has(kt)||ln===null||ln===void 0,"Same 'key' exist in the Tree: ".concat(kt)),Sr.set(kt,!0),yn(kn,"".concat(Rr).concat(kt," > "))})}yn(kr)}function Ct(kr){function Sr(yn){var dr=Object(lt.a)(yn);return dr.map(function(Rr){if(!ci(Rr))return Object(he.a)(!Rr,"Tree/TreeNode can only accept TreeNode as children."),null;var Gr=Rr.key,ln=Rr.props,kn=ln.children,kt=Object(T.a)(ln,["children"]),_r=Object(w.a)({key:Gr},kt),Nr=Sr(kn);return Nr.length&&(_r.children=Nr),_r}).filter(function(Rr){return Rr})}return Sr(kr)}function Yt(){var kr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],yn=new Set(Sr===!0?[]:Sr),dr=[];function Rr(Gr){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Gr.map(function(kn,kt){var _r=Yn(ln?ln.pos:"0",kt),Nr=at(kn.key,_r),Jr=Object(w.a)(Object(w.a)({},kn),{},{parent:ln,pos:_r,children:null,data:kn,isStart:[].concat(Object(g.a)(ln?ln.isStart:[]),[kt===0]),isEnd:[].concat(Object(g.a)(ln?ln.isEnd:[]),[kt===Gr.length-1])});return dr.push(Jr),Sr===!0||yn.has(Nr)?Jr.children=Rr(kn.children||[],Jr):Jr.children=[],Jr})}return Rr(kr),dr}function Pr(kr,Sr,yn){var dr;yn?typeof yn=="string"?dr=function(ln){return ln[yn]}:typeof yn=="function"&&(dr=function(ln){return yn(ln)}):dr=function(ln,kn){return at(ln.key,kn)};function Rr(Gr,ln,kn){var kt=Gr?Gr.children:kr,_r=Gr?Yn(kn.pos,ln):"0";if(Gr){var Nr=dr(Gr,_r),Jr={node:Gr,index:ln,pos:_r,key:Nr,parentPos:kn.node?kn.pos:null,level:kn.level+1};Sr(Jr)}kt&&kt.forEach(function(xn,Tn){Rr(xn,Tn,{node:Gr,pos:_r,level:kn?kn.level+1:-1})})}Rr(null)}function qr(kr){var Sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},yn=Sr.initWrapper,dr=Sr.processEntity,Rr=Sr.onProcessFinished,Gr=arguments.length>2?arguments[2]:void 0,ln={},kn={},kt={posEntities:ln,keyEntities:kn};return yn&&(kt=yn(kt)||kt),Pr(kr,function(_r){var Nr=_r.node,Jr=_r.index,xn=_r.pos,Tn=_r.key,wn=_r.parentPos,$n=_r.level,Vn={node:Nr,index:Jr,key:Tn,pos:xn,level:$n},mi=at(Tn,xn);ln[xn]=Vn,kn[mi]=Vn,Vn.parent=ln[wn],Vn.parent&&(Vn.parent.children=Vn.parent.children||[],Vn.parent.children.push(Vn)),dr&&dr(Vn,kt)},Gr),Rr&&Rr(kt),kt}function An(kr,Sr){var yn=Sr.expandedKeys,dr=Sr.selectedKeys,Rr=Sr.loadedKeys,Gr=Sr.loadingKeys,ln=Sr.checkedKeys,kn=Sr.halfCheckedKeys,kt=Sr.dragOverNodeKey,_r=Sr.dropPosition,Nr=Sr.keyEntities,Jr=Nr[kr],xn={eventKey:kr,expanded:yn.indexOf(kr)!==-1,selected:dr.indexOf(kr)!==-1,loaded:Rr.indexOf(kr)!==-1,loading:Gr.indexOf(kr)!==-1,checked:ln.indexOf(kr)!==-1,halfChecked:kn.indexOf(kr)!==-1,pos:String(Jr?Jr.pos:""),dragOver:kt===kr&&_r===0,dragOverGapTop:kt===kr&&_r===-1,dragOverGapBottom:kt===kr&&_r===1};return xn}function Gt(kr){var Sr=kr.data,yn=kr.expanded,dr=kr.selected,Rr=kr.checked,Gr=kr.loaded,ln=kr.loading,kn=kr.halfChecked,kt=kr.dragOver,_r=kr.dragOverGapTop,Nr=kr.dragOverGapBottom,Jr=kr.pos,xn=kr.active,Tn=Object(w.a)(Object(w.a)({},Sr),{},{expanded:yn,selected:dr,checked:Rr,loaded:Gr,loading:ln,halfChecked:kn,dragOver:kt,dragOverGapTop:_r,dragOverGapBottom:Nr,pos:Jr,active:xn});return"props"in Tn||Object.defineProperty(Tn,"props",{get:function(){return Object(he.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),kr}}),Tn}function vt(kr,Sr){var yn=new Set;return kr.forEach(function(dr){Sr.has(dr)||yn.add(dr)}),yn}function bt(kr){var Sr=kr||{},yn=Sr.disabled,dr=Sr.disableCheckbox,Rr=Sr.checkable;return!!(yn||dr)||Rr===!1}function fr(kr,Sr,yn,dr){for(var Rr=new Set(kr),Gr=new Set,ln=0;ln<=yn;ln+=1){var kn=Sr.get(ln)||new Set;kn.forEach(function(Jr){var xn=Jr.key,Tn=Jr.node,wn=Jr.children,$n=wn===void 0?[]:wn;Rr.has(xn)&&!dr(Tn)&&$n.filter(function(Vn){return!dr(Vn.node)}).forEach(function(Vn){Rr.add(Vn.key)})})}for(var kt=new Set,_r=yn;_r>=0;_r-=1){var Nr=Sr.get(_r)||new Set;Nr.forEach(function(Jr){var xn=Jr.parent,Tn=Jr.node;if(dr(Tn)||!Jr.parent||kt.has(Jr.parent.key))return;if(dr(Jr.parent.node)){kt.add(xn.key);return}var wn=!0,$n=!1;(xn.children||[]).filter(function(Vn){return!dr(Vn.node)}).forEach(function(Vn){var mi=Vn.key,Ri=Rr.has(mi);wn&&!Ri&&(wn=!1),!$n&&(Ri||Gr.has(mi))&&($n=!0)}),wn&&Rr.add(xn.key),$n&&Gr.add(xn.key),kt.add(xn.key)})}return{checkedKeys:Array.from(Rr),halfCheckedKeys:Array.from(vt(Gr,Rr))}}function Jt(kr,Sr,yn,dr,Rr){for(var Gr=new Set(kr),ln=new Set(Sr),kn=0;kn<=dr;kn+=1){var kt=yn.get(kn)||new Set;kt.forEach(function(xn){var Tn=xn.key,wn=xn.node,$n=xn.children,Vn=$n===void 0?[]:$n;!Gr.has(Tn)&&!ln.has(Tn)&&!Rr(wn)&&Vn.filter(function(mi){return!Rr(mi.node)}).forEach(function(mi){Gr.delete(mi.key)})})}ln=new Set;for(var _r=new Set,Nr=dr;Nr>=0;Nr-=1){var Jr=yn.get(Nr)||new Set;Jr.forEach(function(xn){var Tn=xn.parent,wn=xn.node;if(Rr(wn)||!xn.parent||_r.has(xn.parent.key))return;if(Rr(xn.parent.node)){_r.add(Tn.key);return}var $n=!0,Vn=!1;(Tn.children||[]).filter(function(mi){return!Rr(mi.node)}).forEach(function(mi){var Ri=mi.key,vi=Gr.has(Ri);$n&&!vi&&($n=!1),!Vn&&(vi||ln.has(Ri))&&(Vn=!0)}),$n||Gr.delete(Tn.key),Vn&&ln.add(Tn.key),_r.add(Tn.key)})}return{checkedKeys:Array.from(Gr),halfCheckedKeys:Array.from(vt(ln,Gr))}}function Ut(kr,Sr,yn,dr){var Rr=[],Gr;dr?Gr=dr:Gr=bt;var ln=new Set(kr.filter(function(Nr){var Jr=!!yn[Nr];return Jr||Rr.push(Nr),Jr})),kn=new Map,kt=0;Object.keys(yn).forEach(function(Nr){var Jr=yn[Nr],xn=Jr.level,Tn=kn.get(xn);Tn||(Tn=new Set,kn.set(xn,Tn)),Tn.add(Jr),kt=Math.max(kt,xn)}),Object(he.a)(!Rr.length,"Tree missing follow keys: ".concat(Rr.slice(0,100).map(function(Nr){return"'".concat(Nr,"'")}).join(", ")));var _r;return Sr===!0?_r=fr(ln,kn,kt,Gr):_r=Jt(ln,Sr.halfCheckedKeys,kn,kt,Gr),_r}var er=i("YrtM"),Mt=i("+nKL"),Zt=function(Sr,yn){var dr=Sr.className,Rr=Sr.style,Gr=Sr.motion,ln=Sr.motionNodes,kn=Sr.motionType,kt=Sr.onMotionStart,_r=Sr.onMotionEnd,Nr=Sr.active,Jr=Sr.treeNodeRequiredProps,xn=Object(T.a)(Sr,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),Tn=e.useState(!0),wn=Object(b.a)(Tn,2),$n=wn[0],Vn=wn[1],mi=e.useContext(pe),Ri=mi.prefixCls,vi=e.useRef(!1),Bi=function(){vi.current||_r(),vi.current=!0};return Object(e.useEffect)(function(){ln&&kn==="hide"&&$n&&Vn(!1)},[ln]),Object(e.useEffect)(function(){return ln&&kt(),function(){ln&&Bi()}},[]),ln?e.createElement(F.b,Object.assign({ref:yn,visible:$n},Gr,{motionAppear:kn==="show",onAppearEnd:Bi,onLeaveEnd:Bi}),function(Gi,ta){var Pi=Gi.className,Ki=Gi.style;return e.createElement("div",{ref:ta,className:C()("".concat(Ri,"-treenode-motion"),Pi),style:Ki},ln.map(function(Hi){var Qi=Hi.data,da=Qi.key,Oa=Object(T.a)(Qi,["key"]),ra=Hi.isStart,Da=Hi.isEnd;delete Oa.children;var Ra=An(da,Jr);return e.createElement(xr,Object.assign({},Oa,Ra,{active:Nr,data:Hi.data,key:da,isStart:ra,isEnd:Da}))}))}):e.createElement(xr,Object.assign({domRef:yn,className:dr,style:Rr},xn,{active:Nr}))};Zt.displayName="MotionTreeNode";var Hr=e.forwardRef(Zt),Ir=Hr;function Lr(){var kr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],yn=kr.length,dr=Sr.length;if(Math.abs(yn-dr)!==1)return{add:!1,key:null};function Rr(Gr,ln){var kn=new Map;Gr.forEach(function(_r){kn.set(_r,!0)});var kt=ln.filter(function(_r){return!kn.has(_r)});return kt.length===1?kt[0]:null}return yn<dr?{add:!0,key:Rr(kr,Sr)}:{add:!1,key:Rr(Sr,kr)}}function dn(kr,Sr,yn){var dr=kr.findIndex(function(kn){var kt=kn.data;return kt.key===yn}),Rr=kr[dr+1],Gr=Sr.findIndex(function(kn){var kt=kn.data;return kt.key===yn});if(Rr){var ln=Sr.findIndex(function(kn){var kt=kn.data;return kt.key===Rr.data.key});return Sr.slice(Gr+1,ln)}return Sr.slice(Gr+1)}var gn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ri=function(){},Zn="RC_TREE_MOTION_".concat(Math.random()),pi={key:Zn},Ci={key:Zn,level:0,index:0,pos:"0",node:pi},Ni={parent:null,children:[],pos:Ci.pos,data:pi,isStart:[],isEnd:[]};function zi(kr,Sr,yn,dr){return Sr===!1||!yn?kr:kr.slice(0,Math.ceil(yn/dr)+1)}function it(kr){var Sr=kr.data.key,yn=kr.pos;return at(Sr,yn)}function Ne(kr){for(var Sr=String(kr.data.key),yn=kr;yn.parent;)yn=yn.parent,Sr="".concat(yn.data.key," > ").concat(Sr);return Sr}var He=function(Sr,yn){var dr=Sr.prefixCls,Rr=Sr.data,Gr=Sr.selectable,ln=Sr.checkable,kn=Sr.expandedKeys,kt=Sr.selectedKeys,_r=Sr.checkedKeys,Nr=Sr.loadedKeys,Jr=Sr.loadingKeys,xn=Sr.halfCheckedKeys,Tn=Sr.keyEntities,wn=Sr.disabled,$n=Sr.dragging,Vn=Sr.dragOverNodeKey,mi=Sr.dropPosition,Ri=Sr.motion,vi=Sr.height,Bi=Sr.itemHeight,Gi=Sr.virtual,ta=Sr.focusable,Pi=Sr.activeItem,Ki=Sr.focused,Hi=Sr.tabIndex,Qi=Sr.onKeyDown,da=Sr.onFocus,Oa=Sr.onBlur,ra=Sr.onActiveChange,Da=Sr.onListChangeStart,Ra=Sr.onListChangeEnd,va=Object(T.a)(Sr,["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(yn,function(){return{scrollTo:function(Zo){ga.current.scrollTo(Zo)}}});var _a=e.useState(kn),ya=Object(b.a)(_a,2),Ga=ya[0],Ia=ya[1],Wa=e.useState(Rr),no=Object(b.a)(Wa,2),io=no[0],uo=no[1],$i=e.useState(Rr),mo=Object(b.a)($i,2),Eo=mo[0],ao=mo[1],Co=e.useState([]),Ko=Object(b.a)(Co,2),to=Ko[0],Qo=Ko[1],bo=e.useState(null),xo=Object(b.a)(bo,2),ts=xo[0],ka=xo[1];function Io(){uo(Rr),ao(Rr),Qo([]),ka(null),Ra()}e.useEffect(function(){Ia(kn);var To=Lr(Ga,kn);if(To.key!==null)if(To.add){var Zo=io.findIndex(function(Cr){var tn=Cr.data.key;return tn===To.key}),Vo=zi(dn(io,Rr,To.key),Gi,vi,Bi),Lo=io.slice();Lo.splice(Zo+1,0,Ni),ao(Lo),Qo(Vo),ka("show")}else{var ho=Rr.findIndex(function(Cr){var tn=Cr.data.key;return tn===To.key}),ja=zi(dn(Rr,io,To.key),Gi,vi,Bi),mt=Rr.slice();mt.splice(ho+1,0,Ni),ao(mt),Qo(ja),ka("hide")}else io!==Rr&&(uo(Rr),ao(Rr))},[kn,Rr]),e.useEffect(function(){$n||Io()},[$n]);var Mo=Ri?Eo:Rr,is={expandedKeys:kn,selectedKeys:kt,loadedKeys:Nr,loadingKeys:Jr,checkedKeys:_r,halfCheckedKeys:xn,dragOverNodeKey:Vn,dropPosition:mi,keyEntities:Tn};return e.createElement(e.Fragment,null,Ki&&Pi&&e.createElement("span",{style:gn,"aria-live":"assertive"},Ne(Pi)),e.createElement("div",{role:"tree"},e.createElement("input",{style:gn,disabled:ta===!1||wn,tabIndex:ta!==!1?Hi:null,onKeyDown:Qi,onFocus:da,onBlur:Oa,value:"",onChange:ri})),e.createElement(Mt.a,Object.assign({},va,{data:Mo,itemKey:it,height:vi,fullHeight:!1,virtual:Gi,itemHeight:Bi,prefixCls:"".concat(dr,"-list"),ref:ga}),function(To){var Zo=To.pos,Vo=To.data,Lo=Vo.key,ho=Object(T.a)(Vo,["key"]),ja=To.isStart,mt=To.isEnd,Cr=at(Lo,Zo);delete ho.children;var tn=An(Cr,is);return e.createElement(Ir,Object.assign({},ho,tn,{active:Pi&&Lo===Pi.data.key,pos:Zo,data:To.data,isStart:ja,isEnd:mt,motion:Ri,motionNodes:Lo===Zn?to:null,motionType:ts,onMotionStart:Da,onMotionEnd:Io,treeNodeRequiredProps:is,onMouseMove:function(){ra(null)}}))}))},Ge=e.forwardRef(He);Ge.displayName="NodeList";var nt=Ge,$e=function(kr){Object(c.a)(yn,kr);var Sr=Object(h.a)(yn);function yn(){var dr;return Object(r.a)(this,yn),dr=Sr.apply(this,arguments),dr.destroyed=!1,dr.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},dr.listRef=e.createRef(),dr.onNodeDragStart=function(Rr,Gr){var ln=dr.state,kn=ln.expandedKeys,kt=ln.keyEntities,_r=dr.props.onDragStart,Nr=Gr.props.eventKey;dr.dragNode=Gr;var Jr=Et(kn,Nr);dr.setState({dragging:!0,dragNodesKeys:Vi(Nr,kt)}),dr.setExpandedKeys(Jr),_r&&_r({event:Rr,node:Gt(Gr.props)})},dr.onNodeDragEnter=function(Rr,Gr){var ln=dr.state,kn=ln.expandedKeys,kt=ln.keyEntities,_r=ln.dragNodesKeys,Nr=dr.props.onDragEnter,Jr=Gr.props,xn=Jr.pos,Tn=Jr.eventKey;if(!dr.dragNode||_r.indexOf(Tn)!==-1)return;var wn=jn(Rr,Gr);if(dr.dragNode.props.eventKey===Tn&&wn===0){dr.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){dr.setState({dragOverNodeKey:Tn,dropPosition:wn}),dr.delayedDragEnterLogic||(dr.delayedDragEnterLogic={}),Object.keys(dr.delayedDragEnterLogic).forEach(function($n){clearTimeout(dr.delayedDragEnterLogic[$n])}),dr.delayedDragEnterLogic[xn]=window.setTimeout(function(){if(!dr.state.dragging)return;var $n=Object(g.a)(kn),Vn=kt[Tn];Vn&&(Vn.children||[]).length&&($n=en(kn,Tn)),"expandedKeys"in dr.props||dr.setExpandedKeys($n),Nr&&Nr({event:Rr,node:Gt(Gr.props),expandedKeys:$n})},400)},0)},dr.onNodeDragOver=function(Rr,Gr){var ln=dr.state.dragNodesKeys,kn=dr.props.onDragOver,kt=Gr.props.eventKey;if(ln.indexOf(kt)!==-1)return;if(dr.dragNode&&kt===dr.state.dragOverNodeKey){var _r=jn(Rr,Gr);if(_r===dr.state.dropPosition)return;dr.setState({dropPosition:_r})}kn&&kn({event:Rr,node:Gt(Gr.props)})},dr.onNodeDragLeave=function(Rr,Gr){var ln=dr.props.onDragLeave;dr.setState({dragOverNodeKey:""}),ln&&ln({event:Rr,node:Gt(Gr.props)})},dr.onNodeDragEnd=function(Rr,Gr){var ln=dr.props.onDragEnd;dr.setState({dragOverNodeKey:""}),dr.cleanDragState(),ln&&ln({event:Rr,node:Gt(Gr.props)}),dr.dragNode=null},dr.onNodeDrop=function(Rr,Gr){var ln=dr.state,kn=ln.dragNodesKeys,kt=kn===void 0?[]:kn,_r=ln.dropPosition,Nr=dr.props.onDrop,Jr=Gr.props,xn=Jr.eventKey,Tn=Jr.pos;if(dr.setState({dragOverNodeKey:""}),dr.cleanDragState(),kt.indexOf(xn)!==-1){Object(he.a)(!1,"Can not drop to dragNode(include it's children node)");return}var wn=Mn(Tn),$n={event:Rr,node:Gt(Gr.props),dragNode:dr.dragNode?Gt(dr.dragNode.props):null,dragNodesKeys:kt.slice(),dropPosition:_r+Number(wn[wn.length-1]),dropToGap:!1};_r!==0&&($n.dropToGap=!0),Nr&&Nr($n),dr.dragNode=null},dr.cleanDragState=function(){var Rr=dr.state.dragging;Rr&&dr.setState({dragging:!1})},dr.onNodeClick=function(Rr,Gr){var ln=dr.props.onClick;ln&&ln(Rr,Gr)},dr.onNodeDoubleClick=function(Rr,Gr){var ln=dr.props.onDoubleClick;ln&&ln(Rr,Gr)},dr.onNodeSelect=function(Rr,Gr){var ln=dr.state.selectedKeys,kn=dr.state.keyEntities,kt=dr.props,_r=kt.onSelect,Nr=kt.multiple,Jr=Gr.selected,xn=Gr.key,Tn=!Jr;Tn?Nr?ln=en(ln,xn):ln=[xn]:ln=Et(ln,xn);var wn=ln.map(function($n){var Vn=kn[$n];return Vn?Vn.node:null}).filter(function($n){return $n});dr.setUncontrolledState({selectedKeys:ln}),_r&&_r(ln,{event:"select",selected:Tn,node:Gr,selectedNodes:wn,nativeEvent:Rr.nativeEvent})},dr.onNodeCheck=function(Rr,Gr,ln){var kn=dr.state,kt=kn.keyEntities,_r=kn.checkedKeys,Nr=kn.halfCheckedKeys,Jr=dr.props,xn=Jr.checkStrictly,Tn=Jr.onCheck,wn=Gr.key,$n,Vn={event:"check",node:Gr,checked:ln,nativeEvent:Rr.nativeEvent};if(xn){var mi=ln?en(_r,wn):Et(_r,wn),Ri=Et(Nr,wn);$n={checked:mi,halfChecked:Ri},Vn.checkedNodes=mi.map(function(Ki){return kt[Ki]}).filter(function(Ki){return Ki}).map(function(Ki){return Ki.node}),dr.setUncontrolledState({checkedKeys:mi})}else{var vi=Ut([].concat(Object(g.a)(_r),[wn]),!0,kt),Bi=vi.checkedKeys,Gi=vi.halfCheckedKeys;if(!ln){var ta=new Set(Bi);ta.delete(wn);var Pi=Ut(Array.from(ta),{checked:!1,halfCheckedKeys:Gi},kt);Bi=Pi.checkedKeys,Gi=Pi.halfCheckedKeys}$n=Bi,Vn.checkedNodes=[],Vn.checkedNodesPositions=[],Vn.halfCheckedKeys=Gi,Bi.forEach(function(Ki){var Hi=kt[Ki];if(!Hi)return;var Qi=Hi.node,da=Hi.pos;Vn.checkedNodes.push(Qi),Vn.checkedNodesPositions.push({node:Qi,pos:da})}),dr.setUncontrolledState({checkedKeys:Bi},!1,{halfCheckedKeys:Gi})}Tn&&Tn($n,Vn)},dr.onNodeLoad=function(Rr){return new Promise(function(Gr){dr.setState(function(ln){var kn=ln.loadedKeys,kt=kn===void 0?[]:kn,_r=ln.loadingKeys,Nr=_r===void 0?[]:_r,Jr=dr.props,xn=Jr.loadData,Tn=Jr.onLoad,wn=Rr.key;if(!xn||kt.indexOf(wn)!==-1||Nr.indexOf(wn)!==-1)return{};var $n=xn(Rr);return $n.then(function(){var Vn=dr.state,mi=Vn.loadedKeys,Ri=Vn.loadingKeys,vi=en(mi,wn),Bi=Et(Ri,wn);Tn&&Tn(vi,{event:"load",node:Rr}),dr.setUncontrolledState({loadedKeys:vi}),dr.setState({loadingKeys:Bi}),Gr()}),{loadingKeys:en(Nr,wn)}})})},dr.onNodeMouseEnter=function(Rr,Gr){var ln=dr.props.onMouseEnter;ln&&ln({event:Rr,node:Gr})},dr.onNodeMouseLeave=function(Rr,Gr){var ln=dr.props.onMouseLeave;ln&&ln({event:Rr,node:Gr})},dr.onNodeContextMenu=function(Rr,Gr){var ln=dr.props.onRightClick;ln&&(Rr.preventDefault(),ln({event:Rr,node:Gr}))},dr.onFocus=function(){var Rr=dr.props.onFocus;dr.setState({focused:!0}),Rr&&Rr.apply(void 0,arguments)},dr.onBlur=function(){var Rr=dr.props.onBlur;dr.setState({focused:!1}),dr.onActiveChange(null),Rr&&Rr.apply(void 0,arguments)},dr.getTreeNodeRequiredProps=function(){var Rr=dr.state,Gr=Rr.expandedKeys,ln=Rr.selectedKeys,kn=Rr.loadedKeys,kt=Rr.loadingKeys,_r=Rr.checkedKeys,Nr=Rr.halfCheckedKeys,Jr=Rr.dragOverNodeKey,xn=Rr.dropPosition,Tn=Rr.keyEntities;return{expandedKeys:Gr||[],selectedKeys:ln||[],loadedKeys:kn||[],loadingKeys:kt||[],checkedKeys:_r||[],halfCheckedKeys:Nr||[],dragOverNodeKey:Jr,dropPosition:xn,keyEntities:Tn}},dr.setExpandedKeys=function(Rr){var Gr=dr.state.treeData,ln=Yt(Gr,Rr);dr.setUncontrolledState({expandedKeys:Rr,flattenNodes:ln},!0)},dr.onNodeExpand=function(Rr,Gr){var ln=dr.state.expandedKeys,kn=dr.state.listChanging,kt=dr.props,_r=kt.onExpand,Nr=kt.loadData,Jr=Gr.key,xn=Gr.expanded;if(kn)return;var Tn=ln.indexOf(Jr),wn=!xn;if(Object(he.a)(xn&&Tn!==-1||!xn&&Tn===-1,"Expand state not sync with index check"),wn?ln=en(ln,Jr):ln=Et(ln,Jr),dr.setExpandedKeys(ln),_r&&_r(ln,{node:Gr,expanded:wn,nativeEvent:Rr.nativeEvent}),wn&&Nr){var $n=dr.onNodeLoad(Gr);$n&&$n.then(function(){var Vn=Yt(dr.state.treeData,ln);dr.setUncontrolledState({flattenNodes:Vn})})}},dr.onListChangeStart=function(){dr.setUncontrolledState({listChanging:!0})},dr.onListChangeEnd=function(){setTimeout(function(){dr.setUncontrolledState({listChanging:!1})})},dr.onActiveChange=function(Rr){var Gr=dr.state.activeKey,ln=dr.props.onActiveChange;if(Gr===Rr)return;dr.setState({activeKey:Rr}),Rr!==null&&dr.scrollTo({key:Rr}),ln&&ln(Rr)},dr.getActiveItem=function(){var Rr=dr.state,Gr=Rr.activeKey,ln=Rr.flattenNodes;return Gr===null?null:ln.find(function(kn){var kt=kn.data.key;return kt===Gr})||null},dr.offsetActiveKey=function(Rr){var Gr=dr.state,ln=Gr.flattenNodes,kn=Gr.activeKey,kt=ln.findIndex(function(Jr){var xn=Jr.data.key;return xn===kn});kt===-1&&Rr<0&&(kt=ln.length),kt=(kt+Rr+ln.length)%ln.length;var _r=ln[kt];if(_r){var Nr=_r.data.key;dr.onActiveChange(Nr)}else dr.onActiveChange(null)},dr.onKeyDown=function(Rr){var Gr=dr.state,ln=Gr.activeKey,kn=Gr.expandedKeys,kt=Gr.checkedKeys,_r=dr.props,Nr=_r.onKeyDown,Jr=_r.checkable,xn=_r.selectable;switch(Rr.which){case O.a.UP:{dr.offsetActiveKey(-1),Rr.preventDefault();break}case O.a.DOWN:{dr.offsetActiveKey(1),Rr.preventDefault();break}}var Tn=dr.getActiveItem();if(Tn&&Tn.data){var wn=dr.getTreeNodeRequiredProps(),$n=Tn.data.isLeaf===!1||!!(Tn.data.children||[]).length,Vn=Gt(Object(w.a)(Object(w.a)({},An(ln,wn)),{},{data:Tn.data,active:!0}));switch(Rr.which){case O.a.LEFT:{$n&&kn.includes(ln)?dr.onNodeExpand({},Vn):Tn.parent&&dr.onActiveChange(Tn.parent.data.key),Rr.preventDefault();break}case O.a.RIGHT:{$n&&!kn.includes(ln)?dr.onNodeExpand({},Vn):Tn.children&&Tn.children.length&&dr.onActiveChange(Tn.children[0].data.key),Rr.preventDefault();break}case O.a.ENTER:case O.a.SPACE:{Jr&&!Vn.disabled&&Vn.checkable!==!1&&!Vn.disableCheckbox?dr.onNodeCheck({},Vn,!kt.includes(ln)):!Jr&&xn&&!Vn.disabled&&Vn.selectable!==!1&&dr.onNodeSelect({},Vn);break}}}Nr&&Nr(Rr)},dr.setUncontrolledState=function(Rr){var Gr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ln=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(dr.destroyed)return;var kn=!1,kt=!0,_r={};Object.keys(Rr).forEach(function(Nr){if(Nr in dr.props){kt=!1;return}kn=!0,_r[Nr]=Rr[Nr]}),kn&&(!Gr||kt)&&dr.setState(Object(w.a)(Object(w.a)({},_r),ln))},dr.scrollTo=function(Rr){dr.listRef.current.scrollTo(Rr)},dr}return Object(s.a)(yn,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var Rr,Gr=this.state,ln=Gr.focused,kn=Gr.flattenNodes,kt=Gr.keyEntities,_r=Gr.dragging,Nr=Gr.activeKey,Jr=this.props,xn=Jr.prefixCls,Tn=Jr.className,wn=Jr.style,$n=Jr.showLine,Vn=Jr.focusable,mi=Jr.tabIndex,Ri=mi===void 0?0:mi,vi=Jr.selectable,Bi=Jr.showIcon,Gi=Jr.icon,ta=Jr.switcherIcon,Pi=Jr.draggable,Ki=Jr.checkable,Hi=Jr.checkStrictly,Qi=Jr.disabled,da=Jr.motion,Oa=Jr.loadData,ra=Jr.filterTreeNode,Da=Jr.height,Ra=Jr.itemHeight,va=Jr.virtual,ga=Jr.titleRender,_a=Jr.onContextMenu,ya=Be(this.props);return e.createElement(pe.Provider,{value:{prefixCls:xn,selectable:vi,showIcon:Bi,icon:Gi,switcherIcon:ta,draggable:Pi,checkable:Ki,checkStrictly:Hi,disabled:Qi,keyEntities:kt,loadData:Oa,filterTreeNode:ra,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:C()(xn,Tn,(Rr={},Object(x.a)(Rr,"".concat(xn,"-show-line"),$n),Object(x.a)(Rr,"".concat(xn,"-focused"),ln),Object(x.a)(Rr,"".concat(xn,"-active-focused"),Nr!==null),Rr))},e.createElement(nt,Object.assign({ref:this.listRef,prefixCls:xn,style:wn,data:kn,disabled:Qi,selectable:vi,checkable:!!Ki,motion:da,dragging:_r,height:Da,itemHeight:Ra,virtual:va,focusable:Vn,focused:ln,tabIndex:Ri,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:_a},this.getTreeNodeRequiredProps(),ya))))}}],[{key:"getDerivedStateFromProps",value:function(Rr,Gr){var ln=Gr.prevProps,kn={prevProps:Rr};function kt(Gi){return!ln&&Gi in Rr||ln&&ln[Gi]!==Rr[Gi]}var _r;if(kt("treeData")?_r=Rr.treeData:kt("children")&&(Object(he.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),_r=Ct(Rr.children)),_r){kn.treeData=_r;var Nr=qr(_r);kn.keyEntities=Object(w.a)(Object(x.a)({},Zn,Ci),Nr.keyEntities)}var Jr=kn.keyEntities||Gr.keyEntities;if(kt("expandedKeys")||ln&&kt("autoExpandParent"))kn.expandedKeys=Rr.autoExpandParent||!ln&&Rr.defaultExpandParent?Me(Rr.expandedKeys,Jr):Rr.expandedKeys;else if(!ln&&Rr.defaultExpandAll){var xn=Object(w.a)({},Jr);delete xn[Zn],kn.expandedKeys=Object.keys(xn).map(function(Gi){return xn[Gi].key})}else!ln&&Rr.defaultExpandedKeys&&(kn.expandedKeys=Rr.autoExpandParent||Rr.defaultExpandParent?Me(Rr.defaultExpandedKeys,Jr):Rr.defaultExpandedKeys);if(kn.expandedKeys||delete kn.expandedKeys,_r||kn.expandedKeys){var Tn=Yt(_r||Gr.treeData,kn.expandedKeys||Gr.expandedKeys);kn.flattenNodes=Tn}if(Rr.selectable&&(kt("selectedKeys")?kn.selectedKeys=Qn(Rr.selectedKeys,Rr):!ln&&Rr.defaultSelectedKeys&&(kn.selectedKeys=Qn(Rr.defaultSelectedKeys,Rr))),Rr.checkable){var wn;if(kt("checkedKeys")?wn=ke(Rr.checkedKeys)||{}:!ln&&Rr.defaultCheckedKeys?wn=ke(Rr.defaultCheckedKeys)||{}:_r&&(wn=ke(Rr.checkedKeys)||{checkedKeys:Gr.checkedKeys,halfCheckedKeys:Gr.halfCheckedKeys}),wn){var $n=wn,Vn=$n.checkedKeys,mi=Vn===void 0?[]:Vn,Ri=$n.halfCheckedKeys,vi=Ri===void 0?[]:Ri;if(!Rr.checkStrictly){var Bi=Ut(mi,!0,Jr);mi=Bi.checkedKeys,vi=Bi.halfCheckedKeys}kn.checkedKeys=mi,kn.halfCheckedKeys=vi}}return kt("loadedKeys")&&(kn.loadedKeys=Rr.loadedKeys),kn}}]),yn}(e.Component);$e.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:[]},$e.TreeNode=xr;var ot=$e,Pt=ot,xt=e.createContext(null);function rr(kr,Sr){if(!kr)return!0;var yn=kr.data,dr=yn.disabled,Rr=yn.disableCheckbox;switch(Sr){case"select":return dr;case"checkbox":return dr||Rr}return!1}function Fr(kr,Sr){var yn=e.useCallback(function(Rr){var Gr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",ln=arguments.length>2?arguments[2]:void 0,kn=kr.get(Rr);return!ln&&rr(kn,Gr)?null:kn},[kr]),dr=e.useCallback(function(Rr){var Gr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"select",ln=arguments.length>2?arguments[2]:void 0,kn=Sr.get(Rr);return!ln&&rr(kn,Gr)?null:kn},[Sr]);return[yn,dr]}function Vr(kr){return e.useMemo(function(){var Sr=new Map,yn=new Map;return kr.forEach(function(dr){Sr.set(dr.key,dr),yn.set(dr.data.value,dr)}),[Sr,yn]},[kr])}var fn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},gr=function(Sr,yn){var dr=Sr.prefixCls,Rr=Sr.height,Gr=Sr.itemHeight,ln=Sr.virtual,kn=Sr.options,kt=Sr.flattenOptions,_r=Sr.multiple,Nr=Sr.searchValue,Jr=Sr.onSelect,xn=Sr.onToggleOpen,Tn=Sr.open,wn=Sr.notFoundContent,$n=Sr.onMouseEnter,Vn=e.useContext(xt),mi=Vn.checkable,Ri=Vn.checkedKeys,vi=Vn.halfCheckedKeys,Bi=Vn.treeExpandedKeys,Gi=Vn.treeDefaultExpandAll,ta=Vn.treeDefaultExpandedKeys,Pi=Vn.onTreeExpand,Ki=Vn.treeIcon,Hi=Vn.showTreeIcon,Qi=Vn.switcherIcon,da=Vn.treeLine,Oa=Vn.treeNodeFilterProp,ra=Vn.loadData,Da=Vn.treeLoadedKeys,Ra=Vn.treeMotion,va=Vn.onTreeLoad,ga=e.useRef(),_a=Object(er.a)(function(){return kn},[Tn,kn],function(tn,Yr){return Yr[0]&&tn[1]!==Yr[1]}),ya=Vr(kt),Ga=Object(b.a)(ya,2),Ia=Ga[0],Wa=Ga[1],no=Fr(Ia,Wa),io=Object(b.a)(no,2),uo=io[0],$i=io[1],mo=e.useMemo(function(){return Ri.map(function(tn){var Yr=$i(tn);return Yr?Yr.key:null})},[Ri]),Eo=e.useMemo(function(){return mi?{checked:mo,halfChecked:vi}:null},[mo,vi,mi]);e.useEffect(function(){if(Tn&&!_r&&mo.length){var tn;(tn=ga.current)===null||tn===void 0||tn.scrollTo({key:mo[0]})}},[Tn]);var ao=String(Nr).toLowerCase(),Co=function(Yr){return ao?String(Yr[Oa]).toLowerCase().includes(ao):!1},Ko=e.useState(ta),to=Object(b.a)(Ko,2),Qo=to[0],bo=to[1],xo=e.useState(null),ts=Object(b.a)(xo,2),ka=ts[0],Io=ts[1],Mo=e.useMemo(function(){return Bi?Object(g.a)(Bi):Nr?ka:Qo},[Qo,ka,ao,Bi]);e.useEffect(function(){Nr&&Io(kt.map(function(tn){return tn.key}))},[Nr]);var is=function(Yr){bo(Yr),Io(Yr),Pi&&Pi(Yr)},To=function(Yr){Yr.preventDefault()},Zo=function(Yr,Xn){var hn=Xn.node.key,Xr=uo(hn,mi?"checkbox":"select");Xr!==null&&Jr(Xr.data.value,{selected:!Ri.includes(Xr.data.value)}),_r||xn(!1)},Vo=e.useState(null),Lo=Object(b.a)(Vo,2),ho=Lo[0],ja=Lo[1],mt=uo(ho);if(e.useImperativeHandle(yn,function(){return{onKeyDown:function(Yr){var Xn,hn=Yr.which;switch(hn){case O.a.UP:case O.a.DOWN:case O.a.LEFT:case O.a.RIGHT:(Xn=ga.current)===null||Xn===void 0||Xn.onKeyDown(Yr);break;case O.a.ENTER:{mt!==null&&Zo(null,{node:{key:ho},selected:!Ri.includes(mt.data.value)});break}case O.a.ESC:xn(!1)}},onKeyUp:function(){}}}),_a.length===0)return e.createElement("div",{role:"listbox",className:"".concat(dr,"-empty"),onMouseDown:To},wn);var Cr={};return Da&&(Cr.loadedKeys=Da),Mo&&(Cr.expandedKeys=Mo),e.createElement("div",{onMouseDown:To,onMouseEnter:$n},mt&&Tn&&e.createElement("span",{style:fn,"aria-live":"assertive"},mt.data.value),e.createElement(Pt,Object.assign({ref:ga,focusable:!1,prefixCls:"".concat(dr,"-tree"),treeData:_a,height:Rr,itemHeight:Gr,virtual:ln,multiple:_r,icon:Ki,showIcon:Hi,switcherIcon:Qi,showLine:da,loadData:Nr?null:ra,motion:Ra,checkable:mi,checkStrictly:!0,checkedKeys:Eo,selectedKeys:mi?[]:mo,defaultExpandAll:Gi},Cr,{onActiveChange:ja,onSelect:Zo,onCheck:Zo,onExpand:is,onLoad:va,filterTreeNode:Co})))},Gn=e.forwardRef(gr);Gn.displayName="OptionList";var Mr=Gn,Rn=function(){return null},bn=Rn;function rn(kr){return Object(lt.a)(kr).map(function(Sr){if(!e.isValidElement(Sr)||!Sr.type)return null;var yn=Sr.key,dr=Sr.props,Rr=dr.children,Gr=dr.value,ln=Object(T.a)(dr,["children","value"]),kn=Object(w.a)({key:yn,value:Gr},ln),kt=rn(Rr);return kt.length&&(kn.children=kt),kn}).filter(function(Sr){return Sr})}function ei(kr){if(!kr)return kr;var Sr=Object(w.a)({},kr);return"props"in Sr||Object.defineProperty(Sr,"props",{get:function(){return Object(he.a)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Sr}}),Sr}function fi(kr,Sr,yn,dr,Rr){var Gr=null,ln=null;function kn(){function kt(_r){var Nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Jr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return _r.map(function(xn,Tn){var wn="".concat(Nr,"-").concat(Tn),$n=yn.includes(xn.value),Vn=kt(xn.children||[],wn,$n),mi=e.createElement(bn,Object.assign({},xn),Vn.map(function(vi){return vi.node}));if(Sr===xn.value&&(Gr=mi),$n){var Ri={pos:wn,node:mi,children:Vn};return Jr||ln.push(Ri),Ri}return null}).filter(function(xn){return xn})}ln||(ln=[],kt(dr),ln.sort(function(_r,Nr){var Jr=_r.node.props.value,xn=Nr.node.props.value,Tn=yn.indexOf(Jr),wn=yn.indexOf(xn);return Tn-wn}))}Object.defineProperty(kr,"triggerNode",{get:function(){return Object(he.a)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),kn(),Gr}}),Object.defineProperty(kr,"allCheckedNodes",{get:function(){return Object(he.a)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),kn(),Rr?ln:ln.map(function(_r){var Nr=_r.node;return Nr})}})}function Mi(kr){return Array.isArray(kr)?kr:kr!==void 0?[kr]:[]}function $r(kr,Sr){var yn=new Map;return Sr.forEach(function(dr){var Rr=dr.data;yn.set(Rr.value,Rr)}),kr.map(function(dr){return ei(yn.get(dr))})}function En(kr,Sr){var yn=$r([kr],Sr)[0];return yn?yn.disabled:!1}function Hn(kr){return kr.disabled||kr.disableCheckbox||kr.checkable===!1}function zt(kr){for(var Sr=kr.parent,yn=0,dr=Sr;dr;)dr=dr.parent,yn+=1;return yn}function _t(kr){function Sr(dr){return(dr||[]).map(function(Rr){var Gr=Rr.value,ln=Rr.key,kn=Rr.children,kt=Object(w.a)(Object(w.a)({},Rr),{},{key:"key"in Rr?ln:Gr});return kn&&(kt.children=Sr(kn)),kt})}var yn=Yt(Sr(kr),!0);return yn.map(function(dr){return{key:dr.data.key,data:dr.data,level:zt(dr)}})}function Ft(kr){return function(Sr,yn){var dr=yn[kr];return String(dr).toLowerCase().includes(String(Sr).toLowerCase())}}function Wt(kr,Sr,yn){var dr=yn.optionFilterProp,Rr=yn.filterOption;if(Rr===!1)return Sr;var Gr;typeof Rr=="function"?Gr=Rr:Gr=Ft(dr);function ln(kn){var kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return kn.map(function(_r){var Nr=_r.children,Jr=kt||Gr(kr,ei(_r)),xn=ln(Nr||[],Jr);return Jr||xn.length?Object(w.a)(Object(w.a)({},_r),{},{children:xn}):null}).filter(function(_r){return _r})}return ln(Sr)}function Vt(kr,Sr,yn,dr){var Rr=new Map;return Mi(Sr).forEach(function(Gr){Gr&&Object(v.a)(Gr)==="object"&&"value"in Gr&&Rr.set(Gr.value,Gr)}),kr.map(function(Gr){var ln={value:Gr},kn=yn(Gr,"select",!0),kt=kn?dr(kn.data):Gr;if(Rr.has(Gr)){var _r=Rr.get(Gr);ln.label="label"in _r?_r.label:kt,"halfChecked"in _r&&(ln.halfChecked=_r.halfChecked)}else ln.label=kt;return ln})}function Lt(kr,Sr){var yn=new Set(kr);return yn.add(Sr),Array.from(yn)}function cr(kr,Sr){var yn=new Set(kr);return yn.delete(Sr),Array.from(yn)}function vr(kr){var Sr=kr.searchPlaceholder,yn=kr.treeCheckStrictly,dr=kr.treeCheckable,Rr=kr.labelInValue,Gr=kr.value,ln=kr.multiple;Object(he.a)(!Sr,"`searchPlaceholder` has been removed."),yn&&Rr===!1&&Object(he.a)(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Rr||yn)&&Object(he.a)(Mi(Gr).every(function(kn){return kn&&Object(v.a)(kn)==="object"&&"value"in kn}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),yn||ln||dr?Object(he.a)(!Gr||Array.isArray(Gr),"`value` should be an array when `TreeSelect` is checkable or multiple."):Object(he.a)(!Array.isArray(Gr),"`value` should not be array when `TreeSelect` is single mode.")}var yr=vr,Dr=10;function Kn(kr,Sr){var yn=Sr.id,dr=Sr.pId,Rr=Sr.rootPId,Gr={},ln=[],kn=kr.map(function(kt){var _r=Object(w.a)({},kt),Nr=_r[yn];return Gr[Nr]=_r,_r.key=_r.key||Nr,_r});return kn.forEach(function(kt){var _r=kt[dr],Nr=Gr[_r];Nr&&(Nr.children=Nr.children||[],Nr.children.push(kt)),(_r===Rr||!Nr&&Rr===null)&&ln.push(kt)}),ln}function Dn(kr,Sr){var yn=0,dr=new Set;function Rr(Gr){return(Gr||[]).map(function(ln){var kn=ln.key,kt=ln.value,_r=ln.children,Nr=Object(T.a)(ln,["key","value","children"]),Jr="value"in ln?kt:kn,xn=Object(w.a)(Object(w.a)({},Nr),{},{key:kn!=null?kn:Jr,value:Jr,title:Sr(ln)});return"children"in ln&&(xn.children=Rr(_r)),xn})}return Rr(kr)}function di(kr,Sr,yn){var dr=yn.getLabelProp,Rr=yn.simpleMode,Gr=e.useRef({});return kr?(Gr.current.formatTreeData=Gr.current.treeData===kr?Gr.current.formatTreeData:Dn(Rr?Kn(kr,Object(w.a)({id:"id",pId:"pId",rootPId:null},Rr!==!0?Rr:{})):kr,dr),Gr.current.treeData=kr):Gr.current.formatTreeData=Gr.current.children===Sr?Gr.current.formatTreeData:Dn(rn(Sr),dr),Gr.current.formatTreeData}var mn="SHOW_ALL",Ur="SHOW_PARENT",On="SHOW_CHILD";function zn(kr,Sr,yn){var dr=new Set(kr);return Sr===On?kr.filter(function(Rr){var Gr=yn[Rr];return!(Gr&&Gr.children&&Gr.children.every(function(ln){var kn=ln.node;return Hn(kn)||dr.has(kn.key)}))}):Sr===Ur?kr.filter(function(Rr){var Gr=yn[Rr],ln=Gr?Gr.parent:null;return!(ln&&!Hn(ln.node)&&dr.has(ln.node.key))}):kr}function qn(kr,Sr){var yn=Sr.value,dr=Sr.getEntityByValue,Rr=Sr.getEntityByKey,Gr=Sr.treeConduction,ln=Sr.showCheckedStrategy,kn=Sr.conductKeyEntities,kt=Sr.getLabelProp;return e.useMemo(function(){var _r=kr;if(Gr){var Nr=zn(kr.map(function(Jr){var xn=dr(Jr);return xn?xn.key:Jr}),ln,kn);_r=Nr.map(function(Jr){var xn=Rr(Jr);return xn?xn.data.value:Jr})}return Vt(_r,yn,dr,kt)},[kr,yn,Gr,ln,dr])}var oi=["expandedKeys","treeData","treeCheckable","showCheckedStrategy","searchPlaceholder","treeLine","treeIcon","showTreeIcon","switcherIcon","treeNodeFilterProp","filterTreeNode","dropdownPopupAlign","treeDefaultExpandAll","treeCheckStrictly","treeExpandedKeys","treeLoadedKeys","treeMotion","onTreeExpand","onTreeLoad","loadData","treeDataSimpleMode","treeNodeLabelProp","treeDefaultExpandedKeys"],xi=oe({prefixCls:"rc-tree-select",components:{optionList:Mr},convertChildrenToData:function(){return null},flattenOptions:_t,getLabeledValue:st,filterOptions:Wt,isValueDisabled:En,findValueOption:$r,omitDOMProps:function(Sr){var yn=Object(w.a)({},Sr);return oi.forEach(function(dr){delete yn[dr]}),yn}});xi.displayName="Select";var Di=e.forwardRef(function(kr,Sr){var yn=kr.multiple,dr=kr.treeCheckable,Rr=kr.treeCheckStrictly,Gr=kr.showCheckedStrategy,ln=Gr===void 0?"SHOW_CHILD":Gr,kn=kr.labelInValue,kt=kr.loadData,_r=kr.treeLoadedKeys,Nr=kr.treeNodeFilterProp,Jr=Nr===void 0?"value":Nr,xn=kr.treeNodeLabelProp,Tn=kr.treeDataSimpleMode,wn=kr.treeData,$n=kr.treeExpandedKeys,Vn=kr.treeDefaultExpandedKeys,mi=kr.treeDefaultExpandAll,Ri=kr.children,vi=kr.treeIcon,Bi=kr.showTreeIcon,Gi=kr.switcherIcon,ta=kr.treeLine,Pi=kr.treeMotion,Ki=kr.filterTreeNode,Hi=kr.dropdownPopupAlign,Qi=kr.onChange,da=kr.onTreeExpand,Oa=kr.onTreeLoad,ra=kr.onDropdownVisibleChange,Da=kr.onSelect,Ra=kr.onDeselect,va=dr||Rr,ga=yn||va,_a=dr&&!Rr,ya=Rr||kn,Ga=e.useRef(null);e.useImperativeHandle(Sr,function(){return{focus:Ga.current.focus,blur:Ga.current.blur}});var Ia=function(hn){return wn&&hn.label||hn.title},Wa=function(hn){return xn?hn[xn]:Ia(hn)},no=di(wn,Ri,{getLabelProp:Ia,simpleMode:Tn}),io=Object(e.useMemo)(function(){return _t(no)},[no]),uo=Vr(io),$i=Object(b.a)(uo,2),mo=$i[0],Eo=$i[1],ao=Fr(mo,Eo),Co=Object(b.a)(ao,2),Ko=Co[0],to=Co[1],Qo=Object(e.useMemo)(function(){return _a?qr(no):{keyEntities:null}},[no,dr,Rr]),bo=Qo.keyEntities,xo=Object(I.a)(kr.defaultValue,{value:kr.value}),ts=Object(b.a)(xo,2),ka=ts[0],Io=ts[1],Mo=function(hn){var Xr=[],ni=[];return hn.forEach(function(nn){to(nn)?ni.push(nn):Xr.push(nn)}),{missingRawValues:Xr,existRawValues:ni}},is=Object(e.useMemo)(function(){var Xn=[],hn=[];if(Mi(ka).forEach(function(Ei){if(Ei&&Object(v.a)(Ei)==="object"&&"value"in Ei)if(Ei.halfChecked&&Rr){var gi=to(Ei.value);Xn.push(gi?gi.key:Ei.value)}else hn.push(Ei.value);else hn.push(Ei)}),_a){var Xr=Mo(hn),ni=Xr.missingRawValues,nn=Xr.existRawValues,Wn=nn.map(function(Ei){return to(Ei).key}),si=Ut(Wn,!0,bo),ui=si.checkedKeys,ai=si.halfCheckedKeys;return[[].concat(Object(g.a)(ni),Object(g.a)(ui.map(function(Ei){return Ko(Ei).data.value}))),ai]}return[hn,Xn]},[ka,ga,ya,dr,Rr]),To=Object(b.a)(is,2),Zo=To[0],Vo=To[1],Lo=qn(Zo,{treeConduction:_a,value:ka,showCheckedStrategy:ln,conductKeyEntities:bo,getEntityByValue:to,getEntityByKey:Ko,getLabelProp:Wa}),ho=function(hn,Xr,ni){if(Io(ga?hn:hn[0]),Qi){var nn=hn;if(_a&&ln!=="SHOW_ALL"){var Wn=hn.map(function(Fi){var fa=to(Fi);return fa?fa.key:Fi}),si=zn(Wn,ln,bo);nn=si.map(function(Fi){var fa=Ko(Fi);return fa?fa.data.value:Fi})}var ui=Xr||{triggerValue:void 0,selected:void 0},ai=ui.triggerValue,Ei=ui.selected,gi=ya?Vt(nn,ka,to,Wa):nn;if(Rr){var Ti=Vo.map(function(Fi){var fa=Ko(Fi);return fa?fa.data.value:Fi}).filter(function(Fi){return!nn.includes(Fi)});gi=[].concat(Object(g.a)(gi),Object(g.a)(Vt(Ti,ka,to,Wa)))}var _i={preValue:Lo,triggerValue:ai},ia=!0;(Rr||ni==="selection"&&!Ei)&&(ia=!1),fi(_i,ai,hn,no,ia),va?_i.checked=Ei:_i.selected=Ei,Qi(ga?gi:gi[0],ya?null:nn.map(function(Fi){var fa=to(Fi);return fa?Wa(fa.data):null}),_i)}},ja=function(hn,Xr,ni){var nn=hn;if(!ga)ho([hn],{selected:!0,triggerValue:hn},ni);else{var Wn=Lt(Zo,hn);if(_a){var si=Mo(Wn),ui=si.missingRawValues,ai=si.existRawValues,Ei=ai.map(function(_i){return to(_i).key}),gi=Ut(Ei,!0,bo),Ti=gi.checkedKeys;Wn=[].concat(Object(g.a)(ui),Object(g.a)(Ti.map(function(_i){return Ko(_i).data.value})))}ho(Wn,{selected:!0,triggerValue:hn},ni)}Da&&Da(nn,Xr)},mt=function(hn,Xr,ni){var nn=hn,Wn=cr(Zo,hn);if(_a){var si=Mo(Wn),ui=si.missingRawValues,ai=si.existRawValues,Ei=ai.map(function(_i){return to(_i).key}),gi=Ut(Ei,{checked:!1,halfCheckedKeys:Vo},bo),Ti=gi.checkedKeys;Wn=[].concat(Object(g.a)(ui),Object(g.a)(Ti.map(function(_i){return Ko(_i).data.value})))}ho(Wn,{selected:!1,triggerValue:hn},ni),Ra&&Ra(nn,Xr)},Cr=function(){ho([],null,"clear")},tn=e.useCallback(function(Xn){if(ra){var hn={};Object.defineProperty(hn,"documentClickClose",{get:function(){return Object(he.a)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),ra(Xn,hn)}},[ra]),Yr={optionLabelProp:null,optionFilterProp:Jr,dropdownAlign:Hi,internalProps:{mark:be,onClear:Cr,skipTriggerChange:!0,skipTriggerSelect:!0,onRawSelect:ja,onRawDeselect:mt}};return"filterTreeNode"in kr&&(Yr.filterOption=Ki),e.createElement(xt.Provider,{value:{checkable:va,loadData:kt,treeLoadedKeys:_r,onTreeLoad:Oa,checkedKeys:Zo,halfCheckedKeys:Vo,treeDefaultExpandAll:mi,treeExpandedKeys:$n,treeDefaultExpandedKeys:Vn,onTreeExpand:da,treeIcon:vi,treeMotion:Pi,showTreeIcon:Bi,switcherIcon:Gi,treeLine:ta,treeNodeFilterProp:Jr}},e.createElement(xi,Object.assign({ref:Ga,mode:ga?"multiple":null},kr,Yr,{value:Lo,labelInValue:!0,options:no,onChange:null,onSelect:null,onDeselect:null,onDropdownVisibleChange:tn})))}),Li=function(kr){Object(c.a)(yn,kr);var Sr=Object(h.a)(yn);function yn(){var dr;return Object(r.a)(this,yn),dr=Sr.apply(this,arguments),dr.selectRef=e.createRef(),dr.focus=function(){dr.selectRef.current.focus()},dr.blur=function(){dr.selectRef.current.blur()},dr}return Object(s.a)(yn,[{key:"render",value:function(){return e.createElement(Di,Object.assign({ref:this.selectRef},this.props))}}]),yn}(e.Component);Li.TreeNode=bn,Li.SHOW_ALL=mn,Li.SHOW_PARENT=Ur,Li.SHOW_CHILD=On;var aa=Li,ma=aa,na=i("BGR+"),Aa=i("H84U"),yi=i("uaoM"),Ln=i("1vzs"),ji=i("2jpz"),ha=i("3Nzz"),ea=function(kr){n()(yn,kr);var Sr=a()(yn);function yn(dr){var Rr;return f()(this,yn),Rr=Sr.call(this,dr),Rr.selectRef=e.createRef(),Rr.renderTreeSelect=function(Gr){var ln=Gr.getPopupContainer,kn=Gr.getPrefixCls,kt=Gr.renderEmpty,_r=Gr.direction,Nr=Gr.virtual,Jr=Gr.dropdownMatchSelectWidth,xn=Rr.props,Tn=xn.prefixCls,wn=xn.size,$n=xn.className,Vn=xn.treeCheckable,mi=xn.multiple,Ri=xn.listHeight,vi=Ri===void 0?256:Ri,Bi=xn.listItemHeight,Gi=Bi===void 0?26:Bi,ta=xn.notFoundContent,Pi=xn.switcherIcon,Ki=xn.treeLine,Hi=xn.getPopupContainer,Qi=xn.dropdownClassName,da=xn.bordered,Oa=xn.treeIcon,ra=Oa===void 0?!1:Oa,Da=kn("select",Tn),Ra=kn("select-tree",Tn),va=kn("tree-select",Tn),ga=C()(Qi,"".concat(va,"-dropdown"),A()({},"".concat(va,"-dropdown-rtl"),_r==="rtl")),_a=!!(Vn||mi),ya=Object(Ln.a)(p()(p()({},Rr.props),{multiple:_a,prefixCls:Da})),Ga=ya.suffixIcon,Ia=ya.itemIcon,Wa=ya.removeIcon,no=ya.clearIcon,io;ta!==void 0?io=ta:io=kt("Select");var uo=Object(na.default)(Rr.props,["prefixCls","suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon","size","bordered"]);return e.createElement(ha.b.Consumer,null,function($i){var mo,Eo=wn||$i,ao=C()(!Tn&&va,(mo={},A()(mo,"".concat(Da,"-lg"),Eo==="large"),A()(mo,"".concat(Da,"-sm"),Eo==="small"),A()(mo,"".concat(Da,"-rtl"),_r==="rtl"),A()(mo,"".concat(Da,"-borderless"),!da),mo),$n);return e.createElement(ma,p()({virtual:Nr,dropdownMatchSelectWidth:Jr},uo,{ref:Rr.selectRef,prefixCls:Da,className:ao,listHeight:vi,listItemHeight:Gi,treeCheckable:Vn&&e.createElement("span",{className:"".concat(Da,"-tree-checkbox-inner")}),inputIcon:Ga,menuItemSelectedIcon:Ia,removeIcon:Wa,clearIcon:no,switcherIcon:function(Ko){return Object(ji.a)(Ra,Pi,Ki,Ko)},showTreeIcon:ra,notFoundContent:io,getPopupContainer:Hi||ln,treeMotion:null,dropdownClassName:ga}))})},Object(yi.a)(dr.multiple!==!1||!dr.treeCheckable,"TreeSelect","`multiple` will alway be `true` when `treeCheckable` is true"),Rr}return l()(yn,[{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(Aa.a,null,this.renderTreeSelect)}}]),yn}(e.Component);ea.TreeNode=bn,ea.SHOW_ALL=mn,ea.SHOW_PARENT=Ur,ea.SHOW_CHILD=On,ea.defaultProps={transitionName:"slide-up",choiceTransitionName:"",bordered:!0};var ca=D.a=ea},"5Uyt":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("KmBX"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},"5YOS":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("xb2K"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},"5YgA":function(k,D,i){},"5bA4":function(k,D,i){"use strict";var y=i("VTBJ"),p=i("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"},A=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:A}))};f.displayName="LeftOutlined";var d=D.a=p.forwardRef(f)},"5hvy":function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("MlIO"))})(this,function(y){return function(p){var S=y,A=S.lib,m=A.WordArray,f=A.Hasher,d=S.x64,l=d.Word,o=S.algo,n=[],t=[],a=[];(function(){for(var r=1,s=0,c=0;c<24;c++){n[r+5*s]=(c+1)*(c+2)/2%64;var h=s%5,g=(2*r+3*s)%5;r=h,s=g}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 v=1,b=0;b<24;b++){for(var w=0,x=0,T=0;T<7;T++){if(v&1){var O=(1<<T)-1;O<32?x^=1<<O:w^=1<<O-32}v&128?v=v<<1^113:v<<=1}a[b]=l.create(w,x)}})();var e=[];(function(){for(var r=0;r<25;r++)e[r]=l.create()})();var u=o.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,g=this.blockSize/2,v=0;v<g;v++){var b=s[c+2*v],w=s[c+2*v+1];b=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360;var x=h[v];x.high^=w,x.low^=b}for(var T=0;T<24;T++){for(var O=0;O<5;O++){for(var E=0,C=0,I=0;I<5;I++){var x=h[O+5*I];E^=x.high,C^=x.low}var _=e[O];_.high=E,_.low=C}for(var O=0;O<5;O++)for(var F=e[(O+4)%5],R=e[(O+1)%5],B=R.high,M=R.low,E=F.high^(B<<1|M>>>31),C=F.low^(M<<1|B>>>31),I=0;I<5;I++){var x=h[O+5*I];x.high^=E,x.low^=C}for(var X=1;X<25;X++){var E,C,x=h[X],P=x.high,z=x.low,W=n[X];W<32?(E=P<<W|z>>>32-W,C=z<<W|P>>>32-W):(E=z<<W-32|P>>>64-W,C=P<<W-32|z>>>64-W);var U=e[t[X]];U.high=E,U.low=C}var V=e[0],Q=h[0];V.high=Q.high,V.low=Q.low;for(var O=0;O<5;O++)for(var I=0;I<5;I++){var X=O+5*I,x=h[X],G=e[X],te=e[(O+1)%5+5*I],$=e[(O+2)%5+5*I];x.high=G.high^~te.high&$.high,x.low=G.low^~te.low&$.low}var x=h[0],le=a[T];x.high^=le.high,x.low^=le.low}},_doFinalize:function(){var s=this._data,c=s.words,h=this._nDataBytes*8,g=s.sigBytes*8,v=this.blockSize*32;c[g>>>5]|=1<<24-g%32,c[(p.ceil((g+1)/v)*v>>>5)-1]|=128,s.sigBytes=c.length*4,this._process();for(var b=this._state,w=this.cfg.outputLength/8,x=w/8,T=[],O=0;O<x;O++){var E=b[O],C=E.high,I=E.low;C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,T.push(I),T.push(C)}return new m.init(T,w)},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(k,D,i){var y=i("MFOe"),p=y.slice,S=y.pluck,A=y.each,m=y.bind,f=y.create,d=y.isList,l=y.isFunction,o=y.isObject;k.exports={createStore:a};var n={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 a.apply(this,arguments)},addPlugin:function(u){this._addPlugin(u)},namespace:function(u){return a(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 a(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 g={_namespacePrefix:s,_namespaceRegexp:c,_testStorage:function(w){try{var x="__storejs__test__";w.write(x,x);var T=w.read(x)===x;return w.remove(x),T}catch(O){return!1}},_assignPluginFnProp:function(w,x){var T=this[x];this[x]=function(){var E=p(arguments,0),C=this;function I(){return T?(A(arguments,function(F,R){E[R]=F}),T.apply(C,E)):void 0}var _=[I].concat(E);return w.apply(C,_)}},_serialize:function(w){return JSON.stringify(w)},_deserialize:function(w,x){if(!w)return x;var T="";try{T=JSON.parse(w)}catch(O){T=w}return T!==void 0?T:x},_addStorage:function(w){if(this.enabled)return;this._testStorage(w)&&(this.storage=w,this.enabled=!0)},_addPlugin:function(w){var x=this;if(d(w)){A(w,function(E){x._addPlugin(E)});return}var T=S(this.plugins,function(E){return w===E});if(T)return;if(this.plugins.push(w),!l(w))throw new Error("Plugins must be function values that return objects");var O=w.call(this);if(!o(O))throw new Error("Plugins must return an object of function properties");A(O,function(E,C){if(!l(E))throw new Error("Bad plugin property: "+C+" from plugin "+w.name+". Plugins should only return functions.");x._assignPluginFnProp(E,C)})},addStorage:function(w){t("store.addStorage(storage) is deprecated. Use createStore([storages])"),this._addStorage(w)}},v=f(g,n,{plugins:[]});return v.raw={},A(v,function(b,w){l(b)&&(v.raw[w]=m(v,b))}),A(e,function(b){v._addStorage(b)}),A(u,function(b){v._addPlugin(b)}),v}},"5rEg":function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("lwsE"),A=i.n(S),m=i("W8MJ"),f=i.n(m),d=i("7W2i"),l=i.n(d),o=i("LQ03"),n=i.n(o),t=i("lSNA"),a=i.n(t),e=i("q1tI"),u=i("TSYQ"),r=i.n(u),s=i("BGR+"),c=i("kbBi"),h=i.n(c),g=i("CWQg"),v=i("0n0R"),b=Object(g.a)("text","input");function w(ee){return!!(ee.prefix||ee.suffix||ee.allowClear)}var x=function(ee){l()(be,ee);var fe=n()(be);function be(){var Ce;return A()(this,be),Ce=fe.apply(this,arguments),Ce.containerRef=e.createRef(),Ce.onInputMouseUp=function(Te){var he;if((he=Ce.containerRef.current)===null||he===void 0?void 0:he.contains(Te.target)){var ye=Ce.props.triggerFocus;ye()}},Ce}return f()(be,[{key:"renderClearIcon",value:function(Te){var he=this.props,ye=he.allowClear,Ie=he.value,tt=he.disabled,pt=he.readOnly,st=he.inputType,Fe=he.handleReset;if(!ye)return null;var ft=!tt&&!pt&&Ie,et=st===b[0]?"".concat(Te,"-textarea-clear-icon"):"".concat(Te,"-clear-icon");return e.createElement(h.a,{onClick:Fe,className:r()(et,a()({},"".concat(et,"-hidden"),!ft)),role:"button"})}},{key:"renderSuffix",value:function(Te){var he=this.props,ye=he.suffix,Ie=he.allowClear;return ye||Ie?e.createElement("span",{className:"".concat(Te,"-suffix")},this.renderClearIcon(Te),ye):null}},{key:"renderLabeledIcon",value:function(Te,he){var ye,Ie=this.props,tt=Ie.focused,pt=Ie.value,st=Ie.prefix,Fe=Ie.className,ft=Ie.size,et=Ie.suffix,wt=Ie.disabled,Ht=Ie.allowClear,Dt=Ie.direction,Tt=Ie.style,Bt=Ie.readOnly,Ke=Ie.bordered,de=this.renderSuffix(Te);if(!w(this.props))return Object(v.a)(he,{value:pt});var oe=st?e.createElement("span",{className:"".concat(Te,"-prefix")},st):null,lt=r()(Fe,"".concat(Te,"-affix-wrapper"),(ye={},a()(ye,"".concat(Te,"-affix-wrapper-focused"),tt),a()(ye,"".concat(Te,"-affix-wrapper-disabled"),wt),a()(ye,"".concat(Te,"-affix-wrapper-sm"),ft==="small"),a()(ye,"".concat(Te,"-affix-wrapper-lg"),ft==="large"),a()(ye,"".concat(Te,"-affix-wrapper-input-with-clear-btn"),et&&Ht&&pt),a()(ye,"".concat(Te,"-affix-wrapper-rtl"),Dt==="rtl"),a()(ye,"".concat(Te,"-affix-wrapper-readonly"),Bt),a()(ye,"".concat(Te,"-affix-wrapper-borderless"),!Ke),ye));return e.createElement("span",{ref:this.containerRef,className:lt,style:Tt,onMouseUp:this.onInputMouseUp},oe,Object(v.a)(he,{style:null,value:pt,className:F(Te,Ke,ft,wt)}),de)}},{key:"renderInputWithLabel",value:function(Te,he){var ye,Ie,tt=this.props,pt=tt.addonBefore,st=tt.addonAfter,Fe=tt.style,ft=tt.size,et=tt.className,wt=tt.direction;if(!pt&&!st)return he;var Ht="".concat(Te,"-group"),Dt="".concat(Ht,"-addon"),Tt=pt?e.createElement("span",{className:Dt},pt):null,Bt=st?e.createElement("span",{className:Dt},st):null,Ke=r()("".concat(Te,"-wrapper"),(ye={},a()(ye,Ht,pt||st),a()(ye,"".concat(Ht,"-rtl"),wt==="rtl"),ye)),de=r()(et,"".concat(Te,"-group-wrapper"),(Ie={},a()(Ie,"".concat(Te,"-group-wrapper-sm"),ft==="small"),a()(Ie,"".concat(Te,"-group-wrapper-lg"),ft==="large"),a()(Ie,"".concat(Te,"-group-wrapper-rtl"),wt==="rtl"),Ie));return e.createElement("span",{className:de,style:Fe},e.createElement("span",{className:Ke},Tt,Object(v.a)(he,{style:null}),Bt))}},{key:"renderTextAreaWithClearIcon",value:function(Te,he){var ye,Ie=this.props,tt=Ie.value,pt=Ie.allowClear,st=Ie.className,Fe=Ie.style,ft=Ie.direction,et=Ie.bordered;if(!pt)return Object(v.a)(he,{value:tt});var wt=r()(st,"".concat(Te,"-affix-wrapper"),"".concat(Te,"-affix-wrapper-textarea-with-clear-btn"),(ye={},a()(ye,"".concat(Te,"-affix-wrapper-rtl"),ft==="rtl"),a()(ye,"".concat(Te,"-affix-wrapper-borderless"),!et),ye));return e.createElement("span",{className:wt,style:Fe},Object(v.a)(he,{style:null,value:tt}),this.renderClearIcon(Te))}},{key:"render",value:function(){var Te=this.props,he=Te.prefixCls,ye=Te.inputType,Ie=Te.element;return ye===b[0]?this.renderTextAreaWithClearIcon(he,Ie):this.renderInputWithLabel(he,this.renderLabeledIcon(he,Ie))}}]),be}(e.Component),T=x,O=i("H84U"),E=i("3Nzz"),C=i("uaoM");function I(ee){return typeof ee=="undefined"||ee===null?"":ee}function _(ee,fe,be){if(be){var Ce=fe;if(fe.type==="click"){Ce=Object.create(fe),Ce.target=ee,Ce.currentTarget=ee;var Te=ee.value;ee.value="",be(Ce),ee.value=Te;return}be(Ce)}}function F(ee,fe,be,Ce,Te){var he;return r()(ee,(he={},a()(he,"".concat(ee,"-sm"),be==="small"),a()(he,"".concat(ee,"-lg"),be==="large"),a()(he,"".concat(ee,"-disabled"),Ce),a()(he,"".concat(ee,"-rtl"),Te==="rtl"),a()(he,"".concat(ee,"-borderless"),!fe),he))}var R=function(ee){l()(be,ee);var fe=n()(be);function be(Ce){var Te;A()(this,be),Te=fe.call(this,Ce),Te.direction="ltr",Te.focus=function(){Te.input.focus()},Te.saveClearableInput=function(ye){Te.clearableInput=ye},Te.saveInput=function(ye){Te.input=ye},Te.onFocus=function(ye){var Ie=Te.props.onFocus;Te.setState({focused:!0},Te.clearPasswordValueAttribute),Ie&&Ie(ye)},Te.onBlur=function(ye){var Ie=Te.props.onBlur;Te.setState({focused:!1},Te.clearPasswordValueAttribute),Ie&&Ie(ye)},Te.handleReset=function(ye){Te.setValue("",function(){Te.focus()}),_(Te.input,ye,Te.props.onChange)},Te.renderInput=function(ye,Ie,tt){var pt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},st=Te.props,Fe=st.className,ft=st.addonBefore,et=st.addonAfter,wt=st.size,Ht=st.disabled,Dt=Object(s.default)(Te.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","size","inputType","bordered"]);return e.createElement("input",p()({autoComplete:pt.autoComplete},Dt,{onChange:Te.handleChange,onFocus:Te.onFocus,onBlur:Te.onBlur,onKeyDown:Te.handleKeyDown,className:r()(F(ye,tt,wt||Ie,Ht,Te.direction),a()({},Fe,Fe&&!ft&&!et)),ref:Te.saveInput}))},Te.clearPasswordValueAttribute=function(){Te.removePasswordTimeout=setTimeout(function(){Te.input&&Te.input.getAttribute("type")==="password"&&Te.input.hasAttribute("value")&&Te.input.removeAttribute("value")})},Te.handleChange=function(ye){Te.setValue(ye.target.value,Te.clearPasswordValueAttribute),_(Te.input,ye,Te.props.onChange)},Te.handleKeyDown=function(ye){var Ie=Te.props,tt=Ie.onPressEnter,pt=Ie.onKeyDown;ye.keyCode===13&&tt&&tt(ye),pt&&pt(ye)},Te.renderComponent=function(ye){var Ie=ye.getPrefixCls,tt=ye.direction,pt=ye.input,st=Te.state,Fe=st.value,ft=st.focused,et=Te.props,wt=et.prefixCls,Ht=et.bordered,Dt=Ht===void 0?!0:Ht,Tt=Ie("input",wt);return Te.direction=tt,e.createElement(E.b.Consumer,null,function(Bt){return e.createElement(T,p()({size:Bt},Te.props,{prefixCls:Tt,inputType:"input",value:I(Fe),element:Te.renderInput(Tt,Bt,Dt,pt),handleReset:Te.handleReset,ref:Te.saveClearableInput,direction:tt,focused:ft,triggerFocus:Te.focus,bordered:Dt}))})};var he=typeof Ce.value=="undefined"?Ce.defaultValue:Ce.value;return Te.state={value:he,focused:!1,prevValue:Ce.value},Te}return f()(be,[{key:"componentDidMount",value:function(){this.clearPasswordValueAttribute()}},{key:"componentDidUpdate",value:function(){}},{key:"getSnapshotBeforeUpdate",value:function(Te){return w(Te)!==w(this.props)&&Object(C.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(Te,he){this.props.value===void 0&&this.setState({value:Te},he)}},{key:"render",value:function(){return e.createElement(O.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(Te,he){var ye=he.prevValue,Ie={prevValue:Te.value};return(Te.value!==void 0||ye!==Te.value)&&(Ie.value=Te.value),Ie}}]),be}(e.Component);R.defaultProps={type:"text"};var B=R,M=function(fe){return e.createElement(O.a,null,function(be){var Ce,Te=be.getPrefixCls,he=be.direction,ye=fe.prefixCls,Ie=fe.className,tt=Ie===void 0?"":Ie,pt=Te("input-group",ye),st=r()(pt,(Ce={},a()(Ce,"".concat(pt,"-lg"),fe.size==="large"),a()(Ce,"".concat(pt,"-sm"),fe.size==="small"),a()(Ce,"".concat(pt,"-compact"),fe.compact),a()(Ce,"".concat(pt,"-rtl"),he==="rtl"),Ce),tt);return e.createElement("span",{className:st,style:fe.style,onMouseEnter:fe.onMouseEnter,onMouseLeave:fe.onMouseLeave,onFocus:fe.onFocus,onBlur:fe.onBlur},fe.children)})},X=M,P=i("c+Xe"),z=i("w6Tc"),W=i.n(z),U=i("gZBC"),V=i.n(U),Q=i("2/Rp"),G=function(ee,fe){var be={};for(var Ce in ee)Object.prototype.hasOwnProperty.call(ee,Ce)&&fe.indexOf(Ce)<0&&(be[Ce]=ee[Ce]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Ce=Object.getOwnPropertySymbols(ee);Te<Ce.length;Te++)fe.indexOf(Ce[Te])<0&&Object.prototype.propertyIsEnumerable.call(ee,Ce[Te])&&(be[Ce[Te]]=ee[Ce[Te]]);return be},te=e.forwardRef(function(ee,fe){var be=e.useRef(null),Ce=function(Fe){var ft=ee.onChange,et=ee.onSearch;Fe&&Fe.target&&Fe.type==="click"&&et&&et(Fe.target.value,Fe),ft&&ft(Fe)},Te=function(Fe){var ft;document.activeElement===((ft=be.current)===null||ft===void 0?void 0:ft.input)&&Fe.preventDefault()},he=function(Fe){var ft,et=ee.onSearch,wt=ee.loading,Ht=ee.disabled;if(wt||Ht)return;et&&et((ft=be.current)===null||ft===void 0?void 0:ft.input.value,Fe)},ye=function(Fe){var ft=ee.enterButton,et=ee.size;return ft?e.createElement(E.b.Consumer,{key:"enterButton"},function(wt){return e.createElement(Q.a,{className:"".concat(Fe,"-button"),type:"primary",size:et||wt},e.createElement(V.a,null))}):e.createElement(V.a,{className:"".concat(Fe,"-icon"),key:"loadingIcon"})},Ie=function(Fe){var ft=ee.suffix,et=ee.enterButton,wt=ee.loading;if(wt&&!et)return[ft,ye(Fe)];if(et)return ft;var Ht=e.createElement(W.a,{className:"".concat(Fe,"-icon"),key:"searchIcon",onClick:he});return ft?[Object(v.c)(ft,null,{key:"suffix"}),Ht]:Ht},tt=function(Fe,ft){var et=ee.enterButton,wt=ee.disabled,Ht=ee.addonAfter,Dt=ee.loading,Tt="".concat(Fe,"-button");if(Dt&&et)return[ye(Fe),Ht];if(!et)return Ht;var Bt,Ke=et,de=Ke.type&&Ke.type.__ANT_BUTTON===!0;return de||Ke.type==="button"?Bt=Object(v.a)(Ke,p()({onMouseDown:Te,onClick:he,key:"enterButton"},de?{className:Tt,size:ft}:{})):Bt=e.createElement(Q.a,{className:Tt,type:"primary",size:ft,disabled:wt,key:"enterButton",onMouseDown:Te,onClick:he},et===!0?e.createElement(W.a,null):et),Ht?[Bt,Object(v.c)(Ht,null,{key:"addonAfter"})]:Bt},pt=function(Fe){var ft=Fe.getPrefixCls,et=Fe.direction,wt=ee.prefixCls,Ht=ee.inputPrefixCls,Dt=ee.enterButton,Tt=ee.className,Bt=ee.size,Ke=G(ee,["prefixCls","inputPrefixCls","enterButton","className","size"]);delete Ke.onSearch,delete Ke.loading;var de=ft("input-search",wt),oe=ft("input",Ht),lt=function(pe){var Kt;if(Dt){var hr;Kt=r()(de,Tt,(hr={},a()(hr,"".concat(de,"-rtl"),et==="rtl"),a()(hr,"".concat(de,"-enter-button"),!!Dt),a()(hr,"".concat(de,"-").concat(pe),!!pe),hr))}else Kt=r()(de,Tt,a()({},"".concat(de,"-rtl"),et==="rtl"));return Kt};return e.createElement(E.b.Consumer,null,function(qe){return e.createElement(B,p()({ref:Object(P.a)(be,fe),onPressEnter:he},Ke,{size:Bt||qe,prefixCls:oe,addonAfter:tt(de,Bt||qe),suffix:Ie(de),onChange:Ce,className:lt(Bt||qe)}))})};return e.createElement(O.a,null,pt)});te.defaultProps={enterButton:!1},te.displayName="Search";var $=te,le=i("Y1PL"),re=function(ee){l()(be,ee);var fe=n()(be);function be(Ce){var Te;A()(this,be),Te=fe.call(this,Ce),Te.focus=function(){Te.resizableTextArea.textArea.focus()},Te.saveTextArea=function(ye){Te.resizableTextArea=ye==null?void 0:ye.resizableTextArea},Te.saveClearableInput=function(ye){Te.clearableInput=ye},Te.handleChange=function(ye){Te.setValue(ye.target.value),_(Te.resizableTextArea.textArea,ye,Te.props.onChange)},Te.handleReset=function(ye){Te.setValue("",function(){Te.focus()}),_(Te.resizableTextArea.textArea,ye,Te.props.onChange)},Te.renderTextArea=function(ye,Ie){return e.createElement(le.default,p()({},Object(s.default)(Te.props,["allowClear","bordered"]),{className:r()(Te.props.className,a()({},"".concat(ye,"-borderless"),!Ie)),prefixCls:ye,onChange:Te.handleChange,ref:Te.saveTextArea}))},Te.renderComponent=function(ye){var Ie=ye.getPrefixCls,tt=ye.direction,pt=Te.state.value,st=Te.props,Fe=st.prefixCls,ft=st.bordered,et=ft===void 0?!0:ft,wt=Ie("input",Fe);return e.createElement(T,p()({},Te.props,{prefixCls:wt,direction:tt,inputType:"text",value:I(pt),element:Te.renderTextArea(wt,et),handleReset:Te.handleReset,ref:Te.saveClearableInput,triggerFocus:Te.focus,bordered:et}))};var he=typeof Ce.value=="undefined"?Ce.defaultValue:Ce.value;return Te.state={value:he},Te}return f()(be,[{key:"setValue",value:function(Te,he){this.props.value===void 0&&this.setState({value:Te},he)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return e.createElement(O.a,null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(Te){return Te.value!==void 0?{value:Te.value}:null}}]),be}(e.Component),Se=re,Re=i("J4zp"),Pe=i.n(Re),Je=i("qPY4"),Ve=i.n(Je),ct=i("fUL4"),Ue=i.n(ct),ue=function(ee,fe){var be={};for(var Ce in ee)Object.prototype.hasOwnProperty.call(ee,Ce)&&fe.indexOf(Ce)<0&&(be[Ce]=ee[Ce]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Ce=Object.getOwnPropertySymbols(ee);Te<Ce.length;Te++)fe.indexOf(Ce[Te])<0&&Object.prototype.propertyIsEnumerable.call(ee,Ce[Te])&&(be[Ce[Te]]=ee[Ce[Te]]);return be},rt={click:"onClick",hover:"onMouseOver"},ge=e.forwardRef(function(ee,fe){var be=Object(e.useState)(!1),Ce=Pe()(be,2),Te=Ce[0],he=Ce[1],ye=function(){var st=ee.disabled;if(st)return;he(!Te)},Ie=function(st){var Fe,ft=ee.action,et=ee.iconRender,wt=et===void 0?function(){return null}:et,Ht=rt[ft]||"",Dt=wt(Te),Tt=(Fe={},a()(Fe,Ht,ye),a()(Fe,"className","".concat(st,"-icon")),a()(Fe,"key","passwordIcon"),a()(Fe,"onMouseDown",function(Ke){Ke.preventDefault()}),a()(Fe,"onMouseUp",function(Ke){Ke.preventDefault()}),Fe);return e.cloneElement(e.isValidElement(Dt)?Dt:e.createElement("span",null,Dt),Tt)},tt=function(st){var Fe=st.getPrefixCls,ft=ee.className,et=ee.prefixCls,wt=ee.inputPrefixCls,Ht=ee.size,Dt=ee.visibilityToggle,Tt=ue(ee,["className","prefixCls","inputPrefixCls","size","visibilityToggle"]),Bt=Fe("input",wt),Ke=Fe("input-password",et),de=Dt&&Ie(Ke),oe=r()(Ke,ft,a()({},"".concat(Ke,"-").concat(Ht),!!Ht)),lt=p()(p()({},Object(s.default)(Tt,["suffix","iconRender"])),{type:Te?"text":"password",className:oe,prefixCls:Bt,suffix:de});return Ht&&(lt.size=Ht),e.createElement(B,p()({ref:fe},lt))};return e.createElement(O.a,null,tt)});ge.defaultProps={action:"click",visibilityToggle:!0,iconRender:function(fe){return fe?e.createElement(Ve.a,null):e.createElement(Ue.a,null)}},ge.displayName="Password";var Z=ge;B.Group=X,B.Search=$,B.TextArea=Se,B.Password=Z;var Y=D.a=B},"5s0K":function(k,D,i){var y=i("bYtY");function p(){var S=[],A={},m;return{add:function(f,d,l,o,n){return y.isString(o)&&(n=o,o=0),A[f.id]?!1:(A[f.id]=1,S.push({el:f,target:d,time:l,delay:o,easing:n}),!0)},done:function(f){return m=f,this},start:function(){for(var f=S.length,d=0,l=S.length;d<l;d++){var o=S[d];o.el.animateTo(o.target,o.time,o.delay,o.easing,n)}return this;function n(){f--,f||(S.length=0,A={},m&&m())}}}}D.createWrap=p},"5yev":function(k,D,i){"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(k,D,i){var y=i("ProS");y.registerAction("legendScroll","legendscroll",function(p,S){var A=p.scrollDataIndex;A!=null&&S.eachComponent({mainType:"legend",subType:"scroll",query:p},function(m){m.setScrollDataIndex(A)})})},"62sa":function(k,D,i){var y=i("bYtY"),p=i("4NO4"),S=p.makeInner,A=i("zTMp"),m=i("Ez2D"),f=y.each,d=y.curry,l=S();function o(v,b,w){var x=v.currTrigger,T=[v.x,v.y],O=v,E=v.dispatchAction||y.bind(w.dispatchAction,w),C=b.getComponent("axisPointer").coordSysAxesInfo;if(!C)return;g(T)&&(T=m({seriesIndex:O.seriesIndex,dataIndex:O.dataIndex},b).point);var I=g(T),_=O.axesInfo,F=C.axesInfo,R=x==="leave"||g(T),B={},M={},X={list:[],map:{}},P={showPointer:d(a,M),showTooltip:d(e,X)};f(C.coordSysMap,function(W,U){var V=I||W.containPoint(T);f(C.coordSysAxesInfo[U],function(Q,G){var te=Q.axis,$=c(_,Q);if(!R&&V&&(!_||$)){var le=$&&$.value;le==null&&!I&&(le=te.pointToData(T)),le!=null&&n(Q,le,P,!1,B)}})});var z={};return f(F,function(W,U){var V=W.linkGroup;V&&!M[U]&&f(V.axesInfo,function(Q,G){var te=M[G];if(Q!==W&&te){var $=te.value;V.mapper&&($=W.axis.scale.parse(V.mapper($,h(Q),h(W)))),z[W.key]=$}})}),f(z,function(W,U){n(F[U],W,P,!0,B)}),u(M,F,B),r(X,T,v,E),s(F,E,w),B}function n(v,b,w,x,T){var O=v.axis;if(O.scale.isBlank()||!O.containData(b))return;if(!v.involveSeries){w.showPointer(v,b);return}var E=t(b,v),C=E.payloadBatch,I=E.snapToValue;C[0]&&T.seriesIndex==null&&y.extend(T,C[0]),!x&&v.snap&&(O.containData(I)&&I!=null&&(b=I)),w.showPointer(v,b,C,T),w.showTooltip(v,E,I)}function t(v,b){var w=b.axis,x=w.dim,T=v,O=[],E=Number.MAX_VALUE,C=-1;return f(b.seriesModels,function(I,_){var F=I.getData().mapDimension(x,!0),R,B;if(I.getAxisTooltipData){var M=I.getAxisTooltipData(F,v,w);B=M.dataIndices,R=M.nestestValue}else{if(B=I.getData().indicesOfNearest(F[0],v,w.type==="category"?.5:null),!B.length)return;R=I.getData().get(F[0],B[0])}if(R==null||!isFinite(R))return;var X=v-R,P=Math.abs(X);P<=E&&((P<E||X>=0&&C<0)&&(E=P,C=X,T=R,O.length=0),f(B,function(z){O.push({seriesIndex:I.seriesIndex,dataIndexInside:z,dataIndex:I.getData().getRawIndex(z)})}))}),{payloadBatch:O,snapToValue:T}}function a(v,b,w,x){v[b.key]={value:w,payloadBatch:x}}function e(v,b,w,x){var T=w.payloadBatch,O=b.axis,E=O.model,C=b.axisPointerModel;if(!b.triggerTooltip||!T.length)return;var I=b.coordSys.model,_=A.makeKey(I),F=v.map[_];F||(F=v.map[_]={coordSysId:I.id,coordSysIndex:I.componentIndex,coordSysType:I.type,coordSysMainType:I.mainType,dataByAxis:[]},v.list.push(F)),F.dataByAxis.push({axisDim:O.dim,axisIndex:E.componentIndex,axisType:E.type,axisId:E.id,value:x,valueLabelOpt:{precision:C.get("label.precision"),formatter:C.get("label.formatter")},seriesDataIndices:T.slice()})}function u(v,b,w){var x=w.axesInfo=[];f(b,function(T,O){var E=T.axisPointerModel.option,C=v[O];C?(!T.useHandle&&(E.status="show"),E.value=C.value,E.seriesDataIndices=(C.payloadBatch||[]).slice()):!T.useHandle&&(E.status="hide"),E.status==="show"&&x.push({axisDim:T.axis.dim,axisIndex:T.axis.model.componentIndex,value:E.value})})}function r(v,b,w,x){if(g(b)||!v.list.length){x({type:"hideTip"});return}var T=((v.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};x({type:"showTip",escapeConnect:!0,x:b[0],y:b[1],tooltipOption:w.tooltipOption,position:w.position,dataIndexInside:T.dataIndexInside,dataIndex:T.dataIndex,seriesIndex:T.seriesIndex,dataByCoordSys:v.list})}function s(v,b,w){var x=w.getZr(),T="axisPointerLastHighlights",O=l(x)[T]||{},E=l(x)[T]={};f(v,function(_,F){var R=_.axisPointerModel.option;R.status==="show"&&f(R.seriesDataIndices,function(B){var M=B.seriesIndex+" | "+B.dataIndex;E[M]=B})});var C=[],I=[];y.each(O,function(_,F){!E[F]&&I.push(_)}),y.each(E,function(_,F){!O[F]&&C.push(_)}),I.length&&w.dispatchAction({type:"downplay",escapeConnect:!0,batch:I}),C.length&&w.dispatchAction({type:"highlight",escapeConnect:!0,batch:C})}function c(v,b){for(var w=0;w<(v||[]).length;w++){var x=v[w];if(b.axis.dim===x.axisDim&&b.axis.model.componentIndex===x.axisIndex)return x}}function h(v){var b=v.axis.model,w={},x=w.axisDim=v.axis.dim;return w.axisIndex=w[x+"AxisIndex"]=b.componentIndex,w.axisName=w[x+"AxisName"]=b.name,w.axisId=w[x+"AxisId"]=b.id,w}function g(v){return!v||v[0]==null||isNaN(v[0])||v[1]==null||isNaN(v[1])}k.exports=o},"6BzB":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.shrinkBuf=y,D.arraySet=p,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 p(d,l,o,n,t){if(l.subarray&&d.subarray){d.set(l.subarray(o,o+n),t);return}for(var a=0;a<n;a++)d[t+a]=l[o+a]}function S(d){var l,o,n,t,a,e;for(n=0,l=0,o=d.length;l<o;l++)n+=d[l].length;for(e=new Uint8Array(n),t=0,l=0,o=d.length;l<o;l++)a=d[l],e.set(a,t),t+=a.length;return e}var A=Uint8Array;D.Buf8=A;var m=Uint16Array;D.Buf16=m;var f=Int32Array;D.Buf32=f},"6D9b":function(k,D,i){},"6GrX":function(k,D,i){var y=i("mFDi"),p=i("Xnb7"),S=i("bYtY"),A=S.getContext,m=S.extend,f=S.retrieve2,d=S.retrieve3,l=S.trim,o={},n=0,t=5e3,a=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g,e="12px sans-serif",u={};function r(X,P){u[X]=P}function s(X,P){P=P||e;var z=X+":"+P;if(o[z])return o[z];for(var W=(X+"").split(`
`),U=0,V=0,Q=W.length;V<Q;V++)U=Math.max(_(W[V],P).width,U);return n>t&&(n=0,o={}),n++,o[z]=U,U}function c(X,P,z,W,U,V,Q,G){return Q?g(X,P,z,W,U,V,Q,G):h(X,P,z,W,U,V,G)}function h(X,P,z,W,U,V,Q){var G=F(X,P,U,V,Q),te=s(X,P);U&&(te+=U[1]+U[3]);var $=G.outerHeight,le=v(0,te,z),re=b(0,$,W),Se=new y(le,re,te,$);return Se.lineHeight=G.lineHeight,Se}function g(X,P,z,W,U,V,Q,G){var te=R(X,{rich:Q,truncate:G,font:P,textAlign:z,textPadding:U,textLineHeight:V}),$=te.outerWidth,le=te.outerHeight,re=v(0,$,z),Se=b(0,le,W);return new y(re,Se,$,le)}function v(X,P,z){return z==="right"?X-=P:z==="center"&&(X-=P/2),X}function b(X,P,z){return z==="middle"?X-=P/2:z==="bottom"&&(X-=P),X}function w(X,P,z){var W=P.textPosition,U=P.textDistance,V=z.x,Q=z.y;U=U||0;var G=z.height,te=z.width,$=G/2,le="left",re="top";switch(W){case"left":V-=U,Q+=$,le="right",re="middle";break;case"right":V+=U+te,Q+=$,re="middle";break;case"top":V+=te/2,Q-=U,le="center",re="bottom";break;case"bottom":V+=te/2,Q+=G+U,le="center";break;case"inside":V+=te/2,Q+=$,le="center",re="middle";break;case"insideLeft":V+=U,Q+=$,re="middle";break;case"insideRight":V+=te-U,Q+=$,le="right",re="middle";break;case"insideTop":V+=te/2,Q+=U,le="center";break;case"insideBottom":V+=te/2,Q+=G-U,le="center",re="bottom";break;case"insideTopLeft":V+=U,Q+=U;break;case"insideTopRight":V+=te-U,Q+=U,le="right";break;case"insideBottomLeft":V+=U,Q+=G-U,re="bottom";break;case"insideBottomRight":V+=te-U,Q+=G-U,le="right",re="bottom";break}return X=X||{},X.x=V,X.y=Q,X.textAlign=le,X.textVerticalAlign=re,X}function x(X,P,z){var W={textPosition:X,textDistance:z};return w({},W,P)}function T(X,P,z,W,U){if(!P)return"";var V=(X+"").split(`
`);U=O(P,z,W,U);for(var Q=0,G=V.length;Q<G;Q++)V[Q]=E(V[Q],U);return V.join(`
`)}function O(X,P,z,W){W=m({},W),W.font=P;var z=f(z,"...");W.maxIterations=f(W.maxIterations,2);var U=W.minChar=f(W.minChar,0);W.cnCharWidth=s("\u56FD",P);var V=W.ascCharWidth=s("a",P);W.placeholder=f(W.placeholder,"");for(var Q=X=Math.max(0,X-1),G=0;G<U&&Q>=V;G++)Q-=V;var te=s(z,P);return te>Q&&(z="",te=0),Q=X-te,W.ellipsis=z,W.ellipsisWidth=te,W.contentWidth=Q,W.containerWidth=X,W}function E(X,P){var z=P.containerWidth,W=P.font,U=P.contentWidth;if(!z)return"";var V=s(X,W);if(V<=z)return X;for(var Q=0;;Q++){if(V<=U||Q>=P.maxIterations){X+=P.ellipsis;break}var G=Q===0?C(X,U,P.ascCharWidth,P.cnCharWidth):V>0?Math.floor(X.length*U/V):0;X=X.substr(0,G),V=s(X,W)}return X===""&&(X=P.placeholder),X}function C(X,P,z,W){for(var U=0,V=0,Q=X.length;V<Q&&U<P;V++){var G=X.charCodeAt(V);U+=0<=G&&G<=127?z:W}return V}function I(X){return s("\u56FD",X)}function _(X,P){return u.measureText(X,P)}u.measureText=function(X,P){var z=A();return z.font=P||e,z.measureText(X)};function F(X,P,z,W,U){X!=null&&(X+="");var V=f(W,I(P)),Q=X?X.split(`
`):[],G=Q.length*V,te=G,$=!0;if(z&&(te+=z[0]+z[2]),X&&U){$=!1;var le=U.outerHeight,re=U.outerWidth;if(le!=null&&te>le)X="",Q=[];else if(re!=null)for(var Se=O(re-(z?z[1]+z[3]:0),P,U.ellipsis,{minChar:U.minChar,placeholder:U.placeholder}),Re=0,Pe=Q.length;Re<Pe;Re++)Q[Re]=E(Q[Re],Se)}return{lines:Q,height:G,outerHeight:te,lineHeight:V,canCacheByTextString:$}}function R(X,P){var z={lines:[],width:0,height:0};if(X!=null&&(X+=""),!X)return z;for(var W=a.lastIndex=0,U;(U=a.exec(X))!=null;){var V=U.index;V>W&&B(z,X.substring(W,V)),B(z,U[2],U[1]),W=a.lastIndex}W<X.length&&B(z,X.substring(W,X.length));var Q=z.lines,G=0,te=0,$=[],le=P.textPadding,re=P.truncate,Se=re&&re.outerWidth,Re=re&&re.outerHeight;le&&(Se!=null&&(Se-=le[1]+le[3]),Re!=null&&(Re-=le[0]+le[2]));for(var Pe=0;Pe<Q.length;Pe++){for(var Je=Q[Pe],Ve=0,ct=0,Ue=0;Ue<Je.tokens.length;Ue++){var ue=Je.tokens[Ue],rt=ue.styleName&&P.rich[ue.styleName]||{},ge=ue.textPadding=rt.textPadding,Z=ue.font=rt.font||P.font,Y=ue.textHeight=f(rt.textHeight,I(Z));if(ge&&(Y+=ge[0]+ge[2]),ue.height=Y,ue.lineHeight=d(rt.textLineHeight,P.textLineHeight,Y),ue.textAlign=rt&&rt.textAlign||P.textAlign,ue.textVerticalAlign=rt&&rt.textVerticalAlign||"middle",Re!=null&&G+ue.lineHeight>Re)return{lines:[],width:0,height:0};ue.textWidth=s(ue.text,Z);var ee=rt.textWidth,fe=ee==null||ee==="auto";if(typeof ee=="string"&&ee.charAt(ee.length-1)==="%")ue.percentWidth=ee,$.push(ue),ee=0;else{if(fe){ee=ue.textWidth;var be=rt.textBackgroundColor,Ce=be&&be.image;Ce&&(Ce=p.findExistImage(Ce),p.isImageReady(Ce)&&(ee=Math.max(ee,Ce.width*Y/Ce.height)))}var Te=ge?ge[1]+ge[3]:0;ee+=Te;var he=Se!=null?Se-ct:null;he!=null&&he<ee&&(!fe||he<Te?(ue.text="",ue.textWidth=ee=0):(ue.text=T(ue.text,he-Te,Z,re.ellipsis,{minChar:re.minChar}),ue.textWidth=s(ue.text,Z),ee=ue.textWidth+Te))}ct+=ue.width=ee,rt&&(Ve=Math.max(Ve,ue.lineHeight))}Je.width=ct,Je.lineHeight=Ve,G+=Ve,te=Math.max(te,ct)}z.outerWidth=z.width=f(P.textWidth,te),z.outerHeight=z.height=f(P.textHeight,G),le&&(z.outerWidth+=le[1]+le[3],z.outerHeight+=le[0]+le[2]);for(var Pe=0;Pe<$.length;Pe++){var ue=$[Pe],ye=ue.percentWidth;ue.width=parseInt(ye,10)/100*te}return z}function B(X,P,z){for(var W=P==="",U=P.split(`
`),V=X.lines,Q=0;Q<U.length;Q++){var G=U[Q],te={styleName:z,text:G,isLineHolder:!G&&!W};if(Q)V.push({tokens:[te]});else{var $=(V[V.length-1]||(V[0]={tokens:[]})).tokens,le=$.length;le===1&&$[0].isLineHolder?$[0]=te:(G||!le||W)&&$.push(te)}}}function M(X){var P=(X.fontSize||X.fontFamily)&&[X.fontStyle,X.fontWeight,(X.fontSize||12)+"px",X.fontFamily||"sans-serif"].join(" ");return P&&l(P)||X.textFont||X.font}D.DEFAULT_FONT=e,D.$override=r,D.getWidth=s,D.getBoundingRect=c,D.adjustTextX=v,D.adjustTextY=b,D.calculateTextPosition=w,D.adjustTextPositionOnRect=x,D.truncateText=T,D.getLineHeight=I,D.measureText=_,D.parsePlainText=F,D.parseRichText=R,D.makeFont=M},"6Hfg":function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("FhB9")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="SwapRightOutlined";var n=A.forwardRef(o);D.default=n},"6Ic6":function(k,D,i){var y=i("bYtY"),p=y.each,S=i("4fz+"),A=i("iRjW"),m=i("Yl7c"),f=i("4NO4"),d=i("IwbS"),l=i("9H2F"),o=l.createTask,n=i("zM3Q"),t=f.makeInner(),a=n();function e(){this.group=new S,this.uid=A.getUID("viewChart"),this.renderTask=o({plan:c,reset:h}),this.renderTask.context={view:this}}e.prototype={type:"chart",init:function(b,w){},render:function(b,w,x,T){},highlight:function(b,w,x,T){s(b.getData(),T,"emphasis")},downplay:function(b,w,x,T){s(b.getData(),T,"normal")},remove:function(b,w){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,w,x,T){this.render(b,w,x,T)};function r(b,w,x){if(b&&(b.trigger(w,x),b.isGroup&&!d.isHighDownDispatcher(b)))for(var T=0,O=b.childCount();T<O;T++)r(b.childAt(T),w,x)}function s(b,w,x){var T=f.queryDataIndex(b,w),O=w&&w.highlightKey!=null?d.getHighlightDigit(w.highlightKey):null;T!=null?p(f.normalizeToArray(T),function(E){r(b.getItemGraphicEl(E),x,O)}):b.eachItemGraphicEl(function(E){r(E,x,O)})}m.enableClassExtend(e,["dispose"]),m.enableClassManagement(e,{registerWhenExtend:!0}),e.markUpdateMethod=function(b,w){t(b).updateMethod=w};function c(b){return a(b.model)}function h(b){var w=b.model,x=b.ecModel,T=b.api,O=b.payload,E=w.pipelineContext.progressiveRender,C=b.view,I=O&&t(O).updateMethod,_=E?"incrementalPrepareRender":I&&C[I]?I:"render";return _!=="render"&&C[_](w,x,T,O),g[_]}var g={incrementalPrepareRender:{progress:function(b,w){w.view.incrementalRender(b,w.model,w.ecModel,w.api,w.payload)}},render:{forceFirstProgress:!0,progress:function(b,w){w.view.render(w.model,w.ecModel,w.api,w.payload)}}},v=e;k.exports=v},"6MrE":function(k,D,i){},"6Qwc":function(k,D,i){"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(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("qWUW"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},"6UJt":function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("v56E"),A=i.n(S),m=i("R9oj"),f=i("5NDa")},"6VBw":function(k,D,i){"use strict";var y=i("VTBJ"),p=i("ODXe"),S=i("rePB"),A=i("Ff2n"),m=i("q1tI"),f=i("TSYQ"),d=i.n(f),l=i("Pw59"),o=i("Qi1f"),n=["icon","className","onClick","style","primaryColor","secondaryColor"],t={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function a(b){var w=b.primaryColor,x=b.secondaryColor;t.primaryColor=w,t.secondaryColor=x||Object(o.b)(w),t.calculated=!!x}function e(){return Object(y.a)({},t)}var u=function(w){var x=w.icon,T=w.className,O=w.onClick,E=w.style,C=w.primaryColor,I=w.secondaryColor,_=Object(A.a)(w,n),F=t;if(C&&(F={primaryColor:C,secondaryColor:I||Object(o.b)(C)}),Object(o.f)(),Object(o.g)(Object(o.c)(x),"icon should be icon definiton, but got ".concat(x)),!Object(o.c)(x))return null;var R=x;return R&&typeof R.icon=="function"&&(R=Object(y.a)(Object(y.a)({},R),{},{icon:R.icon(F.primaryColor,F.secondaryColor)})),Object(o.a)(R.icon,"svg-".concat(R.name),Object(y.a)({className:T,onClick:O,style:E,"data-icon":R.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},_))};u.displayName="IconReact",u.getTwoToneColors=e,u.setTwoToneColors=a;var r=u;function s(b){var w=Object(o.d)(b),x=Object(p.a)(w,2),T=x[0],O=x[1];return r.setTwoToneColors({primaryColor:T,secondaryColor:O})}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 g=m.forwardRef(function(b,w){var x,T=b.className,O=b.icon,E=b.spin,C=b.rotate,I=b.tabIndex,_=b.onClick,F=b.twoToneColor,R=Object(A.a)(b,h),B=m.useContext(l.a),M=B.prefixCls,X=M===void 0?"anticon":M,P=B.rootClassName,z=d()(P,X,(x={},Object(S.a)(x,"".concat(X,"-").concat(O.name),!!O.name),Object(S.a)(x,"".concat(X,"-spin"),!!E||O.name==="loading"),x),T),W=I;W===void 0&&_&&(W=-1);var U=C?{msTransform:"rotate(".concat(C,"deg)"),transform:"rotate(".concat(C,"deg)")}:void 0,V=Object(o.d)(F),Q=Object(p.a)(V,2),G=Q[0],te=Q[1];return m.createElement("span",Object(y.a)(Object(y.a)({role:"img","aria-label":O.name},R),{},{ref:w,tabIndex:W,onClick:_,className:z}),m.createElement(r,{icon:O,primaryColor:G,secondaryColor:te,style:U}))});g.displayName="AntdIcon",g.getTwoToneColor=c,g.setTwoToneColor=s;var v=D.a=g},"6cGi":function(k,D,i){"use strict";i.d(D,"a",function(){return f});var y=i("ODXe"),p=i("mBDr"),S=i("TNol"),A=i("dm2S");function m(d){return d!==void 0}function f(d,l){var o=l||{},n=o.defaultValue,t=o.value,a=o.onChange,e=o.postState,u=Object(A.a)(function(){return m(t)?t:m(n)?typeof n=="function"?n():n:typeof d=="function"?d():d}),r=Object(y.a)(u,2),s=r[0],c=r[1],h=t!==void 0?t:s,g=e?e(h):h,v=Object(p.a)(a),b=Object(A.a)([h]),w=Object(y.a)(b,2),x=w[0],T=w[1];Object(S.b)(function(){var E=x[0];s!==E&&v(s,E)},[x]),Object(S.b)(function(){m(t)||c(t)},[t]);var O=Object(p.a)(function(E,C){c(E,C),T([h],C)});return[g,O]}},"6fms":function(k,D,i){var y=i("SUKs"),p=i("06Qe"),S=i("bYtY"),A=S.each;function m(o){return parseInt(o,10)}function f(o,n){p.initVML(),this.root=o,this.storage=n;var t=document.createElement("div"),a=document.createElement("div");t.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",a.style.cssText="position:absolute;left:0;top:0;",o.appendChild(t),this._vmlRoot=a,this._vmlViewport=t,this.resize();var e=n.delFromStorage,u=n.addToStorage;n.delFromStorage=function(r){e.call(n,r),r&&(r.onRemove&&r.onRemove(a))},n.addToStorage=function(r){r.onAdd&&r.onAdd(a),u.call(n,r)},this._firstPaint=!0}f.prototype={constructor:f,getType:function(){return"vml"},getViewportRoot:function(){return this._vmlViewport},getViewportRootOffset:function(){var n=this.getViewportRoot();if(n)return{offsetLeft:n.offsetLeft||0,offsetTop:n.offsetTop||0}},refresh:function(){var n=this.storage.getDisplayList(!0,!0);this._paintList(n)},_paintList:function(n){for(var t=this._vmlRoot,a=0;a<n.length;a++){var e=n[a];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(n,t){var n=n==null?this._getWidth():n,t=t==null?this._getHeight():t;if(this._width!==n||this._height!==t){this._width=n,this._height=t;var a=this._vmlViewport.style;a.width=n+"px",a.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 n=this.root,t=n.currentStyle;return(n.clientWidth||m(t.width))-m(t.paddingLeft)-m(t.paddingRight)|0},_getHeight:function(){var n=this.root,t=n.currentStyle;return(n.clientHeight||m(t.height))-m(t.paddingTop)-m(t.paddingBottom)|0}};function d(o){return function(){y('In IE8.0 VML mode painter not support method "'+o+'"')}}A(["getLayer","insertLayer","eachLayer","eachBuiltinLayer","eachOtherLayer","getLayers","modLayer","delLayer","clearLayer","toDataURL","pathToImage"],function(o){f.prototype[o]=d(o)});var l=f;k.exports=l},"6r85":function(k,D,i){var y=i("bYtY");function p(S){if(!S||!y.isArray(S.series))return;y.each(S.series,function(A){y.isObject(A)&&A.type==="k"&&(A.type="candlestick")})}k.exports=p},"6sVZ":function(k,D){var i=Object.prototype;function y(p){var S=p&&p.constructor,A=typeof S=="function"&&S.prototype||i;return p===A}k.exports=y},"6uqw":function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("ItGF"),A=i("YOMW"),m=i("XxSj"),f=i("K4ya"),d=i("4NO4"),l=i("OELB"),o=m.mapVisual,n=m.eachVisual,t=p.isArray,a=p.each,e=l.asc,u=l.linearMap,r=p.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,g,v){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(h,v)},optionUpdated:function(h,g){var v=this.option;S.canvasSupported||(v.realtime=!1),!g&&f.replaceVisualOption(v,h,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(h){var g=this.stateList;h=p.bind(h,this),this.controllerVisuals=f.createVisualMappings(this.option.controller,g,h),this.targetVisuals=f.createVisualMappings(this.option.target,g,h)},getTargetSeriesIndices:function(){var h=this.option.seriesIndex,g=[];return h==null||h==="all"?this.ecModel.eachSeries(function(v,b){g.push(b)}):g=d.normalizeToArray(h),g},eachTargetSeries:function(h,g){p.each(this.getTargetSeriesIndices(),function(v){h.call(g,this.ecModel.getSeriesByIndex(v))},this)},isTargetSeries:function(h){var g=!1;return this.eachTargetSeries(function(v){v===h&&(g=!0)}),g},formatValueText:function(h,g,v){var b=this.option,w=b.precision,x=this.dataBound,T=b.formatter,O,E;if(v=v||["<",">"],p.isArray(h)&&(h=h.slice(),O=!0),E=g?h:O?[C(h[0]),C(h[1])]:C(h),p.isString(T))return T.replace("{value}",O?E[0]:E).replace("{value2}",O?E[1]:E);if(p.isFunction(T))return O?T(h[0],h[1]):T(h);if(O)return h[0]===x[0]?v[0]+" "+E[1]:h[1]===x[1]?v[1]+" "+E[0]:E[0]+" - "+E[1];return E;function C(I){return I===x[0]?"min":I===x[1]?"max":(+I).toFixed(Math.min(w,20))}},resetExtent:function(){var h=this.option,g=e([h.min,h.max]);this._dataExtent=g},getDataDimension:function(h){var g=this.option.dimension,v=h.dimensions;if(g==null&&!v.length)return;if(g!=null)return h.getDimension(g);for(var b=h.dimensions,w=b.length-1;w>=0;w--){var x=b[w],T=h.getDimensionInfo(x);if(!T.isCalculationCoord)return x}},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){var h=this.ecModel,g=this.option,v={inRange:g.inRange,outOfRange:g.outOfRange},b=g.target||(g.target={}),w=g.controller||(g.controller={});p.merge(b,v),p.merge(w,v);var x=this.isCategory();T.call(this,b),T.call(this,w),O.call(this,b,"inRange","outOfRange"),E.call(this,w);function T(C){t(g.color)&&!C.inRange&&(C.inRange={color:g.color.slice().reverse()}),C.inRange=C.inRange||{color:h.get("gradientColor")},a(this.stateList,function(I){var _=C[I];if(p.isString(_)){var F=A.get(_,"active",x);F?(C[I]={},C[I][_]=F):delete C[I]}},this)}function O(C,I,_){var F=C[I],R=C[_];F&&!R&&(R=C[_]={},a(F,function(B,M){if(!m.isValidType(M))return;var X=A.get(M,"inactive",x);X!=null&&(R[M]=X,M==="color"&&!R.hasOwnProperty("opacity")&&!R.hasOwnProperty("colorAlpha")&&(R.opacity=[0,0]))}))}function E(C){var I=(C.inRange||{}).symbol||(C.outOfRange||{}).symbol,_=(C.inRange||{}).symbolSize||(C.outOfRange||{}).symbolSize,F=this.get("inactiveColor");a(this.stateList,function(R){var B=this.itemSize,M=C[R];M||(M=C[R]={color:x?F:[F]}),M.symbol==null&&(M.symbol=I&&p.clone(I)||(x?"roundRect":["roundRect"])),M.symbolSize==null&&(M.symbolSize=_&&p.clone(_)||(x?B[0]:[B[0],B[0]])),M.symbol=o(M.symbol,function(z){return z==="none"||z==="square"?"roundRect":z});var X=M.symbolSize;if(X!=null){var P=-Infinity;n(X,function(z){z>P&&(P=z)}),M.symbolSize=o(X,function(z){return u(z,[0,P],[0,B[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;k.exports=c},"6usn":function(k,D,i){var y=i("bYtY");function p(A,m){return y.map(["Radius","Angle"],function(f,d){var l=this["get"+f+"Axis"](),o=m[d],n=A[d]/2,t="dataTo"+f,a=l.type==="category"?l.getBandWidth():Math.abs(l[t](o-n)-l[t](o+n));return f==="Angle"&&(a=a*Math.PI/180),a},this)}function S(A){var m=A.getRadiusAxis(),f=A.getAngleAxis(),d=m.getExtent();return d[0]>d[1]&&d.reverse(),{coordSys:{type:"polar",cx:A.cx,cy:A.cy,r:d[1],r0:d[0]},api:{coord:y.bind(function(l){var o=m.dataToRadius(l[0]),n=f.dataToAngle(l[1]),t=A.coordToPoint([o,n]);return t.push(o,n*Math.PI/180),t}),size:y.bind(p,A)}}}k.exports=S},"6xvX":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("V7ic"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},"711d":function(k,D){function i(y){return function(p){return p==null?void 0:p[y]}}k.exports=i},"72pK":function(k,D){function i(S,A,m,f,d,l){S=S||0;var o=m[1]-m[0];if(d!=null&&(d=p(d,[0,o])),l!=null&&(l=Math.max(l,d!=null?d:0)),f==="all"){var n=Math.abs(A[1]-A[0]);n=p(n,[0,o]),d=l=p(n,[d,l]),f=0}A[0]=p(A[0],m),A[1]=p(A[1],m);var t=y(A,f);A[f]+=S;var a=d||0,e=m.slice();t.sign<0?e[0]+=a:e[1]-=a,A[f]=p(A[f],e);var u=y(A,f);d!=null&&(u.sign!==t.sign||u.span<d)&&(A[1-f]=A[f]+t.sign*d);var u=y(A,f);return l!=null&&u.span>l&&(A[1-f]=A[f]+u.sign*l),A}function y(S,A){var m=S[A]-S[1-A];return{span:Math.abs(m),sign:m>0?-1:m<0?1:A?-1:1}}function p(S,A){return Math.min(A[1]!=null?A[1]:Infinity,Math.max(A[0]!=null?A[0]:-Infinity,S))}k.exports=i},"75ce":function(k,D,i){var y=i("ProS");i("IXuL"),i("8X+K");var p=i("f5Yq"),S=i("h8O9"),A=i("/d5a");i("Ae16"),y.registerVisual(p("line","circle","line")),y.registerLayout(S("line")),y.registerProcessor(y.PRIORITY.PROCESSOR.STATISTIC,A("line"))},"75ev":function(k,D,i){var y=i("ProS");i("IWNH"),i("bNin"),i("v5uJ");var p=i("f5Yq"),S=i("yik8");y.registerVisual(p("tree","circle")),y.registerLayout(S)},"77Zs":function(k,D,i){var y=i("Xi7e");function p(){this.__data__=new y,this.size=0}k.exports=p},"7AJT":function(k,D,i){var y=i("bYtY"),p=i("hM6l"),S=function(m,f,d,l,o){p.call(this,m,f,d),this.type=l||"value",this.position=o||"bottom"};S.prototype={constructor:S,index:0,getAxesOnZeroOf:null,model:null,isHorizontal:function(){var m=this.position;return m==="top"||m==="bottom"},getGlobalExtent:function(m){var f=this.getExtent();return f[0]=this.toGlobalCoord(f[0]),f[1]=this.toGlobalCoord(f[1]),m&&f[0]>f[1]&&f.reverse(),f},getOtherAxis:function(){this.grid.getOtherAxis()},pointToData:function(m,f){return this.coordToData(this.toLocalCoord(m[this.dim==="x"?0:1]),f)},toLocalCoord:null,toGlobalCoord:null},y.inherits(S,p);var A=S;k.exports=A},"7Cbv":function(k,D,i){"use strict";var y=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),p=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(p)}var A=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function m(e){return typeof e=="string"&&A.test(e)}for(var f=m,d=[],l=0;l<256;++l)d.push((l+256).toString(16).substr(1));function o(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 n=o;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 n(s)}var a=D.a=t},"7DRL":function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),A=S.createHashMap,m=S.isString,f=S.isArray,d=S.each,l=S.assert,o=i("MEGo"),n=o.parseXML,t=A(),a={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 g=h.type;g==="geoJson"&&(g=h.type="geoJSON");var v=e[g];v(h)}),t.set(u,c)},retrieveMap:function(u){return t.get(u)}},e={geoJSON:function(u){var r=u.source;u.geoJSON=m(r)?typeof JSON!="undefined"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r},svg:function(u){u.svgXML=n(u.source)}};k.exports=a},"7G+c":function(k,D,i){var y=i("bYtY"),p=y.createHashMap,S=y.isTypedArray,A=i("Yl7c"),m=A.enableClassCheck,f=i("k9D9"),d=f.SOURCE_FORMAT_ORIGINAL,l=f.SERIES_LAYOUT_BY_COLUMN,o=f.SOURCE_FORMAT_UNKNOWN,n=f.SOURCE_FORMAT_TYPED_ARRAY,t=f.SOURCE_FORMAT_KEYED_COLUMNS;function a(u){this.fromDataset=u.fromDataset,this.data=u.data||(u.sourceFormat===t?{}:[]),this.sourceFormat=u.sourceFormat||o,this.seriesLayoutBy=u.seriesLayoutBy||l,this.dimensionsDefine=u.dimensionsDefine,this.encodeDefine=u.encodeDefine&&p(u.encodeDefine),this.startIndex=u.startIndex||0,this.dimensionsDetectCount=u.dimensionsDetectCount}a.seriesDataToSource=function(u){return new a({data:u,sourceFormat:S(u)?n:d,fromDataset:!1})},m(a);var e=a;k.exports=e},"7GkX":function(k,D,i){var y=i("b80T"),p=i("A90E"),S=i("MMmD");function A(m){return S(m)?y(m):p(m)}k.exports=A},"7Kak":function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("KPFz"),A=i.n(S)},"7Phj":function(k,D,i){var y=i("bYtY"),p=i("OELB"),S=p.parsePercent,A=y.each;function m(o){var n=f(o);A(n,function(t){var a=t.seriesModels;if(!a.length)return;d(t),A(a,function(e,u){l(e,t.boxOffsetList[u],t.boxWidthList[u])})})}function f(o){var n=[],t=[];return o.eachSeriesByType("boxplot",function(a){var e=a.getBaseAxis(),u=y.indexOf(t,e);u<0&&(u=t.length,t[u]=e,n[u]={axis:e,seriesModels:[]}),n[u].seriesModels.push(a)}),n}function d(o){var n,t=o.axis,a=o.seriesModels,e=a.length,u=o.boxWidthList=[],r=o.boxOffsetList=[],s=[],c;if(t.type==="category")c=t.getBandWidth();else{var h=0;A(a,function(x){h=Math.max(h,x.getData().count())}),n=t.getExtent(),Math.abs(n[1]-n[0])/h}A(a,function(x){var T=x.get("boxWidth");y.isArray(T)||(T=[T,T]),s.push([S(T[0],c)||0,S(T[1],c)||0])});var g=c*.8-2,v=g/e*.3,b=(g-v*(e-1))/e,w=b/2-g/2;A(a,function(x,T){r.push(w),w+=v+b,u.push(Math.min(Math.max(b,s[T][0]),s[T][1]))})}function l(o,n,t){var a=o.coordinateSystem,e=o.getData(),u=t/2,r=o.get("layout")==="horizontal"?0:1,s=1-r,c=["x","y"],h=e.mapDimension(c[r]),g=e.mapDimension(c[s],!0);if(h==null||g.length<5)return;for(var v=0;v<e.count();v++){var b=e.get(h,v),w=I(b,g[2],v),x=I(b,g[0],v),T=I(b,g[1],v),O=I(b,g[3],v),E=I(b,g[4],v),C=[];_(C,T,0),_(C,O,1),C.push(x,T,E,O),F(C,x),F(C,E),F(C,w),e.setItemLayout(v,{initBaseline:w[s],ends:C})}function I(R,B,M){var X=e.get(B,M),P=[];P[r]=R,P[s]=X;var z;return isNaN(R)||isNaN(X)?z=[NaN,NaN]:(z=a.dataToPoint(P),z[r]+=n),z}function _(R,B,M){var X=B.slice(),P=B.slice();X[r]+=u,P[r]-=u,M?R.push(X,P):R.push(P,X)}function F(R,B){var M=B.slice(),X=B.slice();M[r]-=u,X[r]+=u,R.push(M,X)}}k.exports=m},"7SHv":function(k,D,i){var y=i("LPTA"),p=y.devicePixelRatio,S=i("bYtY"),A=i("SUKs"),m=i("mFDi"),f=i("BPZU"),d=i("Xmg4"),l=i("mLcG"),o=i("Dagg"),n=i("ItGF"),t=1e5,a=314159,e=.01,u=.001;function r(O){return parseInt(O,10)}function s(O){return O?O.__builtin__?!0:!(typeof O.resize!="function"||typeof O.refresh!="function"):!1}var c=new m(0,0,0,0),h=new m(0,0,0,0);function g(O,E,C){return c.copy(O.getBoundingRect()),O.transform&&c.applyTransform(O.transform),h.width=E,h.height=C,!c.intersect(h)}function v(O,E){if(O===E)return!1;if(!O||!E||O.length!==E.length)return!0;for(var C=0;C<O.length;C++)if(O[C]!==E[C])return!0;return!1}function b(O,E){for(var C=0;C<O.length;C++){var I=O[C];I.setTransform(E),E.beginPath(),I.buildPath(E,I.shape),E.clip(),I.restoreTransform(E)}}function w(O,E){var C=document.createElement("div");return C.style.cssText=["position:relative","width:"+O+"px","height:"+E+"px","padding:0","margin:0","border-width:0"].join(";")+";",C}var x=function(E,C,I){this.type="canvas";var _=!E.nodeName||E.nodeName.toUpperCase()==="CANVAS";this._opts=I=S.extend({},I||{}),this.dpr=I.devicePixelRatio||p,this._singleCanvas=_,this.root=E;var F=E.style;F&&(F["-webkit-tap-highlight-color"]="transparent",F["-webkit-user-select"]=F["user-select"]=F["-webkit-touch-callout"]="none",E.innerHTML=""),this.storage=C;var R=this._zlevelList=[],B=this._layers={};if(this._layerConfig={},this._needsManuallyCompositing=!1,_){var X=E.width,P=E.height;I.width!=null&&(X=I.width),I.height!=null&&(P=I.height),this.dpr=I.devicePixelRatio||1,E.width=X*this.dpr,E.height=P*this.dpr,this._width=X,this._height=P;var z=new d(E,this,this.dpr);z.__builtin__=!0,z.initContext(),B[a]=z,z.zlevel=a,R.push(a),this._domRoot=E}else{this._width=this._getSize(0),this._height=this._getSize(1);var M=this._domRoot=w(this._width,this._height);E.appendChild(M)}this._hoverlayer=null,this._hoverElements=[]};x.prototype={constructor:x,getType:function(){return"canvas"},isSingleCanvas:function(){return this._singleCanvas},getViewportRoot:function(){return this._domRoot},getViewportRootOffset:function(){var E=this.getViewportRoot();if(E)return{offsetLeft:E.offsetLeft||0,offsetTop:E.offsetTop||0}},refresh:function(E){var C=this.storage.getDisplayList(!0),I=this._zlevelList;this._redrawId=Math.random(),this._paintList(C,E,this._redrawId);for(var _=0;_<I.length;_++){var F=I[_],R=this._layers[F];if(!R.__builtin__&&R.refresh){var B=_===0?this._backgroundColor:null;R.refresh(B)}}return this.refreshHover(),this},addHover:function(E,C){if(E.__hoverMir)return;var I=new E.constructor({style:E.style,shape:E.shape,z:E.z,z2:E.z2,silent:E.silent});return I.__from=E,E.__hoverMir=I,C&&I.setStyle(C),this._hoverElements.push(I),I},removeHover:function(E){var C=E.__hoverMir,I=this._hoverElements,_=S.indexOf(I,C);_>=0&&I.splice(_,1),E.__hoverMir=null},clearHover:function(E){for(var C=this._hoverElements,I=0;I<C.length;I++){var _=C[I].__from;_&&(_.__hoverMir=null)}C.length=0},refreshHover:function(){var E=this._hoverElements,C=E.length,I=this._hoverlayer;if(I&&I.clear(),!C)return;f(E,this.storage.displayableSortFunc),I||(I=this._hoverlayer=this.getLayer(t));var _={};I.ctx.save();for(var F=0;F<C;){var R=E[F],B=R.__from;if(!(B&&B.__zr)){E.splice(F,1),B.__hoverMir=null,C--;continue}F++,B.invisible||(R.transform=B.transform,R.invTransform=B.invTransform,R.__clipPaths=B.__clipPaths,this._doPaintEl(R,I,!0,_))}I.ctx.restore()},getHoverLayer:function(){return this.getLayer(t)},_paintList:function(E,C,I){if(this._redrawId!==I)return;C=C||!1,this._updateLayerStatus(E);var _=this._doPaintList(E,C);if(this._needsManuallyCompositing&&this._compositeManually(),!_){var F=this;l(function(){F._paintList(E,C,I)})}},_compositeManually:function(){var E=this.getLayer(a).ctx,C=this._domRoot.width,I=this._domRoot.height;E.clearRect(0,0,C,I),this.eachBuiltinLayer(function(_){_.virtual&&E.drawImage(_.dom,0,0,C,I)})},_doPaintList:function(E,C){for(var I=[],_=0;_<this._zlevelList.length;_++){var F=this._zlevelList[_],R=this._layers[F];R.__builtin__&&R!==this._hoverlayer&&(R.__dirty||C)&&I.push(R)}for(var B=!0,M=0;M<I.length;M++){var R=I[M],X=R.ctx,P={};X.save();var z=C?R.__startIndex:R.__drawIndex,W=!C&&R.incremental&&Date.now,U=W&&Date.now(),V=R.zlevel===this._zlevelList[0]?this._backgroundColor:null;if(R.__startIndex===R.__endIndex)R.clear(!1,V);else if(z===R.__startIndex){var Q=E[z];(!Q.incremental||!Q.notClear||C)&&R.clear(!1,V)}z===-1&&(console.error("For some unknown reason. drawIndex is -1"),z=R.__startIndex);for(var G=z;G<R.__endIndex;G++){var te=E[G];if(this._doPaintEl(te,R,C,P),te.__dirty=te.__dirtyText=!1,W){var $=Date.now()-U;if($>15)break}}R.__drawIndex=G,R.__drawIndex<R.__endIndex&&(B=!1),P.prevElClipPaths&&X.restore(),X.restore()}return n.wxa&&S.each(this._layers,function(le){le&&le.ctx&&le.ctx.draw&&le.ctx.draw()}),B},_doPaintEl:function(E,C,I,_){var F=C.ctx,R=E.transform;if((C.__dirty||I)&&!E.invisible&&E.style.opacity!==0&&!(R&&!R[0]&&!R[3])&&!(E.culling&&g(E,this._width,this._height))){var B=E.__clipPaths,M=_.prevElClipPaths;(!M||v(B,M))&&(M&&(F.restore(),_.prevElClipPaths=null,_.prevEl=null),B&&(F.save(),b(B,F),_.prevElClipPaths=B)),E.beforeBrush&&E.beforeBrush(F),E.brush(F,_.prevEl||null),_.prevEl=E,E.afterBrush&&E.afterBrush(F)}},getLayer:function(E,C){this._singleCanvas&&!this._needsManuallyCompositing&&(E=a);var I=this._layers[E];return I||(I=new d("zr_"+E,this,this.dpr),I.zlevel=E,I.__builtin__=!0,this._layerConfig[E]?S.merge(I,this._layerConfig[E],!0):this._layerConfig[E-e]&&S.merge(I,this._layerConfig[E-e],!0),C&&(I.virtual=C),this.insertLayer(E,I),I.initContext()),I},insertLayer:function(E,C){var I=this._layers,_=this._zlevelList,F=_.length,R=null,B=-1,M=this._domRoot;if(I[E]){A("ZLevel "+E+" has been used already");return}if(!s(C)){A("Layer of zlevel "+E+" is not valid");return}if(F>0&&E>_[0]){for(B=0;B<F-1&&!(_[B]<E&&_[B+1]>E);B++);R=I[_[B]]}if(_.splice(B+1,0,E),I[E]=C,!C.virtual)if(R){var X=R.dom;X.nextSibling?M.insertBefore(C.dom,X.nextSibling):M.appendChild(C.dom)}else M.firstChild?M.insertBefore(C.dom,M.firstChild):M.appendChild(C.dom)},eachLayer:function(E,C){var I=this._zlevelList,_,F;for(F=0;F<I.length;F++)_=I[F],E.call(C,this._layers[_],_)},eachBuiltinLayer:function(E,C){var I=this._zlevelList,_,F,R;for(R=0;R<I.length;R++)F=I[R],_=this._layers[F],_.__builtin__&&E.call(C,_,F)},eachOtherLayer:function(E,C){var I=this._zlevelList,_,F,R;for(R=0;R<I.length;R++)F=I[R],_=this._layers[F],_.__builtin__||E.call(C,_,F)},getLayers:function(){return this._layers},_updateLayerStatus:function(E){this.eachBuiltinLayer(function(P,z){P.__dirty=P.__used=!1});function C(P){F&&(F.__endIndex!==P&&(F.__dirty=!0),F.__endIndex=P)}if(this._singleCanvas)for(var I=1;I<E.length;I++){var _=E[I];if(_.zlevel!==E[I-1].zlevel||_.incremental){this._needsManuallyCompositing=!0;break}}for(var F=null,R=0,B,I=0;I<E.length;I++){var _=E[I],M=_.zlevel,X;B!==M&&(B=M,R=0),_.incremental?(X=this.getLayer(M+u,this._needsManuallyCompositing),X.incremental=!0,R=1):X=this.getLayer(M+(R>0?e:0),this._needsManuallyCompositing),X.__builtin__||A("ZLevel "+M+" has been used by unkown layer "+X.id),X!==F&&(X.__used=!0,X.__startIndex!==I&&(X.__dirty=!0),X.__startIndex=I,X.incremental?X.__drawIndex=-1:X.__drawIndex=I,C(I),F=X),_.__dirty&&(X.__dirty=!0,X.incremental&&X.__drawIndex<0&&(X.__drawIndex=I))}C(I),this.eachBuiltinLayer(function(P,z){!P.__used&&P.getElementCount()>0&&(P.__dirty=!0,P.__startIndex=P.__endIndex=P.__drawIndex=0),P.__dirty&&P.__drawIndex<0&&(P.__drawIndex=P.__startIndex)})},clear:function(){return this.eachBuiltinLayer(this._clearLayer),this},_clearLayer:function(E){E.clear()},setBackgroundColor:function(E){this._backgroundColor=E},configLayer:function(E,C){if(C){var I=this._layerConfig;I[E]?S.merge(I[E],C,!0):I[E]=C;for(var _=0;_<this._zlevelList.length;_++){var F=this._zlevelList[_];if(F===E||F===E+e){var R=this._layers[F];S.merge(R,I[E],!0)}}}},delLayer:function(E){var C=this._layers,I=this._zlevelList,_=C[E];if(!_)return;_.dom.parentNode.removeChild(_.dom),delete C[E],I.splice(S.indexOf(I,E),1)},resize:function(E,C){if(this._domRoot.style){var I=this._domRoot;I.style.display="none";var _=this._opts;if(E!=null&&(_.width=E),C!=null&&(_.height=C),E=this._getSize(0),C=this._getSize(1),I.style.display="",this._width!==E||C!==this._height){I.style.width=E+"px",I.style.height=C+"px";for(var F in this._layers)this._layers.hasOwnProperty(F)&&this._layers[F].resize(E,C);S.each(this._progressiveLayers,function(R){R.resize(E,C)}),this.refresh(!0)}this._width=E,this._height=C}else{if(E==null||C==null)return;this._width=E,this._height=C,this.getLayer(a).resize(E,C)}return this},clearLayer:function(E){var C=this._layers[E];C&&C.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(E){if(E=E||{},this._singleCanvas&&!this._compositeManually)return this._layers[a].dom;var C=new d("image",this,E.pixelRatio||this.dpr);if(C.initContext(),C.clear(!1,E.backgroundColor||this._backgroundColor),E.pixelRatio<=this.dpr){this.refresh();var I=C.dom.width,_=C.dom.height,F=C.ctx;this.eachLayer(function(P){P.__builtin__?F.drawImage(P.dom,0,0,I,_):P.renderToCanvas&&(C.ctx.save(),P.renderToCanvas(C.ctx),C.ctx.restore())})}else for(var R={},B=this.storage.getDisplayList(!0),M=0;M<B.length;M++){var X=B[M];this._doPaintEl(X,C,!0,R)}return C.dom},getWidth:function(){return this._width},getHeight:function(){return this._height},_getSize:function(E){var C=this._opts,I=["width","height"][E],_=["clientWidth","clientHeight"][E],F=["paddingLeft","paddingTop"][E],R=["paddingRight","paddingBottom"][E];if(C[I]!=null&&C[I]!=="auto")return parseFloat(C[I]);var B=this.root,M=document.defaultView.getComputedStyle(B);return(B[_]||r(M[I])||r(B.style[I]))-(r(M[F])||0)-(r(M[R])||0)|0},pathToImage:function(E,C){C=C||this.dpr;var I=document.createElement("canvas"),_=I.getContext("2d"),F=E.getBoundingRect(),R=E.style,B=R.shadowBlur*C,M=R.shadowOffsetX*C,X=R.shadowOffsetY*C,P=R.hasStroke()?R.lineWidth:0,z=Math.max(P/2,-M+B),W=Math.max(P/2,M+B),U=Math.max(P/2,-X+B),V=Math.max(P/2,X+B),Q=F.width+z+W,G=F.height+U+V;I.width=Q*C,I.height=G*C,_.scale(C,C),_.clearRect(0,0,Q,G),_.dpr=C;var te={position:E.position,rotation:E.rotation,scale:E.scale};E.position=[z-F.x,U-F.y],E.rotation=0,E.scale=[1,1],E.updateTransform(),E&&E.brush(_);var $=o,le=new $({style:{x:0,y:0,image:I}});return te.position!=null&&(le.position=E.position=te.position),te.rotation!=null&&(le.rotation=E.rotation=te.rotation),te.scale!=null&&(le.scale=E.scale=te.scale),le}};var T=x;k.exports=T},"7a+S":function(k,D,i){var y=i("bYtY"),p=i("bLfw"),S=i("YXkt"),A=i("4NO4"),m=p.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,o){this._data,this._names,this.mergeDefaultAndTheme(d,o),this._initData()},mergeOption:function(d){m.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||[],o=d.axisType,n=this._names=[];if(o==="category"){var t=[];y.each(l,function(u,r){var s=A.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=""),n.push(s+"")}),l=t}var a={category:"ordinal",time:"time"}[o]||"number",e=this._data=new S([{name:"value",type:a}],this);e.initData(l,n)},getData:function(){return this._data},getCategories:function(){if(this.get("axisType")==="category")return this._names.slice()}}),f=m;k.exports=f},"7aKB":function(k,D,i){var y=i("bYtY"),p=i("6GrX"),S=i("OELB");function A(w){return isNaN(w)?"-":(w=(w+"").split("."),w[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(w.length>1?"."+w[1]:""))}function m(w,x){return w=(w||"").toLowerCase().replace(/-(.)/g,function(T,O){return O.toUpperCase()}),x&&w&&(w=w.charAt(0).toUpperCase()+w.slice(1)),w}var f=y.normalizeCssArray,d=/([&<>"'])/g,l={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function o(w){return w==null?"":(w+"").replace(d,function(x,T){return l[T]})}var n=["a","b","c","d","e","f","g"],t=function(w,x){return"{"+w+(x==null?"":x)+"}"};function a(w,x,T){y.isArray(x)||(x=[x]);var O=x.length;if(!O)return"";for(var E=x[0].$vars||[],C=0;C<E.length;C++){var I=n[C];w=w.replace(t(I),t(I,0))}for(var _=0;_<O;_++)for(var F=0;F<E.length;F++){var R=x[_][E[F]];w=w.replace(t(n[F],_),T?o(R):R)}return w}function e(w,x,T){return y.each(x,function(O,E){w=w.replace("{"+E+"}",T?o(O):O)}),w}function u(w,x){w=y.isString(w)?{color:w,extraCssText:x}:w||{};var T=w.color,O=w.type,x=w.extraCssText,E=w.renderMode||"html",C=w.markerId||"X";return T?E==="html"?O==="subItem"?'<span style="display:inline-block;vertical-align:middle;margin-right:8px;margin-left:3px;border-radius:4px;width:4px;height:4px;background-color:'+o(T)+";"+(x||"")+'"></span>':'<span style="display:inline-block;margin-right:5px;border-radius:10px;width:10px;height:10px;background-color:'+o(T)+";"+(x||"")+'"></span>':{renderMode:E,content:"{marker"+C+"|} ",style:{color:T}}:""}function r(w,x){return w+="","0000".substr(0,x-w.length)+w}function s(w,x,T){(w==="week"||w==="month"||w==="quarter"||w==="half-year"||w==="year")&&(w=`MM-dd
yyyy`);var O=S.parseDate(x),E=T?"UTC":"",C=O["get"+E+"FullYear"](),I=O["get"+E+"Month"]()+1,_=O["get"+E+"Date"](),F=O["get"+E+"Hours"](),R=O["get"+E+"Minutes"](),B=O["get"+E+"Seconds"](),M=O["get"+E+"Milliseconds"]();return w=w.replace("MM",r(I,2)).replace("M",I).replace("yyyy",C).replace("yy",C%100).replace("dd",r(_,2)).replace("d",_).replace("hh",r(F,2)).replace("h",F).replace("mm",r(R,2)).replace("m",R).replace("ss",r(B,2)).replace("s",B).replace("SSS",r(M,3)),w}function c(w){return w&&w.charAt(0).toUpperCase()+w.substr(1)}var h=p.truncateText;function g(w){return p.getBoundingRect(w.text,w.font,w.textAlign,w.textVerticalAlign,w.textPadding,w.textLineHeight,w.rich,w.truncate)}function v(w,x,T,O,E,C,I,_){return p.getBoundingRect(w,x,T,O,E,_,C,I)}function b(w,x){if(x==="_blank"||x==="blank"){var T=window.open();T.opener=null,T.location=w}else window.open(w,x)}D.addCommas=A,D.toCamelCase=m,D.normalizeCssArray=f,D.encodeHTML=o,D.formatTpl=a,D.formatTplSimple=e,D.getTooltipMarker=u,D.formatTime=s,D.capitalFirst=c,D.truncateText=h,D.getTextBoundingRect=g,D.getTextRect=v,D.windowOpen=b},"7bkD":function(k,D,i){var y=i("bYtY");function p(S,A){A=A||{};var m=S.coordinateSystem,f=S.axis,d={},l=f.position,o=f.orient,n=m.getRect(),t=[n.x,n.x+n.width,n.y,n.y+n.height],a={horizontal:{top:t[2],bottom:t[3]},vertical:{left:t[0],right:t[1]}};d.position=[o==="vertical"?a.vertical[l]:t[0],o==="horizontal"?a.horizontal[l]:t[3]];var e={horizontal:0,vertical:1};d.rotation=Math.PI/2*e[o];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(A.labelInside,S.get("axisLabel.inside"))&&(d.labelDirection=-d.labelDirection);var r=A.rotate;return r==null&&(r=S.get("axisLabel.rotate")),d.labelRotation=l==="top"?-r:r,d.z2=1,d}D.layout=p},"7fqy":function(k,D){function i(y){var p=-1,S=Array(y.size);return y.forEach(function(A,m){S[++p]=[m,A]}),S}k.exports=i},"7hqr":function(k,D,i){var y=i("bYtY"),p=y.each,S=y.isString;function A(d,l,o){o=o||{};var n=o.byIndex,t=o.stackedCoordDimension,a=!!(d&&d.get("stack")),e,u,r,s;if(p(l,function(v,b){S(v)&&(l[b]=v={name:v}),a&&!v.isExtraCoord&&(!n&&!e&&v.ordinalMeta&&(e=v),!u&&v.type!=="ordinal"&&v.type!=="time"&&(!t||t===v.coordDim)&&(u=v))}),u&&!n&&!e&&(n=!0),u){r="__\0ecstackresult",s="__\0ecstackedover",e&&(e.createInvertedIndices=!0);var c=u.coordDim,h=u.type,g=0;p(l,function(v){v.coordDim===c&&g++}),l.push({name:r,coordDim:c,coordDimIndex:g,type:h,isExtraCoord:!0,isCalculationCoord:!0}),g++,l.push({name:s,coordDim:s,coordDimIndex:g,type:h,isExtraCoord:!0,isCalculationCoord:!0})}return{stackedDimension:u&&u.name,stackedByDimension:e&&e.name,isStackedByIndex:n,stackedOverDimension:s,stackResultDimension:r}}function m(d,l){return!!l&&l===d.getCalculationInfo("stackedDimension")}function f(d,l){return m(d,l)?d.getCalculationInfo("stackResultDimension"):l}D.enableDataStack=A,D.isDimensionStacked=m,D.getStackedDimension=f},"7mYs":function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("IwbS"),A=i("7aKB"),m=i("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(o,n,t){var a=this.group;a.removeAll();var e=o.coordinateSystem,u=e.getRangeInfo(),r=e.getOrient();this._renderDayRect(o,u,a),this._renderLines(o,u,r,a),this._renderYearText(o,u,r,a),this._renderMonthText(o,r,a),this._renderWeekText(o,u,r,a)},_renderDayRect:function(o,n,t){for(var a=o.coordinateSystem,e=o.getModel("itemStyle").getItemStyle(),u=a.getCellWidth(),r=a.getCellHeight(),s=n.start.time;s<=n.end.time;s=a.getNextNDay(s,1).time){var c=a.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(o,n,t,a){var e=this,u=o.coordinateSystem,r=o.getModel("splitLine.lineStyle").getLineStyle(),s=o.get("splitLine.show"),c=r.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var h=n.start,g=0;h.time<=n.end.time;g++){b(h.formatedDate),g===0&&(h=u.getDateInfo(n.start.y+"-"+n.start.m));var v=h.date;v.setMonth(v.getMonth()+1),h=u.getDateInfo(v)}b(u.getNextNDay(n.end.time,1).formatedDate);function b(w){e._firstDayOfMonth.push(u.getDateInfo(w)),e._firstDayPoints.push(u.dataToRect([w],!1).tl);var x=e._getLinePointsOfOneWeek(o,w,t);e._tlpoints.push(x[0]),e._blpoints.push(x[x.length-1]),s&&e._drawSplitline(x,r,a)}s&&this._drawSplitline(e._getEdgesPoints(e._tlpoints,c,t),r,a),s&&this._drawSplitline(e._getEdgesPoints(e._blpoints,c,t),r,a)},_getEdgesPoints:function(o,n,t){var a=[o[0].slice(),o[o.length-1].slice()],e=t==="horizontal"?0:1;return a[0][e]=a[0][e]-n/2,a[1][e]=a[1][e]+n/2,a},_drawSplitline:function(o,n,t){var a=new S.Polyline({z2:20,shape:{points:o},style:n});t.add(a)},_getLinePointsOfOneWeek:function(o,n,t){var a=o.coordinateSystem;n=a.getDateInfo(n);for(var e=[],u=0;u<7;u++){var r=a.getNextNDay(n.time,u),s=a.dataToRect([r.time],!1);e[2*r.day]=s.tl,e[2*r.day+1]=s[t==="horizontal"?"bl":"tr"]}return e},_formatterLabel:function(o,n){return typeof o=="string"&&o?A.formatTplSimple(o,n):typeof o=="function"?o(n):n.nameMap},_yearTextPositionControl:function(o,n,t,a,e){n=n.slice();var u=["center","bottom"];a==="bottom"?(n[1]+=e,u=["center","top"]):a==="left"?n[0]-=e:a==="right"?(n[0]+=e,u=["center","top"]):n[1]-=e;var r=0;return(a==="left"||a==="right")&&(r=Math.PI/2),{rotation:r,position:n,style:{textAlign:u[0],textVerticalAlign:u[1]}}},_renderYearText:function(o,n,t,a){var e=o.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,g=t==="horizontal"?0:1,v={top:[c,s[g][1]],bottom:[c,s[1-g][1]],left:[s[1-g][0],h],right:[s[g][0],h]},b=n.start.y;+n.end.y>+n.start.y&&(b=b+"-"+n.end.y);var w=e.get("formatter"),x={start:n.start.y,end:n.end.y,nameMap:b},T=this._formatterLabel(w,x),O=new S.Text({z2:30});S.setTextStyle(O.style,e,{text:T}),O.attr(this._yearTextPositionControl(O,v[r],t,r,u)),a.add(O)},_monthTextPositionControl:function(o,n,t,a,e){var u="left",r="top",s=o[0],c=o[1];return t==="horizontal"?(c=c+e,n&&(u="center"),a==="start"&&(r="bottom")):(s=s+e,n&&(r="middle"),a==="start"&&(u="right")),{x:s,y:c,textAlign:u,textVerticalAlign:r}},_renderMonthText:function(o,n,t){var a=o.getModel("monthLabel");if(!a.get("show"))return;var e=a.get("nameMap"),u=a.get("margin"),r=a.get("position"),s=a.get("align"),c=[this._tlpoints,this._blpoints];p.isString(e)&&(e=f[e.toUpperCase()]||[]);var h=r==="start"?0:1,g=n==="horizontal"?0:1;u=r==="start"?-u:u;for(var v=s==="center",b=0;b<c[h].length-1;b++){var w=c[h][b].slice(),x=this._firstDayOfMonth[b];if(v){var T=this._firstDayPoints[b];w[g]=(T[g]+c[0][b+1][g])/2}var O=a.get("formatter"),E=e[+x.m-1],C={yyyy:x.y,yy:(x.y+"").slice(2),MM:x.m,M:+x.m,nameMap:E},I=this._formatterLabel(O,C),_=new S.Text({z2:30});p.extend(S.setTextStyle(_.style,a,{text:I}),this._monthTextPositionControl(w,v,n,r,u)),t.add(_)}},_weekTextPositionControl:function(o,n,t,a,e){var u="center",r="middle",s=o[0],c=o[1],h=t==="start";return n==="horizontal"?(s=s+a+(h?1:-1)*e[0]/2,u=h?"right":"left"):(c=c+a+(h?1:-1)*e[1]/2,r=h?"bottom":"top"),{x:s,y:c,textAlign:u,textVerticalAlign:r}},_renderWeekText:function(o,n,t,a){var e=o.getModel("dayLabel");if(!e.get("show"))return;var u=o.coordinateSystem,r=e.get("position"),s=e.get("nameMap"),c=e.get("margin"),h=u.getFirstDayOfWeek();p.isString(s)&&(s=d[s.toUpperCase()]||[]);var g=u.getNextNDay(n.end.time,7-n.lweek).time,v=[u.getCellWidth(),u.getCellHeight()];c=m.parsePercent(c,v[t==="horizontal"?0:1]),r==="start"&&(g=u.getNextNDay(n.start.time,-(7+n.fweek)).time,c=-c);for(var b=0;b<7;b++){var w=u.getNextNDay(g,b),x=u.dataToRect([w.time],!1).center,T=b;T=Math.abs((b+h)%7);var O=new S.Text({z2:30});p.extend(S.setTextStyle(O.style,e,{text:s[T]}),this._weekTextPositionControl(x,t,r,c,v)),a.add(O)}}});k.exports=l},"7oTu":function(k,D,i){var y=i("IMiH"),p=i("QBsz"),S=p.applyTransform,A=y.CMD,m=[[],[],[]],f=Math.sqrt,d=Math.atan2;function l(o,n){var t=o.data,a,e,u,r,s,c,h=A.M,g=A.C,v=A.L,b=A.R,w=A.A,x=A.Q;for(u=0,r=0;u<t.length;){a=t[u++],r=u,e=0;switch(a){case h:e=1;break;case v:e=1;break;case g:e=3;break;case x:e=2;break;case w:var T=n[4],O=n[5],E=f(n[0]*n[0]+n[1]*n[1]),C=f(n[2]*n[2]+n[3]*n[3]),I=d(-n[1]/C,n[0]/E);t[u]*=E,t[u++]+=T,t[u]*=C,t[u++]+=O,t[u++]*=E,t[u++]*=C,t[u++]+=I,t[u++]+=I,u+=2,r=u;break;case b:c[0]=t[u++],c[1]=t[u++],S(c,c,n),t[r++]=c[0],t[r++]=c[1],c[0]+=t[u++],c[1]+=t[u++],S(c,c,n),t[r++]=c[0],t[r++]=c[1]}for(s=0;s<e;s++){var c=m[s];c[0]=t[u++],c[1]=t[u++],S(c,c,n),t[r++]=c[0],t[r++]=c[1]}}}k.exports=l},"7pVf":function(k,D,i){var y=i("ProS"),p=i("ZqQs");i("oE7X"),i("OUJF"),i("3X6L"),i("NH9N"),y.registerPreprocessor(p)},"7ph2":function(k,D){function i(S){return S instanceof Array||(S=[S,S]),S}var y="lineStyle.opacity".split("."),p={seriesType:"lines",reset:function(S,A,m){var f=i(S.get("symbol")),d=i(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 o(n,t){var a=n.getItemModel(t),e=i(a.getShallow("symbol",!0)),u=i(a.getShallow("symbolSize",!0)),r=a.get(y);e[0]&&n.setItemVisual(t,"fromSymbol",e[0]),e[1]&&n.setItemVisual(t,"toSymbol",e[1]),u[0]&&n.setItemVisual(t,"fromSymbolSize",u[0]),u[1]&&n.setItemVisual(t,"toSymbolSize",u[1]),n.setItemVisual(t,"opacity",r)}return{dataEach:l.hasItemOption?o:null}}};k.exports=p},"7uqq":function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("ProS"),A=i("bYtY"),m=i("AUH6"),f=i("+TT/"),d=i("OELB"),l=i("W4dC"),o=i("7DRL");function n(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 g=this.getBoundingRect(),v,b=u.get("layoutCenter"),w=u.get("layoutSize"),x=r.getWidth(),T=r.getHeight(),O=g.width/g.height*this.aspectScale,E=!1;b&&w&&(b=[d.parsePercent(b[0],x),d.parsePercent(b[1],T)],w=d.parsePercent(w,Math.min(x,T)),!isNaN(b[0])&&!isNaN(b[1])&&!isNaN(w)&&(E=!0));var C;if(E){var C={};O>1?(C.width=w,C.height=w/O):(C.height=w,C.width=w*O),C.y=b[1]-C.height/2,C.x=b[0]-C.width/2}else v=u.getBoxLayoutParams(),v.aspect=O,C=f.getLayoutRect(v,{width:x,height:T});this.setViewRect(C.x,C.y,C.width,C.height),this.setCenter(u.get("center")),this.setZoom(u.get("zoom"))}function t(u,r){A.each(r.get("geoCoord"),function(s,c){u.addGeoCoord(c,s)})}var a={dimensions:m.prototype.dimensions,create:function(u,r){var s=[];u.eachComponent("geo",function(h,g){var v=h.get("map"),b=h.get("aspectScale"),w=!0,x=o.retrieveMap(v);x&&x[0]&&x[0].type==="svg"?(b==null&&(b=1),w=!1):b==null&&(b=.75);var T=new m(v+g,v,h.get("nameMap"),w);T.aspectScale=b,T.zoomLimit=h.get("scaleLimit"),s.push(T),t(T,h),h.coordinateSystem=T,T.model=h,T.resize=n,T.resize(h,r)}),u.eachSeries(function(h){var g=h.get("coordinateSystem");if(g==="geo"){var v=h.get("geoIndex")||0;h.coordinateSystem=s[v]}});var c={};return u.eachSeriesByType("map",function(h){if(!h.getHostGeoModel()){var g=h.getMapType();c[g]=c[g]||[],c[g].push(h)}}),A.each(c,function(h,g){var v=A.map(h,function(w){return w.get("nameMap")}),b=new m(g,g,A.mergeAll(v));b.zoomLimit=A.retrieve.apply(null,A.map(h,function(w){return w.get("scaleLimit")})),s.push(b),b.resize=n,b.aspectScale=h[0].get("aspectScale"),b.resize(h[0],r),A.each(h,function(w){w.coordinateSystem=b,t(b,w)})}),s},getFilledRegions:function(u,r,s){for(var c=(u||[]).slice(),h=A.createHashMap(),g=0;g<c.length;g++)h.set(c[g].name,c[g]);var v=l.load(r,s);return A.each(v.regions,function(b){var w=b.name;!h.get(w)&&c.push({name:w})}),c}};S.registerCoordinateSystem("geo",a);var e=a;k.exports=e},"7yuC":function(k,D,i){var y=i("QBsz"),p=y.scaleAndAdd;function S(A,m,f){for(var d=f.rect,l=d.width,o=d.height,n=[d.x+l/2,d.y+o/2],t=f.gravity==null?.1:f.gravity,a=0;a<A.length;a++){var e=A[a];e.p||(e.p=y.create(l*(Math.random()-.5)+n[0],o*(Math.random()-.5)+n[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){A[s].fixed=!0},setUnfixed:function(s){A[s].fixed=!1},step:function(s){for(var c=[],h=A.length,g=0;g<m.length;g++){var v=m[g];if(v.ignoreForceLayout)continue;var b=v.n1,w=v.n2;y.sub(c,w.p,b.p);var x=y.len(c)-v.d,T=w.w/(b.w+w.w);isNaN(T)&&(T=0),y.normalize(c,c),!b.fixed&&p(b.p,b.p,c,T*x*r),!w.fixed&&p(w.p,w.p,c,-(1-T)*x*r)}for(var g=0;g<h;g++){var O=A[g];O.fixed||(y.sub(c,n,O.p),p(O.p,O.p,c,t*r))}for(var g=0;g<h;g++)for(var b=A[g],E=g+1;E<h;E++){var w=A[E];y.sub(c,w.p,b.p);var x=y.len(c);x===0&&(y.set(c,Math.random()-.5,Math.random()-.5),x=1);var C=(b.rep+w.rep)/x/x;!b.fixed&&p(b.pp,b.pp,c,C),!w.fixed&&p(w.pp,w.pp,c,-C)}for(var I=[],g=0;g<h;g++){var O=A[g];O.fixed||(y.sub(I,O.p,O.pp),p(O.p,O.p,I,r),y.copy(O.pp,O.p))}r=r*.992,s&&s(A,m,r<.01)}}}D.forceLayout=S},"8+yF":function(k,D,i){"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},p={lookup:function(A){if(A>=32&&A<=255)return A;var m=y[A];return m!==void 0?m:16777216|A}};D.default=p},"8CQX":function(k,D,i){"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=a,D.getKeysym=e;var p=n(i("mHUz")),S=n(i("8+yF")),A=n(i("6Qwc")),m=n(i("gIYZ")),f=n(i("mTgk")),d=o(i("GdRQ"));function l(){if(typeof WeakMap!="function")return null;var u=new WeakMap;return l=function(){return u},u}function o(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 g=c?Object.getOwnPropertyDescriptor(u,h):null;g&&(g.get||g.set)?Object.defineProperty(s,h,g):s[h]=u[h]}return s.default=u,r&&r.set(u,s),s}function n(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 A.default){var r=A.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 a(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 m.default?m.default[r]:u.charCode?String.fromCharCode(u.charCode):"Unidentified"}function e(u){var r=a(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 p.default.XK_Meta_L;if(h==="AltRight")return p.default.XK_Meta_R}if(r==="Clear"){var g=t(u);if(g==="NumLock")return p.default.XK_Num_Lock}return f.default[r][s]}if(r.length!==1)return null;var v=r.charCodeAt();return v?S.default.lookup(v):null}},"8EBN":function(k,D,i){(function(y){y(i("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 p=0;p<y.modeInfo.length;p++){var S=y.modeInfo[p];S.mimes&&(S.mime=S.mimes[0])}y.findModeByMIME=function(A){A=A.toLowerCase();for(var m=0;m<y.modeInfo.length;m++){var f=y.modeInfo[m];if(f.mime==A)return f;if(f.mimes){for(var d=0;d<f.mimes.length;d++)if(f.mimes[d]==A)return f}}if(/\+xml$/.test(A))return y.findModeByMIME("application/xml");if(/\+json$/.test(A))return y.findModeByMIME("application/json")},y.findModeByExtension=function(A){A=A.toLowerCase();for(var m=0;m<y.modeInfo.length;m++){var f=y.modeInfo[m];if(f.ext){for(var d=0;d<f.ext.length;d++)if(f.ext[d]==A)return f}}},y.findModeByFileName=function(A){for(var m=0;m<y.modeInfo.length;m++){var f=y.modeInfo[m];if(f.file&&f.file.test(A))return f}var d=A.lastIndexOf("."),l=d>-1&&A.substring(d+1,A.length);if(l)return y.findModeByExtension(l)},y.findModeByName=function(A){A=A.toLowerCase();for(var m=0;m<y.modeInfo.length;m++){var f=y.modeInfo[m];if(f.name.toLowerCase()==A)return f;if(f.alias){for(var d=0;d<f.alias.length;d++)if(f.alias[d].toLowerCase()==A)return f}}}})},"8IMR":function(k,D,i){"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(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("6Hfg"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},"8K/p":function(k,D,i){"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 p=f(i("Lo0S")),S=A(i("ItS6"));function A(t){return t&&t.__esModule?t:{default:t}}function m(){if(typeof WeakMap!="function")return null;var t=new WeakMap;return m=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 a=m();if(a&&a.has(t))return a.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,a&&a.set(t,e),e}function d(t,a){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}function l(t,a){for(var e=0;e<a.length;e++){var u=a[e];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function o(t,a,e){return a&&l(t.prototype,a),e&&l(t,e),t}var n=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 a=0;a<4;a++)this._zlibs[a]=new S.default}return o(t,[{key:"decodeRect",value:function(e,u,r,s,c,h,g){if(this._ctl===null){if(c.rQwait("TIGHT compression-control",1))return!1;this._ctl=c.rQshift8();for(var v=0;v<4;v++)this._ctl>>v&1&&(this._zlibs[v].reset(),p.Info("Reset zlib stream "+v));this._ctl=this._ctl>>4}var b;if(this._ctl===8)b=this._fillRect(e,u,r,s,c,h,g);else if(this._ctl===9)b=this._jpegRect(e,u,r,s,c,h,g);else if(this._ctl===10)b=this._pngRect(e,u,r,s,c,h,g);else if((this._ctl&128)==0)b=this._basicRect(this._ctl,e,u,r,s,c,h,g);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,g){if(c.rQwait("TIGHT",3))return!1;var v=c.rQi,b=c.rQ;return h.fillRect(e,u,r,s,[b[v+2],b[v+1],b[v]],!1),c.rQskipBytes(3),!0}},{key:"_jpegRect",value:function(e,u,r,s,c,h,g){var v=this._readData(c);return v===null?!1:(h.imageRect(e,u,r,s,"image/jpeg",v),!0)}},{key:"_pngRect",value:function(e,u,r,s,c,h,g){throw new Error("PNG received in standard Tight rect")}},{key:"_basicRect",value:function(e,u,r,s,c,h,g,v){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,w;switch(this._filter){case 0:w=this._copyFilter(b,u,r,s,c,h,g,v);break;case 1:w=this._paletteFilter(b,u,r,s,c,h,g,v);break;case 2:w=this._gradientFilter(b,u,r,s,c,h,g,v);break;default:throw new Error("Illegal tight filter received (ctl: "+this._filter+")")}return w&&(this._filter=null),w}},{key:"_copyFilter",value:function(e,u,r,s,c,h,g,v){var b=s*c*3,w;if(b<12){if(h.rQwait("TIGHT",b))return!1;w=h.rQshiftBytes(b)}else{if(w=this._readData(h),w===null)return!1;this._zlibs[e].setInput(w),w=this._zlibs[e].inflate(b),this._zlibs[e].setInput(null)}return g.blitRgbImage(u,r,s,c,w,0,!1),!0}},{key:"_paletteFilter",value:function(e,u,r,s,c,h,g,v){if(this._numColors===0){if(h.rQwait("TIGHT palette",1))return!1;var b=h.rQpeek8()+1,w=b*3;if(h.rQwait("TIGHT palette",1+w))return!1;this._numColors=b,h.rQskipBytes(1),h.rQshiftTo(this._palette,w)}var x=this._numColors<=2?1:8,T=Math.floor((s*x+7)/8),O=T*c,E;if(O<12){if(h.rQwait("TIGHT",O))return!1;E=h.rQshiftBytes(O)}else{if(E=this._readData(h),E===null)return!1;this._zlibs[e].setInput(E),E=this._zlibs[e].inflate(O),this._zlibs[e].setInput(null)}return this._numColors==2?this._monoRect(u,r,s,c,E,this._palette,g):this._paletteRect(u,r,s,c,E,this._palette,g),this._numColors=0,!0}},{key:"_monoRect",value:function(e,u,r,s,c,h,g){for(var v=this._getScratchBuffer(r*s*4),b=Math.floor((r+7)/8),w=Math.floor(r/8),x=0;x<s;x++){var T=void 0,O=void 0,E=void 0;for(E=0;E<w;E++)for(var C=7;C>=0;C--)T=(x*r+E*8+7-C)*4,O=(c[x*b+E]>>C&1)*3,v[T]=h[O],v[T+1]=h[O+1],v[T+2]=h[O+2],v[T+3]=255;for(var I=7;I>=8-r%8;I--)T=(x*r+E*8+7-I)*4,O=(c[x*b+E]>>I&1)*3,v[T]=h[O],v[T+1]=h[O+1],v[T+2]=h[O+2],v[T+3]=255}g.blitRgbxImage(e,u,r,s,v,0,!1)}},{key:"_paletteRect",value:function(e,u,r,s,c,h,g){for(var v=this._getScratchBuffer(r*s*4),b=r*s*4,w=0,x=0;w<b;w+=4,x++){var T=c[x]*3;v[w]=h[T],v[w+1]=h[T+1],v[w+2]=h[T+2],v[w+3]=255}g.blitRgbxImage(e,u,r,s,v,0,!1)}},{key:"_gradientFilter",value:function(e,u,r,s,c,h,g,v){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=n},"8SMY":function(k,D,i){var y=i("n4Lv"),p=y.prepareDataCoordInfo,S=y.getStackedOnPoint;function A(f,d){var l=[];return d.diff(f).add(function(o){l.push({cmd:"+",idx:o})}).update(function(o,n){l.push({cmd:"=",idx:n,idx1:o})}).remove(function(o){l.push({cmd:"-",idx:o})}).execute(),l}function m(f,d,l,o,n,t,a,e){for(var u=A(f,d),r=[],s=[],c=[],h=[],g=[],v=[],b=[],w=p(n,d,a),x=p(t,f,e),T=0;T<u.length;T++){var O=u[T],E=!0;switch(O.cmd){case"=":var C=f.getItemLayout(O.idx),I=d.getItemLayout(O.idx1);(isNaN(C[0])||isNaN(C[1]))&&(C=I.slice()),r.push(C),s.push(I),c.push(l[O.idx]),h.push(o[O.idx1]),b.push(d.getRawIndex(O.idx1));break;case"+":var _=O.idx;r.push(n.dataToPoint([d.get(w.dataDimsForPoint[0],_),d.get(w.dataDimsForPoint[1],_)])),s.push(d.getItemLayout(_).slice()),c.push(S(w,n,d,_)),h.push(o[_]),b.push(d.getRawIndex(_));break;case"-":var _=O.idx,F=f.getRawIndex(_);F!==_?(r.push(f.getItemLayout(_)),s.push(t.dataToPoint([f.get(x.dataDimsForPoint[0],_),f.get(x.dataDimsForPoint[1],_)])),c.push(l[_]),h.push(S(x,t,f,_)),b.push(F)):E=!1}E&&(g.push(O),v.push(v.length))}v.sort(function(z,W){return b[z]-b[W]});for(var R=[],B=[],M=[],X=[],P=[],T=0;T<v.length;T++){var _=v[T];R[T]=r[_],B[T]=s[_],M[T]=c[_],X[T]=h[_],P[T]=g[_]}return{current:R,next:B,stackedOnCurrent:M,stackedOnNext:X,status:P}}k.exports=m},"8Skl":function(k,D,i){"use strict";var y=i("VTBJ"),p=i("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"},A=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:A}))};f.displayName="DownOutlined";var d=D.a=p.forwardRef(f)},"8Th4":function(k,D,i){var y=i("3LNs"),p=i("/y7N"),S=i("7bkD"),A=i("Znkb"),m=["x","y"],f=["width","height"],d=y.extend({makeElOption:function(a,e,u,r,s){var c=u.axis,h=c.coordinateSystem,g=n(h,1-o(c)),v=h.dataToPoint(e)[0],b=r.get("type");if(b&&b!=="none"){var w=p.buildElStyle(r),x=l[b](c,v,g);x.style=w,a.graphicKey=x.type,a.pointer=x}var T=S.layout(u);p.buildCartesianSingleLabelElOption(e,a,T,u,r,s)},getHandleTransform:function(a,e,u){var r=S.layout(e,{labelInside:!1});return r.labelMargin=u.get("handle.margin"),{position:p.getTransformedPosition(e.axis,a,r),rotation:r.rotation+(r.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(a,e,u,r){var s=u.axis,c=s.coordinateSystem,h=o(s),g=n(c,h),v=a.position;v[h]+=e[h],v[h]=Math.min(g[1],v[h]),v[h]=Math.max(g[0],v[h]);var b=n(c,1-h),w=(b[1]+b[0])/2,x=[w,w];return x[h]=v[h],{position:v,rotation:a.rotation,cursorPoint:x,tooltipOption:{verticalAlign:"middle"}}}}),l={line:function(a,e,u){var r=p.makeLineShape([e,u[0]],[e,u[1]],o(a));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(a,e,u){var r=a.getBandWidth(),s=u[1]-u[0];return{type:"Rect",shape:p.makeRectShape([e-r/2,u[0]],[r,s],o(a))}}};function o(a){return a.isHorizontal()?0:1}function n(a,e){var u=a.getRect();return[u[m[e]],u[m[e]]+u[f[e]]]}A.registerAxisPointerClass("SingleAxisPointer",d);var t=d;k.exports=t},"8Uz6":function(k,D,i){var y=i("hNWo"),p=i("+TT/"),S=p.mergeLayoutParam,A=p.getLayoutParams,m=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,o,n,t){var a=A(l);m.superCall(this,"init",l,o,n,t),f(this,l,a)},mergeOption:function(l,o){m.superCall(this,"mergeOption",l,o),f(this,this.option,l)}});function f(l,o,n){var t=l.getOrient(),a=[1,1];a[t.index]=0,S(o,n,{type:"box",ignoreSize:a})}var d=m;k.exports=d},"8X+K":function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),A=i("4mN7"),m=A.fromPoints,f=i("9wZj"),d=i("FBjb"),l=i("8SMY"),o=i("IwbS"),n=i("4NO4"),t=i("1NG9"),a=t.Polyline,e=t.Polygon,u=i("6Ic6"),r=i("n4Lv"),s=r.prepareDataCoordInfo,c=r.getStackedOnPoint,h=i("sK/D"),g=h.createGridClipPath,v=h.createPolarClipPath;function b(R,B){if(R.length!==B.length)return;for(var M=0;M<R.length;M++){var X=R[M],P=B[M];if(X[0]!==P[0]||X[1]!==P[1])return}return!0}function w(R,B){var M=[],X=[],P=[],z=[];return m(R,M,X),m(B,P,z),Math.max(Math.abs(M[0]-P[0]),Math.abs(M[1]-P[1]),Math.abs(X[0]-z[0]),Math.abs(X[1]-z[1]))}function x(R){return typeof R=="number"?R:R?.5:0}function T(R,B,M){if(!M.valueDim)return[];for(var X=[],P=0,z=B.count();P<z;P++)X.push(c(M,R,B,P));return X}function O(R,B,M){for(var X=B.getBaseAxis(),P=X.dim==="x"||X.dim==="radius"?0:1,z=[],W=0;W<R.length-1;W++){var U=R[W+1],V=R[W];z.push(V);var Q=[];switch(M){case"end":Q[P]=U[P],Q[1-P]=V[1-P],z.push(Q);break;case"middle":var G=(V[P]+U[P])/2,te=[];Q[P]=te[P]=G,Q[1-P]=V[1-P],te[1-P]=U[1-P],z.push(Q),z.push(te);break;default:Q[P]=V[P],Q[1-P]=U[1-P],z.push(Q)}}return R[W]&&z.push(R[W]),z}function E(R,B){var M=R.getVisual("visualMeta");if(!M||!M.length||!R.count())return;if(B.type!=="cartesian2d")return;for(var X,P,z=M.length-1;z>=0;z--){var W=M[z].dimension,U=R.dimensions[W],V=R.getDimensionInfo(U);if(X=V&&V.coordDim,X==="x"||X==="y"){P=M[z];break}}if(!P)return;var Q=B.getAxis(X),G=S.map(P.stops,function(Je){return{coord:Q.toGlobalCoord(Q.dataToCoord(Je.value)),color:Je.color}}),te=G.length,$=P.outerColors.slice();te&&G[0].coord>G[te-1].coord&&(G.reverse(),$.reverse());var le=10,re=G[0].coord-le,Se=G[te-1].coord+le,Re=Se-re;if(Re<.001)return"transparent";S.each(G,function(Je){Je.offset=(Je.coord-re)/Re}),G.push({offset:te?G[te-1].offset:.5,color:$[1]||"transparent"}),G.unshift({offset:te?G[0].offset:.5,color:$[0]||"transparent"});var Pe=new o.LinearGradient(0,0,0,0,G,!0);return Pe[X]=re,Pe[X+"2"]=Se,Pe}function C(R,B,M){var X=R.get("showAllSymbol"),P=X==="auto";if(X&&!P)return;var z=M.getAxesByScale("ordinal")[0];if(!z)return;if(P&&I(z,B))return;var W=B.mapDimension(z.dim),U={};return S.each(z.getViewLabels(),function(V){U[V.tickValue]=1}),function(V){return!U.hasOwnProperty(B.get(W,V))}}function I(R,B){var M=R.getExtent(),X=Math.abs(M[1]-M[0])/R.scale.count();isNaN(X)&&(X=0);for(var P=B.count(),z=Math.max(1,Math.round(P/5)),W=0;W<P;W+=z)if(d.getSymbolSize(B,W)[R.isHorizontal()?1:0]*1.5>X)return!1;return!0}function _(R,B,M){if(R.type==="cartesian2d"){var X=R.getBaseAxis().isHorizontal(),P=g(R,B,M);if(!M.get("clip",!0)){var z=P.shape,W=Math.max(z.width,z.height);X?(z.y-=W,z.height+=W*2):(z.x-=W,z.width+=W*2)}return P}else return v(R,B,M)}var F=u.extend({type:"line",init:function(){var R=new o.Group,B=new f;this.group.add(B.group),this._symbolDraw=B,this._lineGroup=R},render:function(R,B,M){var X=R.coordinateSystem,P=this.group,z=R.getData(),W=R.getModel("lineStyle"),U=R.getModel("areaStyle"),V=z.mapArray(z.getItemLayout),Q=X.type==="polar",G=this._coordSys,te=this._symbolDraw,$=this._polyline,le=this._polygon,re=this._lineGroup,Se=R.get("animation"),Re=!U.isEmpty(),Pe=U.get("origin"),Je=s(X,z,Pe),Ve=T(X,z,Je),ct=R.get("showSymbol"),Ue=ct&&!Q&&C(R,z,X),ue=this._data;ue&&ue.eachItemGraphicEl(function(be,Ce){be.__temp&&(P.remove(be),ue.setItemGraphicEl(Ce,null))}),ct||te.remove(),P.add(re);var rt=!Q&&R.get("step"),ge;X&&X.getArea&&R.get("clip",!0)&&(ge=X.getArea(),ge.width!=null?(ge.x-=.1,ge.y-=.1,ge.width+=.2,ge.height+=.2):ge.r0&&(ge.r0-=.5,ge.r1+=.5)),this._clipShapeForSymbol=ge,$&&G.type===X.type&&rt===this._step?(Re&&!le?le=this._newPolygon(V,Ve,X,Se):le&&!Re&&(re.remove(le),le=this._polygon=null),re.setClipPath(_(X,!1,R)),ct&&te.updateData(z,{isIgnore:Ue,clipShape:ge}),z.eachItemGraphicEl(function(be){be.stopAnimation(!0)}),(!b(this._stackedOnPoints,Ve)||!b(this._points,V))&&(Se?this._updateAnimation(z,Ve,X,M,rt,Pe):(rt&&(V=O(V,X,rt),Ve=O(Ve,X,rt)),$.setShape({points:V}),le&&le.setShape({points:V,stackedOnPoints:Ve})))):(ct&&te.updateData(z,{isIgnore:Ue,clipShape:ge}),rt&&(V=O(V,X,rt),Ve=O(Ve,X,rt)),$=this._newPolyline(V,X,Se),Re&&(le=this._newPolygon(V,Ve,X,Se)),re.setClipPath(_(X,!0,R)));var Z=E(z,X)||z.getVisual("color");$.useStyle(S.defaults(W.getLineStyle(),{fill:"none",stroke:Z,lineJoin:"bevel"}));var Y=R.get("smooth");if(Y=x(R.get("smooth")),$.setShape({smooth:Y,smoothMonotone:R.get("smoothMonotone"),connectNulls:R.get("connectNulls")}),le){var ee=z.getCalculationInfo("stackedOnSeries"),fe=0;le.useStyle(S.defaults(U.getAreaStyle(),{fill:Z,opacity:.7,lineJoin:"bevel"})),ee&&(fe=x(ee.get("smooth"))),le.setShape({smooth:Y,stackedOnSmooth:fe,smoothMonotone:R.get("smoothMonotone"),connectNulls:R.get("connectNulls")})}this._data=z,this._coordSys=X,this._stackedOnPoints=Ve,this._points=V,this._step=rt,this._valueOrigin=Pe},dispose:function(){},highlight:function(R,B,M,X){var P=R.getData(),z=n.queryDataIndex(P,X);if(!(z instanceof Array)&&z!=null&&z>=0){var W=P.getItemGraphicEl(z);if(!W){var U=P.getItemLayout(z);if(!U)return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(U[0],U[1]))return;W=new d(P,z),W.position=U,W.setZ(R.get("zlevel"),R.get("z")),W.ignore=isNaN(U[0])||isNaN(U[1]),W.__temp=!0,P.setItemGraphicEl(z,W),W.stopSymbolAnimation(!0),this.group.add(W)}W.highlight()}else u.prototype.highlight.call(this,R,B,M,X)},downplay:function(R,B,M,X){var P=R.getData(),z=n.queryDataIndex(P,X);if(z!=null&&z>=0){var W=P.getItemGraphicEl(z);W&&(W.__temp?(P.setItemGraphicEl(z,null),this.group.remove(W)):W.downplay())}else u.prototype.downplay.call(this,R,B,M,X)},_newPolyline:function(R){var B=this._polyline;return B&&this._lineGroup.remove(B),B=new a({shape:{points:R},silent:!0,z2:10}),this._lineGroup.add(B),this._polyline=B,B},_newPolygon:function(R,B){var M=this._polygon;return M&&this._lineGroup.remove(M),M=new e({shape:{points:R,stackedOnPoints:B},silent:!0}),this._lineGroup.add(M),this._polygon=M,M},_updateAnimation:function(R,B,M,X,P,z){var W=this._polyline,U=this._polygon,V=R.hostModel,Q=l(this._data,R,this._stackedOnPoints,B,this._coordSys,M,this._valueOrigin,z),G=Q.current,te=Q.stackedOnCurrent,$=Q.next,le=Q.stackedOnNext;if(P&&(G=O(Q.current,M,P),te=O(Q.stackedOnCurrent,M,P),$=O(Q.next,M,P),le=O(Q.stackedOnNext,M,P)),w(G,$)>3e3||U&&w(te,le)>3e3){W.setShape({points:$}),U&&U.setShape({points:$,stackedOnPoints:le});return}W.shape.__points=Q.current,W.shape.points=G,o.updateProps(W,{shape:{points:$}},V),U&&(U.setShape({points:G,stackedOnPoints:te}),o.updateProps(U,{shape:{points:$,stackedOnPoints:le}},V));for(var re=[],Se=Q.status,Re=0;Re<Se.length;Re++){var Pe=Se[Re].cmd;if(Pe==="="){var Je=R.getItemGraphicEl(Se[Re].idx1);Je&&re.push({el:Je,ptIdx:Re})}}W.animators&&W.animators.length&&W.animators[0].during(function(){for(var Ve=0;Ve<re.length;Ve++){var ct=re[Ve].el;ct.attr("position",W.shape.__points[re[Ve].ptIdx])}})},remove:function(R){var B=this.group,M=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),M&&M.eachItemGraphicEl(function(X,P){X.__temp&&(B.remove(X),M.setItemGraphicEl(P,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._data=null}});k.exports=F},"8XDt":function(k,D,i){i("qH13");var y=i("aX58"),p=y.registerPainter,S=i("6fms");p("vml",S)},"8XRh":function(k,D,i){"use strict";i.d(D,"a",function(){return wt});var y=i("rePB"),p=i("VTBJ"),S=i("ODXe"),A=i("U8pU"),m=i("TSYQ"),f=i.n(m),d=i("m+aA"),l=i("c+Xe"),o=i("q1tI"),n=i("Ff2n"),t=["children"],a=o.createContext({});function e(Dt){var Tt=Dt.children,Bt=Object(n.a)(Dt,t);return o.createElement(a.Provider,{value:Bt},Tt)}var u=i("1OyB"),r=i("vuIU"),s=i("Ji7U"),c=i("LK+K"),h=function(Dt){Object(s.a)(Bt,Dt);var Tt=Object(c.a)(Bt);function Bt(){return Object(u.a)(this,Bt),Tt.apply(this,arguments)}return Object(r.a)(Bt,[{key:"render",value:function(){return this.props.children}}]),Bt}(o.Component),g=h,v=i("dm2S"),b="none",w="appear",x="enter",T="leave",O="none",E="prepare",C="start",I="active",_="end",F="prepared",R=i("MNnm");function B(Dt,Tt){var Bt={};return Bt[Dt.toLowerCase()]=Tt.toLowerCase(),Bt["Webkit".concat(Dt)]="webkit".concat(Tt),Bt["Moz".concat(Dt)]="moz".concat(Tt),Bt["ms".concat(Dt)]="MS".concat(Tt),Bt["O".concat(Dt)]="o".concat(Tt.toLowerCase()),Bt}function M(Dt,Tt){var Bt={animationend:B("Animation","AnimationEnd"),transitionend:B("Transition","TransitionEnd")};return Dt&&("AnimationEvent"in Tt||delete Bt.animationend.animation,"TransitionEvent"in Tt||delete Bt.transitionend.transition),Bt}var X=M(Object(R.a)(),typeof window!="undefined"?window:{}),P={};if(Object(R.a)()){var z=document.createElement("div");P=z.style}var W={};function U(Dt){if(W[Dt])return W[Dt];var Tt=X[Dt];if(Tt)for(var Bt=Object.keys(Tt),Ke=Bt.length,de=0;de<Ke;de+=1){var oe=Bt[de];if(Object.prototype.hasOwnProperty.call(Tt,oe)&&oe in P)return W[Dt]=Tt[oe],W[Dt]}return""}var V=U("animationend"),Q=U("transitionend"),G=!!(V&&Q),te=V||"animationend",$=Q||"transitionend";function le(Dt,Tt){if(!Dt)return null;if(Object(A.a)(Dt)==="object"){var Bt=Tt.replace(/-\w/g,function(Ke){return Ke[1].toUpperCase()});return Dt[Bt]}return"".concat(Dt,"-").concat(Tt)}var re=function(Dt){var Tt=Object(o.useRef)(),Bt=Object(o.useRef)(Dt);Bt.current=Dt;var Ke=o.useCallback(function(lt){Bt.current(lt)},[]);function de(lt){lt&&(lt.removeEventListener($,Ke),lt.removeEventListener(te,Ke))}function oe(lt){Tt.current&&Tt.current!==lt&&de(Tt.current),lt&&lt!==Tt.current&&(lt.addEventListener($,Ke),lt.addEventListener(te,Ke),Tt.current=lt)}return o.useEffect(function(){return function(){de(Tt.current)}},[]),[oe,de]},Se=Object(R.a)()?o.useLayoutEffect:o.useEffect,Re=Se,Pe=i("wgJM"),Je=function(){var Dt=o.useRef(null);function Tt(){Pe.a.cancel(Dt.current)}function Bt(Ke){var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;Tt();var oe=Object(Pe.a)(function(){de<=1?Ke({isCanceled:function(){return oe!==Dt.current}}):Bt(Ke,de-1)});Dt.current=oe}return o.useEffect(function(){return function(){Tt()}},[]),[Bt,Tt]},Ve=[E,C,I,_],ct=[E,F],Ue=!1,ue=!0;function rt(Dt){return Dt===I||Dt===_}var ge=function(Dt,Tt,Bt){var Ke=Object(v.a)(O),de=Object(S.a)(Ke,2),oe=de[0],lt=de[1],qe=Je(),pe=Object(S.a)(qe,2),Kt=pe[0],hr=pe[1];function gt(){lt(E,!0)}var nr=Tt?ct:Ve;return Re(function(){if(oe!==O&&oe!==_){var mr=nr.indexOf(oe),cn=nr[mr+1],Ar=Bt(oe);Ar===Ue?lt(cn,!0):cn&&Kt(function(xr){function qt(){if(xr.isCanceled())return;lt(cn,!0)}Ar===!0?qt():Promise.resolve(Ar).then(qt)})}},[Dt,oe]),o.useEffect(function(){return function(){hr()}},[]),[gt,oe]};function Z(Dt,Tt,Bt,Ke){var de=Ke.motionEnter,oe=de===void 0?!0:de,lt=Ke.motionAppear,qe=lt===void 0?!0:lt,pe=Ke.motionLeave,Kt=pe===void 0?!0:pe,hr=Ke.motionDeadline,gt=Ke.motionLeaveImmediately,nr=Ke.onAppearPrepare,mr=Ke.onEnterPrepare,cn=Ke.onLeavePrepare,Ar=Ke.onAppearStart,xr=Ke.onEnterStart,qt=Ke.onLeaveStart,ar=Ke.onAppearActive,Et=Ke.onEnterActive,en=Ke.onLeaveActive,Mn=Ke.onAppearEnd,Yn=Ke.onEnterEnd,ci=Ke.onLeaveEnd,Vi=Ke.onVisibleChanged,jn=Object(v.a)(),Qn=Object(S.a)(jn,2),$t=Qn[0],Ot=Qn[1],ke=Object(v.a)(b),Me=Object(S.a)(ke,2),Be=Me[0],at=Me[1],At=Object(v.a)(null),Ct=Object(S.a)(At,2),Yt=Ct[0],Pr=Ct[1],qr=Object(o.useRef)(!1),An=Object(o.useRef)(null);function Gt(){return Bt()}var vt=Object(o.useRef)(!1);function bt(){at(b,!0),Pr(null,!0)}function fr(pi){var Ci=Gt();if(pi&&!pi.deadline&&pi.target!==Ci)return;var Ni=vt.current,zi;Be===w&&Ni?zi=Mn==null?void 0:Mn(Ci,pi):Be===x&&Ni?zi=Yn==null?void 0:Yn(Ci,pi):Be===T&&Ni&&(zi=ci==null?void 0:ci(Ci,pi)),Be!==b&&Ni&&zi!==!1&&bt()}var Jt=re(fr),Ut=Object(S.a)(Jt,1),er=Ut[0],Mt=function(Ci){var Ni,zi,it;switch(Ci){case w:return Ni={},Object(y.a)(Ni,E,nr),Object(y.a)(Ni,C,Ar),Object(y.a)(Ni,I,ar),Ni;case x:return zi={},Object(y.a)(zi,E,mr),Object(y.a)(zi,C,xr),Object(y.a)(zi,I,Et),zi;case T:return it={},Object(y.a)(it,E,cn),Object(y.a)(it,C,qt),Object(y.a)(it,I,en),it;default:return{}}},Zt=o.useMemo(function(){return Mt(Be)},[Be]),Hr=ge(Be,!Dt,function(pi){if(pi===E){var Ci=Zt[E];return Ci?Ci(Gt()):Ue}if(dn in Zt){var Ni;Pr(((Ni=Zt[dn])===null||Ni===void 0?void 0:Ni.call(Zt,Gt(),null))||null)}return dn===I&&(er(Gt()),hr>0&&(clearTimeout(An.current),An.current=setTimeout(function(){fr({deadline:!0})},hr))),dn===F&&bt(),ue}),Ir=Object(S.a)(Hr,2),Lr=Ir[0],dn=Ir[1],gn=rt(dn);vt.current=gn,Re(function(){Ot(Tt);var pi=qr.current;qr.current=!0;var Ci;!pi&&Tt&&qe&&(Ci=w),pi&&Tt&&oe&&(Ci=x),(pi&&!Tt&&Kt||!pi&&gt&&!Tt&&Kt)&&(Ci=T);var Ni=Mt(Ci);Ci&&(Dt||Ni[E])?(at(Ci),Lr()):at(b)},[Tt]),Object(o.useEffect)(function(){(Be===w&&!qe||Be===x&&!oe||Be===T&&!Kt)&&at(b)},[qe,oe,Kt]),Object(o.useEffect)(function(){return function(){qr.current=!1,clearTimeout(An.current)}},[]);var ri=o.useRef(!1);Object(o.useEffect)(function(){$t&&(ri.current=!0),$t!==void 0&&Be===b&&((ri.current||$t)&&(Vi==null||Vi($t)),ri.current=!0)},[$t,Be]);var Zn=Yt;return Zt[E]&&dn===C&&(Zn=Object(p.a)({transition:"none"},Zn)),[Be,dn,Zn,$t!=null?$t:Tt]}function Y(Dt){var Tt=Dt;Object(A.a)(Dt)==="object"&&(Tt=Dt.transitionSupport);function Bt(de,oe){return!!(de.motionName&&Tt&&oe!==!1)}var Ke=o.forwardRef(function(de,oe){var lt=de.visible,qe=lt===void 0?!0:lt,pe=de.removeOnLeave,Kt=pe===void 0?!0:pe,hr=de.forceRender,gt=de.children,nr=de.motionName,mr=de.leavedClassName,cn=de.eventProps,Ar=o.useContext(a),xr=Ar.motion,qt=Bt(de,xr),ar=Object(o.useRef)(),Et=Object(o.useRef)();function en(){try{return ar.current instanceof HTMLElement?ar.current:Object(d.a)(Et.current)}catch(Pr){return null}}var Mn=Z(qt,qe,en,de),Yn=Object(S.a)(Mn,4),ci=Yn[0],Vi=Yn[1],jn=Yn[2],Qn=Yn[3],$t=o.useRef(Qn);Qn&&($t.current=!0);var Ot=o.useCallback(function(Pr){ar.current=Pr,Object(l.b)(oe,Pr)},[oe]),ke,Me=Object(p.a)(Object(p.a)({},cn),{},{visible:qe});if(!gt)ke=null;else if(ci===b)Qn?ke=gt(Object(p.a)({},Me),Ot):!Kt&&$t.current&&mr?ke=gt(Object(p.a)(Object(p.a)({},Me),{},{className:mr}),Ot):hr||!Kt&&!mr?ke=gt(Object(p.a)(Object(p.a)({},Me),{},{style:{display:"none"}}),Ot):ke=null;else{var Be,at;Vi===E?at="prepare":rt(Vi)?at="active":Vi===C&&(at="start");var At=le(nr,"".concat(ci,"-").concat(at));ke=gt(Object(p.a)(Object(p.a)({},Me),{},{className:f()(le(nr,ci),(Be={},Object(y.a)(Be,At,At&&at),Object(y.a)(Be,nr,typeof nr=="string"),Be)),style:jn}),Ot)}if(o.isValidElement(ke)&&Object(l.c)(ke)){var Ct=ke,Yt=Ct.ref;Yt||(ke=o.cloneElement(ke,{ref:Ot}))}return o.createElement(g,{ref:Et},ke)});return Ke.displayName="CSSMotion",Ke}var ee=Y(G),fe=i("wx14"),be=i("JX7q"),Ce="add",Te="keep",he="remove",ye="removed";function Ie(Dt){var Tt;return Dt&&Object(A.a)(Dt)==="object"&&"key"in Dt?Tt=Dt:Tt={key:Dt},Object(p.a)(Object(p.a)({},Tt),{},{key:String(Tt.key)})}function tt(){var Dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Dt.map(Ie)}function pt(){var Dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Bt=[],Ke=0,de=Tt.length,oe=tt(Dt),lt=tt(Tt);oe.forEach(function(Kt){for(var hr=!1,gt=Ke;gt<de;gt+=1){var nr=lt[gt];if(nr.key===Kt.key){Ke<gt&&(Bt=Bt.concat(lt.slice(Ke,gt).map(function(mr){return Object(p.a)(Object(p.a)({},mr),{},{status:Ce})})),Ke=gt),Bt.push(Object(p.a)(Object(p.a)({},nr),{},{status:Te})),Ke+=1,hr=!0;break}}hr||Bt.push(Object(p.a)(Object(p.a)({},Kt),{},{status:he}))}),Ke<de&&(Bt=Bt.concat(lt.slice(Ke).map(function(Kt){return Object(p.a)(Object(p.a)({},Kt),{},{status:Ce})})));var qe={};Bt.forEach(function(Kt){var hr=Kt.key;qe[hr]=(qe[hr]||0)+1});var pe=Object.keys(qe).filter(function(Kt){return qe[Kt]>1});return pe.forEach(function(Kt){Bt=Bt.filter(function(hr){var gt=hr.key,nr=hr.status;return gt!==Kt||nr!==he}),Bt.forEach(function(hr){hr.key===Kt&&(hr.status=Te)})}),Bt}var st=["component","children","onVisibleChanged","onAllRemoved"],Fe=["status"],ft=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function et(Dt){var Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ee,Bt=function(Ke){Object(s.a)(oe,Ke);var de=Object(c.a)(oe);function oe(){var lt;Object(u.a)(this,oe);for(var qe=arguments.length,pe=new Array(qe),Kt=0;Kt<qe;Kt++)pe[Kt]=arguments[Kt];return lt=de.call.apply(de,[this].concat(pe)),Object(y.a)(Object(be.a)(lt),"state",{keyEntities:[]}),Object(y.a)(Object(be.a)(lt),"removeKey",function(hr){var gt=lt.state.keyEntities,nr=gt.map(function(mr){return mr.key!==hr?mr:Object(p.a)(Object(p.a)({},mr),{},{status:ye})});return lt.setState({keyEntities:nr}),nr.filter(function(mr){var cn=mr.status;return cn!==ye}).length}),lt}return Object(r.a)(oe,[{key:"render",value:function(){var qe=this,pe=this.state.keyEntities,Kt=this.props,hr=Kt.component,gt=Kt.children,nr=Kt.onVisibleChanged,mr=Kt.onAllRemoved,cn=Object(n.a)(Kt,st),Ar=hr||o.Fragment,xr={};return ft.forEach(function(qt){xr[qt]=cn[qt],delete cn[qt]}),delete cn.keys,o.createElement(Ar,cn,pe.map(function(qt,ar){var Et=qt.status,en=Object(n.a)(qt,Fe),Mn=Et===Ce||Et===Te;return o.createElement(Tt,Object(fe.a)({},xr,{key:en.key,visible:Mn,eventProps:en,onVisibleChanged:function(ci){if(nr==null||nr(ci,{key:en.key}),!ci){var Vi=qe.removeKey(en.key);Vi===0&&mr&&mr()}}}),function(Yn,ci){return gt(Object(p.a)(Object(p.a)({},Yn),{},{index:ar}),ci)})}))}}],[{key:"getDerivedStateFromProps",value:function(qe,pe){var Kt=qe.keys,hr=pe.keyEntities,gt=tt(Kt),nr=pt(hr,gt);return{keyEntities:nr.filter(function(mr){var cn=hr.find(function(Ar){var xr=Ar.key;return mr.key===xr});return!(cn&&cn.status===ye&&mr.status===he)})}}}]),oe}(o.Component);return Object(y.a)(Bt,"defaultProps",{component:"div"}),Bt}var wt=et(G),Ht=D.b=ee},"8hn6":function(k,D){var i="#eee",y=function(){return{axisLine:{lineStyle:{color:i}},axisTick:{lineStyle:{color:i}},axisLabel:{textStyle:{color:i}},splitLine:{lineStyle:{type:"dashed",color:"#aaa"}},splitArea:{areaStyle:{color:i}}}},p=["#dd6b66","#759aa0","#e69d87","#8dc1a9","#ea7e53","#eedd78","#73a373","#73b9bc","#7289ab","#91ca8c","#f49f42"],S={color:p,backgroundColor:"#333",tooltip:{axisPointer:{lineStyle:{color:i},crossStyle:{color:i},label:{color:"#000"}}},legend:{textStyle:{color:i}},textStyle:{color:i},title:{textStyle:{color:i}},toolbox:{iconStyle:{normal:{borderColor:i}}},dataZoom:{textStyle:{color:i}},visualMap:{textStyle:{color:i}},timeline:{lineStyle:{color:i},itemStyle:{normal:{color:p[1]}},label:{normal:{textStyle:{color:i}}},controlStyle:{normal:{color:i,borderColor:i}}},timeAxis:y(),logAxis:y(),valueAxis:y(),categoryAxis:y(),line:{symbol:"circle"},graph:{color:p},gauge:{title:{textStyle:{color:i}}},candlestick:{itemStyle:{normal:{color:"#FD1050",color0:"#0CF49B",borderColor:"#FD1050",borderColor0:"#0CF49B"}}}};S.categoryAxis.splitLine.show=!1;var A=S;k.exports=A},"8nMs":function(k,D,i){var y=i("bYtY"),p=i("IwbS"),S=i("+rIm"),A=i("Znkb"),m=i("AVZG"),f=i("WN+l"),d=f.rectCoordAxisBuildSplitArea,l=f.rectCoordAxisHandleRemove,o=["axisLine","axisTickLabel","axisName"],n=["splitArea","splitLine","minorSplitLine"],t=A.extend({type:"cartesianAxis",axisPointerClass:"CartesianAxisPointer",render:function(a,e,u,r){this.group.removeAll();var s=this._axisGroup;if(this._axisGroup=new p.Group,this.group.add(this._axisGroup),!a.get("show"))return;var c=a.getCoordSysModel(),h=m.layout(c,a),g=new S(a,h);y.each(o,g.add,g),this._axisGroup.add(g.getGroup()),y.each(n,function(v){a.get(v+".show")&&this["_"+v](a,c)},this),p.groupTransition(s,this._axisGroup,a),t.superCall(this,"render",a,e,u,r)},remove:function(){l(this)},_splitLine:function(a,e){var u=a.axis;if(u.scale.isBlank())return;var r=a.getModel("splitLine"),s=r.getModel("lineStyle"),c=s.get("color");c=y.isArray(c)?c:[c];for(var h=e.coordinateSystem.getRect(),g=u.isHorizontal(),v=0,b=u.getTicksCoords({tickModel:r}),w=[],x=[],T=s.getLineStyle(),O=0;O<b.length;O++){var E=u.toGlobalCoord(b[O].coord);g?(w[0]=E,w[1]=h.y,x[0]=E,x[1]=h.y+h.height):(w[0]=h.x,w[1]=E,x[0]=h.x+h.width,x[1]=E);var C=v++%c.length,I=b[O].tickValue;this._axisGroup.add(new p.Line({anid:I!=null?"line_"+b[O].tickValue:null,subPixelOptimize:!0,shape:{x1:w[0],y1:w[1],x2:x[0],y2:x[1]},style:y.defaults({stroke:c[C]},T),silent:!0}))}},_minorSplitLine:function(a,e){var u=a.axis,r=a.getModel("minorSplitLine"),s=r.getModel("lineStyle"),c=e.coordinateSystem.getRect(),h=u.isHorizontal(),g=u.getMinorTicksCoords();if(!g.length)return;for(var v=[],b=[],w=s.getLineStyle(),x=0;x<g.length;x++)for(var T=0;T<g[x].length;T++){var O=u.toGlobalCoord(g[x][T].coord);h?(v[0]=O,v[1]=c.y,b[0]=O,b[1]=c.y+c.height):(v[0]=c.x,v[1]=O,b[0]=c.x+c.width,b[1]=O),this._axisGroup.add(new p.Line({anid:"minor_line_"+g[x][T].tickValue,subPixelOptimize:!0,shape:{x1:v[0],y1:v[1],x2:b[0],y2:b[1]},style:w,silent:!0}))}},_splitArea:function(a,e){d(this,this._axisGroup,a,e)}});t.extend({type:"xAxis"}),t.extend({type:"yAxis"})},"8nly":function(k,D,i){var y=i("mFDi"),p=i("4mN7"),S=i("QBsz"),A=i("BlVb");function m(d,l,o){if(this.name=d,this.geometries=l,o)o=[o[0],o[1]];else{var n=this.getBoundingRect();o=[n.x+n.width/2,n.y+n.height/2]}this.center=o}m.prototype={constructor:m,properties:null,getBoundingRect:function(){var d=this._rect;if(d)return d;for(var l=Number.MAX_VALUE,o=[l,l],n=[-l,-l],t=[],a=[],e=this.geometries,u=0;u<e.length;u++){if(e[u].type!=="polygon")continue;var r=e[u].exterior;p.fromPoints(r,t,a),S.min(o,o,t),S.max(n,n,a)}return u===0&&(o[0]=o[1]=n[0]=n[1]=0),this._rect=new y(o[0],o[1],n[0]-o[0],n[1]-o[1])},contain:function(d){var l=this.getBoundingRect(),o=this.geometries;if(!l.contain(d[0],d[1]))return!1;e:for(var n=0,t=o.length;n<t;n++){if(o[n].type!=="polygon")continue;var a=o[n].exterior,e=o[n].interiors;if(A.contain(a,d[0],d[1])){for(var u=0;u<(e?e.length:0);u++)if(A.contain(e[u]))continue e;return!0}}return!1},transformTo:function(d,l,o,n){var t=this.getBoundingRect(),a=t.width/t.height;o?n||(n=o/a):o=a*n;for(var e=new y(d,l,o,n),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,g=0;g<c.length;g++)S.applyTransform(c[g],c[g],u);for(var v=0;v<(h?h.length:0);v++)for(var g=0;g<h[v].length;g++)S.applyTransform(h[v][g],h[v][g],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 m(d,this.geometries,this.center);return l._rect=this._rect,l.transformTo=null,l}};var f=m;k.exports=f},"8txm":function(k,D,i){},"8waO":function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("iLNv"),A=i("ZWlE");i("hJvP"),i("IXyC"),i("xRUu");var m=5;y.extendComponentView({type:"parallel",render:function(l,o,n){this._model=l,this._api=n,this._handlers||(this._handlers={},p.each(f,function(t,a){n.getZr().on(a,this._handlers[a]=p.bind(t,this))},this)),S.createOrUpdate(this,"_throttledDispatchExpand",l.get("axisExpandRate"),"fixRate")},dispose:function(l,o){p.each(this._handlers,function(n,t){o.getZr().off(t,n)}),this._handlers=null},_throttledDispatchExpand:function(l){this._dispatchExpand(l)},_dispatchExpand:function(l){l&&this._api.dispatchAction(p.extend({type:"parallelAxisExpand"},l))}});var f={mousedown:function(l){d(this,"click")&&(this._mouseDownPoint=[l.offsetX,l.offsetY])},mouseup:function(l){var o=this._mouseDownPoint;if(d(this,"click")&&o){var n=[l.offsetX,l.offsetY],t=Math.pow(o[0]-n[0],2)+Math.pow(o[1]-n[1],2);if(t>m)return;var a=this._model.coordinateSystem.getSlidedAxisExpandWindow([l.offsetX,l.offsetY]);a.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:a.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(l){if(this._mouseDownPoint||!d(this,"mousemove"))return;var o=this._model,n=o.coordinateSystem.getSlidedAxisExpandWindow([l.offsetX,l.offsetY]),t=n.behavior;t==="jump"&&this._throttledDispatchExpand.debounceNextCall(o.get("axisExpandDebounce")),this._throttledDispatchExpand(t==="none"?null:{axisExpandWindow:n.axisExpandWindow,animation:t==="jump"?null:!1})}};function d(l,o){var n=l._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===o}y.registerPreprocessor(A)},"8x+h":function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("ProS"),A=i("bYtY"),m=i("K4ya"),f=i("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,a){var e=this.option;!a&&m.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=A.map(t,function(a){return o(this.option,a)},this)},setBrushOption:function(t){this.brushOption=o(this.option,t),this.brushType=this.brushOption.brushType}});function o(t,a){return A.merge({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new f(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},a,!0)}var n=l;k.exports=n},"8z0m":function(k,D,i){"use strict";var y=i("lSNA"),p=i.n(y),S=i("RIqP"),A=i.n(S),m=i("pVnL"),f=i.n(m),d=i("J4zp"),l=i.n(d),o=i("q1tI"),n=i.n(o),t=i("TSYQ"),a=i.n(t);function e(Ar,xr){var qt="cannot "+Ar.method+" "+Ar.action+" "+xr.status+"'",ar=new Error(qt);return ar.status=xr.status,ar.method=Ar.method,ar.url=Ar.action,ar}function u(Ar){var xr=Ar.responseText||Ar.response;if(!xr)return xr;try{return JSON.parse(xr)}catch(qt){return xr}}function r(Ar){var xr=new XMLHttpRequest;Ar.onProgress&&xr.upload&&(xr.upload.onprogress=function(en){en.total>0&&(en.percent=en.loaded/en.total*100),Ar.onProgress(en)});var qt=new FormData;Ar.data&&Object.keys(Ar.data).forEach(function(Et){var en=Ar.data[Et];if(Array.isArray(en)){en.forEach(function(Mn){qt.append(Et+"[]",Mn)});return}qt.append(Et,Ar.data[Et])}),Ar.file instanceof Blob?qt.append(Ar.filename,Ar.file,Ar.file.name):qt.append(Ar.filename,Ar.file),xr.onerror=function(en){Ar.onError(en)},xr.onload=function(){return xr.status<200||xr.status>=300?Ar.onError(e(Ar,xr),u(xr)):Ar.onSuccess(u(xr),xr)},xr.open(Ar.method,Ar.action,!0),Ar.withCredentials&&"withCredentials"in xr&&(xr.withCredentials=!0);var ar=Ar.headers||{};return ar["X-Requested-With"]!==null&&xr.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(ar).forEach(function(Et){ar[Et]!==null&&xr.setRequestHeader(Et,ar[Et])}),xr.send(qt),{abort:function(){xr.abort()}}}var s=+new Date,c=0;function h(){return"rc-upload-"+s+"-"+ ++c}function g(Ar,xr){return Ar.indexOf(xr,Ar.length-xr.length)!==-1}var v=function(Ar,xr){if(Ar&&xr){var qt=Array.isArray(xr)?xr:xr.split(","),ar=Ar.name||"",Et=Ar.type||"",en=Et.replace(/\/.*$/,"");return qt.some(function(Mn){var Yn=Mn.trim();return Yn.charAt(0)==="."?g(ar.toLowerCase(),Yn.toLowerCase()):/\/\*$/.test(Yn)?en===Yn.replace(/\/.*$/,""):Et===Yn})}return!0};function b(Ar,xr){var qt=Ar.createReader(),ar=[];function Et(){qt.readEntries(function(en){var Mn=Array.prototype.slice.apply(en);ar=ar.concat(Mn);var Yn=!Mn.length;Yn?xr(ar):Et()})}Et()}var w=function(xr,qt,ar){var Et=function en(Mn,Yn){Yn=Yn||"",Mn.isFile?Mn.file(function(ci){ar(ci)&&(Mn.fullPath&&!ci.webkitRelativePath&&(Object.defineProperties(ci,{webkitRelativePath:{writable:!0}}),ci.webkitRelativePath=Mn.fullPath.replace(/^\//,""),Object.defineProperties(ci,{webkitRelativePath:{writable:!1}})),qt([ci]))}):Mn.isDirectory&&b(Mn,function(ci){ci.forEach(function(Vi){en(Vi,""+Yn+Mn.name+"/")})})};xr.forEach(function(en){Et(en.webkitGetAsEntry())})},x=w,T=Object.assign||function(Ar){for(var xr=1;xr<arguments.length;xr++){var qt=arguments[xr];for(var ar in qt)Object.prototype.hasOwnProperty.call(qt,ar)&&(Ar[ar]=qt[ar])}return Ar},O=function(){function Ar(xr,qt){var ar=[],Et=!0,en=!1,Mn=void 0;try{for(var Yn=xr[Symbol.iterator](),ci;!(Et=(ci=Yn.next()).done)&&!(ar.push(ci.value),qt&&ar.length===qt);Et=!0);}catch(Vi){en=!0,Mn=Vi}finally{try{!Et&&Yn.return&&Yn.return()}finally{if(en)throw Mn}}return ar}return function(xr,qt){if(Array.isArray(xr))return xr;if(Symbol.iterator in Object(xr))return Ar(xr,qt);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),E=function(){function Ar(xr,qt){for(var ar=0;ar<qt.length;ar++){var Et=qt[ar];Et.enumerable=Et.enumerable||!1,Et.configurable=!0,"value"in Et&&(Et.writable=!0),Object.defineProperty(xr,Et.key,Et)}}return function(xr,qt,ar){return qt&&Ar(xr.prototype,qt),ar&&Ar(xr,ar),xr}}();function C(Ar,xr,qt){return xr in Ar?Object.defineProperty(Ar,xr,{value:qt,enumerable:!0,configurable:!0,writable:!0}):Ar[xr]=qt,Ar}function I(Ar,xr){var qt={};for(var ar in Ar){if(xr.indexOf(ar)>=0)continue;if(!Object.prototype.hasOwnProperty.call(Ar,ar))continue;qt[ar]=Ar[ar]}return qt}function _(Ar,xr){if(!(Ar instanceof xr))throw new TypeError("Cannot call a class as a function")}function F(Ar,xr){if(!Ar)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return xr&&(typeof xr=="object"||typeof xr=="function")?xr:Ar}function R(Ar,xr){if(typeof xr!="function"&&xr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof xr);Ar.prototype=Object.create(xr&&xr.prototype,{constructor:{value:Ar,enumerable:!1,writable:!0,configurable:!0}}),xr&&(Object.setPrototypeOf?Object.setPrototypeOf(Ar,xr):Ar.__proto__=xr)}var B=function(xr){return Object.keys(xr).reduce(function(qt,ar){return(ar.substr(0,5)==="data-"||ar.substr(0,5)==="aria-"||ar==="role")&&(qt[ar]=xr[ar]),qt},{})},M=function(Ar){R(xr,Ar);function xr(){var qt,ar,Et,en;_(this,xr);for(var Mn=arguments.length,Yn=Array(Mn),ci=0;ci<Mn;ci++)Yn[ci]=arguments[ci];return en=(ar=(Et=F(this,(qt=xr.__proto__||Object.getPrototypeOf(xr)).call.apply(qt,[this].concat(Yn))),Et),Et.state={uid:h()},Et.reqs={},Et.onChange=function(Vi){var jn=Vi.target.files;Et.uploadFiles(jn),Et.reset()},Et.onClick=function(Vi){var jn=Et.fileInput;if(!jn)return;var Qn=Et.props,$t=Qn.children,Ot=Qn.onClick;$t&&$t.type==="button"&&(jn.parentNode.focus(),jn.parentNode.querySelector("button").blur()),jn.click(),Ot&&Ot(Vi)},Et.onKeyDown=function(Vi){Vi.key==="Enter"&&Et.onClick()},Et.onFileDrop=function(Vi){var jn=Et.props.multiple;if(Vi.preventDefault(),Vi.type==="dragover")return;if(Et.props.directory)x(Array.prototype.slice.call(Vi.dataTransfer.items),Et.uploadFiles,function($t){return v($t,Et.props.accept)});else{var Qn=Array.prototype.slice.call(Vi.dataTransfer.files).filter(function($t){return v($t,Et.props.accept)});jn===!1&&(Qn=Qn.slice(0,1)),Et.uploadFiles(Qn)}},Et.uploadFiles=function(Vi){var jn=Array.prototype.slice.call(Vi);jn.map(function(Qn){return Qn.uid=h(),Qn}).forEach(function(Qn){Et.upload(Qn,jn)})},Et.saveFileInput=function(Vi){Et.fileInput=Vi},ar),F(Et,en)}return E(xr,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(ar,Et){var en=this,Mn=this.props;if(!Mn.beforeUpload)return setTimeout(function(){return en.post(ar)},0);var Yn=Mn.beforeUpload(ar,Et);Yn&&Yn.then?Yn.then(function(ci){var Vi=Object.prototype.toString.call(ci);return Vi==="[object File]"||Vi==="[object Blob]"?en.post(ci):en.post(ar)}).catch(function(ci){console.log(ci)}):Yn!==!1&&setTimeout(function(){return en.post(ar)},0);return}},{key:"post",value:function(ar){var Et=this;if(!this._isMounted)return;var en=this.props,Mn=en.onStart,Yn=en.onProgress,ci=en.transformFile,Vi=ci===void 0?function(jn){return jn}:ci;new Promise(function(jn){var Qn=en.action;return typeof Qn=="function"&&(Qn=Qn(ar)),jn(Qn)}).then(function(jn){var Qn=ar.uid,$t=en.customRequest||r,Ot=Promise.resolve(Vi(ar)).then(function(ke){var Me=en.data;return typeof Me=="function"&&(Me=Me(ke)),Promise.all([ke,Me])}).catch(function(ke){console.error(ke)});Ot.then(function(ke){var Me=O(ke,2),Be=Me[0],at=Me[1],At={action:jn,filename:en.name,data:at,file:Be,headers:en.headers,withCredentials:en.withCredentials,method:en.method||"post",onProgress:Yn?function(Ct){Yn(Ct,ar)}:null,onSuccess:function(Yt,Pr){delete Et.reqs[Qn],en.onSuccess(Yt,ar,Pr)},onError:function(Yt,Pr){delete Et.reqs[Qn],en.onError(Yt,Pr,ar)}};Mn(ar),Et.reqs[Qn]=$t(At)})})}},{key:"reset",value:function(){this.setState({uid:h()})}},{key:"abort",value:function(ar){var Et=this.reqs;if(ar){var en=ar;ar&&ar.uid&&(en=ar.uid),Et[en]&&Et[en].abort&&Et[en].abort(),delete Et[en]}else Object.keys(Et).forEach(function(Mn){Et[Mn]&&Et[Mn].abort&&Et[Mn].abort(),delete Et[Mn]})}},{key:"render",value:function(){var ar,Et=this.props,en=Et.component,Mn=Et.prefixCls,Yn=Et.className,ci=Et.disabled,Vi=Et.id,jn=Et.style,Qn=Et.multiple,$t=Et.accept,Ot=Et.children,ke=Et.directory,Me=Et.openFileDialogOnClick,Be=Et.onMouseEnter,at=Et.onMouseLeave,At=I(Et,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),Ct=a()((ar={},C(ar,Mn,!0),C(ar,Mn+"-disabled",ci),C(ar,Yn,Yn),ar)),Yt=ci?{}:{onClick:Me?this.onClick:function(){},onKeyDown:Me?this.onKeyDown:function(){},onMouseEnter:Be,onMouseLeave:at,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return n.a.createElement(en,T({},Yt,{className:Ct,role:"button",style:jn}),n.a.createElement("input",T({},B(At),{id:Vi,type:"file",ref:this.saveFileInput,onClick:function(qr){return qr.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:$t,directory:ke?"directory":null,webkitdirectory:ke?"webkitdirectory":null,multiple:Qn,onChange:this.onChange})),Ot)}}]),xr}(o.Component),X=M,P=Object.assign||function(Ar){for(var xr=1;xr<arguments.length;xr++){var qt=arguments[xr];for(var ar in qt)Object.prototype.hasOwnProperty.call(qt,ar)&&(Ar[ar]=qt[ar])}return Ar},z=function(){function Ar(xr,qt){for(var ar=0;ar<qt.length;ar++){var Et=qt[ar];Et.enumerable=Et.enumerable||!1,Et.configurable=!0,"value"in Et&&(Et.writable=!0),Object.defineProperty(xr,Et.key,Et)}}return function(xr,qt,ar){return qt&&Ar(xr.prototype,qt),ar&&Ar(xr,ar),xr}}();function W(Ar,xr){if(!(Ar instanceof xr))throw new TypeError("Cannot call a class as a function")}function U(Ar,xr){if(!Ar)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return xr&&(typeof xr=="object"||typeof xr=="function")?xr:Ar}function V(Ar,xr){if(typeof xr!="function"&&xr!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof xr);Ar.prototype=Object.create(xr&&xr.prototype,{constructor:{value:Ar,enumerable:!1,writable:!0,configurable:!0}}),xr&&(Object.setPrototypeOf?Object.setPrototypeOf(Ar,xr):Ar.__proto__=xr)}function Q(){}var G=function(Ar){V(xr,Ar);function xr(){var qt,ar,Et,en;W(this,xr);for(var Mn=arguments.length,Yn=Array(Mn),ci=0;ci<Mn;ci++)Yn[ci]=arguments[ci];return en=(ar=(Et=U(this,(qt=xr.__proto__||Object.getPrototypeOf(xr)).call.apply(qt,[this].concat(Yn))),Et),Et.saveUploader=function(Vi){Et.uploader=Vi},ar),U(Et,en)}return z(xr,[{key:"abort",value:function(ar){this.uploader.abort(ar)}},{key:"render",value:function(){return n.a.createElement(X,P({},this.props,{ref:this.saveUploader}))}}]),xr}(o.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,$=te,le=function(Ar,xr){var qt={};for(var ar in Ar)Object.prototype.hasOwnProperty.call(Ar,ar)&&xr.indexOf(ar)<0&&(qt[ar]=Ar[ar]);if(Ar!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Et=0,ar=Object.getOwnPropertySymbols(Ar);Et<ar.length;Et++)xr.indexOf(ar[Et])<0&&Object.prototype.propertyIsEnumerable.call(Ar,ar[Et])&&(qt[ar[Et]]=Ar[ar[Et]]);return qt},re=function(xr,qt){var ar=xr.style,Et=xr.height,en=le(xr,["style","height"]);return o.createElement(mr,f()({ref:qt},en,{type:"drag",style:f()(f()({},ar),{height:Et})}))},Se=o.forwardRef(re);Se.displayName="Dragger";var Re=Se,Pe=i("UmKh"),Je=i("gZBC"),Ve=i.n(Je),ct=i("+d4F"),Ue=i.n(ct),ue=i("XAae"),rt=i.n(ue),ge=i("6xvX"),Z=i.n(ge),Y=i("qPY4"),ee=i.n(Y),fe=i("QB+1"),be=i.n(fe),Ce=i("Qs3X"),Te=i.n(Ce),he=i("0n0R");function ye(){return!0}function Ie(Ar){return f()(f()({},Ar),{lastModified:Ar.lastModified,lastModifiedDate:Ar.lastModifiedDate,name:Ar.name,size:Ar.size,type:Ar.type,uid:Ar.uid,percent:0,originFileObj:Ar})}function tt(Ar,xr){var qt=Ar.uid!==void 0?"uid":"name";return xr.filter(function(ar){return ar[qt]===Ar[qt]})[0]}function pt(Ar,xr){var qt=Ar.uid!==void 0?"uid":"name",ar=xr.filter(function(Et){return Et[qt]!==Ar[qt]});return ar.length===xr.length?null:ar}var st=function(){var xr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",qt=xr.split("/"),ar=qt[qt.length-1],Et=ar.split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(Et)||[""])[0]},Fe=function(xr){return xr.indexOf("image/")===0},ft=function(xr){if(xr.type&&!xr.thumbUrl)return Fe(xr.type);var qt=xr.thumbUrl||xr.url,ar=st(qt);return/^data:image\//.test(qt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i.test(ar)?!0:/^data:/.test(qt)?!1:!ar},et=200;function wt(Ar){return new Promise(function(xr){if(!Ar.type||!Fe(Ar.type)){xr("");return}var qt=document.createElement("canvas");qt.width=et,qt.height=et,qt.style.cssText="position: fixed; left: 0; top: 0; width: ".concat(et,"px; height: ").concat(et,"px; z-index: 9999; display: none;"),document.body.appendChild(qt);var ar=qt.getContext("2d"),Et=new Image;Et.onload=function(){var en=Et.width,Mn=Et.height,Yn=et,ci=et,Vi=0,jn=0;en<Mn?(ci=Mn*(et/en),jn=-(ci-Yn)/2):(Yn=en*(et/Mn),Vi=-(Yn-ci)/2),ar.drawImage(Et,Vi,jn,Yn,ci);var Qn=qt.toDataURL();document.body.removeChild(qt),xr(Qn)},Et.src=window.URL.createObjectURL(Ar)})}var Ht=i("3S7+"),Dt=i("CFYs"),Tt=i("H84U"),Bt=i("2/Rp"),Ke=i("hkKa"),de=function(xr,qt){var ar,Et=xr.listType,en=xr.previewFile,Mn=xr.onPreview,Yn=xr.onDownload,ci=xr.onRemove,Vi=xr.locale,jn=xr.iconRender,Qn=xr.isImageUrl,$t=xr.prefixCls,Ot=xr.items,ke=Ot===void 0?[]:Ot,Me=xr.showPreviewIcon,Be=xr.showRemoveIcon,at=xr.showDownloadIcon,At=xr.removeIcon,Ct=xr.downloadIcon,Yt=xr.progress,Pr=Object(Ke.a)();o.useEffect(function(){if(Et!=="picture"&&Et!=="picture-card")return;(ke||[]).forEach(function(Ir){if(typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(Ir.originFileObj instanceof File||Ir.originFileObj instanceof Blob)||Ir.thumbUrl!==void 0)return;Ir.thumbUrl="",en&&en(Ir.originFileObj).then(function(Lr){Ir.thumbUrl=Lr||"",Pr()})})},[Et,ke,en]);var qr=function(Lr,dn){return Mn?(dn.preventDefault(),Mn(Lr)):void 0},An=function(Lr){typeof Yn=="function"?Yn(Lr):Lr.url&&window.open(Lr.url)},Gt=function(Lr){ci&&ci(Lr)},vt=function(Lr){if(jn)return jn(Lr,Et);var dn=Lr.status==="uploading",gn=Qn&&Qn(Lr)?o.createElement(rt.a,null):o.createElement(Z.a,null),ri=dn?o.createElement(Ve.a,null):o.createElement(Ue.a,null);return Et==="picture"?ri=dn?o.createElement(Ve.a,null):gn:Et==="picture-card"&&(ri=dn?Vi.uploading:gn),ri},bt=function(Lr,dn,gn,ri){var Zn={type:"text",size:"small",title:ri,onClick:function(Ni){dn(),Object(he.b)(Lr)&&Lr.props.onClick&&Lr.props.onClick(Ni)},className:"".concat(gn,"-list-item-card-actions-btn")};if(Object(he.b)(Lr)){var pi=Object(he.a)(Lr,f()(f()({},Lr.props),{onClick:function(){}}));return o.createElement(Bt.a,f()({},Zn,{icon:pi}))}return o.createElement(Bt.a,Zn,o.createElement("span",null,Lr))};o.useImperativeHandle(qt,function(){return{handlePreview:qr,handleDownload:An}});var fr=o.useContext(Tt.b),Jt=fr.getPrefixCls,Ut=fr.direction,er=Jt("upload",$t),Mt=ke.map(function(Ir){var Lr,dn,gn,ri=vt(Ir),Zn=o.createElement("div",{className:"".concat(er,"-text-icon")},ri);if(Et==="picture"||Et==="picture-card")if(Ir.status==="uploading"||!Ir.thumbUrl&&!Ir.url){var pi,Ci=a()((pi={},p()(pi,"".concat(er,"-list-item-thumbnail"),!0),p()(pi,"".concat(er,"-list-item-file"),Ir.status!=="uploading"),pi));Zn=o.createElement("div",{className:Ci},ri)}else{var Ni,zi=Qn&&Qn(Ir)?o.createElement("img",{src:Ir.thumbUrl||Ir.url,alt:Ir.name,className:"".concat(er,"-list-item-image")}):ri,it=a()((Ni={},p()(Ni,"".concat(er,"-list-item-thumbnail"),!0),p()(Ni,"".concat(er,"-list-item-file"),Qn&&!Qn(Ir)),Ni));Zn=o.createElement("a",{className:it,onClick:function(bn){return qr(Ir,bn)},href:Ir.url||Ir.thumbUrl,target:"_blank",rel:"noopener noreferrer"},zi)}if(Ir.status==="uploading"){var Ne="percent"in Ir?o.createElement(Dt.a,f()({},Yt,{type:"line",percent:Ir.percent})):null;gn=o.createElement("div",{className:"".concat(er,"-list-item-progress"),key:"progress"},Ne)}var He=a()((Lr={},p()(Lr,"".concat(er,"-list-item"),!0),p()(Lr,"".concat(er,"-list-item-").concat(Ir.status),!0),p()(Lr,"".concat(er,"-list-item-list-type-").concat(Et),!0),Lr)),Ge=typeof Ir.linkProps=="string"?JSON.parse(Ir.linkProps):Ir.linkProps,nt=Be?bt(At||o.createElement(be.a,null),function(){return Gt(Ir)},er,Vi.removeFile):null,$e=at&&Ir.status==="done"?bt(Ct||o.createElement(Te.a,null),function(){return An(Ir)},er,Vi.downloadFile):null,ot=Et!=="picture-card"&&o.createElement("span",{key:"download-delete",className:"".concat(er,"-list-item-card-actions ").concat(Et==="picture"?"picture":"")},$e,nt),Pt=a()((dn={},p()(dn,"".concat(er,"-list-item-name"),!0),p()(dn,"".concat(er,"-list-item-name-icon-count-").concat([$e,nt].filter(function(Rn){return Rn}).length),!0),dn)),xt=Ir.url?[o.createElement("a",f()({key:"view",target:"_blank",rel:"noopener noreferrer",className:Pt,title:Ir.name},Ge,{href:Ir.url,onClick:function(bn){return qr(Ir,bn)}}),Ir.name),ot]:[o.createElement("span",{key:"view",className:Pt,onClick:function(bn){return qr(Ir,bn)},title:Ir.name},Ir.name),ot],rr={pointerEvents:"none",opacity:.5},Fr=Me?o.createElement("a",{href:Ir.url||Ir.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ir.url||Ir.thumbUrl?void 0:rr,onClick:function(bn){return qr(Ir,bn)},title:Vi.previewFile},o.createElement(ee.a,null)):null,Vr=Et==="picture-card"&&Ir.status!=="uploading"&&o.createElement("span",{className:"".concat(er,"-list-item-actions")},Fr,Ir.status==="done"&&$e,nt),fn;Ir.response&&typeof Ir.response=="string"?fn=Ir.response:fn=Ir.error&&Ir.error.statusText||Vi.uploadError;var gr=o.createElement("span",null,Zn,xt),Gn=o.createElement("div",{className:He},o.createElement("div",{className:"".concat(er,"-list-item-info")},gr),Vr,o.createElement(Pe.a,{transitionName:"fade",component:""},gn)),Mr=a()(p()({},"".concat(er,"-list-picture-card-container"),Et==="picture-card"));return o.createElement("div",{key:Ir.uid,className:Mr},Ir.status==="error"?o.createElement(Ht.a,{title:fn,getPopupContainer:function(bn){return bn.parentNode}},Gn):o.createElement("span",null,Gn))}),Zt=a()((ar={},p()(ar,"".concat(er,"-list"),!0),p()(ar,"".concat(er,"-list-").concat(Et),!0),p()(ar,"".concat(er,"-list-rtl"),Ut==="rtl"),ar)),Hr=Et==="picture-card"?"animate-inline":"animate";return o.createElement(Pe.a,{transitionName:"".concat(er,"-").concat(Hr),component:"div",className:Zt},Mt)},oe=o.forwardRef(de);oe.displayName="UploadList",oe.defaultProps={listType:"text",progress:{strokeWidth:2,showInfo:!1},showRemoveIcon:!0,showDownloadIcon:!1,showPreviewIcon:!0,previewFile:wt,isImageUrl:ft};var lt=oe,qe=i("YMnH"),pe=i("ZvpZ"),Kt=i("uaoM"),hr=i("sPtV"),gt=function(xr,qt){var ar,Et=xr.fileList,en=xr.defaultFileList,Mn=xr.onRemove,Yn=xr.showUploadList,ci=xr.listType,Vi=xr.onPreview,jn=xr.onDownload,Qn=xr.previewFile,$t=xr.disabled,Ot=xr.locale,ke=xr.iconRender,Me=xr.isImageUrl,Be=xr.progress,at=xr.prefixCls,At=xr.className,Ct=xr.type,Yt=xr.children,Pr=xr.style,qr=Object(hr.a)(Et||en||[]),An=l()(qr,2),Gt=An[0],vt=An[1],bt=o.useState("drop"),fr=l()(bt,2),Jt=fr[0],Ut=fr[1],er=o.useRef();o.useEffect(function(){vt(Et||en||[]),Object(Kt.a)("fileList"in xr||!("value"in xr),"Upload","`value` is not a valid prop, do you mean `fileList`?")},[]),o.useEffect(function(){"fileList"in xr&&vt(Et||[])},[Et]);var Mt=function(xt){"fileList"in xr||vt(xt.fileList);var rr=xr.onChange;rr&&rr(f()(f()({},xt),{fileList:A()(xt.fileList)}))},Zt=function(xt){var rr=Ie(xt);rr.status="uploading";var Fr=Gt().concat(),Vr=Fr.findIndex(function(fn){var gr=fn.uid;return gr===rr.uid});Vr===-1?Fr.push(rr):Fr[Vr]=rr,Mt({file:rr,fileList:Fr})},Hr=function(xt,rr,Fr){try{typeof xt=="string"&&(xt=JSON.parse(xt))}catch(fn){}var Vr=tt(rr,Gt());if(!Vr)return;Vr.status="done",Vr.response=xt,Vr.xhr=Fr,Mt({file:f()({},Vr),fileList:Gt().concat()})},Ir=function(xt,rr){var Fr=tt(rr,Gt());if(!Fr)return;Fr.percent=xt.percent,Mt({event:xt,file:f()({},Fr),fileList:Gt().concat()})},Lr=function(xt,rr,Fr){var Vr=tt(Fr,Gt());if(!Vr)return;Vr.error=xt,Vr.response=rr,Vr.status="error",Mt({file:f()({},Vr),fileList:Gt().concat()})},dn=function(xt){Promise.resolve(typeof Mn=="function"?Mn(xt):Mn).then(function(rr){if(rr===!1)return;var Fr=pt(xt,Gt());Fr&&(xt.status="removed",er.current&&er.current.abort(xt),Mt({file:xt,fileList:Fr}))})},gn=function(xt){Ut(xt.type)},ri=function(xt,rr){var Fr=xr.beforeUpload;if(!Fr)return!0;var Vr=Fr(xt,rr);if(Vr===!1){var fn=[];return Gt().concat(rr.map(Ie)).forEach(function(gr){fn.every(function(Gn){return Gn.uid!==gr.uid})&&fn.push(gr)}),Mt({file:xt,fileList:fn}),!1}return Vr&&Vr.then?Vr:!0},Zn=Object(Ke.a)();o.useImperativeHandle(qt,function(){return{onStart:Zt,onSuccess:Hr,onProgress:Ir,onError:Lr,fileList:Gt(),upload:er.current,forceUpdate:Zn}});var pi=function(xt){var rr=Yn.showRemoveIcon,Fr=Yn.showPreviewIcon,Vr=Yn.showDownloadIcon,fn=Yn.removeIcon,gr=Yn.downloadIcon;return o.createElement(lt,{listType:ci,items:Gt(),previewFile:Qn,onPreview:Vi,onDownload:jn,onRemove:dn,showRemoveIcon:!$t&&rr,showPreviewIcon:Fr,showDownloadIcon:Vr,removeIcon:fn,downloadIcon:gr,iconRender:ke,locale:f()(f()({},xt),Ot),isImageUrl:Me,progress:Be})},Ci=o.useContext(Tt.b),Ni=Ci.getPrefixCls,zi=Ci.direction,it=Ni("upload",at),Ne=f()(f()({onStart:Zt,onError:Lr,onProgress:Ir,onSuccess:Hr},xr),{prefixCls:it,beforeUpload:ri});delete Ne.className,delete Ne.style,(!Yt||$t)&&delete Ne.id;var He=Yn?o.createElement(qe.a,{componentName:"Upload",defaultLocale:pe.a.Upload},pi):null;if(Ct==="drag"){var Ge,nt=a()(it,(Ge={},p()(Ge,"".concat(it,"-drag"),!0),p()(Ge,"".concat(it,"-drag-uploading"),Gt().some(function(Pt){return Pt.status==="uploading"})),p()(Ge,"".concat(it,"-drag-hover"),Jt==="dragover"),p()(Ge,"".concat(it,"-disabled"),$t),p()(Ge,"".concat(it,"-rtl"),zi==="rtl"),Ge),At);return o.createElement("span",null,o.createElement("div",{className:nt,onDrop:gn,onDragOver:gn,onDragLeave:gn,style:Pr},o.createElement($,f()({},Ne,{ref:er,className:"".concat(it,"-btn")}),o.createElement("div",{className:"".concat(it,"-drag-container")},Yt))),He)}var $e=a()(it,(ar={},p()(ar,"".concat(it,"-select"),!0),p()(ar,"".concat(it,"-select-").concat(ci),!0),p()(ar,"".concat(it,"-disabled"),$t),p()(ar,"".concat(it,"-rtl"),zi==="rtl"),ar)),ot=o.createElement("div",{className:$e,style:Yt?void 0:{display:"none"}},o.createElement($,f()({},Ne,{ref:er})));return ci==="picture-card"?o.createElement("span",{className:a()(At,"".concat(it,"-picture-card-wrapper"))},He,ot):o.createElement("span",{className:At},ot,He)},nr=o.forwardRef(gt);nr.Dragger=Re,nr.displayName="Upload",nr.defaultProps={type:"select",multiple:!1,action:"",data:{},accept:"",beforeUpload:ye,showUploadList:!0,listType:"text",className:"",disabled:!1,supportServerRender:!0};var mr=nr;mr.Dragger=Re;var cn=D.a=mr},"98bh":function(k,D,i){var y=i("ProS"),p=i("5GtS"),S=i("bYtY"),A=i("4NO4"),m=i("OELB"),f=m.getPercentWithPrecision,d=i("cCMj"),l=i("KxfA"),o=l.retrieveRawAttr,n=i("D5nY"),t=n.makeSeriesEncodeForNameBased,a=i("xKMd"),e=y.extendSeriesModel({type:"series.pie",init:function(r){e.superApply(this,"init",arguments),this.legendVisualProvider=new a(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 p(this,{coordDimensions:["value"],encodeDefaulter:S.curry(t,this)})},_createSelectableList:function(){for(var r=this.getRawData(),s=r.mapDimension("value"),c=[],h=0,g=r.count();h<g;h++)c.push({name:r.getName(h),value:r.get(s,h),selected:o(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(g){h.push(g)}),c.percent=f(h,r,s.hostModel.get("percentPrecision")),c.$vars.push("percent"),c},_defaultLabelLine:function(r){A.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;k.exports=u},"9H2F":function(k,D,i){var y=i("bYtY"),p=y.assert,S=y.isArray,A=i("Tghj"),m=A.__DEV__;function f(a){return new d(a)}function d(a){a=a||{},this._reset=a.reset,this._plan=a.plan,this._count=a.count,this._onDirty=a.onDirty,this._dirty=!0,this.context}var l=d.prototype;l.perform=function(a){var e=this._upstream,u=a&&a.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,g=b(a&&a.modBy),v=a&&a.modDataCount||0;(c!==g||h!==v)&&(s="reset");function b(_){return!(_>=1)&&(_=1),_}var w;(this._dirty||s==="reset")&&(this._dirty=!1,w=t(this,u)),this._modBy=g,this._modDataCount=v;var x=a&&a.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):Infinity,this._progress){var T=this._dueIndex,O=Math.min(x!=null?this._dueIndex+x:Infinity,this._dueEnd);if(!u&&(w||T<O)){var E=this._progress;if(S(E))for(var C=0;C<E.length;C++)n(this,E[C],T,O,g,v);else n(this,E,T,O,g,v)}this._dueIndex=O;var I=this._settedOutputEnd!=null?this._settedOutputEnd:O;this._outputDueEnd=I}else this._dueIndex=this._outputDueEnd=this._settedOutputEnd!=null?this._settedOutputEnd:this._dueEnd;return this.unfinished()};var o=function(){var a,e,u,r,s,c={reset:function(v,b,w,x){e=v,a=b,u=w,r=x,s=Math.ceil(r/u),c.next=u>1&&r>0?g:h}};return c;function h(){return e<a?e++:null}function g(){var v=e%s*u+Math.ceil(e/s),b=e>=a?null:v<r?v:e;return e++,b}}();l.dirty=function(){this._dirty=!0,this._onDirty&&this._onDirty(this.context)};function n(a,e,u,r,s,c){o.reset(u,r,s,c),a._callingProgress=e,a._callingProgress({start:u,end:r,count:r-u,next:o.next},a.context)}function t(a,e){a._dueIndex=a._outputDueEnd=a._dueEnd=0,a._settedOutputEnd=null;var u,r;!e&&a._reset&&(u=a._reset(a.context),u&&u.progress&&(r=u.forceFirstProgress,u=u.progress),S(u)&&!u.length&&(u=null)),a._progress=u,a._modBy=a._modDataCount=null;var s=a._downstream;return s&&s.dirty(),r}l.unfinished=function(){return this._progress&&this._dueIndex<this._dueEnd},l.pipe=function(a){(this._downstream!==a||this._dirty)&&(this._downstream=a,a._upstream=this,a.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(a){this._outputDueEnd=this._settedOutputEnd=a},D.createTask=f},"9KIM":function(k,D,i){var y=i("mFDi"),p=i("xSat"),S=p.onIrrelevantElement,A=i("IwbS");function m(o){return o=l(o),function(n,t){return A.clipPointsByRect(n,o)}}function f(o,n){return o=l(o),function(t){var a=n!=null?n:t,e=a?o.width:o.height,u=a?o.x:o.y;return[u,u+(e||0)]}}function d(o,n,t){return o=l(o),function(a,e,u){return o.contain(e[0],e[1])&&!S(a,n,t)}}function l(o){return y.create(o)}D.makeRectPanelClipPath=m,D.makeLinearBrushOtherExtent=f,D.makeRectIsTargetByCursor=d},"9OqN":function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return y.mode.CTR=function(){var p=y.lib.BlockCipherMode.extend(),S=p.Encryptor=p.extend({processBlock:function(m,f){var d=this._cipher,l=d.blockSize,o=this._iv,n=this._counter;o&&(n=this._counter=o.slice(0),this._iv=void 0);var t=n.slice(0);d.encryptBlock(t,0),n[l-1]=n[l-1]+1|0;for(var a=0;a<l;a++)m[f+a]^=t[a]}});return p.Decryptor=S,p}(),y.mode.CTR})},"9ama":function(k,D,i){},"9eas":function(k,D,i){i("HM/N"),i("tBnm")},"9hCq":function(k,D,i){var y=i("IwbS"),p=i("+TT/"),S=i("bYtY"),A=i("VaxA"),m=A.wrapTreePathInfo,f=8,d=8,l=5;function o(e){this.group=new y.Group,e.add(this.group)}o.prototype={constructor:o,render:function(e,u,r,s){var c=e.getModel("breadcrumb"),h=this.group;if(h.removeAll(),!c.get("show")||!r)return;var g=c.getModel("itemStyle"),v=g.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,v),this._renderContent(e,b,g,v,s),p.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),g=Math.max(h.width+f*2,u.emptyItemWidth);u.totalWidth+=g+d,u.renderList.push({node:s,text:c,width:g})}},_renderContent:function(e,u,r,s,c){for(var h=0,g=u.emptyItemWidth,v=e.get("breadcrumb.height"),b=p.getAvailableSize(u.pos,u.box),w=u.totalWidth,x=u.renderList,T=x.length-1;T>=0;T--){var O=x[T],E=O.node,C=O.width,I=O.text;w>b.width&&(w-=C-g,C=g,I=null);var _=new y.Polygon({shape:{points:n(h,0,C,v,T===x.length-1,T===0)},style:S.defaults(r.getItemStyle(),{lineJoin:"bevel",text:I,textFill:s.getTextColor(),textFont:s.getFont()}),z:10,onclick:S.curry(c,E)});this.group.add(_),t(_,e,E),h+=C+d}},remove:function(){this.group.removeAll()}};function n(e,u,r,s,c,h){var g=[[c?e:e-l,u],[e+r,u],[e+r,u+s],[c?e:e-l,u+s]];return!h&&g.splice(2,0,[e+r+l,u+s/2]),!c&&g.push([e,u+s/2]),g}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&&m(r,u)}}var a=o;k.exports=a},"9u0u":function(k,D,i){var y=i("bYtY");function p(A,m){var f={};return y.each(A,function(d){d.each(d.mapDimension("value"),function(l,o){var n="ec-"+d.getName(o);f[n]=f[n]||[],isNaN(l)||f[n].push(l)})}),A[0].map(A[0].mapDimension("value"),function(d,l){for(var o="ec-"+A[0].getName(l),n=0,t=Infinity,a=-Infinity,e=f[o].length,u=0;u<e;u++)t=Math.min(t,f[o][u]),a=Math.max(a,f[o][u]),n+=f[o][u];var r;return m==="min"?r=t:m==="max"?r=a:m==="average"?r=n/e:r=n,e===0?NaN:r})}function S(A){var m={};A.eachSeriesByType("map",function(f){var d=f.getHostGeoModel(),l=d?"o"+d.id:"i"+f.getMapType();(m[l]=m[l]||[]).push(f)}),y.each(m,function(f,d){for(var l=p(y.map(f,function(n){return n.getData()}),f[0].get("mapValueCalculation")),o=0;o<f.length;o++)f[o].originalData=f[o].getData();for(var o=0;o<f.length;o++)f[o].seriesGroup=f,f[o].needsDrawMap=o===0&&!f[o].getHostGeoModel(),f[o].setData(l.cloneShallow()),f[o].mainSeries=f[0]})}k.exports=S},"9wZj":function(k,D,i){var y=i("IwbS"),p=i("FBjb"),S=i("bYtY"),A=S.isObject;function m(t){this.group=new y.Group,this._symbolCtor=t||p}var f=m.prototype;function d(t,a,e,u){return a&&!isNaN(a[0])&&!isNaN(a[1])&&!(u.isIgnore&&u.isIgnore(e))&&!(u.clipShape&&!u.clipShape.contain(a[0],a[1]))&&t.getItemVisual(e,"symbol")!=="none"}f.updateData=function(t,a){a=l(a);var e=this.group,u=t.hostModel,r=this._data,s=this._symbolCtor,c=o(t);r||e.removeAll(),t.diff(r).add(function(h){var g=t.getItemLayout(h);if(d(t,g,h,a)){var v=new s(t,h,c);v.attr("position",g),t.setItemGraphicEl(h,v),e.add(v)}}).update(function(h,g){var v=r.getItemGraphicEl(g),b=t.getItemLayout(h);if(!d(t,b,h,a)){e.remove(v);return}v?(v.updateData(t,h,c),y.updateProps(v,{position:b},u)):(v=new s(t,h),v.attr("position",b)),e.add(v),t.setItemGraphicEl(h,v)}).remove(function(h){var g=r.getItemGraphicEl(h);g&&g.fadeOut(function(){e.remove(g)})}).execute(),this._data=t},f.isPersistent=function(){return!0},f.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(a,e){var u=t.getItemLayout(e);a.attr("position",u)})},f.incrementalPrepareUpdate=function(t){this._seriesScope=o(t),this._data=null,this.group.removeAll()},f.incrementalUpdate=function(t,a,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=a.getItemLayout(r);if(d(a,s,r,e)){var c=new this._symbolCtor(a,r,this._seriesScope);c.traverse(u),c.attr("position",s),this.group.add(c),a.setItemGraphicEl(r,c)}}};function l(t){return t!=null&&!A(t)&&(t={isIgnore:t}),t||{}}f.remove=function(t){var a=this.group,e=this._data;e&&t?e.eachItemGraphicEl(function(u){u.fadeOut(function(){a.remove(u)})}):a.removeAll()};function o(t){var a=t.hostModel;return{itemStyle:a.getModel("itemStyle").getItemStyle(["color"]),hoverItemStyle:a.getModel("emphasis.itemStyle").getItemStyle(),symbolRotate:a.get("symbolRotate"),symbolOffset:a.get("symbolOffset"),hoverAnimation:a.get("hoverAnimation"),labelModel:a.getModel("label"),hoverLabelModel:a.getModel("emphasis.label"),cursorStyle:a.get("cursor")}}var n=m;k.exports=n},"9yH6":function(k,D,i){"use strict";var y=i("lSNA"),p=i.n(y),S=i("pVnL"),A=i.n(S),m=i("q1tI"),f=i("x1Ya"),d=i("TSYQ"),l=i.n(d),o=i("H84U"),n=m.createContext(null),t=n.Provider,a=n,e=i("cDf5"),u=i.n(e);function r(M,X){typeof M=="function"?M(X):u()(M)==="object"&&M&&"current"in M&&(M.current=X)}function s(){for(var M=arguments.length,X=new Array(M),P=0;P<M;P++)X[P]=arguments[P];return function(z){X.forEach(function(W){r(W,z)})}}var c=i("uaoM"),h=function(M,X){var P={};for(var z in M)Object.prototype.hasOwnProperty.call(M,z)&&X.indexOf(z)<0&&(P[z]=M[z]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,z=Object.getOwnPropertySymbols(M);W<z.length;W++)X.indexOf(z[W])<0&&Object.prototype.propertyIsEnumerable.call(M,z[W])&&(P[z[W]]=M[z[W]]);return P},g=function(X,P){var z,W=m.useContext(a),U=m.useContext(o.b),V=U.getPrefixCls,Q=U.direction,G=m.useRef(),te=s(P,G);m.useEffect(function(){Object(c.a)(!("optionType"in X),"Radio","`optionType` is only support in Radio.Group.")},[]);var $=function(ue){X.onChange&&X.onChange(ue),(W==null?void 0:W.onChange)&&W.onChange(ue)},le=X.prefixCls,re=X.className,Se=X.children,Re=X.style,Pe=h(X,["prefixCls","className","children","style"]),Je=V("radio",le),Ve=A()({},Pe);W&&(Ve.name=W.name,Ve.onChange=$,Ve.checked=X.value===W.value,Ve.disabled=X.disabled||W.disabled);var ct=l()(re,(z={},p()(z,"".concat(Je,"-wrapper"),!0),p()(z,"".concat(Je,"-wrapper-checked"),Ve.checked),p()(z,"".concat(Je,"-wrapper-disabled"),Ve.disabled),p()(z,"".concat(Je,"-wrapper-rtl"),Q==="rtl"),z));return m.createElement("label",{className:ct,style:Re,onMouseEnter:X.onMouseEnter,onMouseLeave:X.onMouseLeave},m.createElement(f.a,A()({},Ve,{prefixCls:Je,ref:te})),Se!==void 0?m.createElement("span",null,Se):null)},v=m.forwardRef(g);v.displayName="Radio",v.defaultProps={type:"radio"};var b=v,w=i("J4zp"),x=i.n(w),T=i("6cGi"),O=i("3Nzz"),E=m.forwardRef(function(M,X){var P=m.useContext(o.b),z=P.getPrefixCls,W=P.direction,U=m.useContext(O.b),V=Object(T.a)(M.defaultValue,{value:M.value}),Q=x()(V,2),G=Q[0],te=Q[1],$=function(Se){var Re=G,Pe=Se.target.value;"value"in M||te(Pe);var Je=M.onChange;Je&&Pe!==Re&&Je(Se)},le=function(){var Se,Re=M.prefixCls,Pe=M.className,Je=Pe===void 0?"":Pe,Ve=M.options,ct=M.optionType,Ue=M.buttonStyle,ue=M.disabled,rt=M.children,ge=M.size,Z=M.style,Y=M.id,ee=M.onMouseEnter,fe=M.onMouseLeave,be=z("radio",Re),Ce="".concat(be,"-group"),Te=rt;if(Ve&&Ve.length>0){var he=ct==="button"?"".concat(be,"-button"):be;Te=Ve.map(function(tt){return typeof tt=="string"?m.createElement(b,{ref:X,key:tt,prefixCls:he,disabled:ue,value:tt,checked:G===tt},tt):m.createElement(b,{ref:X,key:"radio-group-value-options-".concat(tt.value),prefixCls:he,disabled:tt.disabled||ue,value:tt.value,checked:G===tt.value,style:tt.style},tt.label)})}var ye=ge||U,Ie=l()(Ce,"".concat(Ce,"-").concat(Ue),(Se={},p()(Se,"".concat(Ce,"-").concat(ye),ye),p()(Se,"".concat(Ce,"-rtl"),W==="rtl"),Se),Je);return m.createElement("div",{className:Ie,style:Z,onMouseEnter:ee,onMouseLeave:fe,id:Y},Te)};return m.createElement(t,{value:{onChange:$,value:G,disabled:M.disabled,name:M.name}},le())});E.defaultProps={buttonStyle:"outline"};var C=m.memo(E),I=function(M,X){var P={};for(var z in M)Object.prototype.hasOwnProperty.call(M,z)&&X.indexOf(z)<0&&(P[z]=M[z]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,z=Object.getOwnPropertySymbols(M);W<z.length;W++)X.indexOf(z[W])<0&&Object.prototype.propertyIsEnumerable.call(M,z[W])&&(P[z[W]]=M[z[W]]);return P},_=function(X,P){var z=m.useContext(a),W=m.useContext(o.b),U=W.getPrefixCls,V=X.prefixCls,Q=I(X,["prefixCls"]),G=U("radio-button",V);return z&&(Q.checked=X.value===z.value,Q.disabled=X.disabled||z.disabled),m.createElement(b,A()({prefixCls:G},Q,{type:"radio",ref:P}))},F=m.forwardRef(_),R=b;R.Button=F,R.Group=C;var B=D.a=R},A1Ka:function(k,D,i){var y=i("bLfw"),p=i("sS/r"),S=i("D5nY"),A=S.detectSourceFormat,m=i("k9D9"),f=m.SERIES_LAYOUT_BY_COLUMN;y.extend({type:"dataset",defaultOption:{seriesLayoutBy:f,sourceHeader:null,dimensions:null,source:null},optionUpdated:function(){A(this)}}),p.extend({type:"dataset"})},A90E:function(k,D,i){var y=i("6sVZ"),p=i("V6Ve"),S=Object.prototype,A=S.hasOwnProperty;function m(f){if(!y(f))return p(f);var d=[];for(var l in Object(f))A.call(f,l)&&l!="constructor"&&d.push(l);return d}k.exports=m},ABKa:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("Qs9O")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="FolderOutlined";var n=A.forwardRef(o);D.default=n},AE9C:function(k,D,i){var y=i("bYtY"),p=i("crZl"),S=i("IwbS"),A=i("oVpE"),m=A.createSymbol,f=i("+TT/"),d=i("y7Aq"),l=p.extend({type:"visualMap.piecewise",doRender:function(){var n=this.group;n.removeAll();var t=this.visualMapModel,a=t.get("textGap"),e=t.textStyleModel,u=e.getFont(),r=e.getTextColor(),s=this._getItemAlign(),c=t.itemSize,h=this._getViewData(),g=h.endsText,v=y.retrieve(t.get("showLabel",!0),!g);g&&this._renderEndsText(n,g[0],c,v,s),y.each(h.viewPieceList,b,this),g&&this._renderEndsText(n,g[1],c,v,s),f.box(t.get("orient"),n,t.get("itemGap")),this.renderBackground(n),this.positionGroup(n);function b(w){var x=w.piece,T=new S.Group;T.onclick=y.bind(this._onItemClick,this,x),this._enableHoverLink(T,w.indexInModelPieceList);var O=t.getRepresentValue(x);if(this._createItemSymbol(T,O,[0,0,c[0],c[1]]),v){var E=this.visualMapModel.getValueState(O);T.add(new S.Text({style:{x:s==="right"?-a:c[0]+a,y:c[1]/2,text:x.text,textVerticalAlign:"middle",textAlign:s,textFont:u,textFill:r,opacity:E==="outOfRange"?.5:1}}))}n.add(T)}},_enableHoverLink:function(n,t){n.on("mouseover",y.bind(a,this,"highlight")).on("mouseout",y.bind(a,this,"downplay"));function a(e){var u=this.visualMapModel;u.option.hoverLink&&this.api.dispatchAction({type:e,batch:d.makeHighDownBatch(u.findTargetDataIndices(t),u)})}},_getItemAlign:function(){var n=this.visualMapModel,t=n.option;if(t.orient==="vertical")return d.getItemAlign(n,this.api,n.itemSize);var a=t.align;return(!a||a==="auto")&&(a="left"),a},_renderEndsText:function(n,t,a,e,u){if(!t)return;var r=new S.Group,s=this.visualMapModel.textStyleModel;r.add(new S.Text({style:{x:e?u==="right"?a[0]:0:a[0]/2,y:a[1]/2,textVerticalAlign:"middle",textAlign:e?u:"center",text:t,textFont:s.getFont(),textFill:s.getTextColor()}})),n.add(r)},_getViewData:function(){var n=this.visualMapModel,t=y.map(n.getPieceList(),function(r,s){return{piece:r,indexInModelPieceList:s}}),a=n.get("text"),e=n.get("orient"),u=n.get("inverse");return(e==="horizontal"?u:!u)?t.reverse():a&&(a=a.slice().reverse()),{viewPieceList:t,endsText:a}},_createItemSymbol:function(n,t,a){n.add(m(this.getControllerVisual(t,"symbol"),a[0],a[1],a[2],a[3],this.getControllerVisual(t,"color")))},_onItemClick:function(n){var t=this.visualMapModel,a=t.option,e=y.clone(a.selected),u=t.getSelectedMapKey(n);a.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})}}),o=l;k.exports=o},AEZ6:function(k,D,i){var y=i("bYtY"),p=y.each,S=y.createHashMap,A=i("T4UG"),m=i("MwEJ"),f=A.extend({type:"series.parallel",dependencies:["parallel"],visualColorAccessPath:"lineStyle.color",getInitialData:function(o,n){var t=this.getSource();return d(t,this),m(t,this)},getRawIndicesByActiveState:function(o){var n=this.coordinateSystem,t=this.getData(),a=[];return n.eachActiveState(t,function(e,u){o===e&&a.push(t.getRawIndex(u))}),a},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(o,n){if(o.encodeDefine)return;var t=n.ecModel.getComponent("parallel",n.get("parallelIndex"));if(!t)return;var a=o.encodeDefine=S();p(t.dimensions,function(e){var u=l(e);a.set(e,u)})}function l(o){return+o.replace("dim","")}k.exports=f},AH3D:function(k,D,i){var y=i("ProS");i("y4/Y"),i("qWt2"),i("Qvb6"),y.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),y.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})},ALo7:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("5GtS"),A=i("4NO4"),m=A.defaultEmphasis,f=i("D5nY"),d=f.makeSeriesEncodeForNameBased,l=i("xKMd"),o=y.extendSeriesModel({type:"series.funnel",init:function(t){o.superApply(this,"init",arguments),this.legendVisualProvider=new l(p.bind(this.getData,this),p.bind(this.getRawData,this)),this._defaultLabelLine(t)},getInitialData:function(t,a){return S(this,{coordDimensions:["value"],encodeDefaulter:p.curry(d,this)})},_defaultLabelLine:function(t){m(t,"labelLine",["show"]);var a=t.labelLine,e=t.emphasis.labelLine;a.show=a.show&&t.label.show,e.show=e.show&&t.emphasis.label.show},getDataParams:function(t){var a=this.getData(),e=o.superCall(this,"getDataParams",t),u=a.mapDimension("value"),r=a.getSum(u);return e.percent=r?+(a.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}}}}),n=o;k.exports=n},ALsQ:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return y.mode.CFB=function(){var p=y.lib.BlockCipherMode.extend();p.Encryptor=p.extend({processBlock:function(m,f){var d=this._cipher,l=d.blockSize;S.call(this,m,f,l,d),this._prevBlock=m.slice(f,f+l)}}),p.Decryptor=p.extend({processBlock:function(m,f){var d=this._cipher,l=d.blockSize,o=m.slice(f,f+l);S.call(this,m,f,l,d),this._prevBlock=o}});function S(A,m,f,d){var l,o=this._iv;o?(l=o.slice(0),this._iv=void 0):l=this._prevBlock,d.encryptBlock(l,0);for(var n=0;n<f;n++)A[m+n]^=l[n]}return p}(),y.mode.CFB})},ANjR:function(k,D,i){var y=i("bYtY");function p(A,m){return m=m||[0,0],y.map([0,1],function(f){var d=m[f],l=A[f]/2,o=[],n=[];return o[f]=d-l,n[f]=d+l,o[1-f]=n[1-f]=m[1-f],Math.abs(this.dataToPoint(o)[f]-this.dataToPoint(n)[f])},this)}function S(A){var m=A.getBoundingRect();return{coordSys:{type:"geo",x:m.x,y:m.y,width:m.width,height:m.height,zoom:A.getZoom()},api:{coord:function(f){return A.dataToPoint(f)},size:y.bind(p,A)}}}k.exports=S},AOa7:function(k,D,i){},AUH6:function(k,D,i){var y=i("bYtY"),p=i("mFDi"),S=i("bMXI"),A=i("W4dC");function m(l,o,n,t){S.call(this,l),this.map=o;var a=A.load(o,n);this._nameCoordMap=a.nameCoordMap,this._regionsMap=a.regionsMap,this._invertLongitute=t==null?!0:t,this.regions=a.regions,this._rect=a.boundingRect}m.prototype={constructor:m,type:"geo",dimensions:["lng","lat"],containCoord:function(l){for(var o=this.regions,n=0;n<o.length;n++)if(o[n].contain(l))return!0;return!1},transformTo:function(l,o,n,t){var a=this.getBoundingRect(),e=this._invertLongitute;a=a.clone(),e&&(a.y=-a.y-a.height);var u=this._rawTransformable;if(u.transform=a.calculateTransform(new p(l,o,n,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 o=this.regions,n=0;n<o.length;n++)if(o[n].contain(l))return o[n]},addGeoCoord:function(l,o){this._nameCoordMap.set(l,o)},getGeoCoord:function(l){return this._nameCoordMap.get(l)},getBoundingRect:function(){return this._rect},dataToPoint:function(l,o,n){if(typeof l=="string"&&(l=this.getGeoCoord(l)),l)return S.prototype.dataToPoint.call(this,l,o,n)},convertToPixel:y.curry(f,"dataToPoint"),convertFromPixel:y.curry(f,"pointToData")},y.mixin(m,S);function f(l,o,n,t){var a=n.geoModel,e=n.seriesModel,u=a?a.coordinateSystem:e?e.coordinateSystem||(e.getReferringComponents("geo")[0]||{}).coordinateSystem:null;return u===this?u[l](t):null}var d=m;k.exports=d},AVZG:function(k,D,i){var y=i("bYtY");function p(S,A,m){m=m||{};var f=S.coordinateSystem,d=A.axis,l={},o=d.getAxesOnZeroOf()[0],n=d.position,t=o?"onZero":n,a=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=A.get("offset")||0,c=a==="x"?[u[2]-s,u[3]+s]:[u[0]-s,u[1]+s];if(o){var h=o.toGlobalCoord(o.dataToCoord(0));c[r.onZero]=Math.max(Math.min(h,c[1]),c[0])}l.position=[a==="y"?c[r[t]]:u[0],a==="x"?c[r[t]]:u[3]],l.rotation=Math.PI/2*(a==="x"?0:1);var g={top:-1,bottom:1,left:-1,right:1};l.labelDirection=l.tickDirection=l.nameDirection=g[n],l.labelOffset=o?c[r[n]]-c[r.onZero]:0,A.get("axisTick.inside")&&(l.tickDirection=-l.tickDirection),y.retrieve(m.labelInside,A.get("axisLabel.inside"))&&(l.labelDirection=-l.labelDirection);var v=A.get("axisLabel.rotate");return l.labelRotate=t==="top"?-v:v,l.z2=1,l}D.layout=p},"Ae+d":function(k,D){function i(p,S,A){var m=p.target,f=m.position;f[0]+=S,f[1]+=A,m.dirty()}function y(p,S,A,m){var f=p.target,d=p.zoomLimit,l=f.position,o=f.scale,n=p.zoom=p.zoom||1;if(n*=S,d){var t=d.min||0,a=d.max||Infinity;n=Math.max(Math.min(a,n),t)}var e=n/p.zoom;p.zoom=n,l[0]-=(A-l[0])*(e-1),l[1]-=(m-l[1])*(e-1),o[0]*=e,o[1]*=e,f.dirty()}D.updateViewOnPan=i,D.updateViewOnZoom=y},Ae16:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("IwbS");i("Wqna"),i("rySg"),y.extendComponentView({type:"grid",render:function(A,m){this.group.removeAll(),A.get("show")&&this.group.add(new S.Rect({shape:A.coordinateSystem.getRect(),style:p.defaults({fill:A.get("backgroundColor")},A.getItemStyle()),silent:!0,z2:-1}))}}),y.registerPreprocessor(function(A){A.xAxis&&A.yAxis&&!A.grid&&(A.grid={})})},Awhp:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("PQMj"),A=i.n(S)},"B+YJ":function(k,D,i){i("TYVI"),i("p1MT")},"B6l+":function(k,D,i){var y=i("Sq3C"),p=i("Z1HP"),S=i("Sxd8"),A=i("dt0z");function m(f,d,l){f=A(f),d=S(d);var o=d?p(f):0;return d&&o<d?f+y(d-o,l):f}k.exports=m},B8du:function(k,D){function i(){return!1}k.exports=i},B9cy:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("0XgM"),A=i.n(S)},B9fm:function(k,D,i){var y=i("bYtY"),p=i("Qe9p"),S=i("YH21"),A=i("Ze12"),m=i("ItGF"),f=i("7aKB"),d=y.each,l=f.toCamelCase,o=["","-webkit-","-moz-","-o-"],n="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)",g="left "+c+"s "+h+",top "+c+"s "+h;return y.map(o,function(v){return v+"transition:"+g}).join(";")}function a(c){var h=[],g=c.get("fontSize"),v=c.getTextColor();return v&&h.push("color:"+v),h.push("font:"+c.getFont()),g&&h.push("line-height:"+Math.round(g*3/2)+"px"),d(["decoration","align"],function(b){var w=c.get(b);w&&h.push("text-"+b+":"+w)}),h.join(";")}function e(c){var h=[],g=c.get("transitionDuration"),v=c.get("backgroundColor"),b=c.getModel("textStyle"),w=c.get("padding");return g&&h.push(t(g)),v&&(m.canvasSupported?h.push("background-Color:"+v):(h.push("background-Color:#"+p.toHex(v)),h.push("filter:alpha(opacity=70)"))),d(["width","color","radius"],function(x){var T="border-"+x,O=l(T),E=c.get(O);E!=null&&h.push(T+":"+E+(x==="color"?"":"px"))}),h.push(a(b)),w!=null&&h.push("padding:"+f.normalizeCssArray(w).join("px ")+"px"),h.join(";")+";"}function u(c,h,g,v,b){var w=h&&h.painter;if(g){var x=w&&w.getViewportRoot();x&&A.transformLocalCoord(c,x,document.body,v,b)}else{c[0]=v,c[1]=b;var T=w&&w.getViewportRootOffset();T&&(c[0]+=T.offsetLeft,c[1]+=T.offsetTop)}}function r(c,h,g){if(m.wxa)return null;var v=document.createElement("div");v.domBelongToZr=!0,this.el=v;var b=this._zr=h.getZr(),w=this._appendToBody=g&&g.appendToBody;this._styleCoord=[0,0],u(this._styleCoord,b,w,h.getWidth()/2,h.getHeight()/2),w?document.body.appendChild(v):c.appendChild(v),this._container=c,this._show=!1,this._hideTimeout;var x=this;v.onmouseenter=function(){x._enterable&&(clearTimeout(x._hideTimeout),x._show=!0),x._inContent=!0},v.onmousemove=function(T){if(T=T||window.event,!x._enterable){var O=b.handler,E=b.painter.getViewportRoot();S.normalizeEvent(E,T,!0),O.dispatch("mousemove",T)}},v.onmouseleave=function(){x._enterable&&(x._show&&x.hideLater(x._hideDelay)),x._inContent=!1}}r.prototype={constructor:r,_enterable:!0,update:function(){var c=this._container,h=c.currentStyle||document.defaultView.getComputedStyle(c),g=c.style;g.position!=="absolute"&&h.position!=="absolute"&&(g.position="relative")},show:function(c){clearTimeout(this._hideTimeout);var h=this.el,g=this._styleCoord;h.style.cssText=n+e(c)+";left:"+g[0]+"px;top:"+g[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 g=this._styleCoord;u(g,this._zr,this._appendToBody,c,h);var v=this.el.style;v.left=g[0]+"px",v.top=g[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 g=document.defaultView.getComputedStyle(this.el);g&&(c+=parseInt(g.borderLeftWidth,10)+parseInt(g.borderRightWidth,10),h+=parseInt(g.borderTopWidth,10)+parseInt(g.borderBottomWidth,10))}return{width:c,height:h}}};var s=r;k.exports=s},BPZU:function(k,D){var i=32,y=7,p=256;function S(t){for(var a=0;t>=i;)a|=t&1,t>>=1;return t+a}function A(t,a,e,u){var r=a+1;if(r===e)return 1;if(u(t[r++],t[a])<0){for(;r<e&&u(t[r],t[r-1])<0;)r++;m(t,a,r)}else for(;r<e&&u(t[r],t[r-1])>=0;)r++;return r-a}function m(t,a,e){for(e--;a<e;){var u=t[a];t[a++]=t[e],t[e--]=u}}function f(t,a,e,u,r){for(u===a&&u++;u<e;u++){for(var s=t[u],c=a,h=u,g;c<h;)g=c+h>>>1,r(s,t[g])<0?h=g:c=g+1;var v=u-c;switch(v){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(;v>0;)t[c+v]=t[c+v-1],v--}t[c]=s}}function d(t,a,e,u,r,s){var c=0,h=0,g=1;if(s(t,a[e+r])>0){for(h=u-r;g<h&&s(t,a[e+r+g])>0;)c=g,g=(g<<1)+1,g<=0&&(g=h);g>h&&(g=h),c+=r,g+=r}else{for(h=r+1;g<h&&s(t,a[e+r-g])<=0;)c=g,g=(g<<1)+1,g<=0&&(g=h);g>h&&(g=h);var v=c;c=r-g,g=r-v}for(c++;c<g;){var b=c+(g-c>>>1);s(t,a[e+b])>0?c=b+1:g=b}return g}function l(t,a,e,u,r,s){var c=0,h=0,g=1;if(s(t,a[e+r])<0){for(h=r+1;g<h&&s(t,a[e+r-g])<0;)c=g,g=(g<<1)+1,g<=0&&(g=h);g>h&&(g=h);var v=c;c=r-g,g=r-v}else{for(h=u-r;g<h&&s(t,a[e+r+g])>=0;)c=g,g=(g<<1)+1,g<=0&&(g=h);g>h&&(g=h),c+=r,g+=r}for(c++;c<g;){var b=c+(g-c>>>1);s(t,a[e+b])<0?g=b:c=b+1}return g}function o(t,a){var e=y,u=0,r=p,s=0,c,h,g=0;u=t.length,u<2*p&&(r=u>>>1);var v=[];s=u<120?5:u<1542?10:u<119151?19:40,c=[],h=[];function b(C,I){c[g]=C,h[g]=I,g+=1}function w(){for(;g>1;){var C=g-2;if(C>=1&&h[C-1]<=h[C]+h[C+1]||C>=2&&h[C-2]<=h[C]+h[C-1])h[C-1]<h[C+1]&&C--;else if(h[C]>h[C+1])break;T(C)}}function x(){for(;g>1;){var C=g-2;C>0&&h[C-1]<h[C+1]&&C--,T(C)}}function T(C){var I=c[C],_=h[C],F=c[C+1],R=h[C+1];h[C]=_+R,C===g-3&&(c[C+1]=c[C+2],h[C+1]=h[C+2]),g--;var B=l(t[F],t,I,_,0,a);if(I+=B,_-=B,_===0)return;if(R=d(t[I+_-1],t,F,R,R-1,a),R===0)return;_<=R?O(I,_,F,R):E(I,_,F,R)}function O(C,I,_,F){var R=0;for(R=0;R<I;R++)v[R]=t[C+R];var B=0,M=_,X=C;if(t[X++]=t[M++],--F===0){for(R=0;R<I;R++)t[X+R]=v[B+R];return}if(I===1){for(R=0;R<F;R++)t[X+R]=t[M+R];t[X+F]=v[B];return}for(var P=e,z,W,U;;){z=0,W=0,U=!1;do if(a(t[M],v[B])<0){if(t[X++]=t[M++],W++,z=0,--F===0){U=!0;break}}else if(t[X++]=v[B++],z++,W=0,--I===1){U=!0;break}while((z|W)<P);if(U)break;do{if(z=l(t[M],v,B,I,0,a),z!==0){for(R=0;R<z;R++)t[X+R]=v[B+R];if(X+=z,B+=z,I-=z,I<=1){U=!0;break}}if(t[X++]=t[M++],--F===0){U=!0;break}if(W=d(v[B],t,M,F,0,a),W!==0){for(R=0;R<W;R++)t[X+R]=t[M+R];if(X+=W,M+=W,F-=W,F===0){U=!0;break}}if(t[X++]=v[B++],--I===1){U=!0;break}P--}while(z>=y||W>=y);if(U)break;P<0&&(P=0),P+=2}if(e=P,e<1&&(e=1),I===1){for(R=0;R<F;R++)t[X+R]=t[M+R];t[X+F]=v[B]}else{if(I===0)throw new Error;for(R=0;R<I;R++)t[X+R]=v[B+R]}}function E(C,I,_,F){var R=0;for(R=0;R<F;R++)v[R]=t[_+R];var B=C+I-1,M=F-1,X=_+F-1,P=0,z=0;if(t[X--]=t[B--],--I===0){for(P=X-(F-1),R=0;R<F;R++)t[P+R]=v[R];return}if(F===1){for(X-=I,B-=I,z=X+1,P=B+1,R=I-1;R>=0;R--)t[z+R]=t[P+R];t[X]=v[M];return}for(var W=e;;){var U=0,V=0,Q=!1;do if(a(v[M],t[B])<0){if(t[X--]=t[B--],U++,V=0,--I===0){Q=!0;break}}else if(t[X--]=v[M--],V++,U=0,--F===1){Q=!0;break}while((U|V)<W);if(Q)break;do{if(U=I-l(v[M],t,C,I,I-1,a),U!==0){for(X-=U,B-=U,I-=U,z=X+1,P=B+1,R=U-1;R>=0;R--)t[z+R]=t[P+R];if(I===0){Q=!0;break}}if(t[X--]=v[M--],--F===1){Q=!0;break}if(V=F-d(t[B],v,0,F,F-1,a),V!==0){for(X-=V,M-=V,F-=V,z=X+1,P=M+1,R=0;R<V;R++)t[z+R]=v[P+R];if(F<=1){Q=!0;break}}if(t[X--]=t[B--],--I===0){Q=!0;break}W--}while(U>=y||V>=y);if(Q)break;W<0&&(W=0),W+=2}if(e=W,e<1&&(e=1),F===1){for(X-=I,B-=I,z=X+1,P=B+1,R=I-1;R>=0;R--)t[z+R]=t[P+R];t[X]=v[M]}else{if(F===0)throw new Error;for(P=X-(F-1),R=0;R<F;R++)t[P+R]=v[R]}}this.mergeRuns=w,this.forceMergeRuns=x,this.pushRun=b}function n(t,a,e,u){e||(e=0),u||(u=t.length);var r=u-e;if(r<2)return;var s=0;if(r<i){s=A(t,e,u,a),f(t,e,u,e+s,a);return}var c=new o(t,a),h=S(r);do{if(s=A(t,e,u,a),s<h){var g=r;g>h&&(g=h),f(t,e,e+g,e+s,a),s=g}c.pushRun(e,s),c.mergeRuns(),r-=s,e+=s}while(r!==0);c.forceMergeRuns()}k.exports=n},Bd2K:function(k,D,i){(function(y){y(i("VrN/"),i("osHv"))})(function(y){y.defineOption("autoCloseTags",!1,function(o,n,t){if(t!=y.Init&&t&&o.removeKeyMap("autoCloseTags"),!n)return;var a={name:"autoCloseTags"};(typeof n!="object"||n.whenClosing!==!1)&&(a["'/'"]=function(e){return f(e)}),(typeof n!="object"||n.whenOpening!==!1)&&(a["'>'"]=function(e){return A(e)}),o.addKeyMap(a)});var p=["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 A(o){if(o.getOption("disableInput"))return y.Pass;for(var n=o.listSelections(),t=[],a=o.getOption("autoCloseTags"),e=0;e<n.length;e++){if(!n[e].empty())return y.Pass;var u=n[e].head,r=o.getTokenAt(u),s=y.innerMode(o.getMode(),r.state),c=s.state,h=s.mode.xmlCurrentTag&&s.mode.xmlCurrentTag(c),g=h&&h.name;if(!g)return y.Pass;var v=s.mode.configuration=="html",b=typeof a=="object"&&a.dontCloseTags||v&&p,w=typeof a=="object"&&a.indentTags||v&&S;r.end>u.ch&&(g=g.slice(0,g.length-r.end+u.ch));var x=g.toLowerCase();if(!g||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,x)>-1||l(o,s.mode.xmlCurrentContext&&s.mode.xmlCurrentContext(c)||[],g,u,!0))return y.Pass;var T=typeof a=="object"&&a.emptyTags;if(T&&d(T,g)>-1){t[e]={text:"/>",newPos:y.Pos(u.line,u.ch+2)};continue}var O=w&&d(w,x)>-1;t[e]={indent:O,text:">"+(O?`
`:"")+"</"+g+">",newPos:O?y.Pos(u.line+1,0):y.Pos(u.line,u.ch+1)}}for(var E=typeof a=="object"&&a.dontIndentOnAutoClose,e=n.length-1;e>=0;e--){var C=t[e];o.replaceRange(C.text,n[e].head,n[e].anchor,"+insert");var I=o.listSelections().slice(0);I[e]={head:C.newPos,anchor:C.newPos},o.setSelections(I),!E&&C.indent&&(o.indentLine(C.newPos.line,null,!0),o.indentLine(C.newPos.line+1,null,!0))}}function m(o,n){for(var t=o.listSelections(),a=[],e=n?"/":"</",u=o.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=o.getTokenAt(c),g=y.innerMode(o.getMode(),h.state),v=g.state;if(n&&(h.type=="string"||h.string.charAt(0)!="<"||h.start!=c.ch-1))return y.Pass;var b,w=g.mode.name!="xml"&&o.getMode().name=="htmlmixed";if(w&&g.mode.name=="javascript")b=e+"script";else if(w&&g.mode.name=="css")b=e+"style";else{var x=g.mode.xmlCurrentContext&&g.mode.xmlCurrentContext(v);if(!x||x.length&&l(o,x,x[x.length-1],c))return y.Pass;b=e+x[x.length-1]}o.getLine(c.line).charAt(h.end)!=">"&&(b+=">"),a[s]=b}if(o.replaceSelections(a),t=o.listSelections(),!r)for(var s=0;s<t.length;s++)(s==t.length-1||t[s].head.line<t[s+1].head.line)&&o.indentLine(t[s].head.line)}function f(o){return o.getOption("disableInput")?y.Pass:m(o,!0)}y.commands.closeTag=function(o){return m(o)};function d(o,n){if(o.indexOf)return o.indexOf(n);for(var t=0,a=o.length;t<a;++t)if(o[t]==n)return t;return-1}function l(o,n,t,a,e){if(!y.scanForClosingTag)return!1;var u=Math.min(o.lastLine()+1,a.line+500),r=y.scanForClosingTag(o,a,null,u);if(!r||r.tag!=t)return!1;for(var s=e?1:0,c=n.length-1;c>=0&&n[c]==t;c--)++s;a=r.to;for(var c=1;c<s;c++){var h=y.scanForClosingTag(o,a,null,u);if(!h||h.tag!=t)return!1;a=h.to}return!0}})},BlVb:function(k,D,i){var y=i("hyiK"),p=1e-8;function S(m,f){return Math.abs(m-f)<p}function A(m,f,d){var l=0,o=m[0];if(!o)return!1;for(var n=1;n<m.length;n++){var t=m[n];l+=y(o[0],o[1],t[0],t[1],f,d),o=t}var a=m[0];return(!S(o[0],a[0])||!S(o[1],a[1]))&&(l+=y(o[0],o[1],a[0],a[1],f,d)),l!==0}D.contain=A},BoS7:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("czTT"),A=i.n(S)},Bq2U:function(k,D,i){var y=i("RDYZ"),p=i("Qe9p"),S=i("bYtY"),A=S.isArrayLike,m=Array.prototype.slice;function f(b,w){return b[w]}function d(b,w,x){b[w]=x}function l(b,w,x){return(w-b)*x+b}function o(b,w,x){return x>.5?w:b}function n(b,w,x,T,O){var E=b.length;if(O===1)for(var C=0;C<E;C++)T[C]=l(b[C],w[C],x);else for(var I=E&&b[0].length,C=0;C<E;C++)for(var _=0;_<I;_++)T[C][_]=l(b[C][_],w[C][_],x)}function t(b,w,x){var T=b.length,O=w.length;if(T!==O){var E=T>O;if(E)b.length=O;else for(var C=T;C<O;C++)b.push(x===1?w[C]:m.call(w[C]))}for(var I=b[0]&&b[0].length,C=0;C<b.length;C++)if(x===1)isNaN(b[C])&&(b[C]=w[C]);else for(var _=0;_<I;_++)isNaN(b[C][_])&&(b[C][_]=w[C][_])}function a(b,w,x){if(b===w)return!0;var T=b.length;if(T!==w.length)return!1;if(x===1){for(var O=0;O<T;O++)if(b[O]!==w[O])return!1}else for(var E=b[0].length,O=0;O<T;O++)for(var C=0;C<E;C++)if(b[O][C]!==w[O][C])return!1;return!0}function e(b,w,x,T,O,E,C,I,_){var F=b.length;if(_===1)for(var R=0;R<F;R++)I[R]=u(b[R],w[R],x[R],T[R],O,E,C);else for(var B=b[0].length,R=0;R<F;R++)for(var M=0;M<B;M++)I[R][M]=u(b[R][M],w[R][M],x[R][M],T[R][M],O,E,C)}function u(b,w,x,T,O,E,C){var I=(x-b)*.5,_=(T-w)*.5;return(2*(w-x)+I+_)*C+(-3*(w-x)-2*I-_)*E+I*O+w}function r(b){if(A(b)){var w=b.length;if(A(b[0])){for(var x=[],T=0;T<w;T++)x.push(m.call(b[T]));return x}return m.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 w=b[b.length-1].value;return A(w&&w[0])?2:1}function h(b,w,x,T,O,E){var C=b._getter,I=b._setter,_=w==="spline",F=T.length;if(!F)return;var R=T[0].value,B=A(R),M=!1,X=!1,P=B?c(T):0,z;T.sort(function(Z,Y){return Z.time-Y.time}),z=T[F-1].time;for(var W=[],U=[],V=T[0].value,Q=!0,G=0;G<F;G++){W.push(T[G].time/z);var te=T[G].value;if(B&&a(te,V,P)||!B&&te===V||(Q=!1),V=te,typeof te=="string"){var $=p.parse(te);$?(te=$,M=!0):X=!0}U.push(te)}if(!E&&Q)return;for(var le=U[F-1],G=0;G<F-1;G++)B?t(U[G],le,P):isNaN(U[G])&&!isNaN(le)&&!X&&!M&&(U[G]=le);B&&t(C(b._target,O),le,P);var re=0,Se=0,Re,Pe,Je,Ve,ct,Ue;if(M)var ue=[0,0,0,0];var rt=function(Y,ee){var fe;if(ee<0)fe=0;else if(ee<Se){for(Re=Math.min(re+1,F-1),fe=Re;fe>=0&&!(W[fe]<=ee);fe--);fe=Math.min(fe,F-2)}else{for(fe=re;fe<F&&!(W[fe]>ee);fe++);fe=Math.min(fe-1,F-2)}re=fe,Se=ee;var be=W[fe+1]-W[fe];if(be===0)return;if(Pe=(ee-W[fe])/be,_)if(Ve=U[fe],Je=U[fe===0?fe:fe-1],ct=U[fe>F-2?F-1:fe+1],Ue=U[fe>F-3?F-1:fe+2],B)e(Je,Ve,ct,Ue,Pe,Pe*Pe,Pe*Pe*Pe,C(Y,O),P);else{var Ce;if(M)Ce=e(Je,Ve,ct,Ue,Pe,Pe*Pe,Pe*Pe*Pe,ue,1),Ce=s(ue);else{if(X)return o(Ve,ct,Pe);Ce=u(Je,Ve,ct,Ue,Pe,Pe*Pe,Pe*Pe*Pe)}I(Y,O,Ce)}else if(B)n(U[fe],U[fe+1],Pe,C(Y,O),P);else{var Ce;if(M)n(U[fe],U[fe+1],Pe,ue,1),Ce=s(ue);else{if(X)return o(U[fe],U[fe+1],Pe);Ce=l(U[fe],U[fe+1],Pe)}I(Y,O,Ce)}},ge=new y({target:b._target,life:z,loop:b._loop,delay:b._delay,onframe:rt,ondestroy:x});return w&&w!=="spline"&&(ge.easing=w),ge}var g=function(w,x,T,O){this._tracks={},this._target=w,this._loop=x||!1,this._getter=T||f,this._setter=O||d,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};g.prototype={when:function(w,x){var T=this._tracks;for(var O in x){if(!x.hasOwnProperty(O))continue;if(!T[O]){T[O]=[];var E=this._getter(this._target,O);if(E==null)continue;w!==0&&T[O].push({time:0,value:r(E)})}T[O].push({time:w,value:x[O]})}return this},during:function(w){return this._onframeList.push(w),this},pause:function(){for(var w=0;w<this._clipList.length;w++)this._clipList[w].pause();this._paused=!0},resume:function(){for(var w=0;w<this._clipList.length;w++)this._clipList[w].resume();this._paused=!1},isPaused:function(){return!!this._paused},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var w=this._doneList,x=w.length,T=0;T<x;T++)w[T].call(this)},start:function(w,x){var T=this,O=0,E=function(){O--,O||T._doneCallback()},C;for(var I in this._tracks){if(!this._tracks.hasOwnProperty(I))continue;var _=h(this,w,E,this._tracks[I],I,x);_&&(this._clipList.push(_),O++,this.animation&&this.animation.addClip(_),C=_)}if(C){var F=C.onframe;C.onframe=function(R,B){F(R,B);for(var M=0;M<T._onframeList.length;M++)T._onframeList[M](R,B)}}return O||this._doneCallback(),this},stop:function(w){for(var x=this._clipList,T=this.animation,O=0;O<x.length;O++){var E=x[O];w&&E.onframe(this._target,1),T&&T.removeClip(E)}x.length=0},delay:function(w){return this._delay=w,this},done:function(w){return w&&this._doneList.push(w),this},getClips:function(){return this._clipList}};var v=g;k.exports=v},Bqw1:function(k,D,i){"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(k,D,i){var y=i("bYtY"),p=i("Qxkt"),S=i("Mdki"),A=i("YXkt"),m=i("sdST"),f=function(n,t){this.name=n||"",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(n,t,a){typeof n=="function"&&(a=t,t=n,n=null),n=n||{},y.isString(n)&&(n={order:n});var e=n.order||"preorder",u=this[n.attr||"children"],r;e==="preorder"&&(r=t.call(a,this));for(var s=0;!r&&s<u.length;s++)u[s].eachNode(n,t,a);e==="postorder"&&t.call(a,this)},updateDepthAndHeight:function(n){var t=0;this.depth=n;for(var a=0;a<this.children.length;a++){var e=this.children[a];e.updateDepthAndHeight(n+1),e.height>t&&(t=e.height)}this.height=t+1},getNodeById:function(n){if(this.getId()===n)return this;for(var t=0,a=this.children,e=a.length;t<e;t++){var u=a[t].getNodeById(n);if(u)return u}},contains:function(n){if(n===this)return!0;for(var t=0,a=this.children,e=a.length;t<e;t++){var u=a[t].contains(n);if(u)return u}},getAncestors:function(n){for(var t=[],a=n?this:this.parentNode;a;)t.push(a),a=a.parentNode;return t.reverse(),t},getValue:function(n){var t=this.hostTree.data;return t.get(t.getDimension(n||"value"),this.dataIndex)},setLayout:function(n,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,n,t)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(n){if(this.dataIndex<0)return;var t=this.hostTree,a=t.data.getItemModel(this.dataIndex),e=this.getLevelModel();return e?a.getModel(n,e.getModel(n)):a.getModel(n)},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(n,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,n,t)},getVisual:function(n,t){return this.hostTree.data.getItemVisual(this.dataIndex,n,t)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)},isAncestorOf:function(n){for(var t=n.parentNode;t;){if(t===this)return!0;t=t.parentNode}return!1},isDescendantOf:function(n){return n!==this&&n.isAncestorOf(this)}};function d(n,t){this.root,this.data,this._nodes=[],this.hostModel=n,this.levelModels=y.map(t||[],function(a){return new p(a,n,n.ecModel)})}d.prototype={constructor:d,type:"tree",eachNode:function(n,t,a){this.root.eachNode(n,t,a)},getNodeByDataIndex:function(n){var t=this.data.getRawIndex(n);return this._nodes[t]},getNodeByName:function(n){return this.root.getNodeByName(n)},update:function(){for(var n=this.data,t=this._nodes,a=0,e=t.length;a<e;a++)t[a].dataIndex=-1;for(var a=0,e=n.count();a<e;a++)t[n.getRawIndex(a)].dataIndex=a},clearLayouts:function(){this.data.clearItemLayouts()}},d.createTree=function(n,t,a,e){var u=new d(t,a&&a.levels),r=[],s=1;c(n);function c(v,b){var w=v.value;s=Math.max(s,y.isArray(w)?w.length:1),r.push(v);var x=new f(v.name,u);b?l(x,b):u.root=x,u._nodes.push(x);var T=v.children;if(T)for(var O=0;O<T.length;O++)c(T[O],x)}u.root.updateDepthAndHeight(0);var h=m(r,{coordDimensions:["value"],dimensionsCount:s}),g=new A(h,t);return g.initData(r),e&&e(g),S({mainData:g,struct:u,structAttr:"tree"}),u.update(),u};function l(n,t){var a=t.children;if(n.parentNode===t)return;a.push(n),n.parentNode=t}var o=d;k.exports=o},BtR2:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("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"},A=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:A}))};f.displayName="LikeOutlined";var d=D.a=p.forwardRef(f)},BuqR:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),A=i("6uqw"),m=i("XxSj"),f=i("YOMW"),d=i("OELB"),l=d.reformIntervals,o=A.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(e,u){o.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetExtent();var r=this._mode=this._determineMode();n[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(g){var g=S.clone(g);return h!=="inRange"&&(g.visual=null),g}))})},completeVisualOption:function(){var e=this.option,u={},r=m.listVisualTypes(),s=this.isCategory();S.each(e.pieces,function(h){S.each(r,function(g){h.hasOwnProperty(g)&&(u[g]=1)})}),S.each(u,function(h,g){var v=0;S.each(this.stateList,function(b){v|=c(e,b,g)||c(e.target,b,g)},this),!v&&S.each(this.stateList,function(b){(e[b]||(e[b]={}))[g]=f.get(g,b==="inRange"?"active":"inactive",s)})},this);function c(h,g,v){return h&&h[g]&&(S.isObject(h[g])?h[g].hasOwnProperty(v):h[g]===v)}A.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(g,v){var b=this.getSelectedMapKey(g);c.hasOwnProperty(b)||(c[b]=!0)},this),r.selectedMode==="single"){var h=!1;S.each(s,function(g,v){var b=this.getSelectedMapKey(g);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=m.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,g){var v=m.findPieceIndex(h,this._pieceList);v===e&&s.push(g)},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,w){var x=s.getRepresentValue({interval:b});w||(w=s.getValueState(x));var T=e(x,w);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 g=h[0].interval[0];g!==-Infinity&&h.unshift({interval:[-Infinity,g]}),g=h[h.length-1].interval[1],g!==Infinity&&h.push({interval:[g,Infinity]})}var v=-Infinity;return S.each(h,function(b){var w=b.interval;w&&(w[0]>v&&c([v,w[0]],"outOfRange"),c(w.slice()),v=w[1])},this),{stops:u,outerColors:r}}}),n={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 g=0,v=s[0];g<c;v+=h,g++){var b=g===c-1?s[1]:v+h;u.push({interval:[v,b],close:[1,1]})}e.maxOpen&&u.push({interval:[s[1],Infinity],close:[0,0]}),l(u),S.each(u,function(w,x){w.index=x,w.text=this.formatValueText(w.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 g=c.interval=[],v=c.close=[0,0],b=[1,0,1],w=[-Infinity,Infinity],x=[],T=0;T<2;T++){for(var O=[["gte","gt","min"],["lte","lt","max"]][T],E=0;E<3&&g[T]==null;E++)g[T]=r[O[E]],v[T]=b[E],x[T]=E===2;g[T]==null&&(g[T]=w[T])}x[0]&&g[1]===Infinity&&(v[0]=0),x[1]&&g[0]===-Infinity&&(v[1]=0),g[0]===g[1]&&v[0]&&v[1]&&(c.value=g[0])}c.visual=m.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 a=o;k.exports=a},BvKs:function(k,D,i){"use strict";i.d(D,"a",function(){return Gt});var y=i("pVnL"),p=i.n(y),S=i("lSNA"),A=i.n(S),m=i("lwsE"),f=i.n(m),d=i("W8MJ"),l=i.n(d),o=i("7W2i"),n=i.n(o),t=i("LQ03"),a=i.n(t),e=i("q1tI"),u=i("VTBJ"),r=i("1OyB"),s=i("vuIU"),c=i("JX7q"),h=i("Ji7U"),g=i("LK+K"),v=i("I8Z2"),b=i("BGR+"),w=i("wx14"),x=i("rePB"),T=i("4IlW"),O=i("2GS6"),E=i("Gytx"),C=i.n(E),I=i("TSYQ"),_=i.n(I),F=i("U8pU"),R=i("ODXe"),B=/iPhone/i,M=/iPod/i,X=/iPad/i,P=/\bAndroid(?:.+)Mobile\b/i,z=/Android/i,W=/\bAndroid(?:.+)SD4930UR\b/i,U=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,V=/Windows Phone/i,Q=/\bWindows(?:.+)ARM\b/i,G=/BlackBerry/i,te=/BB10/i,$=/Opera Mini/i,le=/\b(CriOS|Chrome)(?:.+)Mobile/i,re=/Mobile(?:.+)Firefox\b/i;function Se(vt,bt){return vt.test(bt)}function Re(vt){var bt=vt||(typeof navigator!="undefined"?navigator.userAgent:""),fr=bt.split("[FBAN");if(typeof fr[1]!="undefined"){var Jt=fr,Ut=Object(R.a)(Jt,1);bt=Ut[0]}if(fr=bt.split("Twitter"),typeof fr[1]!="undefined"){var er=fr,Mt=Object(R.a)(er,1);bt=Mt[0]}var Zt={apple:{phone:Se(B,bt)&&!Se(V,bt),ipod:Se(M,bt),tablet:!Se(B,bt)&&Se(X,bt)&&!Se(V,bt),device:(Se(B,bt)||Se(M,bt)||Se(X,bt))&&!Se(V,bt)},amazon:{phone:Se(W,bt),tablet:!Se(W,bt)&&Se(U,bt),device:Se(W,bt)||Se(U,bt)},android:{phone:!Se(V,bt)&&Se(W,bt)||!Se(V,bt)&&Se(P,bt),tablet:!Se(V,bt)&&!Se(W,bt)&&!Se(P,bt)&&(Se(U,bt)||Se(z,bt)),device:!Se(V,bt)&&(Se(W,bt)||Se(U,bt)||Se(P,bt)||Se(z,bt))||Se(/\bokhttp\b/i,bt)},windows:{phone:Se(V,bt),tablet:Se(Q,bt),device:Se(V,bt)||Se(Q,bt)},other:{blackberry:Se(G,bt),blackberry10:Se(te,bt),opera:Se($,bt),firefox:Se(re,bt),chrome:Se(le,bt),device:Se(G,bt)||Se(te,bt)||Se($,bt)||Se(re,bt)||Se(le,bt)},any:null,phone:null,tablet:null};return Zt.any=Zt.apple.device||Zt.android.device||Zt.windows.device||Zt.other.device,Zt.phone=Zt.apple.phone||Zt.android.phone||Zt.windows.phone,Zt.tablet=Zt.apple.tablet||Zt.android.tablet||Zt.windows.tablet,Zt}var Pe=Object(u.a)(Object(u.a)({},Re()),{},{isMobile:Re}),Je=Pe;function Ve(){}function ct(vt,bt,fr){var Jt=bt||"";return vt.key||"".concat(Jt,"item_").concat(fr)}function Ue(vt){return"".concat(vt,"-menu-")}function ue(vt,bt){var fr=-1;e.Children.forEach(vt,function(Jt){fr+=1,Jt&&Jt.type&&Jt.type.isMenuItemGroup?e.Children.forEach(Jt.props.children,function(Ut){fr+=1,bt(Ut,fr)}):bt(Jt,fr)})}function rt(vt,bt,fr){if(!vt||fr.find)return;e.Children.forEach(vt,function(Jt){if(Jt){var Ut=Jt.type;if(!Ut||!(Ut.isSubMenu||Ut.isMenuItem||Ut.isMenuItemGroup))return;bt.indexOf(Jt.key)!==-1?fr.find=!0:Jt.props.children&&rt(Jt.props.children,bt,fr)}})}var ge=["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"],Z=function(bt){var fr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Jt=bt&&typeof bt.getBoundingClientRect=="function"&&bt.getBoundingClientRect().width;if(Jt){if(fr){var Ut=getComputedStyle(bt),er=Ut.marginLeft,Mt=Ut.marginRight;Jt+=+er.replace("px","")+ +Mt.replace("px","")}Jt=+Jt.toFixed(6)}return Jt||0},Y=function(bt,fr,Jt){bt&&Object(F.a)(bt.style)==="object"&&(bt.style[fr]=Jt)},ee=function(){return Je.any},fe=i("KQm4"),be=i("Ff2n"),Ce=i("i8i4"),Te=i("bdgK"),he=i("Uaa1"),ye=i("HTfv"),Ie={adjustX:1,adjustY:1},tt={topLeft:{points:["bl","tl"],overflow:Ie,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ie,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Ie,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Ie,offset:[4,0]}},pt={topLeft:{points:["bl","tl"],overflow:Ie,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Ie,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Ie,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Ie,offset:[4,0]}},st=tt,Fe=0,ft={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},et=function(bt,fr,Jt){var Ut=Ue(fr),er=bt.getState();bt.setState({defaultActiveFirst:Object(u.a)(Object(u.a)({},er.defaultActiveFirst),{},Object(x.a)({},Ut,Jt))})},wt=function(vt){Object(h.a)(fr,vt);var bt=Object(g.a)(fr);function fr(Jt){var Ut;Object(r.a)(this,fr),Ut=bt.call(this,Jt),Ut.onDestroy=function(Lr){Ut.props.onDestroy(Lr)},Ut.onKeyDown=function(Lr){var dn=Lr.keyCode,gn=Ut.menuInstance,ri=Ut.props,Zn=ri.isOpen,pi=ri.store;if(dn===T.a.ENTER)return Ut.onTitleClick(Lr),et(pi,Ut.props.eventKey,!0),!0;if(dn===T.a.RIGHT)return Zn?gn.onKeyDown(Lr):(Ut.triggerOpenChange(!0),et(pi,Ut.props.eventKey,!0)),!0;if(dn===T.a.LEFT){var Ci;if(Zn)Ci=gn.onKeyDown(Lr);else return;return Ci||(Ut.triggerOpenChange(!1),Ci=!0),Ci}return Zn&&(dn===T.a.UP||dn===T.a.DOWN)?gn.onKeyDown(Lr):void 0},Ut.onOpenChange=function(Lr){Ut.props.onOpenChange(Lr)},Ut.onPopupVisibleChange=function(Lr){Ut.triggerOpenChange(Lr,Lr?"mouseenter":"mouseleave")},Ut.onMouseEnter=function(Lr){var dn=Ut.props,gn=dn.eventKey,ri=dn.onMouseEnter,Zn=dn.store;et(Zn,Ut.props.eventKey,!1),ri({key:gn,domEvent:Lr})},Ut.onMouseLeave=function(Lr){var dn=Ut.props,gn=dn.parentMenu,ri=dn.eventKey,Zn=dn.onMouseLeave;gn.subMenuInstance=Object(c.a)(Ut),Zn({key:ri,domEvent:Lr})},Ut.onTitleMouseEnter=function(Lr){var dn=Ut.props,gn=dn.eventKey,ri=dn.onItemHover,Zn=dn.onTitleMouseEnter;ri({key:gn,hover:!0}),Zn({key:gn,domEvent:Lr})},Ut.onTitleMouseLeave=function(Lr){var dn=Ut.props,gn=dn.parentMenu,ri=dn.eventKey,Zn=dn.onItemHover,pi=dn.onTitleMouseLeave;gn.subMenuInstance=Object(c.a)(Ut),Zn({key:ri,hover:!1}),pi({key:ri,domEvent:Lr})},Ut.onTitleClick=function(Lr){var dn=Object(c.a)(Ut),gn=dn.props;if(gn.onTitleClick({key:gn.eventKey,domEvent:Lr}),gn.triggerSubMenuAction==="hover")return;Ut.triggerOpenChange(!gn.isOpen,"click"),et(gn.store,Ut.props.eventKey,!1)},Ut.onSubMenuClick=function(Lr){typeof Ut.props.onClick=="function"&&Ut.props.onClick(Ut.addKeyPath(Lr))},Ut.onSelect=function(Lr){Ut.props.onSelect(Lr)},Ut.onDeselect=function(Lr){Ut.props.onDeselect(Lr)},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(Lr){Ut.menuInstance=Lr},Ut.addKeyPath=function(Lr){return Object(u.a)(Object(u.a)({},Lr),{},{keyPath:(Lr.keyPath||[]).concat(Ut.props.eventKey)})},Ut.triggerOpenChange=function(Lr,dn){var gn=Ut.props.eventKey,ri=function(){Ut.onOpenChange({key:gn,item:Object(c.a)(Ut),trigger:dn,open:Lr})};dn==="mouseenter"?Ut.mouseenterTimeout=setTimeout(function(){ri()},0):ri()},Ut.isChildrenSelected=function(){var Lr={find:!1};return rt(Ut.props.children,Ut.props.selectedKeys,Lr),Lr.find},Ut.isOpen=function(){return Ut.props.openKeys.indexOf(Ut.props.eventKey)!==-1},Ut.adjustWidth=function(){if(!Ut.subMenuTitle||!Ut.menuInstance)return;var Lr=Ce.findDOMNode(Ut.menuInstance);if(Lr.offsetWidth>=Ut.subMenuTitle.offsetWidth)return;Lr.style.minWidth="".concat(Ut.subMenuTitle.offsetWidth,"px")},Ut.saveSubMenuTitle=function(Lr){Ut.subMenuTitle=Lr},Ut.getBaseProps=function(){var Lr=Object(c.a)(Ut),dn=Lr.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[Ue(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(Lr,dn){var gn=Object(c.a)(Ut),ri=gn.haveRendered,Zn=Ut.props,pi=Zn.motion,Ci=Zn.rootPrefixCls,Ni=Object(u.a)(Object(u.a)({},pi),{},{leavedClassName:"".concat(Ci,"-hidden"),removeOnLeave:!1,motionAppear:ri||!dn||Lr!=="inline"});return Ni};var er=Jt.store,Mt=Jt.eventKey,Zt=er.getState(),Hr=Zt.defaultActiveFirst;Ut.isRootMenu=!1;var Ir=!1;return Hr&&(Ir=Hr[Mt]),et(er,Mt,Ir),Ut}return Object(s.a)(fr,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Ut=this,er=this.props,Mt=er.mode,Zt=er.parentMenu,Hr=er.manualRef;if(Hr&&Hr(this),Mt!=="horizontal"||!Zt.isRootMenu||!this.props.isOpen)return;this.minWidthTimeout=setTimeout(function(){return Ut.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var Ut=this.props,er=Ut.onDestroy,Mt=Ut.eventKey;er&&er(Mt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(Ut){var er=this,Mt=this.getBaseProps(),Zt=this.getMotion(Mt.mode,Mt.visible);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Mt.visible||Mt.forceSubMenuRender,!this.haveOpened)return e.createElement("div",null);var Hr=Mt.direction;return e.createElement(ye.default,Object.assign({visible:Mt.visible},Zt),function(Ir){var Lr=Ir.className,dn=Ir.style,gn=_()("".concat(Mt.prefixCls,"-sub"),Lr,Object(x.a)({},"".concat(Mt.prefixCls,"-rtl"),Hr==="rtl"));return e.createElement(nr,Object.assign({},Mt,{id:er.internalMenuId,className:gn,style:dn}),Ut)})}},{key:"render",value:function(){var Ut,er=Object(u.a)({},this.props),Mt=er.isOpen,Zt=this.getPrefixCls(),Hr=er.mode==="inline",Ir=_()(Zt,"".concat(Zt,"-").concat(er.mode),(Ut={},Object(x.a)(Ut,er.className,!!er.className),Object(x.a)(Ut,this.getOpenClassName(),Mt),Object(x.a)(Ut,this.getActiveClassName(),er.active||Mt&&!Hr),Object(x.a)(Ut,this.getDisabledClassName(),er.disabled),Object(x.a)(Ut,this.getSelectedClassName(),this.isChildrenSelected()),Ut));this.internalMenuId||(er.eventKey?this.internalMenuId="".concat(er.eventKey,"$Menu"):(Fe+=1,this.internalMenuId="$__$".concat(Fe,"$Menu")));var Lr={},dn={},gn={};er.disabled||(Lr={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},dn={onClick:this.onTitleClick},gn={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var ri={},Zn=er.direction;Hr&&(Zn==="rtl"?ri.paddingRight=er.inlineIndent*er.level:ri.paddingLeft=er.inlineIndent*er.level);var pi={};this.props.isOpen&&(pi={"aria-owns":this.internalMenuId});var Ci=null;er.mode!=="horizontal"&&(Ci=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(Ci=e.createElement(this.props.expandIcon,Object(u.a)({},this.props))));var Ni=e.createElement("div",Object.assign({ref:this.saveSubMenuTitle,style:ri,className:"".concat(Zt,"-title"),role:"button"},gn,dn,{"aria-expanded":Mt},pi,{"aria-haspopup":"true",title:typeof er.title=="string"?er.title:void 0}),er.title,Ci||e.createElement("i",{className:"".concat(Zt,"-arrow")})),zi=this.renderChildren(er.children),it=er.parentMenu.isRootMenu?er.parentMenu.props.getPopupContainer:function(Vr){return Vr.parentNode},Ne=ft[er.mode],He=er.popupOffset?{offset:er.popupOffset}:{},Ge=er.mode==="inline"?"":er.popupClassName;Ge+=Zn==="rtl"?" ".concat(Zt,"-rtl"):"";var nt=er.disabled,$e=er.triggerSubMenuAction,ot=er.subMenuOpenDelay,Pt=er.forceSubMenuRender,xt=er.subMenuCloseDelay,rr=er.builtinPlacements;ge.forEach(function(Vr){return delete er[Vr]}),delete er.onClick;var Fr=Zn==="rtl"?Object.assign({},pt,rr):Object.assign({},tt,rr);return delete er.direction,e.createElement("li",Object.assign({},er,Lr,{className:Ir,role:"menuitem"}),Hr&&Ni,Hr&&zi,!Hr&&e.createElement(he.a,{prefixCls:Zt,popupClassName:_()("".concat(Zt,"-popup"),Ge),getPopupContainer:it,builtinPlacements:Fr,popupPlacement:Ne,popupVisible:Mt,popupAlign:He,popup:zi,action:nt?[]:[$e],mouseEnterDelay:ot,mouseLeaveDelay:xt,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Pt},Ni))}}]),fr}(e.Component);wt.defaultProps={onMouseEnter:Ve,onMouseLeave:Ve,onTitleMouseEnter:Ve,onTitleMouseLeave:Ve,onTitleClick:Ve,manualRef:Ve,mode:"vertical",title:""};var Ht=Object(v.b)(function(vt,bt){var fr=vt.openKeys,Jt=vt.activeKey,Ut=vt.selectedKeys,er=bt.eventKey,Mt=bt.subMenuKey;return{isOpen:fr.indexOf(er)>-1,active:Jt[Mt]===er,selectedKeys:Ut}})(wt);Ht.isSubMenu=!0;var Dt=Ht,Tt="menuitem-overflowed",Bt=.5,Ke=function(vt){Object(h.a)(fr,vt);var bt=Object(g.a)(fr);function fr(){var Jt;return Object(r.a)(this,fr),Jt=bt.apply(this,arguments),Jt.resizeObserver=null,Jt.mutationObserver=null,Jt.originalTotalWidth=0,Jt.overflowedItems=[],Jt.menuItemSizes=[],Jt.cancelFrameId=null,Jt.state={lastVisibleIndex:void 0},Jt.getMenuItemNodes=function(){var Ut=Jt.props.prefixCls,er=Ce.findDOMNode(Object(c.a)(Jt));return er?[].slice.call(er.children).filter(function(Mt){return Mt.className.split(" ").indexOf("".concat(Ut,"-overflowed-submenu"))<0}):[]},Jt.getOverflowedSubMenuItem=function(Ut,er,Mt){var Zt=Jt.props,Hr=Zt.overflowedIndicator,Ir=Zt.level,Lr=Zt.mode,dn=Zt.prefixCls,gn=Zt.theme;if(Ir!==1||Lr!=="horizontal")return null;var ri=Jt.props.children[0],Zn=ri.props,pi=Zn.children,Ci=Zn.title,Ni=Zn.style,zi=Object(be.a)(Zn,["children","title","style"]),it=Object(u.a)({},Ni),Ne="".concat(Ut,"-overflowed-indicator"),He="".concat(Ut,"-overflowed-indicator");er.length===0&&Mt!==!0?it=Object(u.a)(Object(u.a)({},it),{},{display:"none"}):Mt&&(it=Object(u.a)(Object(u.a)({},it),{},{visibility:"hidden",position:"absolute"}),Ne="".concat(Ne,"-placeholder"),He="".concat(He,"-placeholder"));var Ge=gn?"".concat(dn,"-").concat(gn):"",nt={};return ge.forEach(function($e){zi[$e]!==void 0&&(nt[$e]=zi[$e])}),e.createElement(Dt,Object.assign({title:Hr,className:"".concat(dn,"-overflowed-submenu"),popupClassName:Ge},nt,{key:Ne,eventKey:He,disabled:!1,style:it}),er)},Jt.setChildrenWidthAndResize=function(){if(Jt.props.mode!=="horizontal")return;var Ut=Ce.findDOMNode(Object(c.a)(Jt));if(!Ut)return;var er=Ut.children;if(!er||er.length===0)return;var Mt=Ut.children[er.length-1];Y(Mt,"display","inline-block");var Zt=Jt.getMenuItemNodes(),Hr=Zt.filter(function(Ir){return Ir.className.split(" ").indexOf(Tt)>=0});Hr.forEach(function(Ir){Y(Ir,"display","inline-block")}),Jt.menuItemSizes=Zt.map(function(Ir){return Z(Ir,!0)}),Hr.forEach(function(Ir){Y(Ir,"display","none")}),Jt.overflowedIndicatorWidth=Z(Ut.children[Ut.children.length-1],!0),Jt.originalTotalWidth=Jt.menuItemSizes.reduce(function(Ir,Lr){return Ir+Lr},0),Jt.handleResize(),Y(Mt,"display","none")},Jt.handleResize=function(){if(Jt.props.mode!=="horizontal")return;var Ut=Ce.findDOMNode(Object(c.a)(Jt));if(!Ut)return;var er=Z(Ut);Jt.overflowedItems=[];var Mt=0,Zt;Jt.originalTotalWidth>er+Bt&&(Zt=-1,Jt.menuItemSizes.forEach(function(Hr){Mt+=Hr,Mt+Jt.overflowedIndicatorWidth<=er&&(Zt+=1)})),Jt.setState({lastVisibleIndex:Zt})},Jt}return Object(s.a)(fr,[{key:"componentDidMount",value:function(){var Ut=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var er=Ce.findDOMNode(this);if(!er)return;this.resizeObserver=new Te.default(function(Mt){Mt.forEach(function(){var Zt=Ut.cancelFrameId;cancelAnimationFrame(Zt),Ut.cancelFrameId=requestAnimationFrame(Ut.setChildrenWidthAndResize)})}),[].slice.call(er.children).concat(er).forEach(function(Mt){Ut.resizeObserver.observe(Mt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){Ut.resizeObserver.disconnect(),[].slice.call(er.children).concat(er).forEach(function(Mt){Ut.resizeObserver.observe(Mt)}),Ut.setChildrenWidthAndResize()}),this.mutationObserver.observe(er,{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 er=this,Mt=this.state.lastVisibleIndex;return(Ut||[]).reduce(function(Zt,Hr,Ir){var Lr=Hr;if(er.props.mode==="horizontal"){var dn=er.getOverflowedSubMenuItem(Hr.props.eventKey,[]);Mt!==void 0&&er.props.className.indexOf("".concat(er.props.prefixCls,"-root"))!==-1&&(Ir>Mt&&(Lr=e.cloneElement(Hr,{style:{display:"none"},eventKey:"".concat(Hr.props.eventKey,"-hidden"),className:"".concat(Tt)})),Ir===Mt+1&&(er.overflowedItems=Ut.slice(Mt+1).map(function(ri){return e.cloneElement(ri,{key:ri.props.eventKey,mode:"vertical-left"})}),dn=er.getOverflowedSubMenuItem(Hr.props.eventKey,er.overflowedItems)));var gn=[].concat(Object(fe.a)(Zt),[dn,Lr]);return Ir===Ut.length-1&&gn.push(er.getOverflowedSubMenuItem(Hr.props.eventKey,[],!0)),gn}return[].concat(Object(fe.a)(Zt),[Lr])},[])}},{key:"render",value:function(){var Ut=this.props,er=Ut.visible,Mt=Ut.prefixCls,Zt=Ut.overflowedIndicator,Hr=Ut.mode,Ir=Ut.level,Lr=Ut.tag,dn=Ut.children,gn=Ut.theme,ri=Object(be.a)(Ut,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Zn=Lr;return e.createElement(Zn,Object.assign({},ri),this.renderChildren(dn))}}]),fr}(e.Component);Ke.defaultProps={tag:"div",className:""};var de=Ke;function oe(vt){return vt.length?vt.every(function(bt){return!!bt.props.disabled}):!0}function lt(vt,bt,fr){var Jt=vt.getState();vt.setState({activeKey:Object(u.a)(Object(u.a)({},Jt.activeKey),{},Object(x.a)({},bt,fr))})}function qe(vt){return vt.eventKey||"0-menu-"}function pe(vt,bt){var fr=bt,Jt=vt.children,Ut=vt.eventKey;if(fr){var er;if(ue(Jt,function(Mt,Zt){Mt&&Mt.props&&!Mt.props.disabled&&fr===ct(Mt,Ut,Zt)&&(er=!0)}),er)return fr}return fr=null,vt.defaultActiveFirst&&ue(Jt,function(Mt,Zt){!fr&&Mt&&!Mt.props.disabled&&(fr=ct(Mt,Ut,Zt))}),fr}function Kt(vt){if(vt){var bt=this.instanceArray.indexOf(vt);bt!==-1?this.instanceArray[bt]=vt:this.instanceArray.push(vt)}}var hr=function(vt){Object(h.a)(fr,vt);var bt=Object(g.a)(fr);function fr(Jt){var Ut;return Object(r.a)(this,fr),Ut=bt.call(this,Jt),Ut.onKeyDown=function(er,Mt){var Zt=er.keyCode,Hr;if(Ut.getFlatInstanceArray().forEach(function(Lr){Lr&&Lr.props.active&&Lr.onKeyDown&&(Hr=Lr.onKeyDown(er))}),Hr)return 1;var Ir=null;return(Zt===T.a.UP||Zt===T.a.DOWN)&&(Ir=Ut.step(Zt===T.a.UP?-1:1)),Ir?(er.preventDefault(),lt(Ut.props.store,qe(Ut.props),Ir.props.eventKey),typeof Mt=="function"&&Mt(Ir),1):void 0},Ut.onItemHover=function(er){var Mt=er.key,Zt=er.hover;lt(Ut.props.store,qe(Ut.props),Zt?Mt:null)},Ut.onDeselect=function(er){Ut.props.onDeselect(er)},Ut.onSelect=function(er){Ut.props.onSelect(er)},Ut.onClick=function(er){Ut.props.onClick(er)},Ut.onOpenChange=function(er){Ut.props.onOpenChange(er)},Ut.onDestroy=function(er){Ut.props.onDestroy(er)},Ut.getFlatInstanceArray=function(){return Ut.instanceArray},Ut.step=function(er){var Mt=Ut.getFlatInstanceArray(),Zt=Ut.props.store.getState().activeKey[qe(Ut.props)],Hr=Mt.length;if(!Hr)return null;er<0&&(Mt=Mt.concat().reverse());var Ir=-1;if(Mt.every(function(ri,Zn){return ri&&ri.props.eventKey===Zt?(Ir=Zn,!1):!0}),!Ut.props.defaultActiveFirst&&Ir!==-1&&oe(Mt.slice(Ir,Hr-1)))return;var Lr=(Ir+1)%Hr,dn=Lr;do{var gn=Mt[dn];if(!gn||gn.props.disabled)dn=(dn+1)%Hr;else return gn}while(dn!==Lr);return null},Ut.renderCommonMenuItem=function(er,Mt,Zt){var Hr=Ut.props.store.getState(),Ir=Object(c.a)(Ut),Lr=Ir.props,dn=ct(er,Lr.eventKey,Mt),gn=er.props;if(!gn||typeof er.type=="string")return er;var ri=dn===Hr.activeKey,Zn=Object(u.a)(Object(u.a)({mode:gn.mode||Lr.mode,level:Lr.level,inlineIndent:Lr.inlineIndent,renderMenuItem:Ut.renderMenuItem,rootPrefixCls:Lr.prefixCls,index:Mt,parentMenu:Lr.parentMenu,manualRef:gn.disabled?void 0:Object(O.a)(er.ref,Kt.bind(Object(c.a)(Ut))),eventKey:dn,active:!gn.disabled&&ri,multiple:Lr.multiple,onClick:function(Ci){(gn.onClick||Ve)(Ci),Ut.onClick(Ci)},onItemHover:Ut.onItemHover,motion:Lr.motion,subMenuOpenDelay:Lr.subMenuOpenDelay,subMenuCloseDelay:Lr.subMenuCloseDelay,forceSubMenuRender:Lr.forceSubMenuRender,onOpenChange:Ut.onOpenChange,onDeselect:Ut.onDeselect,onSelect:Ut.onSelect,builtinPlacements:Lr.builtinPlacements,itemIcon:gn.itemIcon||Ut.props.itemIcon,expandIcon:gn.expandIcon||Ut.props.expandIcon},Zt),{},{direction:Lr.direction});return(Lr.mode==="inline"||ee())&&(Zn.triggerSubMenuAction="click"),e.cloneElement(er,Zn)},Ut.renderMenuItem=function(er,Mt,Zt){if(!er)return null;var Hr=Ut.props.store.getState(),Ir={openKeys:Hr.openKeys,selectedKeys:Hr.selectedKeys,triggerSubMenuAction:Ut.props.triggerSubMenuAction,subMenuKey:Zt};return Ut.renderCommonMenuItem(er,Mt,Ir)},Jt.store.setState({activeKey:Object(u.a)(Object(u.a)({},Jt.store.getState().activeKey),{},Object(x.a)({},Jt.eventKey,pe(Jt,Jt.activeKey)))}),Ut.instanceArray=[],Ut}return Object(s.a)(fr,[{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||!C()(this.props.style,Ut.style)}},{key:"componentDidUpdate",value:function(Ut){var er=this.props,Mt="activeKey"in er?er.activeKey:er.store.getState().activeKey[qe(er)],Zt=pe(er,Mt);if(Zt!==Mt)lt(er.store,qe(er),Zt);else if("activeKey"in Ut){var Hr=pe(Ut,Ut.activeKey);Zt!==Hr&&lt(er.store,qe(er),Zt)}}},{key:"render",value:function(){var Ut=this,er=Object(w.a)({},this.props);this.instanceArray=[];var Mt=_()(er.prefixCls,er.className,"".concat(er.prefixCls,"-").concat(er.mode)),Zt={className:Mt,role:er.role||"menu"};er.id&&(Zt.id=er.id),er.focusable&&(Zt.tabIndex=0,Zt.onKeyDown=this.onKeyDown);var Hr=er.prefixCls,Ir=er.eventKey,Lr=er.visible,dn=er.level,gn=er.mode,ri=er.overflowedIndicator,Zn=er.theme;return ge.forEach(function(pi){return delete er[pi]}),delete er.onClick,e.createElement(de,Object.assign({},er,{prefixCls:Hr,mode:gn,tag:"ul",level:dn,theme:Zn,visible:Lr,overflowedIndicator:ri},Zt),e.Children.map(er.children,function(pi,Ci){return Ut.renderMenuItem(pi,Ci,Ir||"0-menu-")}))}}]),fr}(e.Component);hr.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:Ve};var gt=Object(v.b)()(hr),nr=gt,mr=i("Kwbf");function cn(vt,bt,fr){var Jt=vt.prefixCls,Ut=vt.motion,er=vt.defaultMotions,Mt=er===void 0?{}:er,Zt=vt.openAnimation,Hr=vt.openTransitionName,Ir=bt.switchingModeFromInline;if(Ut)return Ut;if(Object(F.a)(Zt)==="object"&&Zt)Object(mr.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Zt=="string")return{motionName:"".concat(Jt,"-open-").concat(Zt)};if(Hr)return{motionName:Hr};var Lr=Mt[fr];return Lr||(Ir?null:Mt.other)}var Ar=function(vt){Object(h.a)(fr,vt);var bt=Object(g.a)(fr);function fr(Jt){var Ut;Object(r.a)(this,fr),Ut=bt.call(this,Jt),Ut.inlineOpenKeys=[],Ut.onSelect=function(Zt){var Hr=Object(c.a)(Ut),Ir=Hr.props;if(Ir.selectable){var Lr=Ut.store.getState(),dn=Lr.selectedKeys,gn=Zt.key;Ir.multiple?dn=dn.concat([gn]):dn=[gn],"selectedKeys"in Ir||Ut.store.setState({selectedKeys:dn}),Ir.onSelect(Object(u.a)(Object(u.a)({},Zt),{},{selectedKeys:dn}))}},Ut.onClick=function(Zt){var Hr=Ut.getRealMenuMode(),Ir=Object(c.a)(Ut),Lr=Ir.store,dn=Ir.props.onOpenChange;Hr!=="inline"&&!("openKeys"in Ut.props)&&(Lr.setState({openKeys:[]}),dn([])),Ut.props.onClick(Zt)},Ut.onKeyDown=function(Zt,Hr){Ut.innerMenu.getWrappedInstance().onKeyDown(Zt,Hr)},Ut.onOpenChange=function(Zt){var Hr=Object(c.a)(Ut),Ir=Hr.props,Lr=Ut.store.getState().openKeys.concat(),dn=!1,gn=function(Zn){var pi=!1;if(Zn.open)pi=Lr.indexOf(Zn.key)===-1,pi&&Lr.push(Zn.key);else{var Ci=Lr.indexOf(Zn.key);pi=Ci!==-1,pi&&Lr.splice(Ci,1)}dn=dn||pi};Array.isArray(Zt)?Zt.forEach(gn):gn(Zt),dn&&("openKeys"in Ut.props||Ut.store.setState({openKeys:Lr}),Ir.onOpenChange(Lr))},Ut.onDeselect=function(Zt){var Hr=Object(c.a)(Ut),Ir=Hr.props;if(Ir.selectable){var Lr=Ut.store.getState().selectedKeys.concat(),dn=Zt.key,gn=Lr.indexOf(dn);gn!==-1&&Lr.splice(gn,1),"selectedKeys"in Ir||Ut.store.setState({selectedKeys:Lr}),Ir.onDeselect(Object(u.a)(Object(u.a)({},Zt),{},{selectedKeys:Lr}))}},Ut.onMouseEnter=function(Zt){Ut.restoreModeVerticalFromInline();var Hr=Ut.props.onMouseEnter;Hr&&Hr(Zt)},Ut.onTransitionEnd=function(Zt){var Hr=Zt.propertyName==="width"&&Zt.target===Zt.currentTarget,Ir=Zt.target.className,Lr=Object.prototype.toString.call(Ir)==="[object SVGAnimatedString]"?Ir.animVal:Ir,dn=Zt.propertyName==="font-size"&&Lr.indexOf("anticon")>=0;(Hr||dn)&&Ut.restoreModeVerticalFromInline()},Ut.setInnerMenu=function(Zt){Ut.innerMenu=Zt},Ut.isRootMenu=!0;var er=Jt.defaultSelectedKeys,Mt=Jt.defaultOpenKeys;return"selectedKeys"in Jt&&(er=Jt.selectedKeys||[]),"openKeys"in Jt&&(Mt=Jt.openKeys||[]),Ut.store=Object(v.c)({selectedKeys:er,openKeys:Mt,activeKey:{"0-menu-":pe(Jt,Jt.activeKey)}}),Ut.state={switchingModeFromInline:!1},Ut}return Object(s.a)(fr,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(Ut){this.updateOpentKeysWhenSwitchMode(Ut),this.updateMiniStore();var er=this.props,Mt=er.siderCollapsed,Zt=er.inlineCollapsed,Hr=er.onOpenChange;(!Ut.inlineCollapsed&&Zt||!Ut.siderCollapsed&&Mt)&&Hr([]),this.updateMenuDisplay()}},{key:"updateOpentKeysWhenSwitchMode",value:function(Ut){var er=this.props,Mt=this.store,Zt=this.inlineOpenKeys,Hr=Mt.getState(),Ir={};Ut.mode==="inline"&&er.mode!=="inline"&&this.setState({switchingModeFromInline:!0}),"openKeys"in er||((er.inlineCollapsed&&!Ut.inlineCollapsed||er.siderCollapsed&&!Ut.siderCollapsed)&&(this.setState({switchingModeFromInline:!0}),this.inlineOpenKeys=Hr.openKeys.concat(),Ir.openKeys=[]),(!er.inlineCollapsed&&Ut.inlineCollapsed||!er.siderCollapsed&&Ut.siderCollapsed)&&(Ir.openKeys=Zt,this.inlineOpenKeys=[])),Object.keys(Ir).length&&Mt.setState(Ir)}},{key:"updateMenuDisplay",value:function(){var Ut=this.props.collapsedWidth,er=this.store,Mt=this.prevOpenKeys,Zt=this.getInlineCollapsed()&&(Ut===0||Ut==="0"||Ut==="0px");Zt?(this.prevOpenKeys=er.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Mt&&(this.store.setState({openKeys:Mt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var Ut=this.props.mode,er=this.state.switchingModeFromInline,Mt=this.getInlineCollapsed();return er&&Mt?"inline":Mt?"vertical":Ut}},{key:"getInlineCollapsed",value:function(){var Ut=this.props,er=Ut.inlineCollapsed,Mt=Ut.siderCollapsed;return Mt!==void 0?Mt:er}},{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"])),er=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:er,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:cn(this.props,this.state,er)}),delete Ut.openAnimation,delete Ut.openTransitionName,e.createElement(v.a,{store:this.store},e.createElement(nr,Object.assign({},Ut,{ref:this.setInnerMenu}),this.props.children))}}]),fr}(e.Component);Ar.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 xr=Ar,qt=function(vt){Object(h.a)(fr,vt);var bt=Object(g.a)(fr);function fr(){var Jt;return Object(r.a)(this,fr),Jt=bt.apply(this,arguments),Jt.onKeyDown=function(Ut){var er=Ut.keyCode;return er===T.a.ENTER?(Jt.onClick(Ut),!0):void 0},Jt.onMouseLeave=function(Ut){var er=Jt.props,Mt=er.eventKey,Zt=er.onItemHover,Hr=er.onMouseLeave;Zt({key:Mt,hover:!1}),Hr({key:Mt,domEvent:Ut})},Jt.onMouseEnter=function(Ut){var er=Jt.props,Mt=er.eventKey,Zt=er.onItemHover,Hr=er.onMouseEnter;Zt({key:Mt,hover:!0}),Hr({key:Mt,domEvent:Ut})},Jt.onClick=function(Ut){var er=Jt.props,Mt=er.eventKey,Zt=er.multiple,Hr=er.onClick,Ir=er.onSelect,Lr=er.onDeselect,dn=er.isSelected,gn={key:Mt,keyPath:[Mt],item:Object(c.a)(Jt),domEvent:Ut};Hr(gn),Zt?dn?Lr(gn):Ir(gn):dn||Ir(gn)},Jt.saveNode=function(Ut){Jt.node=Ut},Jt}return Object(s.a)(fr,[{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,er=Object(u.a)({},this.props),Mt=_()(this.getPrefixCls(),er.className,(Ut={},Object(x.a)(Ut,this.getActiveClassName(),!er.disabled&&er.active),Object(x.a)(Ut,this.getSelectedClassName(),er.isSelected),Object(x.a)(Ut,this.getDisabledClassName(),er.disabled),Ut)),Zt=Object(u.a)(Object(u.a)({},er.attribute),{},{title:typeof er.title=="string"?er.title:void 0,className:Mt,role:er.role||"menuitem","aria-disabled":er.disabled});er.role==="option"?Zt=Object(u.a)(Object(u.a)({},Zt),{},{role:"option","aria-selected":er.isSelected}):(er.role===null||er.role==="none")&&(Zt.role="none");var Hr={onClick:er.disabled?null:this.onClick,onMouseLeave:er.disabled?null:this.onMouseLeave,onMouseEnter:er.disabled?null:this.onMouseEnter},Ir=Object(u.a)({},er.style);er.mode==="inline"&&(er.direction==="rtl"?Ir.paddingRight=er.inlineIndent*er.level:Ir.paddingLeft=er.inlineIndent*er.level),ge.forEach(function(dn){return delete er[dn]}),delete er.direction;var Lr=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(Lr=e.createElement(this.props.itemIcon,this.props)),e.createElement("li",Object.assign({},Object(b.default)(er,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Zt,Hr,{style:Ir,ref:this.saveNode}),er.children,Lr)}}]),fr}(e.Component);qt.isMenuItem=!0,qt.defaultProps={onSelect:Ve,onMouseEnter:Ve,onMouseLeave:Ve,manualRef:Ve};var ar=Object(v.b)(function(vt,bt){var fr=vt.activeKey,Jt=vt.selectedKeys,Ut=bt.eventKey,er=bt.subMenuKey;return{active:fr[er]===Ut,isSelected:Jt.indexOf(Ut)!==-1}})(qt),Et=ar,en=function(vt){Object(h.a)(fr,vt);var bt=Object(g.a)(fr);function fr(){var Jt;return Object(r.a)(this,fr),Jt=bt.apply(this,arguments),Jt.renderInnerMenuItem=function(Ut){var er=Jt.props,Mt=er.renderMenuItem,Zt=er.index;return Mt(Ut,Zt,Jt.props.subMenuKey)},Jt}return Object(s.a)(fr,[{key:"render",value:function(){var Ut=Object(w.a)({},this.props),er=Ut.className,Mt=er===void 0?"":er,Zt=Ut.rootPrefixCls,Hr="".concat(Zt,"-item-group-title"),Ir="".concat(Zt,"-item-group-list"),Lr=Ut.title,dn=Ut.children;return ge.forEach(function(gn){return delete Ut[gn]}),delete Ut.onClick,delete Ut.direction,e.createElement("li",Object.assign({},Ut,{className:"".concat(Mt," ").concat(Zt,"-item-group")}),e.createElement("div",{className:Hr,title:typeof Lr=="string"?Lr:void 0},Lr),e.createElement("ul",{className:Ir},e.Children.map(dn,this.renderInnerMenuItem)))}}]),fr}(e.Component);en.isMenuItemGroup=!0,en.defaultProps={disabled:!0};var Mn=en,Yn=function(bt){var fr=bt.className,Jt=bt.rootPrefixCls,Ut=bt.style;return e.createElement("li",{className:"".concat(fr," ").concat(Jt,"-item-divider"),style:Ut})};Yn.defaultProps={disabled:!0,className:"",style:{}};var ci=Yn,Vi=xr,jn=Object(e.createContext)({inlineCollapsed:!1}),Qn=jn,$t=i("0n0R"),Ot=function(vt){n()(fr,vt);var bt=a()(fr);function fr(){return f()(this,fr),bt.apply(this,arguments)}return l()(fr,[{key:"renderTitle",value:function(Ut){var er=this.props,Mt=er.icon,Zt=er.title,Hr=er.level,Ir=er.rootPrefixCls;if(!Mt)return Ut&&Hr===1&&Zt&&typeof Zt=="string"?e.createElement("div",{className:"".concat(Ir,"-inline-collapsed-noicon")},Zt.charAt(0)):Zt;var Lr=Object($t.b)(Zt)&&Zt.type==="span";return e.createElement(e.Fragment,null,Mt,Lr?Zt:e.createElement("span",null,Zt))}},{key:"render",value:function(){var Ut=this,er=this.props,Mt=er.rootPrefixCls,Zt=er.popupClassName;return e.createElement(Qn.Consumer,null,function(Hr){var Ir=Hr.inlineCollapsed,Lr=Hr.antdMenuTheme;return e.createElement(Dt,p()({},Object(b.default)(Ut.props,["icon"]),{title:Ut.renderTitle(Ir),popupClassName:_()(Mt,"".concat(Mt,"-").concat(Lr),Zt)}))})}}]),fr}(e.Component);Ot.contextType=Qn,Ot.isSubMenu=1;var ke=Ot,Me=i("Zm9Q"),Be=i("3S7+"),at=i("ZX9x"),At=function(vt,bt){var fr={};for(var Jt in vt)Object.prototype.hasOwnProperty.call(vt,Jt)&&bt.indexOf(Jt)<0&&(fr[Jt]=vt[Jt]);if(vt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ut=0,Jt=Object.getOwnPropertySymbols(vt);Ut<Jt.length;Ut++)bt.indexOf(Jt[Ut])<0&&Object.prototype.propertyIsEnumerable.call(vt,Jt[Ut])&&(fr[Jt[Ut]]=vt[Jt[Ut]]);return fr},Ct=function(vt){n()(fr,vt);var bt=a()(fr);function fr(){var Jt;return f()(this,fr),Jt=bt.apply(this,arguments),Jt.renderItem=function(Ut){var er=Ut.siderCollapsed,Mt=Jt.props,Zt=Mt.level,Hr=Mt.className,Ir=Mt.children,Lr=Mt.rootPrefixCls,dn=Jt.props,gn=dn.title,ri=dn.icon,Zn=dn.danger,pi=At(dn,["title","icon","danger"]);return e.createElement(Qn.Consumer,null,function(Ci){var Ni,zi=Ci.inlineCollapsed,it=Ci.direction,Ne=gn;typeof gn=="undefined"?Ne=Zt===1?Ir:"":gn===!1&&(Ne="");var He={title:Ne};!er&&!zi&&(He.title=null,He.visible=!1);var Ge=Object(Me.a)(Ir).length;return e.createElement(Be.a,p()({},He,{placement:it==="rtl"?"left":"right",overlayClassName:"".concat(Lr,"-inline-collapsed-tooltip")}),e.createElement(Et,p()({},pi,{className:_()(Hr,(Ni={},A()(Ni,"".concat(Lr,"-item-danger"),Zn),A()(Ni,"".concat(Lr,"-item-only-child"),(ri?Ge+1:Ge)===1),Ni)),title:gn}),ri,Jt.renderItemChildren(zi)))})},Jt}return l()(fr,[{key:"renderItemChildren",value:function(Ut){var er=this.props,Mt=er.icon,Zt=er.children,Hr=er.level,Ir=er.rootPrefixCls;return!Mt||Object($t.b)(Zt)&&Zt.type==="span"?Zt&&Ut&&Hr===1&&typeof Zt=="string"?e.createElement("div",{className:"".concat(Ir,"-inline-collapsed-noicon")},Zt.charAt(0)):Zt:e.createElement("span",null,Zt)}},{key:"render",value:function(){return e.createElement(at.a.Consumer,null,this.renderItem)}}]),fr}(e.Component);Ct.isMenuItem=!0;var Yt=i("H84U"),Pr=i("uaoM"),qr=i("EXcs"),An=function(vt){n()(fr,vt);var bt=a()(fr);function fr(Jt){var Ut;return f()(this,fr),Ut=bt.call(this,Jt),Ut.renderMenu=function(er){var Mt=er.getPopupContainer,Zt=er.getPrefixCls,Hr=er.direction,Ir=Ut.props,Lr=Ir.prefixCls,dn=Ir.className,gn=Ir.theme,ri={horizontal:{motionName:"slide-up"},inline:qr.a,other:{motionName:"zoom-big"}},Zn=Zt("menu",Lr),pi=_()(dn,"".concat(Zn,"-").concat(gn),A()({},"".concat(Zn,"-inline-collapsed"),Ut.getInlineCollapsed()));return e.createElement(Qn.Provider,{value:{inlineCollapsed:Ut.getInlineCollapsed()||!1,antdMenuTheme:gn,direction:Hr}},e.createElement(Vi,p()({getPopupContainer:Mt},Ut.props,{className:pi,prefixCls:Zn,direction:Hr,defaultMotions:ri})))},Object(Pr.a)(!("inlineCollapsed"in Jt&&Jt.mode!=="inline"),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Object(Pr.a)(!(Jt.siderCollapsed!==void 0&&"inlineCollapsed"in Jt),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),Ut}return l()(fr,[{key:"getInlineCollapsed",value:function(){var Ut=this.props,er=Ut.inlineCollapsed,Mt=Ut.siderCollapsed;return Mt!==void 0?Mt:er}},{key:"render",value:function(){return e.createElement(Yt.a,null,this.renderMenu)}}]),fr}(e.Component);An.defaultProps={className:"",theme:"light",focusable:!1};var Gt=function(vt){n()(fr,vt);var bt=a()(fr);function fr(){return f()(this,fr),bt.apply(this,arguments)}return l()(fr,[{key:"render",value:function(){var Ut=this;return e.createElement(at.a.Consumer,null,function(er){return e.createElement(An,p()({},Ut.props,er))})}}]),fr}(e.Component);Gt.Divider=ci,Gt.Item=Ct,Gt.SubMenu=ke,Gt.ItemGroup=Mn},C0SR:function(k,D,i){var y=i("YH21"),p=function(){this._track=[]};p.prototype={constructor:p,recognize:function(l,o,n){return this._doTrack(l,o,n),this._recognize(l)},clear:function(){return this._track.length=0,this},_doTrack:function(l,o,n){var t=l.touches;if(!t)return;for(var a={points:[],touches:[],target:o,event:l},e=0,u=t.length;e<u;e++){var r=t[e],s=y.clientToLocal(n,r,{});a.points.push([s.zrX,s.zrY]),a.touches.push(r)}this._track.push(a)},_recognize:function(l){for(var o in m)if(m.hasOwnProperty(o)){var n=m[o](this._track,l);if(n)return n}}};function S(d){var l=d[1][0]-d[0][0],o=d[1][1]-d[0][1];return Math.sqrt(l*l+o*o)}function A(d){return[(d[0][0]+d[1][0])/2,(d[0][1]+d[1][1])/2]}var m={pinch:function(l,o){var n=l.length;if(!n)return;var t=(l[n-1]||{}).points,a=(l[n-2]||{}).points||t;if(a&&a.length>1&&t&&t.length>1){var e=S(t)/S(a);!isFinite(e)&&(e=1),o.pinchScale=e;var u=A(t);return o.pinchX=u[0],o.pinchY=u[1],{type:"pinch",target:l[0].target,event:o}}}},f=p;k.exports=f},C0tN:function(k,D,i){i("0o9m"),i("8Uz6"),i("Ducp"),i("6/nd")},CBdT:function(k,D,i){var y=i("ProS");i("8waO"),i("AEZ6"),i("YNf1");var p=i("q3GZ");y.registerVisual(p)},CF2D:function(k,D,i){var y=i("ProS");i("vZI5"),i("GeKi");var p=i("6r85"),S=i("TJmX"),A=i("CbHG");y.registerPreprocessor(p),y.registerVisual(S),y.registerLayout(A)},CFYs:function(k,D,i){"use strict";var y=i("lSNA"),p=i.n(y),S=i("pVnL"),A=i.n(S),m=i("lwsE"),f=i.n(m),d=i("W8MJ"),l=i.n(d),o=i("PJYZ"),n=i.n(o),t=i("7W2i"),a=i.n(t),e=i("LQ03"),u=i.n(e),r=i("q1tI"),s=i.n(r),c=i("TSYQ"),h=i.n(c),g=i("BGR+"),v=i("V/uB"),b=i.n(v),w=i("NAnI"),x=i.n(w),T=i("J84W"),O=i.n(T),E=i("kbBi"),C=i.n(E),I=i("H84U"),_=i("CWQg"),F=i("uaoM"),R=i("lMfh"),B=i.n(R),M=2,X=.16,P=.05,z=.05,W=.15,U=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(Ct,Yt,Pr){var qr;return Math.round(Ct.h)>=60&&Math.round(Ct.h)<=240?qr=Pr?Math.round(Ct.h)-M*Yt:Math.round(Ct.h)+M*Yt:qr=Pr?Math.round(Ct.h)+M*Yt:Math.round(Ct.h)-M*Yt,qr<0?qr+=360:qr>=360&&(qr-=360),qr}function te(Ct,Yt,Pr){if(Ct.h===0&&Ct.s===0)return Ct.s;var qr;return Pr?qr=Ct.s-X*Yt:Yt===V?qr=Ct.s+X:qr=Ct.s+P*Yt,qr>1&&(qr=1),Pr&&Yt===U&&qr>.1&&(qr=.1),qr<.06&&(qr=.06),Number(qr.toFixed(2))}function $(Ct,Yt,Pr){var qr;return Pr?qr=Ct.v+z*Yt:qr=Ct.v-W*Yt,qr>1&&(qr=1),Number(qr.toFixed(2))}function le(Ct){for(var Yt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pr=[],qr=B()(Ct),An=U;An>0;An-=1){var Gt=qr.toHsv(),vt=B()({h:G(Gt,An,!0),s:te(Gt,An,!0),v:$(Gt,An,!0)}).toHexString();Pr.push(vt)}Pr.push(qr.toHexString());for(var bt=1;bt<=V;bt+=1){var fr=qr.toHsv(),Jt=B()({h:G(fr,bt),s:te(fr,bt),v:$(fr,bt)}).toHexString();Pr.push(Jt)}return Yt.theme==="dark"?Q.map(function(Ut){var er=Ut.index,Mt=Ut.opacity,Zt=B.a.mix(Yt.backgroundColor||"#141414",Pr[er],Mt*100).toHexString();return Zt}):Pr}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"},Se={},Re={};Object.keys(re).forEach(function(Ct){Se[Ct]=le(re[Ct]),Se[Ct].primary=Se[Ct][5],Re[Ct]=le(re[Ct],{theme:"dark",backgroundColor:"#141414"}),Re[Ct].primary=Re[Ct][5]});var Pe=Se.red,Je=Se.volcano,Ve=Se.gold,ct=Se.orange,Ue=Se.yellow,ue=Se.lime,rt=Se.green,ge=Se.cyan,Z=Se.blue,Y=Se.geekblue,ee=Se.purple,fe=Se.magenta,be=Se.grey;function Ce(Ct){return!Ct||Ct<0?0:Ct>100?100:Ct}function Te(Ct){var Yt=Ct.success,Pr=Ct.successPercent,qr=Pr;return Yt&&"progress"in Yt&&(Object(F.a)(!1,"Progress","`success.progress` is deprecated. Please use `success.percent` instead."),qr=Yt.progress),Yt&&"percent"in Yt&&(qr=Yt.percent),qr}var he=function(Ct,Yt){var Pr={};for(var qr in Ct)Object.prototype.hasOwnProperty.call(Ct,qr)&&Yt.indexOf(qr)<0&&(Pr[qr]=Ct[qr]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var An=0,qr=Object.getOwnPropertySymbols(Ct);An<qr.length;An++)Yt.indexOf(qr[An])<0&&Object.prototype.propertyIsEnumerable.call(Ct,qr[An])&&(Pr[qr[An]]=Ct[qr[An]]);return Pr},ye=function(Yt){var Pr=[];return Object.keys(Yt).forEach(function(qr){var An=parseFloat(qr.replace(/%/g,""));isNaN(An)||Pr.push({key:An,value:Yt[qr]})}),Pr=Pr.sort(function(qr,An){return qr.key-An.key}),Pr.map(function(qr){var An=qr.key,Gt=qr.value;return"".concat(Gt," ").concat(An,"%")}).join(", ")},Ie=function(Yt){var Pr=Yt.from,qr=Pr===void 0?re.blue:Pr,An=Yt.to,Gt=An===void 0?re.blue:An,vt=Yt.direction,bt=vt===void 0?"to right":vt,fr=he(Yt,["from","to","direction"]);if(Object.keys(fr).length!==0){var Jt=ye(fr);return{backgroundImage:"linear-gradient(".concat(bt,", ").concat(Jt,")")}}return{backgroundImage:"linear-gradient(".concat(bt,", ").concat(qr,", ").concat(Gt,")")}},tt=function(Yt){var Pr=Yt.prefixCls,qr=Yt.percent,An=Yt.strokeWidth,Gt=Yt.size,vt=Yt.strokeColor,bt=Yt.strokeLinecap,fr=Yt.children,Jt=Yt.trailColor,Ut=Yt.success,er=vt&&typeof vt!="string"?Ie(vt):{background:vt},Mt=Jt?{backgroundColor:Jt}:void 0,Zt=A()({width:"".concat(Ce(qr),"%"),height:An||(Gt==="small"?6:8),borderRadius:bt==="square"?0:""},er),Hr=Te(Yt),Ir={width:"".concat(Ce(Hr),"%"),height:An||(Gt==="small"?6:8),borderRadius:bt==="square"?0:"",backgroundColor:Ut==null?void 0:Ut.strokeColor},Lr=Hr!==void 0?r.createElement("div",{className:"".concat(Pr,"-success-bg"),style:Ir}):null;return r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(Pr,"-outer")},r.createElement("div",{className:"".concat(Pr,"-inner"),style:Mt},r.createElement("div",{className:"".concat(Pr,"-bg"),style:Zt}),Lr)),fr)},pt=tt,st={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},Fe=function(Yt){var Pr=Yt.map(function(){return Object(r.useRef)()}),qr=Object(r.useRef)();return Object(r.useEffect)(function(){var An=Date.now(),Gt=!1;Object.keys(Pr).forEach(function(vt){var bt=Pr[vt].current;if(!bt)return;Gt=!0;var fr=bt.style;fr.transitionDuration=".3s, .3s, .3s, .06s",qr.current&&An-qr.current<100&&(fr.transitionDuration="0s, 0s")}),Gt&&(qr.current=Date.now())}),[Pr]};function ft(){return ft=Object.assign||function(Ct){for(var Yt=1;Yt<arguments.length;Yt++){var Pr=arguments[Yt];for(var qr in Pr)Object.prototype.hasOwnProperty.call(Pr,qr)&&(Ct[qr]=Pr[qr])}return Ct},ft.apply(this,arguments)}function et(Ct,Yt){return Bt(Ct)||Tt(Ct,Yt)||Ht(Ct,Yt)||wt()}function wt(){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 Ht(Ct,Yt){if(!Ct)return;if(typeof Ct=="string")return Dt(Ct,Yt);var Pr=Object.prototype.toString.call(Ct).slice(8,-1);if(Pr==="Object"&&Ct.constructor&&(Pr=Ct.constructor.name),Pr==="Map"||Pr==="Set")return Array.from(Ct);if(Pr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Pr))return Dt(Ct,Yt)}function Dt(Ct,Yt){(Yt==null||Yt>Ct.length)&&(Yt=Ct.length);for(var Pr=0,qr=new Array(Yt);Pr<Yt;Pr++)qr[Pr]=Ct[Pr];return qr}function Tt(Ct,Yt){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(Ct)))return;var Pr=[],qr=!0,An=!1,Gt=void 0;try{for(var vt=Ct[Symbol.iterator](),bt;!(qr=(bt=vt.next()).done)&&!(Pr.push(bt.value),Yt&&Pr.length===Yt);qr=!0);}catch(fr){An=!0,Gt=fr}finally{try{!qr&&vt.return!=null&&vt.return()}finally{if(An)throw Gt}}return Pr}function Bt(Ct){if(Array.isArray(Ct))return Ct}function Ke(Ct,Yt){if(Ct==null)return{};var Pr=de(Ct,Yt),qr,An;if(Object.getOwnPropertySymbols){var Gt=Object.getOwnPropertySymbols(Ct);for(An=0;An<Gt.length;An++){if(qr=Gt[An],Yt.indexOf(qr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Ct,qr))continue;Pr[qr]=Ct[qr]}}return Pr}function de(Ct,Yt){if(Ct==null)return{};var Pr={},qr=Object.keys(Ct),An,Gt;for(Gt=0;Gt<qr.length;Gt++){if(An=qr[Gt],Yt.indexOf(An)>=0)continue;Pr[An]=Ct[An]}return Pr}var oe=function(Yt){var Pr=Yt.className,qr=Yt.percent,An=Yt.prefixCls,Gt=Yt.strokeColor,vt=Yt.strokeLinecap,bt=Yt.strokeWidth,fr=Yt.style,Jt=Yt.trailColor,Ut=Yt.trailWidth,er=Yt.transition,Mt=Ke(Yt,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete Mt.gapPosition;var Zt=Array.isArray(qr)?qr:[qr],Hr=Array.isArray(Gt)?Gt:[Gt],Ir=Fe(Zt),Lr=et(Ir,1),dn=Lr[0],gn=bt/2,ri=100-bt/2,Zn="M ".concat(vt==="round"?gn:0,",").concat(gn,`
L `).concat(vt==="round"?ri:100,",").concat(gn),pi="0 0 100 ".concat(bt),Ci=0;return s.a.createElement("svg",ft({className:h()("".concat(An,"-line"),Pr),viewBox:pi,preserveAspectRatio:"none",style:fr},Mt),s.a.createElement("path",{className:"".concat(An,"-line-trail"),d:Zn,strokeLinecap:vt,stroke:Jt,strokeWidth:Ut||bt,fillOpacity:"0"}),Zt.map(function(Ni,zi){var it={strokeDasharray:"".concat(Ni,"px, 100px"),strokeDashoffset:"-".concat(Ci,"px"),transition:er||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ne=Hr[zi]||Hr[Hr.length-1];return Ci+=Ni,s.a.createElement("path",{key:zi,className:"".concat(An,"-line-path"),d:Zn,strokeLinecap:vt,stroke:Ne,strokeWidth:bt,fillOpacity:"0",ref:dn[zi],style:it})}))};oe.defaultProps=st;var lt=oe;function qe(){return qe=Object.assign||function(Ct){for(var Yt=1;Yt<arguments.length;Yt++){var Pr=arguments[Yt];for(var qr in Pr)Object.prototype.hasOwnProperty.call(Pr,qr)&&(Ct[qr]=Pr[qr])}return Ct},qe.apply(this,arguments)}function pe(Ct,Yt){return mr(Ct)||nr(Ct,Yt)||hr(Ct,Yt)||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 hr(Ct,Yt){if(!Ct)return;if(typeof Ct=="string")return gt(Ct,Yt);var Pr=Object.prototype.toString.call(Ct).slice(8,-1);if(Pr==="Object"&&Ct.constructor&&(Pr=Ct.constructor.name),Pr==="Map"||Pr==="Set")return Array.from(Ct);if(Pr==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Pr))return gt(Ct,Yt)}function gt(Ct,Yt){(Yt==null||Yt>Ct.length)&&(Yt=Ct.length);for(var Pr=0,qr=new Array(Yt);Pr<Yt;Pr++)qr[Pr]=Ct[Pr];return qr}function nr(Ct,Yt){if(typeof Symbol=="undefined"||!(Symbol.iterator in Object(Ct)))return;var Pr=[],qr=!0,An=!1,Gt=void 0;try{for(var vt=Ct[Symbol.iterator](),bt;!(qr=(bt=vt.next()).done)&&!(Pr.push(bt.value),Yt&&Pr.length===Yt);qr=!0);}catch(fr){An=!0,Gt=fr}finally{try{!qr&&vt.return!=null&&vt.return()}finally{if(An)throw Gt}}return Pr}function mr(Ct){if(Array.isArray(Ct))return Ct}function cn(Ct,Yt){if(Ct==null)return{};var Pr=Ar(Ct,Yt),qr,An;if(Object.getOwnPropertySymbols){var Gt=Object.getOwnPropertySymbols(Ct);for(An=0;An<Gt.length;An++){if(qr=Gt[An],Yt.indexOf(qr)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(Ct,qr))continue;Pr[qr]=Ct[qr]}}return Pr}function Ar(Ct,Yt){if(Ct==null)return{};var Pr={},qr=Object.keys(Ct),An,Gt;for(Gt=0;Gt<qr.length;Gt++){if(An=qr[Gt],Yt.indexOf(An)>=0)continue;Pr[An]=Ct[An]}return Pr}var xr=0;function qt(Ct){return+Ct.replace("%","")}function ar(Ct){return Array.isArray(Ct)?Ct:[Ct]}function Et(Ct,Yt,Pr,qr){var An=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,Gt=arguments.length>5?arguments[5]:void 0,vt=50-qr/2,bt=0,fr=-vt,Jt=0,Ut=-2*vt;switch(Gt){case"left":bt=-vt,fr=0,Jt=2*vt,Ut=0;break;case"right":bt=vt,fr=0,Jt=-2*vt,Ut=0;break;case"bottom":fr=vt,Ut=2*vt;break;default:}var er="M 50,50 m ".concat(bt,",").concat(fr,`
a `).concat(vt,",").concat(vt," 0 1 1 ").concat(Jt,",").concat(-Ut,`
a `).concat(vt,",").concat(vt," 0 1 1 ").concat(-Jt,",").concat(Ut),Mt=Math.PI*2*vt,Zt={stroke:Pr,strokeDasharray:"".concat(Yt/100*(Mt-An),"px ").concat(Mt,"px"),strokeDashoffset:"-".concat(An/2+Ct/100*(Mt-An),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:er,pathStyle:Zt}}var en=function(Yt){var Pr=Yt.prefixCls,qr=Yt.strokeWidth,An=Yt.trailWidth,Gt=Yt.gapDegree,vt=Yt.gapPosition,bt=Yt.trailColor,fr=Yt.strokeLinecap,Jt=Yt.style,Ut=Yt.className,er=Yt.strokeColor,Mt=Yt.percent,Zt=cn(Yt,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),Hr=Object(r.useMemo)(function(){return xr+=1,xr},[]),Ir=Et(0,100,bt,qr,Gt,vt),Lr=Ir.pathString,dn=Ir.pathStyle,gn=ar(Mt),ri=ar(er),Zn=ri.find(function(it){return Object.prototype.toString.call(it)==="[object Object]"}),pi=Fe(gn),Ci=pe(pi,1),Ni=Ci[0],zi=function(){var Ne=0;return gn.map(function(He,Ge){var nt=ri[Ge]||ri[ri.length-1],$e=Object.prototype.toString.call(nt)==="[object Object]"?"url(#".concat(Pr,"-gradient-").concat(Hr,")"):"",ot=Et(Ne,He,nt,qr,Gt,vt);return Ne+=He,s.a.createElement("path",{key:Ge,className:"".concat(Pr,"-circle-path"),d:ot.pathString,stroke:$e,strokeLinecap:fr,strokeWidth:qr,opacity:He===0?0:1,fillOpacity:"0",style:ot.pathStyle,ref:Ni[Ge]})})};return s.a.createElement("svg",qe({className:h()("".concat(Pr,"-circle"),Ut),viewBox:"0 0 100 100",style:Jt},Zt),Zn&&s.a.createElement("defs",null,s.a.createElement("linearGradient",{id:"".concat(Pr,"-gradient-").concat(Hr),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(Zn).sort(function(it,Ne){return qt(it)-qt(Ne)}).map(function(it,Ne){return s.a.createElement("stop",{key:Ne,offset:it,stopColor:Zn[it]})}))),s.a.createElement("path",{className:"".concat(Pr,"-circle-trail"),d:Lr,stroke:bt,strokeLinecap:fr,strokeWidth:An||qr,fillOpacity:"0",style:dn}),zi().reverse())};en.defaultProps=st;var Mn=en,Yn={Line:lt,Circle:Mn};function ci(Ct){var Yt=Ct.percent,Pr=Ct.success,qr=Ct.successPercent,An=Ce(Yt),Gt=Te({success:Pr,successPercent:qr});return Gt?[Ce(Gt),Ce(An-Ce(Gt))]:An}function Vi(Ct){var Yt=Ct.success,Pr=Ct.strokeColor,qr=Ct.successPercent,An=Pr||null,Gt=Te({success:Yt,successPercent:qr});return Gt?[re.green,An]:An}var jn=function(Yt){var Pr=Yt.prefixCls,qr=Yt.width,An=Yt.strokeWidth,Gt=Yt.trailColor,vt=Yt.strokeLinecap,bt=Yt.gapPosition,fr=Yt.gapDegree,Jt=Yt.type,Ut=Yt.children,er=qr||120,Mt={width:er,height:er,fontSize:er*.15+6},Zt=An||6,Hr=bt||Jt==="dashboard"&&"bottom"||"top",Ir=function(){return fr||fr===0?fr:Jt==="dashboard"?75:void 0},Lr=Vi(Yt),dn=Object.prototype.toString.call(Lr)==="[object Object]",gn=h()("".concat(Pr,"-inner"),p()({},"".concat(Pr,"-circle-gradient"),dn));return r.createElement("div",{className:gn,style:Mt},r.createElement(Mn,{percent:ci(Yt),strokeWidth:Zt,trailWidth:Zt,strokeColor:Lr,strokeLinecap:vt,trailColor:Gt,prefixCls:Pr,gapDegree:Ir(),gapPosition:Hr}),Ut)},Qn=jn,$t=function(Yt){for(var Pr=Yt.size,qr=Yt.steps,An=Yt.percent,Gt=An===void 0?0:An,vt=Yt.strokeWidth,bt=vt===void 0?8:vt,fr=Yt.strokeColor,Jt=Yt.trailColor,Ut=Yt.prefixCls,er=Yt.children,Mt=Math.floor(qr*(Gt/100)),Zt=Pr==="small"?2:14,Hr=[],Ir=0;Ir<qr;Ir+=1)Hr.push(r.createElement("div",{key:Ir,className:h()("".concat(Ut,"-steps-item"),p()({},"".concat(Ut,"-steps-item-active"),Ir<=Mt-1)),style:{backgroundColor:Ir<=Mt-1?fr:Jt,width:Zt,height:bt}}));return r.createElement("div",{className:"".concat(Ut,"-steps-outer")},Hr,er)},Ot=$t,ke=function(Ct,Yt){var Pr={};for(var qr in Ct)Object.prototype.hasOwnProperty.call(Ct,qr)&&Yt.indexOf(qr)<0&&(Pr[qr]=Ct[qr]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var An=0,qr=Object.getOwnPropertySymbols(Ct);An<qr.length;An++)Yt.indexOf(qr[An])<0&&Object.prototype.propertyIsEnumerable.call(Ct,qr[An])&&(Pr[qr[An]]=Ct[qr[An]]);return Pr},Me=Object(_.a)("line","circle","dashboard"),Be=Object(_.a)("normal","exception","active","success"),at=function(Ct){a()(Pr,Ct);var Yt=u()(Pr);function Pr(){var qr;return f()(this,Pr),qr=Yt.apply(this,arguments),qr.renderProgress=function(An){var Gt,vt=An.getPrefixCls,bt=An.direction,fr=n()(qr),Jt=fr.props,Ut=Jt.prefixCls,er=Jt.className,Mt=Jt.size,Zt=Jt.type,Hr=Jt.steps,Ir=Jt.showInfo,Lr=Jt.strokeColor,dn=ke(Jt,["prefixCls","className","size","type","steps","showInfo","strokeColor"]),gn=vt("progress",Ut),ri=qr.getProgressStatus(),Zn=qr.renderProcessInfo(gn,ri);Object(F.a)(!("successPercent"in Jt),"Progress","`successPercent` is deprecated. Please use `success.percent` instead.");var pi;Zt==="line"?pi=Hr?r.createElement(Ot,A()({},qr.props,{strokeColor:typeof Lr=="string"?Lr:void 0,prefixCls:gn,steps:Hr}),Zn):r.createElement(pt,A()({},qr.props,{prefixCls:gn}),Zn):(Zt==="circle"||Zt==="dashboard")&&(pi=r.createElement(Qn,A()({},qr.props,{prefixCls:gn,progressStatus:ri}),Zn));var Ci=h()(gn,(Gt={},p()(Gt,"".concat(gn,"-").concat(Zt==="dashboard"&&"circle"||Hr&&"steps"||Zt),!0),p()(Gt,"".concat(gn,"-status-").concat(ri),!0),p()(Gt,"".concat(gn,"-show-info"),Ir),p()(Gt,"".concat(gn,"-").concat(Mt),Mt),p()(Gt,"".concat(gn,"-rtl"),bt==="rtl"),Gt),er);return r.createElement("div",A()({},Object(g.default)(dn,["status","format","trailColor","strokeWidth","width","gapDegree","gapPosition","strokeColor","strokeLinecap","percent","steps","success","successPercent"]),{className:Ci}),pi)},qr}return l()(Pr,[{key:"getPercentNumber",value:function(){var An=this.props.percent,Gt=An===void 0?0:An,vt=Te(this.props);return parseInt(vt!==void 0?vt.toString():Gt.toString(),10)}},{key:"getProgressStatus",value:function(){var An=this.props.status;return Be.indexOf(An)<0&&this.getPercentNumber()>=100?"success":An||"normal"}},{key:"renderProcessInfo",value:function(An,Gt){var vt=this.props,bt=vt.showInfo,fr=vt.format,Jt=vt.type,Ut=vt.percent,er=Te(this.props);if(!bt)return null;var Mt,Zt=fr||function(Ir){return"".concat(Ir,"%")},Hr=Jt==="line";return fr||Gt!=="exception"&&Gt!=="success"?Mt=Zt(Ce(Ut),Ce(er)):Gt==="exception"?Mt=Hr?r.createElement(C.a,null):r.createElement(b.a,null):Gt==="success"&&(Mt=Hr?r.createElement(O.a,null):r.createElement(x.a,null)),r.createElement("span",{className:"".concat(An,"-text"),title:typeof Mt=="string"?Mt:void 0},Mt)}},{key:"render",value:function(){return r.createElement(I.a,null,this.renderProgress)}}]),Pr}(r.Component);at.defaultProps={type:"line",percent:0,showInfo:!0,trailColor:null,size:"default",gapDegree:void 0,strokeLinecap:"round"};var At=D.a=at},CH3K:function(k,D){function i(y,p){for(var S=-1,A=p.length,m=y.length;++S<A;)y[m+S]=p[S];return y}k.exports=i},"CMP+":function(k,D,i){var y=i("bYtY"),p=i("hM6l"),S=function(m,f,d,l){p.call(this,m,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,p);var A=S;k.exports=A},CP8R:function(k,D,i){"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(k,D,i){},CbHG:function(k,D,i){var y=i("IwbS"),p=y.subPixelOptimize,S=i("zM3Q"),A=i("OELB"),m=A.parsePercent,f=i("bYtY"),d=f.retrieve2,l=typeof Float32Array!="undefined"?Float32Array:Array,o={seriesType:"candlestick",plan:S(),reset:function(a){var e=a.coordinateSystem,u=a.getData(),r=t(a,u),s=0,c=1,h=["x","y"],g=u.mapDimension(h[s]),v=u.mapDimension(h[c],!0),b=v[0],w=v[1],x=v[2],T=v[3];if(u.setLayout({candleWidth:r,isSimpleBox:r<=1.3}),g==null||v.length<4)return;return{progress:a.pipelineContext.large?E:O};function O(C,I){for(var _;(_=C.next())!=null;){var F=I.get(g,_),R=I.get(b,_),B=I.get(w,_),M=I.get(x,_),X=I.get(T,_),P=Math.min(R,B),z=Math.max(R,B),W=te(P,F),U=te(z,F),V=te(M,F),Q=te(X,F),G=[];$(G,U,0),$(G,W,1),G.push(re(Q),re(U),re(V),re(W)),I.setItemLayout(_,{sign:n(I,_,R,B,w),initBaseline:R>B?U[c]:W[c],ends:G,brushRect:le(M,X,F)})}function te(Se,Re){var Pe=[];return Pe[s]=Re,Pe[c]=Se,isNaN(Re)||isNaN(Se)?[NaN,NaN]:e.dataToPoint(Pe)}function $(Se,Re,Pe){var Je=Re.slice(),Ve=Re.slice();Je[s]=p(Je[s]+r/2,1,!1),Ve[s]=p(Ve[s]-r/2,1,!0),Pe?Se.push(Je,Ve):Se.push(Ve,Je)}function le(Se,Re,Pe){var Je=te(Se,Pe),Ve=te(Re,Pe);return Je[s]-=r/2,Ve[s]-=r/2,{x:Je[0],y:Je[1],width:c?r:Ve[0]-Je[0],height:c?Ve[1]-Je[1]:r}}function re(Se){return Se[s]=p(Se[s],1),Se}}function E(C,I){for(var _=new l(C.count*4),F=0,R,B=[],M=[],X;(X=C.next())!=null;){var P=I.get(g,X),z=I.get(b,X),W=I.get(w,X),U=I.get(x,X),V=I.get(T,X);if(isNaN(P)||isNaN(U)||isNaN(V)){_[F++]=NaN,F+=3;continue}_[F++]=n(I,X,z,W,w),B[s]=P,B[c]=U,R=e.dataToPoint(B,null,M),_[F++]=R?R[0]:NaN,_[F++]=R?R[1]:NaN,B[c]=V,R=e.dataToPoint(B,null,M),_[F++]=R?R[1]:NaN}I.setLayout("largePoints",_)}}};function n(a,e,u,r,s){var c;return u>r?c=-1:u<r?c=1:c=e>0?a.get(s,e-1)<=r?1:-1:1,c}function t(a,e){var u=a.getBaseAxis(),r,s=u.type==="category"?u.getBandWidth():(r=u.getExtent(),Math.abs(r[1]-r[0])/e.count()),c=m(d(a.get("barMaxWidth"),s),s),h=m(d(a.get("barMinWidth"),1),s),g=a.get("barWidth");return g!=null?m(g,s):Math.max(Math.min(s/2,c),h)}k.exports=o},CiB2:function(k,D,i){"use strict";i.d(D,"a",function(){return y});function y(p){if(p==null)throw new TypeError("Cannot destructure undefined")}},Cm0C:function(k,D,i){i("5NHt"),i("f3JH")},CrYA:function(k,D,i){var y=i("MFOe"),p=y.Global;k.exports={name:"sessionStorage",read:A,write:m,each:f,remove:d,clearAll:l};function S(){return p.sessionStorage}function A(o){return S().getItem(o)}function m(o,n){return S().setItem(o,n)}function f(o){for(var n=S().length-1;n>=0;n--){var t=S().key(n);o(A(t),t)}}function d(o){return S().removeItem(o)}function l(){return S().clear()}},Csr3:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("4vCz"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},Cwc5:function(k,D,i){var y=i("NKxu"),p=i("Npjl");function S(A,m){var f=p(A,m);return y(f)?f:void 0}k.exports=S},D1Df:function(k,D,i){"use strict";function y(B){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(X){return typeof X}:y=function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},y(B)}function p(){return p=Object.assign||function(B){for(var M=1;M<arguments.length;M++){var X=arguments[M];for(var P in X)Object.prototype.hasOwnProperty.call(X,P)&&(B[P]=X[P])}return B},p.apply(this,arguments)}function S(B,M){var X=Object.keys(B);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(B);M&&(P=P.filter(function(z){return Object.getOwnPropertyDescriptor(B,z).enumerable})),X.push.apply(X,P)}return X}function A(B){for(var M=1;M<arguments.length;M++){var X=arguments[M]!=null?arguments[M]:{};M%2?S(X,!0).forEach(function(P){r(B,P,X[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(B,Object.getOwnPropertyDescriptors(X)):S(X).forEach(function(P){Object.defineProperty(B,P,Object.getOwnPropertyDescriptor(X,P))})}return B}function m(B,M){if(B==null)return{};var X=f(B,M),P,z;if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(B);for(z=0;z<W.length;z++){if(P=W[z],M.indexOf(P)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(B,P))continue;X[P]=B[P]}}return X}function f(B,M){if(B==null)return{};var X={},P=Object.keys(B),z,W;for(W=0;W<P.length;W++){if(z=P[W],M.indexOf(z)>=0)continue;X[z]=B[z]}return X}function d(B,M){if(!(B instanceof M))throw new TypeError("Cannot call a class as a function")}function l(B,M){for(var X=0;X<M.length;X++){var P=M[X];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(B,P.key,P)}}function o(B,M,X){return M&&l(B.prototype,M),X&&l(B,X),B}function n(B,M){return M&&(y(M)==="object"||typeof M=="function")?M:a(B)}function t(B){return t=Object.setPrototypeOf?Object.getPrototypeOf:function(X){return X.__proto__||Object.getPrototypeOf(X)},t(B)}function a(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function e(B,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(M&&M.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),M&&u(B,M)}function u(B,M){return u=Object.setPrototypeOf||function(P,z){return P.__proto__=z,P},u(B,M)}function r(B,M,X){return M in B?Object.defineProperty(B,M,{value:X,enumerable:!0,configurable:!0,writable:!0}):B[M]=X,B}var s=i("q1tI"),c=i("17x9"),h=i("H38U"),g=i("aRTE");function v(B){for(var M="",X=0;X<B.length;X++){var P=B.charCodeAt(X);P<128?M+=String.fromCharCode(P):P<2048?(M+=String.fromCharCode(192|P>>6),M+=String.fromCharCode(128|P&63)):P<55296||P>=57344?(M+=String.fromCharCode(224|P>>12),M+=String.fromCharCode(128|P>>6&63),M+=String.fromCharCode(128|P&63)):(X++,P=65536+((P&1023)<<10|B.charCodeAt(X)&1023),M+=String.fromCharCode(240|P>>18),M+=String.fromCharCode(128|P>>12&63),M+=String.fromCharCode(128|P>>6&63),M+=String.fromCharCode(128|P&63))}return M}var b={size:128,level:"L",bgColor:"#FFFFFF",fgColor:"#000000",includeMargin:!1},w={},x=4,T=.1;function O(B){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,X=[];return B.forEach(function(P,z){var W=null;P.forEach(function(U,V){if(!U&&W!==null){X.push("M".concat(W+M," ").concat(z+M,"h").concat(V-W,"v1H").concat(W+M,"z")),W=null;return}if(V===P.length-1){if(!U)return;W===null?X.push("M".concat(V+M,",").concat(z+M," h1v1H").concat(V+M,"z")):X.push("M".concat(W+M,",").concat(z+M," h").concat(V+1-W,"v1H").concat(W+M,"z"));return}U&&W===null&&(W=V)})}),X.join("")}function E(B,M){return B.slice().map(function(X,P){return P<M.y||P>=M.y+M.h?X:X.map(function(z,W){return W<M.x||W>=M.x+M.w?z:!1})})}function C(B,M){var X=B.imageSettings,P=B.size,z=B.includeMargin;if(X==null)return null;var W=z?x:0,U=M.length+W*2,V=Math.floor(P*T),Q=U/P,G=(X.width||V)*Q,te=(X.height||V)*Q,$=X.x==null?M.length/2-G/2:X.x*Q,le=X.y==null?M.length/2-te/2:X.y*Q,re=null;if(X.excavate){var Se=Math.floor($),Re=Math.floor(le),Pe=Math.ceil(G+$-Se),Je=Math.ceil(te+le-Re);re={x:Se,y:Re,w:Pe,h:Je}}return{x:$,y:le,h:te,w:G,excavation:re}}var I=function(){try{new Path2D().addPath(new Path2D)}catch(B){return!1}return!0}(),_=function(B){e(M,B);function M(){var X,P;d(this,M);for(var z=arguments.length,W=new Array(z),U=0;U<z;U++)W[U]=arguments[U];return P=n(this,(X=t(M)).call.apply(X,[this].concat(W))),r(a(P),"_canvas",void 0),r(a(P),"_image",void 0),r(a(P),"state",{imgLoaded:!1}),r(a(P),"handleImageLoad",function(){P.setState({imgLoaded:!0})}),P}return o(M,[{key:"componentDidMount",value:function(){this.update()}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"update",value:function(){var P=this.props,z=P.value,W=P.size,U=P.level,V=P.bgColor,Q=P.fgColor,G=P.includeMargin,te=P.imageSettings,$=new h(-1,g[U]);if($.addData(v(z)),$.make(),this._canvas!=null){var le=this._canvas,re=le.getContext("2d");if(!re)return;var Se=$.modules;if(Se===null)return;var Re=G?x:0,Pe=Se.length+Re*2,Je=C(this.props,Se);te!=null&&Je!=null&&(Je.excavation!=null&&(Se=E(Se,Je.excavation)));var Ve=window.devicePixelRatio||1;le.height=le.width=W*Ve;var ct=W/Pe*Ve;re.scale(ct,ct),re.fillStyle=V,re.fillRect(0,0,Pe,Pe),re.fillStyle=Q,I?re.fill(new Path2D(O(Se,Re))):Se.forEach(function(Ue,ue){Ue.forEach(function(rt,ge){rt&&re.fillRect(ge+Re,ue+Re,1,1)})}),this.state.imgLoaded&&this._image&&Je!=null&&re.drawImage(this._image,Je.x+Re,Je.y+Re,Je.w,Je.h)}}},{key:"render",value:function(){var P=this,z=this.props,W=z.value,U=z.size,V=z.level,Q=z.bgColor,G=z.fgColor,te=z.style,$=z.includeMargin,le=z.imageSettings,re=m(z,["value","size","level","bgColor","fgColor","style","includeMargin","imageSettings"]),Se=A({height:U,width:U},te),Re=null,Pe=le&&le.src;return le!=null&&Pe!=null&&(Re=s.createElement("img",{src:Pe,style:{display:"none"},onLoad:this.handleImageLoad,ref:function(Ve){return P._image=Ve}})),s.createElement(s.Fragment,null,s.createElement("canvas",p({style:Se,height:U,width:U,ref:function(Ve){return P._canvas=Ve}},re)),Re)}}]),M}(s.PureComponent);r(_,"defaultProps",b);var F=function(B){e(M,B);function M(){return d(this,M),n(this,t(M).apply(this,arguments))}return o(M,[{key:"render",value:function(){var P=this.props,z=P.value,W=P.size,U=P.level,V=P.bgColor,Q=P.fgColor,G=P.includeMargin,te=P.imageSettings,$=m(P,["value","size","level","bgColor","fgColor","includeMargin","imageSettings"]),le=new h(-1,g[U]);le.addData(v(z)),le.make();var re=le.modules;if(re===null)return null;var Se=G?x:0,Re=re.length+Se*2,Pe=C(this.props,re),Je=null;te!=null&&Pe!=null&&(Pe.excavation!=null&&(re=E(re,Pe.excavation)),Je=s.createElement("image",{xlinkHref:te.src,height:Pe.h,width:Pe.w,x:Pe.x+Se,y:Pe.y+Se,preserveAspectRatio:"none"}));var Ve=O(re,Se);return s.createElement("svg",p({shapeRendering:"crispEdges",height:W,width:W,viewBox:"0 0 ".concat(Re," ").concat(Re)},$),s.createElement("path",{fill:V,d:"M0,0 h".concat(Re,"v").concat(Re,"H0z")}),s.createElement("path",{fill:Q,d:Ve}),Je)}}]),M}(s.PureComponent);r(F,"defaultProps",b);var R=function(M){var X=M.renderAs,P=m(M,["renderAs"]),z=X==="svg"?F:_;return s.createElement(z,P)};R.defaultProps=A({renderAs:"canvas"},b),k.exports=R},D1WM:function(k,D,i){var y=i("bYtY"),p=i("hM6l"),S=function(m,f,d,l,o){p.call(this,m,f,d),this.type=l||"value",this.axisIndex=o};S.prototype={constructor:S,model:null,isHorizontal:function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"}},y.inherits(S,p);var A=S;k.exports=A},D5nY:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("4NO4"),A=S.makeInner,m=S.getDataItemValue,f=i("bYtY"),d=f.createHashMap,l=f.each,o=f.map,n=f.isArray,t=f.isString,a=f.isObject,e=f.isTypedArray,u=f.isArrayLike,r=f.extend,s=f.assert,c=i("7G+c"),h=i("k9D9"),g=h.SOURCE_FORMAT_ORIGINAL,v=h.SOURCE_FORMAT_ARRAY_ROWS,b=h.SOURCE_FORMAT_OBJECT_ROWS,w=h.SOURCE_FORMAT_KEYED_COLUMNS,x=h.SOURCE_FORMAT_UNKNOWN,T=h.SOURCE_FORMAT_TYPED_ARRAY,O=h.SERIES_LAYOUT_BY_ROW,E={Must:1,Might:2,Not:3},C=A();function I(G){var te=G.option.source,$=x;if(e(te))$=T;else if(n(te)){te.length===0&&($=v);for(var le=0,re=te.length;le<re;le++){var Se=te[le];if(Se==null)continue;if(n(Se)){$=v;break}else if(a(Se)){$=b;break}}}else if(a(te)){for(var Re in te)if(te.hasOwnProperty(Re)&&u(te[Re])){$=w;break}}else if(te!=null)throw new Error("Invalid data");C(G).sourceFormat=$}function _(G){return C(G).source}function F(G){C(G).datasetMap=d()}function R(G){var te=G.option,$=te.data,le=e($)?T:g,re=!1,Se=te.seriesLayoutBy,Re=te.sourceHeader,Pe=te.dimensions,Je=U(G);if(Je){var Ve=Je.option;$=Ve.source,le=C(Je).sourceFormat,re=!0,Se=Se||Ve.seriesLayoutBy,Re==null&&(Re=Ve.sourceHeader),Pe=Pe||Ve.dimensions}var ct=B($,le,Se,Re,Pe);C(G).source=new c({data:$,fromDataset:re,seriesLayoutBy:Se,sourceFormat:le,dimensionsDefine:ct.dimensionsDefine,startIndex:ct.startIndex,dimensionsDetectCount:ct.dimensionsDetectCount,encodeDefine:te.encode})}function B(G,te,$,le,re){if(!G)return{dimensionsDefine:M(re)};var Se,Re;if(te===v)le==="auto"||le==null?X(function(Je){Je!=null&&Je!=="-"&&(t(Je)?Re==null&&(Re=1):Re=0)},$,G,10):Re=le?1:0,!re&&Re===1&&(re=[],X(function(Je,Ve){re[Ve]=Je!=null?Je:""},$,G)),Se=re?re.length:$===O?G.length:G[0]?G[0].length:null;else if(te===b)re||(re=P(G));else if(te===w)re||(re=[],l(G,function(Je,Ve){re.push(Ve)}));else if(te===g){var Pe=m(G[0]);Se=n(Pe)&&Pe.length||1}else te===T;return{startIndex:Re,dimensionsDefine:M(re),dimensionsDetectCount:Se}}function M(G){if(!G)return;var te=d();return o(G,function($,le){if($=r({},a($)?$:{name:$}),$.name==null)return $;$.name+="",$.displayName==null&&($.displayName=$.name);var re=te.get($.name);return re?$.name+="-"+re.count++:te.set($.name,{count:1}),$})}function X(G,te,$,le){if(le==null&&(le=Infinity),te===O)for(var re=0;re<$.length&&re<le;re++)G($[re]?$[re][0]:null,re);else for(var Se=$[0]||[],re=0;re<Se.length&&re<le;re++)G(Se[re],re)}function P(G){for(var te=0,$;te<G.length&&!($=G[te++]););if($){var le=[];return l($,function(re,Se){le.push(Se)}),le}}function z(G,te,$){var le={},re=U(te);if(!re||!G)return le;var Se=[],Re=[],Pe=te.ecModel,Je=C(Pe).datasetMap,Ve=re.uid+"_"+$.seriesLayoutBy,ct,Ue;G=G.slice(),l(G,function(Z,Y){!a(Z)&&(G[Y]={name:Z}),Z.type==="ordinal"&&ct==null&&(ct=Y,Ue=ge(G[Y])),le[Z.name]=[]});var ue=Je.get(Ve)||Je.set(Ve,{categoryWayDim:Ue,valueWayDim:0});l(G,function(Z,Y){var ee=Z.name,fe=ge(Z);if(ct==null){var be=ue.valueWayDim;rt(le[ee],be,fe),rt(Re,be,fe),ue.valueWayDim+=fe}else if(ct===Y)rt(le[ee],0,fe),rt(Se,0,fe);else{var be=ue.categoryWayDim;rt(le[ee],be,fe),rt(Re,be,fe),ue.categoryWayDim+=fe}});function rt(Z,Y,ee){for(var fe=0;fe<ee;fe++)Z.push(Y+fe)}function ge(Z){var Y=Z.dimsDef;return Y?Y.length:1}return Se.length&&(le.itemName=Se),Re.length&&(le.seriesName=Re),le}function W(G,te,$){var le={},re=U(G);if(!re)return le;var Se=te.sourceFormat,Re=te.dimensionsDefine,Pe;(Se===b||Se===w)&&l(Re,function(ct,Ue){(a(ct)?ct.name:ct)==="name"&&(Pe=Ue)});var Je=function(){for(var ct={},Ue={},ue=[],rt=0,ge=Math.min(5,$);rt<ge;rt++){var Z=Q(te.data,Se,te.seriesLayoutBy,Re,te.startIndex,rt);ue.push(Z);var Y=Z===E.Not;if(Y&&ct.v==null&&rt!==Pe&&(ct.v=rt),(ct.n==null||ct.n===ct.v||!Y&&ue[ct.n]===E.Not)&&(ct.n=rt),ee(ct)&&ue[ct.n]!==E.Not)return ct;Y||(Z===E.Might&&Ue.v==null&&rt!==Pe&&(Ue.v=rt),(Ue.n==null||Ue.n===Ue.v)&&(Ue.n=rt))}function ee(fe){return fe.v!=null&&fe.n!=null}return ee(ct)?ct:ee(Ue)?Ue:null}();if(Je){le.value=Je.v;var Ve=Pe!=null?Pe:Je.n;le.itemName=[Ve],le.seriesName=[Ve]}return le}function U(G){var te=G.option,$=te.data;if(!$)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,$,le,re,Se){var Re,Pe=5;if(e(G))return E.Not;var Je,Ve;if(le){var ct=le[Se];a(ct)?(Je=ct.name,Ve=ct.type):t(ct)&&(Je=ct)}if(Ve!=null)return Ve==="ordinal"?E.Must:E.Not;if(te===v)if($===O){for(var Ue=G[Se],ue=0;ue<(Ue||[]).length&&ue<Pe;ue++)if((Re=Y(Ue[re+ue]))!=null)return Re}else for(var ue=0;ue<G.length&&ue<Pe;ue++){var rt=G[re+ue];if(rt&&(Re=Y(rt[Se]))!=null)return Re}else if(te===b){if(!Je)return E.Not;for(var ue=0;ue<G.length&&ue<Pe;ue++){var ge=G[ue];if(ge&&(Re=Y(ge[Je]))!=null)return Re}}else if(te===w){if(!Je)return E.Not;var Ue=G[Je];if(!Ue||e(Ue))return E.Not;for(var ue=0;ue<Ue.length&&ue<Pe;ue++)if((Re=Y(Ue[ue]))!=null)return Re}else if(te===g)for(var ue=0;ue<G.length&&ue<Pe;ue++){var ge=G[ue],Z=m(ge);if(!n(Z))return E.Not;if((Re=Y(Z[Se]))!=null)return Re}function Y(ee){var fe=t(ee);if(ee!=null&&isFinite(ee)&&ee!=="")return fe?E.Might:E.Not;if(fe&&ee!=="-")return E.Must}return E.Not}D.BE_ORDINAL=E,D.detectSourceFormat=I,D.getSource=_,D.resetSourceDefaulter=F,D.prepareSource=R,D.makeSeriesEncodeForAxisCoordSys=z,D.makeSeriesEncodeForNameBased=W,D.guessOrdinal=V},D9ME:function(k,D,i){var y=i("IwbS"),p=i("fls0"),S=i("bYtY"),A=i("oVpE"),m=A.createSymbol,f=i("QBsz"),d=i("Sj9i");function l(t,a,e){y.Group.call(this),this.add(this.createLine(t,a,e)),this._updateEffectSymbol(t,a)}var o=l.prototype;o.createLine=function(t,a,e){return new p(t,a,e)},o._updateEffectSymbol=function(t,a){var e=t.getItemModel(a),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(a,"color"),h=this.childAt(1);if(this._symbolType!==s&&(this.remove(h),h=m(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,a)},o._updateEffectAnimation=function(t,a,e){var u=this.childAt(1);if(!u)return;var r=this,s=t.getItemLayout(e),c=a.get("period")*1e3,h=a.get("loop"),g=a.get("constantSpeed"),v=S.retrieve(a.get("delay"),function(T){return T/t.count()*c/3}),b=typeof v=="function";if(u.ignore=!0,this.updateAnimationPoints(u,s),g>0&&(c=this.getLineLength(u)/g*1e3),c!==this._period||h!==this._loop){u.stopAnimation();var w=v;b&&(w=v(e)),u.__t>0&&(w=-c*u.__t),u.__t=0;var x=u.animate("",h).when(c,{__t:1}).delay(w).during(function(){r.updateSymbolPosition(u)});h||x.done(function(){r.remove(u)}),x.start()}this._period=c,this._loop=h},o.getLineLength=function(t){return f.dist(t.__p1,t.__cp1)+f.dist(t.__cp1,t.__p2)},o.updateAnimationPoints=function(t,a){t.__p1=a[0],t.__p2=a[1],t.__cp1=a[2]||[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]},o.updateData=function(t,a,e){this.childAt(0).updateData(t,a,e),this._updateEffectSymbol(t,a)},o.updateSymbolPosition=function(t){var a=t.__p1,e=t.__p2,u=t.__cp1,r=t.__t,s=t.position,c=[s[0],s[1]],h=d.quadraticAt,g=d.quadraticDerivativeAt;s[0]=h(a[0],u[0],e[0],r),s[1]=h(a[1],u[1],e[1],r);var v=g(a[0],u[0],e[0],r),b=g(a[1],u[1],e[1],r);if(t.rotation=-Math.atan2(b,v)-Math.PI/2,this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")if(t.__lastT!==void 0&&t.__lastT<t.__t){var w=f.dist(c,s)*1.05;t.attr("scale",[t.scale[0],w]),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 w=2*f.dist(a,s);t.attr("scale",[t.scale[0],w])}else t.attr("scale",this._symbolScale);t.__lastT=t.__t,t.ignore=!1},o.updateLayout=function(t,a){this.childAt(0).updateLayout(t,a);var e=t.getItemModel(a).getModel("effect");this._updateEffectAnimation(t,e,a)},S.inherits(l,y.Group);var n=l;k.exports=n},DBLp:function(k,D){function i(){}i.prototype={diff:function(f,d,l){l||(l=function(b,w){return b===w}),this.equals=l;var o=this;f=f.slice(),d=d.slice();var n=d.length,t=f.length,a=1,e=n+t,u=[{newPos:-1,components:[]}],r=this.extractCommon(u[0],d,f,0);if(u[0].newPos+1>=n&&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 v=-1*a;v<=a;v+=2){var b,w=u[v-1],x=u[v+1],T=(x?x.newPos:0)-v;w&&(u[v-1]=void 0);var O=w&&w.newPos+1<n,E=x&&0<=T&&T<t;if(!O&&!E){u[v]=void 0;continue}if(!O||E&&w.newPos<x.newPos?(b=p(x),o.pushComponent(b.components,void 0,!0)):(b=w,b.newPos++,o.pushComponent(b.components,!0,void 0)),T=o.extractCommon(b,d,f,v),b.newPos+1>=n&&T+1>=t)return y(o,b.components,d,f);u[v]=b}a++}for(;a<=e;){var g=h();if(g)return g}},pushComponent:function(f,d,l){var o=f[f.length-1];o&&o.added===d&&o.removed===l?f[f.length-1]={count:o.count+1,added:d,removed:l}:f.push({count:1,added:d,removed:l})},extractCommon:function(f,d,l,o){for(var n=d.length,t=l.length,a=f.newPos,e=a-o,u=0;a+1<n&&e+1<t&&this.equals(d[a+1],l[e+1]);)a++,e++,u++;return u&&f.components.push({count:u}),f.newPos=a,e},tokenize:function(f){return f.slice()},join:function(f){return f.slice()}};function y(m,f,d,l){for(var o=0,n=f.length,t=0,a=0;o<n;o++){var e=f[o];if(e.removed){for(var u=[],r=a;r<a+e.count;r++)u.push(r);e.indices=u,a+=e.count}else{for(var u=[],r=t;r<t+e.count;r++)u.push(r);e.indices=u,t+=e.count,e.added||(a+=e.count)}}return f}function p(m){return{newPos:m.newPos,components:m.components.slice(0)}}var S=new i;function A(m,f,d){return S.diff(m,f,d)}k.exports=A},DEFe:function(k,D,i){var y=i("bYtY"),p=i("SgGq"),S=i("Ae+d"),A=i("xSat"),m=A.onIrrelevantElement,f=i("IwbS"),d=i("W4dC"),l=i("iRjW"),o=l.getUID,n=i("DN4a");function t(s){var c=s.getItemStyle(),h=s.get("areaColor");return h!=null&&(c.fill=h),c}function a(s,c,h,g,v){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 w=b.target;!w.__regions;)w=w.parent;if(!w)return;var x={type:(c.mainType==="geo"?"geo":"map")+"ToggleSelect",batch:y.map(w.__regions,function(T){return{name:T.name,from:v.uid}})};x[c.mainType+"Id"]=c.id,g.dispatchAction(x),e(c,h)}))}function e(s,c){c.eachChild(function(h){y.each(h.__regions,function(g){h.trigger(s.isSelected(g.name)?"emphasis":"normal")})})}function u(s,c){var h=new f.Group;this.uid=o("ec_map_draw"),this._controller=new p(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,g,v){var b=s.mainType==="geo",w=s.getData&&s.getData();b&&c.eachComponent({mainType:"series",subType:"map"},function(U){!w&&U.getHostGeoModel()===s&&(w=U.getData())});var x=s.coordinateSystem;this._updateBackground(x);var T=this._regionsGroup,O=this.group,E=x.getTransformInfo(),C=!T.childAt(0)||v,I;if(C)O.transform=E.roamTransform,O.decomposeTransform(),O.dirty();else{var _=new n;_.transform=E.roamTransform,_.decomposeTransform();var F={scale:_.scale,position:_.position};I=_.scale,f.updateProps(O,F,s)}var R=E.rawScale,B=E.rawPosition;T.removeAll();var M=["itemStyle"],X=["emphasis","itemStyle"],P=["label"],z=["emphasis","label"],W=y.createHashMap();y.each(x.regions,function(U){var V=W.get(U.name)||W.set(U.name,new f.Group),Q=new f.CompoundPath({segmentIgnoreThreshold:1,shape:{paths:[]}});V.add(Q);var G=s.getRegionModel(U.name)||s,te=G.getModel(M),$=G.getModel(X),le=t(te),re=t($),Se=G.getModel(P),Re=G.getModel(z),Pe;if(w){Pe=w.indexOfName(U.name);var Je=w.getItemVisual(Pe,"color",!0);Je&&(le.fill=Je)}var Ve=function(be){return[be[0]*R[0]+B[0],be[1]*R[1]+B[1]]};y.each(U.geometries,function(be){if(be.type!=="polygon")return;for(var Ce=[],Te=0;Te<be.exterior.length;++Te)Ce.push(Ve(be.exterior[Te]));Q.shape.paths.push(new f.Polygon({segmentIgnoreThreshold:1,shape:{points:Ce}}));for(var Te=0;Te<(be.interiors?be.interiors.length:0);++Te){for(var he=be.interiors[Te],Ce=[],ye=0;ye<he.length;++ye)Ce.push(Ve(he[ye]));Q.shape.paths.push(new f.Polygon({segmentIgnoreThreshold:1,shape:{points:Ce}}))}}),Q.setStyle(le),Q.style.strokeNoScale=!0,Q.culling=!0;var ct=Se.get("show"),Ue=Re.get("show"),ue=w&&isNaN(w.get(w.mapDimension("value"),Pe)),rt=w&&w.getItemLayout(Pe);if(b||ue&&(ct||Ue)||rt&&rt.showLabel){var ge=b?U.name:Pe,Z;(!w||Pe>=0)&&(Z=s);var Y=new f.Text({position:Ve(U.center.slice()),scale:[1/O.scale[0],1/O.scale[1]],z2:10,silent:!0});if(f.setLabelStyle(Y.style,Y.hoverStyle={},Se,Re,{labelFetcher:Z,labelDataIndex:ge,defaultText:U.name,useInsideStyle:!1},{textAlign:"center",textVerticalAlign:"middle"}),!C){var ee=[1/I[0],1/I[1]];f.updateProps(Y,{scale:ee},s)}V.add(Y)}if(w)w.setItemGraphicEl(Pe,V);else{var G=s.getRegionModel(U.name);Q.eventData={componentType:"geo",componentIndex:s.componentIndex,geoIndex:s.componentIndex,name:U.name,region:G&&G.option||{}}}var fe=V.__regions||(V.__regions=[]);fe.push(U),V.highDownSilentOnTouch=!!s.get("selectedMode"),f.setHoverStyle(V,re),T.add(V)}),this._updateController(s,c,h),a(this,s,T,h,g),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 g=s.coordinateSystem,v=this._controller,b=this._controllerHost;b.zoomLimit=s.get("scaleLimit"),b.zoom=g.getZoom(),v.enable(s.get("roam")||!1);var w=s.mainType;function x(){var T={type:"geoRoam",componentType:w};return T[w+"Id"]=s.id,T}v.off("pan").on("pan",function(T){this._mouseDownFlag=!1,S.updateViewOnPan(b,T.dx,T.dy),h.dispatchAction(y.extend(x(),{dx:T.dx,dy:T.dy}))},this),v.off("zoom").on("zoom",function(T){if(this._mouseDownFlag=!1,S.updateViewOnZoom(b,T.scale,T.originX,T.originY),h.dispatchAction(y.extend(x(),{zoom:T.scale,originX:T.originX,originY:T.originY})),this._updateGroup){var O=this.group.scale;this._regionsGroup.traverse(function(E){E.type==="text"&&E.attr("scale",[1/O[0],1/O[1]])})}},this),v.setPointerChecker(function(T,O,E){return g.getViewRectAfterRoam().contain(O,E)&&!m(T,h,s)})}};var r=u;k.exports=r},DFOY:function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("lSNA"),A=i.n(S),m=i("lwsE"),f=i.n(m),d=i("W8MJ"),l=i.n(d),o=i("PJYZ"),n=i.n(o),t=i("7W2i"),a=i.n(t),e=i("LQ03"),u=i.n(e),r=i("q1tI"),s=i.n(r),c=i("VTBJ"),h=i("1OyB"),g=i("vuIU"),v=i("JX7q"),b=i("Ji7U"),w=i("LK+K"),x=i("i8i4"),T=i.n(x),O=i("l4aY"),E=i("m+aA"),C=i("c+Xe"),I=i("zT1h"),_=i("QC+M"),F=i("TSYQ"),R=i.n(F);function B(zt,_t,Ft){return Ft?zt[0]===_t[0]:zt[0]===_t[0]&&zt[1]===_t[1]}function M(zt,_t,Ft){var Wt=zt[_t]||{};return Object(c.a)(Object(c.a)({},Wt),Ft)}function X(zt,_t,Ft,Wt){for(var Vt=Ft.points,Lt=Object.keys(zt),cr=0;cr<Lt.length;cr+=1){var vr=Lt[cr];if(B(zt[vr].points,Vt,Wt))return"".concat(_t,"-placement-").concat(vr)}return""}var P=i("Ff2n"),z=i("xEkU"),W=i.n(z),U=i("9mu1"),V=i("rePB"),Q=i("U8pU"),G=!!(typeof window!="undefined"&&window.document&&window.document.createElement);function te(zt,_t){var Ft={};return Ft[zt.toLowerCase()]=_t.toLowerCase(),Ft["Webkit".concat(zt)]="webkit".concat(_t),Ft["Moz".concat(zt)]="moz".concat(_t),Ft["ms".concat(zt)]="MS".concat(_t),Ft["O".concat(zt)]="o".concat(_t.toLowerCase()),Ft}function $(zt,_t){var Ft={animationend:te("Animation","AnimationEnd"),transitionend:te("Transition","TransitionEnd")};return zt&&("AnimationEvent"in _t||delete Ft.animationend.animation,"TransitionEvent"in _t||delete Ft.transitionend.transition),Ft}var le=$(G,typeof window!="undefined"?window:{}),re={};if(G){var Se=document.createElement("div");re=Se.style}var Re={};function Pe(zt){if(Re[zt])return Re[zt];var _t=le[zt];if(_t)for(var Ft=Object.keys(_t),Wt=Ft.length,Vt=0;Vt<Wt;Vt+=1){var Lt=Ft[Vt];if(Object.prototype.hasOwnProperty.call(_t,Lt)&&Lt in re)return Re[zt]=_t[Lt],Re[zt]}return""}var Je=Pe("animationend"),Ve=Pe("transitionend"),ct=!!(Je&&Ve);function Ue(zt,_t){if(!zt)return null;if(Object(Q.a)(zt)==="object"){var Ft=_t.replace(/-\w/g,function(Wt){return Wt[1].toUpperCase()});return zt[Ft]}return"".concat(zt,"-").concat(_t)}var ue="none",rt="appear",ge="enter",Z="leave";function Y(zt){var _t=zt,Ft=!!r.forwardRef;Object(Q.a)(zt)==="object"&&(_t=zt.transitionSupport,Ft="forwardRef"in zt?zt.forwardRef:Ft);function Wt(Lt){return!!(Lt.motionName&&_t)}var Vt=function(Lt){Object(b.a)(vr,Lt);var cr=Object(w.a)(vr);function vr(){var yr;return Object(h.a)(this,vr),yr=cr.apply(this,arguments),yr.$cacheEle=null,yr.node=null,yr.raf=null,yr.destroyed=!1,yr.deadlineId=null,yr.state={status:ue,statusActive:!1,newStatus:!1,statusStyle:null},yr.onDomUpdate=function(){var Dr=yr.state,Kn=Dr.status,Dn=Dr.newStatus,di=yr.props,mn=di.onAppearStart,Ur=di.onEnterStart,On=di.onLeaveStart,zn=di.onAppearActive,qn=di.onEnterActive,oi=di.onLeaveActive,xi=di.motionAppear,Di=di.motionEnter,Li=di.motionLeave;if(!Wt(yr.props))return;var aa=yr.getElement();yr.$cacheEle!==aa&&(yr.removeEventListener(yr.$cacheEle),yr.addEventListener(aa),yr.$cacheEle=aa),Dn&&Kn===rt&&xi?yr.updateStatus(mn,null,null,function(){yr.updateActiveStatus(zn,rt)}):Dn&&Kn===ge&&Di?yr.updateStatus(Ur,null,null,function(){yr.updateActiveStatus(qn,ge)}):Dn&&Kn===Z&&Li&&yr.updateStatus(On,null,null,function(){yr.updateActiveStatus(oi,Z)})},yr.onMotionEnd=function(Dr){if(Dr&&!Dr.deadline&&Dr.target!==yr.getElement())return;var Kn=yr.state,Dn=Kn.status,di=Kn.statusActive,mn=yr.props,Ur=mn.onAppearEnd,On=mn.onEnterEnd,zn=mn.onLeaveEnd;Dn===rt&&di?yr.updateStatus(Ur,{status:ue},Dr):Dn===ge&&di?yr.updateStatus(On,{status:ue},Dr):Dn===Z&&di&&yr.updateStatus(zn,{status:ue},Dr)},yr.setNodeRef=function(Dr){var Kn=yr.props.internalRef;yr.node=Dr,Object(C.b)(Kn,Dr)},yr.getElement=function(){try{return Object(E.a)(yr.node||Object(v.a)(yr))}catch(Dr){return yr.$cacheEle}},yr.addEventListener=function(Dr){if(!Dr)return;Dr.addEventListener(Ve,yr.onMotionEnd),Dr.addEventListener(Je,yr.onMotionEnd)},yr.removeEventListener=function(Dr){if(!Dr)return;Dr.removeEventListener(Ve,yr.onMotionEnd),Dr.removeEventListener(Je,yr.onMotionEnd)},yr.updateStatus=function(Dr,Kn,Dn,di){var mn=Dr?Dr(yr.getElement(),Dn):null;if(mn===!1||yr.destroyed)return;var Ur;di&&(Ur=function(){yr.nextFrame(di)}),yr.setState(Object(c.a)({statusStyle:Object(Q.a)(mn)==="object"?mn:null,newStatus:!1},Kn),Ur)},yr.updateActiveStatus=function(Dr,Kn){yr.nextFrame(function(){var Dn=yr.state.status;if(Dn!==Kn)return;var di=yr.props.motionDeadline;yr.updateStatus(Dr,{statusActive:!0}),di>0&&(yr.deadlineId=setTimeout(function(){yr.onMotionEnd({deadline:!0})},di))})},yr.nextFrame=function(Dr){yr.cancelNextFrame(),yr.raf=W()(Dr)},yr.cancelNextFrame=function(){yr.raf&&(W.a.cancel(yr.raf),yr.raf=null)},yr}return Object(g.a)(vr,[{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 Dr,Kn=this.state,Dn=Kn.status,di=Kn.statusActive,mn=Kn.statusStyle,Ur=this.props,On=Ur.children,zn=Ur.motionName,qn=Ur.visible,oi=Ur.removeOnLeave,xi=Ur.leavedClassName,Di=Ur.eventProps;return On?Dn===ue||!Wt(this.props)?qn?On(Object(c.a)({},Di),this.setNodeRef):oi?null:On(Object(c.a)(Object(c.a)({},Di),{},{className:xi}),this.setNodeRef):On(Object(c.a)(Object(c.a)({},Di),{},{className:R()(Ue(zn,Dn),(Dr={},Object(V.a)(Dr,Ue(zn,"".concat(Dn,"-active")),di),Object(V.a)(Dr,zn,typeof zn=="string"),Dr)),style:mn}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(Dr,Kn){var Dn=Kn.prevProps,di=Kn.status;if(!Wt(Dr))return{};var mn=Dr.visible,Ur=Dr.motionAppear,On=Dr.motionEnter,zn=Dr.motionLeave,qn=Dr.motionLeaveImmediately,oi={prevProps:Dr};return(di===rt&&!Ur||di===ge&&!On||di===Z&&!zn)&&(oi.status=ue,oi.statusActive=!1,oi.newStatus=!1),!Dn&&mn&&Ur&&(oi.status=rt,oi.statusActive=!1,oi.newStatus=!0),Dn&&!Dn.visible&&mn&&On&&(oi.status=ge,oi.statusActive=!1,oi.newStatus=!0),(Dn&&Dn.visible&&!mn&&zn||!Dn&&qn&&!mn&&zn)&&(oi.status=Z,oi.statusActive=!1,oi.newStatus=!0),oi}}]),vr}(r.Component);return Vt.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},Ft?r.forwardRef(function(Lt,cr){return r.createElement(Vt,Object.assign({internalRef:cr},Lt))}):Vt}var ee=Y(ct),fe="add",be="keep",Ce="remove",Te="removed";function he(zt){var _t;return zt&&Object(Q.a)(zt)==="object"&&"key"in zt?_t=zt:_t={key:zt},Object(c.a)(Object(c.a)({},_t),{},{key:String(_t.key)})}function ye(){var zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return zt.map(he)}function Ie(){var zt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],_t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ft=[],Wt=0,Vt=_t.length,Lt=ye(zt),cr=ye(_t);Lt.forEach(function(Dr){for(var Kn=!1,Dn=Wt;Dn<Vt;Dn+=1){var di=cr[Dn];if(di.key===Dr.key){Wt<Dn&&(Ft=Ft.concat(cr.slice(Wt,Dn).map(function(mn){return Object(c.a)(Object(c.a)({},mn),{},{status:fe})})),Wt=Dn),Ft.push(Object(c.a)(Object(c.a)({},di),{},{status:be})),Wt+=1,Kn=!0;break}}Kn||Ft.push(Object(c.a)(Object(c.a)({},Dr),{},{status:Ce}))}),Wt<Vt&&(Ft=Ft.concat(cr.slice(Wt).map(function(Dr){return Object(c.a)(Object(c.a)({},Dr),{},{status:fe})})));var vr={};Ft.forEach(function(Dr){var Kn=Dr.key;vr[Kn]=(vr[Kn]||0)+1});var yr=Object.keys(vr).filter(function(Dr){return vr[Dr]>1});return yr.forEach(function(Dr){Ft=Ft.filter(function(Kn){var Dn=Kn.key,di=Kn.status;return Dn!==Dr||di!==Ce}),Ft.forEach(function(Kn){Kn.key===Dr&&(Kn.status=be)})}),Ft}var tt=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function pt(zt){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ee,Ft=function(Wt){Object(b.a)(Lt,Wt);var Vt=Object(w.a)(Lt);function Lt(){var cr;return Object(h.a)(this,Lt),cr=Vt.apply(this,arguments),cr.state={keyEntities:[]},cr.removeKey=function(vr){cr.setState(function(yr){var Dr=yr.keyEntities;return{keyEntities:Dr.map(function(Kn){return Kn.key!==vr?Kn:Object(c.a)(Object(c.a)({},Kn),{},{status:Te})})}})},cr}return Object(g.a)(Lt,[{key:"render",value:function(){var vr=this,yr=this.state.keyEntities,Dr=this.props,Kn=Dr.component,Dn=Dr.children,di=Object(P.a)(Dr,["component","children"]),mn=Kn||r.Fragment,Ur={};return tt.forEach(function(On){Ur[On]=di[On],delete di[On]}),delete di.keys,r.createElement(mn,Object.assign({},di),yr.map(function(On){var zn=On.status,qn=Object(P.a)(On,["status"]),oi=zn===fe||zn===be;return r.createElement(_t,Object.assign({},Ur,{key:qn.key,visible:oi,eventProps:qn,onLeaveEnd:function(){Ur.onLeaveEnd&&Ur.onLeaveEnd.apply(Ur,arguments),vr.removeKey(qn.key)}}),Dn)}))}}],[{key:"getDerivedStateFromProps",value:function(vr,yr){var Dr=vr.keys,Kn=yr.keyEntities,Dn=ye(Dr);if(!zt)return{keyEntities:Dn.map(function(Ur){return Object(c.a)(Object(c.a)({},Ur),{},{status:be})})};var di=Ie(Kn,Dn),mn=Kn.length;return{keyEntities:di.filter(function(Ur){for(var On=null,zn=0;zn<mn;zn+=1){var qn=Kn[zn];if(qn.key===Ur.key){On=qn;break}}return!(On&&On.status===Te&&Ur.status===Ce)})}}}]),Lt}(r.Component);return Ft.defaultProps={component:"div"},Ft}var st=pt(ct),Fe=ee,ft=function(_t,Ft){var Wt=_t.prefixCls,Vt=_t.className,Lt=_t.style,cr=_t.children,vr=_t.onMouseEnter,yr=_t.onMouseLeave,Dr=_t.onMouseDown,Kn=_t.onTouchStart,Dn=cr;return r.Children.count(cr)>1&&(Dn=r.createElement("div",{className:"".concat(Wt,"-content")},cr)),r.createElement("div",{ref:Ft,className:Vt,onMouseEnter:vr,onMouseLeave:yr,onMouseDown:Dr,onTouchStart:Kn,style:Lt},Dn)},et=r.forwardRef(ft);et.displayName="PopupInner";var wt=et;function Ht(zt){var _t=zt.prefixCls,Ft=zt.motion,Wt=zt.animation,Vt=zt.transitionName;return Ft||(Wt?{motionName:"".concat(_t,"-").concat(Wt)}:Vt?{motionName:Vt}:null)}function Dt(zt){return zt&&zt.motionName}var Tt=function(zt){Object(b.a)(Ft,zt);var _t=Object(w.a)(Ft);function Ft(){var Wt;return Object(h.a)(this,Ft),Wt=_t.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(Vt,Lt){var cr=Wt.state.status,vr=Wt.props,yr=vr.getClassNameFromAlign,Dr=vr.onAlign,Kn=yr(Lt);cr==="align"?Wt.setState({alignClassName:Kn,status:"aligned"},function(){Wt.alignRef.current.forceAlign()}):cr==="aligned"?(Wt.setState({alignClassName:Kn,status:"afterAlign"}),Dr(Vt,Lt)):Wt.setState({alignClassName:Kn})},Wt.onMotionEnd=function(){var Vt=Wt.props.visible;Wt.setState({status:Vt?"AfterMotion":"stable",inMotion:!1})},Wt.setStateOnNextFrame=function(Vt){Wt.cancelFrameState(),Wt.nextFrameState=Object(c.a)(Object(c.a)({},Wt.nextFrameState),Vt),Wt.nextFrameId=W()(function(){var Lt=Object(c.a)({},Wt.nextFrameState);Wt.nextFrameState=null,Wt.setState(Lt)})},Wt.getMotion=function(){return Object(c.a)({},Ht(Wt.props))},Wt.getAlignTarget=function(){var Vt=Wt.props,Lt=Vt.point,cr=Vt.getRootDomNode;return Lt||cr},Wt.cancelFrameState=function(){W.a.cancel(Wt.nextFrameId)},Wt.renderPopupElement=function(){var Vt=Wt.state,Lt=Vt.status,cr=Vt.targetHeight,vr=Vt.targetWidth,yr=Vt.alignClassName,Dr=Wt.props,Kn=Dr.prefixCls,Dn=Dr.className,di=Dr.style,mn=Dr.stretch,Ur=Dr.visible,On=Dr.align,zn=Dr.destroyPopupOnHide,qn=Dr.onMouseEnter,oi=Dr.onMouseLeave,xi=Dr.onMouseDown,Di=Dr.onTouchStart,Li=Dr.children,aa=R()(Kn,Dn,yr),ma="".concat(Kn,"-hidden"),na={};mn&&(mn.indexOf("height")!==-1?na.height=cr:mn.indexOf("minHeight")!==-1&&(na.minHeight=cr),mn.indexOf("width")!==-1?na.width=vr:mn.indexOf("minWidth")!==-1&&(na.minWidth=vr));var Aa=Object(c.a)(Object(c.a)(Object(c.a)(Object(c.a)({},na),Wt.getZIndexStyle()),di),{},{opacity:Lt==="stable"||!Ur?void 0:0,pointerEvents:Lt==="stable"||!Ur?void 0:"none"}),yi=Wt.getMotion(),Ln=Ur;Ur&&Lt!=="beforeMotion"&&Lt!=="motion"&&Lt!=="stable"&&(yi.motionAppear=!1,yi.motionEnter=!1,yi.motionLeave=!1),(Lt==="afterAlign"||Lt==="beforeMotion")&&(Ln=!1),["onEnterStart","onAppearStart","onLeaveStart"].forEach(function(ea){var ca=yi==null?void 0:yi[ea];yi[ea]=function(){for(var kr=arguments.length,Sr=new Array(kr),yn=0;yn<kr;yn++)Sr[yn]=arguments[yn];ca==null||ca.apply(void 0,Sr),Wt.setState({inMotion:!0})}});var ji=!Ur||Lt!=="align"&&Lt!=="aligned"&&Lt!=="stable",ha=!0;return Lt==="stable"&&(ha=Ur),zn&&!ha?null:s.a.createElement(Fe,Object.assign({visible:Ln},yi,{removeOnLeave:!1,onEnterEnd:Wt.onMotionEnd,onLeaveEnd:Wt.onMotionEnd,leavedClassName:ma}),function(ea,ca){var kr=ea.style,Sr=ea.className;return s.a.createElement(U.a,{target:Wt.getAlignTarget(),key:"popup",ref:Wt.alignRef,monitorWindowResize:!0,disabled:ji,align:On,onAlign:Wt.onAlign},s.a.createElement(wt,{prefixCls:Kn,className:R()(aa,Sr),ref:Object(C.a)(ca,Wt.popupRef),onMouseEnter:qn,onMouseLeave:oi,onMouseDown:xi,onTouchStart:Di,style:Object(c.a)(Object(c.a)({},Aa),kr)},Li))})},Wt.renderMaskElement=function(){var Vt=Wt.props,Lt=Vt.mask,cr=Vt.maskMotion,vr=Vt.maskTransitionName,yr=Vt.maskAnimation,Dr=Vt.prefixCls,Kn=Vt.visible;if(!Lt)return null;var Dn={};return cr&&cr.motionName&&(Dn=Object(c.a)({motionAppear:!0},Ht({motion:cr,prefixCls:Dr,transitionName:vr,animation:yr}))),s.a.createElement(Fe,Object.assign({},Dn,{visible:Kn,removeOnLeave:!0}),function(di){var mn=di.className;return s.a.createElement("div",{style:Wt.getZIndexStyle(),key:"mask",className:R()("".concat(Dr,"-mask"),mn)})})},Wt}return Object(g.a)(Ft,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var Vt=this.state.status,Lt=this.props,cr=Lt.getRootDomNode,vr=Lt.visible,yr=Lt.stretch;if(this.cancelFrameState(),vr&&Vt!=="stable")switch(Vt){case null:{this.setStateOnNextFrame({status:yr?"measure":"align"});break}case"afterAlign":{this.setStateOnNextFrame({status:Dt(this.getMotion())?"beforeMotion":"stable"});break}case"AfterMotion":{this.setStateOnNextFrame({status:"stable"});break}default:{var Dr=["measure","align",null,"beforeMotion","motion"],Kn=Dr.indexOf(Vt),Dn=Dr[Kn+1];Kn!==-1&&Dn&&this.setStateOnNextFrame({status:Dn})}}if(Vt==="measure"){var di=cr();di&&this.setStateOnNextFrame({targetHeight:di.offsetHeight,targetWidth:di.offsetWidth})}}},{key:"componentWillUnmount",value:function(){this.cancelFrameState()}},{key:"getZIndexStyle",value:function(){var Vt=this.props.zIndex;return{zIndex:Vt}}},{key:"render",value:function(){return s.a.createElement("div",null,this.renderMaskElement(),this.renderPopupElement())}}],[{key:"getDerivedStateFromProps",value:function(Vt,Lt){var cr=Vt.visible,vr=Object(P.a)(Vt,["visible"]),yr=Lt.prevVisible,Dr=Lt.status,Kn=Lt.inMotion,Dn={prevVisible:cr,status:Dr},di=Ht(vr);return yr===null&&cr===!1?(Dn.status="stable",Dn.inMotion=!1):cr!==yr&&(Dn.inMotion=!1,cr||Dt(di)&&Kn?Dn.status=null:Dn.status="stable",cr&&(Dn.alignClassName=null)),Dn}}]),Ft}(r.Component),Bt=Tt,Ke=r.createContext(null),de=Ke;function oe(){}function lt(){return""}function qe(){return window.document}var pe=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function Kt(zt){var _t=function(Ft){Object(b.a)(Vt,Ft);var Wt=Object(w.a)(Vt);function Vt(Lt){var cr;Object(h.a)(this,Vt),cr=Wt.call(this,Lt),cr.popupRef=s.a.createRef(),cr.triggerRef=s.a.createRef(),cr.onMouseEnter=function(yr){var Dr=cr.props.mouseEnterDelay;cr.fireEvents("onMouseEnter",yr),cr.delaySetPopupVisible(!0,Dr,Dr?null:yr)},cr.onMouseMove=function(yr){cr.fireEvents("onMouseMove",yr),cr.setPoint(yr)},cr.onMouseLeave=function(yr){cr.fireEvents("onMouseLeave",yr),cr.delaySetPopupVisible(!1,cr.props.mouseLeaveDelay)},cr.onPopupMouseEnter=function(){cr.clearDelayTimer()},cr.onPopupMouseLeave=function(yr){if(yr.relatedTarget&&!yr.relatedTarget.setTimeout&&cr.popupRef.current&&cr.popupRef.current.popupRef.current&&Object(O.a)(cr.popupRef.current.popupRef.current,yr.relatedTarget))return;cr.delaySetPopupVisible(!1,cr.props.mouseLeaveDelay)},cr.onFocus=function(yr){cr.fireEvents("onFocus",yr),cr.clearDelayTimer(),cr.isFocusToShow()&&(cr.focusTime=Date.now(),cr.delaySetPopupVisible(!0,cr.props.focusDelay))},cr.onMouseDown=function(yr){cr.fireEvents("onMouseDown",yr),cr.preClickTime=Date.now()},cr.onTouchStart=function(yr){cr.fireEvents("onTouchStart",yr),cr.preTouchTime=Date.now()},cr.onBlur=function(yr){cr.fireEvents("onBlur",yr),cr.clearDelayTimer(),cr.isBlurToHide()&&cr.delaySetPopupVisible(!1,cr.props.blurDelay)},cr.onContextMenu=function(yr){yr.preventDefault(),cr.fireEvents("onContextMenu",yr),cr.setPopupVisible(!0,yr)},cr.onContextMenuClose=function(){cr.isContextMenuToShow()&&cr.close()},cr.onClick=function(yr){if(cr.fireEvents("onClick",yr),cr.focusTime){var Dr;if(cr.preClickTime&&cr.preTouchTime?Dr=Math.min(cr.preClickTime,cr.preTouchTime):cr.preClickTime?Dr=cr.preClickTime:cr.preTouchTime&&(Dr=cr.preTouchTime),Math.abs(Dr-cr.focusTime)<20)return;cr.focusTime=0}cr.preClickTime=0,cr.preTouchTime=0,cr.isClickToShow()&&(cr.isClickToHide()||cr.isBlurToHide())&&yr&&yr.preventDefault&&yr.preventDefault();var Kn=!cr.state.popupVisible;(cr.isClickToHide()&&!Kn||Kn&&cr.isClickToShow())&&cr.setPopupVisible(!cr.state.popupVisible,yr)},cr.onPopupMouseDown=function(){if(cr.hasPopupMouseDown=!0,clearTimeout(cr.mouseDownTimeout),cr.mouseDownTimeout=window.setTimeout(function(){cr.hasPopupMouseDown=!1},0),cr.context){var yr;(yr=cr.context).onPopupMouseDown.apply(yr,arguments)}},cr.onDocumentClick=function(yr){if(cr.props.mask&&!cr.props.maskClosable)return;var Dr=yr.target,Kn=cr.getRootDomNode(),Dn=cr.getPopupDomNode();!Object(O.a)(Kn,Dr)&&!Object(O.a)(Dn,Dr)&&!cr.hasPopupMouseDown&&cr.close()},cr.getRootDomNode=function(){var yr=cr.props.getTriggerDOMNode;if(yr)return yr(cr.triggerRef.current);try{var Dr=Object(E.a)(cr.triggerRef.current);if(Dr)return Dr}catch(Kn){}return T.a.findDOMNode(Object(v.a)(cr))},cr.getPopupClassNameFromAlign=function(yr){var Dr=[],Kn=cr.props,Dn=Kn.popupPlacement,di=Kn.builtinPlacements,mn=Kn.prefixCls,Ur=Kn.alignPoint,On=Kn.getPopupClassNameFromAlign;return Dn&&di&&Dr.push(X(di,mn,yr,Ur)),On&&Dr.push(On(yr)),Dr.join(" ")},cr.getComponent=function(){var yr=cr.props,Dr=yr.prefixCls,Kn=yr.destroyPopupOnHide,Dn=yr.popupClassName,di=yr.onPopupAlign,mn=yr.popupMotion,Ur=yr.popupAnimation,On=yr.popupTransitionName,zn=yr.popupStyle,qn=yr.mask,oi=yr.maskAnimation,xi=yr.maskTransitionName,Di=yr.maskMotion,Li=yr.zIndex,aa=yr.popup,ma=yr.stretch,na=yr.alignPoint,Aa=cr.state,yi=Aa.popupVisible,Ln=Aa.point,ji=cr.getPopupAlign(),ha={};return cr.isMouseEnterToShow()&&(ha.onMouseEnter=cr.onPopupMouseEnter),cr.isMouseLeaveToHide()&&(ha.onMouseLeave=cr.onPopupMouseLeave),ha.onMouseDown=cr.onPopupMouseDown,ha.onTouchStart=cr.onPopupMouseDown,s.a.createElement(Bt,Object.assign({prefixCls:Dr,destroyPopupOnHide:Kn,visible:yi,point:na&&Ln,className:Dn,align:ji,onAlign:di,animation:Ur,getClassNameFromAlign:cr.getPopupClassNameFromAlign},ha,{stretch:ma,getRootDomNode:cr.getRootDomNode,style:zn,mask:qn,zIndex:Li,transitionName:On,maskAnimation:oi,maskTransitionName:xi,maskMotion:Di,ref:cr.popupRef,motion:mn}),typeof aa=="function"?aa():aa)},cr.getContainer=function(){var yr=Object(v.a)(cr),Dr=yr.props,Kn=document.createElement("div");Kn.style.position="absolute",Kn.style.top="0",Kn.style.left="0",Kn.style.width="100%";var Dn=Dr.getPopupContainer?Dr.getPopupContainer(cr.getRootDomNode()):Dr.getDocument().body;return Dn.appendChild(Kn),Kn},cr.setPoint=function(yr){var Dr=cr.props.alignPoint;if(!Dr||!yr)return;cr.setState({point:{pageX:yr.pageX,pageY:yr.pageY}})},cr.handlePortalUpdate=function(){cr.state.prevPopupVisible!==cr.state.popupVisible&&cr.props.afterPopupVisibleChange(cr.state.popupVisible)};var vr;return"popupVisible"in Lt?vr=!!Lt.popupVisible:vr=!!Lt.defaultPopupVisible,cr.state={prevPopupVisible:vr,popupVisible:vr},pe.forEach(function(yr){cr["fire".concat(yr)]=function(Dr){cr.fireEvents(yr,Dr)}}),cr}return Object(g.a)(Vt,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var cr=this.props,vr=this.state;if(vr.popupVisible){var yr;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(yr=cr.getDocument(),this.clickOutsideHandler=Object(I.a)(yr,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(yr=yr||cr.getDocument(),this.touchOutsideHandler=Object(I.a)(yr,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(yr=yr||cr.getDocument(),this.contextMenuOutsideHandler1=Object(I.a)(yr,"scroll",this.onContextMenuClose)),!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(I.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 cr=this.props,vr=cr.popupPlacement,yr=cr.popupAlign,Dr=cr.builtinPlacements;return vr&&Dr?M(Dr,vr,yr):yr}},{key:"setPopupVisible",value:function(cr,vr){var yr=this.props.alignPoint,Dr=this.state.popupVisible;this.clearDelayTimer(),Dr!==cr&&("popupVisible"in this.props||this.setState({popupVisible:cr,prevPopupVisible:Dr}),this.props.onPopupVisibleChange(cr)),yr&&vr&&this.setPoint(vr)}},{key:"delaySetPopupVisible",value:function(cr,vr,yr){var Dr=this,Kn=vr*1e3;if(this.clearDelayTimer(),Kn){var Dn=yr?{pageX:yr.pageX,pageY:yr.pageY}:null;this.delayTimer=window.setTimeout(function(){Dr.setPopupVisible(cr,Dn),Dr.clearDelayTimer()},Kn)}else this.setPopupVisible(cr,yr)}},{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(cr){var vr=this.props.children.props,yr=this.props;return vr[cr]&&yr[cr]?this["fire".concat(cr)]:vr[cr]||yr[cr]}},{key:"isClickToShow",value:function(){var cr=this.props,vr=cr.action,yr=cr.showAction;return vr.indexOf("click")!==-1||yr.indexOf("click")!==-1}},{key:"isContextMenuToShow",value:function(){var cr=this.props,vr=cr.action,yr=cr.showAction;return vr.indexOf("contextMenu")!==-1||yr.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var cr=this.props,vr=cr.action,yr=cr.hideAction;return vr.indexOf("click")!==-1||yr.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var cr=this.props,vr=cr.action,yr=cr.showAction;return vr.indexOf("hover")!==-1||yr.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var cr=this.props,vr=cr.action,yr=cr.hideAction;return vr.indexOf("hover")!==-1||yr.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var cr=this.props,vr=cr.action,yr=cr.showAction;return vr.indexOf("focus")!==-1||yr.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var cr=this.props,vr=cr.action,yr=cr.hideAction;return vr.indexOf("focus")!==-1||yr.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(cr,vr){var yr=this.props.children.props[cr];yr&&yr(vr);var Dr=this.props[cr];Dr&&Dr(vr)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var cr=this.state.popupVisible,vr=this.props,yr=vr.children,Dr=vr.forceRender,Kn=vr.alignPoint,Dn=vr.className,di=vr.autoDestroy,mn=s.a.Children.only(yr),Ur={key:"trigger"};this.isContextMenuToShow()?Ur.onContextMenu=this.onContextMenu:Ur.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(Ur.onClick=this.onClick,Ur.onMouseDown=this.onMouseDown,Ur.onTouchStart=this.onTouchStart):(Ur.onClick=this.createTwoChains("onClick"),Ur.onMouseDown=this.createTwoChains("onMouseDown"),Ur.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(Ur.onMouseEnter=this.onMouseEnter,Kn&&(Ur.onMouseMove=this.onMouseMove)):Ur.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?Ur.onMouseLeave=this.onMouseLeave:Ur.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(Ur.onFocus=this.onFocus,Ur.onBlur=this.onBlur):(Ur.onFocus=this.createTwoChains("onFocus"),Ur.onBlur=this.createTwoChains("onBlur"));var On=R()(mn&&mn.props&&mn.props.className,Dn);On&&(Ur.className=On);var zn=Object(c.a)({},Ur);Object(C.c)(mn)&&(zn.ref=Object(C.a)(this.triggerRef,mn.ref));var qn=s.a.cloneElement(mn,zn),oi;return(cr||this.popupRef.current||Dr)&&(oi=s.a.createElement(zt,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!cr&&di&&(oi=null),s.a.createElement(de.Provider,{value:{onPopupMouseDown:this.onPopupMouseDown}},qn,oi)}}],[{key:"getDerivedStateFromProps",value:function(cr,vr){var yr=cr.popupVisible,Dr={};return yr!==void 0&&vr.popupVisible!==yr&&(Dr.popupVisible=yr,Dr.prevPopupVisible=vr.popupVisible),Dr}}]),Vt}(s.a.Component);return _t.contextType=de,_t.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:lt,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},_t}var hr=Kt(_.a),gt=i("2W6z"),nr=i.n(gt),mr=i("4IlW"),cn=i("uK0f"),Ar=i.n(cn);function xr(zt,_t){if(zt===_t)return!0;if(!zt||!_t)return!1;var Ft=zt.length;if(_t.length!==Ft)return!1;for(var Wt=0;Wt<Ft;Wt++)if(zt[Wt]!==_t[Wt])return!1;return!0}function qt(zt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qt=function(Ft){return typeof Ft}:qt=function(Ft){return Ft&&typeof Symbol=="function"&&Ft.constructor===Symbol&&Ft!==Symbol.prototype?"symbol":typeof Ft},qt(zt)}function ar(zt,_t){if(!(zt instanceof _t))throw new TypeError("Cannot call a class as a function")}function Et(zt,_t){for(var Ft=0;Ft<_t.length;Ft++){var Wt=_t[Ft];Wt.enumerable=Wt.enumerable||!1,Wt.configurable=!0,"value"in Wt&&(Wt.writable=!0),Object.defineProperty(zt,Wt.key,Wt)}}function en(zt,_t,Ft){return _t&&Et(zt.prototype,_t),Ft&&Et(zt,Ft),zt}function Mn(zt,_t){if(typeof _t!="function"&&_t!==null)throw new TypeError("Super expression must either be null or a function");zt.prototype=Object.create(_t&&_t.prototype,{constructor:{value:zt,writable:!0,configurable:!0}}),_t&&Yn(zt,_t)}function Yn(zt,_t){return Yn=Object.setPrototypeOf||function(Wt,Vt){return Wt.__proto__=Vt,Wt},Yn(zt,_t)}function ci(zt){var _t=Qn();return function(){var Ft=$t(zt),Wt;if(_t){var Vt=$t(this).constructor;Wt=Reflect.construct(Ft,arguments,Vt)}else Wt=Ft.apply(this,arguments);return Vi(this,Wt)}}function Vi(zt,_t){return _t&&(qt(_t)==="object"||typeof _t=="function")?_t:jn(zt)}function jn(zt){if(zt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return zt}function Qn(){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(zt){return!1}}function $t(zt){return $t=Object.setPrototypeOf?Object.getPrototypeOf:function(Ft){return Ft.__proto__||Object.getPrototypeOf(Ft)},$t(zt)}var Ot=function(){var zt=function(_t){Mn(Wt,_t);var Ft=ci(Wt);function Wt(){var Vt;return ar(this,Wt),Vt=Ft.apply(this,arguments),Vt.menuItems={},Vt.saveMenuItem=function(Lt){return function(cr){Vt.menuItems[Lt]=cr}},Vt}return en(Wt,[{key:"componentDidMount",value:function(){this.scrollActiveItemToView()}},{key:"componentDidUpdate",value:function(Lt){!Lt.visible&&this.props.visible&&this.scrollActiveItemToView()}},{key:"getFieldName",value:function(Lt){var cr=this.props,vr=cr.fieldNames,yr=cr.defaultFieldNames;return vr[Lt]||yr[Lt]}},{key:"getOption",value:function(Lt,cr){var vr=this.props,yr=vr.prefixCls,Dr=vr.expandTrigger,Kn=vr.expandIcon,Dn=vr.loadingIcon,di=this.props.onSelect.bind(this,Lt,cr),mn=this.props.onItemDoubleClick.bind(this,Lt,cr),Ur={onClick:di,onDoubleClick:mn},On="".concat(yr,"-menu-item"),zn=null,qn=Lt[this.getFieldName("children")]&&Lt[this.getFieldName("children")].length>0;(qn||Lt.isLeaf===!1)&&(On+=" ".concat(yr,"-menu-item-expand"),Lt.loading||(zn=r.createElement("span",{className:"".concat(yr,"-menu-item-expand-icon")},Kn))),Dr==="hover"&&(qn||Lt.isLeaf===!1)&&(Ur={onMouseEnter:this.delayOnSelect.bind(this,di),onMouseLeave:this.delayOnSelect.bind(this),onClick:di}),this.isActiveOption(Lt,cr)&&(On+=" ".concat(yr,"-menu-item-active"),Ur.ref=this.saveMenuItem(cr)),Lt.disabled&&(On+=" ".concat(yr,"-menu-item-disabled"));var oi=null;Lt.loading&&(On+=" ".concat(yr,"-menu-item-loading"),oi=Dn||null);var xi="";return"title"in Lt?xi=Lt.title:typeof Lt[this.getFieldName("label")]=="string"&&(xi=Lt[this.getFieldName("label")]),r.createElement("li",Object.assign({key:Lt[this.getFieldName("value")],className:On,title:xi},Ur,{role:"menuitem",onMouseDown:function(Li){return Li.preventDefault()}}),Lt[this.getFieldName("label")],zn,oi)}},{key:"getActiveOptions",value:function(Lt){var cr=this,vr=this.props.options,yr=Lt||this.props.activeValue;return Ar()(vr,function(Dr,Kn){return Dr[cr.getFieldName("value")]===yr[Kn]},{childrenKeyName:this.getFieldName("children")})}},{key:"getShowOptions",value:function(){var Lt=this,cr=this.props.options,vr=this.getActiveOptions().map(function(yr){return yr[Lt.getFieldName("children")]}).filter(function(yr){return!!yr});return vr.unshift(cr),vr}},{key:"delayOnSelect",value:function(Lt){for(var cr=this,vr=arguments.length,yr=new Array(vr>1?vr-1:0),Dr=1;Dr<vr;Dr++)yr[Dr-1]=arguments[Dr];this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null),typeof Lt=="function"&&(this.delayTimer=window.setTimeout(function(){Lt(yr),cr.delayTimer=null},150))}},{key:"scrollActiveItemToView",value:function(){for(var Lt=this.getShowOptions().length,cr=0;cr<Lt;cr++){var vr=this.menuItems[cr];vr&&vr.parentElement&&(vr.parentElement.scrollTop=vr.offsetTop)}}},{key:"isActiveOption",value:function(Lt,cr){var vr=this.props.activeValue,yr=vr===void 0?[]:vr;return yr[cr]===Lt[this.getFieldName("value")]}},{key:"render",value:function(){var Lt=this,cr=this.props,vr=cr.prefixCls,yr=cr.dropdownMenuColumnStyle;return r.createElement("div",null,this.getShowOptions().map(function(Dr,Kn){return r.createElement("ul",{className:"".concat(vr,"-menu"),key:Kn,style:yr},Dr.map(function(Dn){return Lt.getOption(Dn,Kn)}))}))}}]),Wt}(r.Component);return zt.defaultProps={options:[],value:[],activeValue:[],onSelect:function(){},prefixCls:"rc-cascader-menus",visible:!1,expandTrigger:"click"},zt}(),ke=Ot,Me={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}}},Be=Me;function at(zt){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?at=function(Ft){return typeof Ft}:at=function(Ft){return Ft&&typeof Symbol=="function"&&Ft.constructor===Symbol&&Ft!==Symbol.prototype?"symbol":typeof Ft},at(zt)}function At(zt,_t){if(zt==null)return{};var Ft=Ct(zt,_t),Wt,Vt;if(Object.getOwnPropertySymbols){var Lt=Object.getOwnPropertySymbols(zt);for(Vt=0;Vt<Lt.length;Vt++){if(Wt=Lt[Vt],_t.indexOf(Wt)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(zt,Wt))continue;Ft[Wt]=zt[Wt]}}return Ft}function Ct(zt,_t){if(zt==null)return{};var Ft={},Wt=Object.keys(zt),Vt,Lt;for(Lt=0;Lt<Wt.length;Lt++){if(Vt=Wt[Lt],_t.indexOf(Vt)>=0)continue;Ft[Vt]=zt[Vt]}return Ft}function Yt(zt){return Gt(zt)||An(zt)||qr(zt)||Pr()}function Pr(){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 qr(zt,_t){if(!zt)return;if(typeof zt=="string")return vt(zt,_t);var Ft=Object.prototype.toString.call(zt).slice(8,-1);if(Ft==="Object"&&zt.constructor&&(Ft=zt.constructor.name),Ft==="Map"||Ft==="Set")return Array.from(zt);if(Ft==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ft))return vt(zt,_t)}function An(zt){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(zt))return Array.from(zt)}function Gt(zt){if(Array.isArray(zt))return vt(zt)}function vt(zt,_t){(_t==null||_t>zt.length)&&(_t=zt.length);for(var Ft=0,Wt=new Array(_t);Ft<_t;Ft++)Wt[Ft]=zt[Ft];return Wt}function bt(zt,_t){if(!(zt instanceof _t))throw new TypeError("Cannot call a class as a function")}function fr(zt,_t){for(var Ft=0;Ft<_t.length;Ft++){var Wt=_t[Ft];Wt.enumerable=Wt.enumerable||!1,Wt.configurable=!0,"value"in Wt&&(Wt.writable=!0),Object.defineProperty(zt,Wt.key,Wt)}}function Jt(zt,_t,Ft){return _t&&fr(zt.prototype,_t),Ft&&fr(zt,Ft),zt}function Ut(zt,_t){if(typeof _t!="function"&&_t!==null)throw new TypeError("Super expression must either be null or a function");zt.prototype=Object.create(_t&&_t.prototype,{constructor:{value:zt,writable:!0,configurable:!0}}),_t&&er(zt,_t)}function er(zt,_t){return er=Object.setPrototypeOf||function(Wt,Vt){return Wt.__proto__=Vt,Wt},er(zt,_t)}function Mt(zt){var _t=Ir();return function(){var Ft=Lr(zt),Wt;if(_t){var Vt=Lr(this).constructor;Wt=Reflect.construct(Ft,arguments,Vt)}else Wt=Ft.apply(this,arguments);return Zt(this,Wt)}}function Zt(zt,_t){return _t&&(at(_t)==="object"||typeof _t=="function")?_t:Hr(zt)}function Hr(zt){if(zt===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return zt}function Ir(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(zt){return!1}}function Lr(zt){return Lr=Object.setPrototypeOf?Object.getPrototypeOf:function(Ft){return Ft.__proto__||Object.getPrototypeOf(Ft)},Lr(zt)}var dn=function(){var zt=function(_t){Ut(Wt,_t);var Ft=Mt(Wt);function Wt(Vt){var Lt;bt(this,Wt),Lt=Ft.call(this,Vt),Lt.setPopupVisible=function(vr){var yr=Lt.state.value;"popupVisible"in Lt.props||Lt.setState({popupVisible:vr}),vr&&!Lt.state.popupVisible&&Lt.setState({activeValue:yr}),Lt.props.onPopupVisibleChange(vr)},Lt.handleChange=function(vr,yr,Dr){var Kn=yr.visible;(Dr.type!=="keydown"||Dr.keyCode===mr.a.ENTER)&&(Lt.props.onChange(vr.map(function(Dn){return Dn[Lt.getFieldName("value")]}),vr),Lt.setPopupVisible(Kn))},Lt.handlePopupVisibleChange=function(vr){Lt.setPopupVisible(vr)},Lt.handleMenuSelect=function(vr,yr,Dr){var Kn=Lt.trigger.getRootDomNode();Kn&&Kn.focus&&Kn.focus();var Dn=Lt.props,di=Dn.changeOnSelect,mn=Dn.loadData,Ur=Dn.expandTrigger;if(!vr||vr.disabled)return;var On=Lt.state.activeValue;On=On.slice(0,yr+1),On[yr]=vr[Lt.getFieldName("value")];var zn=Lt.getActiveOptions(On);if(vr.isLeaf===!1&&!vr[Lt.getFieldName("children")]&&mn){di&&Lt.handleChange(zn,{visible:!0},Dr),Lt.setState({activeValue:On}),mn(zn);return}var qn={};!vr[Lt.getFieldName("children")]||!vr[Lt.getFieldName("children")].length?(Lt.handleChange(zn,{visible:!1},Dr),qn.value=On):di&&(Dr.type==="click"||Dr.type==="keydown")&&(Ur==="hover"?Lt.handleChange(zn,{visible:!1},Dr):Lt.handleChange(zn,{visible:!0},Dr),qn.value=On),qn.activeValue=On,("value"in Lt.props||Dr.type==="keydown"&&Dr.keyCode!==mr.a.ENTER)&&delete qn.value,Lt.setState(qn)},Lt.handleItemDoubleClick=function(){var vr=Lt.props.changeOnSelect;vr&&Lt.setPopupVisible(!1)},Lt.handleKeyDown=function(vr){var yr=Lt.props.children;if(yr&&yr.props.onKeyDown){yr.props.onKeyDown(vr);return}var Dr=Yt(Lt.state.activeValue),Kn=Dr.length-1<0?0:Dr.length-1,Dn=Lt.getCurrentLevelOptions(),di=Dn.map(function(zn){return zn[Lt.getFieldName("value")]}).indexOf(Dr[Kn]);if(vr.keyCode!==mr.a.DOWN&&vr.keyCode!==mr.a.UP&&vr.keyCode!==mr.a.LEFT&&vr.keyCode!==mr.a.RIGHT&&vr.keyCode!==mr.a.ENTER&&vr.keyCode!==mr.a.SPACE&&vr.keyCode!==mr.a.BACKSPACE&&vr.keyCode!==mr.a.ESC&&vr.keyCode!==mr.a.TAB)return;if(!Lt.state.popupVisible&&vr.keyCode!==mr.a.BACKSPACE&&vr.keyCode!==mr.a.LEFT&&vr.keyCode!==mr.a.RIGHT&&vr.keyCode!==mr.a.ESC&&vr.keyCode!==mr.a.TAB){Lt.setPopupVisible(!0);return}if(vr.keyCode===mr.a.DOWN||vr.keyCode===mr.a.UP){vr.preventDefault();var mn=di;mn!==-1?vr.keyCode===mr.a.DOWN?(mn+=1,mn=mn>=Dn.length?0:mn):(mn-=1,mn=mn<0?Dn.length-1:mn):mn=0,Dr[Kn]=Dn[mn][Lt.getFieldName("value")]}else if(vr.keyCode===mr.a.LEFT||vr.keyCode===mr.a.BACKSPACE)vr.preventDefault(),Dr.splice(Dr.length-1,1);else if(vr.keyCode===mr.a.RIGHT)vr.preventDefault(),Dn[di]&&Dn[di][Lt.getFieldName("children")]&&Dr.push(Dn[di][Lt.getFieldName("children")][0][Lt.getFieldName("value")]);else if(vr.keyCode===mr.a.ESC||vr.keyCode===mr.a.TAB){Lt.setPopupVisible(!1);return}(!Dr||Dr.length===0)&&Lt.setPopupVisible(!1);var Ur=Lt.getActiveOptions(Dr),On=Ur[Ur.length-1];Lt.handleMenuSelect(On,Ur.length-1,vr),Lt.props.onKeyDown&&Lt.props.onKeyDown(vr)},Lt.saveTrigger=function(vr){Lt.trigger=vr};var cr=[];return"value"in Vt?cr=Vt.value||[]:"defaultValue"in Vt&&(cr=Vt.defaultValue||[]),nr()(!("filedNames"in Vt),"`filedNames` of Cascader is a typo usage and deprecated, please use `fieldNames` instead."),Lt.state={popupVisible:Vt.popupVisible,activeValue:cr,value:cr,prevProps:Vt},Lt.defaultFieldNames={label:"label",value:"value",children:"children"},Lt}return Jt(Wt,[{key:"getPopupDOMNode",value:function(){return this.trigger.getPopupDomNode()}},{key:"getFieldName",value:function(Lt){var cr=this.defaultFieldNames,vr=this.props,yr=vr.fieldNames,Dr=vr.filedNames;return"filedNames"in this.props?Dr[Lt]||cr[Lt]:yr[Lt]||cr[Lt]}},{key:"getFieldNames",value:function(){var Lt=this.props,cr=Lt.fieldNames,vr=Lt.filedNames;return"filedNames"in this.props?vr:cr}},{key:"getCurrentLevelOptions",value:function(){var Lt=this,cr=this.props.options,vr=cr===void 0?[]:cr,yr=this.state.activeValue,Dr=yr===void 0?[]:yr,Kn=Ar()(vr,function(Dn,di){return Dn[Lt.getFieldName("value")]===Dr[di]},{childrenKeyName:this.getFieldName("children")});return Kn[Kn.length-2]?Kn[Kn.length-2][this.getFieldName("children")]:Yt(vr).filter(function(Dn){return!Dn.disabled})}},{key:"getActiveOptions",value:function(Lt){var cr=this;return Ar()(this.props.options||[],function(vr,yr){return vr[cr.getFieldName("value")]===Lt[yr]},{childrenKeyName:this.getFieldName("children")})}},{key:"render",value:function(){var Lt=this.props,cr=Lt.prefixCls,vr=Lt.transitionName,yr=Lt.popupClassName,Dr=Lt.options,Kn=Dr===void 0?[]:Dr,Dn=Lt.disabled,di=Lt.builtinPlacements,mn=Lt.popupPlacement,Ur=Lt.children,On=Lt.dropdownRender,zn=At(Lt,["prefixCls","transitionName","popupClassName","options","disabled","builtinPlacements","popupPlacement","children","dropdownRender"]),qn=r.createElement("div",null),oi="";Kn&&Kn.length>0?qn=r.createElement(ke,Object.assign({},this.props,{fieldNames:this.getFieldNames(),defaultFieldNames:this.defaultFieldNames,activeValue:this.state.activeValue,onSelect:this.handleMenuSelect,onItemDoubleClick:this.handleItemDoubleClick,visible:this.state.popupVisible})):oi=" ".concat(cr,"-menus-empty");var xi=qn;return On&&(xi=On(qn)),r.createElement(hr,Object.assign({ref:this.saveTrigger},zn,{popupPlacement:mn,builtinPlacements:di,popupTransitionName:vr,action:Dn?[]:["click"],popupVisible:Dn?!1:this.state.popupVisible,onPopupVisibleChange:this.handlePopupVisibleChange,prefixCls:"".concat(cr,"-menus"),popupClassName:yr+oi,popup:xi}),r.cloneElement(Ur,{onKeyDown:this.handleKeyDown,tabIndex:Dn?void 0:0}))}}],[{key:"getDerivedStateFromProps",value:function(Lt,cr){var vr=cr.prevProps,yr=vr===void 0?{}:vr,Dr={prevProps:Lt};return"value"in Lt&&!xr(yr.value,Lt.value)&&(Dr.value=Lt.value||[],"loadData"in Lt||(Dr.activeValue=Lt.value||[])),"popupVisible"in Lt&&(Dr.popupVisible=Lt.popupVisible),Dr}}]),Wt}(r.Component);return zt.defaultProps={onChange:function(){},onPopupVisibleChange:function(){},disabled:!1,transitionName:"",prefixCls:"rc-cascader",popupClassName:"",popupPlacement:"bottomLeft",builtinPlacements:Be,expandTrigger:"click",fieldNames:{label:"label",value:"value",children:"children"},expandIcon:">"},zt}(),gn=dn,ri=gn,Zn=i("BGR+"),pi=i("kbBi"),Ci=i.n(pi),Ni=i("HQEm"),zi=i.n(Ni),it=i("fEPi"),Ne=i.n(it),He=i("5YOS"),Ge=i.n(He),nt=i("DFhj"),$e=i.n(nt),ot=i("5rEg"),Pt=i("H84U"),xt=i("YMnH"),rr=i("uaoM"),Fr=i("3Nzz"),Vr=i("0n0R"),fn=function(zt,_t){var Ft={};for(var Wt in zt)Object.prototype.hasOwnProperty.call(zt,Wt)&&_t.indexOf(Wt)<0&&(Ft[Wt]=zt[Wt]);if(zt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Vt=0,Wt=Object.getOwnPropertySymbols(zt);Vt<Wt.length;Vt++)_t.indexOf(Wt[Vt])<0&&Object.prototype.propertyIsEnumerable.call(zt,Wt[Vt])&&(Ft[Wt[Vt]]=zt[Wt[Vt]]);return Ft},gr=50;function Gn(zt,_t,Ft){return zt.split(_t).map(function(Wt,Vt){return Vt===0?Wt:[r.createElement("span",{className:"".concat(Ft,"-menu-item-keyword"),key:"seperator"},_t),Wt]})}function Mr(zt,_t,Ft){return _t.some(function(Wt){return Wt[Ft.label].indexOf(zt)>-1})}function Rn(zt,_t,Ft,Wt){return _t.map(function(Vt,Lt){var cr=Vt[Wt.label],vr=cr.indexOf(zt)>-1?Gn(cr,zt,Ft):cr;return Lt===0?vr:[" / ",vr]})}function bn(zt,_t,Ft,Wt){function Vt(Lt){return Lt[Wt.label].indexOf(Ft)>-1}return zt.findIndex(Vt)-_t.findIndex(Vt)}function rn(zt){var _t=zt.fieldNames;return _t}function ei(zt){var _t=rn(zt)||{},Ft={children:_t.children||"children",label:_t.label||"label",value:_t.value||"value"};return Ft}function fi(zt,_t){var Ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],Wt=ei(_t),Vt=[],Lt=Wt.children;return zt.forEach(function(cr){var vr=Ft.concat(cr);(_t.changeOnSelect||!cr[Lt]||!cr[Lt].length)&&Vt.push(vr),cr[Lt]&&(Vt=Vt.concat(fi(cr[Lt],_t,vr)))}),Vt}var Mi=function(_t){return _t.join(" / ")};function $r(zt){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(zt||[]).forEach(function(Ft){var Wt=_t.value||"value";Object(rr.a)(Wt in Ft,"Cascader","Not found `value` in `options`."),$r(Ft[_t.children||"children"],_t)})}var En=function(zt){a()(Ft,zt);var _t=u()(Ft);function Ft(Wt){var Vt;return f()(this,Ft),Vt=_t.call(this,Wt),Vt.cachedOptions=[],Vt.setValue=function(Lt){var cr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];"value"in Vt.props||Vt.setState({value:Lt});var vr=Vt.props.onChange;vr&&vr(Lt,cr)},Vt.saveInput=function(Lt){Vt.input=Lt},Vt.handleChange=function(Lt,cr){if(Vt.setState({inputValue:""}),cr[0].__IS_FILTERED_OPTION){var vr=Lt[0],yr=cr[0].path;Vt.setValue(vr,yr);return}Vt.setValue(Lt,cr)},Vt.handlePopupVisibleChange=function(Lt){"popupVisible"in Vt.props||Vt.setState(function(vr){return{popupVisible:Lt,inputFocused:Lt,inputValue:Lt?vr.inputValue:""}});var cr=Vt.props.onPopupVisibleChange;cr&&cr(Lt)},Vt.handleInputBlur=function(){Vt.setState({inputFocused:!1})},Vt.handleInputClick=function(Lt){var cr=Vt.state,vr=cr.inputFocused,yr=cr.popupVisible;(vr||yr)&&Lt.stopPropagation()},Vt.handleKeyDown=function(Lt){(Lt.keyCode===mr.a.BACKSPACE||Lt.keyCode===mr.a.SPACE)&&Lt.stopPropagation()},Vt.handleInputChange=function(Lt){var cr=Vt.state.popupVisible,vr=Lt.target.value;cr||Vt.handlePopupVisibleChange(!0),Vt.setState({inputValue:vr})},Vt.clearSelection=function(Lt){var cr=Vt.state.inputValue;Lt.preventDefault(),Lt.stopPropagation(),cr?Vt.setState({inputValue:""}):(Vt.handlePopupVisibleChange(!1),Vt.clearSelectionTimeout=setTimeout(function(){Vt.setValue([])},200))},Vt.renderCascader=function(Lt,cr){var vr=Lt.getPopupContainer,yr=Lt.getPrefixCls,Dr=Lt.renderEmpty,Kn=Lt.direction;return r.createElement(Fr.b.Consumer,null,function(Dn){var di,mn,Ur,On,zn=n()(Vt),qn=zn.props,oi=zn.state,xi=qn.prefixCls,Di=qn.inputPrefixCls,Li=qn.children,aa=qn.placeholder,ma=aa===void 0?cr.placeholder||"Please select":aa,na=qn.size,Aa=qn.disabled,yi=qn.className,Ln=qn.style,ji=qn.allowClear,ha=qn.showSearch,ea=ha===void 0?!1:ha,ca=qn.suffixIcon,kr=qn.expandIcon,Sr=qn.notFoundContent,yn=qn.popupClassName,dr=qn.bordered,Rr=qn.dropdownRender,Gr=fn(qn,["prefixCls","inputPrefixCls","children","placeholder","size","disabled","className","style","allowClear","showSearch","suffixIcon","expandIcon","notFoundContent","popupClassName","bordered","dropdownRender"]),ln=na||Dn,kn=oi.value,kt=oi.inputFocused,_r=Kn==="rtl",Nr=yr("cascader",xi),Jr=yr("input",Di),xn=R()((di={},A()(di,"".concat(Jr,"-lg"),ln==="large"),A()(di,"".concat(Jr,"-sm"),ln==="small"),di)),Tn=ji&&!Aa&&kn.length>0||oi.inputValue?r.createElement(Ci.a,{className:"".concat(Nr,"-picker-clear"),onClick:Vt.clearSelection}):null,wn=R()((mn={},A()(mn,"".concat(Nr,"-picker-arrow"),!0),A()(mn,"".concat(Nr,"-picker-arrow-expand"),oi.popupVisible),mn)),$n=R()(yi,"".concat(Nr,"-picker"),(Ur={},A()(Ur,"".concat(Nr,"-picker-rtl"),_r),A()(Ur,"".concat(Nr,"-picker-with-value"),oi.inputValue),A()(Ur,"".concat(Nr,"-picker-disabled"),Aa),A()(Ur,"".concat(Nr,"-picker-").concat(ln),!!ln),A()(Ur,"".concat(Nr,"-picker-show-search"),!!ea),A()(Ur,"".concat(Nr,"-picker-focused"),kt),A()(Ur,"".concat(Nr,"-picker-borderless"),!dr),Ur)),Vn=Object(Zn.default)(Gr,["onChange","options","popupPlacement","transitionName","displayRender","onPopupVisibleChange","changeOnSelect","expandTrigger","popupVisible","getPopupContainer","loadData","popupClassName","filterOption","renderFilteredOption","sortFilteredOption","notFoundContent","fieldNames","bordered"]),mi=qn.options,Ri=ei(Vt.props);if(mi&&mi.length>0)oi.inputValue&&(mi=Vt.generateFilteredOptions(Nr,Dr));else{var vi;mi=[(vi={},A()(vi,Ri.label,Sr||Dr("Cascader")),A()(vi,Ri.value,"ANT_CASCADER_NOT_FOUND"),vi)]}oi.popupVisible?Vt.cachedOptions=mi:mi=Vt.cachedOptions;var Bi={},Gi=(mi||[]).length===1&&mi[0].isEmptyNode;Gi&&(Bi.height="auto");var ta=ea.matchInputWidth!==!1;ta&&(oi.inputValue||Gi)&&Vt.input&&(Bi.width=Vt.input.input.offsetWidth);var Pi;ca?Pi=Object(Vr.c)(ca,r.createElement("span",{className:"".concat(Nr,"-picker-arrow")},ca),function(){var Da;return{className:R()((Da={},A()(Da,ca.props.className,ca.props.className),A()(Da,"".concat(Nr,"-picker-arrow"),!0),Da))}}):Pi=r.createElement(zi.a,{className:wn});var Ki=Li||r.createElement("span",{style:Ln,className:$n},r.createElement("span",{className:"".concat(Nr,"-picker-label")},Vt.getLabel()),r.createElement(ot.a,p()({},Vn,{tabIndex:"-1",ref:Vt.saveInput,prefixCls:Jr,placeholder:kn&&kn.length>0?void 0:ma,className:"".concat(Nr,"-input ").concat(xn),value:oi.inputValue,disabled:Aa,readOnly:!ea,autoComplete:Vn.autoComplete||"off",onClick:ea?Vt.handleInputClick:void 0,onBlur:ea?Vt.handleInputBlur:void 0,onKeyDown:Vt.handleKeyDown,onChange:ea?Vt.handleInputChange:void 0})),Tn,Pi),Hi;kr?Hi=kr:Hi=_r?r.createElement($e.a,null):r.createElement(Ne.a,null);var Qi=r.createElement("span",{className:"".concat(Nr,"-menu-item-loading-icon")},r.createElement(Ge.a,{spin:!0})),da=qn.getPopupContainer||vr,Oa=Object(Zn.default)(qn,["inputIcon","expandIcon","loadingIcon","bordered"]),ra=R()(yn,(On={},A()(On,"".concat(Nr,"-menu-").concat(Kn),Kn==="rtl"),A()(On,"".concat(Nr,"-menu-empty"),mi.length===1&&mi[0].value==="ANT_CASCADER_NOT_FOUND"),On));return r.createElement(ri,p()({},Oa,{prefixCls:Nr,getPopupContainer:da,options:mi,value:kn,popupVisible:oi.popupVisible,onPopupVisibleChange:Vt.handlePopupVisibleChange,onChange:Vt.handleChange,dropdownMenuColumnStyle:Bi,expandIcon:Hi,loadingIcon:Qi,popupClassName:ra,popupPlacement:Vt.getPopupPlacement(Kn),dropdownRender:Rr}),Ki)})},Vt.state={value:Wt.value||Wt.defaultValue||[],inputValue:"",inputFocused:!1,popupVisible:Wt.popupVisible,flattenOptions:Wt.showSearch?fi(Wt.options,Wt):void 0,prevProps:Wt},Vt}return l()(Ft,[{key:"componentWillUnmount",value:function(){this.clearSelectionTimeout&&clearTimeout(this.clearSelectionTimeout)}},{key:"getLabel",value:function(){var Vt=this.props,Lt=Vt.options,cr=Vt.displayRender,vr=cr===void 0?Mi:cr,yr=ei(this.props),Dr=this.state.value,Kn=Array.isArray(Dr[0])?Dr[0]:Dr,Dn=Ar()(Lt,function(mn,Ur){return mn[yr.value]===Kn[Ur]},{childrenKeyName:yr.children}),di=Dn.length?Dn.map(function(mn){return mn[yr.label]}):Dr;return vr(di,Dn)}},{key:"generateFilteredOptions",value:function(Vt,Lt){var cr=this,vr,yr=this.props,Dr=yr.showSearch,Kn=yr.notFoundContent,Dn=ei(this.props),di=Dr.filter,mn=di===void 0?Mr:di,Ur=Dr.render,On=Ur===void 0?Rn:Ur,zn=Dr.sort,qn=zn===void 0?bn:zn,oi=Dr.limit,xi=oi===void 0?gr:oi,Di=this.state,Li=Di.flattenOptions,aa=Li===void 0?[]:Li,ma=Di.inputValue,na;if(xi>0){na=[];var Aa=0;aa.some(function(yi){var Ln=mn(cr.state.inputValue,yi,Dn);return Ln&&(na.push(yi),Aa+=1),Aa>=xi})}else Object(rr.a)(typeof xi!="number","Cascader","'limit' of showSearch should be positive number or false."),na=aa.filter(function(yi){return mn(cr.state.inputValue,yi,Dn)});return na=na.sort(function(yi,Ln){return qn(yi,Ln,ma,Dn)}),na.length>0?na.map(function(yi){var Ln;return Ln={__IS_FILTERED_OPTION:!0,path:yi},A()(Ln,Dn.value,yi.map(function(ji){return ji[Dn.value]})),A()(Ln,Dn.label,On(ma,yi,Vt,Dn)),A()(Ln,"disabled",yi.some(function(ji){return!!ji.disabled})),A()(Ln,"isEmptyNode",!0),Ln}):[(vr={},A()(vr,Dn.value,"ANT_CASCADER_NOT_FOUND"),A()(vr,Dn.label,Kn||Lt("Cascader")),A()(vr,"disabled",!0),A()(vr,"isEmptyNode",!0),vr)]}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"getPopupPlacement",value:function(){var Vt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"ltr",Lt=this.props.popupPlacement;return Lt!==void 0?Lt:Vt==="rtl"?"bottomRight":"bottomLeft"}},{key:"render",value:function(){var Vt=this;return r.createElement(Pt.a,null,function(Lt){return r.createElement(xt.a,null,function(cr){return Vt.renderCascader(Lt,cr)})})}}],[{key:"getDerivedStateFromProps",value:function(Vt,Lt){var cr=Lt.prevProps,vr={prevProps:Vt};return"value"in Vt&&(vr.value=Vt.value||[]),"popupVisible"in Vt&&(vr.popupVisible=Vt.popupVisible),Vt.showSearch&&cr.options!==Vt.options&&(vr.flattenOptions=fi(Vt.options,Vt)),vr}}]),Ft}(r.Component);En.defaultProps={transitionName:"slide-up",options:[],disabled:!1,allowClear:!0,bordered:!0};var Hn=D.a=En},DFhj:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("GGyF"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},DL4k:function(k,D,i){"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(k,D,i){var y=i("Fofx"),p=i("QBsz"),S=y.identity,A=5e-5;function m(a){return a>A||a<-A}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 m(this.rotation)||m(this.position[0])||m(this.position[1])||m(this.scale[0]-1)||m(this.scale[1]-1)};var l=[];d.updateTransform=function(){var a=this.parent,e=a&&a.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,a.transform,r):y.copy(r,a.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,g=((l[0]-c)*s+c)/l[0]||0,v=((l[1]-h)*s+h)/l[1]||0;r[0]*=g,r[1]*=g,r[2]*=v,r[3]*=v}this.invTransform=this.invTransform||y.create(),y.invert(this.invTransform,r)},d.getLocalTransform=function(a){return f.getLocalTransform(this,a)},d.setTransform=function(a){var e=this.transform,u=a.dpr||1;e?a.setTransform(u*e[0],u*e[1],u*e[2],u*e[3],u*e[4],u*e[5]):a.setTransform(u,0,0,u,0,0)},d.restoreTransform=function(a){var e=a.dpr||1;a.setTransform(e,0,0,e,0,0)};var o=[],n=y.create();d.setLocalTransform=function(a){if(!a)return;var e=a[0]*a[0]+a[1]*a[1],u=a[2]*a[2]+a[3]*a[3],r=this.position,s=this.scale;m(e-1)&&(e=Math.sqrt(e)),m(u-1)&&(u=Math.sqrt(u)),a[0]<0&&(e=-e),a[3]<0&&(u=-u),r[0]=a[4],r[1]=a[5],s[0]=e,s[1]=u,this.rotation=Math.atan2(-a[1]/u,a[0]/e)},d.decomposeTransform=function(){if(!this.transform)return;var a=this.parent,e=this.transform;a&&a.transform&&(y.mul(o,a.invTransform,e),e=o);var u=this.origin;u&&(u[0]||u[1])&&(n[4]=u[0],n[5]=u[1],y.mul(o,e,n),o[4]-=u[0],o[5]-=u[1],e=o),this.setLocalTransform(e)},d.getGlobalScale=function(a){var e=this.transform;return a=a||[],e?(a[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),a[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(a[0]=-a[0]),e[3]<0&&(a[1]=-a[1]),a):(a[0]=1,a[1]=1,a)},d.transformCoordToLocal=function(a,e){var u=[a,e],r=this.invTransform;return r&&p.applyTransform(u,u,r),u},d.transformCoordToGlobal=function(a,e){var u=[a,e],r=this.transform;return r&&p.applyTransform(u,u,r),u},f.getLocalTransform=function(a,e){e=e||[],S(e);var u=a.origin,r=a.scale||[1,1],s=a.rotation||0,c=a.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;k.exports=t},DO2E:function(k,D,i){"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(k,D,i){(function(y){var p=i("Kz5y"),S=i("B8du"),A=D&&!D.nodeType&&D,m=A&&typeof y=="object"&&y&&!y.nodeType&&y,f=m&&m.exports===A,d=f?p.Buffer:void 0,l=d?d.isBuffer:void 0,o=l||S;y.exports=o}).call(this,i("YuTi")(k))},DYRE:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("OPEp"),A=i.n(S)},DZo9:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("JGo8"),A=i.n(S),m=i("+L6B"),f=i("MXD1"),d=i("5Dmo")},Dagg:function(k,D,i){var y=i("Gev7"),p=i("mFDi"),S=i("bYtY"),A=i("Xnb7");function m(d){y.call(this,d)}m.prototype={constructor:m,type:"image",brush:function(l,o){var n=this.style,t=n.image;n.bind(l,this,o);var a=this._image=A.createOrUpdateImage(t,this._image,this,this.onload);if(!a||!A.isImageReady(a))return;var e=n.x||0,u=n.y||0,r=n.width,s=n.height,c=a.width/a.height;if(r==null&&s!=null?r=s*c:s==null&&r!=null?s=r/c:r==null&&s==null&&(r=a.width,s=a.height),this.setTransform(l),n.sWidth&&n.sHeight){var h=n.sx||0,g=n.sy||0;l.drawImage(a,h,g,n.sWidth,n.sHeight,e,u,r,s)}else if(n.sx&&n.sy){var h=n.sx,g=n.sy,v=r-h,b=s-g;l.drawImage(a,h,g,v,b,e,u,r,s)}else l.drawImage(a,e,u,r,s);n.text!=null&&(this.restoreTransform(l),this.drawRectText(l,this.getBoundingRect()))},getBoundingRect:function(){var l=this.style;return this._rect||(this._rect=new p(l.x||0,l.y||0,l.width||0,l.height||0)),this._rect}},S.inherits(m,y);var f=m;k.exports=f},Dg8C:function(k,D,i){var y=i("XxSj"),p=i("bYtY");function S(A,m){A.eachSeriesByType("sankey",function(f){var d=f.getGraph(),l=d.nodes;if(l.length){var o=Infinity,n=-Infinity;p.each(l,function(t){var a=t.getLayout().value;a<o&&(o=a),a>n&&(n=a)}),p.each(l,function(t){var a=new y({type:"color",mappingMethod:"linear",dataExtent:[o,n],visual:f.get("color")}),e=a.mapValueToVisual(t.getLayout().value),u=t.getModel().get("itemStyle.color");u!=null?t.setVisual("color",u):t.setVisual("color",e)})}})}k.exports=S},DjyN:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("Urep"),A=i.n(S),m=i("OaEy")},DlQD:function(k,D,i){(function(y,p){k.exports=p()})(this,function(){"use strict";function y(Dt,Tt){for(var Bt=0;Bt<Tt.length;Bt++){var Ke=Tt[Bt];Ke.enumerable=Ke.enumerable||!1,Ke.configurable=!0,"value"in Ke&&(Ke.writable=!0),Object.defineProperty(Dt,Ke.key,Ke)}}function p(Dt,Tt,Bt){return Tt&&y(Dt.prototype,Tt),Bt&&y(Dt,Bt),Dt}function S(Dt,Tt){if(!Dt)return;if(typeof Dt=="string")return A(Dt,Tt);var Bt=Object.prototype.toString.call(Dt).slice(8,-1);if(Bt==="Object"&&Dt.constructor&&(Bt=Dt.constructor.name),Bt==="Map"||Bt==="Set")return Array.from(Dt);if(Bt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Bt))return A(Dt,Tt)}function A(Dt,Tt){(Tt==null||Tt>Dt.length)&&(Tt=Dt.length);for(var Bt=0,Ke=new Array(Tt);Bt<Tt;Bt++)Ke[Bt]=Dt[Bt];return Ke}function m(Dt,Tt){var Bt;if(typeof Symbol=="undefined"||Dt[Symbol.iterator]==null){if(Array.isArray(Dt)||(Bt=S(Dt))||Tt&&Dt&&typeof Dt.length=="number"){Bt&&(Dt=Bt);var Ke=0;return function(){return Ke>=Dt.length?{done:!0}:{done:!1,value:Dt[Ke++]}}}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 Bt=Dt[Symbol.iterator](),Bt.next.bind(Bt)}function f(Dt,Tt){return Tt={exports:{}},Dt(Tt,Tt.exports),Tt.exports}var d=f(function(Dt){function Tt(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}function Bt(Ke){Dt.exports.defaults=Ke}Dt.exports={defaults:Tt(),getDefaults:Tt,changeDefaults:Bt}}),l=d.defaults,o=d.getDefaults,n=d.changeDefaults,t=/[&<>"']/,a=/[&<>"']/g,e=/[<>"']|&(?!#?\w+;)/,u=/[<>"']|&(?!#?\w+;)/g,r={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},s=function(Tt){return r[Tt]};function c(Dt,Tt){if(Tt){if(t.test(Dt))return Dt.replace(a,s)}else if(e.test(Dt))return Dt.replace(u,s);return Dt}var h=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function g(Dt){return Dt.replace(h,function(Tt,Bt){return Bt=Bt.toLowerCase(),Bt==="colon"?":":Bt.charAt(0)==="#"?Bt.charAt(1)==="x"?String.fromCharCode(parseInt(Bt.substring(2),16)):String.fromCharCode(+Bt.substring(1)):""})}var v=/(^|[^\[])\^/g;function b(Dt,Tt){Dt=Dt.source||Dt,Tt=Tt||"";var Bt={replace:function(de,oe){return oe=oe.source||oe,oe=oe.replace(v,"$1"),Dt=Dt.replace(de,oe),Bt},getRegex:function(){return new RegExp(Dt,Tt)}};return Bt}var w=/[^\w:]/g,x=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function T(Dt,Tt,Bt){if(Dt){var Ke;try{Ke=decodeURIComponent(g(Bt)).replace(w,"").toLowerCase()}catch(de){return null}if(Ke.indexOf("javascript:")===0||Ke.indexOf("vbscript:")===0||Ke.indexOf("data:")===0)return null}Tt&&!x.test(Bt)&&(Bt=_(Tt,Bt));try{Bt=encodeURI(Bt).replace(/%25/g,"%")}catch(de){return null}return Bt}var O={},E=/^[^:]+:\/*[^/]*$/,C=/^([^:]+:)[\s\S]*$/,I=/^([^:]+:\/*[^/]*)[\s\S]*$/;function _(Dt,Tt){O[" "+Dt]||(E.test(Dt)?O[" "+Dt]=Dt+"/":O[" "+Dt]=M(Dt,"/",!0)),Dt=O[" "+Dt];var Bt=Dt.indexOf(":")===-1;return Tt.substring(0,2)==="//"?Bt?Tt:Dt.replace(C,"$1")+Tt:Tt.charAt(0)==="/"?Bt?Tt:Dt.replace(I,"$1")+Tt:Dt+Tt}var F={exec:function(){}};function R(Dt){for(var Tt=1,Bt,Ke;Tt<arguments.length;Tt++){Bt=arguments[Tt];for(Ke in Bt)Object.prototype.hasOwnProperty.call(Bt,Ke)&&(Dt[Ke]=Bt[Ke])}return Dt}function B(Dt,Tt){var Bt=Dt.replace(/\|/g,function(oe,lt,qe){for(var pe=!1,Kt=lt;--Kt>=0&&qe[Kt]==="\\";)pe=!pe;return pe?"|":" |"}),Ke=Bt.split(/ \|/),de=0;if(Ke.length>Tt)Ke.splice(Tt);else for(;Ke.length<Tt;)Ke.push("");for(;de<Ke.length;de++)Ke[de]=Ke[de].trim().replace(/\\\|/g,"|");return Ke}function M(Dt,Tt,Bt){var Ke=Dt.length;if(Ke===0)return"";for(var de=0;de<Ke;){var oe=Dt.charAt(Ke-de-1);if(oe===Tt&&!Bt)de++;else if(oe!==Tt&&Bt)de++;else break}return Dt.substr(0,Ke-de)}function X(Dt,Tt){if(Dt.indexOf(Tt[1])===-1)return-1;for(var Bt=Dt.length,Ke=0,de=0;de<Bt;de++)if(Dt[de]==="\\")de++;else if(Dt[de]===Tt[0])Ke++;else if(Dt[de]===Tt[1]&&(Ke--,Ke<0))return de;return-1}function P(Dt){Dt&&Dt.sanitize&&!Dt.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 z={escape:c,unescape:g,edit:b,cleanUrl:T,resolveUrl:_,noopTest:F,merge:R,splitCells:B,rtrim:M,findClosingBracket:X,checkSanitizeDeprecation:P},W=d.defaults,U=z.rtrim,V=z.splitCells,Q=z.escape,G=z.findClosingBracket;function te(Dt,Tt,Bt){var Ke=Tt.href,de=Tt.title?Q(Tt.title):null,oe=Dt[1].replace(/\\([\[\]])/g,"$1");return Dt[0].charAt(0)!=="!"?{type:"link",raw:Bt,href:Ke,title:de,text:oe}:{type:"image",raw:Bt,href:Ke,title:de,text:Q(oe)}}function $(Dt,Tt){var Bt=Dt.match(/^(\s+)(?:```)/);if(Bt===null)return Tt;var Ke=Bt[1];return Tt.split(`
`).map(function(de){var oe=de.match(/^\s+/);if(oe===null)return de;var lt=oe[0];return lt.length>=Ke.length?de.slice(Ke.length):de}).join(`
`)}var le=function(){function Dt(Bt){this.options=Bt||W}var Tt=Dt.prototype;return Tt.space=function(Ke){var de=this.rules.block.newline.exec(Ke);if(de)return de[0].length>1?{type:"space",raw:de[0]}:{raw:`
`}},Tt.code=function(Ke,de){var oe=this.rules.block.code.exec(Ke);if(oe){var lt=de[de.length-1];if(lt&&lt.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:U(qe,`
`)}}},Tt.fences=function(Ke){var de=this.rules.block.fences.exec(Ke);if(de){var oe=de[0],lt=$(oe,de[3]||"");return{type:"code",raw:oe,lang:de[2]?de[2].trim():de[2],text:lt}}},Tt.heading=function(Ke){var de=this.rules.block.heading.exec(Ke);if(de)return{type:"heading",raw:de[0],depth:de[1].length,text:de[2]}},Tt.nptable=function(Ke){var de=this.rules.block.nptable.exec(Ke);if(de){var oe={type:"table",header:V(de[1].replace(/^ *| *\| *$/g,"")),align:de[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:de[3]?de[3].replace(/\n$/,"").split(`
`):[],raw:de[0]};if(oe.header.length===oe.align.length){var lt=oe.align.length,qe;for(qe=0;qe<lt;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(lt=oe.cells.length,qe=0;qe<lt;qe++)oe.cells[qe]=V(oe.cells[qe],oe.header.length);return oe}}},Tt.hr=function(Ke){var de=this.rules.block.hr.exec(Ke);if(de)return{type:"hr",raw:de[0]}},Tt.blockquote=function(Ke){var de=this.rules.block.blockquote.exec(Ke);if(de){var oe=de[0].replace(/^ *> ?/gm,"");return{type:"blockquote",raw:de[0],text:oe}}},Tt.list=function(Ke){var de=this.rules.block.list.exec(Ke);if(de){for(var oe=de[0],lt=de[2],qe=lt.length>1,pe=lt[lt.length-1]===")",Kt={type:"list",raw:oe,ordered:qe,start:qe?+lt.slice(0,-1):"",loose:!1,items:[]},hr=de[0].match(this.rules.block.item),gt=!1,nr,mr,cn,Ar,xr,qt,ar,Et=hr.length,en=0;en<Et;en++)nr=hr[en],oe=nr,mr=nr.length,nr=nr.replace(/^ *([*+-]|\d+[.)]) */,""),~nr.indexOf(`
`)&&(mr-=nr.length,nr=this.options.pedantic?nr.replace(/^ {1,4}/gm,""):nr.replace(new RegExp("^ {1,"+mr+"}","gm"),"")),en!==Et-1&&(cn=this.rules.block.bullet.exec(hr[en+1])[0],(qe?cn.length===1||!pe&&cn[cn.length-1]===")":cn.length>1||this.options.smartLists&&cn!==lt)&&(Ar=hr.slice(en+1).join(`
`),Kt.raw=Kt.raw.substring(0,Kt.raw.length-Ar.length),en=Et-1)),xr=gt||/\n\n(?!\s*$)/.test(nr),en!==Et-1&&(gt=nr.charAt(nr.length-1)===`
`,xr||(xr=gt)),xr&&(Kt.loose=!0),qt=/^\[[ xX]\] /.test(nr),ar=void 0,qt&&(ar=nr[1]!==" ",nr=nr.replace(/^\[[ xX]\] +/,"")),Kt.items.push({type:"list_item",raw:oe,task:qt,checked:ar,loose:xr,text:nr});return Kt}},Tt.html=function(Ke){var de=this.rules.block.html.exec(Ke);if(de)return{type:this.options.sanitize?"paragraph":"html",raw:de[0],pre:!this.options.sanitizer&&(de[1]==="pre"||de[1]==="script"||de[1]==="style"),text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(de[0]):Q(de[0]):de[0]}},Tt.def=function(Ke){var de=this.rules.block.def.exec(Ke);if(de){de[3]&&(de[3]=de[3].substring(1,de[3].length-1));var oe=de[1].toLowerCase().replace(/\s+/g," ");return{tag:oe,raw:de[0],href:de[2],title:de[3]}}},Tt.table=function(Ke){var de=this.rules.block.table.exec(Ke);if(de){var oe={type:"table",header:V(de[1].replace(/^ *| *\| *$/g,"")),align:de[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:de[3]?de[3].replace(/\n$/,"").split(`
`):[]};if(oe.header.length===oe.align.length){oe.raw=de[0];var lt=oe.align.length,qe;for(qe=0;qe<lt;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(lt=oe.cells.length,qe=0;qe<lt;qe++)oe.cells[qe]=V(oe.cells[qe].replace(/^ *\| *| *\| *$/g,""),oe.header.length);return oe}}},Tt.lheading=function(Ke){var de=this.rules.block.lheading.exec(Ke);if(de)return{type:"heading",raw:de[0],depth:de[2].charAt(0)==="="?1:2,text:de[1]}},Tt.paragraph=function(Ke){var de=this.rules.block.paragraph.exec(Ke);if(de)return{type:"paragraph",raw:de[0],text:de[1].charAt(de[1].length-1)===`
`?de[1].slice(0,-1):de[1]}},Tt.text=function(Ke,de){var oe=this.rules.block.text.exec(Ke);if(oe){var lt=de[de.length-1];return lt&&lt.type==="text"?{raw:oe[0],text:oe[0]}:{type:"text",raw:oe[0],text:oe[0]}}},Tt.escape=function(Ke){var de=this.rules.inline.escape.exec(Ke);if(de)return{type:"escape",raw:de[0],text:Q(de[1])}},Tt.tag=function(Ke,de,oe){var lt=this.rules.inline.tag.exec(Ke);if(lt)return!de&&/^<a /i.test(lt[0])?de=!0:de&&/^<\/a>/i.test(lt[0])&&(de=!1),!oe&&/^<(pre|code|kbd|script)(\s|>)/i.test(lt[0])?oe=!0:oe&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(lt[0])&&(oe=!1),{type:this.options.sanitize?"text":"html",raw:lt[0],inLink:de,inRawBlock:oe,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(lt[0]):Q(lt[0]):lt[0]}},Tt.link=function(Ke){var de=this.rules.inline.link.exec(Ke);if(de){var oe=G(de[2],"()");if(oe>-1){var lt=de[0].indexOf("!")===0?5:4,qe=lt+de[1].length+oe;de[2]=de[2].substring(0,oe),de[0]=de[0].substring(0,qe).trim(),de[3]=""}var pe=de[2],Kt="";if(this.options.pedantic){var hr=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(pe);hr?(pe=hr[1],Kt=hr[3]):Kt=""}else Kt=de[3]?de[3].slice(1,-1):"";pe=pe.trim().replace(/^<([\s\S]*)>$/,"$1");var gt=te(de,{href:pe&&pe.replace(this.rules.inline._escapes,"$1"),title:Kt&&Kt.replace(this.rules.inline._escapes,"$1")},de[0]);return gt}},Tt.reflink=function(Ke,de){var oe;if((oe=this.rules.inline.reflink.exec(Ke))||(oe=this.rules.inline.nolink.exec(Ke))){var lt=(oe[2]||oe[1]).replace(/\s+/g," ");if(lt=de[lt.toLowerCase()],!lt||!lt.href){var qe=oe[0].charAt(0);return{type:"text",raw:qe,text:qe}}var pe=te(oe,lt,oe[0]);return pe}},Tt.strong=function(Ke,de,oe){oe===void 0&&(oe="");var lt=this.rules.inline.strong.start.exec(Ke);if(lt&&(!lt[1]||lt[1]&&(oe===""||this.rules.inline.punctuation.exec(oe)))){de=de.slice(-1*Ke.length);var qe=lt[0]==="**"?this.rules.inline.strong.endAst:this.rules.inline.strong.endUnd;qe.lastIndex=0;for(var pe;(lt=qe.exec(de))!=null;)if(pe=this.rules.inline.strong.middle.exec(de.slice(0,lt.index+3)),pe)return{type:"strong",raw:Ke.slice(0,pe[0].length),text:Ke.slice(2,pe[0].length-2)}}},Tt.em=function(Ke,de,oe){oe===void 0&&(oe="");var lt=this.rules.inline.em.start.exec(Ke);if(lt&&(!lt[1]||lt[1]&&(oe===""||this.rules.inline.punctuation.exec(oe)))){de=de.slice(-1*Ke.length);var qe=lt[0]==="*"?this.rules.inline.em.endAst:this.rules.inline.em.endUnd;qe.lastIndex=0;for(var pe;(lt=qe.exec(de))!=null;)if(pe=this.rules.inline.em.middle.exec(de.slice(0,lt.index+2)),pe)return{type:"em",raw:Ke.slice(0,pe[0].length),text:Ke.slice(1,pe[0].length-1)}}},Tt.codespan=function(Ke){var de=this.rules.inline.code.exec(Ke);if(de){var oe=de[2].replace(/\n/g," "),lt=/[^ ]/.test(oe),qe=oe.startsWith(" ")&&oe.endsWith(" ");return lt&&qe&&(oe=oe.substring(1,oe.length-1)),oe=Q(oe,!0),{type:"codespan",raw:de[0],text:oe}}},Tt.br=function(Ke){var de=this.rules.inline.br.exec(Ke);if(de)return{type:"br",raw:de[0]}},Tt.del=function(Ke){var de=this.rules.inline.del.exec(Ke);if(de)return{type:"del",raw:de[0],text:de[1]}},Tt.autolink=function(Ke,de){var oe=this.rules.inline.autolink.exec(Ke);if(oe){var lt,qe;return oe[2]==="@"?(lt=Q(this.options.mangle?de(oe[1]):oe[1]),qe="mailto:"+lt):(lt=Q(oe[1]),qe=lt),{type:"link",raw:oe[0],text:lt,href:qe,tokens:[{type:"text",raw:lt,text:lt}]}}},Tt.url=function(Ke,de){var oe;if(oe=this.rules.inline.url.exec(Ke)){var lt,qe;if(oe[2]==="@")lt=Q(this.options.mangle?de(oe[0]):oe[0]),qe="mailto:"+lt;else{var pe;do pe=oe[0],oe[0]=this.rules.inline._backpedal.exec(oe[0])[0];while(pe!==oe[0]);lt=Q(oe[0]),oe[1]==="www."?qe="http://"+lt:qe=lt}return{type:"link",raw:oe[0],text:lt,href:qe,tokens:[{type:"text",raw:lt,text:lt}]}}},Tt.inlineText=function(Ke,de,oe){var lt=this.rules.inline.text.exec(Ke);if(lt){var qe;return de?qe=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(lt[0]):Q(lt[0]):lt[0]:qe=Q(this.options.smartypants?oe(lt[0]):lt[0]),{type:"text",raw:lt[0],text:qe}}},Dt}(),re=z.noopTest,Se=z.edit,Re=z.merge,Pe={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]+/};Pe._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,Pe._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,Pe.def=Se(Pe.def).replace("label",Pe._label).replace("title",Pe._title).getRegex(),Pe.bullet=/(?:[*+-]|\d{1,9}[.)])/,Pe.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,Pe.item=Se(Pe.item,"gm").replace(/bull/g,Pe.bullet).getRegex(),Pe.list=Se(Pe.list).replace(/bull/g,Pe.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Pe.def.source+")").getRegex(),Pe._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",Pe._comment=/<!--(?!-?>)[\s\S]*?-->/,Pe.html=Se(Pe.html,"i").replace("comment",Pe._comment).replace("tag",Pe._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Pe.paragraph=Se(Pe._paragraph).replace("hr",Pe.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",Pe._tag).getRegex(),Pe.blockquote=Se(Pe.blockquote).replace("paragraph",Pe.paragraph).getRegex(),Pe.normal=Re({},Pe),Pe.gfm=Re({},Pe.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*|$)"}),Pe.gfm.nptable=Se(Pe.gfm.nptable).replace("hr",Pe.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",Pe._tag).getRegex(),Pe.gfm.table=Se(Pe.gfm.table).replace("hr",Pe.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",Pe._tag).getRegex(),Pe.pedantic=Re({},Pe.normal,{html:Se(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Pe._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:Se(Pe.normal._paragraph).replace("hr",Pe.hr).replace("heading",` *#{1,6} *[^
]`).replace("lheading",Pe.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var Je={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])/};Je._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Je.punctuation=Se(Je.punctuation).replace(/punctuation/g,Je._punctuation).getRegex(),Je._blockSkip="\\[[^\\]]*?\\]\\([^\\)]*?\\)|`[^`]*?`|<[^>]*?>",Je._overlapSkip="__[^_]*?__|\\*\\*\\[^\\*\\]*?\\*\\*",Je.em.start=Se(Je.em.start).replace(/punctuation/g,Je._punctuation).getRegex(),Je.em.middle=Se(Je.em.middle).replace(/punctuation/g,Je._punctuation).replace(/overlapSkip/g,Je._overlapSkip).getRegex(),Je.em.endAst=Se(Je.em.endAst,"g").replace(/punctuation/g,Je._punctuation).getRegex(),Je.em.endUnd=Se(Je.em.endUnd,"g").replace(/punctuation/g,Je._punctuation).getRegex(),Je.strong.start=Se(Je.strong.start).replace(/punctuation/g,Je._punctuation).getRegex(),Je.strong.middle=Se(Je.strong.middle).replace(/punctuation/g,Je._punctuation).replace(/blockSkip/g,Je._blockSkip).getRegex(),Je.strong.endAst=Se(Je.strong.endAst,"g").replace(/punctuation/g,Je._punctuation).getRegex(),Je.strong.endUnd=Se(Je.strong.endUnd,"g").replace(/punctuation/g,Je._punctuation).getRegex(),Je.blockSkip=Se(Je._blockSkip,"g").getRegex(),Je.overlapSkip=Se(Je._overlapSkip,"g").getRegex(),Je._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Je._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Je._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])?)+(?![-_])/,Je.autolink=Se(Je.autolink).replace("scheme",Je._scheme).replace("email",Je._email).getRegex(),Je._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Je.tag=Se(Je.tag).replace("comment",Pe._comment).replace("attribute",Je._attribute).getRegex(),Je._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Je._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,Je._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Je.link=Se(Je.link).replace("label",Je._label).replace("href",Je._href).replace("title",Je._title).getRegex(),Je.reflink=Se(Je.reflink).replace("label",Je._label).getRegex(),Je.reflinkSearch=Se(Je.reflinkSearch,"g").replace("reflink",Je.reflink).replace("nolink",Je.nolink).getRegex(),Je.normal=Re({},Je),Je.pedantic=Re({},Je.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:Se(/^!?\[(label)\]\((.*?)\)/).replace("label",Je._label).getRegex(),reflink:Se(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Je._label).getRegex()}),Je.gfm=Re({},Je.normal,{escape:Se(Je.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.!#$%&'*+\/=?_`{\|}~-]+@))/}),Je.gfm.url=Se(Je.gfm.url,"i").replace("email",Je.gfm._extended_email).getRegex(),Je.breaks=Re({},Je.gfm,{br:Se(Je.br).replace("{2,}","*").getRegex(),text:Se(Je.gfm.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()});var Ve={block:Pe,inline:Je},ct=d.defaults,Ue=Ve.block,ue=Ve.inline;function rt(Dt){return Dt.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 ge(Dt){var Tt="",Bt,Ke,de=Dt.length;for(Bt=0;Bt<de;Bt++)Ke=Dt.charCodeAt(Bt),Math.random()>.5&&(Ke="x"+Ke.toString(16)),Tt+="&#"+Ke+";";return Tt}var Z=function(){function Dt(Bt){this.tokens=[],this.tokens.links=Object.create(null),this.options=Bt||ct,this.options.tokenizer=this.options.tokenizer||new le,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var Ke={block:Ue.normal,inline:ue.normal};this.options.pedantic?(Ke.block=Ue.pedantic,Ke.inline=ue.pedantic):this.options.gfm&&(Ke.block=Ue.gfm,this.options.breaks?Ke.inline=ue.breaks:Ke.inline=ue.gfm),this.tokenizer.rules=Ke}Dt.lex=function(Ke,de){var oe=new Dt(de);return oe.lex(Ke)};var Tt=Dt.prototype;return Tt.lex=function(Ke){return Ke=Ke.replace(/\r\n|\r/g,`
`).replace(/\t/g," "),this.blockTokens(Ke,this.tokens,!0),this.inline(this.tokens),this.tokens},Tt.blockTokens=function(Ke,de,oe){de===void 0&&(de=[]),oe===void 0&&(oe=!0),Ke=Ke.replace(/^ +$/gm,"");for(var lt,qe,pe,Kt;Ke;){if(lt=this.tokenizer.space(Ke)){Ke=Ke.substring(lt.raw.length),lt.type&&de.push(lt);continue}if(lt=this.tokenizer.code(Ke,de)){Ke=Ke.substring(lt.raw.length),lt.type?de.push(lt):(Kt=de[de.length-1],Kt.raw+=`
`+lt.raw,Kt.text+=`
`+lt.text);continue}if(lt=this.tokenizer.fences(Ke)){Ke=Ke.substring(lt.raw.length),de.push(lt);continue}if(lt=this.tokenizer.heading(Ke)){Ke=Ke.substring(lt.raw.length),de.push(lt);continue}if(lt=this.tokenizer.nptable(Ke)){Ke=Ke.substring(lt.raw.length),de.push(lt);continue}if(lt=this.tokenizer.hr(Ke)){Ke=Ke.substring(lt.raw.length),de.push(lt);continue}if(lt=this.tokenizer.blockquote(Ke)){Ke=Ke.substring(lt.raw.length),lt.tokens=this.blockTokens(lt.text,[],oe),de.push(lt);continue}if(lt=this.tokenizer.list(Ke)){for(Ke=Ke.substring(lt.raw.length),pe=lt.items.length,qe=0;qe<pe;qe++)lt.items[qe].tokens=this.blockTokens(lt.items[qe].text,[],!1);de.push(lt);continue}if(lt=this.tokenizer.html(Ke)){Ke=Ke.substring(lt.raw.length),de.push(lt);continue}if(oe&&(lt=this.tokenizer.def(Ke))){Ke=Ke.substring(lt.raw.length),this.tokens.links[lt.tag]||(this.tokens.links[lt.tag]={href:lt.href,title:lt.title});continue}if(lt=this.tokenizer.table(Ke)){Ke=Ke.substring(lt.raw.length),de.push(lt);continue}if(lt=this.tokenizer.lheading(Ke)){Ke=Ke.substring(lt.raw.length),de.push(lt);continue}if(oe&&(lt=this.tokenizer.paragraph(Ke))){Ke=Ke.substring(lt.raw.length),de.push(lt);continue}if(lt=this.tokenizer.text(Ke,de)){Ke=Ke.substring(lt.raw.length),lt.type?de.push(lt):(Kt=de[de.length-1],Kt.raw+=`
`+lt.raw,Kt.text+=`
`+lt.text);continue}if(Ke){var hr="Infinite loop on byte: "+Ke.charCodeAt(0);if(this.options.silent){console.error(hr);break}else throw new Error(hr)}}return de},Tt.inline=function(Ke){var de,oe,lt,qe,pe,Kt,hr=Ke.length;for(de=0;de<hr;de++){Kt=Ke[de];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(pe=Kt.cells[oe],Kt.tokens.cells[oe]=[],lt=0;lt<pe.length;lt++)Kt.tokens.cells[oe][lt]=[],this.inlineTokens(pe[lt],Kt.tokens.cells[oe][lt]);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 Ke},Tt.inlineTokens=function(Ke,de,oe,lt,qe){de===void 0&&(de=[]),oe===void 0&&(oe=!1),lt===void 0&&(lt=!1),qe===void 0&&(qe="");var pe,Kt=Ke,hr;if(this.tokens.links){var gt=Object.keys(this.tokens.links);if(gt.length>0)for(;(hr=this.tokenizer.rules.inline.reflinkSearch.exec(Kt))!=null;)gt.includes(hr[0].slice(hr[0].lastIndexOf("[")+1,-1))&&(Kt=Kt.slice(0,hr.index)+"["+"a".repeat(hr[0].length-2)+"]"+Kt.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(hr=this.tokenizer.rules.inline.blockSkip.exec(Kt))!=null;)Kt=Kt.slice(0,hr.index)+"["+"a".repeat(hr[0].length-2)+"]"+Kt.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;Ke;){if(pe=this.tokenizer.escape(Ke)){Ke=Ke.substring(pe.raw.length),de.push(pe);continue}if(pe=this.tokenizer.tag(Ke,oe,lt)){Ke=Ke.substring(pe.raw.length),oe=pe.inLink,lt=pe.inRawBlock,de.push(pe);continue}if(pe=this.tokenizer.link(Ke)){Ke=Ke.substring(pe.raw.length),pe.type==="link"&&(pe.tokens=this.inlineTokens(pe.text,[],!0,lt)),de.push(pe);continue}if(pe=this.tokenizer.reflink(Ke,this.tokens.links)){Ke=Ke.substring(pe.raw.length),pe.type==="link"&&(pe.tokens=this.inlineTokens(pe.text,[],!0,lt)),de.push(pe);continue}if(pe=this.tokenizer.strong(Ke,Kt,qe)){Ke=Ke.substring(pe.raw.length),pe.tokens=this.inlineTokens(pe.text,[],oe,lt),de.push(pe);continue}if(pe=this.tokenizer.em(Ke,Kt,qe)){Ke=Ke.substring(pe.raw.length),pe.tokens=this.inlineTokens(pe.text,[],oe,lt),de.push(pe);continue}if(pe=this.tokenizer.codespan(Ke)){Ke=Ke.substring(pe.raw.length),de.push(pe);continue}if(pe=this.tokenizer.br(Ke)){Ke=Ke.substring(pe.raw.length),de.push(pe);continue}if(pe=this.tokenizer.del(Ke)){Ke=Ke.substring(pe.raw.length),pe.tokens=this.inlineTokens(pe.text,[],oe,lt),de.push(pe);continue}if(pe=this.tokenizer.autolink(Ke,ge)){Ke=Ke.substring(pe.raw.length),de.push(pe);continue}if(!oe&&(pe=this.tokenizer.url(Ke,ge))){Ke=Ke.substring(pe.raw.length),de.push(pe);continue}if(pe=this.tokenizer.inlineText(Ke,lt,rt)){Ke=Ke.substring(pe.raw.length),qe=pe.raw.slice(-1),de.push(pe);continue}if(Ke){var nr="Infinite loop on byte: "+Ke.charCodeAt(0);if(this.options.silent){console.error(nr);break}else throw new Error(nr)}}return de},p(Dt,null,[{key:"rules",get:function(){return{block:Ue,inline:ue}}}]),Dt}(),Y=d.defaults,ee=z.cleanUrl,fe=z.escape,be=function(){function Dt(Bt){this.options=Bt||Y}var Tt=Dt.prototype;return Tt.code=function(Ke,de,oe){var lt=(de||"").match(/\S*/)[0];if(this.options.highlight){var qe=this.options.highlight(Ke,lt);qe!=null&&qe!==Ke&&(oe=!0,Ke=qe)}return lt?'<pre><code class="'+this.options.langPrefix+fe(lt,!0)+'">'+(oe?Ke:fe(Ke,!0))+`</code></pre>
`:"<pre><code>"+(oe?Ke:fe(Ke,!0))+`</code></pre>
`},Tt.blockquote=function(Ke){return`<blockquote>
`+Ke+`</blockquote>
`},Tt.html=function(Ke){return Ke},Tt.heading=function(Ke,de,oe,lt){return this.options.headerIds?"<h"+de+' id="'+this.options.headerPrefix+lt.slug(oe)+'">'+Ke+"</h"+de+`>
`:"<h"+de+">"+Ke+"</h"+de+`>
`},Tt.hr=function(){return this.options.xhtml?`<hr/>
`:`<hr>
`},Tt.list=function(Ke,de,oe){var lt=de?"ol":"ul",qe=de&&oe!==1?' start="'+oe+'"':"";return"<"+lt+qe+`>
`+Ke+"</"+lt+`>
`},Tt.listitem=function(Ke){return"<li>"+Ke+`</li>
`},Tt.checkbox=function(Ke){return"<input "+(Ke?'checked="" ':"")+'disabled="" type="checkbox"'+(this.options.xhtml?" /":"")+"> "},Tt.paragraph=function(Ke){return"<p>"+Ke+`</p>
`},Tt.table=function(Ke,de){return de&&(de="<tbody>"+de+"</tbody>"),`<table>
<thead>
`+Ke+`</thead>
`+de+`</table>
`},Tt.tablerow=function(Ke){return`<tr>
`+Ke+`</tr>
`},Tt.tablecell=function(Ke,de){var oe=de.header?"th":"td",lt=de.align?"<"+oe+' align="'+de.align+'">':"<"+oe+">";return lt+Ke+"</"+oe+`>
`},Tt.strong=function(Ke){return"<strong>"+Ke+"</strong>"},Tt.em=function(Ke){return"<em>"+Ke+"</em>"},Tt.codespan=function(Ke){return"<code>"+Ke+"</code>"},Tt.br=function(){return this.options.xhtml?"<br/>":"<br>"},Tt.del=function(Ke){return"<del>"+Ke+"</del>"},Tt.link=function(Ke,de,oe){if(Ke=ee(this.options.sanitize,this.options.baseUrl,Ke),Ke===null)return oe;var lt='<a href="'+fe(Ke)+'"';return de&&(lt+=' title="'+de+'"'),lt+=">"+oe+"</a>",lt},Tt.image=function(Ke,de,oe){if(Ke=ee(this.options.sanitize,this.options.baseUrl,Ke),Ke===null)return oe;var lt='<img src="'+Ke+'" alt="'+oe+'"';return de&&(lt+=' title="'+de+'"'),lt+=this.options.xhtml?"/>":">",lt},Tt.text=function(Ke){return Ke},Dt}(),Ce=function(){function Dt(){}var Tt=Dt.prototype;return Tt.strong=function(Ke){return Ke},Tt.em=function(Ke){return Ke},Tt.codespan=function(Ke){return Ke},Tt.del=function(Ke){return Ke},Tt.html=function(Ke){return Ke},Tt.text=function(Ke){return Ke},Tt.link=function(Ke,de,oe){return""+oe},Tt.image=function(Ke,de,oe){return""+oe},Tt.br=function(){return""},Dt}(),Te=function(){function Dt(){this.seen={}}var Tt=Dt.prototype;return Tt.slug=function(Ke){var de=Ke.toLowerCase().trim().replace(/<[!\/a-z].*?>/ig,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(de)){var oe=de;do this.seen[oe]++,de=oe+"-"+this.seen[oe];while(this.seen.hasOwnProperty(de))}return this.seen[de]=0,de},Dt}(),he=d.defaults,ye=z.unescape,Ie=function(){function Dt(Bt){this.options=Bt||he,this.options.renderer=this.options.renderer||new be,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ce,this.slugger=new Te}Dt.parse=function(Ke,de){var oe=new Dt(de);return oe.parse(Ke)};var Tt=Dt.prototype;return Tt.parse=function(Ke,de){de===void 0&&(de=!0);var oe="",lt,qe,pe,Kt,hr,gt,nr,mr,cn,Ar,xr,qt,ar,Et,en,Mn,Yn,ci,Vi=Ke.length;for(lt=0;lt<Vi;lt++){Ar=Ke[lt];switch(Ar.type){case"space":continue;case"hr":{oe+=this.renderer.hr();continue}case"heading":{oe+=this.renderer.heading(this.parseInline(Ar.tokens),Ar.depth,ye(this.parseInline(Ar.tokens,this.textRenderer)),this.slugger);continue}case"code":{oe+=this.renderer.code(Ar.text,Ar.lang,Ar.escaped);continue}case"table":{for(mr="",nr="",Kt=Ar.header.length,qe=0;qe<Kt;qe++)nr+=this.renderer.tablecell(this.parseInline(Ar.tokens.header[qe]),{header:!0,align:Ar.align[qe]});for(mr+=this.renderer.tablerow(nr),cn="",Kt=Ar.cells.length,qe=0;qe<Kt;qe++){for(gt=Ar.tokens.cells[qe],nr="",hr=gt.length,pe=0;pe<hr;pe++)nr+=this.renderer.tablecell(this.parseInline(gt[pe]),{header:!1,align:Ar.align[pe]});cn+=this.renderer.tablerow(nr)}oe+=this.renderer.table(mr,cn);continue}case"blockquote":{cn=this.parse(Ar.tokens),oe+=this.renderer.blockquote(cn);continue}case"list":{for(xr=Ar.ordered,qt=Ar.start,ar=Ar.loose,Kt=Ar.items.length,cn="",qe=0;qe<Kt;qe++)en=Ar.items[qe],Mn=en.checked,Yn=en.task,Et="",en.task&&(ci=this.renderer.checkbox(Mn),ar?en.tokens.length>0&&en.tokens[0].type==="text"?(en.tokens[0].text=ci+" "+en.tokens[0].text,en.tokens[0].tokens&&en.tokens[0].tokens.length>0&&en.tokens[0].tokens[0].type==="text"&&(en.tokens[0].tokens[0].text=ci+" "+en.tokens[0].tokens[0].text)):en.tokens.unshift({type:"text",text:ci}):Et+=ci),Et+=this.parse(en.tokens,ar),cn+=this.renderer.listitem(Et,Yn,Mn);oe+=this.renderer.list(cn,xr,qt);continue}case"html":{oe+=this.renderer.html(Ar.text);continue}case"paragraph":{oe+=this.renderer.paragraph(this.parseInline(Ar.tokens));continue}case"text":{for(cn=Ar.tokens?this.parseInline(Ar.tokens):Ar.text;lt+1<Vi&&Ke[lt+1].type==="text";)Ar=Ke[++lt],cn+=`
`+(Ar.tokens?this.parseInline(Ar.tokens):Ar.text);oe+=de?this.renderer.paragraph(cn):cn;continue}default:{var jn='Token with "'+Ar.type+'" type was not found.';if(this.options.silent){console.error(jn);return}else throw new Error(jn)}}}return oe},Tt.parseInline=function(Ke,de){de=de||this.renderer;var oe="",lt,qe,pe=Ke.length;for(lt=0;lt<pe;lt++){qe=Ke[lt];switch(qe.type){case"escape":{oe+=de.text(qe.text);break}case"html":{oe+=de.html(qe.text);break}case"link":{oe+=de.link(qe.href,qe.title,this.parseInline(qe.tokens,de));break}case"image":{oe+=de.image(qe.href,qe.title,qe.text);break}case"strong":{oe+=de.strong(this.parseInline(qe.tokens,de));break}case"em":{oe+=de.em(this.parseInline(qe.tokens,de));break}case"codespan":{oe+=de.codespan(qe.text);break}case"br":{oe+=de.br();break}case"del":{oe+=de.del(this.parseInline(qe.tokens,de));break}case"text":{oe+=de.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},Dt}(),tt=z.merge,pt=z.checkSanitizeDeprecation,st=z.escape,Fe=d.getDefaults,ft=d.changeDefaults,et=d.defaults;function wt(Dt,Tt,Bt){if(typeof Dt=="undefined"||Dt===null)throw new Error("marked(): input parameter is undefined or null");if(typeof Dt!="string")throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(Dt)+", string expected");if(typeof Tt=="function"&&(Bt=Tt,Tt=null),Tt=tt({},wt.defaults,Tt||{}),pt(Tt),Bt){var Ke=Tt.highlight,de;try{de=Z.lex(Dt,Tt)}catch(pe){return Bt(pe)}var oe=function(Kt){var hr;if(!Kt)try{hr=Ie.parse(de,Tt)}catch(gt){Kt=gt}return Tt.highlight=Ke,Kt?Bt(Kt):Bt(null,hr)};if(!Ke||Ke.length<3)return oe();if(delete Tt.highlight,!de.length)return oe();var lt=0;wt.walkTokens(de,function(pe){pe.type==="code"&&(lt++,setTimeout(function(){Ke(pe.text,pe.lang,function(Kt,hr){if(Kt)return oe(Kt);hr!=null&&hr!==pe.text&&(pe.text=hr,pe.escaped=!0),lt--,lt===0&&oe()})},0))}),lt===0&&oe();return}try{var qe=Z.lex(Dt,Tt);return Tt.walkTokens&&wt.walkTokens(qe,Tt.walkTokens),Ie.parse(qe,Tt)}catch(pe){if(pe.message+=`
Please report this to https://github.com/markedjs/marked.`,Tt.silent)return"<p>An error occurred:</p><pre>"+st(pe.message+"",!0)+"</pre>";throw pe}}wt.options=wt.setOptions=function(Dt){return tt(wt.defaults,Dt),ft(wt.defaults),wt},wt.getDefaults=Fe,wt.defaults=et,wt.use=function(Dt){var Tt=tt({},Dt);if(Dt.renderer&&function(){var Ke=wt.defaults.renderer||new be,de=function(qe){var pe=Ke[qe];Ke[qe]=function(){for(var Kt=arguments.length,hr=new Array(Kt),gt=0;gt<Kt;gt++)hr[gt]=arguments[gt];var nr=Dt.renderer[qe].apply(Ke,hr);return nr===!1&&(nr=pe.apply(Ke,hr)),nr}};for(var oe in Dt.renderer)de(oe);Tt.renderer=Ke}(),Dt.tokenizer&&function(){var Ke=wt.defaults.tokenizer||new le,de=function(qe){var pe=Ke[qe];Ke[qe]=function(){for(var Kt=arguments.length,hr=new Array(Kt),gt=0;gt<Kt;gt++)hr[gt]=arguments[gt];var nr=Dt.tokenizer[qe].apply(Ke,hr);return nr===!1&&(nr=pe.apply(Ke,hr)),nr}};for(var oe in Dt.tokenizer)de(oe);Tt.tokenizer=Ke}(),Dt.walkTokens){var Bt=wt.defaults.walkTokens;Tt.walkTokens=function(Ke){Dt.walkTokens(Ke),Bt&&Bt(Ke)}}wt.setOptions(Tt)},wt.walkTokens=function(Dt,Tt){for(var Bt=m(Dt),Ke;!(Ke=Bt()).done;){var de=Ke.value;Tt(de);switch(de.type){case"table":{for(var oe=m(de.tokens.header),lt;!(lt=oe()).done;){var qe=lt.value;wt.walkTokens(qe,Tt)}for(var pe=m(de.tokens.cells),Kt;!(Kt=pe()).done;)for(var hr=Kt.value,gt=m(hr),nr;!(nr=gt()).done;){var mr=nr.value;wt.walkTokens(mr,Tt)}break}case"list":{wt.walkTokens(de.items,Tt);break}default:de.tokens&&wt.walkTokens(de.tokens,Tt)}}},wt.Parser=Ie,wt.parser=Ie.parse,wt.Renderer=be,wt.TextRenderer=Ce,wt.Lexer=Z,wt.lexer=Z.lex,wt.Tokenizer=le,wt.Slugger=Te,wt.parse=wt;var Ht=wt;return Ht})},"DlR+":function(k,D,i){var y=i("MFOe"),p=y.Global,S=y.trim;k.exports={name:"cookieStorage",read:m,write:d,each:f,remove:l,clearAll:o};var A=p.document;function m(t){if(!t||!n(t))return null;var a="(?:^|.*;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";return unescape(A.cookie.replace(new RegExp(a),"$1"))}function f(t){for(var a=A.cookie.split(/; ?/g),e=a.length-1;e>=0;e--){if(!S(a[e]))continue;var u=a[e].split("="),r=unescape(u[0]),s=unescape(u[1]);t(s,r)}}function d(t,a){if(!t)return;A.cookie=escape(t)+"="+escape(a)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/"}function l(t){if(!t||!n(t))return;A.cookie=escape(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/"}function o(){f(function(t,a){l(a)})}function n(t){return new RegExp("(?:^|;\\s*)"+escape(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(A.cookie)}},Ducp:function(k,D,i){var y=i("bYtY"),p=i("IwbS"),S=i("+TT/"),A=i("XpcN"),m=p.Group,f=["width","height"],d=["x","y"],l=A.extend({type:"legend.scroll",newlineDisabled:!0,init:function(){l.superCall(this,"init"),this._currentIndex=0,this.group.add(this._containerGroup=new m),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new m),this._showController},resetInner:function(){l.superCall(this,"resetInner"),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},renderInner:function(n,t,a,e,u,r,s){var c=this;l.superCall(this,"renderInner",n,t,a,e,u,r,s);var h=this._controllerGroup,g=t.get("pageIconSize",!0);y.isArray(g)||(g=[g,g]),b("pagePrev",0);var v=t.getModel("pageTextStyle");h.add(new p.Text({name:"pageText",style:{textFill:v.getTextColor(),font:v.getFont(),textVerticalAlign:"middle",textAlign:"center"},silent:!0})),b("pageNext",1);function b(w,x){var T=w+"DataIndex",O=p.createIcon(t.get("pageIcons",!0)[t.getOrient().name][x],{onclick:y.bind(c._pageGo,c,T,t,e)},{x:-g[0]/2,y:-g[1]/2,width:g[0],height:g[1]});O.name=w,h.add(O)}},layoutInner:function(n,t,a,e,u,r){var s=this.getSelectorGroup(),c=n.getOrient().index,h=f[c],g=d[c],v=f[1-c],b=d[1-c];u&&S.box("horizontal",s,n.get("selectorItemGap",!0));var w=n.get("selectorButtonGap",!0),x=s.getBoundingRect(),T=[-x.x,-x.y],O=y.clone(a);u&&(O[h]=a[h]-x[h]-w);var E=this._layoutContentAndController(n,e,O,c,h,v,b);if(u){if(r==="end")T[c]+=E[h]+w;else{var C=x[h]+w;T[c]-=C,E[g]-=C}E[h]+=x[h]+w,T[1-c]+=E[b]+E[v]/2-x[v]/2,E[v]=Math.max(E[v],x[v]),E[b]=Math.min(E[b],x[b]+T[1-c]),s.attr("position",T)}return E},_layoutContentAndController:function(n,t,a,e,u,r,s){var c=this.getContentGroup(),h=this._containerGroup,g=this._controllerGroup;S.box(n.get("orient"),c,n.get("itemGap"),e?a.width:null,e?null:a.height),S.box("horizontal",g,n.get("pageButtonItemGap",!0));var v=c.getBoundingRect(),b=g.getBoundingRect(),w=this._showController=v[u]>a[u],x=[-v.x,-v.y];t||(x[e]=c.position[e]);var T=[0,0],O=[-b.x,-b.y],E=y.retrieve2(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(w){var C=n.get("pageButtonPosition",!0);C==="end"?O[e]+=a[u]-b[u]:T[e]+=b[u]+E}O[1-e]+=v[r]/2-b[r]/2,c.attr("position",x),h.attr("position",T),g.attr("position",O);var I={x:0,y:0};if(I[u]=w?a[u]:v[u],I[r]=Math.max(v[r],b[r]),I[s]=Math.min(0,b[s]+O[1-e]),h.__rectSize=a[u],w){var _={x:0,y:0};_[u]=Math.max(a[u]-b[u]-E,0),_[r]=I[r],h.setClipPath(new p.Rect({shape:_})),h.__rectSize=_[u]}else g.eachChild(function(R){R.attr({invisible:!0,silent:!0})});var F=this._getPageInfo(n);return F.pageIndex!=null&&p.updateProps(c,{position:F.contentPosition},w?n:!1),this._updatePageInfoView(n,F),I},_pageGo:function(n,t,a){var e=this._getPageInfo(t)[n];e!=null&&a.dispatchAction({type:"legendScroll",scrollDataIndex:e,legendId:t.id})},_updatePageInfoView:function(n,t){var a=this._controllerGroup;y.each(["pagePrev","pageNext"],function(h){var g=t[h+"DataIndex"]!=null,v=a.childOfName(h);v&&(v.setStyle("fill",g?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),v.cursor=g?"pointer":"default")});var e=a.childOfName("pageText"),u=n.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(n){var t=n.get("scrollDataIndex",!0),a=this.getContentGroup(),e=this._containerGroup.__rectSize,u=n.getOrient().index,r=f[u],s=d[u],c=this._findTargetItemIndex(t),h=a.children(),g=h[c],v=h.length,b=v?1:0,w={contentPosition:a.position.slice(),pageCount:b,pageIndex:b-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!g)return w;var x=I(g);w.contentPosition[u]=-x.s;for(var T=c+1,O=x,E=x,C=null;T<=v;++T)C=I(h[T]),(!C&&E.e>O.s+e||C&&!_(C,O.s))&&(E.i>O.i?O=E:O=C,O&&(w.pageNextDataIndex==null&&(w.pageNextDataIndex=O.i),++w.pageCount)),E=C;for(var T=c-1,O=x,E=x,C=null;T>=-1;--T)C=I(h[T]),(!C||!_(E,C.s))&&O.i<E.i&&(E=O,w.pagePrevDataIndex==null&&(w.pagePrevDataIndex=O.i),++w.pageCount,++w.pageIndex),O=C;return w;function I(F){if(F){var R=F.getBoundingRect(),B=R[s]+F.position[u];return{s:B,e:B+R[r],i:F.__legendDataIndex}}}function _(F,R){return F.e>=R&&F.s<=R+e}},_findTargetItemIndex:function(n){if(!this._showController)return 0;var t,a=this.getContentGroup(),e;return a.eachChild(function(u,r){var s=u.__legendDataIndex;e==null&&s!=null&&(e=r),s===n&&(t=r)}),t!=null?t:e}}),o=l;k.exports=o},"E/ki":function(k,D,i){"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(k,D,i){(function(y,p){/*!
* @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,A){k.exports=A()})(this,function(){"use strict";function S(be){var Ce=typeof be;return be!==null&&(Ce==="object"||Ce==="function")}function A(be){return typeof be=="function"}var m=void 0;Array.isArray?m=Array.isArray:m=function(Ce){return Object.prototype.toString.call(Ce)==="[object Array]"};var f=m,d=0,l=void 0,o=void 0,n=function(Ce,Te){x[d]=Ce,x[d+1]=Te,d+=2,d===2&&(o?o(T):E())};function t(be){o=be}function a(be){n=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 g(){return typeof l!="undefined"?function(){l(T)}:w()}function v(){var be=0,Ce=new r(T),Te=document.createTextNode("");return Ce.observe(Te,{characterData:!0}),function(){Te.data=be=++be%2}}function b(){var be=new MessageChannel;return be.port1.onmessage=T,function(){return be.port2.postMessage(0)}}function w(){var be=setTimeout;return function(){return be(T,1)}}var x=new Array(1e3);function T(){for(var be=0;be<d;be+=2){var Ce=x[be],Te=x[be+1];Ce(Te),x[be]=void 0,x[be+1]=void 0}d=0}function O(){try{var be=Function("return this")().require("vertx");return l=be.runOnLoop||be.runOnContext,g()}catch(Ce){return w()}}var E=void 0;s?E=h():r?E=v():c?E=b():e===void 0&&!0?E=O():E=w();function C(be,Ce){var Te=this,he=new this.constructor(F);he[_]===void 0&&Ve(he);var ye=Te._state;if(ye){var Ie=arguments[ye-1];n(function(){return Se(ye,he,Ie,Te._result)})}else le(Te,he,be,Ce);return he}function I(be){var Ce=this;if(be&&typeof be=="object"&&be.constructor===Ce)return be;var Te=new Ce(F);return Q(Te,be),Te}var _=Math.random().toString(36).substring(2);function F(){}var R=void 0,B=1,M=2;function X(){return new TypeError("You cannot resolve a promise with itself")}function P(){return new TypeError("A promises callback cannot return that same promise.")}function z(be,Ce,Te,he){try{be.call(Ce,Te,he)}catch(ye){return ye}}function W(be,Ce,Te){n(function(he){var ye=!1,Ie=z(Te,Ce,function(tt){if(ye)return;ye=!0,Ce!==tt?Q(he,tt):te(he,tt)},function(tt){if(ye)return;ye=!0,$(he,tt)},"Settle: "+(he._label||" unknown promise"));!ye&&Ie&&(ye=!0,$(he,Ie))},be)}function U(be,Ce){Ce._state===B?te(be,Ce._result):Ce._state===M?$(be,Ce._result):le(Ce,void 0,function(Te){return Q(be,Te)},function(Te){return $(be,Te)})}function V(be,Ce,Te){Ce.constructor===be.constructor&&Te===C&&Ce.constructor.resolve===I?U(be,Ce):Te===void 0?te(be,Ce):A(Te)?W(be,Ce,Te):te(be,Ce)}function Q(be,Ce){if(be===Ce)$(be,X());else if(S(Ce)){var Te=void 0;try{Te=Ce.then}catch(he){$(be,he);return}V(be,Ce,Te)}else te(be,Ce)}function G(be){be._onerror&&be._onerror(be._result),re(be)}function te(be,Ce){if(be._state!==R)return;be._result=Ce,be._state=B,be._subscribers.length!==0&&n(re,be)}function $(be,Ce){if(be._state!==R)return;be._state=M,be._result=Ce,n(G,be)}function le(be,Ce,Te,he){var ye=be._subscribers,Ie=ye.length;be._onerror=null,ye[Ie]=Ce,ye[Ie+B]=Te,ye[Ie+M]=he,Ie===0&&be._state&&n(re,be)}function re(be){var Ce=be._subscribers,Te=be._state;if(Ce.length===0)return;for(var he=void 0,ye=void 0,Ie=be._result,tt=0;tt<Ce.length;tt+=3)he=Ce[tt],ye=Ce[tt+Te],he?Se(Te,he,ye,Ie):ye(Ie);be._subscribers.length=0}function Se(be,Ce,Te,he){var ye=A(Te),Ie=void 0,tt=void 0,pt=!0;if(ye){try{Ie=Te(he)}catch(st){pt=!1,tt=st}if(Ce===Ie){$(Ce,P());return}}else Ie=he;Ce._state!==R||(ye&&pt?Q(Ce,Ie):pt===!1?$(Ce,tt):be===B?te(Ce,Ie):be===M&&$(Ce,Ie))}function Re(be,Ce){try{Ce(function(he){Q(be,he)},function(he){$(be,he)})}catch(Te){$(be,Te)}}var Pe=0;function Je(){return Pe++}function Ve(be){be[_]=Pe++,be._state=void 0,be._result=void 0,be._subscribers=[]}function ct(){return new Error("Array Methods must be provided an Array")}var Ue=function(){function be(Ce,Te){this._instanceConstructor=Ce,this.promise=new Ce(F),this.promise[_]||Ve(this.promise),f(Te)?(this.length=Te.length,this._remaining=Te.length,this._result=new Array(this.length),this.length===0?te(this.promise,this._result):(this.length=this.length||0,this._enumerate(Te),this._remaining===0&&te(this.promise,this._result))):$(this.promise,ct())}return be.prototype._enumerate=function(Te){for(var he=0;this._state===R&&he<Te.length;he++)this._eachEntry(Te[he],he)},be.prototype._eachEntry=function(Te,he){var ye=this._instanceConstructor,Ie=ye.resolve;if(Ie===I){var tt=void 0,pt=void 0,st=!1;try{tt=Te.then}catch(ft){st=!0,pt=ft}if(tt===C&&Te._state!==R)this._settledAt(Te._state,he,Te._result);else if(typeof tt!="function")this._remaining--,this._result[he]=Te;else if(ye===ee){var Fe=new ye(F);st?$(Fe,pt):V(Fe,Te,tt),this._willSettleAt(Fe,he)}else this._willSettleAt(new ye(function(ft){return ft(Te)}),he)}else this._willSettleAt(Ie(Te),he)},be.prototype._settledAt=function(Te,he,ye){var Ie=this.promise;Ie._state===R&&(this._remaining--,Te===M?$(Ie,ye):this._result[he]=ye),this._remaining===0&&te(Ie,this._result)},be.prototype._willSettleAt=function(Te,he){var ye=this;le(Te,void 0,function(Ie){return ye._settledAt(B,he,Ie)},function(Ie){return ye._settledAt(M,he,Ie)})},be}();function ue(be){return new Ue(this,be).promise}function rt(be){var Ce=this;return f(be)?new Ce(function(Te,he){for(var ye=be.length,Ie=0;Ie<ye;Ie++)Ce.resolve(be[Ie]).then(Te,he)}):new Ce(function(Te,he){return he(new TypeError("You must pass an array to race."))})}function ge(be){var Ce=this,Te=new Ce(F);return $(Te,be),Te}function Z(){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 ee=function(){function be(Ce){this[_]=Je(),this._result=this._state=void 0,this._subscribers=[],F!==Ce&&(typeof Ce!="function"&&Z(),this instanceof be?Re(this,Ce):Y())}return be.prototype.catch=function(Te){return this.then(null,Te)},be.prototype.finally=function(Te){var he=this,ye=he.constructor;return A(Te)?he.then(function(Ie){return ye.resolve(Te()).then(function(){return Ie})},function(Ie){return ye.resolve(Te()).then(function(){throw Ie})}):he.then(Te,Te)},be}();ee.prototype.then=C,ee.all=ue,ee.race=rt,ee.resolve=I,ee.reject=ge,ee._setScheduler=t,ee._setAsap=a,ee._asap=n;function fe(){var be=void 0;if(typeof p!="undefined")be=p;else if(typeof self!="undefined")be=self;else try{be=Function("return this")()}catch(he){throw new Error("polyfill failed because global object is unavailable in this environment")}var Ce=be.Promise;if(Ce){var Te=null;try{Te=Object.prototype.toString.call(Ce.resolve())}catch(he){}if(Te==="[object Promise]"&&!Ce.cast)return}be.Promise=ee}return ee.polyfill=fe,ee.Promise=ee,ee})}).call(this,i("Q2Ig"),i("yLpj"))},E2jh:function(k,D,i){var y=i("2gN3"),p=function(){var A=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||"");return A?"Symbol(src)_1."+A:""}();function S(A){return!!p&&p in A}k.exports=S},E4JC:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("ETIr"),i("cv67"),i("K3mO"),i("OLod"))})(this,function(y){return function(){var p=y,S=p.lib,A=S.StreamCipher,m=p.algo,f=[],d=[],l=[],o=m.Rabbit=A.extend({_doReset:function(){for(var a=this._key.words,e=this.cfg.iv,u=0;u<4;u++)a[u]=(a[u]<<8|a[u]>>>24)&16711935|(a[u]<<24|a[u]>>>8)&4278255360;var r=this._X=[a[0],a[3]<<16|a[2]>>>16,a[1],a[0]<<16|a[3]>>>16,a[2],a[1]<<16|a[0]>>>16,a[3],a[2]<<16|a[1]>>>16],s=this._C=[a[2]<<16|a[2]>>>16,a[0]&4294901760|a[1]&65535,a[3]<<16|a[3]>>>16,a[1]&4294901760|a[2]&65535,a[0]<<16|a[0]>>>16,a[2]&4294901760|a[3]&65535,a[1]<<16|a[1]>>>16,a[3]&4294901760|a[0]&65535];this._b=0;for(var u=0;u<4;u++)n.call(this);for(var u=0;u<8;u++)s[u]^=r[u+4&7];if(e){var c=e.words,h=c[0],g=c[1],v=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,b=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,w=v>>>16|b&4294901760,x=b<<16|v&65535;s[0]^=v,s[1]^=w,s[2]^=b,s[3]^=x,s[4]^=v,s[5]^=w,s[6]^=b,s[7]^=x;for(var u=0;u<4;u++)n.call(this)}},_doProcessBlock:function(a,e){var u=this._X;n.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,a[e+r]^=f[r]},blockSize:128/32,ivSize:64/32});function n(){for(var t=this._X,a=this._C,e=0;e<8;e++)d[e]=a[e];a[0]=a[0]+1295307597+this._b|0,a[1]=a[1]+3545052371+(a[0]>>>0<d[0]>>>0?1:0)|0,a[2]=a[2]+886263092+(a[1]>>>0<d[1]>>>0?1:0)|0,a[3]=a[3]+1295307597+(a[2]>>>0<d[2]>>>0?1:0)|0,a[4]=a[4]+3545052371+(a[3]>>>0<d[3]>>>0?1:0)|0,a[5]=a[5]+886263092+(a[4]>>>0<d[4]>>>0?1:0)|0,a[6]=a[6]+1295307597+(a[5]>>>0<d[5]>>>0?1:0)|0,a[7]=a[7]+3545052371+(a[6]>>>0<d[6]>>>0?1:0)|0,this._b=a[7]>>>0<d[7]>>>0?1:0;for(var e=0;e<8;e++){var u=t[e]+a[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}p.Rabbit=A._createHelper(o)}(),y.Rabbit})},E9nw:function(k,D){k.exports=function(){var i=document.getSelection();if(!i.rangeCount)return function(){};for(var y=document.activeElement,p=[],S=0;S<i.rangeCount;S++)p.push(i.getRangeAt(S));switch(y.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":y.blur();break;default:y=null;break}return i.removeAllRanges(),function(){i.type==="Caret"&&i.removeAllRanges(),i.rangeCount||p.forEach(function(A){i.addRange(A)}),y&&y.focus()}}},ELLl:function(k,D,i){(function(y){y(i("VrN/"))})(function(y){var p={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},S=y.Pos;y.defineOption("autoCloseBrackets",!1,function(r,s,c){c&&c!=y.Init&&(r.removeKeyMap(m),r.state.closeBrackets=null),s&&(f(A(s,"pairs")),r.state.closeBrackets=s,r.addKeyMap(m))});function A(r,s){return s=="pairs"&&typeof r=="string"?r:typeof r=="object"&&r[s]!=null?r[s]:p[s]}var m={Backspace:o,Enter:n};function f(r){for(var s=0;s<r.length;s++){var c=r.charAt(s),h="'"+c+"'";m[h]||(m[h]=d(c))}}f(p.pairs+"`");function d(r){return function(s){return a(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 o(r){var s=l(r);if(!s||r.getOption("disableInput"))return y.Pass;for(var c=A(s,"pairs"),h=r.listSelections(),g=0;g<h.length;g++){if(!h[g].empty())return y.Pass;var v=e(r,h[g].head);if(!v||c.indexOf(v)%2!=0)return y.Pass}for(var g=h.length-1;g>=0;g--){var b=h[g].head;r.replaceRange("",S(b.line,b.ch-1),S(b.line,b.ch+1),"+delete")}}function n(r){var s=l(r),c=s&&A(s,"explode");if(!c||r.getOption("disableInput"))return y.Pass;for(var h=r.listSelections(),g=0;g<h.length;g++){if(!h[g].empty())return y.Pass;var v=e(r,h[g].head);if(!v||c.indexOf(v)%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 w=0;w<h.length;w++){var x=h[w].head.line;r.indentLine(x,null,!0),r.indentLine(x+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 a(r,s){var c=l(r);if(!c||r.getOption("disableInput"))return y.Pass;var h=A(c,"pairs"),g=h.indexOf(s);if(g==-1)return y.Pass;for(var v=A(c,"closeBefore"),b=A(c,"triples"),w=h.charAt(g+1)==s,x=r.listSelections(),T=g%2==0,O,E=0;E<x.length;E++){var C=x[E],I=C.head,_,F=r.getRange(I,S(I.line,I.ch+1));if(T&&!C.empty())_="surround";else if((w||!T)&&F==s)w&&u(r,I)?_="both":b.indexOf(s)>=0&&r.getRange(I,S(I.line,I.ch+3))==s+s+s?_="skipThree":_="skip";else if(w&&I.ch>1&&b.indexOf(s)>=0&&r.getRange(S(I.line,I.ch-2),I)==s+s){if(I.ch>2&&/\bstring/.test(r.getTokenTypeAt(S(I.line,I.ch-2))))return y.Pass;_="addFour"}else if(w){var R=I.ch==0?" ":r.getRange(S(I.line,I.ch-1),I);if(!y.isWordChar(F)&&R!=s&&!y.isWordChar(R))_="both";else return y.Pass}else if(T&&(F.length===0||/\s/.test(F)||v.indexOf(F)>-1))_="both";else return y.Pass;if(!O)O=_;else if(O!=_)return y.Pass}var B=g%2?h.charAt(g-1):s,M=g%2?s:h.charAt(g+1);r.operation(function(){if(O=="skip")r.execCommand("goCharRight");else if(O=="skipThree")for(var X=0;X<3;X++)r.execCommand("goCharRight");else if(O=="surround"){for(var P=r.getSelections(),X=0;X<P.length;X++)P[X]=B+P[X]+M;r.replaceSelections(P,"around"),P=r.listSelections().slice();for(var X=0;X<P.length;X++)P[X]=t(P[X]);r.setSelections(P)}else O=="both"?(r.replaceSelection(B+M,null),r.triggerElectric(B+M),r.execCommand("goCharLeft")):O=="addFour"&&(r.replaceSelection(B+B+B+B,"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(k,D,i){(function(y,p){k.exports=D=p(i("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(p){var S=y,A=S.lib,m=A.WordArray,f=A.Hasher,d=S.algo,l=m.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),o=m.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]),n=m.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=m.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]),a=m.create([0,1518500249,1859775393,2400959708,2840853838]),e=m.create([1352829926,1548603684,1836072691,2053994217,0]),u=d.RIPEMD160=f.extend({_doReset:function(){this._hash=m.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(w,x){for(var T=0;T<16;T++){var O=x+T,E=w[O];w[O]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360}var C=this._hash.words,I=a.words,_=e.words,F=l.words,R=o.words,B=n.words,M=t.words,X,P,z,W,U,V,Q,G,te,$;V=X=C[0],Q=P=C[1],G=z=C[2],te=W=C[3],$=U=C[4];for(var le,T=0;T<80;T+=1)le=X+w[x+F[T]]|0,T<16?le+=r(P,z,W)+I[0]:T<32?le+=s(P,z,W)+I[1]:T<48?le+=c(P,z,W)+I[2]:T<64?le+=h(P,z,W)+I[3]:le+=g(P,z,W)+I[4],le=le|0,le=v(le,B[T]),le=le+U|0,X=U,U=W,W=v(z,10),z=P,P=le,le=V+w[x+R[T]]|0,T<16?le+=g(Q,G,te)+_[0]:T<32?le+=h(Q,G,te)+_[1]:T<48?le+=c(Q,G,te)+_[2]:T<64?le+=s(Q,G,te)+_[3]:le+=r(Q,G,te)+_[4],le=le|0,le=v(le,M[T]),le=le+$|0,V=$,$=te,te=v(G,10),G=Q,Q=le;le=C[1]+z+te|0,C[1]=C[2]+W+$|0,C[2]=C[3]+U+V|0,C[3]=C[4]+X+Q|0,C[4]=C[0]+P+G|0,C[0]=le},_doFinalize:function(){var w=this._data,x=w.words,T=this._nDataBytes*8,O=w.sigBytes*8;x[O>>>5]|=128<<24-O%32,x[(O+64>>>9<<4)+14]=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360,w.sigBytes=(x.length+1)*4,this._process();for(var E=this._hash,C=E.words,I=0;I<5;I++){var _=C[I];C[I]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}return E},clone:function(){var w=f.clone.call(this);return w._hash=this._hash.clone(),w}});function r(b,w,x){return b^w^x}function s(b,w,x){return b&w|~b&x}function c(b,w,x){return(b|~w)^x}function h(b,w,x){return b&x|w&~x}function g(b,w,x){return b^(w|~x)}function v(b,w){return b<<w|b>>>32-w}S.RIPEMD160=f._createHelper(u),S.HmacRIPEMD160=f._createHmacHelper(u)}(Math),y.RIPEMD160})},EMyp:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("mFDi"),A=i("K4ya"),m=i("qJCg"),f=i("iLNv"),d=i("vZ6x"),l=["inBrush","outOfBrush"],o="__ecBrushSelect",n="__ecInBrushSelectEvent",t=y.PRIORITY.VISUAL.BRUSH;y.registerLayout(t,function(b,w,x){b.eachComponent({mainType:"brush"},function(T){x&&x.type==="takeGlobalCursor"&&T.setBrushOption(x.key==="brush"?x.brushOption:{brushType:!1})}),a(b)});function a(b){b.eachComponent({mainType:"brush"},function(w){var x=w.brushTargetManager=new d(w.option,b);x.setInputRanges(w.areas,b)})}y.registerVisual(t,function(b,w,x){var T=[],O,E;b.eachComponent({mainType:"brush"},function(C,I){var _={brushId:C.id,brushIndex:I,brushName:C.name,areas:p.clone(C.areas),selected:[]};T.push(_);var F=C.option,R=F.brushLink,B=[],M=[],X=[],P=0;I||(O=F.throttleType,E=F.throttleDelay);var z=p.map(C.areas,function(te){return h(p.defaults({boundingRect:g[te.brushType](te)},te))}),W=A.createVisualMappings(C.option,l,function(te){te.mappingMethod="fixed"});p.isArray(R)&&p.each(R,function(te){B[te]=1});function U(te){return R==="all"||B[te]}function V(te){return!!te.length}b.eachSeries(function(te,$){var le=X[$]=[];te.subType==="parallel"?Q(te,$,le):G(te,$,le)});function Q(te,$){var le=te.coordinateSystem;P|=le.hasAxisBrushed(),U($)&&le.eachActiveState(te.getData(),function(re,Se){re==="active"&&(M[Se]=1)})}function G(te,$,le){var re=s(te);if(!re||c(C,$))return;if(p.each(z,function(Re){re[Re.brushType]&&C.brushTargetManager.controlSeries(Re,te,b)&&le.push(Re),P|=V(le)}),U($)&&V(le)){var Se=te.getData();Se.each(function(Re){r(re,le,Se,Re)&&(M[Re]=1)})}}b.eachSeries(function(te,$){var le={seriesId:te.id,seriesIndex:$,seriesName:te.name,dataIndex:[]};_.selected.push(le);var re=s(te),Se=X[$],Re=te.getData(),Pe=U($)?function(Je){return M[Je]?(le.dataIndex.push(Re.getRawIndex(Je)),"inBrush"):"outOfBrush"}:function(Je){return r(re,Se,Re,Je)?(le.dataIndex.push(Re.getRawIndex(Je)),"inBrush"):"outOfBrush"};(U($)?P:V(Se))&&A.applyVisual(l,W,Re,Pe)})}),e(w,O,E,T,x)});function e(b,w,x,T,O){if(!O)return;var E=b.getZr();if(E[n])return;E[o]||(E[o]=u);var C=f.createOrUpdate(E,o,x,w);C(b,T)}function u(b,w){if(!b.isDisposed()){var x=b.getZr();x[n]=!0,b.dispatchAction({type:"brushSelect",batch:w}),x[n]=!1}}function r(b,w,x,T){for(var O=0,E=w.length;O<E;O++){var C=w[O];if(b[C.brushType](T,x,C.selectors,C))return!0}}function s(b){var w=b.brushSelector;if(p.isString(w)){var x=[];return p.each(m,function(O,E){x[E]=function(C,I,_,F){var R=I.getItemLayout(C);return O[w](R,_,F)}}),x}else if(p.isFunction(w)){var T={};return p.each(m,function(O,E){T[E]=w}),T}return w}function c(b,w){var x=b.option.seriesIndex;return x!=null&&x!=="all"&&(p.isArray(x)?p.indexOf(x,w)<0:w!==x)}function h(b){var w=b.selectors={};return p.each(m[b.brushType],function(x,T){w[T]=function(O){return x(O,w,b)}}),b}var g={lineX:p.noop,lineY:p.noop,rect:function(b){return v(b.range)},polygon:function(b){for(var w,x=b.range,T=0,O=x.length;T<O;T++){w=w||[[Infinity,-Infinity],[Infinity,-Infinity]];var E=x[T];E[0]<w[0][0]&&(w[0][0]=E[0]),E[0]>w[0][1]&&(w[0][1]=E[0]),E[1]<w[1][0]&&(w[1][0]=E[1]),E[1]>w[1][1]&&(w[1][1]=E[1])}return w&&v(w)}};function v(b){return new S(b[0][0],b[1][0],b[0][1]-b[0][0],b[1][1]-b[1][0])}D.layoutCovers=a},ERHi:function(k,D,i){var y=i("ProS");i("Z6js"),i("R4Th");var p=i("f5Yq"),S=i("h8O9");y.registerVisual(p("effectScatter","circle")),y.registerLayout(S("effectScatter"))},ETIr:function(k,D,i){(function(y,p){k.exports=D=p(i("Ib8C"))})(this,function(y){return function(){var p=y,S=p.lib,A=S.WordArray,m=p.enc,f=m.Base64={stringify:function(o){var n=o.words,t=o.sigBytes,a=this._map;o.clamp();for(var e=[],u=0;u<t;u+=3)for(var r=n[u>>>2]>>>24-u%4*8&255,s=n[u+1>>>2]>>>24-(u+1)%4*8&255,c=n[u+2>>>2]>>>24-(u+2)%4*8&255,h=r<<16|s<<8|c,g=0;g<4&&u+g*.75<t;g++)e.push(a.charAt(h>>>6*(3-g)&63));var v=a.charAt(64);if(v)for(;e.length%4;)e.push(v);return e.join("")},parse:function(o){var n=o.length,t=this._map,a=this._reverseMap;if(!a){a=this._reverseMap=[];for(var e=0;e<t.length;e++)a[t.charCodeAt(e)]=e}var u=t.charAt(64);if(u){var r=o.indexOf(u);r!==-1&&(n=r)}return d(o,n,a)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function d(l,o,n){for(var t=[],a=0,e=0;e<o;e++)if(e%4){var u=n[l.charCodeAt(e-1)]<<e%4*2,r=n[l.charCodeAt(e)]>>>6-e%4*2,s=u|r;t[a>>>2]|=s<<24-a%4*8,a++}return A.create(t,a)}}(),y.enc.Base64})},EXcs:function(k,D,i){"use strict";var y=function(){return{height:0,opacity:0}},p=function(d){return{height:d.scrollHeight,opacity:1}},S=function(d){return{height:d.offsetHeight}},A=function(d,l){return l.propertyName==="height"},m={motionName:"ant-motion-collapse",onAppearStart:y,onEnterStart:y,onAppearActive:p,onEnterActive:p,onLeaveStart:S,onLeaveActive:y,onAppearEnd:A,onEnterEnd:A,onLeaveEnd:A,motionDeadline:500};D.a=m},EpBk:function(k,D){function i(y){var p=typeof y;return p=="string"||p=="number"||p=="symbol"||p=="boolean"?y!=="__proto__":y===null}k.exports=i},Ez2D:function(k,D,i){var y=i("bYtY"),p=i("4NO4");function S(A,m){var f=[],d=A.seriesIndex,l;if(d==null||!(l=m.getSeriesByIndex(d)))return{point:[]};var o=l.getData(),n=p.queryDataIndex(o,A);if(n==null||n<0||y.isArray(n))return{point:[]};var t=o.getItemGraphicEl(n),a=l.coordinateSystem;if(l.getTooltipPosition)f=l.getTooltipPosition(n)||[];else if(a&&a.dataToPoint)f=a.dataToPoint(o.getValues(y.map(a.dimensions,function(u){return o.mapDimension(u)}),n,!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}}k.exports=S},"F+F2":function(k,D,i){(function(y,p){k.exports=D=p(i("Ib8C"))})(this,function(y){return function(){if(typeof ArrayBuffer!="function")return;var p=y,S=p.lib,A=S.WordArray,m=A.init,f=A.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,o=[],n=0;n<l;n++)o[n>>>2]|=d[n]<<24-n%4*8;m.call(this,o,l)}else m.apply(this,arguments)};f.prototype=A}(),y.lib.WordArray})},F0hE:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("ca2m"),A=i("Qxkt"),m=i("ICMv"),f=S.valueAxis;function d(n,t){return p.defaults({show:t},n)}var l=y.extendComponentModel({type:"radar",optionUpdated:function(){var n=this.get("boundaryGap"),t=this.get("splitNumber"),a=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"),g=this.get("name.formatter"),v=this.get("nameGap"),b=this.get("triggerEvent"),w=p.map(this.get("indicator")||[],function(x){x.max!=null&&x.max>0&&!x.min?x.min=0:x.min!=null&&x.min<0&&!x.max&&(x.max=0);var T=c;if(x.color!=null&&(T=p.defaults({color:x.color},c)),x=p.merge(p.clone(x),{boundaryGap:n,splitNumber:t,scale:a,axisLine:e,axisTick:u,axisType:r,axisLabel:s,name:x.text,nameLocation:"end",nameGap:v,nameTextStyle:T,triggerEvent:b},!1),h||(x.name=""),typeof g=="string"){var O=x.name;x.name=g.replace("{value}",O!=null?O:"")}else typeof g=="function"&&(x.name=g(x.name,x));var E=p.extend(new A(x,null,this.ecModel),m);return E.mainType="radar",E.componentIndex=this.componentIndex,E},this);this.getIndicatorModels=function(){return w}},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:p.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:[]}}),o=l;k.exports=o},F5Ls:function(k,D){var i={\u5357\u6D77\u8BF8\u5C9B:[32,80],\u5E7F\u4E1C:[0,-10],\u9999\u6E2F:[10,5],\u6FB3\u95E8:[-10,10],\u5929\u6D25:[5,5]};function y(p,S){if(p==="china"){var A=i[S.name];if(A){var m=S.center;m[0]+=A[0]/10.5,m[1]+=-A[1]/(10.5/.75)}}}k.exports=y},F7hV:function(k,D,i){var y=i("MBQ8"),p=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"),A=this.get("largeThreshold");return A>S&&(S=A),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}}});k.exports=p},F9bG:function(k,D,i){var y=i("bYtY"),p=i("ItGF"),S=i("4NO4"),A=S.makeInner,m=A(),f=y.each;function d(u,r,s){if(p.node)return;var c=r.getZr();m(c).records||(m(c).records={}),l(c,r);var h=m(c).records[u]||(m(c).records[u]={});h.handler=s}function l(u,r){if(m(u).initialized)return;m(u).initialized=!0,s("click",y.curry(t,"click")),s("mousemove",y.curry(t,"mousemove")),s("globalout",n);function s(c,h){u.on(c,function(g){var v=a(r);f(m(u).records,function(b){b&&h(b,g,v.dispatchAction)}),o(v.pendings,r)})}}function o(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 n(u,r,s){u.handler("leave",null,s)}function t(u,r,s,c){r.handler(u,s,c)}function a(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(p.node)return;var s=r.getZr(),c=(m(s).records||{})[u];c&&(m(s).records[u]=null)}D.register=d,D.unregister=e},FBjb:function(k,D,i){var y=i("bYtY"),p=i("oVpE"),S=p.createSymbol,A=i("IwbS"),m=i("OELB"),f=m.parsePercent,d=i("x3X8"),l=d.getDefaultLabel;function o(v,b,w){A.Group.call(this),this.updateData(v,b,w)}var n=o.prototype,t=o.getSymbolSize=function(v,b){var w=v.getItemVisual(b,"symbolSize");return w instanceof Array?w.slice():[+w,+w]};function a(v){return[v[0]/2,v[1]/2]}function e(v,b){this.parent.drift(v,b)}n._createSymbol=function(v,b,w,x,T){this.removeAll();var O=b.getItemVisual(w,"color"),E=S(v,-1,-1,2,2,O,T);E.attr({z2:100,culling:!0,scale:a(x)}),E.drift=e,this._symbolType=v,this.add(E)},n.stopSymbolAnimation=function(v){this.childAt(0).stopAnimation(v)},n.getSymbolPath=function(){return this.childAt(0)},n.getScale=function(){return this.childAt(0).scale},n.highlight=function(){this.childAt(0).trigger("emphasis")},n.downplay=function(){this.childAt(0).trigger("normal")},n.setZ=function(v,b){var w=this.childAt(0);w.zlevel=v,w.z=b},n.setDraggable=function(v){var b=this.childAt(0);b.draggable=v,b.cursor=v?"move":b.cursor},n.updateData=function(v,b,w){this.silent=!1;var x=v.getItemVisual(b,"symbol")||"circle",T=v.hostModel,O=t(v,b),E=x!==this._symbolType;if(E){var C=v.getItemVisual(b,"symbolKeepAspect");this._createSymbol(x,v,b,O,C)}else{var I=this.childAt(0);I.silent=!1,A.updateProps(I,{scale:a(O)},T,b)}if(this._updateCommon(v,b,O,w),E){var I=this.childAt(0),_=w&&w.fadeIn,F={scale:I.scale.slice()};_&&(F.style={opacity:I.style.opacity}),I.scale=[0,0],_&&(I.style.opacity=0),A.initProps(I,F,T,b)}this._seriesModel=T};var u=["itemStyle"],r=["emphasis","itemStyle"],s=["label"],c=["emphasis","label"];n._updateCommon=function(v,b,w,x){var T=this.childAt(0),O=v.hostModel,E=v.getItemVisual(b,"color");T.type!=="image"?T.useStyle({strokeNoScale:!0}):T.setStyle({opacity:null,shadowBlur:null,shadowOffsetX:null,shadowOffsetY:null,shadowColor:null});var C=x&&x.itemStyle,I=x&&x.hoverItemStyle,_=x&&x.symbolOffset,F=x&&x.labelModel,R=x&&x.hoverLabelModel,B=x&&x.hoverAnimation,M=x&&x.cursorStyle;if(!x||v.hasItemOption){var X=x&&x.itemModel?x.itemModel:v.getItemModel(b);C=X.getModel(u).getItemStyle(["color"]),I=X.getModel(r).getItemStyle(),_=X.getShallow("symbolOffset"),F=X.getModel(s),R=X.getModel(c),B=X.getShallow("hoverAnimation"),M=X.getShallow("cursor")}else I=y.extend({},I);var P=T.style,z=v.getItemVisual(b,"symbolRotate");T.attr("rotation",(z||0)*Math.PI/180||0),_&&T.attr("position",[f(_[0],w[0]),f(_[1],w[1])]),M&&T.attr("cursor",M),T.setColor(E,x&&x.symbolInnerColor),T.setStyle(C);var W=v.getItemVisual(b,"opacity");W!=null&&(P.opacity=W);var U=v.getItemVisual(b,"liftZ"),V=T.__z2Origin;U!=null?V==null&&(T.__z2Origin=T.z2,T.z2+=U):V!=null&&(T.z2=V,T.__z2Origin=null);var Q=x&&x.useNameLabel;A.setLabelStyle(P,I,F,R,{labelFetcher:O,labelDataIndex:b,defaultText:G,isRectText:!0,autoColor:E});function G(te,$){return Q?v.getName(te):l(v,te)}T.__symbolOriginalScale=a(w),T.hoverStyle=I,T.highDownOnUpdate=B&&O.isAnimationEnabled()?h:null,A.setHoverStyle(T)};function h(v,b){if(this.incremental||this.useHoverLayer)return;if(b==="emphasis"){var w=this.__symbolOriginalScale,x=w[1]/w[0],T={scale:[Math.max(w[0]*1.1,w[0]+3),Math.max(w[1]*1.1,w[1]+3*x)]};this.animateTo(T,400,"elasticOut")}else b==="normal"&&this.animateTo({scale:this.__symbolOriginalScale},400,"elasticOut")}n.fadeOut=function(v,b){var w=this.childAt(0);this.silent=w.silent=!0,!(b&&b.keepLabel)&&(w.style.text=null),A.updateProps(w,{style:{opacity:0},scale:[0,0]},this._seriesModel,this.dataIndex,v)},y.inherits(o,A.Group);var g=o;k.exports=g},FGaS:function(k,D,i){var y=i("ProS"),p=i("IwbS"),S=i("bYtY"),A=i("oVpE");function m(d){return S.isArray(d)||(d=[+d,+d]),d}var f=y.extendChartView({type:"radar",render:function(d,l,o){var n=d.coordinateSystem,t=this.group,a=d.getData(),e=this._data;function u(c,h){var g=c.getItemVisual(h,"symbol")||"circle",v=c.getItemVisual(h,"color");if(g==="none")return;var b=m(c.getItemVisual(h,"symbolSize")),w=A.createSymbol(g,-1,-1,2,2,v);return w.attr({style:{strokeNoScale:!0},z2:100,scale:[b[0]/2,b[1]/2]}),w}function r(c,h,g,v,b,w){g.removeAll();for(var x=0;x<h.length-1;x++){var T=u(v,b);T&&(T.__dimIdx=x,c[x]?(T.attr("position",c[x]),p[w?"initProps":"updateProps"](T,{position:h[x]},d,b)):T.attr("position",h[x]),g.add(T))}}function s(c){return S.map(c,function(h){return[n.cx,n.cy]})}a.diff(e).add(function(c){var h=a.getItemLayout(c);if(!h)return;var g=new p.Polygon,v=new p.Polyline,b={shape:{points:h}};g.shape.points=s(h),v.shape.points=s(h),p.initProps(g,b,d,c),p.initProps(v,b,d,c);var w=new p.Group,x=new p.Group;w.add(v),w.add(g),w.add(x),r(v.shape.points,h,x,a,c,!0),a.setItemGraphicEl(c,w)}).update(function(c,h){var g=e.getItemGraphicEl(h),v=g.childAt(0),b=g.childAt(1),w=g.childAt(2),x={shape:{points:a.getItemLayout(c)}};if(!x.shape.points)return;r(v.shape.points,x.shape.points,w,a,c,!1),p.updateProps(v,x,d),p.updateProps(b,x,d),a.setItemGraphicEl(c,g)}).remove(function(c){t.remove(e.getItemGraphicEl(c))}).execute(),a.eachItemGraphicEl(function(c,h){var g=a.getItemModel(h),v=c.childAt(0),b=c.childAt(1),w=c.childAt(2),x=a.getItemVisual(h,"color");t.add(c),v.useStyle(S.defaults(g.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:x})),v.hoverStyle=g.getModel("emphasis.lineStyle").getLineStyle();var T=g.getModel("areaStyle"),O=g.getModel("emphasis.areaStyle"),E=T.isEmpty()&&T.parentModel.isEmpty(),C=O.isEmpty()&&O.parentModel.isEmpty();C=C&&E,b.ignore=E,b.useStyle(S.defaults(T.getAreaStyle(),{fill:x,opacity:.7})),b.hoverStyle=O.getAreaStyle();var I=g.getModel("itemStyle").getItemStyle(["color"]),_=g.getModel("emphasis.itemStyle").getItemStyle(),F=g.getModel("label"),R=g.getModel("emphasis.label");w.eachChild(function(B){B.setStyle(I),B.hoverStyle=S.clone(_);var M=a.get(a.dimensions[B.__dimIdx],h);(M==null||isNaN(M))&&(M=""),p.setLabelStyle(B.style,B.hoverStyle,F,R,{labelFetcher:a.hostModel,labelDataIndex:h,labelDimIndex:B.__dimIdx,defaultText:M,autoColor:x,isRectText:!0})}),c.highDownOnUpdate=function(B,M){b.attr("ignore",M==="emphasis"?C:E)},p.setHoverStyle(c)}),this._data=a},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});k.exports=f},FH2Y:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("ZMnZ"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},FJo9:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("8txm"),A=i.n(S),m=i("MXD1")},FNN5:function(k,D,i){var y=i("bYtY"),p=i("IwbS"),S=i("+rIm"),A=i("Znkb"),m=["axisLine","axisTickLabel","axisName"],f=["splitLine","splitArea","minorSplitLine"],d=A.extend({type:"radiusAxis",axisPointerClass:"PolarAxisPointer",render:function(o,n){if(this.group.removeAll(),!o.get("show"))return;var t=o.axis,a=t.polar,e=a.getAngleAxis(),u=t.getTicksCoords(),r=t.getMinorTicksCoords(),s=e.getExtent()[0],c=t.getExtent(),h=l(a,o,s),g=new S(o,h);y.each(m,g.add,g),this.group.add(g.getGroup()),y.each(f,function(v){o.get(v+".show")&&!t.scale.isBlank()&&this["_"+v](o,a,s,c,u,r)},this)},_splitLine:function(o,n,t,a,e){var u=o.getModel("splitLine"),r=u.getModel("lineStyle"),s=r.get("color"),c=0;s=s instanceof Array?s:[s];for(var h=[],g=0;g<e.length;g++){var v=c++%s.length;h[v]=h[v]||[],h[v].push(new p.Circle({shape:{cx:n.cx,cy:n.cy,r:e[g].coord}}))}for(var g=0;g<h.length;g++)this.group.add(p.mergePath(h[g],{style:y.defaults({stroke:s[g%s.length],fill:null},r.getLineStyle()),silent:!0}))},_minorSplitLine:function(o,n,t,a,e,u){if(!u.length)return;for(var r=o.getModel("minorSplitLine"),s=r.getModel("lineStyle"),c=[],h=0;h<u.length;h++)for(var g=0;g<u[h].length;g++)c.push(new p.Circle({shape:{cx:n.cx,cy:n.cy,r:u[h][g].coord}}));this.group.add(p.mergePath(c,{style:y.defaults({fill:null},s.getLineStyle()),silent:!0}))},_splitArea:function(o,n,t,a,e){if(!e.length)return;var u=o.getModel("splitArea"),r=u.getModel("areaStyle"),s=r.get("color"),c=0;s=s instanceof Array?s:[s];for(var h=[],g=e[0].coord,v=1;v<e.length;v++){var b=c++%s.length;h[b]=h[b]||[],h[b].push(new p.Sector({shape:{cx:n.cx,cy:n.cy,r0:g,r:e[v].coord,startAngle:0,endAngle:Math.PI*2},silent:!0})),g=e[v].coord}for(var v=0;v<h.length;v++)this.group.add(p.mergePath(h[v],{style:y.defaults({fill:s[v%s.length]},r.getAreaStyle()),silent:!0}))}});function l(o,n,t){return{position:[o.cx,o.cy],rotation:t/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotate:n.getModel("axisLabel").get("rotate"),z2:1}}k.exports=d},FTAc:function(k,D,i){"use strict";i.d(D,"a",function(){return S});var y=i("q1tI"),p=i.n(y),S=y.createContext(null)},FUi9:function(k,D,i){var y=i("bYtY"),p=i("MwEJ"),S=i("aX7z"),A=i("ICMv"),m=i("Qxkt"),f=i("+TT/"),d=f.getLayoutRect;D.getLayoutRect=f.getLayoutRect;var l=i("7hqr"),o=l.enableDataStack,n=l.isDimensionStacked,t=l.getStackedDimension,a=i("hi0g");D.completeDimensions=a;var e=i("sdST");D.createDimensions=e;var u=i("oVpE");D.createSymbol=u.createSymbol;function r(g){return p(g.getSource(),g)}var s={isDimensionStacked:n,enableDataStack:o,getStackedDimension:t};function c(g,v){var b=v;m.isInstance(v)||(b=new m(v),y.mixin(b,A));var w=S.createScaleByModel(b);return w.setExtent(g[0],g[1]),S.niceScaleExtent(w,b),w}function h(g){y.mixin(g,A)}D.createList=r,D.dataStack=s,D.createScale=c,D.mixinAxisModelCommonMethods=h},"Fa/5":function(k,D,i){var y=i("ProS");i("y2l5"),i("q/+u");var p=i("f5Yq"),S=i("h8O9");i("Ae16"),y.registerVisual(p("scatter","circle")),y.registerLayout(S("scatter"))},FhB9:function(k,D,i){"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(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("a7Wl")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="CaretUpOutlined";var n=A.forwardRef(o);D.default=n},Fofx:function(k,D){var i=typeof Float32Array=="undefined"?Array:Float32Array;function y(){var n=new i(6);return p(n),n}function p(n){return n[0]=1,n[1]=0,n[2]=0,n[3]=1,n[4]=0,n[5]=0,n}function S(n,t){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4],n[5]=t[5],n}function A(n,t,a){var e=t[0]*a[0]+t[2]*a[1],u=t[1]*a[0]+t[3]*a[1],r=t[0]*a[2]+t[2]*a[3],s=t[1]*a[2]+t[3]*a[3],c=t[0]*a[4]+t[2]*a[5]+t[4],h=t[1]*a[4]+t[3]*a[5]+t[5];return n[0]=e,n[1]=u,n[2]=r,n[3]=s,n[4]=c,n[5]=h,n}function m(n,t,a){return n[0]=t[0],n[1]=t[1],n[2]=t[2],n[3]=t[3],n[4]=t[4]+a[0],n[5]=t[5]+a[1],n}function f(n,t,a){var e=t[0],u=t[2],r=t[4],s=t[1],c=t[3],h=t[5],g=Math.sin(a),v=Math.cos(a);return n[0]=e*v+s*g,n[1]=-e*g+s*v,n[2]=u*v+c*g,n[3]=-u*g+v*c,n[4]=v*r+g*h,n[5]=v*h-g*r,n}function d(n,t,a){var e=a[0],u=a[1];return n[0]=t[0]*e,n[1]=t[1]*u,n[2]=t[2]*e,n[3]=t[3]*u,n[4]=t[4]*e,n[5]=t[5]*u,n}function l(n,t){var a=t[0],e=t[2],u=t[4],r=t[1],s=t[3],c=t[5],h=a*s-r*e;return h?(h=1/h,n[0]=s*h,n[1]=-r*h,n[2]=-e*h,n[3]=a*h,n[4]=(e*c-s*u)*h,n[5]=(r*u-a*c)*h,n):null}function o(n){var t=y();return S(t,n),t}D.create=y,D.identity=p,D.copy=S,D.mul=A,D.translate=m,D.rotate=f,D.scale=d,D.invert=l,D.clone=o},Fv0C:function(k,D,i){"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 p=o(i("Lo0S")),S=i("vewr"),A=o(i("8CQX")),m=d(i("mHUz")),f=o(i("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 o(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 g=c?Object.getOwnPropertyDescriptor(u,h):null;g&&(g.get||g.set)?Object.defineProperty(s,h,g):s[h]=u[h]}return s.default=u,r&&r.set(u,s),s}function n(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 a(u,r,s){return r&&t(u.prototype,r),s&&t(u,s),u}var e=function(){function u(r){n(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 a(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]}p.Debug("onkeyevent "+(h?"down":"up")+", keysym: "+s,", code: "+c),this.onkeyevent(s,c,h)}},{key:"_getKeyCode",value:function(s){var c=A.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),g=String.fromCharCode(h).toUpperCase();return"Platform"+g.charCodeAt()}return"Unidentified"}},{key:"_handleKeyDown",value:function(s){var c=this._getKeyCode(s),h=A.getKeysym(s);if(this._altGrArmed&&(this._altGrArmed=!1,clearTimeout(this._altGrTimeout),c==="AltRight"&&s.timeStamp-this._altGrCtrlTime<50?h=m.default.XK_ISO_Level3_Shift:this._sendKeyEvent(m.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 m.default.XK_Super_L:h=m.default.XK_Alt_L;break;case m.default.XK_Super_R:h=m.default.XK_Super_L;break;case m.default.XK_Alt_L:h=m.default.XK_Mode_switch;break;case m.default.XK_Alt_R:h=m.default.XK_ISO_Level3_Shift;break}if(c in this._keyDownList&&(h=this._keyDownList[c]),(f.isMac()||f.isIOS())&&c==="CapsLock"){this._sendKeyEvent(m.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(m.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=A.getKeysym(s);if(c!=="Unidentified"&&c!=this._pendingKey)return;if(c=this._pendingKey,this._pendingKey=null,!h){p.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 g=String.fromCharCode(s.keyCode);s.shiftKey?g=g.toUpperCase():g=g.toLowerCase(),c=g.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(m.default.XK_Control_L,"ControlLeft",!0)),(f.isMac()||f.isIOS())&&c==="CapsLock"){this._sendKeyEvent(m.default.XK_Caps_Lock,"CapsLock",!0),this._sendKeyEvent(m.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(m.default.XK_Control_L,"ControlLeft",!0)}},{key:"_allKeysUp",value:function(){p.Debug(">> Keyboard.allKeysUp");for(var s in this._keyDownList)this._sendKeyEvent(this._keyDownList[s],s,!1);p.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(g){if(!(g in h))return;var v=new KeyboardEvent("keyup",{key:h[g],code:g});v.skipCheckAlt=!0,c.dispatchEvent(v)})}},{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(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.createSensor=void 0;var y=i("QO+J"),p=i("j5sG"),S=typeof ResizeObserver!="undefined"?p.createSensor:y.createSensor;D.createSensor=S},GGyF:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("wgjA")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="LeftOutlined";var n=A.forwardRef(o);D.default=n},GIiI:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("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"},A=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:A}))};f.displayName="PoweroffOutlined";var d=D.a=p.forwardRef(f)},GMDS:function(k,D,i){var y=i("bYtY"),p=i("4NgU"),S=i("jkPA"),A=p.prototype,m=p.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),A.contain.call(this,d)&&this._ordinalMeta.categories[d]!=null},normalize:function(d){return A.normalize.call(this,this.parse(d))},scale:function(d){return Math.round(A.scale.call(this,d))},getTicks:function(){for(var d=[],l=this._extent,o=l[0];o<=l[1];)d.push(o),o++;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});m.create=function(){return new m};var f=m;k.exports=f},GQ8N:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.toUnsigned32bit=y,D.toSigned32bit=p;function y(S){return S>>>0}function p(S){return S|0}},GRuw:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("lPiR"))})(this,function(y){return function(){var p=y,S=p.lib,A=S.WordArray,m=p.algo,f=m.SHA256,d=m.SHA224=f.extend({_doReset:function(){this._hash=new A.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var o=f._doFinalize.call(this);return o.sigBytes-=4,o}});p.SHA224=f._createHelper(d),p.HmacSHA224=f._createHmacHelper(d)}(),y.SHA224})},GUcZ:function(k,D,i){"use strict";var y=i("fWQN"),p=i("mtLc"),S=function(){function $t(){Object(y.a)(this,$t)}return Object(p.a)($t,null,[{key:"install",value:function(){Object.setPrototypeOf=Object.setPrototypeOf||function(ke,Me){return ke.__proto__=Me,ke},Object.assign=Object.assign||function(ke){if(ke==null)throw new TypeError("Cannot convert undefined or null to object");for(var Me=Object(ke),Be=1;Be<arguments.length;Be++){var at=arguments[Be];if(at!=null)for(var At in at)at.hasOwnProperty(At)&&(Me[At]=at[At])}return Me},typeof self.Promise!="function"&&i("E2g8").polyfill()}}]),$t}();S.install();var A=S,m=i("+qE3"),f=i.n(m),d=function(){function $t(){Object(y.a)(this,$t)}return Object(p.a)($t,null,[{key:"e",value:function(ke,Me){(!ke||$t.FORCE_GLOBAL_TAG)&&(ke=$t.GLOBAL_TAG);var Be="[".concat(ke,"] > ").concat(Me);if($t.ENABLE_CALLBACK&&$t.emitter.emit("log","error",Be),!$t.ENABLE_ERROR)return;console.error?console.error(Be):console.warn?console.warn(Be):console.log(Be)}},{key:"i",value:function(ke,Me){(!ke||$t.FORCE_GLOBAL_TAG)&&(ke=$t.GLOBAL_TAG);var Be="[".concat(ke,"] > ").concat(Me);if($t.ENABLE_CALLBACK&&$t.emitter.emit("log","info",Be),!$t.ENABLE_INFO)return;console.info?console.info(Be):console.log(Be)}},{key:"w",value:function(ke,Me){(!ke||$t.FORCE_GLOBAL_TAG)&&(ke=$t.GLOBAL_TAG);var Be="[".concat(ke,"] > ").concat(Me);if($t.ENABLE_CALLBACK&&$t.emitter.emit("log","warn",Be),!$t.ENABLE_WARN)return;console.warn?console.warn(Be):console.log(Be)}},{key:"d",value:function(ke,Me){(!ke||$t.FORCE_GLOBAL_TAG)&&(ke=$t.GLOBAL_TAG);var Be="[".concat(ke,"] > ").concat(Me);if($t.ENABLE_CALLBACK&&$t.emitter.emit("log","debug",Be),!$t.ENABLE_DEBUG)return;console.debug?console.debug(Be):console.log(Be)}},{key:"v",value:function(ke,Me){(!ke||$t.FORCE_GLOBAL_TAG)&&(ke=$t.GLOBAL_TAG);var Be="[".concat(ke,"] > ").concat(Me);if($t.ENABLE_CALLBACK&&$t.emitter.emit("log","verbose",Be),!$t.ENABLE_VERBOSE)return;console.log(Be)}}]),$t}();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,o=function(){function $t(){Object(y.a)(this,$t),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(p.a)($t,[{key:"reset",value:function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}},{key:"addBytes",value:function(ke){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=ke,this._totalBytes+=ke):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=ke,this._totalBytes+=ke):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=ke,this._totalBytes+=ke,this._lastCheckpoint=this._now())}},{key:"currentKBps",get:function(){this.addBytes(0);var ke=(this._now()-this._lastCheckpoint)/1e3;return ke==0&&(ke=1),this._intervalBytes/ke/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 ke=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/ke/1024}}]),$t}(),n=o,t=i("yKVA"),a=i("879j"),e=function(){function $t(Ot){Object(y.a)(this,$t),this._message=Ot}return Object(p.a)($t,[{key:"name",get:function(){return"RuntimeException"}},{key:"message",get:function(){return this._message}},{key:"toString",value:function(){return this.name+": "+this.message}}]),$t}(),u=function($t){Object(t.a)(ke,$t);var Ot=Object(a.a)(ke);function ke(Me){return Object(y.a)(this,ke),Ot.call(this,Me)}return Object(p.a)(ke,[{key:"name",get:function(){return"IllegalStateException"}}]),ke}(e),r=function($t){Object(t.a)(ke,$t);var Ot=Object(a.a)(ke);function ke(Me){return Object(y.a)(this,ke),Ot.call(this,Me)}return Object(p.a)(ke,[{key:"name",get:function(){return"InvalidArgumentException"}}]),ke}(e),s=function($t){Object(t.a)(ke,$t);var Ot=Object(a.a)(ke);function ke(Me){return Object(y.a)(this,ke),Ot.call(this,Me)}return Object(p.a)(ke,[{key:"name",get:function(){return"NotImplementedException"}}]),ke}(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"},g=function(){function $t(Ot){Object(y.a)(this,$t),this._type=Ot||"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(p.a)($t,[{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(ke){this._onContentLengthKnown=ke}},{key:"onURLRedirect",get:function(){return this._onURLRedirect},set:function(ke){this._onURLRedirect=ke}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(ke){this._onDataArrival=ke}},{key:"onError",get:function(){return this._onError},set:function(ke){this._onError=ke}},{key:"onComplete",get:function(){return this._onComplete},set:function(ke){this._onComplete=ke}},{key:"open",value:function(ke,Me){throw new s("Unimplemented abstract function!")}},{key:"abort",value:function(){throw new s("Unimplemented abstract function!")}}]),$t}(),v=i("w4Tj"),b=i("oZsa"),w={};function x(){var $t=self.navigator.userAgent.toLowerCase(),Ot=/(edge)\/([\w.]+)/.exec($t)||/(opr)[\/]([\w.]+)/.exec($t)||/(chrome)[ \/]([\w.]+)/.exec($t)||/(iemobile)[\/]([\w.]+)/.exec($t)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec($t)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec($t)||/(webkit)[ \/]([\w.]+)/.exec($t)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec($t)||/(msie) ([\w.]+)/.exec($t)||$t.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec($t)||$t.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec($t)||[],ke=/(ipad)/.exec($t)||/(ipod)/.exec($t)||/(windows phone)/.exec($t)||/(iphone)/.exec($t)||/(kindle)/.exec($t)||/(android)/.exec($t)||/(windows)/.exec($t)||/(mac)/.exec($t)||/(linux)/.exec($t)||/(cros)/.exec($t)||[],Me={browser:Ot[5]||Ot[3]||Ot[1]||"",version:Ot[2]||Ot[4]||"0",majorVersion:Ot[4]||Ot[2]||"0",platform:ke[0]||""},Be={};if(Me.browser){Be[Me.browser]=!0;var at=Me.majorVersion.split(".");Be.version={major:parseInt(Me.majorVersion,10),string:Me.version},at.length>1&&(Be.version.minor=parseInt(at[1],10)),at.length>2&&(Be.version.build=parseInt(at[2],10))}if(Me.platform&&(Be[Me.platform]=!0),(Be.chrome||Be.opr||Be.safari)&&(Be.webkit=!0),Be.rv||Be.iemobile){Be.rv&&delete Be.rv;var At="msie";Me.browser=At,Be[At]=!0}if(Be.edge){delete Be.edge;var Ct="msedge";Me.browser=Ct,Be[Ct]=!0}if(Be.opr){var Yt="opera";Me.browser=Yt,Be[Yt]=!0}if(Be.safari&&Be.android){var Pr="android";Me.browser=Pr,Be[Pr]=!0}Be.name=Me.browser,Be.platform=Me.platform;for(var qr in w)w.hasOwnProperty(qr)&&delete w[qr];Object.assign(w,Be)}x();var T=w,O=function($t){Object(t.a)(ke,$t);var Ot=Object(a.a)(ke);function ke(Me,Be){var at;return Object(y.a)(this,ke),at=Ot.call(this,"fetch-stream-loader"),at.TAG="FetchStreamLoader",at._seekHandler=Me,at._config=Be,at._needStash=!0,at._requestAbort=!1,at._contentLength=null,at._receivedLength=0,at}return Object(p.a)(ke,[{key:"destroy",value:function(){this.isWorking()&&this.abort(),Object(v.a)(Object(b.a)(ke.prototype),"destroy",this).call(this)}},{key:"open",value:function(Be,at){var At=this;this._dataSource=Be,this._range=at;var Ct=Be.url;this._config.reuseRedirectedURL&&Be.redirectedURL!=null&&(Ct=Be.redirectedURL);var Yt=this._seekHandler.getConfig(Ct,at),Pr=new self.Headers;if(typeof Yt.headers=="object"){var qr=Yt.headers;for(var An in qr)qr.hasOwnProperty(An)&&Pr.append(An,qr[An])}var Gt={method:"GET",headers:Pr,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var vt in this._config.headers)Pr.append(vt,this._config.headers[vt]);Be.cors===!1&&(Gt.mode="same-origin"),Be.withCredentials&&(Gt.credentials="include"),Be.referrerPolicy&&(Gt.referrerPolicy=Be.referrerPolicy),this._status=c.kConnecting,self.fetch(Yt.url,Gt).then(function(bt){if(At._requestAbort){At._requestAbort=!1,At._status=c.kIdle;return}if(bt.ok&&bt.status>=200&&bt.status<=299){if(bt.url!==Yt.url&&At._onURLRedirect){var fr=At._seekHandler.removeURLParameters(bt.url);At._onURLRedirect(fr)}var Jt=bt.headers.get("Content-Length");return Jt!=null&&(At._contentLength=parseInt(Jt),At._contentLength!==0&&(At._onContentLengthKnown&&At._onContentLengthKnown(At._contentLength))),At._pump.call(At,bt.body.getReader())}else if(At._status=c.kError,At._onError)At._onError(h.HTTP_STATUS_CODE_INVALID,{code:bt.status,msg:bt.statusText});else throw new e("FetchStreamLoader: Http code invalid, "+bt.status+" "+bt.statusText)}).catch(function(bt){if(At._status=c.kError,At._onError)At._onError(h.EXCEPTION,{code:-1,msg:bt.message});else throw bt})}},{key:"abort",value:function(){this._requestAbort=!0}},{key:"_pump",value:function(Be){var at=this;return Be.read().then(function(At){if(At.done)if(at._contentLength!==null&&at._receivedLength<at._contentLength){at._status=c.kError;var Ct=h.EARLY_EOF,Yt={code:-1,msg:"Fetch stream meet Early-EOF"};if(at._onError)at._onError(Ct,Yt);else throw new e(Yt.msg)}else at._status=c.kComplete,at._onComplete&&at._onComplete(at._range.from,at._range.from+at._receivedLength-1);else{if(at._requestAbort===!0)return at._requestAbort=!1,at._status=c.kComplete,Be.cancel();at._status=c.kBuffering;var Pr=At.value.buffer,qr=at._range.from+at._receivedLength;at._receivedLength+=Pr.byteLength,at._onDataArrival&&at._onDataArrival(Pr,qr,at._receivedLength),at._pump(Be)}}).catch(function(At){if(At.code===11&&T.msedge)return;at._status=c.kError;var Ct=0,Yt=null;if((At.code===19||At.message==="network error")&&(at._contentLength===null||at._contentLength!==null&&at._receivedLength<at._contentLength)?(Ct=h.EARLY_EOF,Yt={code:At.code,msg:"Fetch stream meet Early-EOF"}):(Ct=h.EXCEPTION,Yt={code:At.code,msg:At.message}),at._onError)at._onError(Ct,Yt);else throw new e(Yt.msg)})}}],[{key:"isSupported",value:function(){try{var Be=T.msedge&&T.version.minor>=15048,at=T.msedge?Be:!0;return self.fetch&&self.ReadableStream&&at}catch(At){return!1}}}]),ke}(g),E=O,C=function($t){Object(t.a)(ke,$t);var Ot=Object(a.a)(ke);function ke(Me,Be){var at;return Object(y.a)(this,ke),at=Ot.call(this,"xhr-moz-chunked-loader"),at.TAG="MozChunkedLoader",at._seekHandler=Me,at._config=Be,at._needStash=!0,at._xhr=null,at._requestAbort=!1,at._contentLength=null,at._receivedLength=0,at}return Object(p.a)(ke,[{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(v.a)(Object(b.a)(ke.prototype),"destroy",this).call(this)}},{key:"open",value:function(Be,at){this._dataSource=Be,this._range=at;var At=Be.url;this._config.reuseRedirectedURL&&Be.redirectedURL!=null&&(At=Be.redirectedURL);var Ct=this._seekHandler.getConfig(At,at);this._requestURL=Ct.url;var Yt=this._xhr=new XMLHttpRequest;if(Yt.open("GET",Ct.url,!0),Yt.responseType="moz-chunked-arraybuffer",Yt.onreadystatechange=this._onReadyStateChange.bind(this),Yt.onprogress=this._onProgress.bind(this),Yt.onloadend=this._onLoadEnd.bind(this),Yt.onerror=this._onXhrError.bind(this),Be.withCredentials&&(Yt.withCredentials=!0),typeof Ct.headers=="object"){var Pr=Ct.headers;for(var qr in Pr)Pr.hasOwnProperty(qr)&&Yt.setRequestHeader(qr,Pr[qr])}if(typeof this._config.headers=="object"){var An=this._config.headers;for(var Gt in An)An.hasOwnProperty(Gt)&&Yt.setRequestHeader(Gt,An[Gt])}this._status=c.kConnecting,Yt.send()}},{key:"abort",value:function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=c.kComplete}},{key:"_onReadyStateChange",value:function(Be){var at=Be.target;if(at.readyState===2){if(at.responseURL!=null&&at.responseURL!==this._requestURL&&this._onURLRedirect){var At=this._seekHandler.removeURLParameters(at.responseURL);this._onURLRedirect(At)}if(at.status!==0&&(at.status<200||at.status>299))if(this._status=c.kError,this._onError)this._onError(h.HTTP_STATUS_CODE_INVALID,{code:at.status,msg:at.statusText});else throw new e("MozChunkedLoader: Http code invalid, "+at.status+" "+at.statusText);else this._status=c.kBuffering}}},{key:"_onProgress",value:function(Be){if(this._status===c.kError)return;this._contentLength===null&&(Be.total!==null&&Be.total!==0&&(this._contentLength=Be.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)));var at=Be.target.response,At=this._range.from+this._receivedLength;this._receivedLength+=at.byteLength,this._onDataArrival&&this._onDataArrival(at,At,this._receivedLength)}},{key:"_onLoadEnd",value:function(Be){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(Be){this._status=c.kError;var at=0,At=null;if(this._contentLength&&Be.loaded<this._contentLength?(at=h.EARLY_EOF,At={code:-1,msg:"Moz-Chunked stream meet Early-Eof"}):(at=h.EXCEPTION,At={code:-1,msg:Be.constructor.name+" "+Be.type}),this._onError)this._onError(at,At);else throw new e(At.msg)}}],[{key:"isSupported",value:function(){try{var Be=new XMLHttpRequest;return Be.open("GET","https://example.com",!0),Be.responseType="moz-chunked-arraybuffer",Be.responseType==="moz-chunked-arraybuffer"}catch(at){return l.w("MozChunkedLoader",at.message),!1}}}]),ke}(g),I=C,_=function($t){Object(t.a)(ke,$t);var Ot=Object(a.a)(ke);function ke(Me,Be){var at;return Object(y.a)(this,ke),at=Ot.call(this,"xhr-msstream-loader"),at.TAG="MSStreamLoader",at._seekHandler=Me,at._config=Be,at._needStash=!0,at._xhr=null,at._reader=null,at._totalRange=null,at._currentRange=null,at._currentRequestURL=null,at._currentRedirectedURL=null,at._contentLength=null,at._receivedLength=0,at._bufferLimit=16*1024*1024,at._lastTimeBufferSize=0,at._isReconnecting=!1,at}return Object(p.a)(ke,[{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(v.a)(Object(b.a)(ke.prototype),"destroy",this).call(this)}},{key:"open",value:function(Be,at){this._internalOpen(Be,at,!1)}},{key:"_internalOpen",value:function(Be,at,At){this._dataSource=Be,At?this._currentRange=at:this._totalRange=at;var Ct=Be.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?Ct=this._currentRedirectedURL:Be.redirectedURL!=null&&(Ct=Be.redirectedURL));var Yt=this._seekHandler.getConfig(Ct,at);this._currentRequestURL=Yt.url;var Pr=this._reader=new self.MSStreamReader;Pr.onprogress=this._msrOnProgress.bind(this),Pr.onload=this._msrOnLoad.bind(this),Pr.onerror=this._msrOnError.bind(this);var qr=this._xhr=new XMLHttpRequest;if(qr.open("GET",Yt.url,!0),qr.responseType="ms-stream",qr.onreadystatechange=this._xhrOnReadyStateChange.bind(this),qr.onerror=this._xhrOnError.bind(this),Be.withCredentials&&(qr.withCredentials=!0),typeof Yt.headers=="object"){var An=Yt.headers;for(var Gt in An)An.hasOwnProperty(Gt)&&qr.setRequestHeader(Gt,An[Gt])}if(typeof this._config.headers=="object"){var vt=this._config.headers;for(var bt in vt)vt.hasOwnProperty(bt)&&qr.setRequestHeader(bt,vt[bt])}this._isReconnecting?this._isReconnecting=!1:this._status=c.kConnecting,qr.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(Be){var at=Be.target;if(at.readyState===2)if(at.status>=200&&at.status<=299){if(this._status=c.kBuffering,at.responseURL!=null){var At=this._seekHandler.removeURLParameters(at.responseURL);at.responseURL!==this._currentRequestURL&&At!==this._currentRedirectedURL&&(this._currentRedirectedURL=At,this._onURLRedirect&&this._onURLRedirect(At))}var Ct=at.getResponseHeader("Content-Length");if(Ct!=null&&this._contentLength==null){var Yt=parseInt(Ct);Yt>0&&(this._contentLength=Yt,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength))}}else if(this._status=c.kError,this._onError)this._onError(h.HTTP_STATUS_CODE_INVALID,{code:at.status,msg:at.statusText});else throw new e("MSStreamLoader: Http code invalid, "+at.status+" "+at.statusText);else if(at.readyState===3&&(at.status>=200&&at.status<=299)){this._status=c.kBuffering;var Pr=at.response;this._reader.readAsArrayBuffer(Pr)}}},{key:"_xhrOnError",value:function(Be){this._status=c.kError;var at=h.EXCEPTION,At={code:-1,msg:Be.constructor.name+" "+Be.type};if(this._onError)this._onError(at,At);else throw new e(At.msg)}},{key:"_msrOnProgress",value:function(Be){var at=Be.target,At=at.result;if(At==null){this._doReconnectIfNeeded();return}var Ct=At.slice(this._lastTimeBufferSize);this._lastTimeBufferSize=At.byteLength;var Yt=this._totalRange.from+this._receivedLength;this._receivedLength+=Ct.byteLength,this._onDataArrival&&this._onDataArrival(Ct,Yt,this._receivedLength),At.byteLength>=this._bufferLimit&&(l.v(this.TAG,"MSStream buffer exceeded max size near ".concat(Yt+Ct.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 Be={from:this._totalRange.from+this._receivedLength,to:-1};this._internalOpen(this._dataSource,Be,!0)}}},{key:"_msrOnLoad",value:function(Be){this._status=c.kComplete,this._onComplete&&this._onComplete(this._totalRange.from,this._totalRange.from+this._receivedLength-1)}},{key:"_msrOnError",value:function(Be){this._status=c.kError;var at=0,At=null;if(this._contentLength&&this._receivedLength<this._contentLength?(at=h.EARLY_EOF,At={code:-1,msg:"MSStream meet Early-Eof"}):(at=h.EARLY_EOF,At={code:-1,msg:Be.constructor.name+" "+Be.type}),this._onError)this._onError(at,At);else throw new e(At.msg)}}],[{key:"isSupported",value:function(){try{if(typeof self.MSStream=="undefined"||typeof self.MSStreamReader=="undefined")return!1;var Be=new XMLHttpRequest;return Be.open("GET","https://example.com",!0),Be.responseType="ms-stream",Be.responseType==="ms-stream"}catch(at){return l.w("MSStreamLoader",at.message),!1}}}]),ke}(g),F=_,R=function($t){Object(t.a)(ke,$t);var Ot=Object(a.a)(ke);function ke(Me,Be){var at;return Object(y.a)(this,ke),at=Ot.call(this,"xhr-range-loader"),at.TAG="RangeLoader",at._seekHandler=Me,at._config=Be,at._needStash=!1,at._chunkSizeKBList=[128,256,384,512,768,1024,1536,2048,3072,4096,5120,6144,7168,8192],at._currentChunkSizeKB=384,at._currentSpeedNormalized=0,at._zeroSpeedChunkCount=0,at._xhr=null,at._speedSampler=new n,at._requestAbort=!1,at._waitForTotalLength=!1,at._totalLengthReceived=!1,at._currentRequestURL=null,at._currentRedirectedURL=null,at._currentRequestRange=null,at._totalLength=null,at._contentLength=null,at._receivedLength=0,at._lastTimeLoaded=0,at}return Object(p.a)(ke,[{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(v.a)(Object(b.a)(ke.prototype),"destroy",this).call(this)}},{key:"currentSpeed",get:function(){return this._speedSampler.lastSecondKBps}},{key:"open",value:function(Be,at){this._dataSource=Be,this._range=at,this._status=c.kConnecting;var At=!1;this._dataSource.filesize!=null&&this._dataSource.filesize!==0&&(At=!0,this._totalLength=this._dataSource.filesize),!this._totalLengthReceived&&!At?(this._waitForTotalLength=!0,this._internalOpen(this._dataSource,{from:0,to:-1})):this._openSubRange()}},{key:"_openSubRange",value:function(){var Be=this._currentChunkSizeKB*1024,at=this._range.from+this._receivedLength,At=at+Be;this._contentLength!=null&&(At-this._range.from>=this._contentLength&&(At=this._range.from+this._contentLength-1)),this._currentRequestRange={from:at,to:At},this._internalOpen(this._dataSource,this._currentRequestRange)}},{key:"_internalOpen",value:function(Be,at){this._lastTimeLoaded=0;var At=Be.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?At=this._currentRedirectedURL:Be.redirectedURL!=null&&(At=Be.redirectedURL));var Ct=this._seekHandler.getConfig(At,at);this._currentRequestURL=Ct.url;var Yt=this._xhr=new XMLHttpRequest;if(Yt.open("GET",Ct.url,!0),Yt.responseType="arraybuffer",Yt.onreadystatechange=this._onReadyStateChange.bind(this),Yt.onprogress=this._onProgress.bind(this),Yt.onload=this._onLoad.bind(this),Yt.onerror=this._onXhrError.bind(this),Be.withCredentials&&(Yt.withCredentials=!0),typeof Ct.headers=="object"){var Pr=Ct.headers;for(var qr in Pr)Pr.hasOwnProperty(qr)&&Yt.setRequestHeader(qr,Pr[qr])}if(typeof this._config.headers=="object"){var An=this._config.headers;for(var Gt in An)An.hasOwnProperty(Gt)&&Yt.setRequestHeader(Gt,An[Gt])}Yt.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(Be){var at=Be.target;if(at.readyState===2){if(at.responseURL!=null){var At=this._seekHandler.removeURLParameters(at.responseURL);at.responseURL!==this._currentRequestURL&&At!==this._currentRedirectedURL&&(this._currentRedirectedURL=At,this._onURLRedirect&&this._onURLRedirect(At))}if(at.status>=200&&at.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:at.status,msg:at.statusText});else throw new e("RangeLoader: Http code invalid, "+at.status+" "+at.statusText)}}},{key:"_onProgress",value:function(Be){if(this._status===c.kError)return;if(this._contentLength===null){var at=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,at=!0;var At=Be.total;this._internalAbort(),At!=null&At!==0&&(this._totalLength=At)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,at){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var Ct=Be.loaded-this._lastTimeLoaded;this._lastTimeLoaded=Be.loaded,this._speedSampler.addBytes(Ct)}},{key:"_normalizeSpeed",value:function(Be){var at=this._chunkSizeKBList,At=at.length-1,Ct=0,Yt=0,Pr=At;if(Be<at[0])return at[0];for(;Yt<=Pr;){if(Ct=Yt+Math.floor((Pr-Yt)/2),Ct===At||Be>=at[Ct]&&Be<at[Ct+1])return at[Ct];at[Ct]<Be?Yt=Ct+1:Pr=Ct-1}}},{key:"_onLoad",value:function(Be){if(this._status===c.kError)return;if(this._waitForTotalLength){this._waitForTotalLength=!1;return}this._lastTimeLoaded=0;var at=this._speedSampler.lastSecondKBps;if(at===0&&(this._zeroSpeedChunkCount++,this._zeroSpeedChunkCount>=3&&(at=this._speedSampler.currentKBps)),at!==0){var At=this._normalizeSpeed(at);this._currentSpeedNormalized!==At&&(this._currentSpeedNormalized=At,this._currentChunkSizeKB=At)}var Ct=Be.target.response,Yt=this._range.from+this._receivedLength;this._receivedLength+=Ct.byteLength;var Pr=!1;this._contentLength!=null&&this._receivedLength<this._contentLength?this._openSubRange():Pr=!0,this._onDataArrival&&this._onDataArrival(Ct,Yt,this._receivedLength),Pr&&(this._status=c.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1))}},{key:"_onXhrError",value:function(Be){this._status=c.kError;var at=0,At=null;if(this._contentLength&&this._receivedLength>0&&this._receivedLength<this._contentLength?(at=h.EARLY_EOF,At={code:-1,msg:"RangeLoader meet Early-Eof"}):(at=h.EXCEPTION,At={code:-1,msg:Be.constructor.name+" "+Be.type}),this._onError)this._onError(at,At);else throw new e(At.msg)}}],[{key:"isSupported",value:function(){try{var Be=new XMLHttpRequest;return Be.open("GET","https://example.com",!0),Be.responseType="arraybuffer",Be.responseType==="arraybuffer"}catch(at){return l.w("RangeLoader",at.message),!1}}}]),ke}(g),B=R,M=function($t){Object(t.a)(ke,$t);var Ot=Object(a.a)(ke);function ke(){var Me;return Object(y.a)(this,ke),Me=Ot.call(this,"websocket-loader"),Me.TAG="WebSocketLoader",Me._needStash=!0,Me._ws=null,Me._requestAbort=!1,Me._receivedLength=0,Me}return Object(p.a)(ke,[{key:"destroy",value:function(){this._ws&&this.abort(),Object(v.a)(Object(b.a)(ke.prototype),"destroy",this).call(this)}},{key:"open",value:function(Be){try{var at=this._ws=new self.WebSocket(Be.url);at.binaryType="arraybuffer",at.onopen=this._onWebSocketOpen.bind(this),at.onclose=this._onWebSocketClose.bind(this),at.onmessage=this._onWebSocketMessage.bind(this),at.onerror=this._onWebSocketError.bind(this),this._status=c.kConnecting}catch(Ct){this._status=c.kError;var At={code:Ct.code,msg:Ct.message};if(this._onError)this._onError(h.EXCEPTION,At);else throw new e(At.msg)}}},{key:"abort",value:function(){var Be=this._ws;Be&&(Be.readyState===0||Be.readyState===1)&&(this._requestAbort=!0,Be.close()),this._ws=null,this._status=c.kComplete}},{key:"_onWebSocketOpen",value:function(Be){this._status=c.kBuffering}},{key:"_onWebSocketClose",value:function(Be){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=c.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)}},{key:"_onWebSocketMessage",value:function(Be){var at=this;if(Be.data instanceof ArrayBuffer)this._dispatchArrayBuffer(Be.data);else if(Be.data instanceof Blob){var At=new FileReader;At.onload=function(){at._dispatchArrayBuffer(At.result)},At.readAsArrayBuffer(Be.data)}else{this._status=c.kError;var Ct={code:-1,msg:"Unsupported WebSocket message type: "+Be.data.constructor.name};if(this._onError)this._onError(h.EXCEPTION,Ct);else throw new e(Ct.msg)}}},{key:"_dispatchArrayBuffer",value:function(Be){var at=Be,At=this._receivedLength;this._receivedLength+=at.byteLength,this._onDataArrival&&this._onDataArrival(at,At,this._receivedLength)}},{key:"_onWebSocketError",value:function(Be){this._status=c.kError;var at={code:Be.code,msg:Be.message};if(this._onError)this._onError(h.EXCEPTION,at);else throw new e(at.msg)}}],[{key:"isSupported",value:function(){try{return typeof self.WebSocket!="undefined"}catch(Be){return!1}}}]),ke}(g),X=M,P=function(){function $t(Ot){Object(y.a)(this,$t),this._zeroStart=Ot||!1}return Object(p.a)($t,[{key:"getConfig",value:function(ke,Me){var Be={};if(Me.from!==0||Me.to!==-1){var at;Me.to!==-1?at="bytes=".concat(Me.from.toString(),"-").concat(Me.to.toString()):at="bytes=".concat(Me.from.toString(),"-"),Be.Range=at}else this._zeroStart&&(Be.Range="bytes=0-");return{url:ke,headers:Be}}},{key:"removeURLParameters",value:function(ke){return ke}}]),$t}(),z=P,W=function(){function $t(Ot,ke){Object(y.a)(this,$t),this._startName=Ot,this._endName=ke}return Object(p.a)($t,[{key:"getConfig",value:function(ke,Me){var Be=ke;if(Me.from!==0||Me.to!==-1){var at=!0;Be.indexOf("?")===-1&&(Be+="?",at=!1),at&&(Be+="&"),Be+="".concat(this._startName,"=").concat(Me.from.toString()),Me.to!==-1&&(Be+="&".concat(this._endName,"=").concat(Me.to.toString()))}return{url:Be,headers:{}}}},{key:"removeURLParameters",value:function(ke){var Me=ke.split("?")[0],Be=void 0,at=ke.indexOf("?");at!==-1&&(Be=ke.substring(at+1));var At="";if(Be!=null&&Be.length>0)for(var Ct=Be.split("&"),Yt=0;Yt<Ct.length;Yt++){var Pr=Ct[Yt].split("="),qr=Yt>0;Pr[0]!==this._startName&&Pr[0]!==this._endName&&(qr&&(At+="&"),At+=Ct[Yt])}return At.length===0?Me:Me+"?"+At}}]),$t}(),U=W,V=function(){function $t(Ot,ke,Me){Object(y.a)(this,$t),this.TAG="IOController",this._config=ke,this._extraData=Me,this._stashInitialSize=1024*384,ke.stashInitialSize!=null&&ke.stashInitialSize>0&&(this._stashInitialSize=ke.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,ke.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=Ot,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(Ot.url),this._refTotalLength=Ot.filesize?Ot.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new n,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(p.a)($t,[{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(ke){this._extraData=ke}},{key:"onDataArrival",get:function(){return this._onDataArrival},set:function(ke){this._onDataArrival=ke}},{key:"onSeeked",get:function(){return this._onSeeked},set:function(ke){this._onSeeked=ke}},{key:"onError",get:function(){return this._onError},set:function(ke){this._onError=ke}},{key:"onComplete",get:function(){return this._onComplete},set:function(ke){this._onComplete=ke}},{key:"onRedirect",get:function(){return this._onRedirect},set:function(ke){this._onRedirect=ke}},{key:"onRecoveredEarlyEof",get:function(){return this._onRecoveredEarlyEof},set:function(ke){this._onRecoveredEarlyEof=ke}},{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===B?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}},{key:"loaderType",get:function(){return this._loader.type}},{key:"_selectSeekHandler",value:function(){var ke=this._config;if(ke.seekType==="range")this._seekHandler=new z(this._config.rangeLoadZeroStart);else if(ke.seekType==="param"){var Me=ke.seekParamStart||"bstart",Be=ke.seekParamEnd||"bend";this._seekHandler=new U(Me,Be)}else if(ke.seekType==="custom"){if(typeof ke.customSeekHandler!="function")throw new r("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new ke.customSeekHandler}else throw new r("Invalid seekType in config: ".concat(ke.seekType))}},{key:"_selectLoader",value:function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=X;else if(E.isSupported())this._loaderClass=E;else if(I.isSupported())this._loaderClass=I;else if(B.isSupported())this._loaderClass=B;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(ke){this._currentRange={from:0,to:-1},ke&&(this._currentRange.from=ke),this._speedSampler.reset(),ke||(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 ke=this._resumeFrom;this._resumeFrom=0,this._internalSeek(ke,!0)}}},{key:"seek",value:function(ke){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(ke,!0)}},{key:"_internalSeek",value:function(ke,Me){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(Me),this._loader.destroy(),this._loader=null;var Be={from:ke,to:-1};this._currentRange={from:Be.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,Be),this._onSeeked&&this._onSeeked()}},{key:"updateUrl",value:function(ke){if(!ke||typeof ke!="string"||ke.length===0)throw new r("Url must be a non-empty string!");this._dataSource.url=ke}},{key:"_expandBuffer",value:function(ke){for(var Me=this._stashSize;Me+1024*1024*1<ke;)Me*=2;if(Me+=1024*1024*1,Me===this._bufferSize)return;var Be=new ArrayBuffer(Me);if(this._stashUsed>0){var at=new Uint8Array(this._stashBuffer,0,this._stashUsed),At=new Uint8Array(Be,0,Me);At.set(at,0)}this._stashBuffer=Be,this._bufferSize=Me}},{key:"_normalizeSpeed",value:function(ke){var Me=this._speedNormalizeList,Be=Me.length-1,at=0,At=0,Ct=Be;if(ke<Me[0])return Me[0];for(;At<=Ct;){if(at=At+Math.floor((Ct-At)/2),at===Be||ke>=Me[at]&&ke<Me[at+1])return Me[at];Me[at]<ke?At=at+1:Ct=at-1}}},{key:"_adjustStashSize",value:function(ke){var Me=0;this._config.isLive||ke<512?Me=ke:ke>=512&&ke<=1024?Me=Math.floor(ke*1.5):Me=ke*2,Me>8192&&(Me=8192);var Be=Me*1024+1024*1024*1;this._bufferSize<Be&&this._expandBuffer(Be),this._stashSize=Me*1024}},{key:"_dispatchChunks",value:function(ke,Me){return this._currentRange.to=Me+ke.byteLength-1,this._onDataArrival(ke,Me)}},{key:"_onURLRedirect",value:function(ke){this._redirectedURL=ke,this._onRedirect&&this._onRedirect(ke)}},{key:"_onContentLengthKnown",value:function(ke){ke&&this._fullRequestFlag&&(this._totalLength=ke,this._fullRequestFlag=!1)}},{key:"_onLoaderChunkArrival",value:function(ke,Me,Be){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(ke.byteLength);var at=this._speedSampler.lastSecondKBps;if(at!==0){var At=this._normalizeSpeed(at);this._speedNormalized!==At&&(this._speedNormalized=At,this._adjustStashSize(At))}if(this._enableStash)if(this._stashUsed===0&&this._stashByteStart===0&&(this._stashByteStart=Me),this._stashUsed+ke.byteLength<=this._stashSize){var vt=new Uint8Array(this._stashBuffer,0,this._stashSize);vt.set(new Uint8Array(ke),this._stashUsed),this._stashUsed+=ke.byteLength}else{var bt=new Uint8Array(this._stashBuffer,0,this._bufferSize);if(this._stashUsed>0){var fr=this._stashBuffer.slice(0,this._stashUsed),Jt=this._dispatchChunks(fr,this._stashByteStart);if(Jt<fr.byteLength){if(Jt>0){var Ut=new Uint8Array(fr,Jt);bt.set(Ut,0),this._stashUsed=Ut.byteLength,this._stashByteStart+=Jt}}else this._stashUsed=0,this._stashByteStart+=Jt;this._stashUsed+ke.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+ke.byteLength),bt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),bt.set(new Uint8Array(ke),this._stashUsed),this._stashUsed+=ke.byteLength}else{var er=this._dispatchChunks(ke,Me);if(er<ke.byteLength){var Mt=ke.byteLength-er;Mt>this._bufferSize&&(this._expandBuffer(Mt),bt=new Uint8Array(this._stashBuffer,0,this._bufferSize)),bt.set(new Uint8Array(ke,er),0),this._stashUsed+=Mt,this._stashByteStart=Me+er}}}else if(this._stashUsed===0){var Ct=this._dispatchChunks(ke,Me);if(Ct<ke.byteLength){var Yt=ke.byteLength-Ct;Yt>this._bufferSize&&this._expandBuffer(Yt);var Pr=new Uint8Array(this._stashBuffer,0,this._bufferSize);Pr.set(new Uint8Array(ke,Ct),0),this._stashUsed+=Yt,this._stashByteStart=Me+Ct}}else{this._stashUsed+ke.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+ke.byteLength);var qr=new Uint8Array(this._stashBuffer,0,this._bufferSize);qr.set(new Uint8Array(ke),this._stashUsed),this._stashUsed+=ke.byteLength;var An=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(An<this._stashUsed&&An>0){var Gt=new Uint8Array(this._stashBuffer,An);qr.set(Gt,0)}this._stashUsed-=An,this._stashByteStart+=An}}},{key:"_flushStashBuffer",value:function(ke){if(this._stashUsed>0){var Me=this._stashBuffer.slice(0,this._stashUsed),Be=this._dispatchChunks(Me,this._stashByteStart),at=Me.byteLength-Be;if(Be<Me.byteLength)if(ke)l.w(this.TAG,"".concat(at," bytes unconsumed data remain when flush buffer, dropped"));else{if(Be>0){var At=new Uint8Array(this._stashBuffer,0,this._bufferSize),Ct=new Uint8Array(Me,Be);At.set(Ct,0),this._stashUsed=Ct.byteLength,this._stashByteStart+=Be}return 0}return this._stashUsed=0,this._stashByteStart=0,at}return 0}},{key:"_onLoaderComplete",value:function(ke,Me){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}},{key:"_onLoaderError",value:function(ke,Me){l.e(this.TAG,"Loader error, code = ".concat(Me.code,", msg = ").concat(Me.msg)),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,ke=h.UNRECOVERABLE_EARLY_EOF);switch(ke){case h.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var Be=this._currentRange.to+1;Be<this._totalLength&&(l.w(this.TAG,"Connection lost, trying reconnect..."),this._isEarlyEofReconnecting=!0,this._internalSeek(Be,!1));return}ke=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(ke,Me);else throw new e("IOException: "+Me.msg)}}]),$t}(),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 $=function(){function $t(){Object(y.a)(this,$t)}return Object(p.a)($t,null,[{key:"supportMSEH264Playback",value:function(){return window.MediaSource&&window.MediaSource.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')}},{key:"supportNetworkStreamIO",value:function(){var ke=new Q({},te()),Me=ke.loaderType;return ke.destroy(),Me=="fetch-stream-loader"||Me=="xhr-moz-chunked-loader"}},{key:"getNetworkLoaderTypeName",value:function(){var ke=new Q({},te()),Me=ke.loaderType;return ke.destroy(),Me}},{key:"supportNativeMediaPlayback",value:function(ke){$t.videoElement==null&&($t.videoElement=window.document.createElement("video"));var Me=$t.videoElement.canPlayType(ke);return Me==="probably"||Me=="maybe"}},{key:"getFeatureList",value:function(){var ke={mseFlvPlayback:!1,mseLiveFlvPlayback:!1,networkStreamIO:!1,networkLoaderName:"",nativeMP4H264Playback:!1,nativeWebmVP8Playback:!1,nativeWebmVP9Playback:!1};return ke.mseFlvPlayback=$t.supportMSEH264Playback(),ke.networkStreamIO=$t.supportNetworkStreamIO(),ke.networkLoaderName=$t.getNetworkLoaderTypeName(),ke.mseLiveFlvPlayback=ke.mseFlvPlayback&&ke.networkStreamIO,ke.nativeMP4H264Playback=$t.supportNativeMediaPlayback('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),ke.nativeWebmVP8Playback=$t.supportNativeMediaPlayback('video/webm; codecs="vp8.0, vorbis"'),ke.nativeWebmVP9Playback=$t.supportNativeMediaPlayback('video/webm; codecs="vp9"'),ke}}]),$t}(),le=$,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"},Se=re,Re=function(){function $t(){Object(y.a)(this,$t)}return Object(p.a)($t,null,[{key:"forceGlobalTag",get:function(){return l.FORCE_GLOBAL_TAG},set:function(ke){l.FORCE_GLOBAL_TAG=ke,$t._notifyChange()}},{key:"globalTag",get:function(){return l.GLOBAL_TAG},set:function(ke){l.GLOBAL_TAG=ke,$t._notifyChange()}},{key:"enableAll",get:function(){return l.ENABLE_VERBOSE&&l.ENABLE_DEBUG&&l.ENABLE_INFO&&l.ENABLE_WARN&&l.ENABLE_ERROR},set:function(ke){l.ENABLE_VERBOSE=ke,l.ENABLE_DEBUG=ke,l.ENABLE_INFO=ke,l.ENABLE_WARN=ke,l.ENABLE_ERROR=ke,$t._notifyChange()}},{key:"enableDebug",get:function(){return l.ENABLE_DEBUG},set:function(ke){l.ENABLE_DEBUG=ke,$t._notifyChange()}},{key:"enableVerbose",get:function(){return l.ENABLE_VERBOSE},set:function(ke){l.ENABLE_VERBOSE=ke,$t._notifyChange()}},{key:"enableInfo",get:function(){return l.ENABLE_INFO},set:function(ke){l.ENABLE_INFO=ke,$t._notifyChange()}},{key:"enableWarn",get:function(){return l.ENABLE_WARN},set:function(ke){l.ENABLE_WARN=ke,$t._notifyChange()}},{key:"enableError",get:function(){return l.ENABLE_ERROR},set:function(ke){l.ENABLE_ERROR=ke,$t._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(ke){l.GLOBAL_TAG=ke.globalTag,l.FORCE_GLOBAL_TAG=ke.forceGlobalTag,l.ENABLE_VERBOSE=ke.enableVerbose,l.ENABLE_DEBUG=ke.enableDebug,l.ENABLE_INFO=ke.enableInfo,l.ENABLE_WARN=ke.enableWarn,l.ENABLE_ERROR=ke.enableError,l.ENABLE_CALLBACK=ke.enableCallback}},{key:"_notifyChange",value:function(){var ke=$t.emitter;if(ke.listenerCount("change")>0){var Me=$t.getConfig();ke.emit("change",Me)}}},{key:"registerListener",value:function(ke){$t.emitter.addListener("change",ke)}},{key:"removeListener",value:function(ke){$t.emitter.removeListener("change",ke)}},{key:"addLogListener",value:function(ke){l.emitter.addListener("log",ke),l.emitter.listenerCount("log")>0&&(l.ENABLE_CALLBACK=!0,$t._notifyChange())}},{key:"removeLogListener",value:function(ke){l.emitter.removeListener("log",ke),l.emitter.listenerCount("log")===0&&(l.ENABLE_CALLBACK=!1,$t._notifyChange())}}]),$t}();Re.emitter=new f.a;var Pe=Re,Je=function(){function $t(){Object(y.a)(this,$t),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(p.a)($t,[{key:"isComplete",value:function(){var ke=this.hasAudio===!1||this.hasAudio===!0&&this.audioCodec!=null&&this.audioSampleRate!=null&&this.audioChannelCount!=null,Me=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&&ke&&Me}},{key:"isSeekable",value:function(){return this.hasKeyframesIndex===!0}},{key:"getNearestKeyframe",value:function(ke){if(this.keyframesIndex==null)return null;var Me=this.keyframesIndex,Be=this._search(Me.times,ke);return{index:Be,milliseconds:Me.times[Be],fileposition:Me.filepositions[Be]}}},{key:"_search",value:function(ke,Me){var Be=0,at=ke.length-1,At=0,Ct=0,Yt=at;for(Me<ke[0]&&(Be=0,Ct=Yt+1);Ct<=Yt;)if(At=Ct+Math.floor((Yt-Ct)/2),At===at||Me>=ke[At]&&Me<ke[At+1]){Be=At;break}else ke[At]<Me?Ct=At+1:Yt=At-1;return Be}}]),$t}(),Ve=Je;function ct($t,Ot,ke){var Me=$t;if(Ot+ke<Me.length){for(;ke--;)if((Me[++Ot]&192)!==128)return!1;return!0}else return!1}function Ue($t){for(var Ot=[],ke=$t,Me=0,Be=$t.length;Me<Be;){if(ke[Me]<128){Ot.push(String.fromCharCode(ke[Me])),++Me;continue}else if(!(ke[Me]<192)){if(ke[Me]<224){if(ct(ke,Me,1)){var at=(ke[Me]&31)<<6|ke[Me+1]&63;if(at>=128){Ot.push(String.fromCharCode(at&65535)),Me+=2;continue}}}else if(ke[Me]<240){if(ct(ke,Me,2)){var At=(ke[Me]&15)<<12|(ke[Me+1]&63)<<6|ke[Me+2]&63;if(At>=2048&&(At&63488)!==55296){Ot.push(String.fromCharCode(At&65535)),Me+=3;continue}}}else if(ke[Me]<248&&ct(ke,Me,3)){var Ct=(ke[Me]&7)<<18|(ke[Me+1]&63)<<12|(ke[Me+2]&63)<<6|ke[Me+3]&63;if(Ct>65536&&Ct<1114112){Ct-=65536,Ot.push(String.fromCharCode(Ct>>>10|55296)),Ot.push(String.fromCharCode(Ct&1023|56320)),Me+=4;continue}}}Ot.push(String.fromCharCode(65533)),++Me}return Ot.join("")}var ue=Ue,rt=function(){var $t=new ArrayBuffer(2);return new DataView($t).setInt16(0,256,!0),new Int16Array($t)[0]===256}(),ge=function(){function $t(){Object(y.a)(this,$t)}return Object(p.a)($t,null,[{key:"parseScriptData",value:function(ke,Me,Be){var at={};try{var At=$t.parseValue(ke,Me,Be),Ct=$t.parseValue(ke,Me+At.size,Be-At.size);at[At.data]=Ct.data}catch(Yt){l.e("AMF",Yt.toString())}return at}},{key:"parseObject",value:function(ke,Me,Be){if(Be<3)throw new u("Data not enough when parse ScriptDataObject");var at=$t.parseString(ke,Me,Be),At=$t.parseValue(ke,Me+at.size,Be-at.size),Ct=At.objectEnd;return{data:{name:at.data,value:At.data},size:at.size+At.size,objectEnd:Ct}}},{key:"parseVariable",value:function(ke,Me,Be){return $t.parseObject(ke,Me,Be)}},{key:"parseString",value:function(ke,Me,Be){if(Be<2)throw new u("Data not enough when parse String");var at=new DataView(ke,Me,Be),At=at.getUint16(0,!rt),Ct;return At>0?Ct=ue(new Uint8Array(ke,Me+2,At)):Ct="",{data:Ct,size:2+At}}},{key:"parseLongString",value:function(ke,Me,Be){if(Be<4)throw new u("Data not enough when parse LongString");var at=new DataView(ke,Me,Be),At=at.getUint32(0,!rt),Ct;return At>0?Ct=ue(new Uint8Array(ke,Me+4,At)):Ct="",{data:Ct,size:4+At}}},{key:"parseDate",value:function(ke,Me,Be){if(Be<10)throw new u("Data size invalid when parse Date");var at=new DataView(ke,Me,Be),At=at.getFloat64(0,!rt),Ct=at.getInt16(8,!rt);return At+=Ct*60*1e3,{data:new Date(At),size:8+2}}},{key:"parseValue",value:function(ke,Me,Be){if(Be<1)throw new u("Data not enough when parse Value");var at=new DataView(ke,Me,Be),At=1,Ct=at.getUint8(0),Yt,Pr=!1;try{switch(Ct){case 0:Yt=at.getFloat64(1,!rt),At+=8;break;case 1:{var qr=at.getUint8(1);Yt=!!qr,At+=1;break}case 2:{var An=$t.parseString(ke,Me+1,Be-1);Yt=An.data,At+=An.size;break}case 3:{Yt={};var Gt=0;for((at.getUint32(Be-4,!rt)&16777215)===9&&(Gt=3);At<Be-4;){var vt=$t.parseObject(ke,Me+At,Be-At-Gt);if(vt.objectEnd)break;Yt[vt.data.name]=vt.data.value,At+=vt.size}if(At<=Be-3){var bt=at.getUint32(At-1,!rt)&16777215;bt===9&&(At+=3)}break}case 8:{Yt={},At+=4;var fr=0;for((at.getUint32(Be-4,!rt)&16777215)===9&&(fr=3);At<Be-8;){var Jt=$t.parseVariable(ke,Me+At,Be-At-fr);if(Jt.objectEnd)break;Yt[Jt.data.name]=Jt.data.value,At+=Jt.size}if(At<=Be-3){var Ut=at.getUint32(At-1,!rt)&16777215;Ut===9&&(At+=3)}break}case 9:Yt=void 0,At=1,Pr=!0;break;case 10:{Yt=[];var er=at.getUint32(1,!rt);At+=4;for(var Mt=0;Mt<er;Mt++){var Zt=$t.parseValue(ke,Me+At,Be-At);Yt.push(Zt.data),At+=Zt.size}break}case 11:{var Hr=$t.parseDate(ke,Me+1,Be-1);Yt=Hr.data,At+=Hr.size;break}case 12:{var Ir=$t.parseString(ke,Me+1,Be-1);Yt=Ir.data,At+=Ir.size;break}default:At=Be,l.w("AMF","Unsupported AMF value type "+Ct)}}catch(Lr){l.e("AMF",Lr.toString())}return{data:Yt,size:At,objectEnd:Pr}}}]),$t}(),Z=ge,Y=function(){function $t(Ot){Object(y.a)(this,$t),this.TAG="ExpGolomb",this._buffer=Ot,this._buffer_index=0,this._total_bytes=Ot.byteLength,this._total_bits=Ot.byteLength*8,this._current_word=0,this._current_word_bits_left=0}return Object(p.a)($t,[{key:"destroy",value:function(){this._buffer=null}},{key:"_fillCurrentWord",value:function(){var ke=this._total_bytes-this._buffer_index;if(ke<=0)throw new u("ExpGolomb: _fillCurrentWord() but no bytes available");var Me=Math.min(4,ke),Be=new Uint8Array(4);Be.set(this._buffer.subarray(this._buffer_index,this._buffer_index+Me)),this._current_word=new DataView(Be.buffer).getUint32(0,!1),this._buffer_index+=Me,this._current_word_bits_left=Me*8}},{key:"readBits",value:function(ke){if(ke>32)throw new r("ExpGolomb: readBits() bits exceeded max 32bits!");if(ke<=this._current_word_bits_left){var Me=this._current_word>>>32-ke;return this._current_word<<=ke,this._current_word_bits_left-=ke,Me}var Be=this._current_word_bits_left?this._current_word:0;Be=Be>>>32-this._current_word_bits_left;var at=ke-this._current_word_bits_left;this._fillCurrentWord();var At=Math.min(at,this._current_word_bits_left),Ct=this._current_word>>>32-At;return this._current_word<<=At,this._current_word_bits_left-=At,Be=Be<<At|Ct,Be}},{key:"readBool",value:function(){return this.readBits(1)===1}},{key:"readByte",value:function(){return this.readBits(8)}},{key:"_skipLeadingZero",value:function(){var ke;for(ke=0;ke<this._current_word_bits_left;ke++)if((this._current_word&2147483648>>>ke)!==0)return this._current_word<<=ke,this._current_word_bits_left-=ke,ke;return this._fillCurrentWord(),ke+this._skipLeadingZero()}},{key:"readUEG",value:function(){var ke=this._skipLeadingZero();return this.readBits(ke+1)-1}},{key:"readSEG",value:function(){var ke=this.readUEG();return ke&1?ke+1>>>1:-1*(ke>>>1)}}]),$t}(),ee=Y,fe=function(){function $t(){Object(y.a)(this,$t)}return Object(p.a)($t,null,[{key:"_ebsp2rbsp",value:function(ke){for(var Me=ke,Be=Me.byteLength,at=new Uint8Array(Be),At=0,Ct=0;Ct<Be;Ct++){if(Ct>=2&&(Me[Ct]===3&&Me[Ct-1]===0&&Me[Ct-2]===0))continue;at[At]=Me[Ct],At++}return new Uint8Array(at.buffer,0,At)}},{key:"parseSPS",value:function(ke){var Me=$t._ebsp2rbsp(ke),Be=new ee(Me);Be.readByte();var at=Be.readByte();Be.readByte();var At=Be.readByte();Be.readUEG();var Ct=$t.getProfileString(at),Yt=$t.getLevelString(At),Pr=1,qr=420,An=[0,420,422,444],Gt=8;if((at===100||at===110||at===122||at===244||at===44||at===83||at===86||at===118||at===128||at===138||at===144)&&(Pr=Be.readUEG(),Pr===3&&Be.readBits(1),Pr<=3&&(qr=An[Pr]),Gt=Be.readUEG()+8,Be.readUEG(),Be.readBits(1),Be.readBool()))for(var vt=Pr!==3?8:12,bt=0;bt<vt;bt++)Be.readBool()&&(bt<6?$t._skipScalingList(Be,16):$t._skipScalingList(Be,64));Be.readUEG();var fr=Be.readUEG();if(fr===0)Be.readUEG();else if(fr===1){Be.readBits(1),Be.readSEG(),Be.readSEG();for(var Jt=Be.readUEG(),Ut=0;Ut<Jt;Ut++)Be.readSEG()}var er=Be.readUEG();Be.readBits(1);var Mt=Be.readUEG(),Zt=Be.readUEG(),Hr=Be.readBits(1);Hr===0&&Be.readBits(1),Be.readBits(1);var Ir=0,Lr=0,dn=0,gn=0,ri=Be.readBool();ri&&(Ir=Be.readUEG(),Lr=Be.readUEG(),dn=Be.readUEG(),gn=Be.readUEG());var Zn=1,pi=1,Ci=0,Ni=!0,zi=0,it=0,Ne=Be.readBool();if(Ne){if(Be.readBool()){var He=Be.readByte(),Ge=[1,12,10,16,40,24,20,32,80,18,15,64,160,4,3,2],nt=[1,11,11,11,33,11,11,11,33,11,11,33,99,3,2,1];He>0&&He<16?(Zn=Ge[He-1],pi=nt[He-1]):He===255&&(Zn=Be.readByte()<<8|Be.readByte(),pi=Be.readByte()<<8|Be.readByte())}if(Be.readBool()&&Be.readBool(),Be.readBool()&&(Be.readBits(4),Be.readBool()&&Be.readBits(24)),Be.readBool()&&(Be.readUEG(),Be.readUEG()),Be.readBool()){var $e=Be.readBits(32),ot=Be.readBits(32);Ni=Be.readBool(),zi=ot,it=$e*2,Ci=zi/it}}var Pt=1;(Zn!==1||pi!==1)&&(Pt=Zn/pi);var xt=0,rr=0;if(Pr===0)xt=1,rr=2-Hr;else{var Fr=Pr===3?1:2,Vr=Pr===1?2:1;xt=Fr,rr=Vr*(2-Hr)}var fn=(Mt+1)*16,gr=(2-Hr)*((Zt+1)*16);fn-=(Ir+Lr)*xt,gr-=(dn+gn)*rr;var Gn=Math.ceil(fn*Pt);return Be.destroy(),Be=null,{profile_string:Ct,level_string:Yt,bit_depth:Gt,ref_frames:er,chroma_format:qr,chroma_format_string:$t.getChromaFormatString(qr),frame_rate:{fixed:Ni,fps:Ci,fps_den:it,fps_num:zi},sar_ratio:{width:Zn,height:pi},codec_size:{width:fn,height:gr},present_size:{width:Gn,height:gr}}}},{key:"_skipScalingList",value:function(ke,Me){for(var Be=8,at=8,At=0,Ct=0;Ct<Me;Ct++)at!==0&&(At=ke.readSEG(),at=(Be+At+256)%256),Be=at===0?Be:at}},{key:"getProfileString",value:function(ke){switch(ke){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(ke){return(ke/10).toFixed(1)}},{key:"getChromaFormatString",value:function(ke){switch(ke){case 420:return"4:2:0";case 422:return"4:2:2";case 444:return"4:4:4";default:return"Unknown"}}}]),$t}(),be=fe,Ce={OK:"OK",FORMAT_ERROR:"FormatError",FORMAT_UNSUPPORTED:"FormatUnsupported",CODEC_UNSUPPORTED:"CodecUnsupported"},Te=Ce;function he($t){return $t>>>8&255|($t&255)<<8}function ye($t){return($t&4278190080)>>>24|($t&16711680)>>>8|($t&65280)<<8|($t&255)<<24}function Ie($t,Ot){return $t[Ot]<<24|$t[Ot+1]<<16|$t[Ot+2]<<8|$t[Ot+3]}var tt=function(){function $t(Ot,ke){Object(y.a)(this,$t),this.TAG="FLVDemuxer",this._config=ke,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=Ot.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=Ot.hasAudioTrack,this._hasVideo=Ot.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 Me=new ArrayBuffer(2);return new DataView(Me).setInt16(0,256,!0),new Int16Array(Me)[0]===256}()}return Object(p.a)($t,[{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(ke){return ke.onDataArrival=this.parseChunks.bind(this),this}},{key:"onTrackMetadata",get:function(){return this._onTrackMetadata},set:function(ke){this._onTrackMetadata=ke}},{key:"onMediaInfo",get:function(){return this._onMediaInfo},set:function(ke){this._onMediaInfo=ke}},{key:"onMetaDataArrived",get:function(){return this._onMetaDataArrived},set:function(ke){this._onMetaDataArrived=ke}},{key:"onScriptDataArrived",get:function(){return this._onScriptDataArrived},set:function(ke){this._onScriptDataArrived=ke}},{key:"onError",get:function(){return this._onError},set:function(ke){this._onError=ke}},{key:"onDataAvailable",get:function(){return this._onDataAvailable},set:function(ke){this._onDataAvailable=ke}},{key:"timestampBase",get:function(){return this._timestampBase},set:function(ke){this._timestampBase=ke}},{key:"overridedDuration",get:function(){return this._duration},set:function(ke){this._durationOverrided=!0,this._duration=ke,this._mediaInfo.duration=ke}},{key:"overridedHasAudio",set:function(ke){this._hasAudioFlagOverrided=!0,this._hasAudio=ke,this._mediaInfo.hasAudio=ke}},{key:"overridedHasVideo",set:function(ke){this._hasVideoFlagOverrided=!0,this._hasVideo=ke,this._mediaInfo.hasVideo=ke}},{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(ke,Me){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new u("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var Be=0,at=this._littleEndian;if(Me===0)if(ke.byteLength>13){var At=$t.probe(ke);Be=At.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,Me+Be!==this._dataOffset&&l.w(this.TAG,"First time parsing but chunk byteStart invalid!");var Ct=new DataView(ke,Be),Yt=Ct.getUint32(0,!at);Yt!==0&&l.w(this.TAG,"PrevTagSize0 !== 0 !!!"),Be+=4}for(;Be<ke.byteLength;){this._dispatch=!0;var Pr=new DataView(ke,Be);if(Be+11+4>ke.byteLength)break;var qr=Pr.getUint8(0),An=Pr.getUint32(0,!at)&16777215;if(Be+11+An+4>ke.byteLength)break;if(qr!==8&&qr!==9&&qr!==18){l.w(this.TAG,"Unsupported tag type ".concat(qr,", skipped")),Be+=11+An+4;continue}var Gt=Pr.getUint8(4),vt=Pr.getUint8(5),bt=Pr.getUint8(6),fr=Pr.getUint8(7),Jt=bt|vt<<8|Gt<<16|fr<<24,Ut=Pr.getUint32(7,!at)&16777215;Ut!==0&&l.w(this.TAG,"Meet tag which has StreamID != 0!");var er=Be+11;switch(qr){case 8:this._parseAudioData(ke,er,An,Jt);break;case 9:this._parseVideoData(ke,er,An,Jt,Me+Be);break;case 18:this._parseScriptData(ke,er,An);break}var Mt=Pr.getUint32(11+An,!at);Mt!==11+An&&l.w(this.TAG,"Invalid PrevTagSize ".concat(Mt)),Be+=11+An+4}return this._isInitialMetadataDispatched()&&(this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack)),Be}},{key:"_parseScriptData",value:function(ke,Me,Be){var at=Z.parseScriptData(ke,Me,Be);if(at.hasOwnProperty("onMetaData")){if(at.onMetaData==null||typeof at.onMetaData!="object"){l.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&l.w(this.TAG,"Found another onMetaData tag!"),this._metadata=at;var At=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},At)),typeof At.hasAudio=="boolean"&&(this._hasAudioFlagOverrided===!1&&(this._hasAudio=At.hasAudio,this._mediaInfo.hasAudio=this._hasAudio)),typeof At.hasVideo=="boolean"&&(this._hasVideoFlagOverrided===!1&&(this._hasVideo=At.hasVideo,this._mediaInfo.hasVideo=this._hasVideo)),typeof At.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=At.audiodatarate),typeof At.videodatarate=="number"&&(this._mediaInfo.videoDataRate=At.videodatarate),typeof At.width=="number"&&(this._mediaInfo.width=At.width),typeof At.height=="number"&&(this._mediaInfo.height=At.height),typeof At.duration=="number"){if(!this._durationOverrided){var Ct=Math.floor(At.duration*this._timescale);this._duration=Ct,this._mediaInfo.duration=Ct}}else this._mediaInfo.duration=0;if(typeof At.framerate=="number"){var Yt=Math.floor(At.framerate*1e3);if(Yt>0){var Pr=Yt/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=Pr,this._referenceFrameRate.fps_num=Yt,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=Pr}}if(typeof At.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var qr=At.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(qr),At.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=At,l.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(at).length>0&&(this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},at)))}},{key:"_parseKeyframesIndex",value:function(ke){for(var Me=[],Be=[],at=1;at<ke.times.length;at++){var At=this._timestampBase+Math.floor(ke.times[at]*1e3);Me.push(At),Be.push(ke.filepositions[at])}return{times:Me,filepositions:Be}}},{key:"_parseAudioData",value:function(ke,Me,Be,at){if(Be<=1){l.w(this.TAG,"Flv: Invalid audio packet, missing SoundData payload!");return}if(this._hasAudioFlagOverrided===!0&&this._hasAudio===!1)return;var At=this._littleEndian,Ct=new DataView(ke,Me,Be),Yt=Ct.getUint8(0),Pr=Yt>>>4;if(Pr!==2&&Pr!==10){this._onError(Te.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+Pr);return}var qr=0,An=(Yt&12)>>>2;if(An>=0&&An<=4)qr=this._flvSoundRateTable[An];else{this._onError(Te.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+An);return}var Gt=(Yt&2)>>>1,vt=Yt&1,bt=this._audioMetadata,fr=this._audioTrack;if(bt||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),bt=this._audioMetadata={},bt.type="audio",bt.id=fr.id,bt.timescale=this._timescale,bt.duration=this._duration,bt.audioSampleRate=qr,bt.channelCount=vt===0?1:2),Pr===10){var Jt=this._parseAACAudioData(ke,Me+1,Be-1);if(Jt==null)return;if(Jt.packetType===0){bt.config&&l.w(this.TAG,"Found another AudioSpecificConfig!");var Ut=Jt.data;bt.audioSampleRate=Ut.samplingRate,bt.channelCount=Ut.channelCount,bt.codec=Ut.codec,bt.originalCodec=Ut.originalCodec,bt.config=Ut.config,bt.refSampleDuration=1024/bt.audioSampleRate*bt.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",bt);var er=this._mediaInfo;er.audioCodec=bt.originalCodec,er.audioSampleRate=bt.audioSampleRate,er.audioChannelCount=bt.channelCount,er.hasVideo?er.videoCodec!=null&&(er.mimeType='video/x-flv; codecs="'+er.videoCodec+","+er.audioCodec+'"'):er.mimeType='video/x-flv; codecs="'+er.audioCodec+'"',er.isComplete()&&this._onMediaInfo(er)}else if(Jt.packetType===1){var Mt=this._timestampBase+at,Zt={unit:Jt.data,length:Jt.data.byteLength,dts:Mt,pts:Mt};fr.samples.push(Zt),fr.length+=Jt.data.length}else l.e(this.TAG,"Flv: Unsupported AAC data type ".concat(Jt.packetType))}else if(Pr===2){if(!bt.codec){var Hr=this._parseMP3AudioData(ke,Me+1,Be-1,!0);if(Hr==null)return;bt.audioSampleRate=Hr.samplingRate,bt.channelCount=Hr.channelCount,bt.codec=Hr.codec,bt.originalCodec=Hr.originalCodec,bt.refSampleDuration=1152/bt.audioSampleRate*bt.timescale,l.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",bt);var Ir=this._mediaInfo;Ir.audioCodec=bt.codec,Ir.audioSampleRate=bt.audioSampleRate,Ir.audioChannelCount=bt.channelCount,Ir.audioDataRate=Hr.bitRate,Ir.hasVideo?Ir.videoCodec!=null&&(Ir.mimeType='video/x-flv; codecs="'+Ir.videoCodec+","+Ir.audioCodec+'"'):Ir.mimeType='video/x-flv; codecs="'+Ir.audioCodec+'"',Ir.isComplete()&&this._onMediaInfo(Ir)}var Lr=this._parseMP3AudioData(ke,Me+1,Be-1,!1);if(Lr==null)return;var dn=this._timestampBase+at,gn={unit:Lr,length:Lr.byteLength,dts:dn,pts:dn};fr.samples.push(gn),fr.length+=Lr.length}}},{key:"_parseAACAudioData",value:function(ke,Me,Be){if(Be<=1){l.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var at={},At=new Uint8Array(ke,Me,Be);return at.packetType=At[0],At[0]===0?at.data=this._parseAACAudioSpecificConfig(ke,Me+1,Be-1):at.data=At.subarray(1),at}},{key:"_parseAACAudioSpecificConfig",value:function(ke,Me,Be){var at=new Uint8Array(ke,Me,Be),At=null,Ct=0,Yt=0,Pr=null,qr=0,An=null;if(Ct=Yt=at[0]>>>3,qr=(at[0]&7)<<1|at[1]>>>7,qr<0||qr>=this._mpegSamplingRates.length){this._onError(Te.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var Gt=this._mpegSamplingRates[qr],vt=(at[1]&120)>>>3;if(vt<0||vt>=8){this._onError(Te.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}Ct===5&&(An=(at[1]&7)<<1|at[2]>>>7,Pr=(at[2]&124)>>>2);var bt=self.navigator.userAgent.toLowerCase();return bt.indexOf("firefox")!==-1?qr>=6?(Ct=5,At=new Array(4),An=qr-3):(Ct=2,At=new Array(2),An=qr):bt.indexOf("android")!==-1?(Ct=2,At=new Array(2),An=qr):(Ct=5,An=qr,At=new Array(4),qr>=6?An=qr-3:vt===1&&(Ct=2,At=new Array(2),An=qr)),At[0]=Ct<<3,At[0]|=(qr&15)>>>1,At[1]=(qr&15)<<7,At[1]|=(vt&15)<<3,Ct===5&&(At[1]|=(An&15)>>>1,At[2]=(An&1)<<7,At[2]|=2<<2,At[3]=0),{config:At,samplingRate:Gt,channelCount:vt,codec:"mp4a.40."+Ct,originalCodec:"mp4a.40."+Yt}}},{key:"_parseMP3AudioData",value:function(ke,Me,Be,at){if(Be<4){l.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}var At=this._littleEndian,Ct=new Uint8Array(ke,Me,Be),Yt=null;if(at){if(Ct[0]!==255)return;var Pr=Ct[1]>>>3&3,qr=(Ct[1]&6)>>1,An=(Ct[2]&240)>>>4,Gt=(Ct[2]&12)>>>2,vt=Ct[3]>>>6&3,bt=vt!==3?2:1,fr=0,Jt=0,Ut=34,er="mp3";switch(Pr){case 0:fr=this._mpegAudioV25SampleRateTable[Gt];break;case 2:fr=this._mpegAudioV20SampleRateTable[Gt];break;case 3:fr=this._mpegAudioV10SampleRateTable[Gt];break}switch(qr){case 1:Ut=34,An<this._mpegAudioL3BitRateTable.length&&(Jt=this._mpegAudioL3BitRateTable[An]);break;case 2:Ut=33,An<this._mpegAudioL2BitRateTable.length&&(Jt=this._mpegAudioL2BitRateTable[An]);break;case 3:Ut=32,An<this._mpegAudioL1BitRateTable.length&&(Jt=this._mpegAudioL1BitRateTable[An]);break}Yt={bitRate:Jt,samplingRate:fr,channelCount:bt,codec:er,originalCodec:er}}else Yt=Ct;return Yt}},{key:"_parseVideoData",value:function(ke,Me,Be,at,At){if(Be<=1){l.w(this.TAG,"Flv: Invalid video packet, missing VideoData payload!");return}if(this._hasVideoFlagOverrided===!0&&this._hasVideo===!1)return;var Ct=new Uint8Array(ke,Me,Be)[0],Yt=(Ct&240)>>>4,Pr=Ct&15;if(Pr!==7){this._onError(Te.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: ".concat(Pr));return}this._parseAVCVideoPacket(ke,Me+1,Be-1,at,At,Yt)}},{key:"_parseAVCVideoPacket",value:function(ke,Me,Be,at,At,Ct){if(Be<4){l.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var Yt=this._littleEndian,Pr=new DataView(ke,Me,Be),qr=Pr.getUint8(0),An=Pr.getUint32(0,!Yt)&16777215,Gt=An<<8>>8;if(qr===0)this._parseAVCDecoderConfigurationRecord(ke,Me+4,Be-4);else if(qr===1)this._parseAVCVideoData(ke,Me+4,Be-4,at,At,Ct,Gt);else if(!(qr===2)){this._onError(Te.FORMAT_ERROR,"Flv: Invalid video packet type ".concat(qr));return}}},{key:"_parseAVCDecoderConfigurationRecord",value:function(ke,Me,Be){if(Be<7){l.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var at=this._videoMetadata,At=this._videoTrack,Ct=this._littleEndian,Yt=new DataView(ke,Me,Be);at?typeof at.avcc!="undefined"&&l.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),at=this._videoMetadata={},at.type="video",at.id=At.id,at.timescale=this._timescale,at.duration=this._duration);var Pr=Yt.getUint8(0),qr=Yt.getUint8(1),An=Yt.getUint8(2),Gt=Yt.getUint8(3);if(Pr!==1||qr===0){this._onError(Te.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(Yt.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(Te.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: ".concat(this._naluLengthSize-1));return}var vt=Yt.getUint8(5)&31;if(vt===0){this._onError(Te.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else vt>1&&l.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ".concat(vt));for(var bt=6,fr=0;fr<vt;fr++){var Jt=Yt.getUint16(bt,!Ct);if(bt+=2,Jt===0)continue;var Ut=new Uint8Array(ke,Me+bt,Jt);bt+=Jt;var er=be.parseSPS(Ut);if(fr!==0)continue;at.codecWidth=er.codec_size.width,at.codecHeight=er.codec_size.height,at.presentWidth=er.present_size.width,at.presentHeight=er.present_size.height,at.profile=er.profile_string,at.level=er.level_string,at.bitDepth=er.bit_depth,at.chromaFormat=er.chroma_format,at.sarRatio=er.sar_ratio,at.frameRate=er.frame_rate,(er.frame_rate.fixed===!1||er.frame_rate.fps_num===0||er.frame_rate.fps_den===0)&&(at.frameRate=this._referenceFrameRate);var Mt=at.frameRate.fps_den,Zt=at.frameRate.fps_num;at.refSampleDuration=at.timescale*(Mt/Zt);for(var Hr=Ut.subarray(1,4),Ir="avc1.",Lr=0;Lr<3;Lr++){var dn=Hr[Lr].toString(16);dn.length<2&&(dn="0"+dn),Ir+=dn}at.codec=Ir;var gn=this._mediaInfo;gn.width=at.codecWidth,gn.height=at.codecHeight,gn.fps=at.frameRate.fps,gn.profile=at.profile,gn.level=at.level,gn.refFrames=er.ref_frames,gn.chromaFormat=er.chroma_format_string,gn.sarNum=at.sarRatio.width,gn.sarDen=at.sarRatio.height,gn.videoCodec=Ir,gn.hasAudio?gn.audioCodec!=null&&(gn.mimeType='video/x-flv; codecs="'+gn.videoCodec+","+gn.audioCodec+'"'):gn.mimeType='video/x-flv; codecs="'+gn.videoCodec+'"',gn.isComplete()&&this._onMediaInfo(gn)}var ri=Yt.getUint8(bt);if(ri===0){this._onError(Te.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No PPS");return}else ri>1&&l.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ".concat(ri));bt++;for(var Zn=0;Zn<ri;Zn++){var pi=Yt.getUint16(bt,!Ct);if(bt+=2,pi===0)continue;bt+=pi}at.avcc=new Uint8Array(Be),at.avcc.set(new Uint8Array(ke,Me,Be),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",at)}},{key:"_parseAVCVideoData",value:function(ke,Me,Be,at,At,Ct,Yt){for(var Pr=this._littleEndian,qr=new DataView(ke,Me,Be),An=[],Gt=0,vt=0,bt=this._naluLengthSize,fr=this._timestampBase+at,Jt=Ct===1;vt<Be;){if(vt+4>=Be){l.w(this.TAG,"Malformed Nalu near timestamp ".concat(fr,", offset = ").concat(vt,", dataSize = ").concat(Be));break}var Ut=qr.getUint32(vt,!Pr);if(bt===3&&(Ut>>>=8),Ut>Be-bt){l.w(this.TAG,"Malformed Nalus near timestamp ".concat(fr,", NaluSize > DataSize!"));return}var er=qr.getUint8(vt+bt)&31;er===5&&(Jt=!0);var Mt=new Uint8Array(ke,Me+vt,bt+Ut),Zt={type:er,data:Mt};An.push(Zt),Gt+=Mt.byteLength,vt+=bt+Ut}if(An.length){var Hr=this._videoTrack,Ir={units:An,length:Gt,isKeyframe:Jt,dts:fr,cts:Yt,pts:fr+Yt};Jt&&(Ir.fileposition=At),Hr.samples.push(Ir),Hr.length+=Gt}}}],[{key:"probe",value:function(ke){var Me=new Uint8Array(ke),Be={match:!1};if(Me[0]!==70||Me[1]!==76||Me[2]!==86||Me[3]!==1)return Be;var at=(Me[4]&4)>>>2!==0,At=(Me[4]&1)!==0,Ct=Ie(Me,5);return Ct<9?Be:{match:!0,consumed:Ct,dataOffset:Ct,hasAudioTrack:at,hasVideoTrack:At}}}]),$t}(),pt=tt,st=function(){function $t(){Object(y.a)(this,$t)}return Object(p.a)($t,null,[{key:"init",value:function(){$t.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 ke in $t.types)$t.types.hasOwnProperty(ke)&&($t.types[ke]=[ke.charCodeAt(0),ke.charCodeAt(1),ke.charCodeAt(2),ke.charCodeAt(3)]);var Me=$t.constants={};Me.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),Me.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),Me.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),Me.STSC=Me.STCO=Me.STTS,Me.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Me.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]),Me.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]),Me.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),Me.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Me.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}},{key:"box",value:function(ke){for(var Me=8,Be=null,at=Array.prototype.slice.call(arguments,1),At=at.length,Ct=0;Ct<At;Ct++)Me+=at[Ct].byteLength;Be=new Uint8Array(Me),Be[0]=Me>>>24&255,Be[1]=Me>>>16&255,Be[2]=Me>>>8&255,Be[3]=Me&255,Be.set(ke,4);for(var Yt=8,Pr=0;Pr<At;Pr++)Be.set(at[Pr],Yt),Yt+=at[Pr].byteLength;return Be}},{key:"generateInitSegment",value:function(ke){var Me=$t.box($t.types.ftyp,$t.constants.FTYP),Be=$t.moov(ke),at=new Uint8Array(Me.byteLength+Be.byteLength);return at.set(Me,0),at.set(Be,Me.byteLength),at}},{key:"moov",value:function(ke){var Me=$t.mvhd(ke.timescale,ke.duration),Be=$t.trak(ke),at=$t.mvex(ke);return $t.box($t.types.moov,Me,Be,at)}},{key:"mvhd",value:function(ke,Me){return $t.box($t.types.mvhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,ke>>>24&255,ke>>>16&255,ke>>>8&255,ke&255,Me>>>24&255,Me>>>16&255,Me>>>8&255,Me&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(ke){return $t.box($t.types.trak,$t.tkhd(ke),$t.mdia(ke))}},{key:"tkhd",value:function(ke){var Me=ke.id,Be=ke.duration,at=ke.presentWidth,At=ke.presentHeight;return $t.box($t.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,Me>>>24&255,Me>>>16&255,Me>>>8&255,Me&255,0,0,0,0,Be>>>24&255,Be>>>16&255,Be>>>8&255,Be&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,at>>>8&255,at&255,0,0,At>>>8&255,At&255,0,0]))}},{key:"mdia",value:function(ke){return $t.box($t.types.mdia,$t.mdhd(ke),$t.hdlr(ke),$t.minf(ke))}},{key:"mdhd",value:function(ke){var Me=ke.timescale,Be=ke.duration;return $t.box($t.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,Me>>>24&255,Me>>>16&255,Me>>>8&255,Me&255,Be>>>24&255,Be>>>16&255,Be>>>8&255,Be&255,85,196,0,0]))}},{key:"hdlr",value:function(ke){var Me=null;return ke.type==="audio"?Me=$t.constants.HDLR_AUDIO:Me=$t.constants.HDLR_VIDEO,$t.box($t.types.hdlr,Me)}},{key:"minf",value:function(ke){var Me=null;return ke.type==="audio"?Me=$t.box($t.types.smhd,$t.constants.SMHD):Me=$t.box($t.types.vmhd,$t.constants.VMHD),$t.box($t.types.minf,Me,$t.dinf(),$t.stbl(ke))}},{key:"dinf",value:function(){var ke=$t.box($t.types.dinf,$t.box($t.types.dref,$t.constants.DREF));return ke}},{key:"stbl",value:function(ke){var Me=$t.box($t.types.stbl,$t.stsd(ke),$t.box($t.types.stts,$t.constants.STTS),$t.box($t.types.stsc,$t.constants.STSC),$t.box($t.types.stsz,$t.constants.STSZ),$t.box($t.types.stco,$t.constants.STCO));return Me}},{key:"stsd",value:function(ke){return ke.type==="audio"?ke.codec==="mp3"?$t.box($t.types.stsd,$t.constants.STSD_PREFIX,$t.mp3(ke)):$t.box($t.types.stsd,$t.constants.STSD_PREFIX,$t.mp4a(ke)):$t.box($t.types.stsd,$t.constants.STSD_PREFIX,$t.avc1(ke))}},{key:"mp3",value:function(ke){var Me=ke.channelCount,Be=ke.audioSampleRate,at=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Me,0,16,0,0,0,0,Be>>>8&255,Be&255,0,0]);return $t.box($t.types[".mp3"],at)}},{key:"mp4a",value:function(ke){var Me=ke.channelCount,Be=ke.audioSampleRate,at=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,Me,0,16,0,0,0,0,Be>>>8&255,Be&255,0,0]);return $t.box($t.types.mp4a,at,$t.esds(ke))}},{key:"esds",value:function(ke){var Me=ke.config||[],Be=Me.length,at=new Uint8Array([0,0,0,0,3,23+Be,0,1,0,4,15+Be,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([Be]).concat(Me).concat([6,1,2]));return $t.box($t.types.esds,at)}},{key:"avc1",value:function(ke){var Me=ke.avcc,Be=ke.codecWidth,at=ke.codecHeight,At=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,Be>>>8&255,Be&255,at>>>8&255,at&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return $t.box($t.types.avc1,At,$t.box($t.types.avcC,Me))}},{key:"mvex",value:function(ke){return $t.box($t.types.mvex,$t.trex(ke))}},{key:"trex",value:function(ke){var Me=ke.id,Be=new Uint8Array([0,0,0,0,Me>>>24&255,Me>>>16&255,Me>>>8&255,Me&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return $t.box($t.types.trex,Be)}},{key:"moof",value:function(ke,Me){return $t.box($t.types.moof,$t.mfhd(ke.sequenceNumber),$t.traf(ke,Me))}},{key:"mfhd",value:function(ke){var Me=new Uint8Array([0,0,0,0,ke>>>24&255,ke>>>16&255,ke>>>8&255,ke&255]);return $t.box($t.types.mfhd,Me)}},{key:"traf",value:function(ke,Me){var Be=ke.id,at=$t.box($t.types.tfhd,new Uint8Array([0,0,0,0,Be>>>24&255,Be>>>16&255,Be>>>8&255,Be&255])),At=$t.box($t.types.tfdt,new Uint8Array([0,0,0,0,Me>>>24&255,Me>>>16&255,Me>>>8&255,Me&255])),Ct=$t.sdtp(ke),Yt=$t.trun(ke,Ct.byteLength+16+16+8+16+8+8);return $t.box($t.types.traf,at,At,Yt,Ct)}},{key:"sdtp",value:function(ke){for(var Me=ke.samples||[],Be=Me.length,at=new Uint8Array(4+Be),At=0;At<Be;At++){var Ct=Me[At].flags;at[At+4]=Ct.isLeading<<6|Ct.dependsOn<<4|Ct.isDependedOn<<2|Ct.hasRedundancy}return $t.box($t.types.sdtp,at)}},{key:"trun",value:function(ke,Me){var Be=ke.samples||[],at=Be.length,At=12+16*at,Ct=new Uint8Array(At);Me+=8+At,Ct.set([0,0,15,1,at>>>24&255,at>>>16&255,at>>>8&255,at&255,Me>>>24&255,Me>>>16&255,Me>>>8&255,Me&255],0);for(var Yt=0;Yt<at;Yt++){var Pr=Be[Yt].duration,qr=Be[Yt].size,An=Be[Yt].flags,Gt=Be[Yt].cts;Ct.set([Pr>>>24&255,Pr>>>16&255,Pr>>>8&255,Pr&255,qr>>>24&255,qr>>>16&255,qr>>>8&255,qr&255,An.isLeading<<2|An.dependsOn,An.isDependedOn<<6|An.hasRedundancy<<4|An.isNonSync,0,0,Gt>>>24&255,Gt>>>16&255,Gt>>>8&255,Gt&255],12+16*Yt)}return $t.box($t.types.trun,Ct)}},{key:"mdat",value:function(ke){return $t.box($t.types.mdat,ke)}}]),$t}();st.init();var Fe=st,ft=function(){function $t(){Object(y.a)(this,$t)}return Object(p.a)($t,null,[{key:"getSilentFrame",value:function(ke,Me){if(ke==="mp4a.40.2"){if(Me===1)return new Uint8Array([0,200,0,128,35,128]);if(Me===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(Me===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(Me===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(Me===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(Me===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(Me===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(Me===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(Me===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}}]),$t}(),et=ft,wt=Object(p.a)(function $t(Ot,ke,Me,Be,at){Object(y.a)(this,$t),this.dts=Ot,this.pts=ke,this.duration=Me,this.originalDts=Be,this.isSyncPoint=at,this.fileposition=null}),Ht=function(){function $t(){Object(y.a)(this,$t),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(p.a)($t,[{key:"appendSyncPoint",value:function(ke){ke.isSyncPoint=!0,this.syncPoints.push(ke)}}]),$t}(),Dt=function(){function $t(){Object(y.a)(this,$t),this._list=[]}return Object(p.a)($t,[{key:"clear",value:function(){this._list=[]}},{key:"appendArray",value:function(ke){var Me=this._list;if(ke.length===0)return;Me.length>0&&ke[0].originalDts<Me[Me.length-1].originalDts&&this.clear(),Array.prototype.push.apply(Me,ke)}},{key:"getLastSyncPointBeforeDts",value:function(ke){if(this._list.length==0)return null;var Me=this._list,Be=0,at=Me.length-1,At=0,Ct=0,Yt=at;for(ke<Me[0].dts&&(Be=0,Ct=Yt+1);Ct<=Yt;)if(At=Ct+Math.floor((Yt-Ct)/2),At===at||ke>=Me[At].dts&&ke<Me[At+1].dts){Be=At;break}else Me[At].dts<ke?Ct=At+1:Yt=At-1;return this._list[Be]}}]),$t}(),Tt=function(){function $t(Ot){Object(y.a)(this,$t),this._type=Ot,this._list=[],this._lastAppendLocation=-1}return Object(p.a)($t,[{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(ke){var Me=this._list;if(Me.length===0)return-2;var Be=Me.length-1,at=0,At=0,Ct=Be,Yt=0;if(ke<Me[0].originalBeginDts)return Yt=-1,Yt;for(;At<=Ct;)if(at=At+Math.floor((Ct-At)/2),at===Be||ke>Me[at].lastSample.originalDts&&ke<Me[at+1].originalBeginDts){Yt=at;break}else Me[at].originalBeginDts<ke?At=at+1:Ct=at-1;return Yt}},{key:"_searchNearestSegmentAfter",value:function(ke){return this._searchNearestSegmentBefore(ke)+1}},{key:"append",value:function(ke){var Me=this._list,Be=ke,at=this._lastAppendLocation,At=0;at!==-1&&at<Me.length&&Be.originalBeginDts>=Me[at].lastSample.originalDts&&(at===Me.length-1||at<Me.length-1&&Be.originalBeginDts<Me[at+1].originalBeginDts)?At=at+1:Me.length>0&&(At=this._searchNearestSegmentBefore(Be.originalBeginDts)+1),this._lastAppendLocation=At,this._list.splice(At,0,Be)}},{key:"getLastSegmentBefore",value:function(ke){var Me=this._searchNearestSegmentBefore(ke);return Me>=0?this._list[Me]:null}},{key:"getLastSampleBefore",value:function(ke){var Me=this.getLastSegmentBefore(ke);return Me!=null?Me.lastSample:null}},{key:"getLastSyncPointBefore",value:function(ke){for(var Me=this._searchNearestSegmentBefore(ke),Be=this._list[Me].syncPoints;Be.length===0&&Me>0;)Me--,Be=this._list[Me].syncPoints;return Be.length>0?Be[Be.length-1]:null}}]),$t}(),Bt=function(){function $t(Ot){Object(y.a)(this,$t),this.TAG="MP4Remuxer",this._config=Ot,this._isLive=Ot.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=Infinity,this._videoDtsBase=Infinity,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new Tt("audio"),this._videoSegmentInfoList=new Tt("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(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(p.a)($t,[{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(ke){return ke.onDataAvailable=this.remux.bind(this),ke.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}},{key:"onInitSegment",get:function(){return this._onInitSegment},set:function(ke){this._onInitSegment=ke}},{key:"onMediaSegment",get:function(){return this._onMediaSegment},set:function(ke){this._onMediaSegment=ke}},{key:"insertDiscontinuity",value:function(){this._audioNextDts=this._videoNextDts=void 0}},{key:"seek",value:function(ke){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}},{key:"remux",value:function(ke,Me){if(!this._onMediaSegment)throw new u("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(ke,Me),this._remuxVideo(Me),this._remuxAudio(ke)}},{key:"_onTrackMetadataReceived",value:function(ke,Me){var Be=null,at="mp4",At=Me.codec;if(ke==="audio")this._audioMeta=Me,Me.codec==="mp3"&&this._mp3UseMpegAudio?(at="mpeg",At="",Be=new Uint8Array):Be=Fe.generateInitSegment(Me);else if(ke==="video")this._videoMeta=Me,Be=Fe.generateInitSegment(Me);else return;if(!this._onInitSegment)throw new u("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(ke,{type:ke,data:Be.buffer,codec:At,container:"".concat(ke,"/").concat(at),mediaDuration:Me.duration})}},{key:"_calculateDtsBase",value:function(ke,Me){if(this._dtsBaseInited)return;ke.samples&&ke.samples.length&&(this._audioDtsBase=ke.samples[0].dts),Me.samples&&Me.samples.length&&(this._videoDtsBase=Me.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0}},{key:"flushStashedSamples",value:function(){var ke=this._videoStashedLastSample,Me=this._audioStashedLastSample,Be={type:"video",id:1,sequenceNumber:0,samples:[],length:0};ke!=null&&(Be.samples.push(ke),Be.length=ke.length);var at={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};Me!=null&&(at.samples.push(Me),at.length=Me.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(Be,!0),this._remuxAudio(at,!0)}},{key:"_remuxAudio",value:function(ke,Me){if(this._audioMeta==null)return;var Be=ke,at=Be.samples,At=void 0,Ct=-1,Yt=-1,Pr=-1,qr=this._audioMeta.refSampleDuration,An=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,Gt=this._dtsBaseInited&&this._audioNextDts===void 0,vt=!1;if(!at||at.length===0)return;if(at.length===1&&!Me)return;var bt=0,fr=null,Jt=0;An?(bt=0,Jt=Be.length):(bt=8,Jt=8+Be.length);var Ut=null;if(at.length>1&&(Ut=at.pop(),Jt-=Ut.length),this._audioStashedLastSample!=null){var er=this._audioStashedLastSample;this._audioStashedLastSample=null,at.unshift(er),Jt+=er.length}Ut!=null&&(this._audioStashedLastSample=Ut);var Mt=at[0].dts-this._dtsBase;if(this._audioNextDts)At=Mt-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())At=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&(this._audioMeta.originalCodec!=="mp3"&&(vt=!0));else{var Zt=this._audioSegmentInfoList.getLastSampleBefore(Mt);if(Zt!=null){var Hr=Mt-(Zt.originalDts+Zt.duration);Hr<=3&&(Hr=0);var Ir=Zt.dts+Zt.duration+Hr;At=Mt-Ir}else At=0}if(vt){var Lr=Mt-At,dn=this._videoSegmentInfoList.getLastSegmentBefore(Mt);if(dn!=null&&dn.beginDts<Lr){var gn=et.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);if(gn){var ri=dn.beginDts,Zn=Lr-dn.beginDts;l.v(this.TAG,"InsertPrefixSilentAudio: dts: ".concat(ri,", duration: ").concat(Zn)),at.unshift({unit:gn,dts:ri,pts:ri}),Jt+=gn.byteLength}}else vt=!1}for(var pi=[],Ci=0;Ci<at.length;Ci++){var Ni=at[Ci],zi=Ni.unit,it=Ni.dts-this._dtsBase,Ne=it-At;Ct===-1&&(Ct=Ne);var He=0;if(Ci!==at.length-1){var Ge=at[Ci+1].dts-this._dtsBase-At;He=Ge-Ne}else if(Ut!=null){var nt=Ut.dts-this._dtsBase-At;He=nt-Ne}else pi.length>=1?He=pi[pi.length-1].duration:He=Math.floor(qr);var $e=!1,ot=null;if(He>qr*1.5&&this._audioMeta.codec!=="mp3"&&this._fillAudioTimestampGap&&!T.safari){$e=!0;var Pt=Math.abs(He-qr),xt=Math.ceil(Pt/qr),rr=Ne+qr;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(Ne+He," ms, expected: ").concat(Ne+Math.round(qr)," ms, ")+"delta: ".concat(Math.round(Pt)," ms, generate: ").concat(xt," frames"));var Fr=et.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);Fr==null&&(l.w(this.TAG,"Unable to generate silent frame for "+"".concat(this._audioMeta.originalCodec," with ").concat(this._audioMeta.channelCount," channels, repeat last frame")),Fr=zi),ot=[];for(var Vr=0;Vr<xt;Vr++){var fn=Math.round(rr);if(ot.length>0){var gr=ot[ot.length-1];gr.duration=fn-gr.dts}var Gn={dts:fn,pts:fn,cts:0,unit:Fr,size:Fr.byteLength,duration:0,originalDts:it,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};ot.push(Gn),Jt+=Gn.size,rr+=qr}var Mr=ot[ot.length-1];Mr.duration=Ne+He-Mr.dts,He=Math.round(qr)}pi.push({dts:Ne,pts:Ne,cts:0,unit:Ni.unit,size:Ni.unit.byteLength,duration:He,originalDts:it,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),$e&&pi.push.apply(pi,ot)}An?fr=new Uint8Array(Jt):(fr=new Uint8Array(Jt),fr[0]=Jt>>>24&255,fr[1]=Jt>>>16&255,fr[2]=Jt>>>8&255,fr[3]=Jt&255,fr.set(Fe.types.mdat,4));for(var Rn=0;Rn<pi.length;Rn++){var bn=pi[Rn].unit;fr.set(bn,bt),bt+=bn.byteLength}var rn=pi[pi.length-1];Yt=rn.dts+rn.duration,this._audioNextDts=Yt;var ei=new Ht;ei.beginDts=Ct,ei.endDts=Yt,ei.beginPts=Ct,ei.endPts=Yt,ei.originalBeginDts=pi[0].originalDts,ei.originalEndDts=rn.originalDts+rn.duration,ei.firstSample=new wt(pi[0].dts,pi[0].pts,pi[0].duration,pi[0].originalDts,!1),ei.lastSample=new wt(rn.dts,rn.pts,rn.duration,rn.originalDts,!1),this._isLive||this._audioSegmentInfoList.append(ei),Be.samples=pi,Be.sequenceNumber++;var fi=null;An?fi=new Uint8Array:fi=Fe.moof(Be,Ct),Be.samples=[],Be.length=0;var Mi={type:"audio",data:this._mergeBoxes(fi,fr).buffer,sampleCount:pi.length,info:ei};An&&Gt&&(Mi.timestampOffset=Ct),this._onMediaSegment("audio",Mi)}},{key:"_remuxVideo",value:function(ke,Me){if(this._videoMeta==null)return;var Be=ke,at=Be.samples,At=void 0,Ct=-1,Yt=-1,Pr=-1,qr=-1;if(!at||at.length===0)return;if(at.length===1&&!Me)return;var An=8,Gt=null,vt=8+ke.length,bt=null;if(at.length>1&&(bt=at.pop(),vt-=bt.length),this._videoStashedLastSample!=null){var fr=this._videoStashedLastSample;this._videoStashedLastSample=null,at.unshift(fr),vt+=fr.length}bt!=null&&(this._videoStashedLastSample=bt);var Jt=at[0].dts-this._dtsBase;if(this._videoNextDts)At=Jt-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())At=0;else{var Ut=this._videoSegmentInfoList.getLastSampleBefore(Jt);if(Ut!=null){var er=Jt-(Ut.originalDts+Ut.duration);er<=3&&(er=0);var Mt=Ut.dts+Ut.duration+er;At=Jt-Mt}else At=0}for(var Zt=new Ht,Hr=[],Ir=0;Ir<at.length;Ir++){var Lr=at[Ir],dn=Lr.dts-this._dtsBase,gn=Lr.isKeyframe,ri=dn-At,Zn=Lr.cts,pi=ri+Zn;Ct===-1&&(Ct=ri,Pr=pi);var Ci=0;if(Ir!==at.length-1){var Ni=at[Ir+1].dts-this._dtsBase-At;Ci=Ni-ri}else if(bt!=null){var zi=bt.dts-this._dtsBase-At;Ci=zi-ri}else Hr.length>=1?Ci=Hr[Hr.length-1].duration:Ci=Math.floor(this._videoMeta.refSampleDuration);if(gn){var it=new wt(ri,pi,Ci,Lr.dts,!0);it.fileposition=Lr.fileposition,Zt.appendSyncPoint(it)}Hr.push({dts:ri,pts:pi,cts:Zn,units:Lr.units,size:Lr.length,isKeyframe:gn,duration:Ci,originalDts:dn,flags:{isLeading:0,dependsOn:gn?2:1,isDependedOn:gn?1:0,hasRedundancy:0,isNonSync:gn?0:1}})}Gt=new Uint8Array(vt),Gt[0]=vt>>>24&255,Gt[1]=vt>>>16&255,Gt[2]=vt>>>8&255,Gt[3]=vt&255,Gt.set(Fe.types.mdat,4);for(var Ne=0;Ne<Hr.length;Ne++)for(var He=Hr[Ne].units;He.length;){var Ge=He.shift(),nt=Ge.data;Gt.set(nt,An),An+=nt.byteLength}var $e=Hr[Hr.length-1];if(Yt=$e.dts+$e.duration,qr=$e.pts+$e.duration,this._videoNextDts=Yt,Zt.beginDts=Ct,Zt.endDts=Yt,Zt.beginPts=Pr,Zt.endPts=qr,Zt.originalBeginDts=Hr[0].originalDts,Zt.originalEndDts=$e.originalDts+$e.duration,Zt.firstSample=new wt(Hr[0].dts,Hr[0].pts,Hr[0].duration,Hr[0].originalDts,Hr[0].isKeyframe),Zt.lastSample=new wt($e.dts,$e.pts,$e.duration,$e.originalDts,$e.isKeyframe),this._isLive||this._videoSegmentInfoList.append(Zt),Be.samples=Hr,Be.sequenceNumber++,this._forceFirstIDR){var ot=Hr[0].flags;ot.dependsOn=2,ot.isNonSync=0}var Pt=Fe.moof(Be,Ct);Be.samples=[],Be.length=0,this._onMediaSegment("video",{type:"video",data:this._mergeBoxes(Pt,Gt).buffer,sampleCount:Hr.length,info:Zt})}},{key:"_mergeBoxes",value:function(ke,Me){var Be=new Uint8Array(ke.byteLength+Me.byteLength);return Be.set(ke,0),Be.set(Me,ke.byteLength),Be}}]),$t}(),Ke=Bt,de={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=de,lt=function(){function $t(Ot,ke){Object(y.a)(this,$t),this.TAG="TransmuxingController",this._emitter=new f.a,this._config=ke,Ot.segments||(Ot.segments=[{duration:Ot.duration,filesize:Ot.filesize,url:Ot.url}]),typeof Ot.cors!="boolean"&&(Ot.cors=!0),typeof Ot.withCredentials!="boolean"&&(Ot.withCredentials=!1),this._mediaDataSource=Ot,this._currentSegmentIndex=0;var Me=0;this._mediaDataSource.segments.forEach(function(Be){Be.timestampBase=Me,Me+=Be.duration,Be.cors=Ot.cors,Be.withCredentials=Ot.withCredentials,ke.referrerPolicy&&(Be.referrerPolicy=ke.referrerPolicy)}),!isNaN(Me)&&this._mediaDataSource.duration!==Me&&(this._mediaDataSource.duration=Me),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return Object(p.a)($t,[{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(ke,Me){this._emitter.addListener(ke,Me)}},{key:"off",value:function(ke,Me){this._emitter.removeListener(ke,Me)}},{key:"start",value:function(){this._loadSegment(0),this._enableStatisticsReporter()}},{key:"_loadSegment",value:function(ke,Me){this._currentSegmentIndex=ke;var Be=this._mediaDataSource.segments[ke],at=this._ioctl=new Q(Be,this._config,ke);at.onError=this._onIOException.bind(this),at.onSeeked=this._onIOSeeked.bind(this),at.onComplete=this._onIOComplete.bind(this),at.onRedirect=this._onIORedirect.bind(this),at.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),Me?this._demuxer.bindDataSource(this._ioctl):at.onDataArrival=this._onInitChunkArrival.bind(this),at.open(Me)}},{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(ke){if(this._mediaInfo==null||!this._mediaInfo.isSeekable())return;var Me=this._searchSegmentIndexContains(ke);if(Me===this._currentSegmentIndex){var Be=this._mediaInfo.segments[Me];if(Be==null)this._pendingSeekTime=ke;else{var at=Be.getNearestKeyframe(ke);this._remuxer.seek(at.milliseconds),this._ioctl.seek(at.fileposition),this._pendingResolveSeekPoint=at.milliseconds}}else{var At=this._mediaInfo.segments[Me];if(At==null)this._pendingSeekTime=ke,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(Me);else{var Ct=At.getNearestKeyframe(ke);this._internalAbort(),this._remuxer.seek(ke),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[Me].timestampBase,this._loadSegment(Me,Ct.fileposition),this._pendingResolveSeekPoint=Ct.milliseconds,this._reportSegmentMediaInfo(Me)}}this._enableStatisticsReporter()}},{key:"_searchSegmentIndexContains",value:function(ke){for(var Me=this._mediaDataSource.segments,Be=Me.length-1,at=0;at<Me.length;at++)if(ke<Me[at].timestampBase){Be=at-1;break}return Be}},{key:"_onInitChunkArrival",value:function(ke,Me){var Be=this,at=null,At=0;if(Me>0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,At=this._demuxer.parseChunks(ke,Me);else if((at=pt.probe(ke)).match){this._demuxer=new pt(at,this._config),this._remuxer||(this._remuxer=new Ke(this._config));var Ct=this._mediaDataSource;Ct.duration!=null&&!isNaN(Ct.duration)&&(this._demuxer.overridedDuration=Ct.duration),typeof Ct.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=Ct.hasAudio),typeof Ct.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=Ct.hasVideo),this._demuxer.timestampBase=Ct.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),At=this._demuxer.parseChunks(ke,Me)}else at=null,l.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){Be._internalAbort()}),this._emitter.emit(oe.DEMUX_ERROR,Te.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),At=0;return At}},{key:"_onMediaInfo",value:function(ke){var Me=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},ke),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,Ve.prototype));var Be=Object.assign({},ke);Object.setPrototypeOf(Be,Ve.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=Be,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var at=Me._pendingSeekTime;Me._pendingSeekTime=null,Me.seek(at)})}},{key:"_onMetaDataArrived",value:function(ke){this._emitter.emit(oe.METADATA_ARRIVED,ke)}},{key:"_onScriptDataArrived",value:function(ke){this._emitter.emit(oe.SCRIPTDATA_ARRIVED,ke)}},{key:"_onIOSeeked",value:function(){this._remuxer.insertDiscontinuity()}},{key:"_onIOComplete",value:function(ke){var Me=ke,Be=Me+1;Be<this._mediaDataSource.segments.length?(this._internalAbort(),this._remuxer.flushStashedSamples(),this._loadSegment(Be)):(this._remuxer.flushStashedSamples(),this._emitter.emit(oe.LOADING_COMPLETE),this._disableStatisticsReporter())}},{key:"_onIORedirect",value:function(ke){var Me=this._ioctl.extraData;this._mediaDataSource.segments[Me].redirectedURL=ke}},{key:"_onIORecoveredEarlyEof",value:function(){this._emitter.emit(oe.RECOVERED_EARLY_EOF)}},{key:"_onIOException",value:function(ke,Me){l.e(this.TAG,"IOException: type = ".concat(ke,", code = ").concat(Me.code,", msg = ").concat(Me.msg)),this._emitter.emit(oe.IO_ERROR,ke,Me),this._disableStatisticsReporter()}},{key:"_onDemuxException",value:function(ke,Me){l.e(this.TAG,"DemuxException: type = ".concat(ke,", info = ").concat(Me)),this._emitter.emit(oe.DEMUX_ERROR,ke,Me)}},{key:"_onRemuxerInitSegmentArrival",value:function(ke,Me){this._emitter.emit(oe.INIT_SEGMENT,ke,Me)}},{key:"_onRemuxerMediaSegmentArrival",value:function(ke,Me){if(this._pendingSeekTime!=null)return;if(this._emitter.emit(oe.MEDIA_SEGMENT,ke,Me),this._pendingResolveSeekPoint!=null&&ke==="video"){var Be=Me.info.syncPoints,at=this._pendingResolveSeekPoint;this._pendingResolveSeekPoint=null,T.safari&&Be.length>0&&Be[0].originalDts===at&&(at=Be[0].pts),this._emitter.emit(oe.RECOMMEND_SEEKPOINT,at)}}},{key:"_enableStatisticsReporter",value:function(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}},{key:"_disableStatisticsReporter",value:function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}},{key:"_reportSegmentMediaInfo",value:function(ke){var Me=this._mediaInfo.segments[ke],Be=Object.assign({},Me);Be.duration=this._mediaInfo.duration,Be.segmentCount=this._mediaInfo.segmentCount,delete Be.segments,delete Be.keyframesIndex,this._emitter.emit(oe.MEDIA_INFO,Be)}},{key:"_reportStatisticsInfo",value:function(){var ke={};ke.url=this._ioctl.currentURL,ke.hasRedirect=this._ioctl.hasRedirect,ke.hasRedirect&&(ke.redirectedURL=this._ioctl.currentRedirectedURL),ke.speed=this._ioctl.currentSpeed,ke.loaderType=this._ioctl.loaderType,ke.currentSegmentIndex=this._currentSegmentIndex,ke.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(oe.STATISTICS_INFO,ke)}}]),$t}(),qe=lt,pe=function(Ot){var ke="TransmuxingWorker",Me=null,Be=Jt.bind(this);A.install(),Ot.addEventListener("message",function(Ut){switch(Ut.data.cmd){case"init":Me=new qe(Ut.data.param[0],Ut.data.param[1]),Me.on(oe.IO_ERROR,vt.bind(this)),Me.on(oe.DEMUX_ERROR,bt.bind(this)),Me.on(oe.INIT_SEGMENT,at.bind(this)),Me.on(oe.MEDIA_SEGMENT,At.bind(this)),Me.on(oe.LOADING_COMPLETE,Ct.bind(this)),Me.on(oe.RECOVERED_EARLY_EOF,Yt.bind(this)),Me.on(oe.MEDIA_INFO,Pr.bind(this)),Me.on(oe.METADATA_ARRIVED,qr.bind(this)),Me.on(oe.SCRIPTDATA_ARRIVED,An.bind(this)),Me.on(oe.STATISTICS_INFO,Gt.bind(this)),Me.on(oe.RECOMMEND_SEEKPOINT,fr.bind(this));break;case"destroy":Me&&(Me.destroy(),Me=null),Ot.postMessage({msg:"destroyed"});break;case"start":Me.start();break;case"stop":Me.stop();break;case"seek":Me.seek(Ut.data.param);break;case"pause":Me.pause();break;case"resume":Me.resume();break;case"logging_config":{var er=Ut.data.param;Pe.applyConfig(er),er.enableCallback===!0?Pe.addLogListener(Be):Pe.removeLogListener(Be);break}}});function at(Ut,er){var Mt={msg:oe.INIT_SEGMENT,data:{type:Ut,data:er}};Ot.postMessage(Mt,[er.data])}function At(Ut,er){var Mt={msg:oe.MEDIA_SEGMENT,data:{type:Ut,data:er}};Ot.postMessage(Mt,[er.data])}function Ct(){var Ut={msg:oe.LOADING_COMPLETE};Ot.postMessage(Ut)}function Yt(){var Ut={msg:oe.RECOVERED_EARLY_EOF};Ot.postMessage(Ut)}function Pr(Ut){var er={msg:oe.MEDIA_INFO,data:Ut};Ot.postMessage(er)}function qr(Ut){var er={msg:oe.METADATA_ARRIVED,data:Ut};Ot.postMessage(er)}function An(Ut){var er={msg:oe.SCRIPTDATA_ARRIVED,data:Ut};Ot.postMessage(er)}function Gt(Ut){var er={msg:oe.STATISTICS_INFO,data:Ut};Ot.postMessage(er)}function vt(Ut,er){Ot.postMessage({msg:oe.IO_ERROR,data:{type:Ut,info:er}})}function bt(Ut,er){Ot.postMessage({msg:oe.DEMUX_ERROR,data:{type:Ut,info:er}})}function fr(Ut){Ot.postMessage({msg:oe.RECOMMEND_SEEKPOINT,data:Ut})}function Jt(Ut,er){Ot.postMessage({msg:"logcat_callback",data:{type:Ut,logcat:er}})}},Kt=pe,hr=function(){function $t(Ot,ke){if(Object(y.a)(this,$t),this.TAG="Transmuxer",this._emitter=new f.a,ke.enableWorker&&typeof Worker!="undefined")try{var Me=i("0r65");this._worker=Me(Kt),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[Ot,ke]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},Pe.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:Pe.getConfig()})}catch(at){l.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new qe(Ot,ke)}else this._controller=new qe(Ot,ke);if(this._controller){var Be=this._controller;Be.on(oe.IO_ERROR,this._onIOError.bind(this)),Be.on(oe.DEMUX_ERROR,this._onDemuxError.bind(this)),Be.on(oe.INIT_SEGMENT,this._onInitSegment.bind(this)),Be.on(oe.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),Be.on(oe.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),Be.on(oe.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),Be.on(oe.MEDIA_INFO,this._onMediaInfo.bind(this)),Be.on(oe.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),Be.on(oe.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),Be.on(oe.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),Be.on(oe.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return Object(p.a)($t,[{key:"destroy",value:function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),Pe.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(ke,Me){this._emitter.addListener(ke,Me)}},{key:"off",value:function(ke,Me){this._emitter.removeListener(ke,Me)}},{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(ke){this._worker?this._worker.postMessage({cmd:"seek",param:ke}):this._controller.seek(ke)}},{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(ke,Me){var Be=this;Promise.resolve().then(function(){Be._emitter.emit(oe.INIT_SEGMENT,ke,Me)})}},{key:"_onMediaSegment",value:function(ke,Me){var Be=this;Promise.resolve().then(function(){Be._emitter.emit(oe.MEDIA_SEGMENT,ke,Me)})}},{key:"_onLoadingComplete",value:function(){var ke=this;Promise.resolve().then(function(){ke._emitter.emit(oe.LOADING_COMPLETE)})}},{key:"_onRecoveredEarlyEof",value:function(){var ke=this;Promise.resolve().then(function(){ke._emitter.emit(oe.RECOVERED_EARLY_EOF)})}},{key:"_onMediaInfo",value:function(ke){var Me=this;Promise.resolve().then(function(){Me._emitter.emit(oe.MEDIA_INFO,ke)})}},{key:"_onMetaDataArrived",value:function(ke){var Me=this;Promise.resolve().then(function(){Me._emitter.emit(oe.METADATA_ARRIVED,ke)})}},{key:"_onScriptDataArrived",value:function(ke){var Me=this;Promise.resolve().then(function(){Me._emitter.emit(oe.SCRIPTDATA_ARRIVED,ke)})}},{key:"_onStatisticsInfo",value:function(ke){var Me=this;Promise.resolve().then(function(){Me._emitter.emit(oe.STATISTICS_INFO,ke)})}},{key:"_onIOError",value:function(ke,Me){var Be=this;Promise.resolve().then(function(){Be._emitter.emit(oe.IO_ERROR,ke,Me)})}},{key:"_onDemuxError",value:function(ke,Me){var Be=this;Promise.resolve().then(function(){Be._emitter.emit(oe.DEMUX_ERROR,ke,Me)})}},{key:"_onRecommendSeekpoint",value:function(ke){var Me=this;Promise.resolve().then(function(){Me._emitter.emit(oe.RECOMMEND_SEEKPOINT,ke)})}},{key:"_onLoggingConfigChanged",value:function(ke){this._worker&&this._worker.postMessage({cmd:"logging_config",param:ke})}},{key:"_onWorkerMessage",value:function(ke){var Me=ke.data,Be=Me.data;if(Me.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(Me.msg){case oe.INIT_SEGMENT:case oe.MEDIA_SEGMENT:this._emitter.emit(Me.msg,Be.type,Be.data);break;case oe.LOADING_COMPLETE:case oe.RECOVERED_EARLY_EOF:this._emitter.emit(Me.msg);break;case oe.MEDIA_INFO:Object.setPrototypeOf(Be,Ve.prototype),this._emitter.emit(Me.msg,Be);break;case oe.METADATA_ARRIVED:case oe.SCRIPTDATA_ARRIVED:case oe.STATISTICS_INFO:this._emitter.emit(Me.msg,Be);break;case oe.IO_ERROR:case oe.DEMUX_ERROR:this._emitter.emit(Me.msg,Be.type,Be.info);break;case oe.RECOMMEND_SEEKPOINT:this._emitter.emit(Me.msg,Be);break;case"logcat_callback":l.emitter.emit("log",Be.type,Be.logcat);break;default:break}}}]),$t}(),gt=hr,nr={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"},mr=nr,cn=function(){function $t(Ot){Object(y.a)(this,$t),this.TAG="MSEController",this._config=Ot,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 Dt}return Object(p.a)($t,[{key:"destroy",value:function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}},{key:"on",value:function(ke,Me){this._emitter.addListener(ke,Me)}},{key:"off",value:function(ke,Me){this._emitter.removeListener(ke,Me)}},{key:"attachMediaElement",value:function(ke){if(this._mediaSource)throw new u("MediaSource has been attached to an HTMLMediaElement!");var Me=this._mediaSource=new window.MediaSource;Me.addEventListener("sourceopen",this.e.onSourceOpen),Me.addEventListener("sourceended",this.e.onSourceEnded),Me.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=ke,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),ke.src=this._mediaSourceObjectURL}},{key:"detachMediaElement",value:function(){if(this._mediaSource){var ke=this._mediaSource;for(var Me in this._sourceBuffers){var Be=this._pendingSegments[Me];Be.splice(0,Be.length),this._pendingSegments[Me]=null,this._pendingRemoveRanges[Me]=null,this._lastInitSegments[Me]=null;var at=this._sourceBuffers[Me];if(at){if(ke.readyState!=="closed"){try{ke.removeSourceBuffer(at)}catch(At){l.e(this.TAG,At.message)}at.removeEventListener("error",this.e.onSourceBufferError),at.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[Me]=null,this._sourceBuffers[Me]=null}}if(ke.readyState==="open")try{ke.endOfStream()}catch(At){l.e(this.TAG,At.message)}ke.removeEventListener("sourceopen",this.e.onSourceOpen),ke.removeEventListener("sourceended",this.e.onSourceEnded),ke.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(ke,Me){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(ke),this._pendingSegments[ke.type].push(ke);return}var Be=ke,at="".concat(Be.container);Be.codec&&Be.codec.length>0&&(at+=";codecs=".concat(Be.codec));var At=!1;if(l.v(this.TAG,"Received Initialization Segment, mimeType: "+at),this._lastInitSegments[Be.type]=Be,at!==this._mimeTypes[Be.type]){if(this._mimeTypes[Be.type])l.v(this.TAG,"Notice: ".concat(Be.type," mimeType changed, origin: ").concat(this._mimeTypes[Be.type],", target: ").concat(at));else{At=!0;try{var Ct=this._sourceBuffers[Be.type]=this._mediaSource.addSourceBuffer(at);Ct.addEventListener("error",this.e.onSourceBufferError),Ct.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(Yt){l.e(this.TAG,Yt.message),this._emitter.emit(mr.ERROR,{code:Yt.code,msg:Yt.message});return}}this._mimeTypes[Be.type]=at}Me||this._pendingSegments[Be.type].push(Be),At||this._sourceBuffers[Be.type]&&!this._sourceBuffers[Be.type].updating&&this._doAppendSegments(),T.safari&&Be.container==="audio/mpeg"&&Be.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=Be.mediaDuration/1e3,this._updateMediaSourceDuration())}},{key:"appendMediaSegment",value:function(ke){var Me=ke;this._pendingSegments[Me.type].push(Me),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var Be=this._sourceBuffers[Me.type];Be&&!Be.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()}},{key:"seek",value:function(ke){for(var Me in this._sourceBuffers){if(!this._sourceBuffers[Me])continue;var Be=this._sourceBuffers[Me];if(this._mediaSource.readyState==="open")try{Be.abort()}catch(qr){l.e(this.TAG,qr.message)}this._idrList.clear();var at=this._pendingSegments[Me];if(at.splice(0,at.length),this._mediaSource.readyState==="closed")continue;for(var At=0;At<Be.buffered.length;At++){var Ct=Be.buffered.start(At),Yt=Be.buffered.end(At);this._pendingRemoveRanges[Me].push({start:Ct,end:Yt})}if(Be.updating||this._doRemoveRanges(),T.safari){var Pr=this._lastInitSegments[Me];Pr&&(this._pendingSegments[Me].push(Pr),Be.updating||this._doAppendSegments())}}}},{key:"endOfStream",value:function(){var ke=this._mediaSource,Me=this._sourceBuffers;if(!ke||ke.readyState!=="open"){ke&&ke.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}Me.video&&Me.video.updating||Me.audio&&Me.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,ke.endOfStream())}},{key:"getNearestKeyframe",value:function(ke){return this._idrList.getLastSyncPointBeforeDts(ke)}},{key:"_needCleanupSourceBuffer",value:function(){if(!this._config.autoCleanupSourceBuffer)return!1;var ke=this._mediaElement.currentTime;for(var Me in this._sourceBuffers){var Be=this._sourceBuffers[Me];if(Be){var at=Be.buffered;if(at.length>=1&&ke-at.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}},{key:"_doCleanupSourceBuffer",value:function(){var ke=this._mediaElement.currentTime;for(var Me in this._sourceBuffers){var Be=this._sourceBuffers[Me];if(Be){for(var at=Be.buffered,At=!1,Ct=0;Ct<at.length;Ct++){var Yt=at.start(Ct),Pr=at.end(Ct);if(Yt<=ke&&ke<Pr+3){if(ke-Yt>=this._config.autoCleanupMaxBackwardDuration){At=!0;var qr=ke-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[Me].push({start:Yt,end:qr})}}else Pr<ke&&(At=!0,this._pendingRemoveRanges[Me].push({start:Yt,end:Pr}))}At&&!Be.updating&&this._doRemoveRanges()}}}},{key:"_updateMediaSourceDuration",value:function(){var ke=this._sourceBuffers;if(this._mediaElement.readyState===0||this._mediaSource.readyState!=="open")return;if(ke.video&&ke.video.updating||ke.audio&&ke.audio.updating)return;var Me=this._mediaSource.duration,Be=this._pendingMediaDuration;Be>0&&(isNaN(Me)||Be>Me)&&(l.v(this.TAG,"Update MediaSource duration from ".concat(Me," to ").concat(Be)),this._mediaSource.duration=Be),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},{key:"_doRemoveRanges",value:function(){for(var ke in this._pendingRemoveRanges){if(!this._sourceBuffers[ke]||this._sourceBuffers[ke].updating)continue;for(var Me=this._sourceBuffers[ke],Be=this._pendingRemoveRanges[ke];Be.length&&!Me.updating;){var at=Be.shift();Me.remove(at.start,at.end)}}}},{key:"_doAppendSegments",value:function(){var ke=this._pendingSegments;for(var Me in ke){if(!this._sourceBuffers[Me]||this._sourceBuffers[Me].updating)continue;if(ke[Me].length>0){var Be=ke[Me].shift();if(Be.timestampOffset){var at=this._sourceBuffers[Me].timestampOffset,At=Be.timestampOffset/1e3,Ct=Math.abs(at-At);Ct>.1&&(l.v(this.TAG,"Update MPEG audio timestampOffset from ".concat(at," to ").concat(At)),this._sourceBuffers[Me].timestampOffset=At),delete Be.timestampOffset}if(!Be.data||Be.data.byteLength===0)continue;try{this._sourceBuffers[Me].appendBuffer(Be.data),this._isBufferFull=!1,Me==="video"&&Be.hasOwnProperty("info")&&this._idrList.appendArray(Be.info.syncPoints)}catch(Yt){this._pendingSegments[Me].unshift(Be),Yt.code===22?(this._isBufferFull||this._emitter.emit(mr.BUFFER_FULL),this._isBufferFull=!0):(l.e(this.TAG,Yt.message),this._emitter.emit(mr.ERROR,{code:Yt.code,msg:Yt.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 ke=this._pendingSourceBufferInit;ke.length;){var Me=ke.shift();this.appendInitSegment(Me,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(mr.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 ke=this._pendingSegments;return ke.video.length>0||ke.audio.length>0}},{key:"_hasPendingRemoveRanges",value:function(){var ke=this._pendingRemoveRanges;return ke.video.length>0||ke.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(mr.UPDATE_END)}},{key:"_onSourceBufferError",value:function(ke){l.e(this.TAG,"SourceBuffer Error: ".concat(ke))}}]),$t}(),Ar=cn,xr={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},qt={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:Te.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:Te.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:Te.CODEC_UNSUPPORTED},ar=function(){function $t(Ot,ke){if(Object(y.a)(this,$t),this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new f.a,this._config=te(),typeof ke=="object"&&Object.assign(this._config,ke),Ot.type.toLowerCase()!=="flv")throw new r("FlvPlayer requires an flv MediaDataSource input!");Ot.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=Ot,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 Me=T.chrome&&(T.version.major<50||T.version.major===50&&T.version.build<2661);this._alwaysSeekKeyframe=!!(Me||T.msedge||T.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}return Object(p.a)($t,[{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(ke,Me){var Be=this;ke===Se.MEDIA_INFO?this._mediaInfo!=null&&Promise.resolve().then(function(){Be._emitter.emit(Se.MEDIA_INFO,Be.mediaInfo)}):ke===Se.STATISTICS_INFO&&(this._statisticsInfo!=null&&Promise.resolve().then(function(){Be._emitter.emit(Se.STATISTICS_INFO,Be.statisticsInfo)})),this._emitter.addListener(ke,Me)}},{key:"off",value:function(ke,Me){this._emitter.removeListener(ke,Me)}},{key:"attachMediaElement",value:function(ke){var Me=this;if(this._mediaElement=ke,ke.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),ke.addEventListener("seeking",this.e.onvSeeking),ke.addEventListener("canplay",this.e.onvCanPlay),ke.addEventListener("stalled",this.e.onvStalled),ke.addEventListener("progress",this.e.onvProgress),this._msectl=new Ar(this._config),this._msectl.on(mr.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(mr.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(mr.SOURCE_OPEN,function(){Me._mseSourceOpened=!0,Me._hasPendingLoad&&(Me._hasPendingLoad=!1,Me.load())}),this._msectl.on(mr.ERROR,function(Be){Me._emitter.emit(Se.ERROR,xr.MEDIA_ERROR,qt.MEDIA_MSE_ERROR,Be)}),this._msectl.attachMediaElement(ke),this._pendingSeekTime!=null)try{ke.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Be){}}},{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 ke=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 gt(this._mediaDataSource,this._config),this._transmuxer.on(oe.INIT_SEGMENT,function(Me,Be){ke._msectl.appendInitSegment(Be)}),this._transmuxer.on(oe.MEDIA_SEGMENT,function(Me,Be){if(ke._msectl.appendMediaSegment(Be),ke._config.lazyLoad&&!ke._config.isLive){var at=ke._mediaElement.currentTime;Be.info.endDts>=(at+ke._config.lazyLoadMaxDuration)*1e3&&(ke._progressChecker==null&&(l.v(ke.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),ke._suspendTransmuxer()))}}),this._transmuxer.on(oe.LOADING_COMPLETE,function(){ke._msectl.endOfStream(),ke._emitter.emit(Se.LOADING_COMPLETE)}),this._transmuxer.on(oe.RECOVERED_EARLY_EOF,function(){ke._emitter.emit(Se.RECOVERED_EARLY_EOF)}),this._transmuxer.on(oe.IO_ERROR,function(Me,Be){ke._emitter.emit(Se.ERROR,xr.NETWORK_ERROR,Me,Be)}),this._transmuxer.on(oe.DEMUX_ERROR,function(Me,Be){ke._emitter.emit(Se.ERROR,xr.MEDIA_ERROR,Me,{code:-1,msg:Be})}),this._transmuxer.on(oe.MEDIA_INFO,function(Me){ke._mediaInfo=Me,ke._emitter.emit(Se.MEDIA_INFO,Object.assign({},Me))}),this._transmuxer.on(oe.METADATA_ARRIVED,function(Me){ke._emitter.emit(Se.METADATA_ARRIVED,Me)}),this._transmuxer.on(oe.SCRIPTDATA_ARRIVED,function(Me){ke._emitter.emit(Se.SCRIPTDATA_ARRIVED,Me)}),this._transmuxer.on(oe.STATISTICS_INFO,function(Me){ke._statisticsInfo=ke._fillStatisticsInfo(Me),ke._emitter.emit(Se.STATISTICS_INFO,Object.assign({},ke._statisticsInfo))}),this._transmuxer.on(oe.RECOMMEND_SEEKPOINT,function(Me){ke._mediaElement&&!ke._config.accurateSeek&&(ke._requestSetTime=!0,ke._mediaElement.currentTime=Me/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(ke){this._mediaElement.volume=ke}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(ke){this._mediaElement.muted=ke}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(ke){this._mediaElement?this._internalSeek(ke):this._pendingSeekTime=ke}},{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(ke){if(ke.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return ke;var Me=!0,Be=0,at=0;if(this._mediaElement.getVideoPlaybackQuality){var At=this._mediaElement.getVideoPlaybackQuality();Be=At.totalVideoFrames,at=At.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Be=this._mediaElement.webkitDecodedFrameCount,at=this._mediaElement.webkitDroppedFrameCount):Me=!1;return Me&&(ke.decodedFrames=Be,ke.droppedFrames=at),ke}},{key:"_onmseUpdateEnd",value:function(){if(!this._config.lazyLoad||this._config.isLive)return;for(var ke=this._mediaElement.buffered,Me=this._mediaElement.currentTime,Be=0,at=0,At=0;At<ke.length;At++){var Ct=ke.start(At),Yt=ke.end(At);if(Ct<=Me&&Me<Yt){Be=Ct,at=Yt;break}}at>=Me+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 ke=this._mediaElement.currentTime,Me=this._mediaElement.buffered,Be=!1,at=0;at<Me.length;at++){var At=Me.start(at),Ct=Me.end(at);if(ke>=At&&ke<Ct){ke>=Ct-this._config.lazyLoadRecoverDuration&&(Be=!0);break}}Be&&(window.clearInterval(this._progressChecker),this._progressChecker=null,Be&&(l.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}},{key:"_isTimepointBuffered",value:function(ke){for(var Me=this._mediaElement.buffered,Be=0;Be<Me.length;Be++){var at=Me.start(Be),At=Me.end(Be);if(ke>=at&&ke<At)return!0}return!1}},{key:"_internalSeek",value:function(ke){var Me=this._isTimepointBuffered(ke),Be=!1,at=0;if(ke<1&&this._mediaElement.buffered.length>0){var At=this._mediaElement.buffered.start(0);(At<1&&ke<At||T.safari)&&(Be=!0,at=T.safari?.1:At)}if(Be)this._requestSetTime=!0,this._mediaElement.currentTime=at;else if(Me){if(!this._alwaysSeekKeyframe)this._requestSetTime=!0,this._mediaElement.currentTime=ke;else{var Ct=this._msectl.getNearestKeyframe(Math.floor(ke*1e3));this._requestSetTime=!0,Ct!=null?this._mediaElement.currentTime=Ct.dts/1e3:this._mediaElement.currentTime=ke}this._progressChecker!=null&&this._checkProgressAndResume()}else this._progressChecker!=null&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._msectl.seek(ke),this._transmuxer.seek(Math.floor(ke*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=ke)}},{key:"_checkAndApplyUnbufferedSeekpoint",value:function(){if(this._seekpointRecord)if(this._seekpointRecord.recordTime<=this._now()-100){var ke=this._mediaElement.currentTime;this._seekpointRecord=null,this._isTimepointBuffered(ke)||(this._progressChecker!=null&&(window.clearTimeout(this._progressChecker),this._progressChecker=null),this._msectl.seek(ke),this._transmuxer.seek(Math.floor(ke*1e3)),this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=ke))}else window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_checkAndResumeStuckPlayback",value:function(ke){var Me=this._mediaElement;if(ke||!this._receivedCanPlay||Me.readyState<2){var Be=Me.buffered;Be.length>0&&Me.currentTime<Be.start(0)&&(l.w(this.TAG,"Playback seems stuck at ".concat(Me.currentTime,", seek to ").concat(Be.start(0))),this._requestSetTime=!0,this._mediaElement.currentTime=Be.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)}},{key:"_onvLoadedMetadata",value:function(ke){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)}},{key:"_onvSeeking",value:function(ke){var Me=this._mediaElement.currentTime,Be=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(Me<1&&Be.length>0){var at=Be.start(0);if(at<1&&Me<at||T.safari){this._requestSetTime=!0,this._mediaElement.currentTime=T.safari?.1:at;return}}if(this._isTimepointBuffered(Me)){if(this._alwaysSeekKeyframe){var At=this._msectl.getNearestKeyframe(Math.floor(Me*1e3));At!=null&&(this._requestSetTime=!0,this._mediaElement.currentTime=At.dts/1e3)}this._progressChecker!=null&&this._checkProgressAndResume();return}this._seekpointRecord={seekPoint:Me,recordTime:this._now()},window.setTimeout(this._checkAndApplyUnbufferedSeekpoint.bind(this),50)}},{key:"_onvCanPlay",value:function(ke){this._receivedCanPlay=!0,this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay)}},{key:"_onvStalled",value:function(ke){this._checkAndResumeStuckPlayback(!0)}},{key:"_onvProgress",value:function(ke){this._checkAndResumeStuckPlayback()}}]),$t}(),Et=ar,en=function(){function $t(Ot,ke){if(Object(y.a)(this,$t),this.TAG="NativePlayer",this._type="NativePlayer",this._emitter=new f.a,this._config=te(),typeof ke=="object"&&Object.assign(this._config,ke),Ot.type.toLowerCase()==="flv")throw new r("NativePlayer does't support flv MediaDataSource input!");if(Ot.hasOwnProperty("segments"))throw new r("NativePlayer(".concat(Ot.type,") doesn't support multipart playback!"));this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this)},this._pendingSeekTime=null,this._statisticsReporter=null,this._mediaDataSource=Ot,this._mediaElement=null}return Object(p.a)($t,[{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(ke,Me){var Be=this;ke===Se.MEDIA_INFO?this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Be._emitter.emit(Se.MEDIA_INFO,Be.mediaInfo)}):ke===Se.STATISTICS_INFO&&(this._mediaElement!=null&&this._mediaElement.readyState!==0&&Promise.resolve().then(function(){Be._emitter.emit(Se.STATISTICS_INFO,Be.statisticsInfo)})),this._emitter.addListener(ke,Me)}},{key:"off",value:function(ke,Me){this._emitter.removeListener(ke,Me)}},{key:"attachMediaElement",value:function(ke){if(this._mediaElement=ke,ke.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._pendingSeekTime!=null)try{ke.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(Me){}}},{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(ke){this._mediaElement.volume=ke}},{key:"muted",get:function(){return this._mediaElement.muted},set:function(ke){this._mediaElement.muted=ke}},{key:"currentTime",get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(ke){this._mediaElement?this._mediaElement.currentTime=ke:this._pendingSeekTime=ke}},{key:"mediaInfo",get:function(){var ke=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",Me={mimeType:ke+this._mediaDataSource.type};return this._mediaElement&&(Me.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(Me.width=this._mediaElement.videoWidth,Me.height=this._mediaElement.videoHeight)),Me}},{key:"statisticsInfo",get:function(){var ke={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return ke;var Me=!0,Be=0,at=0;if(this._mediaElement.getVideoPlaybackQuality){var At=this._mediaElement.getVideoPlaybackQuality();Be=At.totalVideoFrames,at=At.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(Be=this._mediaElement.webkitDecodedFrameCount,at=this._mediaElement.webkitDroppedFrameCount):Me=!1;return Me&&(ke.decodedFrames=Be,ke.droppedFrames=at),ke}},{key:"_onvLoadedMetadata",value:function(ke){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(Se.MEDIA_INFO,this.mediaInfo)}},{key:"_reportStatisticsInfo",value:function(){this._emitter.emit(Se.STATISTICS_INFO,this.statisticsInfo)}}]),$t}(),Mn=en;A.install();function Yn($t,Ot){var ke=$t;if(ke==null||typeof ke!="object")throw new r("MediaDataSource must be an javascript object!");if(!ke.hasOwnProperty("type"))throw new r("MediaDataSource must has type field to indicate video file type!");switch(ke.type){case"flv":return new Et(ke,Ot);default:return new Mn(ke,Ot)}}function ci(){return le.supportMSEH264Playback()}function Vi(){return le.getFeatureList()}var jn={};jn.createPlayer=Yn,jn.isSupported=ci,jn.getFeatureList=Vi,jn.BaseLoader=g,jn.LoaderStatus=c,jn.LoaderErrors=h,jn.Events=Se,jn.ErrorTypes=xr,jn.ErrorDetails=qt,jn.FlvPlayer=Et,jn.NativePlayer=Mn,jn.LoggingControl=Pe,Object.defineProperty(jn,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var Qn=D.a=jn},GVMX:function(k,D,i){var y=i("JEkh"),p=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"}});k.exports=p},GdRQ:function(k,D,i){"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.isMac=c,D.isWindows=h,D.isIOS=g,D.isSafari=v,D.isIE=b,D.isEdge=w,D.isFirefox=x,D.hasScrollbarGutter=D.supportsImageMetadata=D.supportsCursorURIs=D.dragThreshold=D.isTouchDevice=void 0;var p=A(i("Lo0S"));function S(){if(typeof WeakMap!="function")return null;var T=new WeakMap;return S=function(){return T},T}function A(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={},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in T)if(Object.prototype.hasOwnProperty.call(T,I)){var _=C?Object.getOwnPropertyDescriptor(T,I):null;_&&(_.get||_.set)?Object.defineProperty(E,I,_):E[I]=T[I]}return E.default=T,O&&O.set(T,E),E}var m="ontouchstart"in document.documentElement||document.ontouchstart!==void 0||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;D.isTouchDevice=m,window.addEventListener("touchstart",function T(){D.isTouchDevice=m=!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?(p.Info("Data URI scheme cursor supported"),d=!0):p.Warn("Data URI scheme cursor not supported")}catch(T){p.Error("Data URI scheme cursor test exception: "+T)}var o=d;D.supportsCursorURIs=o;var n=!1;try{new ImageData(new Uint8ClampedArray(4),1,1),n=!0}catch(T){}var t=n;D.supportsImageMetadata=t;var a=!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),a=r!=0}catch(T){p.Error("Scrollbar test exception: "+T)}var s=a;D.hasScrollbarGutter=s;function c(){return navigator&&!!/mac/i.exec(navigator.platform)}function h(){return navigator&&!!/win/i.exec(navigator.platform)}function g(){return navigator&&(!!/ipad/i.exec(navigator.platform)||!!/iphone/i.exec(navigator.platform)||!!/ipod/i.exec(navigator.platform))}function v(){return navigator&&navigator.userAgent.indexOf("Safari")!==-1&&navigator.userAgent.indexOf("Chrome")===-1}function b(){return navigator&&!!/trident/i.exec(navigator.userAgent)}function w(){return navigator&&!!/edge/i.exec(navigator.userAgent)}function x(){return navigator&&!!/firefox/i.exec(navigator.userAgent)}},GeKi:function(k,D,i){var y=i("bYtY"),p=i("6Ic6"),S=i("IwbS"),A=i("y+Vt"),m=i("sK/D"),f=m.createClipPath,d=["itemStyle"],l=["emphasis","itemStyle"],o=["color","color0","borderColor","borderColor0"],n=p.extend({type:"candlestick",render:function(v,b,w){this.group.removeClipPath(),this._updateDrawMode(v),this._isLargeDraw?this._renderLarge(v):this._renderNormal(v)},incrementalPrepareRender:function(v,b,w){this._clear(),this._updateDrawMode(v)},incrementalRender:function(v,b,w,x){this._isLargeDraw?this._incrementalRenderLarge(v,b):this._incrementalRenderNormal(v,b)},_updateDrawMode:function(v){var b=v.pipelineContext.large;(this._isLargeDraw==null||b^this._isLargeDraw)&&(this._isLargeDraw=b,this._clear())},_renderNormal:function(v){var b=v.getData(),w=this._data,x=this.group,T=b.getLayout("isSimpleBox"),O=v.get("clip",!0),E=v.coordinateSystem,C=E.getArea&&E.getArea();this._data||x.removeAll(),b.diff(w).add(function(I){if(b.hasValue(I)){var _,F=b.getItemLayout(I);if(O&&e(C,F))return;_=a(F,I,!0),S.initProps(_,{shape:{points:F.ends}},v,I),u(_,b,I,T),x.add(_),b.setItemGraphicEl(I,_)}}).update(function(I,_){var F=w.getItemGraphicEl(_);if(!b.hasValue(I)){x.remove(F);return}var R=b.getItemLayout(I);if(O&&e(C,R)){x.remove(F);return}F?S.updateProps(F,{shape:{points:R.ends}},v,I):F=a(R,I),u(F,b,I,T),x.add(F),b.setItemGraphicEl(I,F)}).remove(function(I){var _=w.getItemGraphicEl(I);_&&x.remove(_)}).execute(),this._data=b},_renderLarge:function(v){this._clear(),c(v,this.group);var b=v.get("clip",!0)?f(v.coordinateSystem,!1,v):null;b?this.group.setClipPath(b):this.group.removeClipPath()},_incrementalRenderNormal:function(v,b){for(var w=b.getData(),x=w.getLayout("isSimpleBox"),T;(T=v.next())!=null;){var O,E=w.getItemLayout(T);O=a(E,T),u(O,w,T,x),O.incremental=!0,this.group.add(O)}},_incrementalRenderLarge:function(v,b){c(b,this.group,!0)},remove:function(v){this._clear()},_clear:function(){this.group.removeAll(),this._data=null},dispose:y.noop}),t=A.extend({type:"normalCandlestickBox",shape:{},buildPath:function(v,b){var w=b.points;this.__simpleBox?(v.moveTo(w[4][0],w[4][1]),v.lineTo(w[6][0],w[6][1])):(v.moveTo(w[0][0],w[0][1]),v.lineTo(w[1][0],w[1][1]),v.lineTo(w[2][0],w[2][1]),v.lineTo(w[3][0],w[3][1]),v.closePath(),v.moveTo(w[4][0],w[4][1]),v.lineTo(w[5][0],w[5][1]),v.moveTo(w[6][0],w[6][1]),v.lineTo(w[7][0],w[7][1]))}});function a(v,b,w){var x=v.ends;return new t({shape:{points:w?r(x,v):x},z2:100})}function e(v,b){for(var w=!0,x=0;x<b.ends.length;x++)if(v.contain(b.ends[x][0],b.ends[x][1])){w=!1;break}return w}function u(v,b,w,x){var T=b.getItemModel(w),O=T.getModel(d),E=b.getItemVisual(w,"color"),C=b.getItemVisual(w,"borderColor")||E,I=O.getItemStyle(o);v.useStyle(I),v.style.strokeNoScale=!0,v.style.fill=E,v.style.stroke=C,v.__simpleBox=x;var _=T.getModel(l).getItemStyle();S.setHoverStyle(v,_)}function r(v,b){return y.map(v,function(w){return w=w.slice(),w[1]=b.initBaseline,w})}var s=A.extend({type:"largeCandlestickBox",shape:{},buildPath:function(v,b){for(var w=b.points,x=0;x<w.length;)if(this.__sign===w[x++]){var T=w[x++];v.moveTo(T,w[x++]),v.lineTo(T,w[x++])}else x+=3}});function c(v,b,w){var x=v.getData(),T=x.getLayout("largePoints"),O=new s({shape:{points:T},__sign:1});b.add(O);var E=new s({shape:{points:T},__sign:-1});b.add(E),h(1,O,v,x),h(-1,E,v,x),w&&(O.incremental=!0,E.incremental=!0)}function h(v,b,w,x){var T=v>0?"P":"N",O=x.getVisual("borderColor"+T)||x.getVisual("color"+T),E=w.getModel(d).getItemStyle(o);b.useStyle(E),b.style.fill=null,b.style.stroke=O}var g=n;k.exports=g},Gev7:function(k,D,i){var y=i("bYtY"),p=i("K2GJ"),S=i("1bdT"),A=i("ni6a");function m(d){d=d||{},S.call(this,d);for(var l in d)d.hasOwnProperty(l)&&l!=="style"&&(this[l]=d[l]);this.style=new p(d.style,this),this._rect=null,this.__clipPaths=null}m.prototype={constructor:m,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,o){},getBoundingRect:function(){},contain:function(l,o){return this.rectContain(l,o)},traverse:function(l,o){l.call(o,this)},rectContain:function(l,o){var n=this.transformCoordToLocal(l,o),t=this.getBoundingRect();return t.contain(n[0],n[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,o){l!=="style"?S.prototype.attrKV.call(this,l,o):this.style.set(o)},setStyle:function(l,o){return this.style.set(l,o),this.dirty(!1),this},useStyle:function(l){return this.style=new p(l,this),this.dirty(!1),this},calculateTextPosition:null},y.inherits(m,S),y.mixin(m,A);var f=m;k.exports=f},GrNh:function(k,D,i){var y=i("bYtY"),p=i("IwbS"),S=i("6Ic6");function A(n,t,a,e){var u=t.getData(),r=this.dataIndex,s=u.getName(r),c=t.get("selectedOffset");e.dispatchAction({type:"pieToggleSelect",from:n,name:s,seriesId:t.id}),u.each(function(h){m(u.getItemGraphicEl(h),u.getItemLayout(h),t.isSelected(u.getName(h)),c,a)})}function m(n,t,a,e,u){var r=(t.startAngle+t.endAngle)/2,s=Math.cos(r),c=Math.sin(r),h=a?e:0,g=[s*h,c*h];u?n.animate().when(200,{position:g}).start("bounceOut"):n.attr("position",g)}function f(n,t){p.Group.call(this);var a=new p.Sector({z2:2}),e=new p.Polyline,u=new p.Text;this.add(a),this.add(e),this.add(u),this.updateData(n,t,!0)}var d=f.prototype;d.updateData=function(n,t,a){var e=this.childAt(0),u=this.childAt(1),r=this.childAt(2),s=n.hostModel,c=n.getItemModel(t),h=n.getItemLayout(t),g=y.extend({},h);g.label=null;var v=s.getShallow("animationTypeUpdate");if(a){e.setShape(g);var b=s.getShallow("animationType");b==="scale"?(e.shape.r=h.r0,p.initProps(e,{shape:{r:h.r}},s,t)):(e.shape.endAngle=h.startAngle,p.updateProps(e,{shape:{endAngle:h.endAngle}},s,t))}else v==="expansion"?e.setShape(g):p.updateProps(e,{shape:g},s,t);var w=n.getItemVisual(t,"color");e.useStyle(y.defaults({lineJoin:"bevel",fill:w},c.getModel("itemStyle").getItemStyle())),e.hoverStyle=c.getModel("emphasis.itemStyle").getItemStyle();var x=c.getShallow("cursor");x&&e.attr("cursor",x),m(this,n.getItemLayout(t),s.isSelected(n.getName(t)),s.get("selectedOffset"),s.get("animation"));var T=!a&&v==="transition";this._updateLabel(n,t,T),this.highDownOnUpdate=s.get("silent")?null:function(O,E){var C=s.isAnimationEnabled()&&c.get("hoverAnimation");E==="emphasis"?(u.ignore=u.hoverIgnore,r.ignore=r.hoverIgnore,C&&(e.stopAnimation(!0),e.animateTo({shape:{r:h.r+s.get("hoverOffset")}},300,"elasticOut"))):(u.ignore=u.normalIgnore,r.ignore=r.normalIgnore,C&&(e.stopAnimation(!0),e.animateTo({shape:{r:h.r}},300,"elasticOut")))},p.setHoverStyle(this)},d._updateLabel=function(n,t,a){var e=this.childAt(1),u=this.childAt(2),r=n.hostModel,s=n.getItemModel(t),c=n.getItemLayout(t),h=c.label,g=n.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 v={points:h.linePoints||[[h.x,h.y],[h.x,h.y],[h.x,h.y]]},b={x:h.x,y:h.y};a?(p.updateProps(e,{shape:v},r,t),p.updateProps(u,{style:b},r,t)):(e.attr({shape:v}),u.attr({style:b})),u.attr({rotation:h.rotation,origin:[h.x,h.y],z2:10});var w=s.getModel("label"),x=s.getModel("emphasis.label"),T=s.getModel("labelLine"),O=s.getModel("emphasis.labelLine"),g=n.getItemVisual(t,"color");p.setLabelStyle(u.style,u.hoverStyle={},w,x,{labelFetcher:n.hostModel,labelDataIndex:t,defaultText:h.text,autoColor:g,useInsideStyle:!!h.inside},{textAlign:h.textAlign,textVerticalAlign:h.verticalAlign,opacity:n.getItemVisual(t,"opacity")}),u.ignore=u.normalIgnore=!w.get("show"),u.hoverIgnore=!x.get("show"),e.ignore=e.normalIgnore=!T.get("show"),e.hoverIgnore=!O.get("show"),e.setStyle({stroke:g,opacity:n.getItemVisual(t,"opacity")}),e.setStyle(T.getModel("lineStyle").getLineStyle()),e.hoverStyle=O.getModel("lineStyle").getLineStyle();var E=T.get("smooth");E&&E===!0&&(E=.4),e.setShape({smooth:E})},y.inherits(f,p.Group);var l=S.extend({type:"pie",init:function(){var n=new p.Group;this._sectorGroup=n},render:function(n,t,a,e){if(e&&e.from===this.uid)return;var u=n.getData(),r=this._data,s=this.group,c=t.get("animation"),h=!r,g=n.get("animationType"),v=n.get("animationTypeUpdate"),b=y.curry(A,this.uid,n,c,a),w=n.get("selectedMode");if(u.diff(r).add(function(C){var I=new f(u,C);h&&g!=="scale"&&I.eachChild(function(_){_.stopAnimation(!0)}),w&&I.on("click",b),u.setItemGraphicEl(C,I),s.add(I)}).update(function(C,I){var _=r.getItemGraphicEl(I);!h&&v!=="transition"&&_.eachChild(function(F){F.stopAnimation(!0)}),_.updateData(u,C),_.off("click"),w&&_.on("click",b),s.add(_),u.setItemGraphicEl(C,_)}).remove(function(C){var I=r.getItemGraphicEl(C);s.remove(I)}).execute(),c&&u.count()>0&&(h?g!=="scale":v!=="transition")){for(var x=u.getItemLayout(0),T=1;isNaN(x.startAngle)&&T<u.count();++T)x=u.getItemLayout(T);var O=Math.max(a.getWidth(),a.getHeight())/2,E=y.bind(s.removeClipPath,s);s.setClipPath(this._createClipPath(x.cx,x.cy,O,x.startAngle,x.clockwise,E,n,h))}else s.removeClipPath();this._data=u},dispose:function(){},_createClipPath:function(n,t,a,e,u,r,s,c){var h=new p.Sector({shape:{cx:n,cy:t,r0:0,r:a,startAngle:e,endAngle:e,clockwise:u}}),g=c?p.initProps:p.updateProps;return g(h,{shape:{endAngle:e+(u?1:-1)*Math.PI*2}},s,r),h},containPoint:function(n,t){var a=t.getData(),e=a.getItemLayout(0);if(e){var u=n[0]-e.cx,r=n[1]-e.cy,s=Math.sqrt(u*u+r*r);return s<=e.r&&s>=e.r0}}}),o=l;k.exports=o},Gytx:function(k,D){k.exports=function(y,p,S,A){var m=S?S.call(A,y,p):void 0;if(m!==void 0)return!!m;if(y===p)return!0;if(typeof y!="object"||!y||typeof p!="object"||!p)return!1;var f=Object.keys(y),d=Object.keys(p);if(f.length!==d.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(p),o=0;o<f.length;o++){var n=f[o];if(!l(n))return!1;var t=y[n],a=p[n];if(m=S?S.call(A,t,a,n):void 0,m===!1||m===void 0&&t!==a)return!1}return!0}},GzdX:function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("q1tI"),A=i.n(S),m=i("rePB"),f=i("1OyB"),d=i("vuIU"),l=i("Ji7U"),o=i("md7G"),n=i("foSv"),t=i("m+aA"),a=i("TSYQ"),e=i.n(a),u=i("4IlW");function r(z){var W=z.pageXOffset,U="scrollLeft";if(typeof W!="number"){var V=z.document;W=V.documentElement[U],typeof W!="number"&&(W=V.body[U])}return W}function s(z){var W,U,V=z.ownerDocument,Q=V.body,G=V&&V.documentElement,te=z.getBoundingClientRect();return W=te.left,U=te.top,W-=G.clientLeft||Q.clientLeft||0,U-=G.clientTop||Q.clientTop||0,{left:W,top:U}}function c(z){var W=s(z),U=z.ownerDocument,V=U.defaultView||U.parentWindow;return W.left+=r(V),W.left}function h(z){var W=g();return function(){var V=Object(n.a)(z),Q;if(W){var G=Object(n.a)(this).constructor;Q=Reflect.construct(V,arguments,G)}else Q=V.apply(this,arguments);return Object(o.a)(this,Q)}}function g(){if(typeof Reflect=="undefined"||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(z){return!1}}var v=function(z){Object(l.a)(U,z);var W=h(U);function U(){var V;return Object(f.a)(this,U),V=W.apply(this,arguments),V.onHover=function(Q){var G=V.props,te=G.onHover,$=G.index;te(Q,$)},V.onClick=function(Q){var G=V.props,te=G.onClick,$=G.index;te(Q,$)},V.onKeyDown=function(Q){var G=V.props,te=G.onClick,$=G.index;Q.keyCode===13&&te(Q,$)},V}return Object(d.a)(U,[{key:"getClassName",value:function(){var Q=this.props,G=Q.prefixCls,te=Q.index,$=Q.value,le=Q.allowHalf,re=Q.focused,Se=te+1,Re=G;return $===0&&te===0&&re?Re+=" ".concat(G,"-focused"):le&&$+.5>=Se&&$<Se?(Re+=" ".concat(G,"-half ").concat(G,"-active"),re&&(Re+=" ".concat(G,"-focused"))):(Re+=Se<=$?" ".concat(G,"-full"):" ".concat(G,"-zero"),Se===$&&re&&(Re+=" ".concat(G,"-focused"))),Re}},{key:"render",value:function(){var Q=this.onHover,G=this.onClick,te=this.onKeyDown,$=this.props,le=$.disabled,re=$.prefixCls,Se=$.character,Re=$.characterRender,Pe=$.index,Je=$.count,Ve=$.value,ct=typeof Se=="function"?Se(this.props):Se,Ue=A.a.createElement("li",{className:this.getClassName()},A.a.createElement("div",{onClick:le?null:G,onKeyDown:le?null:te,onMouseMove:le?null:Q,role:"radio","aria-checked":Ve>Pe?"true":"false","aria-posinset":Pe+1,"aria-setsize":Je,tabIndex:le?-1:0},A.a.createElement("div",{className:"".concat(re,"-first")},ct),A.a.createElement("div",{className:"".concat(re,"-second")},ct)));return Re&&(Ue=Re(Ue,this.props)),Ue}}]),U}(A.a.Component);function b(z,W){var U=Object.keys(z);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(z);W&&(V=V.filter(function(Q){return Object.getOwnPropertyDescriptor(z,Q).enumerable})),U.push.apply(U,V)}return U}function w(z){for(var W=1;W<arguments.length;W++){var U=arguments[W]!=null?arguments[W]:{};W%2?b(Object(U),!0).forEach(function(V){Object(m.a)(z,V,U[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(U)):b(Object(U)).forEach(function(V){Object.defineProperty(z,V,Object.getOwnPropertyDescriptor(U,V))})}return z}function x(z){var W=T();return function(){var V=Object(n.a)(z),Q;if(W){var G=Object(n.a)(this).constructor;Q=Reflect.construct(V,arguments,G)}else Q=V.apply(this,arguments);return Object(o.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(z){return!1}}function O(){}var E=function(z){Object(l.a)(U,z);var W=x(U);function U(V){var Q;Object(f.a)(this,U),Q=W.call(this,V),Q.onHover=function(te,$){var le=Q.props.onHoverChange,re=Q.getStarValue($,te.pageX),Se=Q.state.cleanedValue;re!==Se&&Q.setState({hoverValue:re,cleanedValue:null}),le(re)},Q.onMouseLeave=function(){var te=Q.props.onHoverChange;Q.setState({hoverValue:void 0,cleanedValue:null}),te(void 0)},Q.onClick=function(te,$){var le=Q.props.allowClear,re=Q.state.value,Se=Q.getStarValue($,te.pageX),Re=!1;le&&(Re=Se===re),Q.onMouseLeave(),Q.changeValue(Re?0:Se),Q.setState({cleanedValue:Re?Se: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 $=te.keyCode,le=Q.props,re=le.count,Se=le.allowHalf,Re=le.onKeyDown,Pe=le.direction,Je=Pe==="rtl",Ve=Q.state.value;$===u.a.RIGHT&&Ve<re&&!Je?(Se?Ve+=.5:Ve+=1,Q.changeValue(Ve),te.preventDefault()):$===u.a.LEFT&&Ve>0&&!Je||$===u.a.RIGHT&&Ve>0&&Je?(Se?Ve-=.5:Ve-=1,Q.changeValue(Ve),te.preventDefault()):$===u.a.LEFT&&Ve<re&&Je&&(Se?Ve+=.5:Ve+=1,Q.changeValue(Ve),te.preventDefault()),Re&&Re(te)},Q.saveRef=function(te){return function($){Q.stars[te]=$}},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)(U,[{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,$=te.allowHalf,le=te.direction,re=le==="rtl",Se=Q+1;if($){var Re=this.getStarDOM(Q),Pe=c(Re),Je=Re.clientWidth;(re&&G-Pe>Je/2||!re&&G-Pe<Je/2)&&(Se-=.5)}return Se}},{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.style,le=Q.prefixCls,re=Q.disabled,Se=Q.className,Re=Q.character,Pe=Q.characterRender,Je=Q.tabIndex,Ve=Q.direction,ct=this.state,Ue=ct.value,ue=ct.hoverValue,rt=ct.focused,ge=[],Z=re?"".concat(le,"-disabled"):"",Y=0;Y<G;Y+=1)ge.push(A.a.createElement(v,{ref:this.saveRef(Y),index:Y,count:G,disabled:re,prefixCls:"".concat(le,"-star"),allowHalf:te,value:ue===void 0?Ue:ue,onClick:this.onClick,onHover:this.onHover,key:Y,character:Re,characterRender:Pe,focused:rt}));var ee=e()(le,Z,Se,Object(m.a)({},"".concat(le,"-rtl"),Ve==="rtl"));return A.a.createElement("ul",{className:ee,style:$,onMouseLeave:re?null:this.onMouseLeave,tabIndex:re?-1:Je,onFocus:re?null:this.onFocus,onBlur:re?null:this.onBlur,onKeyDown:re?null:this.onKeyDown,ref:this.saveRate,role:"radiogroup"},ge)}}],[{key:"getDerivedStateFromProps",value:function(Q,G){return"value"in Q&&Q.value!==void 0?w(w({},G),{},{value:Q.value}):G}}]),U}(A.a.Component);E.defaultProps={defaultValue:0,count:5,allowHalf:!1,allowClear:!0,style:{},prefixCls:"rc-rate",onChange:O,character:"\u2605",onHoverChange:O,tabIndex:0,direction:"ltr"};var C=E,I=C,_=i("Lerx"),F=i.n(_),R=i("3S7+"),B=i("H84U"),M=function(z,W){var U={};for(var V in z)Object.prototype.hasOwnProperty.call(z,V)&&W.indexOf(V)<0&&(U[V]=z[V]);if(z!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Q=0,V=Object.getOwnPropertySymbols(z);Q<V.length;Q++)W.indexOf(V[Q])<0&&Object.prototype.propertyIsEnumerable.call(z,V[Q])&&(U[V[Q]]=z[V[Q]]);return U},X=S.forwardRef(function(z,W){var U=z.prefixCls,V=z.tooltips,Q=M(z,["prefixCls","tooltips"]),G=function(Re,Pe){var Je=Pe.index;return V?S.createElement(R.a,{title:V[Je]},Re):Re},te=S.useContext(B.b),$=te.getPrefixCls,le=te.direction,re=$("rate",U);return S.createElement(I,p()({ref:W,characterRender:G},Q,{prefixCls:re,direction:le}))});X.displayName="Rate",X.defaultProps={character:S.createElement(F.a,null)};var P=D.a=X},H38U:function(k,D,i){var y=i("f4xo"),p=i("rcnY"),S=i("wU8J"),A=i("Iq15"),m=i("dWSS");function f(l,o){this.typeNumber=l,this.errorCorrectLevel=o,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}var d=f.prototype;d.addData=function(l){var o=new y(l);this.dataList.push(o),this.dataCache=null},d.isDark=function(l,o){if(l<0||this.moduleCount<=l||o<0||this.moduleCount<=o)throw new Error(l+","+o);return this.modules[l][o]},d.getModuleCount=function(){return this.moduleCount},d.make=function(){if(this.typeNumber<1){var l=1;for(l=1;l<40;l++){for(var o=p.getRSBlocks(l,this.errorCorrectLevel),n=new S,t=0,a=0;a<o.length;a++)t+=o[a].dataCount;for(var a=0;a<this.dataList.length;a++){var e=this.dataList[a];n.put(e.mode,4),n.put(e.getLength(),A.getLengthInBits(e.mode,l)),e.write(n)}if(n.getLengthInBits()<=t*8)break}this.typeNumber=l}this.makeImpl(!1,this.getBestMaskPattern())},d.makeImpl=function(l,o){this.moduleCount=this.typeNumber*4+17,this.modules=new Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=new Array(this.moduleCount);for(var t=0;t<this.moduleCount;t++)this.modules[n][t]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(l,o),this.typeNumber>=7&&this.setupTypeNumber(l),this.dataCache==null&&(this.dataCache=f.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,o)},d.setupPositionProbePattern=function(l,o){for(var n=-1;n<=7;n++){if(l+n<=-1||this.moduleCount<=l+n)continue;for(var t=-1;t<=7;t++){if(o+t<=-1||this.moduleCount<=o+t)continue;0<=n&&n<=6&&(t==0||t==6)||0<=t&&t<=6&&(n==0||n==6)||2<=n&&n<=4&&2<=t&&t<=4?this.modules[l+n][o+t]=!0:this.modules[l+n][o+t]=!1}}},d.getBestMaskPattern=function(){for(var l=0,o=0,n=0;n<8;n++){this.makeImpl(!0,n);var t=A.getLostPoint(this);(n==0||l>t)&&(l=t,o=n)}return o},d.createMovieClip=function(l,o,n){var t=l.createEmptyMovieClip(o,n),a=1;this.make();for(var e=0;e<this.modules.length;e++)for(var u=e*a,r=0;r<this.modules[e].length;r++){var s=r*a,c=this.modules[e][r];c&&(t.beginFill(0,100),t.moveTo(s,u),t.lineTo(s+a,u),t.lineTo(s+a,u+a),t.lineTo(s,u+a),t.endFill())}return t},d.setupTimingPattern=function(){for(var l=8;l<this.moduleCount-8;l++){if(this.modules[l][6]!=null)continue;this.modules[l][6]=l%2==0}for(var o=8;o<this.moduleCount-8;o++){if(this.modules[6][o]!=null)continue;this.modules[6][o]=o%2==0}},d.setupPositionAdjustPattern=function(){for(var l=A.getPatternPosition(this.typeNumber),o=0;o<l.length;o++)for(var n=0;n<l.length;n++){var t=l[o],a=l[n];if(this.modules[t][a]!=null)continue;for(var e=-2;e<=2;e++)for(var u=-2;u<=2;u++)e==-2||e==2||u==-2||u==2||e==0&&u==0?this.modules[t+e][a+u]=!0:this.modules[t+e][a+u]=!1}},d.setupTypeNumber=function(l){for(var o=A.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var t=!l&&(o>>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=t}for(var n=0;n<18;n++){var t=!l&&(o>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=t}},d.setupTypeInfo=function(l,o){for(var n=this.errorCorrectLevel<<3|o,t=A.getBCHTypeInfo(n),a=0;a<15;a++){var e=!l&&(t>>a&1)==1;a<6?this.modules[a][8]=e:a<8?this.modules[a+1][8]=e:this.modules[this.moduleCount-15+a][8]=e}for(var a=0;a<15;a++){var e=!l&&(t>>a&1)==1;a<8?this.modules[8][this.moduleCount-a-1]=e:a<9?this.modules[8][15-a-1+1]=e:this.modules[8][15-a-1]=e}this.modules[this.moduleCount-8][8]=!l},d.mapData=function(l,o){for(var n=-1,t=this.moduleCount-1,a=7,e=0,u=this.moduleCount-1;u>0;u-=2)for(u==6&&u--;;){for(var r=0;r<2;r++)if(this.modules[t][u-r]==null){var s=!1;e<l.length&&(s=(l[e]>>>a&1)==1);var c=A.getMask(o,t,u-r);c&&(s=!s),this.modules[t][u-r]=s,a--,a==-1&&(e++,a=7)}if(t+=n,t<0||this.moduleCount<=t){t-=n,n=-n;break}}},f.PAD0=236,f.PAD1=17,f.createData=function(l,o,n){for(var t=p.getRSBlocks(l,o),a=new S,e=0;e<n.length;e++){var u=n[e];a.put(u.mode,4),a.put(u.getLength(),A.getLengthInBits(u.mode,l)),u.write(a)}for(var r=0,e=0;e<t.length;e++)r+=t[e].dataCount;if(a.getLengthInBits()>r*8)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+r*8+")");for(a.getLengthInBits()+4<=r*8&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=r*8);){if(a.put(f.PAD0,8),a.getLengthInBits()>=r*8)break;a.put(f.PAD1,8)}return f.createBytes(a,t)},f.createBytes=function(l,o){for(var n=0,t=0,a=0,e=new Array(o.length),u=new Array(o.length),r=0;r<o.length;r++){var s=o[r].dataCount,c=o[r].totalCount-s;t=Math.max(t,s),a=Math.max(a,c),e[r]=new Array(s);for(var h=0;h<e[r].length;h++)e[r][h]=255&l.buffer[h+n];n+=s;var g=A.getErrorCorrectPolynomial(c),v=new m(e[r],g.getLength()-1),b=v.mod(g);u[r]=new Array(g.getLength()-1);for(var h=0;h<u[r].length;h++){var w=h+b.getLength()-u[r].length;u[r][h]=w>=0?b.get(w):0}}for(var x=0,h=0;h<o.length;h++)x+=o[h].totalCount;for(var T=new Array(x),O=0,h=0;h<t;h++)for(var r=0;r<o.length;r++)h<e[r].length&&(T[O++]=e[r][h]);for(var h=0;h<a;h++)for(var r=0;r<o.length;r++)h<u[r].length&&(T[O++]=u[r][h]);return T},k.exports=f},H6uX:function(k,D){var i=Array.prototype.slice,y=function(f){this._$handlers={},this._$eventProcessor=f};y.prototype={constructor:y,one:function(f,d,l,o){return S(this,f,d,l,o,!0)},on:function(f,d,l,o){return S(this,f,d,l,o,!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 o=[],n=0,t=l[f].length;n<t;n++)l[f][n].h!==d&&o.push(l[f][n]);l[f]=o}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 o=arguments,n=o.length;n>3&&(o=i.call(o,1));for(var t=d.length,a=0;a<t;){var e=d[a];if(l&&l.filter&&e.query!=null&&!l.filter(f,e.query)){a++;continue}switch(n){case 1:e.h.call(e.ctx);break;case 2:e.h.call(e.ctx,o[1]);break;case 3:e.h.call(e.ctx,o[1],o[2]);break;default:e.h.apply(e.ctx,o);break}e.one?(d.splice(a,1),t--):a++}}return l&&l.afterTrigger&&l.afterTrigger(f),this},triggerWithContext:function(f){var d=this._$handlers[f],l=this._$eventProcessor;if(d){var o=arguments,n=o.length;n>4&&(o=i.call(o,1,o.length-1));for(var t=o[o.length-1],a=d.length,e=0;e<a;){var u=d[e];if(l&&l.filter&&u.query!=null&&!l.filter(f,u.query)){e++;continue}switch(n){case 1:u.h.call(t);break;case 2:u.h.call(t,o[1]);break;case 3:u.h.call(t,o[1],o[2]);break;default:u.h.apply(t,o);break}u.one?(d.splice(e,1),a--):e++}}return l&&l.afterTrigger&&l.afterTrigger(f),this}};function p(m,f){var d=m._$eventProcessor;return f!=null&&d&&d.normalizeQuery&&(f=d.normalizeQuery(f)),f}function S(m,f,d,l,o,n){var t=m._$handlers;if(typeof d=="function"&&(o=l,l=d,d=null),!l||!f)return m;d=p(m,d),t[f]||(t[f]=[]);for(var a=0;a<t[f].length;a++)if(t[f][a].h===l)return m;var e={h:l,one:n,query:d,ctx:o||m,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),m}var A=y;k.exports=A},H7XF:function(k,D,i){"use strict";D.byteLength=l,D.toByteArray=n,D.fromByteArray=e;for(var y=[],p=[],S=typeof Uint8Array!="undefined"?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,f=A.length;m<f;++m)y[m]=A[m],p[A.charCodeAt(m)]=m;p["-".charCodeAt(0)]=62,p["_".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 o(u,r,s){return(r+s)*3/4-s}function n(u){var r,s=d(u),c=s[0],h=s[1],g=new S(o(u,c,h)),v=0,b=h>0?c-4:c,w;for(w=0;w<b;w+=4)r=p[u.charCodeAt(w)]<<18|p[u.charCodeAt(w+1)]<<12|p[u.charCodeAt(w+2)]<<6|p[u.charCodeAt(w+3)],g[v++]=r>>16&255,g[v++]=r>>8&255,g[v++]=r&255;return h===2&&(r=p[u.charCodeAt(w)]<<2|p[u.charCodeAt(w+1)]>>4,g[v++]=r&255),h===1&&(r=p[u.charCodeAt(w)]<<10|p[u.charCodeAt(w+1)]<<4|p[u.charCodeAt(w+2)]>>2,g[v++]=r>>8&255,g[v++]=r&255),g}function t(u){return y[u>>18&63]+y[u>>12&63]+y[u>>6&63]+y[u&63]}function a(u,r,s){for(var c,h=[],g=r;g<s;g+=3)c=(u[g]<<16&16711680)+(u[g+1]<<8&65280)+(u[g+2]&255),h.push(t(c));return h.join("")}function e(u){for(var r,s=u.length,c=s%3,h=[],g=16383,v=0,b=s-c;v<b;v+=g)h.push(a(u,v,v+g>b?b:v+g));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(k,D,i){var y=i("QkVE");function p(S,A){var m=y(this,S),f=m.size;return m.set(S,A),this.size+=m.size==f?0:1,this}k.exports=p},HBhm:function(k,D,i){"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(k,D,i){"use strict";(function(y){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/var p=i("H7XF"),S=i("kVK+"),A=i("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:m(),D.kMaxLength=f();function m(){try{var ge=new Uint8Array(1);return ge.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ge.foo()===42&&typeof ge.subarray=="function"&&ge.subarray(1,1).byteLength===0}catch(Z){return!1}}function f(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function d(ge,Z){if(f()<Z)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(ge=new Uint8Array(Z),ge.__proto__=l.prototype):(ge===null&&(ge=new l(Z)),ge.length=Z),ge}function l(ge,Z,Y){if(!l.TYPED_ARRAY_SUPPORT&&!(this instanceof l))return new l(ge,Z,Y);if(typeof ge=="number"){if(typeof Z=="string")throw new Error("If encoding is specified then the first argument must be a string");return a(this,ge)}return o(this,ge,Z,Y)}l.poolSize=8192,l._augment=function(ge){return ge.__proto__=l.prototype,ge};function o(ge,Z,Y,ee){if(typeof Z=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&Z instanceof ArrayBuffer?r(ge,Z,Y,ee):typeof Z=="string"?e(ge,Z,Y):s(ge,Z)}l.from=function(ge,Z,Y){return o(null,ge,Z,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 n(ge){if(typeof ge!="number")throw new TypeError('"size" argument must be a number');if(ge<0)throw new RangeError('"size" argument must not be negative')}function t(ge,Z,Y,ee){return n(Z),Z<=0?d(ge,Z):Y!==void 0?typeof ee=="string"?d(ge,Z).fill(Y,ee):d(ge,Z).fill(Y):d(ge,Z)}l.alloc=function(ge,Z,Y){return t(null,ge,Z,Y)};function a(ge,Z){if(n(Z),ge=d(ge,Z<0?0:c(Z)|0),!l.TYPED_ARRAY_SUPPORT)for(var Y=0;Y<Z;++Y)ge[Y]=0;return ge}l.allocUnsafe=function(ge){return a(null,ge)},l.allocUnsafeSlow=function(ge){return a(null,ge)};function e(ge,Z,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!l.isEncoding(Y))throw new TypeError('"encoding" must be a valid string encoding');var ee=g(Z,Y)|0;ge=d(ge,ee);var fe=ge.write(Z,Y);return fe!==ee&&(ge=ge.slice(0,fe)),ge}function u(ge,Z){var Y=Z.length<0?0:c(Z.length)|0;ge=d(ge,Y);for(var ee=0;ee<Y;ee+=1)ge[ee]=Z[ee]&255;return ge}function r(ge,Z,Y,ee){if(Z.byteLength,Y<0||Z.byteLength<Y)throw new RangeError("'offset' is out of bounds");if(Z.byteLength<Y+(ee||0))throw new RangeError("'length' is out of bounds");return Y===void 0&&ee===void 0?Z=new Uint8Array(Z):ee===void 0?Z=new Uint8Array(Z,Y):Z=new Uint8Array(Z,Y,ee),l.TYPED_ARRAY_SUPPORT?(ge=Z,ge.__proto__=l.prototype):ge=u(ge,Z),ge}function s(ge,Z){if(l.isBuffer(Z)){var Y=c(Z.length)|0;return ge=d(ge,Y),ge.length===0||Z.copy(ge,0,0,Y),ge}if(Z){if(typeof ArrayBuffer!="undefined"&&Z.buffer instanceof ArrayBuffer||"length"in Z)return typeof Z.length!="number"||rt(Z.length)?d(ge,0):u(ge,Z);if(Z.type==="Buffer"&&A(Z.data))return u(ge,Z.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(ge){if(ge>=f())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f().toString(16)+" bytes");return ge|0}function h(ge){return+ge!=ge&&(ge=0),l.alloc(+ge)}l.isBuffer=function(Z){return!!(Z!=null&&Z._isBuffer)},l.compare=function(Z,Y){if(!l.isBuffer(Z)||!l.isBuffer(Y))throw new TypeError("Arguments must be Buffers");if(Z===Y)return 0;for(var ee=Z.length,fe=Y.length,be=0,Ce=Math.min(ee,fe);be<Ce;++be)if(Z[be]!==Y[be]){ee=Z[be],fe=Y[be];break}return ee<fe?-1:fe<ee?1:0},l.isEncoding=function(Z){switch(String(Z).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(Z,Y){if(!A(Z))throw new TypeError('"list" argument must be an Array of Buffers');if(Z.length===0)return l.alloc(0);var ee;if(Y===void 0)for(Y=0,ee=0;ee<Z.length;++ee)Y+=Z[ee].length;var fe=l.allocUnsafe(Y),be=0;for(ee=0;ee<Z.length;++ee){var Ce=Z[ee];if(!l.isBuffer(Ce))throw new TypeError('"list" argument must be an Array of Buffers');Ce.copy(fe,be),be+=Ce.length}return fe};function g(ge,Z){if(l.isBuffer(ge))return ge.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(ge)||ge instanceof ArrayBuffer))return ge.byteLength;typeof ge!="string"&&(ge=""+ge);var Y=ge.length;if(Y===0)return 0;for(var ee=!1;;)switch(Z){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":case void 0:return Je(ge).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y*2;case"hex":return Y>>>1;case"base64":return Ue(ge).length;default:if(ee)return Je(ge).length;Z=(""+Z).toLowerCase(),ee=!0}}l.byteLength=g;function v(ge,Z,Y){var ee=!1;if((Z===void 0||Z<0)&&(Z=0),Z>this.length)return"";if((Y===void 0||Y>this.length)&&(Y=this.length),Y<=0)return"";if(Y>>>=0,Z>>>=0,Y<=Z)return"";for(ge||(ge="utf8");;)switch(ge){case"hex":return z(this,Z,Y);case"utf8":case"utf-8":return R(this,Z,Y);case"ascii":return X(this,Z,Y);case"latin1":case"binary":return P(this,Z,Y);case"base64":return F(this,Z,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,Z,Y);default:if(ee)throw new TypeError("Unknown encoding: "+ge);ge=(ge+"").toLowerCase(),ee=!0}}l.prototype._isBuffer=!0;function b(ge,Z,Y){var ee=ge[Z];ge[Z]=ge[Y],ge[Y]=ee}l.prototype.swap16=function(){var Z=this.length;if(Z%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Y=0;Y<Z;Y+=2)b(this,Y,Y+1);return this},l.prototype.swap32=function(){var Z=this.length;if(Z%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Y=0;Y<Z;Y+=4)b(this,Y,Y+3),b(this,Y+1,Y+2);return this},l.prototype.swap64=function(){var Z=this.length;if(Z%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Y=0;Y<Z;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 Z=this.length|0;return Z===0?"":arguments.length===0?R(this,0,Z):v.apply(this,arguments)},l.prototype.equals=function(Z){if(!l.isBuffer(Z))throw new TypeError("Argument must be a Buffer");return this===Z?!0:l.compare(this,Z)===0},l.prototype.inspect=function(){var Z="",Y=D.INSPECT_MAX_BYTES;return this.length>0&&(Z=this.toString("hex",0,Y).match(/.{2}/g).join(" "),this.length>Y&&(Z+=" ... ")),"<Buffer "+Z+">"},l.prototype.compare=function(Z,Y,ee,fe,be){if(!l.isBuffer(Z))throw new TypeError("Argument must be a Buffer");if(Y===void 0&&(Y=0),ee===void 0&&(ee=Z?Z.length:0),fe===void 0&&(fe=0),be===void 0&&(be=this.length),Y<0||ee>Z.length||fe<0||be>this.length)throw new RangeError("out of range index");if(fe>=be&&Y>=ee)return 0;if(fe>=be)return-1;if(Y>=ee)return 1;if(Y>>>=0,ee>>>=0,fe>>>=0,be>>>=0,this===Z)return 0;for(var Ce=be-fe,Te=ee-Y,he=Math.min(Ce,Te),ye=this.slice(fe,be),Ie=Z.slice(Y,ee),tt=0;tt<he;++tt)if(ye[tt]!==Ie[tt]){Ce=ye[tt],Te=Ie[tt];break}return Ce<Te?-1:Te<Ce?1:0};function w(ge,Z,Y,ee,fe){if(ge.length===0)return-1;if(typeof Y=="string"?(ee=Y,Y=0):Y>2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,isNaN(Y)&&(Y=fe?0:ge.length-1),Y<0&&(Y=ge.length+Y),Y>=ge.length){if(fe)return-1;Y=ge.length-1}else if(Y<0)if(fe)Y=0;else return-1;if(typeof Z=="string"&&(Z=l.from(Z,ee)),l.isBuffer(Z))return Z.length===0?-1:x(ge,Z,Y,ee,fe);if(typeof Z=="number")return Z=Z&255,l.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?fe?Uint8Array.prototype.indexOf.call(ge,Z,Y):Uint8Array.prototype.lastIndexOf.call(ge,Z,Y):x(ge,[Z],Y,ee,fe);throw new TypeError("val must be string, number or Buffer")}function x(ge,Z,Y,ee,fe){var be=1,Ce=ge.length,Te=Z.length;if(ee!==void 0&&(ee=String(ee).toLowerCase(),ee==="ucs2"||ee==="ucs-2"||ee==="utf16le"||ee==="utf-16le")){if(ge.length<2||Z.length<2)return-1;be=2,Ce/=2,Te/=2,Y/=2}function he(st,Fe){return be===1?st[Fe]:st.readUInt16BE(Fe*be)}var ye;if(fe){var Ie=-1;for(ye=Y;ye<Ce;ye++)if(he(ge,ye)===he(Z,Ie===-1?0:ye-Ie)){if(Ie===-1&&(Ie=ye),ye-Ie+1===Te)return Ie*be}else Ie!==-1&&(ye-=ye-Ie),Ie=-1}else for(Y+Te>Ce&&(Y=Ce-Te),ye=Y;ye>=0;ye--){for(var tt=!0,pt=0;pt<Te;pt++)if(he(ge,ye+pt)!==he(Z,pt)){tt=!1;break}if(tt)return ye}return-1}l.prototype.includes=function(Z,Y,ee){return this.indexOf(Z,Y,ee)!==-1},l.prototype.indexOf=function(Z,Y,ee){return w(this,Z,Y,ee,!0)},l.prototype.lastIndexOf=function(Z,Y,ee){return w(this,Z,Y,ee,!1)};function T(ge,Z,Y,ee){Y=Number(Y)||0;var fe=ge.length-Y;ee?(ee=Number(ee),ee>fe&&(ee=fe)):ee=fe;var be=Z.length;if(be%2!==0)throw new TypeError("Invalid hex string");ee>be/2&&(ee=be/2);for(var Ce=0;Ce<ee;++Ce){var Te=parseInt(Z.substr(Ce*2,2),16);if(isNaN(Te))return Ce;ge[Y+Ce]=Te}return Ce}function O(ge,Z,Y,ee){return ue(Je(Z,ge.length-Y),ge,Y,ee)}function E(ge,Z,Y,ee){return ue(Ve(Z),ge,Y,ee)}function C(ge,Z,Y,ee){return E(ge,Z,Y,ee)}function I(ge,Z,Y,ee){return ue(Ue(Z),ge,Y,ee)}function _(ge,Z,Y,ee){return ue(ct(Z,ge.length-Y),ge,Y,ee)}l.prototype.write=function(Z,Y,ee,fe){if(Y===void 0)fe="utf8",ee=this.length,Y=0;else if(ee===void 0&&typeof Y=="string")fe=Y,ee=this.length,Y=0;else if(isFinite(Y))Y=Y|0,isFinite(ee)?(ee=ee|0,fe===void 0&&(fe="utf8")):(fe=ee,ee=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var be=this.length-Y;if((ee===void 0||ee>be)&&(ee=be),Z.length>0&&(ee<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");fe||(fe="utf8");for(var Ce=!1;;)switch(fe){case"hex":return T(this,Z,Y,ee);case"utf8":case"utf-8":return O(this,Z,Y,ee);case"ascii":return E(this,Z,Y,ee);case"latin1":case"binary":return C(this,Z,Y,ee);case"base64":return I(this,Z,Y,ee);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,Z,Y,ee);default:if(Ce)throw new TypeError("Unknown encoding: "+fe);fe=(""+fe).toLowerCase(),Ce=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function F(ge,Z,Y){return Z===0&&Y===ge.length?p.fromByteArray(ge):p.fromByteArray(ge.slice(Z,Y))}function R(ge,Z,Y){Y=Math.min(ge.length,Y);for(var ee=[],fe=Z;fe<Y;){var be=ge[fe],Ce=null,Te=be>239?4:be>223?3:be>191?2:1;if(fe+Te<=Y){var he,ye,Ie,tt;switch(Te){case 1:be<128&&(Ce=be);break;case 2:he=ge[fe+1],(he&192)===128&&(tt=(be&31)<<6|he&63,tt>127&&(Ce=tt));break;case 3:he=ge[fe+1],ye=ge[fe+2],(he&192)===128&&(ye&192)===128&&(tt=(be&15)<<12|(he&63)<<6|ye&63,tt>2047&&(tt<55296||tt>57343)&&(Ce=tt));break;case 4:he=ge[fe+1],ye=ge[fe+2],Ie=ge[fe+3],(he&192)===128&&(ye&192)===128&&(Ie&192)===128&&(tt=(be&15)<<18|(he&63)<<12|(ye&63)<<6|Ie&63,tt>65535&&tt<1114112&&(Ce=tt))}}Ce===null?(Ce=65533,Te=1):Ce>65535&&(Ce-=65536,ee.push(Ce>>>10&1023|55296),Ce=56320|Ce&1023),ee.push(Ce),fe+=Te}return M(ee)}var B=4096;function M(ge){var Z=ge.length;if(Z<=B)return String.fromCharCode.apply(String,ge);for(var Y="",ee=0;ee<Z;)Y+=String.fromCharCode.apply(String,ge.slice(ee,ee+=B));return Y}function X(ge,Z,Y){var ee="";Y=Math.min(ge.length,Y);for(var fe=Z;fe<Y;++fe)ee+=String.fromCharCode(ge[fe]&127);return ee}function P(ge,Z,Y){var ee="";Y=Math.min(ge.length,Y);for(var fe=Z;fe<Y;++fe)ee+=String.fromCharCode(ge[fe]);return ee}function z(ge,Z,Y){var ee=ge.length;(!Z||Z<0)&&(Z=0),(!Y||Y<0||Y>ee)&&(Y=ee);for(var fe="",be=Z;be<Y;++be)fe+=Pe(ge[be]);return fe}function W(ge,Z,Y){for(var ee=ge.slice(Z,Y),fe="",be=0;be<ee.length;be+=2)fe+=String.fromCharCode(ee[be]+ee[be+1]*256);return fe}l.prototype.slice=function(Z,Y){var ee=this.length;Z=~~Z,Y=Y===void 0?ee:~~Y,Z<0?(Z+=ee,Z<0&&(Z=0)):Z>ee&&(Z=ee),Y<0?(Y+=ee,Y<0&&(Y=0)):Y>ee&&(Y=ee),Y<Z&&(Y=Z);var fe;if(l.TYPED_ARRAY_SUPPORT)fe=this.subarray(Z,Y),fe.__proto__=l.prototype;else{var be=Y-Z;fe=new l(be,void 0);for(var Ce=0;Ce<be;++Ce)fe[Ce]=this[Ce+Z]}return fe};function U(ge,Z,Y){if(ge%1!==0||ge<0)throw new RangeError("offset is not uint");if(ge+Z>Y)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUIntLE=function(Z,Y,ee){Z=Z|0,Y=Y|0,ee||U(Z,Y,this.length);for(var fe=this[Z],be=1,Ce=0;++Ce<Y&&(be*=256);)fe+=this[Z+Ce]*be;return fe},l.prototype.readUIntBE=function(Z,Y,ee){Z=Z|0,Y=Y|0,ee||U(Z,Y,this.length);for(var fe=this[Z+--Y],be=1;Y>0&&(be*=256);)fe+=this[Z+--Y]*be;return fe},l.prototype.readUInt8=function(Z,Y){return Y||U(Z,1,this.length),this[Z]},l.prototype.readUInt16LE=function(Z,Y){return Y||U(Z,2,this.length),this[Z]|this[Z+1]<<8},l.prototype.readUInt16BE=function(Z,Y){return Y||U(Z,2,this.length),this[Z]<<8|this[Z+1]},l.prototype.readUInt32LE=function(Z,Y){return Y||U(Z,4,this.length),(this[Z]|this[Z+1]<<8|this[Z+2]<<16)+this[Z+3]*16777216},l.prototype.readUInt32BE=function(Z,Y){return Y||U(Z,4,this.length),this[Z]*16777216+(this[Z+1]<<16|this[Z+2]<<8|this[Z+3])},l.prototype.readIntLE=function(Z,Y,ee){Z=Z|0,Y=Y|0,ee||U(Z,Y,this.length);for(var fe=this[Z],be=1,Ce=0;++Ce<Y&&(be*=256);)fe+=this[Z+Ce]*be;return be*=128,fe>=be&&(fe-=Math.pow(2,8*Y)),fe},l.prototype.readIntBE=function(Z,Y,ee){Z=Z|0,Y=Y|0,ee||U(Z,Y,this.length);for(var fe=Y,be=1,Ce=this[Z+--fe];fe>0&&(be*=256);)Ce+=this[Z+--fe]*be;return be*=128,Ce>=be&&(Ce-=Math.pow(2,8*Y)),Ce},l.prototype.readInt8=function(Z,Y){return Y||U(Z,1,this.length),this[Z]&128?(255-this[Z]+1)*-1:this[Z]},l.prototype.readInt16LE=function(Z,Y){Y||U(Z,2,this.length);var ee=this[Z]|this[Z+1]<<8;return ee&32768?ee|4294901760:ee},l.prototype.readInt16BE=function(Z,Y){Y||U(Z,2,this.length);var ee=this[Z+1]|this[Z]<<8;return ee&32768?ee|4294901760:ee},l.prototype.readInt32LE=function(Z,Y){return Y||U(Z,4,this.length),this[Z]|this[Z+1]<<8|this[Z+2]<<16|this[Z+3]<<24},l.prototype.readInt32BE=function(Z,Y){return Y||U(Z,4,this.length),this[Z]<<24|this[Z+1]<<16|this[Z+2]<<8|this[Z+3]},l.prototype.readFloatLE=function(Z,Y){return Y||U(Z,4,this.length),S.read(this,Z,!0,23,4)},l.prototype.readFloatBE=function(Z,Y){return Y||U(Z,4,this.length),S.read(this,Z,!1,23,4)},l.prototype.readDoubleLE=function(Z,Y){return Y||U(Z,8,this.length),S.read(this,Z,!0,52,8)},l.prototype.readDoubleBE=function(Z,Y){return Y||U(Z,8,this.length),S.read(this,Z,!1,52,8)};function V(ge,Z,Y,ee,fe,be){if(!l.isBuffer(ge))throw new TypeError('"buffer" argument must be a Buffer instance');if(Z>fe||Z<be)throw new RangeError('"value" argument is out of bounds');if(Y+ee>ge.length)throw new RangeError("Index out of range")}l.prototype.writeUIntLE=function(Z,Y,ee,fe){if(Z=+Z,Y=Y|0,ee=ee|0,!fe){var be=Math.pow(2,8*ee)-1;V(this,Z,Y,ee,be,0)}var Ce=1,Te=0;for(this[Y]=Z&255;++Te<ee&&(Ce*=256);)this[Y+Te]=Z/Ce&255;return Y+ee},l.prototype.writeUIntBE=function(Z,Y,ee,fe){if(Z=+Z,Y=Y|0,ee=ee|0,!fe){var be=Math.pow(2,8*ee)-1;V(this,Z,Y,ee,be,0)}var Ce=ee-1,Te=1;for(this[Y+Ce]=Z&255;--Ce>=0&&(Te*=256);)this[Y+Ce]=Z/Te&255;return Y+ee},l.prototype.writeUInt8=function(Z,Y,ee){return Z=+Z,Y=Y|0,ee||V(this,Z,Y,1,255,0),l.TYPED_ARRAY_SUPPORT||(Z=Math.floor(Z)),this[Y]=Z&255,Y+1};function Q(ge,Z,Y,ee){Z<0&&(Z=65535+Z+1);for(var fe=0,be=Math.min(ge.length-Y,2);fe<be;++fe)ge[Y+fe]=(Z&255<<8*(ee?fe:1-fe))>>>(ee?fe:1-fe)*8}l.prototype.writeUInt16LE=function(Z,Y,ee){return Z=+Z,Y=Y|0,ee||V(this,Z,Y,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[Y]=Z&255,this[Y+1]=Z>>>8):Q(this,Z,Y,!0),Y+2},l.prototype.writeUInt16BE=function(Z,Y,ee){return Z=+Z,Y=Y|0,ee||V(this,Z,Y,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[Y]=Z>>>8,this[Y+1]=Z&255):Q(this,Z,Y,!1),Y+2};function G(ge,Z,Y,ee){Z<0&&(Z=4294967295+Z+1);for(var fe=0,be=Math.min(ge.length-Y,4);fe<be;++fe)ge[Y+fe]=Z>>>(ee?fe:3-fe)*8&255}l.prototype.writeUInt32LE=function(Z,Y,ee){return Z=+Z,Y=Y|0,ee||V(this,Z,Y,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[Y+3]=Z>>>24,this[Y+2]=Z>>>16,this[Y+1]=Z>>>8,this[Y]=Z&255):G(this,Z,Y,!0),Y+4},l.prototype.writeUInt32BE=function(Z,Y,ee){return Z=+Z,Y=Y|0,ee||V(this,Z,Y,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[Y]=Z>>>24,this[Y+1]=Z>>>16,this[Y+2]=Z>>>8,this[Y+3]=Z&255):G(this,Z,Y,!1),Y+4},l.prototype.writeIntLE=function(Z,Y,ee,fe){if(Z=+Z,Y=Y|0,!fe){var be=Math.pow(2,8*ee-1);V(this,Z,Y,ee,be-1,-be)}var Ce=0,Te=1,he=0;for(this[Y]=Z&255;++Ce<ee&&(Te*=256);)Z<0&&he===0&&this[Y+Ce-1]!==0&&(he=1),this[Y+Ce]=(Z/Te>>0)-he&255;return Y+ee},l.prototype.writeIntBE=function(Z,Y,ee,fe){if(Z=+Z,Y=Y|0,!fe){var be=Math.pow(2,8*ee-1);V(this,Z,Y,ee,be-1,-be)}var Ce=ee-1,Te=1,he=0;for(this[Y+Ce]=Z&255;--Ce>=0&&(Te*=256);)Z<0&&he===0&&this[Y+Ce+1]!==0&&(he=1),this[Y+Ce]=(Z/Te>>0)-he&255;return Y+ee},l.prototype.writeInt8=function(Z,Y,ee){return Z=+Z,Y=Y|0,ee||V(this,Z,Y,1,127,-128),l.TYPED_ARRAY_SUPPORT||(Z=Math.floor(Z)),Z<0&&(Z=255+Z+1),this[Y]=Z&255,Y+1},l.prototype.writeInt16LE=function(Z,Y,ee){return Z=+Z,Y=Y|0,ee||V(this,Z,Y,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[Y]=Z&255,this[Y+1]=Z>>>8):Q(this,Z,Y,!0),Y+2},l.prototype.writeInt16BE=function(Z,Y,ee){return Z=+Z,Y=Y|0,ee||V(this,Z,Y,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[Y]=Z>>>8,this[Y+1]=Z&255):Q(this,Z,Y,!1),Y+2},l.prototype.writeInt32LE=function(Z,Y,ee){return Z=+Z,Y=Y|0,ee||V(this,Z,Y,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[Y]=Z&255,this[Y+1]=Z>>>8,this[Y+2]=Z>>>16,this[Y+3]=Z>>>24):G(this,Z,Y,!0),Y+4},l.prototype.writeInt32BE=function(Z,Y,ee){return Z=+Z,Y=Y|0,ee||V(this,Z,Y,4,2147483647,-2147483648),Z<0&&(Z=4294967295+Z+1),l.TYPED_ARRAY_SUPPORT?(this[Y]=Z>>>24,this[Y+1]=Z>>>16,this[Y+2]=Z>>>8,this[Y+3]=Z&255):G(this,Z,Y,!1),Y+4};function te(ge,Z,Y,ee,fe,be){if(Y+ee>ge.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function $(ge,Z,Y,ee,fe){return fe||te(ge,Z,Y,4,34028234663852886e22,-34028234663852886e22),S.write(ge,Z,Y,ee,23,4),Y+4}l.prototype.writeFloatLE=function(Z,Y,ee){return $(this,Z,Y,!0,ee)},l.prototype.writeFloatBE=function(Z,Y,ee){return $(this,Z,Y,!1,ee)};function le(ge,Z,Y,ee,fe){return fe||te(ge,Z,Y,8,17976931348623157e292,-17976931348623157e292),S.write(ge,Z,Y,ee,52,8),Y+8}l.prototype.writeDoubleLE=function(Z,Y,ee){return le(this,Z,Y,!0,ee)},l.prototype.writeDoubleBE=function(Z,Y,ee){return le(this,Z,Y,!1,ee)},l.prototype.copy=function(Z,Y,ee,fe){if(ee||(ee=0),!fe&&fe!==0&&(fe=this.length),Y>=Z.length&&(Y=Z.length),Y||(Y=0),fe>0&&fe<ee&&(fe=ee),fe===ee)return 0;if(Z.length===0||this.length===0)return 0;if(Y<0)throw new RangeError("targetStart out of bounds");if(ee<0||ee>=this.length)throw new RangeError("sourceStart out of bounds");if(fe<0)throw new RangeError("sourceEnd out of bounds");fe>this.length&&(fe=this.length),Z.length-Y<fe-ee&&(fe=Z.length-Y+ee);var be=fe-ee,Ce;if(this===Z&&ee<Y&&Y<fe)for(Ce=be-1;Ce>=0;--Ce)Z[Ce+Y]=this[Ce+ee];else if(be<1e3||!l.TYPED_ARRAY_SUPPORT)for(Ce=0;Ce<be;++Ce)Z[Ce+Y]=this[Ce+ee];else Uint8Array.prototype.set.call(Z,this.subarray(ee,ee+be),Y);return be},l.prototype.fill=function(Z,Y,ee,fe){if(typeof Z=="string"){if(typeof Y=="string"?(fe=Y,Y=0,ee=this.length):typeof ee=="string"&&(fe=ee,ee=this.length),Z.length===1){var be=Z.charCodeAt(0);be<256&&(Z=be)}if(fe!==void 0&&typeof fe!="string")throw new TypeError("encoding must be a string");if(typeof fe=="string"&&!l.isEncoding(fe))throw new TypeError("Unknown encoding: "+fe)}else typeof Z=="number"&&(Z=Z&255);if(Y<0||this.length<Y||this.length<ee)throw new RangeError("Out of range index");if(ee<=Y)return this;Y=Y>>>0,ee=ee===void 0?this.length:ee>>>0,Z||(Z=0);var Ce;if(typeof Z=="number")for(Ce=Y;Ce<ee;++Ce)this[Ce]=Z;else{var Te=l.isBuffer(Z)?Z:Je(new l(Z,fe).toString()),he=Te.length;for(Ce=0;Ce<ee-Y;++Ce)this[Ce+Y]=Te[Ce%he]}return this};var re=/[^+\/0-9A-Za-z-_]/g;function Se(ge){if(ge=Re(ge).replace(re,""),ge.length<2)return"";for(;ge.length%4!==0;)ge=ge+"=";return ge}function Re(ge){return ge.trim?ge.trim():ge.replace(/^\s+|\s+$/g,"")}function Pe(ge){return ge<16?"0"+ge.toString(16):ge.toString(16)}function Je(ge,Z){Z=Z||Infinity;for(var Y,ee=ge.length,fe=null,be=[],Ce=0;Ce<ee;++Ce){if(Y=ge.charCodeAt(Ce),Y>55295&&Y<57344){if(!fe){if(Y>56319){(Z-=3)>-1&&be.push(239,191,189);continue}else if(Ce+1===ee){(Z-=3)>-1&&be.push(239,191,189);continue}fe=Y;continue}if(Y<56320){(Z-=3)>-1&&be.push(239,191,189),fe=Y;continue}Y=(fe-55296<<10|Y-56320)+65536}else fe&&((Z-=3)>-1&&be.push(239,191,189));if(fe=null,Y<128){if((Z-=1)<0)break;be.push(Y)}else if(Y<2048){if((Z-=2)<0)break;be.push(Y>>6|192,Y&63|128)}else if(Y<65536){if((Z-=3)<0)break;be.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if((Z-=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(ge){for(var Z=[],Y=0;Y<ge.length;++Y)Z.push(ge.charCodeAt(Y)&255);return Z}function ct(ge,Z){for(var Y,ee,fe,be=[],Ce=0;Ce<ge.length&&!((Z-=2)<0);++Ce)Y=ge.charCodeAt(Ce),ee=Y>>8,fe=Y%256,be.push(fe),be.push(ee);return be}function Ue(ge){return p.toByteArray(Se(ge))}function ue(ge,Z,Y,ee){for(var fe=0;fe<ee&&!(fe+Y>=Z.length||fe>=ge.length);++fe)Z[fe+Y]=ge[fe];return fe}function rt(ge){return ge!==ge}}).call(this,i("yLpj"))},HDyB:function(k,D,i){var y=i("nmnc"),p=i("JHRd"),S=i("ljhN"),A=i("or5M"),m=i("7fqy"),f=i("rEGp"),d=1,l=2,o="[object Boolean]",n="[object Date]",t="[object Error]",a="[object Map]",e="[object Number]",u="[object RegExp]",r="[object Set]",s="[object String]",c="[object Symbol]",h="[object ArrayBuffer]",g="[object DataView]",v=y?y.prototype:void 0,b=v?v.valueOf:void 0;function w(x,T,O,E,C,I,_){switch(O){case g:if(x.byteLength!=T.byteLength||x.byteOffset!=T.byteOffset)return!1;x=x.buffer,T=T.buffer;case h:return!(x.byteLength!=T.byteLength||!I(new p(x),new p(T)));case o:case n:case e:return S(+x,+T);case t:return x.name==T.name&&x.message==T.message;case u:case s:return x==T+"";case a:var F=m;case r:var R=E&d;if(F||(F=f),x.size!=T.size&&!R)return!1;var B=_.get(x);if(B)return B==T;E|=l,_.set(x,T);var M=A(F(x),F(T),E,C,I,_);return _.delete(x),M;case c:if(b)return b.call(x)==b.call(T)}return!1}k.exports=w},"HF/U":function(k,D,i){var y=i("QBsz");function p(A){var m=A.coordinateSystem;if(m&&m.type!=="view")return;var f=A.getGraph();f.eachNode(function(d){var l=d.getModel();d.setLayout([+l.get("x"),+l.get("y")])}),S(f)}function S(A){A.eachEdge(function(m){var f=m.getModel().get("lineStyle.curveness")||0,d=y.clone(m.node1.getLayout()),l=y.clone(m.node2.getLayout()),o=[d,l];+f&&o.push([(d[0]+l[0])/2-(d[1]-l[1])*f,(d[1]+l[1])/2-(l[0]-d[0])*f]),m.setLayout(o)})}D.simpleLayout=p,D.simpleLayoutEdge=S},"HM/N":function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),A=i("/SeX"),m=i("OELB"),f=m.parsePercent,d=i("aX7z"),l=d.createScaleByModel,o=d.niceScaleExtent,n=i("IDmD"),t=i("7hqr"),a=t.getStackedDimension;i("ePAk");function e(c,h,g){var v=h.get("center"),b=g.getWidth(),w=g.getHeight();c.cx=f(v[0],b),c.cy=f(v[1],w);var x=c.getRadiusAxis(),T=Math.min(b,w)/2,O=h.get("radius");O==null?O=[0,"100%"]:S.isArray(O)||(O=[0,O]),O=[f(O[0],T),f(O[1],T)],x.inverse?x.setExtent(O[1],O[0]):x.setExtent(O[0],O[1])}function u(c,h){var g=this,v=g.getAngleAxis(),b=g.getRadiusAxis();if(v.scale.setExtent(Infinity,-Infinity),b.scale.setExtent(Infinity,-Infinity),c.eachSeries(function(T){if(T.coordinateSystem===g){var O=T.getData();S.each(O.mapDimension("radius",!0),function(E){b.scale.unionExtentFromData(O,a(O,E))}),S.each(O.mapDimension("angle",!0),function(E){v.scale.unionExtentFromData(O,a(O,E))})}}),o(v.scale,v.model),o(b.scale,b.model),v.type==="category"&&!v.onBand){var w=v.getExtent(),x=360/v.scale.count();v.inverse?w[1]+=x:w[1]-=x,v.setExtent(w[0],w[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 g=h.get("startAngle");c.setExtent(g,g+(c.inverse?-360:360))}h.axis=c,c.model=h}var s={dimensions:A.prototype.dimensions,create:function(c,h){var g=[];return c.eachComponent("polar",function(v,b){var w=new A(b);w.update=u;var x=w.getRadiusAxis(),T=w.getAngleAxis(),O=v.findAxisModel("radiusAxis"),E=v.findAxisModel("angleAxis");r(x,O),r(T,E),e(w,v,h),g.push(w),v.coordinateSystem=w,w.model=v}),c.eachSeries(function(v){if(v.get("coordinateSystem")==="polar"){var b=c.queryComponents({mainType:"polar",index:v.get("polarIndex"),id:v.get("polarId")})[0];v.coordinateSystem=b.coordinateSystem}}),g}};n.register("polar",s)},HOxn:function(k,D,i){var y=i("Cwc5"),p=i("Kz5y"),S=y(p,"Promise");k.exports=S},HQEm:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("Sj0X"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},HjIi:function(k,D,i){var y=i("bYtY"),p=i("OELB"),S=p.parsePercent,A=i("7hqr"),m=A.isDimensionStacked;function f(t){return t.get("stack")||"__ec_stack_"+t.seriesIndex}function d(t,a){return a.dim+t.model.componentIndex}function l(t,a,e){var u={},r=o(y.filter(a.getSeriesByType(t),function(s){return!a.isSeriesFiltered(s)&&s.coordinateSystem&&s.coordinateSystem.type==="polar"}));a.eachSeriesByType(t,function(s){if(s.coordinateSystem.type!=="polar")return;var c=s.getData(),h=s.coordinateSystem,g=h.getBaseAxis(),v=d(h,g),b=f(s),w=r[v][b],x=w.offset,T=w.width,O=h.getOtherAxis(g),E=s.coordinateSystem.cx,C=s.coordinateSystem.cy,I=s.get("barMinHeight")||0,_=s.get("barMinAngle")||0;u[b]=u[b]||[];for(var F=c.mapDimension(O.dim),R=c.mapDimension(g.dim),B=m(c,F),M=g.dim!=="radius"||!s.get("roundCap",!0),X=O.getExtent()[0],P=0,z=c.count();P<z;P++){var W=c.get(F,P),U=c.get(R,P),V=W>=0?"p":"n",Q=X;B&&(u[b][U]||(u[b][U]={p:X,n:X}),Q=u[b][U][V]);var G,te,$,le;if(O.dim==="radius"){var re=O.dataToRadius(W)-X,Se=g.dataToAngle(U);Math.abs(re)<I&&(re=(re<0?-1:1)*I),G=Q,te=Q+re,$=Se-x,le=$-T,B&&(u[b][U][V]=te)}else{var Re=O.dataToAngle(W,M)-X,Pe=g.dataToRadius(U);Math.abs(Re)<_&&(Re=(Re<0?-1:1)*_),G=Pe+x,te=G+T,$=Q,le=Q+Re,B&&(u[b][U][V]=le)}c.setItemLayout(P,{cx:E,cy:C,r0:G,r:te,startAngle:-$*Math.PI/180,endAngle:-le*Math.PI/180})}},this)}function o(t,a){var e={};y.each(t,function(r,s){var c=r.getData(),h=r.coordinateSystem,g=h.getBaseAxis(),v=d(h,g),b=g.getExtent(),w=g.type==="category"?g.getBandWidth():Math.abs(b[1]-b[0])/c.count(),x=e[v]||{bandWidth:w,remainedWidth:w,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},T=x.stacks;e[v]=x;var O=f(r);T[O]||x.autoWidthCount++,T[O]=T[O]||{width:0,maxWidth:0};var E=S(r.get("barWidth"),w),C=S(r.get("barMaxWidth"),w),I=r.get("barGap"),_=r.get("barCategoryGap");E&&!T[O].width&&(E=Math.min(x.remainedWidth,E),T[O].width=E,x.remainedWidth-=E),C&&(T[O].maxWidth=C),I!=null&&(x.gap=I),_!=null&&(x.categoryGap=_)});var u={};return y.each(e,function(r,s){u[s]={};var c=r.stacks,h=r.bandWidth,g=S(r.categoryGap,h),v=S(r.gap,1),b=r.remainedWidth,w=r.autoWidthCount,x=(b-g)/(w+(w-1)*v);x=Math.max(x,0),y.each(c,function(C,I){var _=C.maxWidth;_&&_<x&&(_=Math.min(_,b),C.width&&(_=Math.min(_,C.width)),b-=_,C.width=_,w--)}),x=(b-g)/(w+(w-1)*v),x=Math.max(x,0);var T=0,O;y.each(c,function(C,I){C.width||(C.width=x),O=C,T+=C.width*(1+v)}),O&&(T-=O.width*v);var E=-T/2;y.each(c,function(C,I){u[s][I]=u[s][I]||{offset:E,width:C.width},E+=C.width*(1+v)})}),u}var n=l;k.exports=n},HjOm:function(k,D,i){"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"},p=y;D.default=p},Hvzi:function(k,D){function i(y){var p=this.has(y)&&delete this.__data__[y];return this.size-=p?1:0,p}k.exports=i},Hw7h:function(k,D,i){var y=i("y+Vt"),p=y.extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(S,A){var m=Math.cos,f=Math.sin,d=A.r,l=A.width,o=A.angle,n=A.x-m(o)*l*(l>=d/3?1:2),t=A.y-f(o)*l*(l>=d/3?1:2);o=A.angle-Math.PI/2,S.moveTo(n,t),S.lineTo(A.x+m(o)*l,A.y+f(o)*l),S.lineTo(A.x+m(A.angle)*d,A.y+f(A.angle)*d),S.lineTo(A.x-m(o)*l,A.y-f(o)*l),S.lineTo(n,t);return}});k.exports=p},Hxpc:function(k,D,i){var y=i("bYtY"),p=i("4NO4"),S=i("bLfw"),A=i("Qxkt"),m=i("cCMj"),f=i("7uqq"),d=S.extend({type:"geo",coordinateSystem:null,layoutMode:"box",init:function(o){S.prototype.init.apply(this,arguments),p.defaultEmphasis(o,"label",["show"])},optionUpdated:function(){var o=this.option,n=this;o.regions=f.getFilledRegions(o.regions,o.map,o.nameMap),this._optionModelMap=y.reduce(o.regions||[],function(t,a){return a.name&&t.set(a.name,new A(a,n)),t},y.createHashMap()),this.updateSelectedMap(o.regions)},defaultOption:{zlevel:0,z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",color:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},getRegionModel:function(o){return this._optionModelMap.get(o)||new A(null,this,this.ecModel)},getFormattedLabel:function(o,n){var t=this.getRegionModel(o),a=t.get("label"+(n==="normal"?".":n+".")+"formatter"),e={name:o};if(typeof a=="function")return e.status=n,a(e);if(typeof a=="string")return a.replace("{a}",o!=null?o:"")},setZoom:function(o){this.option.zoom=o},setCenter:function(o){this.option.center=o}});y.mixin(d,m);var l=d;k.exports=l},"I+77":function(k,D,i){var y=i("ProS");i("h54F"),i("lwQL"),i("10cm");var p=i("Z1r0"),S=i("f5Yq"),A=i("KUOm"),m=i("3m61"),f=i("01d+"),d=i("rdor"),l=i("WGYa"),o=i("ewwo");y.registerProcessor(p),y.registerVisual(S("graph","circle",null)),y.registerVisual(A),y.registerVisual(m),y.registerLayout(f),y.registerLayout(y.PRIORITY.VISUAL.POST_CHART_LAYOUT,d),y.registerLayout(l),y.registerCoordinateSystem("graphView",{create:o})},"I+Bx":function(k,D,i){var y=i("bYtY"),p=i("eIcI"),S=i("ieMj"),A=i("OELB"),m=i("aX7z"),f=m.getScaleExtent,d=m.niceScaleExtent,l=i("IDmD"),o=i("jCoz");function n(a,e,u){this._model=a,this.dimensions=[],this._indicatorAxes=y.map(a.getIndicatorModels(),function(r,s){var c="indicator_"+s,h=new p(c,r.get("axisType")==="log"?new o:new S);return h.name=r.get("name"),h.model=r,r.axis=h,this.dimensions.push(c),h},this),this.resize(a,u),this.cx,this.cy,this.r,this.r0,this.startAngle}n.prototype.getIndicatorAxes=function(){return this._indicatorAxes},n.prototype.dataToPoint=function(a,e){var u=this._indicatorAxes[e];return this.coordToPoint(u.dataToCoord(a),e)},n.prototype.coordToPoint=function(a,e){var u=this._indicatorAxes[e],r=u.angle,s=this.cx+a*Math.cos(r),c=this.cy-a*Math.sin(r);return[s,c]},n.prototype.pointToData=function(a){var e=a[0]-this.cx,u=a[1]-this.cy,r=Math.sqrt(e*e+u*u);e/=r,u/=r;for(var s=Math.atan2(-u,e),c=Infinity,h,g=-1,v=0;v<this._indicatorAxes.length;v++){var b=this._indicatorAxes[v],w=Math.abs(s-b.angle);w<c&&(h=b,g=v,c=w)}return[g,+(h&&h.coordToData(r))]},n.prototype.resize=function(a,e){var u=a.get("center"),r=e.getWidth(),s=e.getHeight(),c=Math.min(r,s)/2;this.cx=A.parsePercent(u[0],r),this.cy=A.parsePercent(u[1],s),this.startAngle=a.get("startAngle")*Math.PI/180;var h=a.get("radius");(typeof h=="string"||typeof h=="number")&&(h=[0,h]),this.r0=A.parsePercent(h[0],c),this.r=A.parsePercent(h[1],c),y.each(this._indicatorAxes,function(g,v){g.setExtent(this.r0,this.r);var b=this.startAngle+v*Math.PI*2/this._indicatorAxes.length;b=Math.atan2(Math.sin(b),Math.cos(b)),g.angle=b},this)},n.prototype.update=function(a,e){var u=this._indicatorAxes,r=this._model;y.each(u,function(h){h.scale.setExtent(Infinity,-Infinity)}),a.eachSeriesByType("radar",function(h,g){if(h.get("coordinateSystem")!=="radar"||a.getComponent("radar",h.get("radarIndex"))!==r)return;var v=h.getData();y.each(u,function(b){b.scale.unionExtentFromData(v,v.mapDimension(b.dim))})},this);var s=r.get("splitNumber");function c(h){var g=Math.pow(10,Math.floor(Math.log(h)/Math.LN10)),v=h/g;return v===2?v=5:v*=2,v*g}y.each(u,function(h,g){var v=f(h.scale,h.model).extent;d(h.scale,h.model);var b=h.model,w=h.scale,x=b.getMin(),T=b.getMax(),O=w.getInterval();if(x!=null&&T!=null)w.setExtent(+x,+T),w.setInterval((T-x)/s);else if(x!=null){var E;do E=x+O*s,w.setExtent(+x,E),w.setInterval(O),O=c(O);while(E<v[1]&&isFinite(E)&&isFinite(v[1]))}else if(T!=null){var C;do C=T-O*s,w.setExtent(C,+T),w.setInterval(O),O=c(O);while(C>v[0]&&isFinite(C)&&isFinite(v[0]))}else{var I=w.getTicks().length-1;I>s&&(O=c(O));var E=Math.ceil(v[1]/O)*O,C=A.round(E-O*s);w.setExtent(C,E),w.setInterval(O)}})},n.dimensions=[],n.create=function(a,e){var u=[];return a.eachComponent("radar",function(r){var s=new n(r,a,e);u.push(s),r.coordinateSystem=s}),a.eachSeriesByType("radar",function(r){r.get("coordinateSystem")==="radar"&&(r.coordinateSystem=u[r.get("radarIndex")||0])}),u},l.register("radar",n);var t=n;k.exports=t},"I3/A":function(k,D,i){var y=i("bYtY"),p=i("YXkt"),S=i("c2i1"),A=i("Mdki"),m=i("sdST"),f=i("IDmD"),d=i("MwEJ");function l(o,n,t,a,e){for(var u=new S(a),r=0;r<o.length;r++)u.addNode(y.retrieve(o[r].id,o[r].name,r),r);for(var s=[],c=[],h=0,r=0;r<n.length;r++){var g=n[r],v=g.source,b=g.target;u.addEdge(v,b,h)&&(c.push(g),s.push(y.retrieve(g.id,v+" > "+b)),h++)}var w=t.get("coordinateSystem"),x;if(w==="cartesian2d"||w==="polar")x=d(o,t);else{var T=f.get(w),O=T&&T.type!=="view"?T.dimensions||[]:[];y.indexOf(O,"value")<0&&O.concat(["value"]);var E=m(o,{coordDimensions:O});x=new p(E,t),x.initData(o)}var C=new p(["value"],t);return C.initData(c,s),e&&e(x,C),A({mainData:x,struct:u,structAttr:"graph",datas:{node:x,edge:C},datasAttr:{node:"data",edge:"edgeData"}}),u.update(),u}k.exports=l},I8Z2:function(k,D,i){"use strict";i.d(D,"a",function(){return A}),i.d(D,"b",function(){return e}),i.d(D,"c",function(){return r});var y=i("q1tI"),p=function(){var s=function(h,g){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var w in b)b.hasOwnProperty(w)&&(v[w]=b[w])},s(h,g)};return function(c,h){s(c,h);function g(){this.constructor=c}c.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)}}(),S=y.createContext(null),A=function(s){p(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),m=i("Gytx"),f=i.n(m),d=i("2mql"),l=i.n(d),o=function(){var s=function(h,g){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,b){v.__proto__=b}||function(v,b){for(var w in b)b.hasOwnProperty(w)&&(v[w]=b[w])},s(h,g)};return function(c,h){s(c,h);function g(){this.constructor=c}c.prototype=h===null?Object.create(h):(g.prototype=h.prototype,new g)}}(),n=function(){return n=Object.assign||function(s){for(var c,h=1,g=arguments.length;h<g;h++){c=arguments[h];for(var v in c)Object.prototype.hasOwnProperty.call(c,v)&&(s[v]=c[v])}return s},n.apply(this,arguments)};function t(s){return s.displayName||s.name||"Component"}var a=function(){return{}};function e(s,c){c===void 0&&(c={});var h=!!s,g=s||a;return function(b){var w=function(T){o(O,T);function O(E,C){var I=T.call(this,E,C)||this;return I.unsubscribe=null,I.handleChange=function(){if(!I.unsubscribe)return;var _=g(I.store.getState(),I.props);I.setState({subscribed:_})},I.store=I.context,I.state={subscribed:g(I.store.getState(),E),store:I.store,props:E},I}return O.getDerivedStateFromProps=function(E,C){return s&&s.length===2&&E!==C.props?{subscribed:g(C.store.getState(),E),props:E}:{props:E}},O.prototype.componentDidMount=function(){this.trySubscribe()},O.prototype.componentWillUnmount=function(){this.tryUnsubscribe()},O.prototype.shouldComponentUpdate=function(E,C){return!f()(this.props,E)||!f()(this.state.subscribed,C.subscribed)},O.prototype.trySubscribe=function(){h&&(this.unsubscribe=this.store.subscribe(this.handleChange),this.handleChange())},O.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null)},O.prototype.render=function(){var E=n(n(n({},this.props),this.state.subscribed),{store:this.store});return y.createElement(b,n({},E,{ref:this.props.miniStoreForwardedRef}))},O.displayName="Connect("+t(b)+")",O.contextType=S,O}(y.Component);if(c.forwardRef){var x=y.forwardRef(function(T,O){return y.createElement(w,n({},T,{miniStoreForwardedRef:O}))});return l()(x,b)}return l()(w,b)}}var u=function(){return u=Object.assign||function(s){for(var c,h=1,g=arguments.length;h<g;h++){c=arguments[h];for(var v in c)Object.prototype.hasOwnProperty.call(c,v)&&(s[v]=c[v])}return s},u.apply(this,arguments)};function r(s){var c=s,h=[];function g(w){c=u(u({},c),w);for(var x=0;x<h.length;x++)h[x]()}function v(){return c}function b(w){return h.push(w),function(){var T=h.indexOf(w);h.splice(T,1)}}return{setState:g,getState:v,subscribe:b}}},"I9Y+":function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("4xFK")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="DoubleRightOutlined";var n=A.forwardRef(o);D.default=n},ICMv:function(k,D,i){var y=i("bYtY"),p={getMin:function(S){var A=this.option,m=!S&&A.rangeStart!=null?A.rangeStart:A.min;return this.axis&&m!=null&&m!=="dataMin"&&typeof m!="function"&&!y.eqNaN(m)&&(m=this.axis.scale.parse(m)),m},getMax:function(S){var A=this.option,m=!S&&A.rangeEnd!=null?A.rangeEnd:A.max;return this.axis&&m!=null&&m!=="dataMax"&&typeof m!="function"&&!y.eqNaN(m)&&(m=this.axis.scale.parse(m)),m},getNeedCrossZero:function(){var S=this.option;return S.rangeStart!=null||S.rangeEnd!=null?!1:!S.scale},getCoordSysModel:y.noop,setRange:function(S,A){this.option.rangeStart=S,this.option.rangeEnd=A},resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}};k.exports=p},IDmD:function(k,D,i){var y=i("bYtY"),p={};function S(){this._coordinateSystems=[]}S.prototype={constructor:S,create:function(m,f){var d=[];y.each(p,function(l,o){var n=l.create(m,f);d=d.concat(n||[])}),this._coordinateSystems=d},update:function(m,f){y.each(this._coordinateSystems,function(d){d.update&&d.update(m,f)})},getCoordinateSystems:function(){return this._coordinateSystems.slice()}},S.register=function(m,f){p[m]=f},S.get=function(m){return p[m]};var A=S;k.exports=A},IMiH:function(k,D,i){var y=i("Sj9i"),p=i("QBsz"),S=i("4mN7"),A=i("mFDi"),m=i("LPTA"),f=m.devicePixelRatio,d={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},l=[],o=[],n=[],t=[],a=Math.min,e=Math.max,u=Math.cos,r=Math.sin,s=Math.sqrt,c=Math.abs,h=typeof Float32Array!="undefined",g=function(w){this._saveData=!(w||!1),this._saveData&&(this.data=[]),this._ctx=null};g.prototype={constructor:g,_xi:0,_yi:0,_x0:0,_y0:0,_ux:0,_uy:0,_len:0,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(w,x,T){T=T||0,this._ux=c(T/f/w)||0,this._uy=c(T/f/x)||0},getContext:function(){return this._ctx},beginPath:function(w){return this._ctx=w,w&&w.beginPath(),w&&(this.dpr=w.dpr),this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(w,x){return this.addData(d.M,w,x),this._ctx&&this._ctx.moveTo(w,x),this._x0=w,this._y0=x,this._xi=w,this._yi=x,this},lineTo:function(w,x){var T=c(w-this._xi)>this._ux||c(x-this._yi)>this._uy||this._len<5;return this.addData(d.L,w,x),this._ctx&&T&&(this._needsDash()?this._dashedLineTo(w,x):this._ctx.lineTo(w,x)),T&&(this._xi=w,this._yi=x),this},bezierCurveTo:function(w,x,T,O,E,C){return this.addData(d.C,w,x,T,O,E,C),this._ctx&&(this._needsDash()?this._dashedBezierTo(w,x,T,O,E,C):this._ctx.bezierCurveTo(w,x,T,O,E,C)),this._xi=E,this._yi=C,this},quadraticCurveTo:function(w,x,T,O){return this.addData(d.Q,w,x,T,O),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(w,x,T,O):this._ctx.quadraticCurveTo(w,x,T,O)),this._xi=T,this._yi=O,this},arc:function(w,x,T,O,E,C){return this.addData(d.A,w,x,T,T,O,E-O,0,C?0:1),this._ctx&&this._ctx.arc(w,x,T,O,E,C),this._xi=u(E)*T+w,this._yi=r(E)*T+x,this},arcTo:function(w,x,T,O,E){return this._ctx&&this._ctx.arcTo(w,x,T,O,E),this},rect:function(w,x,T,O){return this._ctx&&this._ctx.rect(w,x,T,O),this.addData(d.R,w,x,T,O),this},closePath:function(){this.addData(d.Z);var w=this._ctx,x=this._x0,T=this._y0;return w&&(this._needsDash()&&this._dashedLineTo(x,T),w.closePath()),this._xi=x,this._yi=T,this},fill:function(w){w&&w.fill(),this.toStatic()},stroke:function(w){w&&w.stroke(),this.toStatic()},setLineDash:function(w){if(w instanceof Array){this._lineDash=w,this._dashIdx=0;for(var x=0,T=0;T<w.length;T++)x+=w[T];this._dashSum=x}return this},setLineDashOffset:function(w){return this._dashOffset=w,this},len:function(){return this._len},setData:function(w){var x=w.length;!(this.data&&this.data.length===x)&&h&&(this.data=new Float32Array(x));for(var T=0;T<x;T++)this.data[T]=w[T];this._len=x},appendPath:function(w){w instanceof Array||(w=[w]);for(var x=w.length,T=0,O=this._len,E=0;E<x;E++)T+=w[E].len();h&&this.data instanceof Float32Array&&(this.data=new Float32Array(O+T));for(var E=0;E<x;E++)for(var C=w[E].data,I=0;I<C.length;I++)this.data[O++]=C[I];this._len=O},addData:function(w){if(!this._saveData)return;var x=this.data;this._len+arguments.length>x.length&&(this._expandData(),x=this.data);for(var T=0;T<arguments.length;T++)x[this._len++]=arguments[T];this._prevCmd=w},_expandData:function(){if(!(this.data instanceof Array)){for(var w=[],x=0;x<this._len;x++)w[x]=this.data[x];this.data=w}},_needsDash:function(){return this._lineDash},_dashedLineTo:function(w,x){var T=this._dashSum,O=this._dashOffset,E=this._lineDash,C=this._ctx,I=this._xi,_=this._yi,F=w-I,R=x-_,B=s(F*F+R*R),M=I,X=_,P,z=E.length,W;for(F/=B,R/=B,O<0&&(O=T+O),O%=T,M-=O*F,X-=O*R;F>0&&M<=w||F<0&&M>=w||F===0&&(R>0&&X<=x||R<0&&X>=x);){if(W=this._dashIdx,P=E[W],M+=F*P,X+=R*P,this._dashIdx=(W+1)%z,F>0&&M<I||F<0&&M>I||R>0&&X<_||R<0&&X>_)continue;C[W%2?"moveTo":"lineTo"](F>=0?a(M,w):e(M,w),R>=0?a(X,x):e(X,x))}F=M-w,R=X-x,this._dashOffset=-s(F*F+R*R)},_dashedBezierTo:function(w,x,T,O,E,C){var I=this._dashSum,_=this._dashOffset,F=this._lineDash,R=this._ctx,B=this._xi,M=this._yi,X,P,z,W=y.cubicAt,U=0,V=this._dashIdx,Q=F.length,G,te,$=0;for(_<0&&(_=I+_),_%=I,X=0;X<1;X+=.1)P=W(B,w,T,E,X+.1)-W(B,w,T,E,X),z=W(M,x,O,C,X+.1)-W(M,x,O,C,X),U+=s(P*P+z*z);for(;V<Q&&!($+=F[V],$>_);V++);for(X=($-_)/U;X<=1;)G=W(B,w,T,E,X),te=W(M,x,O,C,X),V%2?R.moveTo(G,te):R.lineTo(G,te),X+=F[V]/U,V=(V+1)%Q;V%2!==0&&R.lineTo(E,C),P=E-G,z=C-te,this._dashOffset=-s(P*P+z*z)},_dashedQuadraticTo:function(w,x,T,O){var E=T,C=O;T=(T+2*w)/3,O=(O+2*x)/3,w=(this._xi+2*w)/3,x=(this._yi+2*x)/3,this._dashedBezierTo(w,x,T,O,E,C)},toStatic:function(){var w=this.data;w instanceof Array&&(w.length=this._len,h&&(this.data=new Float32Array(w)))},getBoundingRect:function(){l[0]=l[1]=n[0]=n[1]=Number.MAX_VALUE,o[0]=o[1]=t[0]=t[1]=-Number.MAX_VALUE;for(var w=this.data,x=0,T=0,O=0,E=0,C=0;C<w.length;){var I=w[C++];C===1&&(x=w[C],T=w[C+1],O=x,E=T);switch(I){case d.M:O=w[C++],E=w[C++],x=O,T=E,n[0]=O,n[1]=E,t[0]=O,t[1]=E;break;case d.L:S.fromLine(x,T,w[C],w[C+1],n,t),x=w[C++],T=w[C++];break;case d.C:S.fromCubic(x,T,w[C++],w[C++],w[C++],w[C++],w[C],w[C+1],n,t),x=w[C++],T=w[C++];break;case d.Q:S.fromQuadratic(x,T,w[C++],w[C++],w[C],w[C+1],n,t),x=w[C++],T=w[C++];break;case d.A:var _=w[C++],F=w[C++],R=w[C++],B=w[C++],M=w[C++],X=w[C++]+M;C+=1;var P=1-w[C++];C===1&&(O=u(M)*R+_,E=r(M)*B+F),S.fromArc(_,F,R,B,M,X,P,n,t),x=u(X)*R+_,T=r(X)*B+F;break;case d.R:O=x=w[C++],E=T=w[C++];var z=w[C++],W=w[C++];S.fromLine(O,E,O+z,E+W,n,t);break;case d.Z:x=O,T=E;break}p.min(l,l,n),p.max(o,o,t)}return C===0&&(l[0]=l[1]=o[0]=o[1]=0),new A(l[0],l[1],o[0]-l[0],o[1]-l[1])},rebuildPath:function(w){for(var x=this.data,T,O,E,C,I,_,F=this._ux,R=this._uy,B=this._len,M=0;M<B;){var X=x[M++];M===1&&(E=x[M],C=x[M+1],T=E,O=C);switch(X){case d.M:T=E=x[M++],O=C=x[M++],w.moveTo(E,C);break;case d.L:I=x[M++],_=x[M++],(c(I-E)>F||c(_-C)>R||M===B-1)&&(w.lineTo(I,_),E=I,C=_);break;case d.C:w.bezierCurveTo(x[M++],x[M++],x[M++],x[M++],x[M++],x[M++]),E=x[M-2],C=x[M-1];break;case d.Q:w.quadraticCurveTo(x[M++],x[M++],x[M++],x[M++]),E=x[M-2],C=x[M-1];break;case d.A:var P=x[M++],z=x[M++],W=x[M++],U=x[M++],V=x[M++],Q=x[M++],G=x[M++],te=x[M++],$=W>U?W:U,le=W>U?1:W/U,re=W>U?U/W:1,Se=Math.abs(W-U)>.001,Re=V+Q;Se?(w.translate(P,z),w.rotate(G),w.scale(le,re),w.arc(0,0,$,V,Re,1-te),w.scale(1/le,1/re),w.rotate(-G),w.translate(-P,-z)):w.arc(P,z,$,V,Re,1-te),M===1&&(T=u(V)*W+P,O=r(V)*U+z),E=u(Re)*W+P,C=r(Re)*U+z;break;case d.R:T=E=x[M],O=C=x[M+1],w.rect(x[M++],x[M++],x[M++],x[M++]);break;case d.Z:w.closePath(),E=T,C=O}}}},g.CMD=d;var v=g;k.exports=v},IUWy:function(k,D){var i={};function y(S,A){i[S]=A}function p(S){return i[S]}D.register=y,D.get=p},IWNH:function(k,D,i){var y=i("T4UG"),p=i("Bsck"),S=i("7aKB"),A=S.encodeHTML,m=i("Qxkt"),f=y.extend({type:"series.tree",layoutInfo:null,layoutMode:"box",getInitialData:function(d){var l={name:d.name,children:d.data},o=d.leaves||{},n=new m(o,this,this.ecModel),t=p.createTree(l,this,{},a);function a(s){s.wrapMethod("getItemModel",function(c,h){var g=t.getNodeByDataIndex(h);return(!g.children.length||!g.isExpand)&&(c.parentModel=n),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,o=l.root.children[0],n=l.getNodeByDataIndex(d),t=n.getValue(),a=n.name;n&&n!==o;)a=n.parentNode.name+"."+a,n=n.parentNode;return A(a+(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}});k.exports=f},IWp7:function(k,D,i){var y=i("bYtY"),p=i("OELB"),S=i("7aKB"),A=i("lE7J"),m=i("ieMj"),f=m.prototype,d=Math.ceil,l=Math.floor,o=1e3,n=o*60,t=n*60,a=t*24,e=function(c,h,g,v){for(;g<v;){var b=g+v>>>1;c[b][1]<h?g=b+1:v=b}return g},u=m.extend({type:"time",getLabel:function(c){var h=this._stepLvl,g=new Date(c);return S.formatTime(h[0],g,this.getSetting("useUTC"))},niceExtent:function(c){var h=this._extent;if(h[0]===h[1]&&(h[0]-=a,h[1]+=a),h[1]===-Infinity&&h[0]===Infinity){var g=new Date;h[1]=+new Date(g.getFullYear(),g.getMonth(),g.getDate()),h[0]=h[1]-a}this.niceTicks(c.splitNumber,c.minInterval,c.maxInterval);var v=this._interval;c.fixMin||(h[0]=p.round(l(h[0]/v)*v)),c.fixMax||(h[1]=p.round(d(h[1]/v)*v))},niceTicks:function(c,h,g){c=c||10;var v=this._extent,b=v[1]-v[0],w=b/c;h!=null&&w<h&&(w=h),g!=null&&w>g&&(w=g);var x=r.length,T=e(r,w,0,x),O=r[Math.min(T,x-1)],E=O[1];if(O[0]==="year"){var C=b/E,I=p.nice(C/c,!0);E*=I}var _=this.getSetting("useUTC")?0:new Date(+v[0]||+v[1]).getTimezoneOffset()*60*1e3,F=[Math.round(d((v[0]-_)/E)*E+_),Math.round(l((v[1]-_)/E)*E+_)];A.fixExtent(F,v),this._stepLvl=O,this._interval=E,this._niceExtent=F},parse:function(c){return+p.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",o],["hh:mm:ss",o*5],["hh:mm:ss",o*10],["hh:mm:ss",o*15],["hh:mm:ss",o*30],[`hh:mm
MM-dd`,n],[`hh:mm
MM-dd`,n*5],[`hh:mm
MM-dd`,n*10],[`hh:mm
MM-dd`,n*15],[`hh:mm
MM-dd`,n*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`,a],[`MM-dd
yyyy`,a*2],[`MM-dd
yyyy`,a*3],[`MM-dd
yyyy`,a*4],[`MM-dd
yyyy`,a*5],[`MM-dd
yyyy`,a*6],["week",a*7],[`MM-dd
yyyy`,a*10],["week",a*14],["week",a*21],["month",a*31],["week",a*42],["month",a*62],["week",a*70],["quarter",a*95],["month",a*31*4],["month",a*31*5],["half-year",a*380/2],["month",a*31*8],["month",a*31*10],["year",a*380]];u.create=function(c){return new u({useUTC:c.ecModel.get("useUTC")})};var s=u;k.exports=s},IXuL:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("MwEJ"),A=i("T4UG"),m=A.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}});k.exports=m},IXyC:function(k,D,i){var y=i("bYtY"),p=i("bLfw");i("3zoK");var S=p.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(){p.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(A){var m=this.option;A&&y.merge(m,A,!0),this._initDimensions()},contains:function(A,m){var f=A.get("parallelIndex");return f!=null&&m.getComponent("parallel",f)===this},setAxisExpand:function(A){y.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(m){A.hasOwnProperty(m)&&(this.option[m]=A[m])},this)},_initDimensions:function(){var A=this.dimensions=[],m=this.parallelAxisIndex=[],f=y.filter(this.dependentModels.parallelAxis,function(d){return(d.get("parallelIndex")||0)===this.componentIndex},this);y.each(f,function(d){A.push("dim"+d.get("dim")),m.push(d.componentIndex)})}});k.exports=S},Ib8C:function(k,D,i){(function(y){(function(p,S){k.exports=D=S()})(this,function(){var p=p||function(S,A){var m;if(typeof window!="undefined"&&window.crypto&&(m=window.crypto),typeof self!="undefined"&&self.crypto&&(m=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(m=globalThis.crypto),!m&&typeof window!="undefined"&&window.msCrypto&&(m=window.msCrypto),!m&&typeof y!="undefined"&&y.crypto&&(m=y.crypto),!m&&!0)try{m=i(4)}catch(g){}var f=function(){if(m){if(typeof m.getRandomValues=="function")try{return m.getRandomValues(new Uint32Array(1))[0]}catch(v){}if(typeof m.randomBytes=="function")try{return m.randomBytes(4).readInt32LE()}catch(v){}}throw new Error("Native crypto module could not be used to get secure random number.")},d=Object.create||function(){function g(){}return function(v){var b;return g.prototype=v,b=new g,g.prototype=null,b}}(),l={},o=l.lib={},n=o.Base=function(){return{extend:function(v){var b=d(this);return v&&b.mixIn(v),(!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 v=this.extend();return v.init.apply(v,arguments),v},init:function(){},mixIn:function(v){for(var b in v)v.hasOwnProperty(b)&&(this[b]=v[b]);v.hasOwnProperty("toString")&&(this.toString=v.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),t=o.WordArray=n.extend({init:function(v,b){v=this.words=v||[],b!=A?this.sigBytes=b:this.sigBytes=v.length*4},toString:function(v){return(v||e).stringify(this)},concat:function(v){var b=this.words,w=v.words,x=this.sigBytes,T=v.sigBytes;if(this.clamp(),x%4)for(var O=0;O<T;O++){var E=w[O>>>2]>>>24-O%4*8&255;b[x+O>>>2]|=E<<24-(x+O)%4*8}else for(var C=0;C<T;C+=4)b[x+C>>>2]=w[C>>>2];return this.sigBytes+=T,this},clamp:function(){var v=this.words,b=this.sigBytes;v[b>>>2]&=4294967295<<32-b%4*8,v.length=S.ceil(b/4)},clone:function(){var v=n.clone.call(this);return v.words=this.words.slice(0),v},random:function(v){for(var b=[],w=0;w<v;w+=4)b.push(f());return new t.init(b,v)}}),a=l.enc={},e=a.Hex={stringify:function(v){for(var b=v.words,w=v.sigBytes,x=[],T=0;T<w;T++){var O=b[T>>>2]>>>24-T%4*8&255;x.push((O>>>4).toString(16)),x.push((O&15).toString(16))}return x.join("")},parse:function(v){for(var b=v.length,w=[],x=0;x<b;x+=2)w[x>>>3]|=parseInt(v.substr(x,2),16)<<24-x%8*4;return new t.init(w,b/2)}},u=a.Latin1={stringify:function(v){for(var b=v.words,w=v.sigBytes,x=[],T=0;T<w;T++){var O=b[T>>>2]>>>24-T%4*8&255;x.push(String.fromCharCode(O))}return x.join("")},parse:function(v){for(var b=v.length,w=[],x=0;x<b;x++)w[x>>>2]|=(v.charCodeAt(x)&255)<<24-x%4*8;return new t.init(w,b)}},r=a.Utf8={stringify:function(v){try{return decodeURIComponent(escape(u.stringify(v)))}catch(b){throw new Error("Malformed UTF-8 data")}},parse:function(v){return u.parse(unescape(encodeURIComponent(v)))}},s=o.BufferedBlockAlgorithm=n.extend({reset:function(){this._data=new t.init,this._nDataBytes=0},_append:function(v){typeof v=="string"&&(v=r.parse(v)),this._data.concat(v),this._nDataBytes+=v.sigBytes},_process:function(v){var b,w=this._data,x=w.words,T=w.sigBytes,O=this.blockSize,E=O*4,C=T/E;v?C=S.ceil(C):C=S.max((C|0)-this._minBufferSize,0);var I=C*O,_=S.min(I*4,T);if(I){for(var F=0;F<I;F+=O)this._doProcessBlock(x,F);b=x.splice(0,I),w.sigBytes-=_}return new t.init(b,_)},clone:function(){var v=n.clone.call(this);return v._data=this._data.clone(),v},_minBufferSize:0}),c=o.Hasher=s.extend({cfg:n.extend(),init:function(v){this.cfg=this.cfg.extend(v),this.reset()},reset:function(){s.reset.call(this),this._doReset()},update:function(v){return this._append(v),this._process(),this},finalize:function(v){v&&this._append(v);var b=this._doFinalize();return b},blockSize:512/32,_createHelper:function(v){return function(b,w){return new v.init(w).finalize(b)}},_createHmacHelper:function(v){return function(b,w){return new h.HMAC.init(v,w).finalize(b)}}}),h=l.algo={};return l}(Math);return p})}).call(this,i("yLpj"))},Iq15:function(k,D,i){var y=i("nVVt"),p=i("dWSS"),S=i("dQei"),A={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},m={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1<<10|1<<8|1<<5|1<<4|1<<2|1<<1|1<<0,G18:1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,G15_MASK:1<<14|1<<12|1<<10|1<<4|1<<1,getBCHTypeInfo:function(d){for(var l=d<<10;m.getBCHDigit(l)-m.getBCHDigit(m.G15)>=0;)l^=m.G15<<m.getBCHDigit(l)-m.getBCHDigit(m.G15);return(d<<10|l)^m.G15_MASK},getBCHTypeNumber:function(d){for(var l=d<<12;m.getBCHDigit(l)-m.getBCHDigit(m.G18)>=0;)l^=m.G18<<m.getBCHDigit(l)-m.getBCHDigit(m.G18);return d<<12|l},getBCHDigit:function(d){for(var l=0;d!=0;)l++,d>>>=1;return l},getPatternPosition:function(d){return m.PATTERN_POSITION_TABLE[d-1]},getMask:function(d,l,o){switch(d){case A.PATTERN000:return(l+o)%2==0;case A.PATTERN001:return l%2==0;case A.PATTERN010:return o%3==0;case A.PATTERN011:return(l+o)%3==0;case A.PATTERN100:return(Math.floor(l/2)+Math.floor(o/3))%2==0;case A.PATTERN101:return l*o%2+l*o%3==0;case A.PATTERN110:return(l*o%2+l*o%3)%2==0;case A.PATTERN111:return(l*o%3+(l+o)%2)%2==0;default:throw new Error("bad maskPattern:"+d)}},getErrorCorrectPolynomial:function(d){for(var l=new p([1],0),o=0;o<d;o++)l=l.multiply(new p([1,S.gexp(o)],0));return l},getLengthInBits:function(d,l){if(1<=l&&l<10)switch(d){case y.MODE_NUMBER:return 10;case y.MODE_ALPHA_NUM:return 9;case y.MODE_8BIT_BYTE:return 8;case y.MODE_KANJI:return 8;default:throw new Error("mode:"+d)}else if(l<27)switch(d){case y.MODE_NUMBER:return 12;case y.MODE_ALPHA_NUM:return 11;case y.MODE_8BIT_BYTE:return 16;case y.MODE_KANJI:return 10;default:throw new Error("mode:"+d)}else if(l<41)switch(d){case y.MODE_NUMBER:return 14;case y.MODE_ALPHA_NUM:return 13;case y.MODE_8BIT_BYTE:return 16;case y.MODE_KANJI:return 12;default:throw new Error("mode:"+d)}else throw new Error("type:"+l)},getLostPoint:function(d){for(var l=d.getModuleCount(),o=0,n=0;n<l;n++)for(var t=0;t<l;t++){for(var a=0,e=d.isDark(n,t),u=-1;u<=1;u++){if(n+u<0||l<=n+u)continue;for(var r=-1;r<=1;r++){if(t+r<0||l<=t+r)continue;if(u==0&&r==0)continue;e==d.isDark(n+u,t+r)&&a++}}a>5&&(o+=3+a-5)}for(var n=0;n<l-1;n++)for(var t=0;t<l-1;t++){var s=0;d.isDark(n,t)&&s++,d.isDark(n+1,t)&&s++,d.isDark(n,t+1)&&s++,d.isDark(n+1,t+1)&&s++,(s==0||s==4)&&(o+=3)}for(var n=0;n<l;n++)for(var t=0;t<l-6;t++)d.isDark(n,t)&&!d.isDark(n,t+1)&&d.isDark(n,t+2)&&d.isDark(n,t+3)&&d.isDark(n,t+4)&&!d.isDark(n,t+5)&&d.isDark(n,t+6)&&(o+=40);for(var t=0;t<l;t++)for(var n=0;n<l-6;n++)d.isDark(n,t)&&!d.isDark(n+1,t)&&d.isDark(n+2,t)&&d.isDark(n+3,t)&&d.isDark(n+4,t)&&!d.isDark(n+5,t)&&d.isDark(n+6,t)&&(o+=40);for(var c=0,t=0;t<l;t++)for(var n=0;n<l;n++)d.isDark(n,t)&&c++;var h=Math.abs(100*c/l/l-50)/5;return o+=h*10,o}};k.exports=m},ItGF:function(k,D){var i={};typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?i={browser:{},os:{},node:!1,wxa:!0,canvasSupported:!0,svgSupported:!1,touchEventsSupported:!0,domSupported:!1}:typeof document=="undefined"&&typeof self!="undefined"?i={browser:{},os:{},node:!1,worker:!0,canvasSupported:!0,domSupported:!1}:typeof navigator=="undefined"?i={browser:{},os:{},node:!0,worker:!1,canvasSupported:!0,svgSupported:!0,domSupported:!1}:i=p(navigator.userAgent);var y=i;function p(S){var A={},m={},f=S.match(/Firefox\/([\d.]+)/),d=S.match(/MSIE\s([\d.]+)/)||S.match(/Trident\/.+?rv:(([\d.]+))/),l=S.match(/Edge\/([\d.]+)/),o=/micromessenger/i.test(S);return f&&(m.firefox=!0,m.version=f[1]),d&&(m.ie=!0,m.version=d[1]),l&&(m.edge=!0,m.version=l[1]),o&&(m.weChat=!0),{browser:m,os:A,node:!1,canvasSupported:!!document.createElement("canvas").getContext,svgSupported:typeof SVGRect!="undefined",touchEventsSupported:"ontouchstart"in window&&!m.ie&&!m.edge,pointerEventsSupported:"onpointerdown"in window&&(m.edge||m.ie&&m.version>=11),domSupported:typeof document!="undefined"}}k.exports=y},ItS6:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=i("eP3c"),p=S(i("1q3G"));function S(l){return l&&l.__esModule?l:{default:l}}function A(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function m(l,o){for(var n=0;n<o.length;n++){var t=o[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(l,t.key,t)}}function f(l,o,n){return o&&m(l.prototype,o),n&&m(l,n),l}var d=function(){function l(){A(this,l),this.strm=new p.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(n){n?(this.strm.input=n,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(n){n>this.chunkSize&&(this.chunkSize=n,this.strm.output=new Uint8Array(this.chunkSize)),this.strm.next_out=0,this.strm.avail_out=n;var t=(0,y.inflate)(this.strm,0);if(t<0)throw new Error("zlib inflate failed");if(this.strm.next_out!=n)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(k,D,i){var y=i("+TT/");function p(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 g=h.length,v=g-1;v>=0;v--){var b=h[v];b.hierNode={defaultAncestor:null,ancestor:b,prelim:0,modifier:0,change:0,shift:0,i:v,thread:null},s.push(b)}}function S(r,s){var c=r.isExpand?r.children:[],h=r.parentNode.children,g=r.hierNode.i?h[r.hierNode.i-1]:null;if(c.length){l(r);var v=(c[0].hierNode.prelim+c[c.length-1].hierNode.prelim)/2;g?(r.hierNode.prelim=g.hierNode.prelim+s(r,g),r.hierNode.modifier=r.hierNode.prelim-v):r.hierNode.prelim=v}else g&&(r.hierNode.prelim=g.hierNode.prelim+s(r,g));r.parentNode.hierNode.defaultAncestor=o(r,g,r.parentNode.hierNode.defaultAncestor||h[0],s)}function A(r){var s=r.hierNode.prelim+r.parentNode.hierNode.modifier;r.setLayout({x:s},!0),r.hierNode.modifier+=r.parentNode.hierNode.modifier}function m(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,g=0;--c>=0;){var v=s[c];v.hierNode.prelim+=h,v.hierNode.modifier+=h,g+=v.hierNode.change,h+=v.hierNode.shift+g}}function o(r,s,c,h){if(s){for(var g=r,v=r,b=v.parentNode.children[0],w=s,x=g.hierNode.modifier,T=v.hierNode.modifier,O=b.hierNode.modifier,E=w.hierNode.modifier;w=n(w),v=t(v),w&&v;){g=n(g),b=t(b),g.hierNode.ancestor=r;var C=w.hierNode.prelim+E-v.hierNode.prelim-T+h(w,v);C>0&&(e(a(w,r,c),r,C),T+=C,x+=C),E+=w.hierNode.modifier,T+=v.hierNode.modifier,x+=g.hierNode.modifier,O+=b.hierNode.modifier}w&&!n(g)&&(g.hierNode.thread=w,g.hierNode.modifier+=E-x),v&&!t(b)&&(b.hierNode.thread=v,b.hierNode.modifier+=T-O,c=r)}return c}function n(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 a(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=p,D.firstWalk=S,D.secondWalk=A,D.separation=m,D.radialCoordinate=f,D.getViewRect=d},IwbS:function(k,D,i){var y=i("bYtY"),p=i("NC18"),S=i("Qe9p"),A=i("Fofx"),m=i("QBsz"),f=i("y+Vt"),d=i("DN4a"),l=i("Dagg");D.Image=l;var o=i("4fz+");D.Group=o;var n=i("dqUG");D.Text=n;var t=i("2fw6");D.Circle=t;var a=i("SqI9");D.Sector=a;var e=i("RXMa");D.Ring=e;var u=i("h7HQ");D.Polygon=u;var r=i("1Jh7");D.Polyline=r;var s=i("x6Kt");D.Rect=s;var c=i("yxFR");D.Line=c;var h=i("rA99");D.BezierCurve=h;var g=i("jTL6");D.Arc=g;var v=i("1MYJ");D.CompoundPath=v;var b=i("SKnc");D.LinearGradient=b;var w=i("3e3G");D.RadialGradient=w;var x=i("mFDi");D.BoundingRect=x;var T=i("OS9S");D.IncrementalDisplayable=T;var O=i("nPnh"),E=Math.max,C=Math.min,I={},_=1,F={color:"textFill",textBorderColor:"textStroke",textBorderWidth:"textStrokeWidth"},R="emphasis",B="normal",M=1,X={},P={};function z(ar){return f.extend(ar)}function W(ar,Et){return p.extendFromString(ar,Et)}function U(ar,Et){P[ar]=Et}function V(ar){if(P.hasOwnProperty(ar))return P[ar]}function Q(ar,Et,en,Mn){var Yn=p.createFromString(ar,Et);return en&&(Mn==="center"&&(en=te(en,Yn.getBoundingRect())),le(Yn,en)),Yn}function G(ar,Et,en){var Mn=new l({style:{image:ar,x:Et.x,y:Et.y,width:Et.width,height:Et.height},onload:function(Yn){if(en==="center"){var ci={width:Yn.width,height:Yn.height};Mn.setStyle(te(Et,ci))}}});return Mn}function te(ar,Et){var en=Et.width/Et.height,Mn=ar.height*en,Yn;Mn<=ar.width?Yn=ar.height:(Mn=ar.width,Yn=Mn/en);var ci=ar.x+ar.width/2,Vi=ar.y+ar.height/2;return{x:ci-Mn/2,y:Vi-Yn/2,width:Mn,height:Yn}}var $=p.mergePath;function le(ar,Et){if(!ar.applyTransform)return;var en=ar.getBoundingRect(),Mn=en.calculateTransform(Et);ar.applyTransform(Mn)}function re(ar){return O.subPixelOptimizeLine(ar.shape,ar.shape,ar.style),ar}function Se(ar){return O.subPixelOptimizeRect(ar.shape,ar.shape,ar.style),ar}var Re=O.subPixelOptimize;function Pe(ar){return ar!=null&&ar!=="none"}var Je=y.createHashMap(),Ve=0;function ct(ar){if(typeof ar!="string")return ar;var Et=Je.get(ar);return Et||(Et=S.lift(ar,-.1),Ve<1e4&&(Je.set(ar,Et),Ve++)),Et}function Ue(ar){if(!ar.__hoverStlDirty)return;ar.__hoverStlDirty=!1;var Et=ar.__hoverStl;if(!Et){ar.__cachedNormalStl=ar.__cachedNormalZ2=null;return}var en=ar.__cachedNormalStl={};ar.__cachedNormalZ2=ar.z2;var Mn=ar.style;for(var Yn in Et)Et[Yn]!=null&&(en[Yn]=Mn[Yn]);en.fill=Mn.fill,en.stroke=Mn.stroke}function ue(ar){var Et=ar.__hoverStl;if(!Et||ar.__highlighted)return;var en=ar.__zr,Mn=ar.useHoverLayer&&en&&en.painter.type==="canvas";if(ar.__highlighted=Mn?"layer":"plain",ar.isGroup||!en&&ar.useHoverLayer)return;var Yn=ar,ci=ar.style;Mn&&(Yn=en.addHover(ar),ci=Yn.style),Bt(ci),Mn||Ue(Yn),ci.extendFrom(Et),rt(ci,Et,"fill"),rt(ci,Et,"stroke"),Tt(ci),Mn||(ar.dirty(!1),ar.z2+=_)}function rt(ar,Et,en){!Pe(Et[en])&&Pe(ar[en])&&(ar[en]=ct(ar[en]))}function ge(ar){var Et=ar.__highlighted;if(!Et)return;if(ar.__highlighted=!1,ar.isGroup)return;if(Et==="layer")ar.__zr&&ar.__zr.removeHover(ar);else{var en=ar.style,Mn=ar.__cachedNormalStl;Mn&&(Bt(en),ar.setStyle(Mn),Tt(en));var Yn=ar.__cachedNormalZ2;Yn!=null&&ar.z2-Yn===_&&(ar.z2=Yn)}}function Z(ar,Et,en){var Mn=B,Yn=B,ci;ar.__highlighted&&(Mn=R,ci=!0),Et(ar,en),ar.__highlighted&&(Yn=R,ci=!0),ar.isGroup&&ar.traverse(function(Vi){!Vi.isGroup&&Et(Vi,en)}),ci&&ar.__highDownOnUpdate&&ar.__highDownOnUpdate(Mn,Yn)}function Y(ar,Et){Et=ar.__hoverStl=Et!==!1&&(ar.hoverStyle||Et||{}),ar.__hoverStlDirty=!0,ar.__highlighted&&(ar.__cachedNormalStl=null,ge(ar),ue(ar))}function ee(ar){!Te(this,ar)&&!this.__highByOuter&&Z(this,ue)}function fe(ar){!Te(this,ar)&&!this.__highByOuter&&Z(this,ge)}function be(ar){this.__highByOuter|=1<<(ar||0),Z(this,ue)}function Ce(ar){!(this.__highByOuter&=~(1<<(ar||0)))&&Z(this,ge)}function Te(ar,Et){return ar.__highDownSilentOnTouch&&Et.zrByTouch}function he(ar,Et){ye(ar,!0),Z(ar,Y,Et)}function ye(ar,Et){var en=Et===!1;if(ar.__highDownSilentOnTouch=ar.highDownSilentOnTouch,ar.__highDownOnUpdate=ar.highDownOnUpdate,!en||ar.__highDownDispatcher){var Mn=en?"off":"on";ar[Mn]("mouseover",ee)[Mn]("mouseout",fe),ar[Mn]("emphasis",be)[Mn]("normal",Ce),ar.__highByOuter=ar.__highByOuter||0,ar.__highDownDispatcher=!en}}function Ie(ar){return!!(ar&&ar.__highDownDispatcher)}function tt(ar){var Et=X[ar];return Et==null&&M<=32&&(Et=X[ar]=M++),Et}function pt(ar,Et,en,Mn,Yn,ci,Vi){Yn=Yn||I;var jn=Yn.labelFetcher,Qn=Yn.labelDataIndex,$t=Yn.labelDimIndex,Ot=Yn.labelProp,ke=en.getShallow("show"),Me=Mn.getShallow("show"),Be;(ke||Me)&&(jn&&(Be=jn.getFormattedLabel(Qn,"normal",null,$t,Ot)),Be==null&&(Be=y.isFunction(Yn.defaultText)?Yn.defaultText(Qn,Yn):Yn.defaultText));var at=ke?Be:null,At=Me?y.retrieve2(jn?jn.getFormattedLabel(Qn,"emphasis",null,$t,Ot):null,Be):null;(at!=null||At!=null)&&(Fe(ar,en,ci,Yn),Fe(Et,Mn,Vi,Yn,!0)),ar.text=at,Et.text=At}function st(ar,Et,en){var Mn=ar.style;Et&&(Bt(Mn),ar.setStyle(Et),Tt(Mn)),Mn=ar.__hoverStl,en&&Mn&&(Bt(Mn),y.extend(Mn,en),Tt(Mn))}function Fe(ar,Et,en,Mn,Yn){return et(ar,Et,Mn,Yn),en&&y.extend(ar,en),ar}function ft(ar,Et,en){var Mn={isRectText:!0},Yn;en===!1?Yn=!0:Mn.autoColor=en,et(ar,Et,Mn,Yn)}function et(ar,Et,en,Mn){if(en=en||I,en.isRectText){var Yn;en.getTextPosition?Yn=en.getTextPosition(Et,Mn):(Yn=Et.getShallow("position")||(Mn?null:"inside"),Yn==="outside"&&(Yn="top")),ar.textPosition=Yn,ar.textOffset=Et.getShallow("offset");var ci=Et.getShallow("rotate");ci!=null&&(ci*=Math.PI/180),ar.textRotation=ci,ar.textDistance=y.retrieve2(Et.getShallow("distance"),Mn?null:5)}var Vi=Et.ecModel,jn=Vi&&Vi.option.textStyle,Qn=wt(Et),$t;if(Qn){$t={};for(var Ot in Qn)if(Qn.hasOwnProperty(Ot)){var ke=Et.getModel(["rich",Ot]);Ht($t[Ot]={},ke,jn,en,Mn)}}return ar.rich=$t,Ht(ar,Et,jn,en,Mn,!0),en.forceRich&&!en.textStyle&&(en.textStyle={}),ar}function wt(ar){for(var Et;ar&&ar!==ar.ecModel;){var en=(ar.option||I).rich;if(en){Et=Et||{};for(var Mn in en)en.hasOwnProperty(Mn)&&(Et[Mn]=1)}ar=ar.parentModel}return Et}function Ht(ar,Et,en,Mn,Yn,ci){en=!Yn&&en||I,ar.textFill=Dt(Et.getShallow("color"),Mn)||en.color,ar.textStroke=Dt(Et.getShallow("textBorderColor"),Mn)||en.textBorderColor,ar.textStrokeWidth=y.retrieve2(Et.getShallow("textBorderWidth"),en.textBorderWidth),Yn||(ci&&(ar.insideRollbackOpt=Mn,Tt(ar)),ar.textFill==null&&(ar.textFill=Mn.autoColor)),ar.fontStyle=Et.getShallow("fontStyle")||en.fontStyle,ar.fontWeight=Et.getShallow("fontWeight")||en.fontWeight,ar.fontSize=Et.getShallow("fontSize")||en.fontSize,ar.fontFamily=Et.getShallow("fontFamily")||en.fontFamily,ar.textAlign=Et.getShallow("align"),ar.textVerticalAlign=Et.getShallow("verticalAlign")||Et.getShallow("baseline"),ar.textLineHeight=Et.getShallow("lineHeight"),ar.textWidth=Et.getShallow("width"),ar.textHeight=Et.getShallow("height"),ar.textTag=Et.getShallow("tag"),(!ci||!Mn.disableBox)&&(ar.textBackgroundColor=Dt(Et.getShallow("backgroundColor"),Mn),ar.textPadding=Et.getShallow("padding"),ar.textBorderColor=Dt(Et.getShallow("borderColor"),Mn),ar.textBorderWidth=Et.getShallow("borderWidth"),ar.textBorderRadius=Et.getShallow("borderRadius"),ar.textBoxShadowColor=Et.getShallow("shadowColor"),ar.textBoxShadowBlur=Et.getShallow("shadowBlur"),ar.textBoxShadowOffsetX=Et.getShallow("shadowOffsetX"),ar.textBoxShadowOffsetY=Et.getShallow("shadowOffsetY")),ar.textShadowColor=Et.getShallow("textShadowColor")||en.textShadowColor,ar.textShadowBlur=Et.getShallow("textShadowBlur")||en.textShadowBlur,ar.textShadowOffsetX=Et.getShallow("textShadowOffsetX")||en.textShadowOffsetX,ar.textShadowOffsetY=Et.getShallow("textShadowOffsetY")||en.textShadowOffsetY}function Dt(ar,Et){return ar!=="auto"?ar:Et&&Et.autoColor?Et.autoColor:null}function Tt(ar){var Et=ar.textPosition,en=ar.insideRollbackOpt,Mn;if(en&&ar.textFill==null){var Yn=en.autoColor,ci=en.isRectText,Vi=en.useInsideStyle,jn=Vi!==!1&&(Vi===!0||ci&&Et&&typeof Et=="string"&&Et.indexOf("inside")>=0),Qn=!jn&&Yn!=null;(jn||Qn)&&(Mn={textFill:ar.textFill,textStroke:ar.textStroke,textStrokeWidth:ar.textStrokeWidth}),jn&&(ar.textFill="#fff",ar.textStroke==null&&(ar.textStroke=Yn,ar.textStrokeWidth==null&&(ar.textStrokeWidth=2))),Qn&&(ar.textFill=Yn)}ar.insideRollback=Mn}function Bt(ar){var Et=ar.insideRollback;Et&&(ar.textFill=Et.textFill,ar.textStroke=Et.textStroke,ar.textStrokeWidth=Et.textStrokeWidth,ar.insideRollback=null)}function Ke(ar,Et){var en=Et&&Et.getModel("textStyle");return y.trim([ar.fontStyle||en&&en.getShallow("fontStyle")||"",ar.fontWeight||en&&en.getShallow("fontWeight")||"",(ar.fontSize||en&&en.getShallow("fontSize")||12)+"px",ar.fontFamily||en&&en.getShallow("fontFamily")||"sans-serif"].join(" "))}function de(ar,Et,en,Mn,Yn,ci){typeof Yn=="function"&&(ci=Yn,Yn=null);var Vi=Mn&&Mn.isAnimationEnabled();if(Vi){var jn=ar?"Update":"",Qn=Mn.getShallow("animationDuration"+jn),$t=Mn.getShallow("animationEasing"+jn),Ot=Mn.getShallow("animationDelay"+jn);typeof Ot=="function"&&(Ot=Ot(Yn,Mn.getAnimationDelayParams?Mn.getAnimationDelayParams(Et,Yn):null)),typeof Qn=="function"&&(Qn=Qn(Yn)),Qn>0?Et.animateTo(en,Qn,Ot||0,$t,ci,!!ci):(Et.stopAnimation(),Et.attr(en),ci&&ci())}else Et.stopAnimation(),Et.attr(en),ci&&ci()}function oe(ar,Et,en,Mn,Yn){de(!0,ar,Et,en,Mn,Yn)}function lt(ar,Et,en,Mn,Yn){de(!1,ar,Et,en,Mn,Yn)}function qe(ar,Et){for(var en=A.identity([]);ar&&ar!==Et;)A.mul(en,ar.getLocalTransform(),en),ar=ar.parent;return en}function pe(ar,Et,en){return Et&&!y.isArrayLike(Et)&&(Et=d.getLocalTransform(Et)),en&&(Et=A.invert([],Et)),m.applyTransform([],ar,Et)}function Kt(ar,Et,en){var Mn=Et[4]===0||Et[5]===0||Et[0]===0?1:Math.abs(2*Et[4]/Et[0]),Yn=Et[4]===0||Et[5]===0||Et[2]===0?1:Math.abs(2*Et[4]/Et[2]),ci=[ar==="left"?-Mn:ar==="right"?Mn:0,ar==="top"?-Yn:ar==="bottom"?Yn:0];return ci=pe(ci,Et,en),Math.abs(ci[0])>Math.abs(ci[1])?ci[0]>0?"right":"left":ci[1]>0?"bottom":"top"}function hr(ar,Et,en,Mn){if(!ar||!Et)return;function Yn(jn){var Qn={};return jn.traverse(function($t){!$t.isGroup&&$t.anid&&(Qn[$t.anid]=$t)}),Qn}function ci(jn){var Qn={position:m.clone(jn.position),rotation:jn.rotation};return jn.shape&&(Qn.shape=y.extend({},jn.shape)),Qn}var Vi=Yn(ar);Et.traverse(function(jn){if(!jn.isGroup&&jn.anid){var Qn=Vi[jn.anid];if(Qn){var $t=ci(jn);jn.attr(ci(Qn)),oe(jn,$t,en,jn.dataIndex)}}})}function gt(ar,Et){return y.map(ar,function(en){var Mn=en[0];Mn=E(Mn,Et.x),Mn=C(Mn,Et.x+Et.width);var Yn=en[1];return Yn=E(Yn,Et.y),Yn=C(Yn,Et.y+Et.height),[Mn,Yn]})}function nr(ar,Et){var en=E(ar.x,Et.x),Mn=C(ar.x+ar.width,Et.x+Et.width),Yn=E(ar.y,Et.y),ci=C(ar.y+ar.height,Et.y+Et.height);if(Mn>=en&&ci>=Yn)return{x:en,y:Yn,width:Mn-en,height:ci-Yn}}function mr(ar,Et,en){Et=y.extend({rectHover:!0},Et);var Mn=Et.style={strokeNoScale:!0};if(en=en||{x:-1,y:-1,width:2,height:2},ar)return ar.indexOf("image://")===0?(Mn.image=ar.slice(8),y.defaults(Mn,en),new l(Et)):Q(ar.replace("path://",""),Et,en,"center")}function cn(ar,Et,en,Mn,Yn){for(var ci=0,Vi=Yn[Yn.length-1];ci<Yn.length;ci++){var jn=Yn[ci];if(Ar(ar,Et,en,Mn,jn[0],jn[1],Vi[0],Vi[1]))return!0;Vi=jn}}function Ar(ar,Et,en,Mn,Yn,ci,Vi,jn){var Qn=en-ar,$t=Mn-Et,Ot=Vi-Yn,ke=jn-ci,Me=xr(Ot,ke,Qn,$t);if(qt(Me))return!1;var Be=ar-Yn,at=Et-ci,At=xr(Be,at,Qn,$t)/Me;if(At<0||At>1)return!1;var Ct=xr(Be,at,Ot,ke)/Me;return!(Ct<0||Ct>1)}function xr(ar,Et,en,Mn){return ar*Mn-en*Et}function qt(ar){return ar<=1e-6&&ar>=-1e-6}U("circle",t),U("sector",a),U("ring",e),U("polygon",u),U("polyline",r),U("rect",s),U("line",c),U("bezierCurve",h),U("arc",g),D.Z2_EMPHASIS_LIFT=_,D.CACHED_LABEL_STYLE_PROPERTIES=F,D.extendShape=z,D.extendPath=W,D.registerShape=U,D.getShapeClass=V,D.makePath=Q,D.makeImage=G,D.mergePath=$,D.resizePath=le,D.subPixelOptimizeLine=re,D.subPixelOptimizeRect=Se,D.subPixelOptimize=Re,D.setElementHoverStyle=Y,D.setHoverStyle=he,D.setAsHighDownDispatcher=ye,D.isHighDownDispatcher=Ie,D.getHighlightDigit=tt,D.setLabelStyle=pt,D.modifyLabelStyle=st,D.setTextStyle=Fe,D.setText=ft,D.getFont=Ke,D.updateProps=oe,D.initProps=lt,D.getTransform=qe,D.applyTransform=pe,D.transformDirection=Kt,D.groupTransition=hr,D.clipPointsByRect=gt,D.clipRectByRect=nr,D.createIcon=mr,D.linePolygonIntersect=cn,D.lineLineIntersect=Ar},IyUQ:function(k,D,i){var y=i("bYtY"),p=i("YH21"),S=i("IwbS"),A=i("iLNv"),m=i("fc+c"),f=i("OELB"),d=i("+TT/"),l=i("72pK"),o=S.Rect,n=f.linearMap,t=f.asc,a=y.bind,e=y.each,u=7,r=1,s=30,c="horizontal",h="vertical",g=5,v=["line","bar","candlestick","scatter"],b=m.extend({type:"dataZoom.slider",init:function(O,E){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=E},render:function(O,E,C,I){if(b.superApply(this,"render",arguments),A.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=O.get("orient"),this.dataZoomModel.get("show")===!1){this.group.removeAll();return}(!I||I.type!=="dataZoom"||I.from!==this.uid)&&this._buildView(),this._updateView()},remove:function(){b.superApply(this,"remove",arguments),A.clear(this,"_dispatchZoomAction")},dispose:function(){b.superApply(this,"dispose",arguments),A.clear(this,"_dispatchZoomAction")},_buildView:function(){var O=this.group;O.removeAll(),this._resetLocation(),this._resetInterval();var E=this._displayables.barGroup=new S.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),O.add(E),this._positionGroup()},_resetLocation:function(){var O=this.dataZoomModel,E=this.api,C=this._findCoordRect(),I={width:E.getWidth(),height:E.getHeight()},_=this._orient===c?{right:I.width-C.x-C.width,top:I.height-s-u,width:C.width,height:s}:{right:u,top:C.y,width:s,height:C.height},F=d.getLayoutParams(O.option);y.each(["right","top","width","height"],function(B){F[B]==="ph"&&(F[B]=_[B])});var R=d.getLayoutRect(F,I,O.padding);this._location={x:R.x,y:R.y},this._size=[R.width,R.height],this._orient===h&&this._size.reverse()},_positionGroup:function(){var O=this.group,E=this._location,C=this._orient,I=this.dataZoomModel.getFirstTargetAxisModel(),_=I&&I.get("inverse"),F=this._displayables.barGroup,R=(this._dataShadowInfo||{}).otherAxisInverse;F.attr(C===c&&!_?{scale:R?[1,1]:[1,-1]}:C===c&&_?{scale:R?[-1,1]:[-1,-1]}:C===h&&!_?{scale:R?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:R?[-1,-1]:[-1,1],rotation:Math.PI/2});var B=O.getBoundingRect([F]);O.attr("position",[E.x-B.x,E.y-B.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var O=this.dataZoomModel,E=this._size,C=this._displayables.barGroup;C.add(new o({silent:!0,shape:{x:0,y:0,width:E[0],height:E[1]},style:{fill:O.get("backgroundColor")},z2:-40})),C.add(new o({shape:{x:0,y:0,width:E[0],height:E[1]},style:{fill:"transparent"},z2:0,onclick:y.bind(this._onClickPanelClick,this)}))},_renderDataShadow:function(){var O=this._dataShadowInfo=this._prepareDataShadowInfo();if(!O)return;var E=this._size,C=O.series,I=C.getRawData(),_=C.getShadowDim?C.getShadowDim():O.otherDim;if(_==null)return;var F=I.getDataExtent(_),R=(F[1]-F[0])*.3;F=[F[0]-R,F[1]+R];var B=[0,E[1]],M=[0,E[0]],X=[[E[0],0],[0,0]],P=[],z=M[1]/(I.count()-1),W=0,U=Math.round(I.count()/E[0]),V;I.each([_],function(G,te){if(U>0&&te%U){W+=z;return}var $=G==null||isNaN(G)||G==="",le=$?0:n(G,F,B,!0);$&&!V&&te?(X.push([X[X.length-1][0],0]),P.push([P[P.length-1][0],0])):!$&&V&&(X.push([W,0]),P.push([W,0])),X.push([W,le]),P.push([W,le]),W+=z,V=$});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:P},style:Q.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))},_prepareDataShadowInfo:function(){var O=this.dataZoomModel,E=O.get("showDataShadow");if(E===!1)return;var C,I=this.ecModel;return O.eachTargetAxis(function(_,F){var R=O.getAxisProxy(_.name,F).getTargetSeriesModels();y.each(R,function(B){if(C)return;if(E!==!0&&y.indexOf(v,B.get("type"))<0)return;var M=I.getComponent(_.axis,F).axis,X=w(_.name),P,z=B.coordinateSystem;X!=null&&z.getOtherAxis&&(P=z.getOtherAxis(M).inverse),X=B.getData().mapDimension(X),C={thisAxis:M,series:B,thisDim:_.name,otherDim:X,otherAxisInverse:P}},this)},this),C},_renderHandle:function(){var O=this._displayables,E=O.handles=[],C=O.handleLabels=[],I=this._displayables.barGroup,_=this._size,F=this.dataZoomModel;I.add(O.filler=new o({draggable:!0,cursor:x(this._orient),drift:a(this._onDragMove,this,"all"),ondragstart:a(this._showDataInfo,this,!0),ondragend:a(this._onDragEnd,this),onmouseover:a(this._showDataInfo,this,!0),onmouseout:a(this._showDataInfo,this,!1),style:{fill:F.get("fillerColor"),textPosition:"inside"}})),I.add(new o({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:_[0],height:_[1]},style:{stroke:F.get("dataBackgroundColor")||F.get("borderColor"),lineWidth:r,fill:"rgba(0,0,0,0)"}})),e([0,1],function(R){var B=S.createIcon(F.get("handleIcon"),{cursor:x(this._orient),draggable:!0,drift:a(this._onDragMove,this,R),ondragend:a(this._onDragEnd,this),onmouseover:a(this._showDataInfo,this,!0),onmouseout:a(this._showDataInfo,this,!1)},{x:-1,y:0,width:2,height:2}),M=B.getBoundingRect();this._handleHeight=f.parsePercent(F.get("handleSize"),this._size[1]),this._handleWidth=M.width/M.height*this._handleHeight,B.setStyle(F.getModel("handleStyle").getItemStyle());var X=F.get("handleColor");X!=null&&(B.style.fill=X),I.add(E[R]=B);var P=F.textStyleModel;this.group.add(C[R]=new S.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",textFill:P.getTextColor(),textFont:P.getFont()},z2:10}))},this)},_resetInterval:function(){var O=this._range=this.dataZoomModel.getPercentRange(),E=this._getViewExtent();this._handleEnds=[n(O[0],[0,100],E,!0),n(O[1],[0,100],E,!0)]},_updateInterval:function(O,E){var C=this.dataZoomModel,I=this._handleEnds,_=this._getViewExtent(),F=C.findRepresentativeAxisProxy().getMinMaxSpan(),R=[0,100];l(E,I,_,C.get("zoomLock")?"all":O,F.minSpan!=null?n(F.minSpan,R,_,!0):null,F.maxSpan!=null?n(F.maxSpan,R,_,!0):null);var B=this._range,M=this._range=t([n(I[0],_,R,!0),n(I[1],_,R,!0)]);return!B||B[0]!==M[0]||B[1]!==M[1]},_updateView:function(O){var E=this._displayables,C=this._handleEnds,I=t(C.slice()),_=this._size;e([0,1],function(F){var R=E.handles[F],B=this._handleHeight;R.attr({scale:[B/2,B/2],position:[C[F],_[1]/2-B/2]})},this),E.filler.setShape({x:I[0],y:0,width:I[1]-I[0],height:_[1]}),this._updateDataInfo(O)},_updateDataInfo:function(O){var E=this.dataZoomModel,C=this._displayables,I=C.handleLabels,_=this._orient,F=["",""];if(E.get("showDetail")){var R=E.findRepresentativeAxisProxy();if(R){var B=R.getAxisModel().axis,M=this._range,X=O?R.calculateDataWindow({start:M[0],end:M[1]}).valueWindow:R.getDataValueWindow();F=[this._formatLabel(X[0],B),this._formatLabel(X[1],B)]}}var P=t(this._handleEnds.slice());z.call(this,0),z.call(this,1);function z(W){var U=S.getTransform(C.handles[W].parent,this.group),V=S.transformDirection(W===0?"right":"left",U),Q=this._handleWidth/2+g,G=S.applyTransform([P[W]+(W===0?-Q:Q),this._size[1]/2],U);I[W].setStyle({x:G[0],y:G[1],textVerticalAlign:_===c?"middle":V,textAlign:_===c?V:"center",text:F[W]})}},_formatLabel:function(O,E){var C=this.dataZoomModel,I=C.get("labelFormatter"),_=C.get("labelPrecision");(_==null||_==="auto")&&(_=E.getPixelPrecision());var F=O==null||isNaN(O)?"":E.type==="category"||E.type==="time"?E.scale.getLabel(Math.round(O)):O.toFixed(Math.min(_,20));return y.isFunction(I)?I(O,F):y.isString(I)?I.replace("{value}",F):F},_showDataInfo:function(O){O=this._dragging||O;var E=this._displayables.handleLabels;E[0].attr("invisible",!O),E[1].attr("invisible",!O)},_onDragMove:function(O,E,C,I){this._dragging=!0,p.stop(I.event);var _=this._displayables.barGroup.getLocalTransform(),F=S.applyTransform([E,C],_,!0),R=this._updateInterval(O,F[0]),B=this.dataZoomModel.get("realtime");this._updateView(!B),R&&B&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1);var O=this.dataZoomModel.get("realtime");!O&&this._dispatchZoomAction()},_onClickPanelClick:function(O){var E=this._size,C=this._displayables.barGroup.transformCoordToLocal(O.offsetX,O.offsetY);if(C[0]<0||C[0]>E[0]||C[1]<0||C[1]>E[1])return;var I=this._handleEnds,_=(I[0]+I[1])/2,F=this._updateInterval("all",C[0]-_);this._updateView(),F&&this._dispatchZoomAction()},_dispatchZoomAction:function(){var O=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:O[0],end:O[1]})},_findCoordRect:function(){var O;if(e(this.getTargetCoordInfo(),function(I){if(!O&&I.length){var _=I[0].model.coordinateSystem;O=_.getRect&&_.getRect()}}),!O){var E=this.api.getWidth(),C=this.api.getHeight();O={x:E*.2,y:C*.2,width:E*.6,height:C*.6}}return O}});function w(O){var E={x:"y",y:"x",radius:"angle",angle:"radius"};return E[O]}function x(O){return O==="vertical"?"ns-resize":"ew-resize"}var T=b;k.exports=T},IzEo:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("lnY3"),A=i.n(S),m=i("Znn+"),f=i("14J3"),d=i("jCWc")},J66h:function(k,D,i){(function(y){var p,S;(function(A,m){k.exports=m(A)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof y!="undefined"?y:this,function(A){"use strict";A=A||{};var m=A.Base64,f="2.6.4",d="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=function(B){for(var M={},X=0,P=B.length;X<P;X++)M[B.charAt(X)]=X;return M}(d),o=String.fromCharCode,n=function(M){if(M.length<2){var X=M.charCodeAt(0);return X<128?M:X<2048?o(192|X>>>6)+o(128|X&63):o(224|X>>>12&15)+o(128|X>>>6&63)+o(128|X&63)}else{var X=65536+(M.charCodeAt(0)-55296)*1024+(M.charCodeAt(1)-56320);return o(240|X>>>18&7)+o(128|X>>>12&63)+o(128|X>>>6&63)+o(128|X&63)}},t=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,a=function(M){return M.replace(t,n)},e=function(M){var X=[0,2,1][M.length%3],P=M.charCodeAt(0)<<16|(M.length>1?M.charCodeAt(1):0)<<8|(M.length>2?M.charCodeAt(2):0),z=[d.charAt(P>>>18),d.charAt(P>>>12&63),X>=2?"=":d.charAt(P>>>6&63),X>=1?"=":d.charAt(P&63)];return z.join("")},u=A.btoa&&typeof A.btoa=="function"?function(B){return A.btoa(B)}:function(B){if(B.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return B.replace(/[\s\S]{1,3}/g,e)},r=function(M){return u(a(String(M)))},s=function(M){return M.replace(/[+\/]/g,function(X){return X=="+"?"-":"_"}).replace(/=/g,"")},c=function(M,X){return X?s(r(M)):r(M)},h=function(M){return c(M,!0)},g;A.Uint8Array&&(g=function(M,X){for(var P="",z=0,W=M.length;z<W;z+=3){var U=M[z],V=M[z+1],Q=M[z+2],G=U<<16|V<<8|Q;P+=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(P):P});var v=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,b=function(M){switch(M.length){case 4:var X=(7&M.charCodeAt(0))<<18|(63&M.charCodeAt(1))<<12|(63&M.charCodeAt(2))<<6|63&M.charCodeAt(3),P=X-65536;return o((P>>>10)+55296)+o((P&1023)+56320);case 3:return o((15&M.charCodeAt(0))<<12|(63&M.charCodeAt(1))<<6|63&M.charCodeAt(2));default:return o((31&M.charCodeAt(0))<<6|63&M.charCodeAt(1))}},w=function(M){return M.replace(v,b)},x=function(M){var X=M.length,P=X%4,z=(X>0?l[M.charAt(0)]<<18:0)|(X>1?l[M.charAt(1)]<<12:0)|(X>2?l[M.charAt(2)]<<6:0)|(X>3?l[M.charAt(3)]:0),W=[o(z>>>16),o(z>>>8&255),o(z&255)];return W.length-=[0,0,2,1][P],W.join("")},T=A.atob&&typeof A.atob=="function"?function(B){return A.atob(B)}:function(B){return B.replace(/\S{1,4}/g,x)},O=function(M){return T(String(M).replace(/[^A-Za-z0-9\+\/]/g,""))},E=function(M){return w(T(M))},C=function(M){return String(M).replace(/[-_]/g,function(X){return X=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},I=function(M){return E(C(M))},_;A.Uint8Array&&(_=function(M){return Uint8Array.from(O(C(M)),function(X){return X.charCodeAt(0)})});var F=function(){var M=A.Base64;return A.Base64=m,M};if(A.Base64={VERSION:f,atob:O,btoa:u,fromBase64:I,toBase64:c,utob:a,encode:c,encodeURI:h,btou:w,decode:I,noConflict:F,fromUint8Array:g,toUint8Array:_},typeof Object.defineProperty=="function"){var R=function(M){return{value:M,enumerable:!1,writable:!0,configurable:!0}};A.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",R(function(){return I(this)})),Object.defineProperty(String.prototype,"toBase64",R(function(B){return c(this,B)})),Object.defineProperty(String.prototype,"toBase64URI",R(function(){return c(this,!0)}))}}return A.Meteor&&(Base64=A.Base64),k.exports?k.exports.Base64=A.Base64:!(p=[],S=function(){return A.Base64}.apply(D,p),S!==void 0&&(k.exports=S)),{Base64:A.Base64}})}).call(this,i("yLpj"))},JEkh:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("ProS"),A=i("bYtY"),m=i("ItGF"),f=i("4NO4"),d=i("7aKB"),l=i("OKJ2"),o=d.addCommas,n=d.encodeHTML;function t(u){f.defaultEmphasis(u,"label",["show"])}var a=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(m.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,g=this.mainType+"Model";s||r.eachSeries(function(v){var b=v.get(this.mainType,!0),w=v[g];if(!b||!b.data){v[g]=null;return}w?w._mergeOption(b,r,!0):(c&&t(b),A.each(b.data,function(x){x instanceof Array?(t(x[0]),t(x[1])):t(x)}),w=new h(b,this,r),A.extend(w,{mainType:this.mainType,seriesIndex:v.seriesIndex,name:v.name,createdBySelf:!0}),w.__hostSeries=v),v[g]=w},this)},formatTooltip:function(u){var r=this.getData(),s=this.getRawValue(u),c=A.isArray(s)?A.map(s,o).join(", "):o(s),h=r.getName(u),g=n(this.name);return(s!=null||h)&&(g+="<br />"),h&&(g+=n(h),s!=null&&(g+=" : ")),s!=null&&(g+=n(c)),g},getData:function(){return this._data},setData:function(u){this._data=u}});A.mixin(a,l);var e=a;k.exports=e},JGo8:function(k,D,i){},JHRd:function(k,D,i){var y=i("Kz5y"),p=y.Uint8Array;k.exports=p},JHgL:function(k,D,i){var y=i("QkVE");function p(S){return y(this,S).get(S)}k.exports=p},JLnu:function(k,D,i){var y=i("+TT/"),p=i("OELB"),S=p.parsePercent,A=p.linearMap;function m(o,n){return y.getLayoutRect(o.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})}function f(o,n){for(var t=o.mapDimension("value"),a=o.mapArray(t,function(c){return c}),e=[],u=n==="ascending",r=0,s=o.count();r<s;r++)e[r]=r;return typeof n=="function"?e.sort(n):n!=="none"&&e.sort(function(c,h){return u?a[c]-a[h]:a[h]-a[c]}),e}function d(o){o.each(function(n){var t=o.getItemModel(n),a=t.getModel("label"),e=a.get("position"),u=t.getModel("labelLine"),r=o.getItemLayout(n),s=r.points,c=e==="inner"||e==="inside"||e==="center"||e==="insideLeft"||e==="insideRight",h,g,v,b;if(c)e==="insideLeft"?(g=(s[0][0]+s[3][0])/2+5,v=(s[0][1]+s[3][1])/2,h="left"):e==="insideRight"?(g=(s[1][0]+s[2][0])/2-5,v=(s[1][1]+s[2][1])/2,h="right"):(g=(s[0][0]+s[1][0]+s[2][0]+s[3][0])/4,v=(s[0][1]+s[1][1]+s[2][1]+s[3][1])/4,h="center"),b=[[g,v],[g,v]];else{var w,x,T,O=u.get("length");e==="left"?(w=(s[3][0]+s[0][0])/2,x=(s[3][1]+s[0][1])/2,T=w-O,g=T-5,h="right"):e==="right"?(w=(s[1][0]+s[2][0])/2,x=(s[1][1]+s[2][1])/2,T=w+O,g=T+5,h="left"):e==="rightTop"?(w=s[1][0],x=s[1][1],T=w+O,g=T+5,h="top"):e==="rightBottom"?(w=s[2][0],x=s[2][1],T=w+O,g=T+5,h="bottom"):e==="leftTop"?(w=s[0][0],x=s[1][1],T=w-O,g=T-5,h="right"):e==="leftBottom"?(w=s[3][0],x=s[2][1],T=w-O,g=T-5,h="right"):(w=(s[1][0]+s[2][0])/2,x=(s[1][1]+s[2][1])/2,T=w+O,g=T+5,h="left");var E=x;b=[[w,x],[T,E]],v=E}r.label={linePoints:b,x:g,y:v,verticalAlign:"middle",textAlign:h,inside:c}})}function l(o,n,t){o.eachSeriesByType("funnel",function(a){var e=a.getData(),u=e.mapDimension("value"),r=a.get("sort"),s=m(a,n),c=f(e,r),h=[S(a.get("minSize"),s.width),S(a.get("maxSize"),s.width)],g=e.getDataExtent(u),v=a.get("min"),b=a.get("max");v==null&&(v=Math.min(g[0],0)),b==null&&(b=g[1]);var w=a.get("funnelAlign"),x=a.get("gap"),T=(s.height-x*(e.count()-1))/e.count(),O=s.y,E=function(X,P){var z=e.get(u,X)||0,W=A(z,[v,b],h,!0),U;switch(w){case"left":U=s.x;break;case"center":U=s.x+(s.width-W)/2;break;case"right":U=s.x+s.width-W;break}return[[U,P],[U+W,P]]};r==="ascending"&&(T=-T,x=-x,O+=s.height,c=c.reverse());for(var C=0;C<c.length;C++){var I=c[C],_=c[C+1],F=e.getItemModel(I),R=F.get("itemStyle.height");R==null?R=T:(R=S(R,s.height),r==="ascending"&&(R=-R));var B=E(I,O),M=E(_,O+R);O+=R+x,e.setItemLayout(I,{points:B.concat(M.slice().reverse())})}d(e)})}k.exports=l},JSQU:function(k,D,i){var y=i("YESw"),p="__lodash_hash_undefined__";function S(A,m){var f=this.__data__;return this.size+=this.has(A)?0:1,f[A]=y&&m===void 0?p:m,this}k.exports=S},JSwD:function(k,D,i){"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 p=A(i("6BzB"));function S(){if(typeof WeakMap!="function")return null;var s=new WeakMap;return S=function(){return s},s}function A(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={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in s)if(Object.prototype.hasOwnProperty.call(s,v)){var b=g?Object.getOwnPropertyDescriptor(s,v):null;b&&(b.get||b.set)?Object.defineProperty(h,v,b):h[v]=s[v]}return h.default=s,c&&c.set(s,h),h}var m=15,f=852,d=592,l=0,o=1,n=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],a=[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,g,v,b,w,x){var T=x.bits,O=0,E=0,C=0,I=0,_=0,F=0,R=0,B=0,M=0,X=0,P,z,W,U,V,Q=null,G=0,te,$=new p.Buf16(m+1),le=new p.Buf16(m+1),re=null,Se=0,Re,Pe,Je;for(O=0;O<=m;O++)$[O]=0;for(E=0;E<g;E++)$[c[h+E]]++;for(_=T,I=m;I>=1&&!($[I]!==0);I--);if(_>I&&(_=I),I===0)return v[b++]=1<<24|64<<16|0,v[b++]=1<<24|64<<16|0,x.bits=1,0;for(C=1;C<I&&!($[C]!==0);C++);for(_<C&&(_=C),B=1,O=1;O<=m;O++)if(B<<=1,B-=$[O],B<0)return-1;if(B>0&&(s===l||I!==1))return-1;for(le[1]=0,O=1;O<m;O++)le[O+1]=le[O]+$[O];for(E=0;E<g;E++)c[h+E]!==0&&(w[le[c[h+E]]++]=E);if(s===l?(Q=re=w,te=19):s===o?(Q=t,G-=257,re=a,Se-=257,te=256):(Q=e,re=u,te=-1),X=0,E=0,O=C,V=b,F=_,R=0,W=-1,M=1<<_,U=M-1,s===o&&M>f||s===n&&M>d)return 1;for(;;){Re=O-R,w[E]<te?(Pe=0,Je=w[E]):w[E]>te?(Pe=re[Se+w[E]],Je=Q[G+w[E]]):(Pe=32+64,Je=0),P=1<<O-R,z=1<<F,C=z;do z-=P,v[V+(X>>R)+z]=Re<<24|Pe<<16|Je|0;while(z!==0);for(P=1<<O-1;X&P;)P>>=1;if(P!==0?(X&=P-1,X+=P):X=0,E++,--$[O]===0){if(O===I)break;O=c[h+w[E]]}if(O>_&&(X&U)!==W){for(R===0&&(R=_),V+=C,F=O-R,B=1<<F;F+R<I&&!(B-=$[F+R],B<=0);)F++,B<<=1;if(M+=1<<F,s===o&&M>f||s===n&&M>d)return 1;W=X&U,v[W]=_<<24|F<<16|V-b|0}}return X!==0&&(v[V+X]=O-R<<24|64<<16|0),x.bits=_,0}},JTzB:function(k,D,i){var y=i("NykK"),p=i("ExA7"),S="[object Arguments]";function A(m){return p(m)&&y(m)==S}k.exports=A},JVwQ:function(k,D,i){var y=i("ProS"),p=i("1NG9"),S=p.Polygon,A=i("IwbS"),m=i("bYtY"),f=m.bind,d=m.extend,l=i("gPAo"),o=y.extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(t,a,e){var u=t.getData(),r=this.group,s=t.getLayerSeries(),c=u.getLayout("layoutInfo"),h=c.rect,g=c.boundaryGap;r.attr("position",[0,h.y+g[0]]);function v(T){return T.name}var b=new l(this._layersSeries||[],s,v,v),w={};b.add(f(x,this,"add")).update(f(x,this,"update")).remove(f(x,this,"remove")).execute();function x(T,O,E){var C=this._layers;if(T==="remove"){r.remove(C[O]);return}for(var I=[],_=[],F,R=s[O].indices,B=0;B<R.length;B++){var M=u.getItemLayout(R[B]),X=M.x,P=M.y0,z=M.y;I.push([X,P]),_.push([X,P+z]),F=u.getItemVisual(R[B],"color")}var W,U,V=u.getItemLayout(R[0]),Q=u.getItemModel(R[B-1]),G=Q.getModel("label"),te=G.get("margin");if(T==="add"){var $=w[O]=new A.Group;W=new S({shape:{points:I,stackedOnPoints:_,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),U=new A.Text({style:{x:V.x-te,y:V.y0+V.y/2}}),$.add(W),$.add(U),r.add($),W.setClipPath(n(W.getBoundingRect(),t,function(){W.removeClipPath()}))}else{var $=C[E];W=$.childAt(0),U=$.childAt(1),r.add($),w[O]=$,A.updateProps(W,{shape:{points:I,stackedOnPoints:_}},t),A.updateProps(U,{style:{x:V.x-te,y:V.y0+V.y/2}},t)}var le=Q.getModel("emphasis.itemStyle"),re=Q.getModel("itemStyle");A.setTextStyle(U.style,G,{text:G.get("show")?t.getFormattedLabel(R[B-1],"normal")||u.getName(R[B-1]):null,textVerticalAlign:"middle"}),W.setStyle(d({fill:F},re.getItemStyle(["color"]))),A.setHoverStyle(W,le.getItemStyle())}this._layersSeries=s,this._layers=w},dispose:function(){}});function n(t,a,e){var u=new A.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return A.initProps(u,{shape:{width:t.width+20,height:t.height+20}},a,e),u}k.exports=o},JgUQ:function(k,D,i){"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(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("lSNA"),A=i.n(S),m=i("lwsE"),f=i.n(m),d=i("W8MJ"),l=i.n(d),o=i("PJYZ"),n=i.n(o),t=i("7W2i"),a=i.n(t),e=i("LQ03"),u=i.n(e),r=i("q1tI"),s=i("i8i4"),c=i("TSYQ"),h=i.n(c),g=i("zT1h"),v=i("cDf5"),b=i.n(v),w=i("BGR+"),x=i("VTBJ"),T=i("1OyB"),O=i("vuIU"),E=i("Ji7U"),C=i("LK+K"),I=i("m+aA"),_=i("Zm9Q"),F=i("Kwbf"),R=i("c+Xe"),B=i("bdgK"),M="rc-observer-key",X=function(pt){Object(E.a)(Fe,pt);var st=Object(C.a)(Fe);function Fe(){var ft;return Object(T.a)(this,Fe),ft=st.apply(this,arguments),ft.resizeObserver=null,ft.childNode=null,ft.currentElement=null,ft.state={width:0,height:0,offsetHeight:0,offsetWidth:0},ft.onResize=function(et){var wt=ft.props.onResize,Ht=et[0].target,Dt=Ht.getBoundingClientRect(),Tt=Dt.width,Bt=Dt.height,Ke=Ht.offsetWidth,de=Ht.offsetHeight,oe=Math.floor(Tt),lt=Math.floor(Bt);if(ft.state.width!==oe||ft.state.height!==lt||ft.state.offsetWidth!==Ke||ft.state.offsetHeight!==de){var qe={width:oe,height:lt,offsetWidth:Ke,offsetHeight:de};ft.setState(qe),wt&&Promise.resolve().then(function(){wt(Object(x.a)(Object(x.a)({},qe),{},{offsetWidth:Ke,offsetHeight:de}))})}},ft.setChildNode=function(et){ft.childNode=et},ft}return Object(O.a)(Fe,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var et=this.props.disabled;if(et){this.destroyObserver();return}var wt=Object(I.a)(this.childNode||this),Ht=wt!==this.currentElement;Ht&&(this.destroyObserver(),this.currentElement=wt),!this.resizeObserver&&wt&&(this.resizeObserver=new B.default(this.onResize),this.resizeObserver.observe(wt))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var et=this.props.children,wt=Object(_.a)(et);if(wt.length>1)Object(F.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(wt.length===0)return Object(F.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Ht=wt[0];if(r.isValidElement(Ht)&&Object(R.c)(Ht)){var Dt=Ht.ref;wt[0]=r.cloneElement(Ht,{ref:Object(R.a)(Dt,this.setChildNode)})}return wt.length===1?wt[0]:wt.map(function(Tt,Bt){return!r.isValidElement(Tt)||"key"in Tt&&Tt.key!==null?Tt:r.cloneElement(Tt,{key:"".concat(M,"-").concat(Bt)})})}}]),Fe}(r.Component);X.displayName="ResizeObserver";var P=X,z=i("H84U"),W=i("RIqP"),U=i.n(W),V=i("xEkU"),Q=i.n(V);function G(pt){var st,Fe=function(wt){return function(){st=null,pt.apply(void 0,U()(wt))}},ft=function(){if(st==null){for(var wt=arguments.length,Ht=new Array(wt),Dt=0;Dt<wt;Dt++)Ht[Dt]=arguments[Dt];st=Q()(Fe(Ht))}};return ft.cancel=function(){return Q.a.cancel(st)},ft}function te(){return function(pt,st,Fe){var ft=Fe.value,et=!1;return{configurable:!0,get:function(){if(et||this===pt.prototype||this.hasOwnProperty(st))return ft;var Ht=G(ft.bind(this));return et=!0,Object.defineProperty(this,st,{value:Ht,configurable:!0,writable:!0}),et=!1,Ht}}}}function $(pt){return pt!==window?pt.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function le(pt,st,Fe){return Fe!==void 0&&st.top>pt.top-Fe?Fe+st.top:void 0}function re(pt,st,Fe){if(Fe!==void 0&&st.bottom<pt.bottom+Fe){var ft=window.innerHeight-st.bottom;return Fe+ft}return}var Se=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],Re=[];function Pe(){return Re}function Je(pt,st){if(!pt)return;var Fe=Re.find(function(ft){return ft.target===pt});Fe?Fe.affixList.push(st):(Fe={target:pt,affixList:[st],eventHandlers:{}},Re.push(Fe),Se.forEach(function(ft){Fe.eventHandlers[ft]=Object(g.a)(pt,ft,function(){Fe.affixList.forEach(function(et){et.lazyUpdatePosition()})})}))}function Ve(pt){var st=Re.find(function(Fe){var ft=Fe.affixList.some(function(et){return et===pt});return ft&&(Fe.affixList=Fe.affixList.filter(function(et){return et!==pt})),ft});st&&st.affixList.length===0&&(Re=Re.filter(function(Fe){return Fe!==st}),Se.forEach(function(Fe){var ft=st.eventHandlers[Fe];ft&&ft.remove&&ft.remove()}))}var ct=function(pt,st,Fe,ft){var et=arguments.length,wt=et<3?st:ft===null?ft=Object.getOwnPropertyDescriptor(st,Fe):ft,Ht;if((typeof Reflect=="undefined"?"undefined":b()(Reflect))==="object"&&typeof Reflect.decorate=="function")wt=Reflect.decorate(pt,st,Fe,ft);else for(var Dt=pt.length-1;Dt>=0;Dt--)(Ht=pt[Dt])&&(wt=(et<3?Ht(wt):et>3?Ht(st,Fe,wt):Ht(st,Fe))||wt);return et>3&&wt&&Object.defineProperty(st,Fe,wt),wt};function Ue(){return typeof window!="undefined"?window:null}var ue;(function(pt){pt[pt.None=0]="None",pt[pt.Prepare=1]="Prepare"})(ue||(ue={}));var rt=function(pt){a()(Fe,pt);var st=u()(Fe);function Fe(){var ft;return f()(this,Fe),ft=st.apply(this,arguments),ft.state={status:ue.None,lastAffix:!1,prevTarget:null},ft.getOffsetTop=function(){var et=ft.props.offsetBottom,wt=ft.props.offsetTop;return et===void 0&&wt===void 0&&(wt=0),wt},ft.getOffsetBottom=function(){return ft.props.offsetBottom},ft.savePlaceholderNode=function(et){ft.placeholderNode=et},ft.saveFixedNode=function(et){ft.fixedNode=et},ft.measure=function(){var et=ft.state,wt=et.status,Ht=et.lastAffix,Dt=ft.props.onChange,Tt=ft.getTargetFunc();if(wt!==ue.Prepare||!ft.fixedNode||!ft.placeholderNode||!Tt)return;var Bt=ft.getOffsetTop(),Ke=ft.getOffsetBottom(),de=Tt();if(!de)return;var oe={status:ue.None},lt=$(de),qe=$(ft.placeholderNode),pe=le(qe,lt,Bt),Kt=re(qe,lt,Ke);pe!==void 0?(oe.affixStyle={position:"fixed",top:pe,width:qe.width,height:qe.height},oe.placeholderStyle={width:qe.width,height:qe.height}):Kt!==void 0&&(oe.affixStyle={position:"fixed",bottom:Kt,width:qe.width,height:qe.height},oe.placeholderStyle={width:qe.width,height:qe.height}),oe.lastAffix=!!oe.affixStyle,Dt&&Ht!==oe.lastAffix&&Dt(oe.lastAffix),ft.setState(oe)},ft.prepareMeasure=function(){if(ft.setState({status:ue.Prepare,affixStyle:void 0,placeholderStyle:void 0}),!1)var et},ft.render=function(){var et=ft.context.getPrefixCls,wt=ft.state,Ht=wt.affixStyle,Dt=wt.placeholderStyle,Tt=ft.props,Bt=Tt.prefixCls,Ke=Tt.children,de=h()(A()({},et("affix",Bt),Ht)),oe=Object(w.default)(ft.props,["prefixCls","offsetTop","offsetBottom","target","onChange"]);return r.createElement(P,{onResize:function(){ft.updatePosition()}},r.createElement("div",p()({},oe,{ref:ft.savePlaceholderNode}),Ht&&r.createElement("div",{style:Dt,"aria-hidden":"true"}),r.createElement("div",{className:de,ref:ft.saveFixedNode,style:Ht},r.createElement(P,{onResize:function(){ft.updatePosition()}},Ke))))},ft}return l()(Fe,[{key:"getTargetFunc",value:function(){var et=this.context.getTargetContainer,wt=this.props.target;return wt!==void 0?wt:et||Ue}},{key:"componentDidMount",value:function(){var et=this,wt=this.getTargetFunc();wt&&(this.timeout=setTimeout(function(){Je(wt(),et),et.updatePosition()}))}},{key:"componentDidUpdate",value:function(et){var wt=this.state.prevTarget,Ht=this.getTargetFunc(),Dt=null;Ht&&(Dt=Ht()||null),wt!==Dt&&(Ve(this),Dt&&(Je(Dt,this),this.updatePosition()),this.setState({prevTarget:Dt})),(et.offsetTop!==this.props.offsetTop||et.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),Ve(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var et=this.getTargetFunc(),wt=this.state.affixStyle;if(et&&wt){var Ht=this.getOffsetTop(),Dt=this.getOffsetBottom(),Tt=et();if(Tt&&this.placeholderNode){var Bt=$(Tt),Ke=$(this.placeholderNode),de=le(Ke,Bt,Ht),oe=re(Ke,Bt,Dt);if(de!==void 0&&wt.top===de||oe!==void 0&&wt.bottom===oe)return}}this.prepareMeasure()}}]),Fe}(r.Component);rt.contextType=z.b,ct([te()],rt.prototype,"updatePosition",null),ct([te()],rt.prototype,"lazyUpdatePosition",null);var ge=rt,Z=i("zAh6"),Y=i("i6bk"),ee=r.createContext(null),fe=ee;function be(){return window}function Ce(pt,st){if(!pt.getClientRects().length)return 0;var Fe=pt.getBoundingClientRect();return Fe.width||Fe.height?st===window?(st=pt.ownerDocument.documentElement,Fe.top-st.clientTop):Fe.top-st.getBoundingClientRect().top:Fe.top}var Te=/#(\S+)$/,he=function(pt){a()(Fe,pt);var st=u()(Fe);function Fe(){var ft;return f()(this,Fe),ft=st.apply(this,arguments),ft.state={activeLink:null},ft.links=[],ft.registerLink=function(et){ft.links.includes(et)||ft.links.push(et)},ft.unregisterLink=function(et){var wt=ft.links.indexOf(et);wt!==-1&&ft.links.splice(wt,1)},ft.getContainer=function(){var et=ft.context.getTargetContainer,wt=ft.props.getContainer,Ht=wt||et||be;return Ht()},ft.handleScrollTo=function(et){var wt=ft.props,Ht=wt.offsetTop,Dt=wt.targetOffset;ft.setCurrentActiveLink(et);var Tt=ft.getContainer(),Bt=Object(Y.a)(Tt,!0),Ke=Te.exec(et);if(!Ke)return;var de=document.getElementById(Ke[1]);if(!de)return;var oe=Ce(de,Tt),lt=Bt+oe;lt-=Dt!==void 0?Dt:Ht||0,ft.animating=!0,Object(Z.a)(lt,{callback:function(){ft.animating=!1},getContainer:ft.getContainer})},ft.saveInkNode=function(et){ft.inkNode=et},ft.setCurrentActiveLink=function(et){var wt=ft.state.activeLink,Ht=ft.props.onChange;wt!==et&&(ft.setState({activeLink:et}),Ht&&Ht(et))},ft.handleScroll=function(){if(ft.animating)return;var et=ft.props,wt=et.offsetTop,Ht=et.bounds,Dt=et.targetOffset,Tt=ft.getCurrentAnchor(Dt!==void 0?Dt:wt||0,Ht);ft.setCurrentActiveLink(Tt)},ft.updateInk=function(){var et=n()(ft),wt=et.prefixCls,Ht=s.findDOMNode(n()(ft)),Dt=Ht.getElementsByClassName("".concat(wt,"-link-title-active"))[0];Dt&&(ft.inkNode.style.top="".concat(Dt.offsetTop+Dt.clientHeight/2-4.5,"px"))},ft.render=function(){var et=ft.context,wt=et.getPrefixCls,Ht=et.direction,Dt=ft.props,Tt=Dt.prefixCls,Bt=Dt.className,Ke=Bt===void 0?"":Bt,de=Dt.style,oe=Dt.offsetTop,lt=Dt.affix,qe=Dt.showInkInFixed,pe=Dt.children,Kt=ft.state.activeLink,hr=wt("anchor",Tt);ft.prefixCls=hr;var gt=h()("".concat(hr,"-ink-ball"),{visible:Kt}),nr=h()(Ke,"".concat(hr,"-wrapper"),A()({},"".concat(hr,"-rtl"),Ht==="rtl")),mr=h()(hr,{fixed:!lt&&!qe}),cn=p()({maxHeight:oe?"calc(100vh - ".concat(oe,"px)"):"100vh"},de),Ar=r.createElement("div",{className:nr,style:cn},r.createElement("div",{className:mr},r.createElement("div",{className:"".concat(hr,"-ink")},r.createElement("span",{className:gt,ref:ft.saveInkNode})),pe));return r.createElement(fe.Provider,{value:{registerLink:ft.registerLink,unregisterLink:ft.unregisterLink,activeLink:ft.state.activeLink,scrollTo:ft.handleScrollTo,onClick:ft.props.onClick}},lt?r.createElement(ge,{offsetTop:oe,target:ft.getContainer},Ar):Ar)},ft}return l()(Fe,[{key:"componentDidMount",value:function(){this.scrollContainer=this.getContainer(),this.scrollEvent=Object(g.a)(this.scrollContainer,"scroll",this.handleScroll),this.handleScroll()}},{key:"componentDidUpdate",value:function(){if(this.scrollEvent){var et=this.getContainer();this.scrollContainer!==et&&(this.scrollContainer=et,this.scrollEvent.remove(),this.scrollEvent=Object(g.a)(this.scrollContainer,"scroll",this.handleScroll),this.handleScroll())}this.updateInk()}},{key:"componentWillUnmount",value:function(){this.scrollEvent&&this.scrollEvent.remove()}},{key:"getCurrentAnchor",value:function(){var et=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:5,Ht=this.props.getCurrentAnchor;if(typeof Ht=="function")return Ht();var Dt=[],Tt=this.getContainer();if(this.links.forEach(function(Ke){var de=Te.exec(Ke.toString());if(!de)return;var oe=document.getElementById(de[1]);if(oe){var lt=Ce(oe,Tt);lt<et+wt&&Dt.push({link:Ke,top:lt})}}),Dt.length){var Bt=Dt.reduce(function(Ke,de){return de.top>Ke.top?de:Ke});return Bt.link}return""}}]),Fe}(r.Component);he.defaultProps={affix:!0,showInkInFixed:!1},he.contextType=z.b;var ye=function(pt){a()(Fe,pt);var st=u()(Fe);function Fe(){var ft;return f()(this,Fe),ft=st.apply(this,arguments),ft.handleClick=function(et){var wt=ft.context,Ht=wt.scrollTo,Dt=wt.onClick,Tt=ft.props,Bt=Tt.href,Ke=Tt.title;Dt&&Dt(et,{title:Ke,href:Bt}),Ht(Bt)},ft.renderAnchorLink=function(et){var wt=et.getPrefixCls,Ht=ft.props,Dt=Ht.prefixCls,Tt=Ht.href,Bt=Ht.title,Ke=Ht.children,de=Ht.className,oe=Ht.target,lt=wt("anchor",Dt),qe=ft.context.activeLink===Tt,pe=h()(de,"".concat(lt,"-link"),A()({},"".concat(lt,"-link-active"),qe)),Kt=h()("".concat(lt,"-link-title"),A()({},"".concat(lt,"-link-title-active"),qe));return r.createElement("div",{className:pe},r.createElement("a",{className:Kt,href:Tt,title:typeof Bt=="string"?Bt:"",target:oe,onClick:ft.handleClick},Bt),Ke)},ft}return l()(Fe,[{key:"componentDidMount",value:function(){this.context.registerLink(this.props.href)}},{key:"componentDidUpdate",value:function(et){var wt=et.href,Ht=this.props.href;wt!==Ht&&(this.context.unregisterLink(wt),this.context.registerLink(Ht))}},{key:"componentWillUnmount",value:function(){this.context.unregisterLink(this.props.href)}},{key:"render",value:function(){return r.createElement(z.a,null,this.renderAnchorLink)}}]),Fe}(r.Component);ye.defaultProps={href:"#"},ye.contextType=fe;var Ie=ye;he.Link=Ie;var tt=D.a=he},JuEJ:function(k,D,i){var y=i("bYtY"),p=i("4NO4"),S=y.each,A=y.isObject,m=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function f(r){var s=r&&r.itemStyle;if(!s)return;for(var c=0,h=m.length;c<h;c++){var g=m[c],v=s.normal,b=s.emphasis;v&&v[g]&&(r[g]=r[g]||{},r[g].normal?y.merge(r[g].normal,v[g]):r[g].normal=v[g],v[g]=null),b&&b[g]&&(r[g]=r[g]||{},r[g].emphasis?y.merge(r[g].emphasis,b[g]):r[g].emphasis=b[g],b[g]=null)}}function d(r,s,c){if(r&&r[s]&&(r[s].normal||r[s].emphasis)){var h=r[s].normal,g=r[s].emphasis;h&&(c?(r[s].normal=r[s].emphasis=null,y.defaults(r[s],h)):r[s]=h),g&&(r.emphasis=r.emphasis||{},r.emphasis[s]=g)}}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 o(r,s){var c=A(r)&&r[s],h=A(c)&&c.textStyle;if(h)for(var g=0,v=p.TEXT_STYLE_OPTIONS.length;g<v;g++){var s=p.TEXT_STYLE_OPTIONS[g];h.hasOwnProperty(s)&&(c[s]=h[s])}}function n(r){r&&(l(r),o(r,"label"),r.emphasis&&o(r.emphasis,"label"))}function t(r){if(!A(r))return;f(r),l(r),o(r,"label"),o(r,"upperLabel"),o(r,"edgeLabel"),r.emphasis&&(o(r.emphasis,"label"),o(r.emphasis,"upperLabel"),o(r.emphasis,"edgeLabel"));var s=r.markPoint;s&&(f(s),n(s));var c=r.markLine;c&&(f(c),n(c));var h=r.markArea;h&&n(h);var g=r.data;if(r.type==="graph"){g=g||r.nodes;var v=r.links||r.edges;if(v&&!y.isTypedArray(v))for(var b=0;b<v.length;b++)n(v[b]);y.each(r.categories,function(T){l(T)})}if(g&&!y.isTypedArray(g))for(var b=0;b<g.length;b++)n(g[b]);var s=r.markPoint;if(s&&s.data)for(var w=s.data,b=0;b<w.length;b++)n(w[b]);var c=r.markLine;if(c&&c.data)for(var x=c.data,b=0;b<x.length;b++)y.isArray(x[b])?(n(x[b][0]),n(x[b][1])):n(x[b]);r.type==="gauge"?(o(r,"axisLabel"),o(r,"title"),o(r,"detail")):r.type==="treemap"?(d(r.breadcrumb,"itemStyle"),y.each(r.levels,function(T){l(T)})):r.type==="tree"&&l(r.leaves)}function a(r){return y.isArray(r)?r:r?[r]:[]}function e(r){return(y.isArray(r)?r[0]:r)||{}}function u(r,s){S(a(r.series),function(h){A(h)&&t(h)});var c=["xAxis","yAxis","radiusAxis","angleAxis","singleAxis","parallelAxis","radar"];s&&c.push("valueAxis","categoryAxis","logAxis","timeAxis"),S(c,function(h){S(a(r[h]),function(g){g&&(o(g,"axisLabel"),o(g.axisPointer,"label"))})}),S(a(r.parallel),function(h){var g=h&&h.parallelAxisDefault;o(g,"axisLabel"),o(g&&g.axisPointer,"label")}),S(a(r.calendar),function(h){d(h,"itemStyle"),o(h,"dayLabel"),o(h,"monthLabel"),o(h,"yearLabel")}),S(a(r.radar),function(h){o(h,"name")}),S(a(r.geo),function(h){A(h)&&(n(h),S(a(h.regions),function(g){n(g)}))}),S(a(r.timeline),function(h){n(h),d(h,"label"),d(h,"itemStyle"),d(h,"controlStyle",!0);var g=h.data;y.isArray(g)&&y.each(g,function(v){y.isObject(v)&&(d(v,"label"),d(v,"itemStyle"))})}),S(a(r.toolbox),function(h){d(h,"iconStyle"),S(h.feature,function(g){d(g,"iconStyle")})}),o(e(r.axisPointer),"label"),o(e(r.tooltip).axisPointer,"label")}k.exports=u},K2GJ:function(k,D,i){var y=i("fW2E"),p=i("gut8"),S=p.ContextCachedBy,A=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],m=function(e){this.extendFrom(e,!1)};function f(a,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 g=a.createLinearGradient(r,c,s,h);return g}function d(a,e,u){var r=u.width,s=u.height,c=Math.min(r,s),h=e.x==null?.5:e.x,g=e.y==null?.5:e.y,v=e.r==null?.5:e.r;e.global||(h=h*r+u.x,g=g*s+u.y,v=v*c);var b=a.createRadialGradient(h,g,0,h,g,v);return b}m.prototype={constructor:m,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 g=0;g<A.length;g++){var v=A[g],b=v[0];(h||s[b]!==c[b])&&(e[b]=y(e,b,s[b]||v[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 w=s.lineWidth;e.lineWidth=w/(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,g=0;g<h.length;g++)c.addColorStop(h[g].offset,h[g].color);return c}};for(var l=m.prototype,o=0;o<A.length;o++){var n=A[o];n[0]in l||(l[n[0]]=n[1])}m.getGradient=l.getGradient;var t=m;k.exports=t},K3mO:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("3y9D"),i("WYAk"))})(this,function(y){return function(){var p=y,S=p.lib,A=S.Base,m=S.WordArray,f=p.algo,d=f.MD5,l=f.EvpKDF=A.extend({cfg:A.extend({keySize:128/32,hasher:d,iterations:1}),init:function(n){this.cfg=this.cfg.extend(n)},compute:function(n,t){for(var a,e=this.cfg,u=e.hasher.create(),r=m.create(),s=r.words,c=e.keySize,h=e.iterations;s.length<c;){a&&u.update(a),a=u.update(n).finalize(t),u.reset();for(var g=1;g<h;g++)a=u.finalize(a),u.reset();r.concat(a)}return r.sigBytes=c*4,r}});p.EvpKDF=function(o,n,t){return l.create(t).compute(o,n)}}(),y.EvpKDF})},K4ya:function(k,D,i){var y=i("bYtY"),p=i("XxSj"),S=y.each;function A(o){if(o){for(var n in o)if(o.hasOwnProperty(n))return!0}}function m(o,n,t){var a={};return S(n,function(u){var r=a[u]=e();S(o[u],function(s,c){if(!p.isValidType(c))return;var h={type:c,visual:s};t&&t(h,u),r[c]=new p(h),c==="opacity"&&(h=y.clone(h),h.type="colorAlpha",r.__hidden.__alphaForOpacity=new p(h))})}),a;function e(){var u=function(){};u.prototype.__hidden=u.prototype;var r=new u;return r}}function f(o,n,t){var a;y.each(t,function(e){n.hasOwnProperty(e)&&A(n[e])&&(a=!0)}),a&&y.each(t,function(e){n.hasOwnProperty(e)&&A(n[e])?o[e]=y.clone(n[e]):delete o[e]})}function d(o,n,t,a,e,u){var r={};y.each(o,function(v){var b=p.prepareVisualTypes(n[v]);r[v]=b});var s;function c(v){return t.getItemVisual(s,v)}function h(v,b){t.setItemVisual(s,v,b)}u==null?t.each(g):t.each([u],g);function g(v,b){s=u==null?v:b;var w=t.getRawDataItem(s);if(w&&w.visualMap===!1)return;for(var x=a.call(e,v),T=n[x],O=r[x],E=0,C=O.length;E<C;E++){var I=O[E];T[I]&&T[I].applyVisual(v,c,h)}}}function l(o,n,t,a){var e={};y.each(o,function(r){var s=p.prepareVisualTypes(n[r]);e[r]=s});function u(r,s){a!=null&&(a=s.getDimension(a));function c(I){return s.getItemVisual(g,I)}function h(I,_){s.setItemVisual(g,I,_)}for(var g;(g=r.next())!=null;){var v=s.getRawDataItem(g);if(v&&v.visualMap===!1)continue;for(var b=a!=null?s.get(a,g,!0):g,w=t(b),x=n[w],T=e[w],O=0,E=T.length;O<E;O++){var C=T[O];x[C]&&x[C].applyVisual(b,c,h)}}}return{progress:u}}D.createVisualMappings=m,D.replaceVisualOption=f,D.applyVisual=d,D.incrementalApplyVisual=l},KCsZ:function(k,D,i){var y=i("bYtY");function p(S){for(var A=0;A<S.length;A++)S[A][1]||(S[A][1]=S[A][0]);return function(m,f,d){for(var l={},o=0;o<S.length;o++){var n=S[o][1];if(f&&y.indexOf(f,n)>=0||d&&y.indexOf(d,n)<0)continue;var t=m.getShallow(n);t!=null&&(l[S[o][0]]=t)}return l}}k.exports=p},KMkd:function(k,D){function i(){this.__data__=[],this.size=0}k.exports=i},KPFz:function(k,D,i){},KQeH:function(k,D,i){"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(k,D,i){var y=i("OELB"),p=y.parsePercent,S=y.linearMap,A=i("+TT/"),m=i("u3DP"),f=i("bYtY"),d=Math.PI*2,l=Math.PI/180;function o(t,a){return A.getLayoutRect(t.getBoxLayoutParams(),{width:a.getWidth(),height:a.getHeight()})}function n(t,a,e,u){a.eachSeriesByType(t,function(r){var s=r.getData(),c=s.mapDimension("value"),h=o(r,e),g=r.get("center"),v=r.get("radius");f.isArray(v)||(v=[0,v]),f.isArray(g)||(g=[g,g]);var b=p(h.width,e.getWidth()),w=p(h.height,e.getHeight()),x=Math.min(b,w),T=p(g[0],b)+h.x,O=p(g[1],w)+h.y,E=p(v[0],x/2),C=p(v[1],x/2),I=-r.get("startAngle")*l,_=r.get("minAngle")*l,F=0;s.each(c,function(te){!isNaN(te)&&F++});var R=s.getSum(c),B=Math.PI/(R||F)*2,M=r.get("clockwise"),X=r.get("roseType"),P=r.get("stillShowZeroSum"),z=s.getDataExtent(c);z[0]=0;var W=d,U=0,V=I,Q=M?1:-1;if(s.each(c,function(te,$){var le;if(isNaN(te)){s.setItemLayout($,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:M,cx:T,cy:O,r0:E,r:X?NaN:C,viewRect:h});return}X!=="area"?le=R===0&&P?B:te*B:le=d/F,le<_?(le=_,W-=_):U+=te;var re=V+Q*le;s.setItemLayout($,{angle:le,startAngle:V,endAngle:re,clockwise:M,cx:T,cy:O,r0:E,r:X?S(te,z,[E,C]):C,viewRect:h}),V=re}),W<d&&F)if(W<=.001){var G=d/F;s.each(c,function(te,$){if(!isNaN(te)){var le=s.getItemLayout($);le.angle=G,le.startAngle=I+Q*$*G,le.endAngle=I+Q*($+1)*G}})}else B=W/U,V=I,s.each(c,function(te,$){if(!isNaN(te)){var le=s.getItemLayout($),re=le.angle===_?_:te*B;le.startAngle=V,le.endAngle=V+Q*re,V+=Q*re}});m(r,C,h.width,h.height,h.x,h.y)})}k.exports=n},KUOm:function(k,D){function i(y){var p={};y.eachSeriesByType("graph",function(S){var A=S.getCategoriesData(),m=S.getData(),f={};A.each(function(d){var l=A.getName(d);f["ec-"+l]=d;var o=A.getItemModel(d),n=o.get("itemStyle.color")||S.getColorFromPalette(l,p);A.setItemVisual(d,"color",n);for(var t=["opacity","symbol","symbolSize","symbolKeepAspect"],a=0;a<t.length;a++){var e=o.getShallow(t[a],!0);e!=null&&A.setItemVisual(d,t[a],e)}}),A.count()&&m.each(function(d){var l=m.getItemModel(d),o=l.getShallow("category");if(o!=null){typeof o=="string"&&(o=f["ec-"+o]);for(var n=["color","opacity","symbol","symbolSize","symbolKeepAspect"],t=0;t<n.length;t++)m.getItemVisual(d,n[t],!0)==null&&m.setItemVisual(d,n[t],A.getItemVisual(o,n[t]))}})})}k.exports=i},Kagy:function(k,D){var i={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:""}}}};k.exports=i},KamJ:function(k,D,i){var y=i("ProS"),p=i("szbU");i("vF/C"),i("qwVE"),i("BuqR"),i("AE9C"),i("1u/T"),y.registerPreprocessor(p)},KmBX:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("CP8R")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="FilterFilled";var n=A.forwardRef(o);D.default=n},KmYQ:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return y.pad.ZeroPadding={pad:function(S,A){var m=A*4;S.clamp(),S.sigBytes+=m-(S.sigBytes%m||m)},unpad:function(S){for(var A=S.words,m=S.sigBytes-1,m=S.sigBytes-1;m>=0;m--)if(A[m>>>2]>>>24-m%4*8&255){S.sigBytes=m+1;break}}},y.pad.ZeroPadding})},"KpQ+":function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("E/ki")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="ClockCircleOutlined";var n=A.forwardRef(o);D.default=n},KrTs:function(k,D,i){"use strict";var y=i("lSNA"),p=i.n(y),S=i("cDf5"),A=i.n(S),m=i("pVnL"),f=i.n(m),d=i("q1tI"),l=i("UmKh"),o=i("TSYQ"),n=i.n(o),t=i("J4zp"),a=i.n(t),e=i("H84U"),u=i("0n0R"),r=function(C,I){var _={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&I.indexOf(F)<0&&(_[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,F=Object.getOwnPropertySymbols(C);R<F.length;R++)I.indexOf(F[R])<0&&Object.prototype.propertyIsEnumerable.call(C,F[R])&&(_[F[R]]=C[F[R]]);return _};function s(C){return C?C.toString().split("").reverse().map(function(I){var _=Number(I);return isNaN(_)?I:_}):[]}function c(C,I){for(var _=[],F=0;F<30;F++)_.push(d.createElement("p",{key:F.toString(),className:n()(I,{current:C===F})},F%10));return _}var h=function(I){var _=I.prefixCls,F=I.count,R=I.className,B=I.style,M=I.title,X=I.component,P=X===void 0?"sup":X,z=I.displayComponent,W=I.onAnimated,U=W===void 0?function(){}:W,V=r(I,["prefixCls","count","className","style","title","component","displayComponent","onAnimated"]),Q=d.useState(!0),G=a()(Q,2),te=G[0],$=G[1],le=d.useState(F),re=a()(le,2),Se=re[0],Re=re[1],Pe=d.useState(F),Je=a()(Pe,2),Ve=Je[0],ct=Je[1],Ue=d.useState(F),ue=a()(Ue,2),rt=ue[0],ge=ue[1],Z=d.useContext(e.b),Y=Z.getPrefixCls,ee=Y("scroll-number",_);Ve!==F&&($(!0),ct(F)),d.useEffect(function(){ge(Se);var he;return te&&(he=setTimeout(function(){$(!1),Re(F),U()})),function(){he&&clearTimeout(he)}},[te,F,U]);var fe=function(ye,Ie){var tt=Math.abs(Number(Se)),pt=Math.abs(Number(rt)),st=Math.abs(s(Se)[Ie]),Fe=Math.abs(s(pt)[Ie]);return te?10+ye:tt>pt?st>=Fe?10+ye:20+ye:st<=Fe?10+ye:ye},be=function(ye,Ie){if(typeof ye=="number"){var tt=fe(ye,Ie),pt=te||s(rt)[Ie]===void 0;return d.createElement("span",{className:"".concat(ee,"-only"),style:{transition:pt?"none":void 0,msTransform:"translateY(".concat(-tt*100,"%)"),WebkitTransform:"translateY(".concat(-tt*100,"%)"),transform:"translateY(".concat(-tt*100,"%)")},key:Ie},c(tt,"".concat(ee,"-only-unit")))}return d.createElement("span",{key:"symbol",className:"".concat(ee,"-symbol")},ye)},Ce=function(){return Se&&Number(Se)%1===0?s(Se).map(function(ye,Ie){return be(ye,Ie)}).reverse():Se},Te=f()(f()({},V),{style:B,className:n()(ee,R),title:M});return B&&B.borderColor&&(Te.style=f()(f()({},B),{boxShadow:"0 0 0 1px ".concat(B.borderColor," inset")})),z?Object(u.a)(z,{className:n()("".concat(ee,"-custom-component"),z.props&&z.props.className)}):d.createElement(P,Te,Ce())},g=h,v=i("09Wf");function b(C){return v.a.indexOf(C)!==-1}var w=function(I){var _,F=I.className,R=I.prefixCls,B=I.style,M=I.color,X=I.children,P=I.text,z=I.placement,W=z===void 0?"end":z,U=d.useContext(e.b),V=U.getPrefixCls,Q=U.direction,G=V("ribbon",R),te=b(M),$=n()(G,F,"".concat(G,"-placement-").concat(W),(_={},p()(_,"".concat(G,"-rtl"),Q==="rtl"),p()(_,"".concat(G,"-color-").concat(M),te),_)),le={},re={};return M&&!te&&(le.background=M,re.color=M),d.createElement("div",{className:"".concat(G,"-wrapper")},X,d.createElement("div",{className:$,style:f()(f()({},le),B)},P,d.createElement("div",{className:"".concat(G,"-corner"),style:re})))},x=w,T=function(C,I){var _={};for(var F in C)Object.prototype.hasOwnProperty.call(C,F)&&I.indexOf(F)<0&&(_[F]=C[F]);if(C!=null&&typeof Object.getOwnPropertySymbols=="function")for(var R=0,F=Object.getOwnPropertySymbols(C);R<F.length;R++)I.indexOf(F[R])<0&&Object.prototype.propertyIsEnumerable.call(C,F[R])&&(_[F[R]]=C[F[R]]);return _},O=function(I){var _,F,R=I.prefixCls,B=I.scrollNumberPrefixCls,M=I.children,X=I.status,P=I.text,z=I.color,W=I.count,U=W===void 0?null:W,V=I.overflowCount,Q=V===void 0?99:V,G=I.dot,te=G===void 0?!1:G,$=I.size,le=$===void 0?"default":$,re=I.title,Se=I.offset,Re=I.style,Pe=I.className,Je=I.showZero,Ve=Je===void 0?!1:Je,ct=T(I,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","showZero"]),Ue=d.useContext(e.b),ue=Ue.getPrefixCls,rt=Ue.direction,ge=ue("badge",R),Z=function(){var Ht=U>Q?"".concat(Q,"+"):U;return Ht},Y=function(){return!!X||!!z},ee=function(){var Ht=Z();return Ht==="0"||Ht===0},fe=function(){return te&&!ee()||Y()},be=function(){return fe()?"":Z()},Ce=function(){return re||(typeof U=="string"||typeof U=="number"?U:void 0)},Te=function(){return rt==="rtl"?Se?f()({left:parseInt(Se[0],10),marginTop:Se[1]},Re):Re:Se?f()({right:-parseInt(Se[0],10),marginTop:Se[1]},Re):Re},he=function(){var Ht=be(),Dt=Ht==null||Ht==="";return(Dt||ee()&&!Ve)&&!fe()},ye=function(){var Ht=he();return Ht||!P?null:d.createElement("span",{className:"".concat(ge,"-status-text")},P)},Ie=function(){var Ht=U;return!Ht||A()(Ht)!=="object"?void 0:Object(u.a)(Ht,{style:f()(f()({},Te()),Ht.props&&Ht.props.style)})},tt=function(){var Ht,Dt=ue("scroll-number",B),Tt=be(),Bt=fe(),Ke=he(),de=n()((Ht={},p()(Ht,"".concat(ge,"-dot"),Bt),p()(Ht,"".concat(ge,"-count"),!Bt),p()(Ht,"".concat(ge,"-count-sm"),le==="small"),p()(Ht,"".concat(ge,"-multiple-words"),!Bt&&U&&U.toString&&U.toString().length>1),p()(Ht,"".concat(ge,"-status-").concat(X),!!X),p()(Ht,"".concat(ge,"-status-").concat(z),b(z)),Ht)),oe=Te();return z&&!b(z)&&(oe=oe||{},oe.background=z),Ke?null:d.createElement(g,{prefixCls:Dt,"data-show":!Ke,className:de,count:Tt,displayComponent:Ie(),title:Ce(),style:oe,key:"scrollNumber"})},pt=n()((_={},p()(_,"".concat(ge,"-status-dot"),Y()),p()(_,"".concat(ge,"-status-").concat(X),!!X),p()(_,"".concat(ge,"-status-").concat(z),b(z)),_)),st={};z&&!b(z)&&(st.background=z);var Fe=n()(Pe,ge,(F={},p()(F,"".concat(ge,"-status"),Y()),p()(F,"".concat(ge,"-not-a-wrapper"),!M),p()(F,"".concat(ge,"-rtl"),rt==="rtl"),F));if(!M&&Y()){var ft=Te(),et=ft&&ft.color;return d.createElement("span",f()({},ct,{className:Fe,style:ft}),d.createElement("span",{className:pt,style:st}),d.createElement("span",{style:{color:et},className:"".concat(ge,"-status-text")},P))}return d.createElement("span",f()({},ct,{className:Fe}),M,d.createElement(l.a,{component:"",showProp:"data-show",transitionName:M?"".concat(ge,"-zoom"):"",transitionAppear:!0},tt()),ye())};O.Ribbon=x;var E=D.a=O},Kvyg:function(k,D,i){},KxFI:function(k,D,i){},KxfA:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),A=S.isTypedArray,m=S.extend,f=S.assert,d=S.each,l=S.isObject,o=i("4NO4"),n=o.getDataItemValue,t=o.isDataItemOption,a=i("OELB"),e=a.parseDate,u=i("7G+c"),r=i("k9D9"),s=r.SOURCE_FORMAT_TYPED_ARRAY,c=r.SOURCE_FORMAT_ARRAY_ROWS,h=r.SOURCE_FORMAT_ORIGINAL,g=r.SOURCE_FORMAT_OBJECT_ROWS;function v(M,X){u.isInstance(M)||(M=u.seriesDataToSource(M)),this._source=M;var P=this._data=M.data,z=M.sourceFormat;z===s&&(this._offset=0,this._dimSize=X,this._data=P);var W=w[z===c?z+"_"+M.seriesLayoutBy:z];m(this,W)}var b=v.prototype;b.pure=!1,b.persistent=!0,b.getSource=function(){return this._source};var w={arrayRows_column:{pure:!0,count:function(){return Math.max(0,this._data.length-this._source.startIndex)},getItem:function(M){return this._data[M+this._source.startIndex]},appendData:O},arrayRows_row:{pure:!0,count:function(){var M=this._data[0];return M?Math.max(0,M.length-this._source.startIndex):0},getItem:function(M){M+=this._source.startIndex;for(var X=[],P=this._data,z=0;z<P.length;z++){var W=P[z];X.push(W?W[M]:null)}return X},appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},objectRows:{pure:!0,count:x,getItem:T,appendData:O},keyedColumns:{pure:!0,count:function(){var M=this._source.dimensionsDefine[0].name,X=this._data[M];return X?X.length:0},getItem:function(M){for(var X=[],P=this._source.dimensionsDefine,z=0;z<P.length;z++){var W=this._data[P[z].name];X.push(W?W[M]:null)}return X},appendData:function(M){var X=this._data;d(M,function(P,z){for(var W=X[z]||(X[z]=[]),U=0;U<(P||[]).length;U++)W.push(P[U])})}},original:{count:x,getItem:T,appendData:O},typedArray:{persistent:!1,pure:!0,count:function(){return this._data?this._data.length/this._dimSize:0},getItem:function(M,X){M=M-this._offset,X=X||[];for(var P=this._dimSize*M,z=0;z<this._dimSize;z++)X[z]=this._data[P+z];return X},appendData:function(M){this._data=M},clean:function(){this._offset+=this.count(),this._data=null}}};function x(){return this._data.length}function T(M){return this._data[M]}function O(M){for(var X=0;X<M.length;X++)this._data.push(M[X])}var E={arrayRows:C,objectRows:function(M,X,P,z){return P!=null?M[z]:M},keyedColumns:C,original:function(M,X,P,z){var W=n(M);return P==null||!(W instanceof Array)?W:W[P]},typedArray:C};function C(M,X,P,z){return P!=null?M[P]:M}var I={arrayRows:_,objectRows:function(M,X,P,z){return F(M[X],this._dimensionInfos[X])},keyedColumns:_,original:function(M,X,P,z){var W=M&&(M.value==null?M:M.value);return!this._rawData.pure&&t(M)&&(this.hasItemOption=!0),F(W instanceof Array?W[z]:W,this._dimensionInfos[X])},typedArray:function(M,X,P,z){return M[z]}};function _(M,X,P,z){return F(M[z],this._dimensionInfos[X])}function F(M,X){var P=X&&X.type;if(P==="ordinal"){var z=X&&X.ordinalMeta;return z?z.parseAndCollect(M):M}return P==="time"&&typeof M!="number"&&M!=null&&M!=="-"&&(M=+e(M)),M==null||M===""?NaN:+M}function R(M,X,P){if(!M)return;var z=M.getRawDataItem(X);if(z==null)return;var W=M.getProvider().getSource().sourceFormat,U,V,Q=M.getDimensionInfo(P);return Q&&(U=Q.name,V=Q.index),E[W](z,X,V,U)}function B(M,X,P){if(!M)return;var z=M.getProvider().getSource().sourceFormat;if(z!==h&&z!==g)return;var W=M.getRawDataItem(X);if(z===h&&!l(W)&&(W=null),W)return W[P]}D.DefaultDataProvider=v,D.defaultDimValueGetters=I,D.retrieveRawValue=R,D.retrieveRawAttr=B},L0Ub:function(k,D,i){var y=i("bYtY"),p=y.each,S=y.createHashMap,A=y.assert,m=i("Tghj"),f=m.__DEV__,d=S(["tooltip","label","itemName","itemId","seriesName"]);function l(a){var e={},u=e.encode={},r=S(),s=[],c=[],h=e.userOutput={dimensionNames:a.dimensions.slice(),encode:{}};p(a.dimensions,function(x){var T=a.getDimensionInfo(x),O=T.coordDim;if(O){var E=T.coordDimIndex;o(u,O)[E]=x,T.isExtraCoord||(r.set(O,1),t(T.type)&&(s[0]=x),o(h.encode,O)[E]=T.index),T.defaultTooltip&&c.push(x)}d.each(function(C,I){var _=o(u,I),F=T.otherDims[I];F!=null&&F!==!1&&(_[F]=T.name)})});var g=[],v={};r.each(function(x,T){var O=u[T];v[T]=O[0],g=g.concat(O)}),e.dataDimsOnCoord=g,e.encodeFirstDimNotExtra=v;var b=u.label;b&&b.length&&(s=b.slice());var w=u.tooltip;return w&&w.length?c=w.slice():c.length||(c=s.slice()),u.defaultedLabel=s,u.defaultedTooltip=c,e}function o(a,e){return a.hasOwnProperty(e)||(a[e]=[]),a[e]}function n(a){return a==="category"?"ordinal":a==="time"?"time":"float"}function t(a){return!(a==="ordinal"||a==="time")}D.OTHER_DIMENSIONS=d,D.summarizeDimensions=l,D.getDimensionTypeByAxis=n},L3Oj:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("HjIi");i("HM/N"),i("9eas"),i("eS4l"),i("y4/Y"),i("as94"),y.registerLayout(p.curry(S,"bar")),y.extendComponentView({type:"polar"})},L41K:function(k,D,i){"use strict";i.d(D,"a",function(){return U});var y=i("pVnL"),p=i.n(y),S=i("lSNA"),A=i.n(S),m=i("lwsE"),f=i.n(m),d=i("W8MJ"),l=i.n(d),o=i("7W2i"),n=i.n(o),t=i("LQ03"),a=i.n(t),e=i("q1tI"),u=i.n(e),r=i("BGR+"),s=i("VTBJ"),c=i("rePB"),h=i("Ff2n"),g=i("1OyB"),v=i("vuIU"),b=i("Ji7U"),w=i("LK+K"),x=i("Zm9Q"),T=i("TSYQ"),O=i.n(T),E=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick"];function C(V){return typeof V=="string"}var I=function(V){Object(b.a)(G,V);var Q=Object(w.a)(G);function G(){var te;return Object(g.a)(this,G),te=Q.apply(this,arguments),te.onClick=function(){var $=te.props,le=$.onClick,re=$.onStepClick,Se=$.stepIndex;le&&le.apply(void 0,arguments),re(Se)},te}return Object(v.a)(G,[{key:"renderIconNode",value:function(){var $,le=this.props,re=le.prefixCls,Se=le.progressDot,Re=le.stepIcon,Pe=le.stepNumber,Je=le.status,Ve=le.title,ct=le.description,Ue=le.icon,ue=le.iconPrefix,rt=le.icons,ge,Z=O()("".concat(re,"-icon"),"".concat(ue,"icon"),($={},Object(c.a)($,"".concat(ue,"icon-").concat(Ue),Ue&&C(Ue)),Object(c.a)($,"".concat(ue,"icon-check"),!Ue&&Je==="finish"&&(rt&&!rt.finish||!rt)),Object(c.a)($,"".concat(ue,"icon-cross"),!Ue&&Je==="error"&&(rt&&!rt.error||!rt)),$)),Y=e.createElement("span",{className:"".concat(re,"-icon-dot")});return Se?typeof Se=="function"?ge=e.createElement("span",{className:"".concat(re,"-icon")},Se(Y,{index:Pe-1,status:Je,title:Ve,description:ct})):ge=e.createElement("span",{className:"".concat(re,"-icon")},Y):Ue&&!C(Ue)?ge=e.createElement("span",{className:"".concat(re,"-icon")},Ue):rt&&rt.finish&&Je==="finish"?ge=e.createElement("span",{className:"".concat(re,"-icon")},rt.finish):rt&&rt.error&&Je==="error"?ge=e.createElement("span",{className:"".concat(re,"-icon")},rt.error):Ue||Je==="finish"||Je==="error"?ge=e.createElement("span",{className:Z}):ge=e.createElement("span",{className:"".concat(re,"-icon")},Pe),Re&&(ge=Re({index:Pe-1,status:Je,title:Ve,description:ct,node:ge})),ge}},{key:"render",value:function(){var $,le=this.props,re=le.className,Se=le.prefixCls,Re=le.style,Pe=le.active,Je=le.status,Ve=Je===void 0?"wait":Je,ct=le.iconPrefix,Ue=le.icon,ue=le.wrapperStyle,rt=le.stepNumber,ge=le.disabled,Z=le.description,Y=le.title,ee=le.subTitle,fe=le.progressDot,be=le.stepIcon,Ce=le.tailContent,Te=le.icons,he=le.stepIndex,ye=le.onStepClick,Ie=le.onClick,tt=Object(h.a)(le,E),pt=O()("".concat(Se,"-item"),"".concat(Se,"-item-").concat(Ve),re,($={},Object(c.a)($,"".concat(Se,"-item-custom"),Ue),Object(c.a)($,"".concat(Se,"-item-active"),Pe),Object(c.a)($,"".concat(Se,"-item-disabled"),ge===!0),$)),st=Object(s.a)({},Re),Fe={};return ye&&!ge&&(Fe.role="button",Fe.tabIndex=0,Fe.onClick=this.onClick),e.createElement("div",Object.assign({},tt,{className:pt,style:st}),e.createElement("div",Object.assign({onClick:Ie},Fe,{className:"".concat(Se,"-item-container")}),e.createElement("div",{className:"".concat(Se,"-item-tail")},Ce),e.createElement("div",{className:"".concat(Se,"-item-icon")},this.renderIconNode()),e.createElement("div",{className:"".concat(Se,"-item-content")},e.createElement("div",{className:"".concat(Se,"-item-title")},Y,ee&&e.createElement("div",{title:typeof ee=="string"?ee:void 0,className:"".concat(Se,"-item-subtitle")},ee)),Z&&e.createElement("div",{className:"".concat(Se,"-item-description")},Z))))}}]),G}(e.Component),_=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange"],F=function(V){Object(b.a)(G,V);var Q=Object(w.a)(G);function G(){var te;return Object(g.a)(this,G),te=Q.apply(this,arguments),te.onStepClick=function($){var le=te.props,re=le.onChange,Se=le.current;re&&Se!==$&&re($)},te}return Object(v.a)(G,[{key:"render",value:function(){var $,le=this,re=this.props,Se=re.prefixCls,Re=re.style,Pe=Re===void 0?{}:Re,Je=re.className,Ve=re.children,ct=re.direction,Ue=re.type,ue=re.labelPlacement,rt=re.iconPrefix,ge=re.status,Z=re.size,Y=re.current,ee=re.progressDot,fe=re.stepIcon,be=re.initial,Ce=re.icons,Te=re.onChange,he=Object(h.a)(re,_),ye=Ue==="navigation",Ie=ee?"vertical":ue,tt=O()(Se,"".concat(Se,"-").concat(ct),Je,($={},Object(c.a)($,"".concat(Se,"-").concat(Z),Z),Object(c.a)($,"".concat(Se,"-label-").concat(Ie),ct==="horizontal"),Object(c.a)($,"".concat(Se,"-dot"),!!ee),Object(c.a)($,"".concat(Se,"-navigation"),ye),$));return u.a.createElement("div",Object.assign({className:tt,style:Pe},he),Object(x.a)(Ve).map(function(pt,st){var Fe=be+st,ft=Object(s.a)({stepNumber:"".concat(Fe+1),stepIndex:Fe,key:Fe,prefixCls:Se,iconPrefix:rt,wrapperStyle:Pe,progressDot:ee,stepIcon:fe,icons:Ce,onStepClick:Te&&le.onStepClick},pt.props);return ge==="error"&&st===Y-1&&(ft.className="".concat(Se,"-next-error")),pt.props.status||(Fe===Y?ft.status=ge:Fe<Y?ft.status="finish":ft.status="wait"),ft.active=Fe===Y,Object(e.cloneElement)(pt,ft)}))}}]),G}(u.a.Component);F.Step=I,F.defaultProps={type:"default",prefixCls:"rc-steps",iconPrefix:"rc",direction:"horizontal",labelPlacement:"horizontal",initial:0,current:0,status:"process",size:"",progressDot:!1};var R=F,B=i("NAnI"),M=i.n(B),X=i("V/uB"),P=i.n(X),z=i("H84U"),W=i("CFYs"),U=function(V){n()(G,V);var Q=a()(G);function G(){var te;return f()(this,G),te=Q.apply(this,arguments),te.renderSteps=function($){var le=$.getPrefixCls,re=$.direction,Se=le("steps",te.props.prefixCls),Re=le("",te.props.iconPrefix),Pe=te.props,Je=Pe.percent,Ve=Pe.size,ct=O()(te.props.className,A()({},"".concat(Se,"-rtl"),re==="rtl")),Ue={finish:e.createElement(M.a,{className:"".concat(Se,"-finish-icon")}),error:e.createElement(P.a,{className:"".concat(Se,"-error-icon")})},ue=function(ge){var Z=ge.node,Y=ge.status;if(Y==="process"&&Je!==void 0){var ee=Ve==="small"?32:40,fe=e.createElement("div",{className:"".concat(Se,"-progress-icon")},e.createElement(W.a,{type:"circle",percent:Je,width:ee,strokeWidth:4,format:function(){return null}}),Z);return fe}return Z};return e.createElement(R,p()({icons:Ue},Object(r.default)(te.props,["progress"]),{stepIcon:ue,prefixCls:Se,iconPrefix:Re,className:ct}))},te}return l()(G,[{key:"render",value:function(){return e.createElement(z.a,null,this.renderSteps)}}]),G}(e.Component);U.Step=R.Step,U.defaultProps={current:0}},L5E0:function(k,D){var i=["itemStyle","borderColor"];function y(p,S){var A=p.get("color");p.eachRawSeriesByType("boxplot",function(m){var f=A[m.seriesIndex%A.length],d=m.getData();d.setVisual({legendSymbol:"roundRect",color:m.get(i)||f}),p.isSeriesFiltered(m)||d.each(function(l){var o=d.getItemModel(l);d.setItemVisual(l,{color:o.get(i,!0)})})})}k.exports=y},L8xA:function(k,D){function i(y){var p=this.__data__,S=p.delete(y);return this.size=p.size,S}k.exports=i},LBfv:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=p.createHashMap,A=p.each;y.registerProcessor({getTargetSeries:function(m){var f=S();return m.eachComponent("dataZoom",function(d){d.eachTargetAxis(function(l,o,n){var t=n.getAxisProxy(l.name,o);A(t.getTargetSeriesModels(),function(a){f.set(a.uid,a)})})}),f},modifyOutputEnd:!0,overallReset:function(m,f){m.eachComponent("dataZoom",function(d){d.eachTargetAxis(function(l,o,n){n.getAxisProxy(l.name,o).reset(n,f)}),d.eachTargetAxis(function(l,o,n){n.getAxisProxy(l.name,o).filterData(n,f)})}),m.eachComponent("dataZoom",function(d){var l=d.findRepresentativeAxisProxy(),o=l.getDataPercentWindow(),n=l.getDataValueWindow();d.setCalculatedRange({start:o[0],end:o[1],startValue:n[0],endValue:n[1]})})}})},LCi9:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(v,b){if(!(v instanceof b))throw new TypeError("Cannot call a class as a function")}function p(v,b){for(var w=0;w<b.length;w++){var x=b[w];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(v,x.key,x)}}function S(v,b,w){return b&&p(v.prototype,b),w&&p(v,w),v}var A=0,m=1,f=2,d=4,l=8,o=16,n=32,t=64,a=127,e=50,u=90,r=250,s=1e3,c=1e3,h=50,g=function(){function v(){y(this,v),this._target=null,this._state=a,this._tracked=[],this._ignored=[],this._waitingRelease=!1,this._releaseStart=0,this._longpressTimeoutId=null,this._twoTouchTimeoutId=null,this._boundEventHandler=this._eventHandler.bind(this)}return S(v,[{key:"attach",value:function(w){this.detach(),this._target=w,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(w){var x;w.stopPropagation(),w.preventDefault();switch(w.type){case"touchstart":x=this._touchStart;break;case"touchmove":x=this._touchMove;break;case"touchend":case"touchcancel":x=this._touchEnd;break}for(var T=0;T<w.changedTouches.length;T++){var O=w.changedTouches[T];x.call(this,O.identifier,O.clientX,O.clientY)}}},{key:"_touchStart",value:function(w,x,T){if(this._hasDetectedGesture()||this._state===A){this._ignored.push(w);return}if(this._tracked.length>0&&Date.now()-this._tracked[0].started>r){this._state=A,this._ignored.push(w);return}if(this._waitingRelease){this._state=A,this._ignored.push(w);return}this._tracked.push({id:w,started:Date.now(),active:!0,firstX:x,firstY:T,lastX:x,lastY:T,angle:0});switch(this._tracked.length){case 1:this._startLongpressTimeout();break;case 2:this._state&=~(m|l|o),this._stopLongpressTimeout();break;case 3:this._state&=~(f|n|t);break;default:this._state=A}}},{key:"_touchMove",value:function(w,x,T){var O=this._tracked.find(function(R){return R.id===w});if(O===void 0)return;O.lastX=x,O.lastY=T;var E=x-O.firstX,C=T-O.firstY;if((O.firstX!==O.lastX||O.firstY!==O.lastY)&&(O.angle=Math.atan2(C,E)*180/Math.PI),!this._hasDetectedGesture()){if(Math.hypot(E,C)<e)return;if(this._state&=~(m|f|d|o),this._stopLongpressTimeout(),this._tracked.length!==1&&(this._state&=~l),this._tracked.length!==2&&(this._state&=~(n|t)),this._tracked.length===2){var I=this._tracked.find(function(R){return R.id!==w}),_=Math.hypot(I.firstX-I.lastX,I.firstY-I.lastY);if(_>e){var F=Math.abs(O.angle-I.angle);F=Math.abs((F+180)%360-180),F>u?this._state&=~n: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(w,x,T){if(this._ignored.indexOf(w)!==-1){this._ignored.splice(this._ignored.indexOf(w),1),this._ignored.length===0&&this._tracked.length===0&&(this._state=a,this._waitingRelease=!1);return}if(!this._hasDetectedGesture()&&this._isTwoTouchTimeoutRunning()&&(this._stopTwoTouchTimeout(),this._state=A),!this._hasDetectedGesture()&&(this._state&=~(l|n|t),this._state&=~o,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&=~(m|d);break}}if(this._waitingRelease){Date.now()-this._releaseStart>r&&(this._state=A),this._tracked.some(function(C){return Date.now()-C.started>s})&&(this._state=A);var O=this._tracked.find(function(C){return C.id===w});if(O.active=!1,this._hasDetectedGesture())this._pushEvent("gesturestart");else if(this._state!==A)return}this._hasDetectedGesture()&&this._pushEvent("gestureend");for(var E=0;E<this._tracked.length;E++)this._tracked[E].active&&this._ignored.push(this._tracked[E].id);this._tracked=[],this._state=A,this._ignored.indexOf(w)!==-1&&this._ignored.splice(this._ignored.indexOf(w),1),this._ignored.length===0&&(this._state=a,this._waitingRelease=!1)}},{key:"_hasDetectedGesture",value:function(){return this._state===A||this._state&this._state-1?!1:!(this._state&(m|f|d)&&this._tracked.some(function(w){return w.active}))}},{key:"_startLongpressTimeout",value:function(){var w=this;this._stopLongpressTimeout(),this._longpressTimeoutId=setTimeout(function(){return w._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=o,this._pushEvent("gesturestart")}},{key:"_startTwoTouchTimeout",value:function(){var w=this;this._stopTwoTouchTimeout(),this._twoTouchTimeoutId=setTimeout(function(){return w._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 w=this._getAverageMovement(),x=Math.abs(w.x),T=Math.abs(w.y),O=this._getAverageDistance(),E=Math.abs(Math.hypot(O.first.x,O.first.y)-Math.hypot(O.last.x,O.last.y));T<E&&x<E?this._state=t:this._state=n,this._pushEvent("gesturestart"),this._pushEvent("gesturemove")}},{key:"_pushEvent",value:function(w){var x={type:this._stateToGesture(this._state)},T=this._getPosition(),O=T.last;w==="gesturestart"&&(O=T.first);switch(this._state){case n:case t:O=T.first;break}if(x.clientX=O.x,x.clientY=O.y,this._state===t){var E=this._getAverageDistance();w==="gesturestart"?(x.magnitudeX=E.first.x,x.magnitudeY=E.first.y):(x.magnitudeX=E.last.x,x.magnitudeY=E.last.y)}else if(this._state===n)if(w==="gesturestart")x.magnitudeX=0,x.magnitudeY=0;else{var C=this._getAverageMovement();x.magnitudeX=C.x,x.magnitudeY=C.y}var I=new CustomEvent(w,{detail:x});this._target.dispatchEvent(I)}},{key:"_stateToGesture",value:function(w){switch(w){case m:return"onetap";case f:return"twotap";case d:return"threetap";case l:return"drag";case o:return"longpress";case n:return"twodrag";case t:return"pinch"}throw new Error("Unknown gesture state: "+w)}},{key:"_getPosition",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture position, no tracked touches");for(var w=this._tracked.length,x=0,T=0,O=0,E=0,C=0;C<this._tracked.length;C++)x+=this._tracked[C].firstX,T+=this._tracked[C].firstY,O+=this._tracked[C].lastX,E+=this._tracked[C].lastY;return{first:{x:x/w,y:T/w},last:{x:O/w,y:E/w}}}},{key:"_getAverageMovement",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture movement, no tracked touches");var w,x;w=x=0;for(var T=this._tracked.length,O=0;O<this._tracked.length;O++)w+=this._tracked[O].lastX-this._tracked[O].firstX,x+=this._tracked[O].lastY-this._tracked[O].firstY;return{x:w/T,y:x/T}}},{key:"_getAverageDistance",value:function(){if(this._tracked.length===0)throw new Error("Failed to get gesture distance, no tracked touches");var w=this._tracked[0],x=this._tracked[this._tracked.length-1],T=Math.abs(x.firstX-w.firstX),O=Math.abs(x.firstY-w.firstY),E=Math.abs(x.lastX-w.lastX),C=Math.abs(x.lastY-w.lastY);return{first:{x:T,y:O},last:{x:E,y:C}}}}]),v}();D.default=g},LPTA:function(k,D){var i=1;typeof window!="undefined"&&(i=Math.max(window.devicePixelRatio||1,1));var y=0,p=i;D.debugMode=y,D.devicePixelRatio=p},LPzL:function(k,D,i){var y=i("ProS");i("QzjZ"),i("vL6D"),i("xiyX"),i("y4/Y"),i("8Th4"),y.extendComponentView({type:"single"})},LSTS:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y=function(){function a(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&&a(e.prototype,u),r&&a(e,r),e}}(),p=i("q1tI"),S=f(p),A=i("17x9"),m=f(A);function f(a){return a&&a.__esModule?a:{default:a}}function d(a,e){var u={};for(var r in a){if(e.indexOf(r)>=0)continue;if(!Object.prototype.hasOwnProperty.call(a,r))continue;u[r]=a[r]}return u}function l(a,e){if(!(a instanceof e))throw new TypeError("Cannot call a class as a function")}function o(a,e){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e&&(typeof e=="object"||typeof e=="function")?e:a}function n(a,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);a.prototype=Object.create(e&&e.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(a,e):a.__proto__=e)}var t=function(a){n(e,a);function e(u){l(this,e);var r=o(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 g=document.documentElement||document.body.parentNode||document.body,v=s.pageYOffset!==void 0?s.pageYOffset:g.scrollTop;this.props.isReverse?h=v:h=this.calculateOffset(r,v)}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,g=s.hasMore,v=s.initialLoad,b=s.isReverse,w=s.loader,x=s.loadMore,T=s.pageStart,O=s.ref,E=s.threshold,C=s.useCapture,I=s.useWindow,_=s.getScrollParent,F=d(s,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]);F.ref=function(B){r.scrollComponent=B,O&&O(B)};var R=[c];return g&&(w?b?R.unshift(w):R.push(w):this.defaultLoader&&(b?R.unshift(this.defaultLoader):R.push(this.defaultLoader))),S.default.createElement(h,F,R)}}]),e}(p.Component);t.propTypes={children:m.default.node.isRequired,element:m.default.node,hasMore:m.default.bool,initialLoad:m.default.bool,isReverse:m.default.bool,loader:m.default.node,loadMore:m.default.func.isRequired,pageStart:m.default.number,ref:m.default.func,getScrollParent:m.default.func,threshold:m.default.number,useCapture:m.default.bool,useWindow:m.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,k.exports=D.default},LXxW:function(k,D){function i(y,p){for(var S=-1,A=y==null?0:y.length,m=0,f=[];++S<A;){var d=y[S];p(d,S,y)&&(f[m++]=d)}return f}k.exports=i},Lerx:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("Mds0"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},Llu2:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("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"},A=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:A}))};f.displayName="DeliveredProcedureOutlined";var d=D.a=p.forwardRef(f)},Lo0S:function(k,D,i){"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",p=function(){};D.Debug=p;var S=function(){};D.Info=S;var A=function(){};D.Warn=A;var m=function(){};D.Error=m;function f(l){if(typeof l=="undefined"?l=y:y=l,D.Debug=p=D.Info=S=D.Warn=A=D.Error=m=function(){},typeof window.console!="undefined")switch(l){case"debug":D.Debug=p=console.debug.bind(window.console);case"info":D.Info=S=console.info.bind(window.console);case"warn":D.Warn=A=console.warn.bind(window.console);case"error":D.Error=m=console.error.bind(window.console);case"none":break;default:throw new window.Error("invalid logging type '"+l+"'")}}function d(){return y}f()},LtfV:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("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"},A=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:A}))};f.displayName="InboxOutlined";var d=D.a=p.forwardRef(f)},Lyp1:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("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"},A=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:A}))};f.displayName="QuestionCircleOutlined";var d=D.a=p.forwardRef(f)},LzGr:function(k,D,i){var y=i("ProS"),p=i("rnVJ");i("EMyp"),i("8x+h"),i("wt3j"),i("uOyE"),i("/stD"),y.registerPreprocessor(p)},MBQ8:function(k,D,i){var y=i("T4UG"),p=i("MwEJ"),S=y.extend({type:"series.__base_bar__",getInitialData:function(A,m){return p(this.getSource(),this,{useEncodeDefaulter:!0})},getMarkerPosition:function(A){var m=this.coordinateSystem;if(m){var f=m.dataToPoint(m.clampData(A)),d=this.getData(),l=d.getLayout("offset"),o=d.getLayout("size"),n=m.getBaseAxis().isHorizontal()?0:1;return f[n]+=l+o/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:{}}});k.exports=S},MEGo:function(k,D,i){var y=i("4fz+"),p=i("Dagg"),S=i("dqUG"),A=i("2fw6"),m=i("x6Kt"),f=i("rmlV"),d=i("yxFR"),l=i("y+Vt"),o=i("h7HQ"),n=i("1Jh7"),t=i("SKnc"),a=i("K2GJ"),e=i("Fofx"),u=i("NC18"),r=u.createFromString,s=i("bYtY"),c=s.isString,h=s.extend,g=s.defaults,v=s.trim,b=s.each,w=/[\s,]+/;function x(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=x(Q);if(!te)throw new Error("Illegal svg");var $=new y;this._root=$;var le=te.getAttribute("viewBox")||"",re=parseFloat(te.getAttribute("width")||G.width),Se=parseFloat(te.getAttribute("height")||G.height);isNaN(re)&&(re=null),isNaN(Se)&&(Se=null),R(te,$,null,!0);for(var Re=te.firstChild;Re;)this._parseNode(Re,$),Re=Re.nextSibling;var Pe,Je;if(le){var Ve=v(le).split(w);Ve.length>=4&&(Pe={x:parseFloat(Ve[0]||0),y:parseFloat(Ve[1]||0),width:parseFloat(Ve[2]),height:parseFloat(Ve[3])})}if(Pe&&re!=null&&Se!=null&&(Je=U(Pe,re,Se),!G.ignoreViewBox)){var ct=$;$=new y,$.add(ct),ct.scale=Je.scale.slice(),ct.position=Je.position.slice()}return!G.ignoreRootClip&&re!=null&&Se!=null&&$.setClipPath(new m({shape:{x:0,y:0,width:re,height:Se}})),{root:$,width:re,height:Se,viewBoxRect:Pe,viewBoxTransform:Je}},T.prototype._parseNode=function(Q,G){var te=Q.nodeName.toLowerCase();te==="defs"?this._isDefine=!0:te==="text"&&(this._isText=!0);var $;if(this._isDefine){var le=E[te];if(le){var re=le.call(this,Q),Se=Q.getAttribute("id");Se&&(this._defs[Se]=re)}}else{var le=O[te];le&&($=le.call(this,Q,G),G.add($))}for(var Re=Q.firstChild;Re;)Re.nodeType===1&&this._parseNode(Re,$),Re.nodeType===3&&this._isText&&this._parseText(Re,$),Re=Re.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.getAttribute("dy")||0;this._textX+=parseFloat(te),this._textY+=parseFloat($)}var le=new S({style:{text:Q.textContent,transformText:!0},position:[this._textX||0,this._textY||0]});I(G,le),R(Q,le,this._defs);var re=le.style.fontSize;re&&re<9&&(le.style.fontSize=9,le.scale=le.scale||[1,1],le.scale[0]*=re/9,le.scale[1]*=re/9);var Se=le.getBoundingRect();return this._textX+=Se.width,G.add(le),le};var O={g:function(G,te){var $=new y;return I(te,$),R(G,$,this._defs),$},rect:function(G,te){var $=new m;return I(te,$),R(G,$,this._defs),$.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)}),$},circle:function(G,te){var $=new A;return I(te,$),R(G,$,this._defs),$.setShape({cx:parseFloat(G.getAttribute("cx")||0),cy:parseFloat(G.getAttribute("cy")||0),r:parseFloat(G.getAttribute("r")||0)}),$},line:function(G,te){var $=new d;return I(te,$),R(G,$,this._defs),$.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)}),$},ellipse:function(G,te){var $=new f;return I(te,$),R(G,$,this._defs),$.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)}),$},polygon:function(G,te){var $=G.getAttribute("points");$&&($=_($));var le=new o({shape:{points:$||[]}});return I(te,le),R(G,le,this._defs),le},polyline:function(G,te){var $=new l;I(te,$),R(G,$,this._defs);var le=G.getAttribute("points");le&&(le=_(le));var re=new n({shape:{points:le||[]}});return re},image:function(G,te){var $=new p;return I(te,$),R(G,$,this._defs),$.setStyle({image:G.getAttribute("xlink:href"),x:G.getAttribute("x"),y:G.getAttribute("y"),width:G.getAttribute("width"),height:G.getAttribute("height")}),$},text:function(G,te){var $=G.getAttribute("x")||0,le=G.getAttribute("y")||0,re=G.getAttribute("dx")||0,Se=G.getAttribute("dy")||0;this._textX=parseFloat($)+parseFloat(re),this._textY=parseFloat(le)+parseFloat(Se);var Re=new y;return I(te,Re),R(G,Re,this._defs),Re},tspan:function(G,te){var $=G.getAttribute("x"),le=G.getAttribute("y");$!=null&&(this._textX=parseFloat($)),le!=null&&(this._textY=parseFloat(le));var re=G.getAttribute("dx")||0,Se=G.getAttribute("dy")||0,Re=new y;return I(te,Re),R(G,Re,this._defs),this._textX+=re,this._textY+=Se,Re},path:function(G,te){var $=G.getAttribute("d")||"",le=r($);return I(te,le),R(G,le,this._defs),le}},E={lineargradient:function(G){var te=parseInt(G.getAttribute("x1")||0,10),$=parseInt(G.getAttribute("y1")||0,10),le=parseInt(G.getAttribute("x2")||10,10),re=parseInt(G.getAttribute("y2")||0,10),Se=new t(te,$,le,re);return C(G,Se),Se},radialgradient:function(G){}};function C(Q,G){for(var te=Q.firstChild;te;){if(te.nodeType===1){var $=te.getAttribute("offset");$.indexOf("%")>0?$=parseInt($,10)/100:$?$=parseFloat($):$=0;var le=te.getAttribute("stop-color")||"#000000";G.addColorStop($,le)}te=te.nextSibling}}function I(Q,G){Q&&Q.__inheritedStyle&&(G.__inheritedStyle||(G.__inheritedStyle={}),g(G.__inheritedStyle,Q.__inheritedStyle))}function _(Q){for(var G=v(Q).split(w),te=[],$=0;$<G.length;$+=2){var le=parseFloat(G[$]),re=parseFloat(G[$+1]);te.push([le,re])}return te}var F={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 R(Q,G,te,$){var le=G.__inheritedStyle||{},re=G.type==="text";if(Q.nodeType===1&&(P(Q,G),h(le,W(Q)),!$)){for(var Se in F)if(F.hasOwnProperty(Se)){var Re=Q.getAttribute(Se);Re!=null&&(le[F[Se]]=Re)}}var Pe=re?"textFill":"fill",Je=re?"textStroke":"stroke";G.style=G.style||new a;var Ve=G.style;le.fill!=null&&Ve.set(Pe,M(le.fill,te)),le.stroke!=null&&Ve.set(Je,M(le.stroke,te)),b(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(ct){var Ue=ct==="lineWidth"&&re?"textStrokeWidth":ct;le[ct]!=null&&Ve.set(Ue,parseFloat(le[ct]))}),(!le.textBaseline||le.textBaseline==="auto")&&(le.textBaseline="alphabetic"),le.textBaseline==="alphabetic"&&(le.textBaseline="bottom"),le.textAlign==="start"&&(le.textAlign="left"),le.textAlign==="end"&&(le.textAlign="right"),b(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign","textBaseline"],function(ct){le[ct]!=null&&Ve.set(ct,le[ct])}),le.lineDash&&(G.style.lineDash=v(le.lineDash).split(w)),Ve[Je]&&Ve[Je]!=="none"&&(G[Je]=!0),G.__inheritedStyle=le}var B=/url\(\s*#(.*?)\)/;function M(Q,G){var te=G&&Q&&Q.match(B);if(te){var $=v(te[1]),le=G[$];return le}return Q}var X=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.e,]*)\)/g;function P(Q,G){var te=Q.getAttribute("transform");if(te){te=te.replace(/,/g," ");var $=null,le=[];te.replace(X,function(Pe,Je,Ve){le.push(Je,Ve)});for(var re=le.length-1;re>0;re-=2){var Se=le[re],Re=le[re-1];$=$||e.create();switch(Re){case"translate":Se=v(Se).split(w),e.translate($,$,[parseFloat(Se[0]),parseFloat(Se[1]||0)]);break;case"scale":Se=v(Se).split(w),e.scale($,$,[parseFloat(Se[0]),parseFloat(Se[1]||Se[0])]);break;case"rotate":Se=v(Se).split(w),e.rotate($,$,parseFloat(Se[0]));break;case"skew":Se=v(Se).split(w),console.warn("Skew transform is not supported yet");break;case"matrix":var Se=v(Se).split(w);$[0]=parseFloat(Se[0]),$[1]=parseFloat(Se[1]),$[2]=parseFloat(Se[2]),$[3]=parseFloat(Se[3]),$[4]=parseFloat(Se[4]),$[5]=parseFloat(Se[5]);break}}G.setLocalTransform($)}}var z=/([^\s:;]+)\s*:\s*([^:;]+)/g;function W(Q){var G=Q.getAttribute("style"),te={};if(!G)return te;var $={};z.lastIndex=0;for(var le;(le=z.exec(G))!=null;)$[le[1]]=le[2];for(var re in F)F.hasOwnProperty(re)&&$[re]!=null&&(te[F[re]]=$[re]);return te}function U(Q,G,te){var $=G/Q.width,le=te/Q.height,re=Math.min($,le),Se=[re,re],Re=[-(Q.x+Q.width/2)*re+G/2,-(Q.y+Q.height/2)*re+te/2];return{scale:Se,position:Re}}function V(Q,G){var te=new T;return te.parse(Q,G)}D.parseXML=x,D.makeViewBoxTransform=U,D.parseSVG=V},MFOe:function(k,D,i){(function(y){var p=f(),S=d(),A=l(),m=typeof window!="undefined"?window:y;k.exports={assign:p,create:S,trim:A,bind:o,slice:n,each:t,map:a,pluck:e,isList:u,isFunction:r,isObject:s,Global:m};function f(){return Object.assign?Object.assign:function(h,g,v,b){for(var w=1;w<arguments.length;w++)t(Object(arguments[w]),function(x,T){h[T]=x});return h}}function d(){if(Object.create)return function(g,v,b,w){var x=n(arguments,1);return p.apply(this,[Object.create(g)].concat(x))};var c=function(){};return function(g,v,b,w){var x=n(arguments,1);return c.prototype=g,p.apply(this,[new c].concat(x))}}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 o(c,h){return function(){return h.apply(c,Array.prototype.slice.call(arguments,0))}}function n(c,h){return Array.prototype.slice.call(c,h||0)}function t(c,h){e(c,function(g,v){return h(g,v),!1})}function a(c,h){var g=u(c)?[]:{};return e(c,function(v,b){return g[b]=h(v,b),!1}),g}function e(c,h){if(u(c)){for(var g=0;g<c.length;g++)if(h(c[g],g))return c[g]}else for(var v in c)if(c.hasOwnProperty(v)&&h(c[v],v))return c[v]}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,i("yLpj"))},MH26:function(k,D,i){var y=i("bYtY"),p=i("YXkt"),S=i("OELB"),A=i("kj2x"),m=i("c8qY"),f=i("iPDy"),d=i("7hqr"),l=d.getStackedDimension,o=function(s,c,h,g){var v=s.getData(),b=g.type;if(!y.isArray(g)&&(b==="min"||b==="max"||b==="average"||b==="median"||g.xAxis!=null||g.yAxis!=null)){var w,x;if(g.yAxis!=null||g.xAxis!=null)w=c.getAxis(g.yAxis!=null?"y":"x"),x=y.retrieve(g.yAxis,g.xAxis);else{var T=A.getAxisInfo(g,v,c,s);w=T.valueAxis;var O=l(v,T.valueDataDim);x=A.numCalculate(v,O,b)}var E=w.dim==="x"?0:1,C=1-E,I=y.clone(g),_={};I.type=null,I.coord=[],_.coord=[],I.coord[C]=-Infinity,_.coord[C]=Infinity;var F=h.get("precision");F>=0&&typeof x=="number"&&(x=+x.toFixed(Math.min(F,20))),I.coord[E]=_.coord[E]=x,g=[I,_,{type:b,valueIndex:g.valueIndex,value:x}]}return g=[A.dataTransform(s,g[0]),A.dataTransform(s,g[1]),y.extend({},g[2])],g[2].type=g[2].type||"",y.merge(g[2],g[0]),y.merge(g[2],g[1]),g};function n(s){return!isNaN(s)&&!isFinite(s)}function t(s,c,h,g){var v=1-s,b=g.dimensions[s];return n(c[v])&&n(h[v])&&c[s]===h[s]&&g.getAxis(b).containData(c[s])}function a(s,c){if(s.type==="cartesian2d"){var h=c[0].coord,g=c[1].coord;if(h&&g&&(t(1,h,g,s)||t(0,h,g,s)))return!0}return A.dataFilter(s,c[0])&&A.dataFilter(s,c[1])}function e(s,c,h,g,v){var b=g.coordinateSystem,w=s.getItemModel(c),x,T=S.parsePercent(w.get("x"),v.getWidth()),O=S.parsePercent(w.get("y"),v.getHeight());if(!isNaN(T)&&!isNaN(O))x=[T,O];else{if(g.getMarkerPosition)x=g.getMarkerPosition(s.getValues(s.dimensions,c));else{var E=b.dimensions,C=s.get(E[0],c),I=s.get(E[1],c);x=b.dataToPoint([C,I])}if(b.type==="cartesian2d"){var _=b.getAxis("x"),F=b.getAxis("y"),E=b.dimensions;n(s.get(E[0],c))?x[0]=_.toGlobalCoord(_.getExtent()[h?0:1]):n(s.get(E[1],c))&&(x[1]=F.toGlobalCoord(F.getExtent()[h?0:1]))}isNaN(T)||(x[0]=T),isNaN(O)||(x[1]=O)}s.setItemLayout(c,x)}var u=f.extend({type:"markLine",updateTransform:function(s,c,h){c.eachSeries(function(g){var v=g.markLineModel;if(v){var b=v.getData(),w=v.__from,x=v.__to;w.each(function(T){e(w,T,!0,g,h),e(x,T,!1,g,h)}),b.each(function(T){b.setItemLayout(T,[w.getItemLayout(T),x.getItemLayout(T)])}),this.markerGroupMap.get(g.id).updateLayout()}},this)},renderSeries:function(s,c,h,g){var v=s.coordinateSystem,b=s.id,w=s.getData(),x=this.markerGroupMap,T=x.get(b)||x.set(b,new m);this.group.add(T.group);var O=r(v,s,c),E=O.from,C=O.to,I=O.line;c.__from=E,c.__to=C,c.setData(I);var _=c.get("symbol"),F=c.get("symbolSize");y.isArray(_)||(_=[_,_]),typeof F=="number"&&(F=[F,F]),O.from.each(function(B){R(E,B,!0),R(C,B,!1)}),I.each(function(B){var M=I.getItemModel(B).get("lineStyle.color");I.setItemVisual(B,{color:M||E.getItemVisual(B,"color")}),I.setItemLayout(B,[E.getItemLayout(B),C.getItemLayout(B)]),I.setItemVisual(B,{fromSymbolSize:E.getItemVisual(B,"symbolSize"),fromSymbol:E.getItemVisual(B,"symbol"),toSymbolSize:C.getItemVisual(B,"symbolSize"),toSymbol:C.getItemVisual(B,"symbol")})}),T.updateData(I),O.line.eachItemGraphicEl(function(B,M){B.traverse(function(X){X.dataModel=c})});function R(B,M,X){var P=B.getItemModel(M);e(B,M,X,s,g),B.setItemVisual(M,{symbolSize:P.get("symbolSize")||F[X?0:1],symbol:P.get("symbol",!0)||_[X?0:1],color:P.get("itemStyle.color")||w.getVisual("color")})}T.__keep=!0,T.group.silent=c.get("silent")||s.get("silent")}});function r(s,c,h){var g;s?g=y.map(s&&s.dimensions,function(O){var E=c.getData().getDimensionInfo(c.getData().mapDimension(O))||{};return y.defaults({name:O},E)}):g=[{name:"value",type:"float"}];var v=new p(g,h),b=new p(g,h),w=new p([],h),x=y.map(h.get("data"),y.curry(o,c,s,h));s&&(x=y.filter(x,y.curry(a,s)));var T=s?A.dimValueGetter:function(O){return O.value};return v.initData(y.map(x,function(O){return O[0]}),null,T),b.initData(y.map(x,function(O){return O[1]}),null,T),w.initData(y.map(x,function(O){return O[2]})),w.hasItemOption=!0,{from:v,to:b,line:w}}k.exports=u},MHoB:function(k,D,i){var y=i("bYtY"),p=i("6uqw"),S=i("OELB"),A=[20,140],m=p.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,o){m.superApply(this,"optionUpdated",arguments),this.resetExtent(),this.resetVisual(function(n){n.mappingMethod="linear",n.dataExtent=this.getExtent()}),this._resetRange()},resetItemSize:function(){m.superApply(this,"resetItemSize",arguments);var l=this.itemSize;this._orient==="horizontal"&&l.reverse(),(l[0]==null||isNaN(l[0]))&&(l[0]=A[0]),(l[1]==null||isNaN(l[1]))&&(l[1]=A[1])},_resetRange:function(){var l=this.getExtent(),o=this.option.range;!o||o.auto?(l.auto=1,this.option.range=l):y.isArray(o)&&(o[0]>o[1]&&o.reverse(),o[0]=Math.max(o[0],l[0]),o[1]=Math.min(o[1],l[1]))},completeVisualOption:function(){p.prototype.completeVisualOption.apply(this,arguments),y.each(this.stateList,function(l){var o=this.option.controller[l].symbolSize;o&&o[0]!==o[1]&&(o[0]=0)},this)},setSelected:function(l){this.option.range=l.slice(),this._resetRange()},getSelected:function(){var l=this.getExtent(),o=S.asc((this.get("range")||[]).slice());return o[0]>l[1]&&(o[0]=l[1]),o[1]>l[1]&&(o[1]=l[1]),o[0]<l[0]&&(o[0]=l[0]),o[1]<l[0]&&(o[1]=l[0]),o},getValueState:function(l){var o=this.option.range,n=this.getExtent();return(o[0]<=n[0]||o[0]<=l)&&(o[1]>=n[1]||l<=o[1])?"inRange":"outOfRange"},findTargetDataIndices:function(l){var o=[];return this.eachTargetSeries(function(n){var t=[],a=n.getData();a.each(this.getDataDimension(a),function(e,u){l[0]<=e&&e<=l[1]&&t.push(u)},this),o.push({seriesId:n.id,dataIndex:t})},this),o},getVisualMeta:function(l){var o=f(this,"outOfRange",this.getExtent()),n=f(this,"inRange",this.option.range.slice()),t=[];function a(g,v){t.push({value:g,color:l(g,v)})}for(var e=0,u=0,r=n.length,s=o.length;u<s&&(!n.length||o[u]<=n[0]);u++)o[u]<n[e]&&a(o[u],"outOfRange");for(var c=1;e<r;e++,c=0)c&&t.length&&a(n[e],"outOfRange"),a(n[e],"inRange");for(var c=1;u<s;u++)(!n.length||n[n.length-1]<o[u])&&(c&&(t.length&&a(t[t.length-1].value,"outOfRange"),c=0),a(o[u],"outOfRange"));var h=t.length;return{stops:t,outerColors:[h?t[0].color:"transparent",h?t[h-1].color:"transparent"]}}});function f(l,o,n){if(n[0]===n[1])return n.slice();for(var t=200,a=(n[1]-n[0])/t,e=n[0],u=[],r=0;r<=t&&e<n[1];r++)u.push(e),e+=a;return u.push(n[1]),u}var d=m;k.exports=d},MHtr:function(k,D,i){var y=i("bYtY");function p(A,m){var f=this.getAxis(),d=m instanceof Array?m[0]:m,l=(A instanceof Array?A[0]:A)/2;return f.type==="category"?f.getBandWidth():Math.abs(f.dataToCoord(d-l)-f.dataToCoord(d+l))}function S(A){var m=A.getRect();return{coordSys:{type:"singleAxis",x:m.x,y:m.y,width:m.width,height:m.height},api:{coord:function(f){return A.dataToPoint(f)},size:y.bind(p,A)}}}k.exports=S},MJZm:function(k,D,i){"use strict";var y=i("lSNA"),p=i.n(y),S=i("pVnL"),A=i.n(S),m=i("q1tI"),f=i("rePB"),d=i("VTBJ"),l=i("KQm4"),o=i("1OyB"),n=i("vuIU"),t=i("Ji7U"),a=i("LK+K"),e=i("4IlW"),u=i("Kwbf"),r=i("TSYQ"),s=i.n(r),c=i("FTAc"),h=i("wPhX"),g=i("c3jg"),v=i("ODXe"),b=i("Ff2n"),w=i("+nKL"),x=i("HTfv"),T=i("lr6o"),O=function(Tt,Bt){var Ke=Tt.className,de=Tt.style,oe=Tt.motion,lt=Tt.motionNodes,qe=Tt.motionType,pe=Tt.onMotionStart,Kt=Tt.onMotionEnd,hr=Tt.active,gt=Tt.treeNodeRequiredProps,nr=Object(b.a)(Tt,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),mr=m.useState(!0),cn=Object(v.a)(mr,2),Ar=cn[0],xr=cn[1],qt=m.useContext(c.a),ar=qt.prefixCls,Et=m.useRef(!1),en=function(){Et.current||Kt(),Et.current=!0};return Object(m.useEffect)(function(){lt&&qe==="hide"&&Ar&&xr(!1)},[lt]),Object(m.useEffect)(function(){return lt&&pe(),function(){lt&&en()}},[]),lt?m.createElement(x.default,Object.assign({ref:Bt,visible:Ar},oe,{motionAppear:qe==="show",onAppearEnd:en,onLeaveEnd:en}),function(Mn,Yn){var ci=Mn.className,Vi=Mn.style;return m.createElement("div",{ref:Yn,className:s()("".concat(ar,"-treenode-motion"),ci),style:Vi},lt.map(function(jn){var Qn=jn.data,$t=Qn.key,Ot=Object(b.a)(Qn,["key"]),ke=jn.isStart,Me=jn.isEnd;delete Ot.children;var Be=Object(g.f)($t,gt);return m.createElement(T.a,Object.assign({},Ot,Be,{active:hr,data:jn.data,key:$t,isStart:ke,isEnd:Me}))}))}):m.createElement(T.a,Object.assign({domRef:Bt,className:Ke,style:de},nr,{active:hr}))};O.displayName="MotionTreeNode";var E=m.forwardRef(O),C=E;function I(){var Dt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Tt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Bt=Dt.length,Ke=Tt.length;if(Math.abs(Bt-Ke)!==1)return{add:!1,key:null};function de(oe,lt){var qe=new Map;oe.forEach(function(Kt){qe.set(Kt,!0)});var pe=lt.filter(function(Kt){return!qe.has(Kt)});return pe.length===1?pe[0]:null}return Bt<Ke?{add:!0,key:de(Dt,Tt)}:{add:!1,key:de(Tt,Dt)}}function _(Dt,Tt,Bt){var Ke=Dt.findIndex(function(qe){var pe=qe.data;return pe.key===Bt}),de=Dt[Ke+1],oe=Tt.findIndex(function(qe){var pe=qe.data;return pe.key===Bt});if(de){var lt=Tt.findIndex(function(qe){var pe=qe.data;return pe.key===de.data.key});return Tt.slice(oe+1,lt)}return Tt.slice(oe+1)}var F={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},R=function(){},B="RC_TREE_MOTION_".concat(Math.random()),M={key:B},X={key:B,level:0,index:0,pos:"0",node:M},P={parent:null,children:[],pos:X.pos,data:M,isStart:[],isEnd:[]};function z(Dt,Tt,Bt,Ke){return Tt===!1||!Bt?Dt:Dt.slice(0,Math.ceil(Bt/Ke)+1)}function W(Dt){var Tt=Dt.data.key,Bt=Dt.pos;return Object(g.e)(Tt,Bt)}function U(Dt){for(var Tt=String(Dt.data.key),Bt=Dt;Bt.parent;)Bt=Bt.parent,Tt="".concat(Bt.data.key," > ").concat(Tt);return Tt}var V=function(Tt,Bt){var Ke=Tt.prefixCls,de=Tt.data,oe=Tt.selectable,lt=Tt.checkable,qe=Tt.expandedKeys,pe=Tt.selectedKeys,Kt=Tt.checkedKeys,hr=Tt.loadedKeys,gt=Tt.loadingKeys,nr=Tt.halfCheckedKeys,mr=Tt.keyEntities,cn=Tt.disabled,Ar=Tt.dragging,xr=Tt.dragOverNodeKey,qt=Tt.dropPosition,ar=Tt.motion,Et=Tt.height,en=Tt.itemHeight,Mn=Tt.virtual,Yn=Tt.focusable,ci=Tt.activeItem,Vi=Tt.focused,jn=Tt.tabIndex,Qn=Tt.onKeyDown,$t=Tt.onFocus,Ot=Tt.onBlur,ke=Tt.onActiveChange,Me=Tt.onListChangeStart,Be=Tt.onListChangeEnd,at=Object(b.a)(Tt,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),At=m.useRef(null);m.useImperativeHandle(Bt,function(){return{scrollTo:function(zi){At.current.scrollTo(zi)}}});var Ct=m.useState(qe),Yt=Object(v.a)(Ct,2),Pr=Yt[0],qr=Yt[1],An=m.useState(de),Gt=Object(v.a)(An,2),vt=Gt[0],bt=Gt[1],fr=m.useState(de),Jt=Object(v.a)(fr,2),Ut=Jt[0],er=Jt[1],Mt=m.useState([]),Zt=Object(v.a)(Mt,2),Hr=Zt[0],Ir=Zt[1],Lr=m.useState(null),dn=Object(v.a)(Lr,2),gn=dn[0],ri=dn[1];function Zn(){bt(de),er(de),Ir([]),ri(null),Be()}m.useEffect(function(){qr(qe);var Ni=I(Pr,qe);if(Ni.key!==null)if(Ni.add){var zi=vt.findIndex(function($e){var ot=$e.data.key;return ot===Ni.key}),it=z(_(vt,de,Ni.key),Mn,Et,en),Ne=vt.slice();Ne.splice(zi+1,0,P),er(Ne),Ir(it),ri("show")}else{var He=de.findIndex(function($e){var ot=$e.data.key;return ot===Ni.key}),Ge=z(_(de,vt,Ni.key),Mn,Et,en),nt=de.slice();nt.splice(He+1,0,P),er(nt),Ir(Ge),ri("hide")}else vt!==de&&(bt(de),er(de))},[qe,de]),m.useEffect(function(){Ar||Zn()},[Ar]);var pi=ar?Ut:de,Ci={expandedKeys:qe,selectedKeys:pe,loadedKeys:hr,loadingKeys:gt,checkedKeys:Kt,halfCheckedKeys:nr,dragOverNodeKey:xr,dropPosition:qt,keyEntities:mr};return m.createElement(m.Fragment,null,Vi&&ci&&m.createElement("span",{style:F,"aria-live":"assertive"},U(ci)),m.createElement("div",{role:"tree"},m.createElement("input",{style:F,disabled:Yn===!1||cn,tabIndex:Yn!==!1?jn:null,onKeyDown:Qn,onFocus:$t,onBlur:Ot,value:"",onChange:R})),m.createElement(w.a,Object.assign({},at,{data:pi,itemKey:W,height:Et,fullHeight:!1,virtual:Mn,itemHeight:en,prefixCls:"".concat(Ke,"-list"),ref:At}),function(Ni){var zi=Ni.pos,it=Ni.data,Ne=it.key,He=Object(b.a)(it,["key"]),Ge=Ni.isStart,nt=Ni.isEnd,$e=Object(g.e)(Ne,zi);delete He.children;var ot=Object(g.f)($e,Ci);return m.createElement(C,Object.assign({},He,ot,{active:ci&&Ne===ci.data.key,pos:zi,data:Ni.data,isStart:Ge,isEnd:nt,motion:ar,motionNodes:Ne===B?Hr:null,motionType:gn,onMotionStart:Me,onMotionEnd:Zn,treeNodeRequiredProps:Ci,onMouseMove:function(){ke(null)}}))}))},Q=m.forwardRef(V);Q.displayName="NodeList";var G=Q,te=i("qOx5"),$=function(Dt){Object(t.a)(Bt,Dt);var Tt=Object(a.a)(Bt);function Bt(){var Ke;return Object(o.a)(this,Bt),Ke=Tt.apply(this,arguments),Ke.destroyed=!1,Ke.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},Ke.listRef=m.createRef(),Ke.onNodeDragStart=function(de,oe){var lt=Ke.state,qe=lt.expandedKeys,pe=lt.keyEntities,Kt=Ke.props.onDragStart,hr=oe.props.eventKey;Ke.dragNode=oe;var gt=Object(h.b)(qe,hr);Ke.setState({dragging:!0,dragNodesKeys:Object(h.g)(hr,pe)}),Ke.setExpandedKeys(gt),Kt&&Kt({event:de,node:Object(g.b)(oe.props)})},Ke.onNodeDragEnter=function(de,oe){var lt=Ke.state,qe=lt.expandedKeys,pe=lt.keyEntities,Kt=lt.dragNodesKeys,hr=Ke.props.onDragEnter,gt=oe.props,nr=gt.pos,mr=gt.eventKey;if(!Ke.dragNode||Kt.indexOf(mr)!==-1)return;var cn=Object(h.c)(de,oe);if(Ke.dragNode.props.eventKey===mr&&cn===0){Ke.setState({dragOverNodeKey:"",dropPosition:null});return}setTimeout(function(){Ke.setState({dragOverNodeKey:mr,dropPosition:cn}),Ke.delayedDragEnterLogic||(Ke.delayedDragEnterLogic={}),Object.keys(Ke.delayedDragEnterLogic).forEach(function(Ar){clearTimeout(Ke.delayedDragEnterLogic[Ar])}),Ke.delayedDragEnterLogic[nr]=window.setTimeout(function(){if(!Ke.state.dragging)return;var Ar=Object(l.a)(qe),xr=pe[mr];xr&&(xr.children||[]).length&&(Ar=Object(h.a)(qe,mr)),"expandedKeys"in Ke.props||Ke.setExpandedKeys(Ar),hr&&hr({event:de,node:Object(g.b)(oe.props),expandedKeys:Ar})},400)},0)},Ke.onNodeDragOver=function(de,oe){var lt=Ke.state.dragNodesKeys,qe=Ke.props.onDragOver,pe=oe.props.eventKey;if(lt.indexOf(pe)!==-1)return;if(Ke.dragNode&&pe===Ke.state.dragOverNodeKey){var Kt=Object(h.c)(de,oe);if(Kt===Ke.state.dropPosition)return;Ke.setState({dropPosition:Kt})}qe&&qe({event:de,node:Object(g.b)(oe.props)})},Ke.onNodeDragLeave=function(de,oe){var lt=Ke.props.onDragLeave;Ke.setState({dragOverNodeKey:""}),lt&&lt({event:de,node:Object(g.b)(oe.props)})},Ke.onNodeDragEnd=function(de,oe){var lt=Ke.props.onDragEnd;Ke.setState({dragOverNodeKey:""}),Ke.cleanDragState(),lt&&lt({event:de,node:Object(g.b)(oe.props)}),Ke.dragNode=null},Ke.onNodeDrop=function(de,oe){var lt=Ke.state,qe=lt.dragNodesKeys,pe=qe===void 0?[]:qe,Kt=lt.dropPosition,hr=Ke.props.onDrop,gt=oe.props,nr=gt.eventKey,mr=gt.pos;if(Ke.setState({dragOverNodeKey:""}),Ke.cleanDragState(),pe.indexOf(nr)!==-1){Object(u.a)(!1,"Can not drop to dragNode(include it's children node)");return}var cn=Object(h.k)(mr),Ar={event:de,node:Object(g.b)(oe.props),dragNode:Ke.dragNode?Object(g.b)(Ke.dragNode.props):null,dragNodesKeys:pe.slice(),dropPosition:Kt+Number(cn[cn.length-1]),dropToGap:!1};Kt!==0&&(Ar.dropToGap=!0),hr&&hr(Ar),Ke.dragNode=null},Ke.cleanDragState=function(){var de=Ke.state.dragging;de&&Ke.setState({dragging:!1})},Ke.onNodeClick=function(de,oe){var lt=Ke.props.onClick;lt&&lt(de,oe)},Ke.onNodeDoubleClick=function(de,oe){var lt=Ke.props.onDoubleClick;lt&&lt(de,oe)},Ke.onNodeSelect=function(de,oe){var lt=Ke.state.selectedKeys,qe=Ke.state.keyEntities,pe=Ke.props,Kt=pe.onSelect,hr=pe.multiple,gt=oe.selected,nr=oe.key,mr=!gt;mr?hr?lt=Object(h.a)(lt,nr):lt=[nr]:lt=Object(h.b)(lt,nr);var cn=lt.map(function(Ar){var xr=qe[Ar];return xr?xr.node:null}).filter(function(Ar){return Ar});Ke.setUncontrolledState({selectedKeys:lt}),Kt&&Kt(lt,{event:"select",selected:mr,node:oe,selectedNodes:cn,nativeEvent:de.nativeEvent})},Ke.onNodeCheck=function(de,oe,lt){var qe=Ke.state,pe=qe.keyEntities,Kt=qe.checkedKeys,hr=qe.halfCheckedKeys,gt=Ke.props,nr=gt.checkStrictly,mr=gt.onCheck,cn=oe.key,Ar,xr={event:"check",node:oe,checked:lt,nativeEvent:de.nativeEvent};if(nr){var qt=lt?Object(h.a)(Kt,cn):Object(h.b)(Kt,cn),ar=Object(h.b)(hr,cn);Ar={checked:qt,halfChecked:ar},xr.checkedNodes=qt.map(function(Vi){return pe[Vi]}).filter(function(Vi){return Vi}).map(function(Vi){return Vi.node}),Ke.setUncontrolledState({checkedKeys:qt})}else{var Et=Object(te.a)([].concat(Object(l.a)(Kt),[cn]),!0,pe),en=Et.checkedKeys,Mn=Et.halfCheckedKeys;if(!lt){var Yn=new Set(en);Yn.delete(cn);var ci=Object(te.a)(Array.from(Yn),{checked:!1,halfCheckedKeys:Mn},pe);en=ci.checkedKeys,Mn=ci.halfCheckedKeys}Ar=en,xr.checkedNodes=[],xr.checkedNodesPositions=[],xr.halfCheckedKeys=Mn,en.forEach(function(Vi){var jn=pe[Vi];if(!jn)return;var Qn=jn.node,$t=jn.pos;xr.checkedNodes.push(Qn),xr.checkedNodesPositions.push({node:Qn,pos:$t})}),Ke.setUncontrolledState({checkedKeys:en},!1,{halfCheckedKeys:Mn})}mr&&mr(Ar,xr)},Ke.onNodeLoad=function(de){return new Promise(function(oe){Ke.setState(function(lt){var qe=lt.loadedKeys,pe=qe===void 0?[]:qe,Kt=lt.loadingKeys,hr=Kt===void 0?[]:Kt,gt=Ke.props,nr=gt.loadData,mr=gt.onLoad,cn=de.key;if(!nr||pe.indexOf(cn)!==-1||hr.indexOf(cn)!==-1)return{};var Ar=nr(de);return Ar.then(function(){var xr=Ke.state,qt=xr.loadedKeys,ar=xr.loadingKeys,Et=Object(h.a)(qt,cn),en=Object(h.b)(ar,cn);mr&&mr(Et,{event:"load",node:de}),Ke.setUncontrolledState({loadedKeys:Et}),Ke.setState({loadingKeys:en}),oe()}),{loadingKeys:Object(h.a)(hr,cn)}})})},Ke.onNodeMouseEnter=function(de,oe){var lt=Ke.props.onMouseEnter;lt&&lt({event:de,node:oe})},Ke.onNodeMouseLeave=function(de,oe){var lt=Ke.props.onMouseLeave;lt&&lt({event:de,node:oe})},Ke.onNodeContextMenu=function(de,oe){var lt=Ke.props.onRightClick;lt&&(de.preventDefault(),lt({event:de,node:oe}))},Ke.onFocus=function(){var de=Ke.props.onFocus;Ke.setState({focused:!0}),de&&de.apply(void 0,arguments)},Ke.onBlur=function(){var de=Ke.props.onBlur;Ke.setState({focused:!1}),Ke.onActiveChange(null),de&&de.apply(void 0,arguments)},Ke.getTreeNodeRequiredProps=function(){var de=Ke.state,oe=de.expandedKeys,lt=de.selectedKeys,qe=de.loadedKeys,pe=de.loadingKeys,Kt=de.checkedKeys,hr=de.halfCheckedKeys,gt=de.dragOverNodeKey,nr=de.dropPosition,mr=de.keyEntities;return{expandedKeys:oe||[],selectedKeys:lt||[],loadedKeys:qe||[],loadingKeys:pe||[],checkedKeys:Kt||[],halfCheckedKeys:hr||[],dragOverNodeKey:gt,dropPosition:nr,keyEntities:mr}},Ke.setExpandedKeys=function(de){var oe=Ke.state.treeData,lt=Object(g.d)(oe,de);Ke.setUncontrolledState({expandedKeys:de,flattenNodes:lt},!0)},Ke.onNodeExpand=function(de,oe){var lt=Ke.state.expandedKeys,qe=Ke.state.listChanging,pe=Ke.props,Kt=pe.onExpand,hr=pe.loadData,gt=oe.key,nr=oe.expanded;if(qe)return;var mr=lt.indexOf(gt),cn=!nr;if(Object(u.a)(nr&&mr!==-1||!nr&&mr===-1,"Expand state not sync with index check"),cn?lt=Object(h.a)(lt,gt):lt=Object(h.b)(lt,gt),Ke.setExpandedKeys(lt),Kt&&Kt(lt,{node:oe,expanded:cn,nativeEvent:de.nativeEvent}),cn&&hr){var Ar=Ke.onNodeLoad(oe);Ar&&Ar.then(function(){var xr=Object(g.d)(Ke.state.treeData,lt);Ke.setUncontrolledState({flattenNodes:xr})})}},Ke.onListChangeStart=function(){Ke.setUncontrolledState({listChanging:!0})},Ke.onListChangeEnd=function(){setTimeout(function(){Ke.setUncontrolledState({listChanging:!1})})},Ke.onActiveChange=function(de){var oe=Ke.state.activeKey,lt=Ke.props.onActiveChange;if(oe===de)return;Ke.setState({activeKey:de}),de!==null&&Ke.scrollTo({key:de}),lt&&lt(de)},Ke.getActiveItem=function(){var de=Ke.state,oe=de.activeKey,lt=de.flattenNodes;return oe===null?null:lt.find(function(qe){var pe=qe.data.key;return pe===oe})||null},Ke.offsetActiveKey=function(de){var oe=Ke.state,lt=oe.flattenNodes,qe=oe.activeKey,pe=lt.findIndex(function(gt){var nr=gt.data.key;return nr===qe});pe===-1&&de<0&&(pe=lt.length),pe=(pe+de+lt.length)%lt.length;var Kt=lt[pe];if(Kt){var hr=Kt.data.key;Ke.onActiveChange(hr)}else Ke.onActiveChange(null)},Ke.onKeyDown=function(de){var oe=Ke.state,lt=oe.activeKey,qe=oe.expandedKeys,pe=oe.checkedKeys,Kt=Ke.props,hr=Kt.onKeyDown,gt=Kt.checkable,nr=Kt.selectable;switch(de.which){case e.a.UP:{Ke.offsetActiveKey(-1),de.preventDefault();break}case e.a.DOWN:{Ke.offsetActiveKey(1),de.preventDefault();break}}var mr=Ke.getActiveItem();if(mr&&mr.data){var cn=Ke.getTreeNodeRequiredProps(),Ar=mr.data.isLeaf===!1||!!(mr.data.children||[]).length,xr=Object(g.b)(Object(d.a)(Object(d.a)({},Object(g.f)(lt,cn)),{},{data:mr.data,active:!0}));switch(de.which){case e.a.LEFT:{Ar&&qe.includes(lt)?Ke.onNodeExpand({},xr):mr.parent&&Ke.onActiveChange(mr.parent.data.key),de.preventDefault();break}case e.a.RIGHT:{Ar&&!qe.includes(lt)?Ke.onNodeExpand({},xr):mr.children&&mr.children.length&&Ke.onActiveChange(mr.children[0].data.key),de.preventDefault();break}case e.a.ENTER:case e.a.SPACE:{gt&&!xr.disabled&&xr.checkable!==!1&&!xr.disableCheckbox?Ke.onNodeCheck({},xr,!pe.includes(lt)):!gt&&nr&&!xr.disabled&&xr.selectable!==!1&&Ke.onNodeSelect({},xr);break}}}hr&&hr(de)},Ke.setUncontrolledState=function(de){var oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,lt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(Ke.destroyed)return;var qe=!1,pe=!0,Kt={};Object.keys(de).forEach(function(hr){if(hr in Ke.props){pe=!1;return}qe=!0,Kt[hr]=de[hr]}),qe&&(!oe||pe)&&Ke.setState(Object(d.a)(Object(d.a)({},Kt),lt))},Ke.scrollTo=function(de){Ke.listRef.current.scrollTo(de)},Ke}return Object(n.a)(Bt,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var de,oe=this.state,lt=oe.focused,qe=oe.flattenNodes,pe=oe.keyEntities,Kt=oe.dragging,hr=oe.activeKey,gt=this.props,nr=gt.prefixCls,mr=gt.className,cn=gt.style,Ar=gt.showLine,xr=gt.focusable,qt=gt.tabIndex,ar=qt===void 0?0:qt,Et=gt.selectable,en=gt.showIcon,Mn=gt.icon,Yn=gt.switcherIcon,ci=gt.draggable,Vi=gt.checkable,jn=gt.checkStrictly,Qn=gt.disabled,$t=gt.motion,Ot=gt.loadData,ke=gt.filterTreeNode,Me=gt.height,Be=gt.itemHeight,at=gt.virtual,At=gt.titleRender,Ct=gt.onContextMenu,Yt=Object(h.f)(this.props);return m.createElement(c.a.Provider,{value:{prefixCls:nr,selectable:Et,showIcon:en,icon:Mn,switcherIcon:Yn,draggable:ci,checkable:Vi,checkStrictly:jn,disabled:Qn,keyEntities:pe,loadData:Ot,filterTreeNode:ke,titleRender:At,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}},m.createElement("div",{className:s()(nr,mr,(de={},Object(f.a)(de,"".concat(nr,"-show-line"),Ar),Object(f.a)(de,"".concat(nr,"-focused"),lt),Object(f.a)(de,"".concat(nr,"-active-focused"),hr!==null),de))},m.createElement(G,Object.assign({ref:this.listRef,prefixCls:nr,style:cn,data:qe,disabled:Qn,selectable:Et,checkable:!!Vi,motion:$t,dragging:Kt,height:Me,itemHeight:Be,virtual:at,focusable:xr,focused:lt,tabIndex:ar,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Ct},this.getTreeNodeRequiredProps(),Yt))))}}],[{key:"getDerivedStateFromProps",value:function(de,oe){var lt=oe.prevProps,qe={prevProps:de};function pe(Mn){return!lt&&Mn in de||lt&&lt[Mn]!==de[Mn]}var Kt;if(pe("treeData")?Kt=de.treeData:pe("children")&&(Object(u.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Kt=Object(g.c)(de.children)),Kt){qe.treeData=Kt;var hr=Object(g.a)(Kt);qe.keyEntities=Object(d.a)(Object(f.a)({},B,X),hr.keyEntities)}var gt=qe.keyEntities||oe.keyEntities;if(pe("expandedKeys")||lt&&pe("autoExpandParent"))qe.expandedKeys=de.autoExpandParent||!lt&&de.defaultExpandParent?Object(h.e)(de.expandedKeys,gt):de.expandedKeys;else if(!lt&&de.defaultExpandAll){var nr=Object(d.a)({},gt);delete nr[B],qe.expandedKeys=Object.keys(nr).map(function(Mn){return nr[Mn].key})}else!lt&&de.defaultExpandedKeys&&(qe.expandedKeys=de.autoExpandParent||de.defaultExpandParent?Object(h.e)(de.defaultExpandedKeys,gt):de.defaultExpandedKeys);if(qe.expandedKeys||delete qe.expandedKeys,Kt||qe.expandedKeys){var mr=Object(g.d)(Kt||oe.treeData,qe.expandedKeys||oe.expandedKeys);qe.flattenNodes=mr}if(de.selectable&&(pe("selectedKeys")?qe.selectedKeys=Object(h.d)(de.selectedKeys,de):!lt&&de.defaultSelectedKeys&&(qe.selectedKeys=Object(h.d)(de.defaultSelectedKeys,de))),de.checkable){var cn;if(pe("checkedKeys")?cn=Object(h.j)(de.checkedKeys)||{}:!lt&&de.defaultCheckedKeys?cn=Object(h.j)(de.defaultCheckedKeys)||{}:Kt&&(cn=Object(h.j)(de.checkedKeys)||{checkedKeys:oe.checkedKeys,halfCheckedKeys:oe.halfCheckedKeys}),cn){var Ar=cn,xr=Ar.checkedKeys,qt=xr===void 0?[]:xr,ar=Ar.halfCheckedKeys,Et=ar===void 0?[]:ar;if(!de.checkStrictly){var en=Object(te.a)(qt,!0,gt);qt=en.checkedKeys,Et=en.halfCheckedKeys}qe.checkedKeys=qt,qe.halfCheckedKeys=Et}}return pe("loadedKeys")&&(qe.loadedKeys=de.loadedKeys),qe}}]),Bt}(m.Component);$.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},$.TreeNode=T.a;var le=$,re=le,Se=i("RIqP"),Re=i.n(Se),Pe=i("J4zp"),Je=i.n(Pe),Ve=i("sEfC"),ct=i.n(Ve),Ue=i("vk+C"),ue=i.n(Ue),rt=i("Vy0f"),ge=i.n(rt),Z=i("kGiB"),Y=i.n(Z),ee=i("H84U"),fe;(function(Dt){Dt[Dt.None=0]="None",Dt[Dt.Start=1]="Start",Dt[Dt.End=2]="End"})(fe||(fe={}));function be(Dt,Tt){function Bt(Ke){var de=Ke.key,oe=Ke.children;Tt(de,Ke)!==!1&&be(oe||[],Tt)}Dt.forEach(Bt)}function Ce(Dt){var Tt=Dt.treeData,Bt=Dt.expandedKeys,Ke=Dt.startKey,de=Dt.endKey,oe=[],lt=fe.None;if(Ke&&Ke===de)return[Ke];if(!Ke||!de)return[];function qe(pe){return pe===Ke||pe===de}return be(Tt,function(pe){if(lt===fe.End)return!1;if(qe(pe)){if(oe.push(pe),lt===fe.None)lt=fe.Start;else if(lt===fe.Start)return lt=fe.End,!1}else lt===fe.Start&&oe.push(pe);return!(Bt.indexOf(pe)===-1)}),oe}function Te(Dt,Tt){var Bt=Re()(Tt),Ke=[];return be(Dt,function(de,oe){var lt=Bt.indexOf(de);return lt!==-1&&(Ke.push(oe),Bt.splice(lt,1)),!!Bt.length}),Ke}var he=function(Dt,Tt){var Bt={};for(var Ke in Dt)Object.prototype.hasOwnProperty.call(Dt,Ke)&&Tt.indexOf(Ke)<0&&(Bt[Ke]=Dt[Ke]);if(Dt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var de=0,Ke=Object.getOwnPropertySymbols(Dt);de<Ke.length;de++)Tt.indexOf(Ke[de])<0&&Object.prototype.propertyIsEnumerable.call(Dt,Ke[de])&&(Bt[Ke[de]]=Dt[Ke[de]]);return Bt};function ye(Dt){var Tt=Dt.isLeaf,Bt=Dt.expanded;return Tt?m.createElement(ue.a,null):Bt?m.createElement(ge.a,null):m.createElement(Y.a,null)}function Ie(Dt){var Tt=Dt.treeData,Bt=Dt.children;return Tt||Object(g.c)(Bt)}var tt=function(Tt,Bt){var Ke=Tt.defaultExpandAll,de=Tt.defaultExpandParent,oe=Tt.defaultExpandedKeys,lt=he(Tt,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),qe=m.useRef(),pe=m.useRef(),Kt=m.createRef();m.useImperativeHandle(Bt,function(){return Kt.current});var hr=function(){var Ct=Object(g.a)(Ie(lt)),Yt=Ct.keyEntities,Pr;return Ke?Pr=Object.keys(Yt):de?Pr=Object(h.e)(lt.expandedKeys||oe,Yt):Pr=lt.expandedKeys||oe,Pr},gt=m.useState(lt.selectedKeys||lt.defaultSelectedKeys||[]),nr=Je()(gt,2),mr=nr[0],cn=nr[1],Ar=m.useState(hr()),xr=Je()(Ar,2),qt=xr[0],ar=xr[1];m.useEffect(function(){"selectedKeys"in lt&&cn(lt.selectedKeys)},[lt.selectedKeys]),m.useEffect(function(){"expandedKeys"in lt&&ar(lt.expandedKeys)},[lt.expandedKeys]);var Et=function(Ct,Yt){var Pr=Yt.isLeaf;if(Pr||Ct.shiftKey||Ct.metaKey||Ct.ctrlKey)return;Kt.current.onNodeExpand(Ct,Yt)},en=ct()(Et,200,{leading:!0}),Mn=function(Ct,Yt){return"expandedKeys"in lt||ar(Ct),lt.onExpand?lt.onExpand(Ct,Yt):void 0},Yn=function(Ct,Yt){var Pr=lt.expandAction;Pr==="click"&&en(Ct,Yt),lt.onClick&&lt.onClick(Ct,Yt)},ci=function(Ct,Yt){var Pr=lt.expandAction;Pr==="doubleClick"&&en(Ct,Yt),lt.onDoubleClick&&lt.onDoubleClick(Ct,Yt)},Vi=function(Ct,Yt){var Pr=lt.multiple,qr=Yt.node,An=Yt.nativeEvent,Gt=qr.key,vt=Gt===void 0?"":Gt,bt=Ie(lt),fr=A()(A()({},Yt),{selected:!0}),Jt=An.ctrlKey||An.metaKey,Ut=An.shiftKey,er;Pr&&Jt?(er=Ct,qe.current=vt,pe.current=er,fr.selectedNodes=Te(bt,er)):Pr&&Ut?(er=Array.from(new Set([].concat(Re()(pe.current||[]),Re()(Ce({treeData:bt,expandedKeys:qt,startKey:vt,endKey:qe.current}))))),fr.selectedNodes=Te(bt,er)):(er=[vt],qe.current=vt,pe.current=er,fr.selectedNodes=Te(bt,er)),lt.onSelect&&lt.onSelect(er,fr),"selectedKeys"in lt||cn(er)},jn=m.useContext(ee.b),Qn=jn.getPrefixCls,$t=jn.direction,Ot=lt.prefixCls,ke=lt.className,Me=he(lt,["prefixCls","className"]),Be=Qn("tree",Ot),at=s()("".concat(Be,"-directory"),ke,p()({},"".concat(Be,"-directory-rtl"),$t==="rtl"));return m.createElement(wt,A()({icon:ye,ref:Kt,blockNode:!0},Me,{prefixCls:Be,className:at,expandedKeys:qt,selectedKeys:mr,onSelect:Vi,onClick:Yn,onDoubleClick:ci,onExpand:Mn}))},pt=m.forwardRef(tt);pt.displayName="DirectoryTree",pt.defaultProps={showIcon:!0,expandAction:"click"};var st=pt,Fe=i("EXcs"),ft=i("2jpz"),et=m.forwardRef(function(Dt,Tt){var Bt,Ke=m.useContext(ee.b),de=Ke.getPrefixCls,oe=Ke.direction,lt=Ke.virtual,qe=Dt.prefixCls,pe=Dt.className,Kt=Dt.showIcon,hr=Dt.showLine,gt=Dt.switcherIcon,nr=Dt.blockNode,mr=Dt.children,cn=Dt.checkable,Ar=A()(A()({},Dt),{showLine:Boolean(hr)}),xr=de("tree",qe);return m.createElement(re,A()({itemHeight:20,ref:Tt,virtual:lt},Ar,{prefixCls:xr,className:s()(pe,(Bt={},p()(Bt,"".concat(xr,"-icon-hide"),!Kt),p()(Bt,"".concat(xr,"-block-node"),nr),p()(Bt,"".concat(xr,"-rtl"),oe==="rtl"),Bt)),checkable:cn&&m.createElement("span",{className:"".concat(xr,"-checkbox-inner")}),switcherIcon:function(ar){return Object(ft.a)(xr,gt,hr,ar)}}),mr)});et.TreeNode=T.a,et.DirectoryTree=st,et.defaultProps={checkable:!1,showIcon:!1,motion:A()(A()({},Fe.a),{motionAppear:!1}),blockNode:!1};var wt=et,Ht=D.a=wt},MKOG:function(k,D,i){var y=i("bYtY"),p=i("YH21"),S=p.Dispatcher,A=i("mLcG"),m=i("Bq2U"),f=function(o){o=o||{},this.stage=o.stage||{},this.onframe=o.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,S.call(this)};f.prototype={constructor:f,addClip:function(o){this._clips.push(o)},addAnimator:function(o){o.animation=this;for(var n=o.getClips(),t=0;t<n.length;t++)this.addClip(n[t])},removeClip:function(o){var n=y.indexOf(this._clips,o);n>=0&&this._clips.splice(n,1)},removeAnimator:function(o){for(var n=o.getClips(),t=0;t<n.length;t++)this.removeClip(n[t]);o.animation=null},_update:function(){for(var o=new Date().getTime()-this._pausedTime,n=o-this._time,t=this._clips,a=t.length,e=[],u=[],r=0;r<a;r++){var s=t[r],c=s.step(o,n);c&&(e.push(c),u.push(s))}for(var r=0;r<a;)t[r]._needsRemove?(t[r]=t[a-1],t.pop(),a--):r++;a=e.length;for(var r=0;r<a;r++)u[r].fire(e[r]);this._time=o,this.onframe(n),this.trigger("frame",n),this.stage.update&&this.stage.update()},_startLoop:function(){var o=this;this._running=!0;function n(){o._running&&(A(n),!o._paused&&o._update())}A(n)},start:function(){this._time=new Date().getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=new Date().getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=new Date().getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},isFinished:function(){return!this._clips.length},animate:function(o,n){n=n||{};var t=new m(o,n.loop,n.getter,n.setter);return this.addAnimator(t),t}},y.mixin(f,S);var d=f;k.exports=d},MMmD:function(k,D,i){var y=i("lSCD"),p=i("shjB");function S(A){return A!=null&&p(A.length)&&!y(A)}k.exports=S},MRoa:function(k,D,i){var y=i("ProS");i("0Bwj"),i("W2nI"),i("vcCh");var p=i("gawk"),S=i("Dg8C");y.registerLayout(p),y.registerVisual(S)},MT78:function(k,D,i){var y=i("ProS");(function(){for(var S in y){if(y==null||!y.hasOwnProperty(S)||S==="default"||S==="__esModule")return;D[S]=y[S]}})();var p=i("txkQ");(function(){for(var S in p){if(p==null||!p.hasOwnProperty(S)||S==="default"||S==="__esModule")return;D[S]=p[S]}})(),i("A1Ka"),i("75ce"),i("lLGD"),i("wDdD"),i("Fa/5"),i("jett"),i("Z1wy"),i("75ev"),i("2uGb"),i("I+77"),i("B+YJ"),i("pLH3"),i("CBdT"),i("MRoa"),i("+lIL"),i("CF2D"),i("ERHi"),i("p+If"),i("XOKv"),i("qt/9"),i("bBL8"),i("1xaR"),i("4Feb"),i("zRKj"),i("L3Oj"),i("0HBW"),i("LPzL"),i("8waO"),i("k5C7"),i("f1nB"),i("sRwP"),i("AH3D"),i("y4/Y"),i("LzGr"),i("Ynxi"),i("7pVf"),i("2w7y"),i("laiN"),i("fjKi"),i("C0tN"),i("0o9m"),i("Cm0C"),i("f3JH"),i("5NHt"),i("VFCP"),i("dBmv"),i("KamJ"),i("8XDt"),i("juDX")},MXD1:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("Kvyg"),A=i.n(S)},MZdM:function(k,D,i){"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 p=l(i("Lo0S")),S=f(i("N/zr")),A=i("GdRQ"),m=i("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 o(e,u){if(!(e instanceof u))throw new TypeError("Cannot call a class as a function")}function n(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&&n(e.prototype,u),r&&n(e,r),e}var a=function(){function e(u){if(o(this,e),this._drawCtx=null,this._renderQ=[],this._flushing=!1,this._fbWidth=0,this._fbHeight=0,this._prevDrawStyle="",this._tile=null,this._tile16x16=null,this._tileX=0,this._tileY=0,p.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},p.Debug("User Agent: "+navigator.userAgent),!("createImageData"in this._drawCtx))throw new Error("Canvas does not support createImageData");this._tile16x16=this._drawCtx.createImageData(16,16),p.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,g=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),g+s>=this._fbHeight&&(s-=g+s-this._fbHeight+1),r===0&&s===0)return;p.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")&&(p.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,m.toSigned32bit)(r/this._scale+this._viewportLoc.x)}},{key:"absY",value:function(r){return this._scale===0?0:(0,m.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 g=this._viewportLoc;this.viewportChangeSize(g.w,g.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,g=this._damageBounds.bottom-c,v=s-this._viewportLoc.x,b=c-this._viewportLoc.y;v<0&&(h+=v,s-=v,v=0),b<0&&(g+=b,c-=b,b=0),v+h>this._viewportLoc.w&&(h=this._viewportLoc.w-v),b+g>this._viewportLoc.h&&(g=this._viewportLoc.h-b),h>0&&g>0&&this._targetCtx.drawImage(this._backbuffer,s,c,h,g,v,b,h,g),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,g,v){this._renderQ.length!==0&&!v?this._renderQPush({type:"fill",x:r,y:s,width:c,height:h,color:g}):(this._setFillColor(g),this._drawCtx.fillRect(r,s,c,h),this._damage(r,s,c,h))}},{key:"copyImage",value:function(r,s,c,h,g,v,b){this._renderQ.length!==0&&!b?this._renderQPush({type:"copy",oldX:r,oldY:s,x:c,y:h,width:g,height:v}):(this._drawCtx.mozImageSmoothingEnabled=!1,this._drawCtx.webkitImageSmoothingEnabled=!1,this._drawCtx.msImageSmoothingEnabled=!1,this._drawCtx.imageSmoothingEnabled=!1,this._drawCtx.drawImage(this._backbuffer,r,s,g,v,c,h,g,v),this._damage(c,h,g,v))}},{key:"imageRect",value:function(r,s,c,h,g,v){if(c===0||h===0)return;var b=new Image;b.src="data: "+g+";base64,"+S.default.encode(v),this._renderQPush({type:"img",img:b,x:r,y:s,width:c,height:h})}},{key:"startTile",value:function(r,s,c,h,g){this._tileX=r,this._tileY=s,c===16&&h===16?this._tile=this._tile16x16:this._tile=this._drawCtx.createImageData(c,h);for(var v=g[2],b=g[1],w=g[0],x=this._tile.data,T=0;T<c*h*4;T+=4)x[T]=v,x[T+1]=b,x[T+2]=w,x[T+3]=255}},{key:"subTile",value:function(r,s,c,h,g){for(var v=g[2],b=g[1],w=g[0],x=r+c,T=s+h,O=this._tile.data,E=this._tile.width,C=s;C<T;C++)for(var I=r;I<x;I++){var _=(I+C*E)*4;O[_]=v,O[_+1]=b,O[_+2]=w,O[_+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,g,v,b){if(this._renderQ.length!==0&&!b){var w=new Uint8Array(c*h*4);w.set(new Uint8Array(g.buffer,0,w.length)),this._renderQPush({type:"blit",data:w,x:r,y:s,width:c,height:h})}else this._bgrxImageData(r,s,c,h,g,v)}},{key:"blitRgbImage",value:function(r,s,c,h,g,v,b){if(this._renderQ.length!==0&&!b){var w=new Uint8Array(c*h*3);w.set(new Uint8Array(g.buffer,0,w.length)),this._renderQPush({type:"blitRgb",data:w,x:r,y:s,width:c,height:h})}else this._rgbImageData(r,s,c,h,g,v)}},{key:"blitRgbxImage",value:function(r,s,c,h,g,v,b){if(this._renderQ.length!==0&&!b){var w=new Uint8Array(c*h*4);w.set(new Uint8Array(g.buffer,0,w.length)),this._renderQPush({type:"blitRgbx",data:w,x:r,y:s,width:c,height:h})}else this._rgbxImageData(r,s,c,h,g,v)}},{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,g=r/s,v=h.w/h.h;v>=g?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,g,v){for(var b=this._drawCtx.createImageData(c,h),w=b.data,x=0,T=v;x<c*h*4;x+=4,T+=3)w[x]=g[T],w[x+1]=g[T+1],w[x+2]=g[T+2],w[x+3]=255;this._drawCtx.putImageData(b,r,s),this._damage(r,s,b.width,b.height)}},{key:"_bgrxImageData",value:function(r,s,c,h,g,v){for(var b=this._drawCtx.createImageData(c,h),w=b.data,x=0,T=v;x<c*h*4;x+=4,T+=4)w[x]=g[T+2],w[x+1]=g[T+1],w[x+2]=g[T],w[x+3]=255;this._drawCtx.putImageData(b,r,s),this._damage(r,s,b.width,b.height)}},{key:"_rgbxImageData",value:function(r,s,c,h,g,v){var b;A.supportsImageMetadata?b=new ImageData(new Uint8ClampedArray(g.buffer,g.byteOffset,c*h*4),c,h):(b=this._drawCtx.createImageData(c,h),b.data.set(new Uint8ClampedArray(g.buffer,g.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){p.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=a},Mdki:function(k,D,i){var y=i("bYtY"),p=y.each,S="\0__link_datas",A="\0__link_mainData";function m(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),p(s,function(c){p(r.TRANSFERABLE_METHODS,function(h){c.wrapMethod(h,y.curry(f,u))})}),r.wrapMethod("cloneShallow",y.curry(l,u)),p(r.CHANGABLE_METHODS,function(c){r.wrapMethod(c,y.curry(d,u))}),y.assert(s[r.dataType]===r)}function f(u,r){if(n(this)){var s=y.extend({},this[S]);s[this.dataType]=r,t(r,s,u)}else a(r,this.dataType,this[A],u);return r}function d(u,r){return u.struct&&u.struct.update(this),r}function l(u,r){return p(r[S],function(s,c){s!==r&&a(s.cloneShallow(),c,r,u)}),r}function o(u){var r=this[A];return u==null||r==null?r:r[S][u]}function n(u){return u[A]===u}function t(u,r,s){u[S]={},p(r,function(c,h){a(c,h,u,s)})}function a(u,r,s,c){s[S][r]=u,u[A]=s,u.dataType=r,c.struct&&(u[c.structAttr]=c.struct,c.struct[c.datasAttr[r]]=u),u.getLinkedData=o}var e=m;k.exports=e},Mds0:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("8IMR")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="StarFilled";var n=A.forwardRef(o);D.default=n},Mgri:function(k,D,i){for(var y=i("bYtY"),p=i("8nly"),S=[126,25],A=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],m=0;m<A.length;m++)for(var f=0;f<A[m].length;f++)A[m][f][0]/=10.5,A[m][f][1]/=-10.5/.75,A[m][f][0]+=S[0],A[m][f][1]+=S[1];function d(l,o){l==="china"&&o.push(new p("\u5357\u6D77\u8BF8\u5C9B",y.map(A,function(n){return{type:"polygon",exterior:n}}),S))}k.exports=d},MlIO:function(k,D,i){(function(y,p){k.exports=D=p(i("Ib8C"))})(this,function(y){return function(p){var S=y,A=S.lib,m=A.Base,f=A.WordArray,d=S.x64={},l=d.Word=m.extend({init:function(t,a){this.high=t,this.low=a}}),o=d.WordArray=m.extend({init:function(t,a){t=this.words=t||[],a!=p?this.sigBytes=a:this.sigBytes=t.length*8},toX32:function(){for(var t=this.words,a=t.length,e=[],u=0;u<a;u++){var r=t[u];e.push(r.high),e.push(r.low)}return f.create(e,this.sigBytes)},clone:function(){for(var t=m.clone.call(this),a=t.words=this.words.slice(0),e=a.length,u=0;u<e;u++)a[u]=a[u].clone();return t}})}(),y})},Mmt2:function(k,D,i){"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 p=A(i("Lo0S"));function S(){if(typeof WeakMap!="function")return null;var t=new WeakMap;return S=function(){return t},t}function A(t){if(t&&t.__esModule)return t;if(t===null||y(t)!=="object"&&typeof t!="function")return{default:t};var a=S();if(a&&a.has(t))return a.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,a&&a.set(t,e),e}function m(t,a){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}function f(t,a){for(var e=0;e<a.length;e++){var u=a[e];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(t,u.key,u)}}function d(t,a,e){return a&&f(t.prototype,a),e&&f(t,e),t}var l=!1,o=40*1024*1024,n=function(){function t(){m(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(){p.Debug(">> WebSock.onopen"),r._websocket.protocol&&p.Info("Server choose sub-protocol: "+r._websocket.protocol),r._eventHandlers.open(),p.Debug("<< WebSock.onopen")},this._websocket.onclose=function(s){p.Debug(">> WebSock.onclose"),r._eventHandlers.close(s),p.Debug("<< WebSock.onclose")},this._websocket.onerror=function(s){p.Debug(">> WebSock.onerror: "+s),r._eventHandlers.error(s),p.Debug("<< WebSock.onerror: "+s)}}},{key:"close",value:function(){this._websocket&&((this._websocket.readyState===WebSocket.OPEN||this._websocket.readyState===WebSocket.CONNECTING)&&(p.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>o&&(this._rQbufferSize=o,this._rQbufferSize-this.rQlen<e))throw new Error("Receive Queue buffer exceeded "+o+" bytes, and the new message could not fit");if(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)):p.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=n},MqEG:function(k,D,i){var y=i("bYtY"),p=i("fc+c"),S=i("72pK"),A=i("VXYp"),m=y.bind,f=p.extend({type:"dataZoom.inside",init:function(t,a){this._range},render:function(t,a,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 A.generateCoordId(h.model)});y.each(r,function(h){var g=h.model,v={};y.each(["pan","zoom","scrollMove"],function(b){v[b]=m(d[b],this,h,s)},this),A.register(e,{coordId:A.generateCoordId(g),allCoordIds:c,containsPoint:function(b,w,x){return g.coordinateSystem.containPoint([w,x])},dataZoomId:t.id,dataZoomModel:t,getRange:v})},this)},this)},dispose:function(){A.unregister(this.api,this.dataZoomModel.id),f.superApply(this,"dispose",arguments),this._range=null}}),d={zoom:function(t,a,e,u){var r=this._range,s=r.slice(),c=t.axisModels[0];if(!c)return;var h=o[a](null,[u.originX,u.originY],c,e,t),g=(h.signal>0?h.pixelStart+h.pixelLength-h.pixel:h.pixel-h.pixelStart)/h.pixelLength*(s[1]-s[0])+s[0],v=Math.max(1/u.scale,0);s[0]=(s[0]-g)*v+g,s[1]=(s[1]-g)*v+g;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,a,e,u,r,s){var c=o[u]([s.oldX,s.oldY],[s.newX,s.newY],a,r,e);return c.signal*(t[1]-t[0])*c.pixel/c.pixelLength}),scrollMove:l(function(t,a,e,u,r,s){var c=o[u]([0,0],[s.scrollDelta,s.scrollDelta],a,r,e);return c.signal*(t[1]-t[0])*s.scrollDelta})};function l(t){return function(a,e,u,r){var s=this._range,c=s.slice(),h=a.axisModels[0];if(!h)return;var g=t(c,h,a,e,u,r);if(S(g,c,[0,100],"all"),this._range=c,s[0]!==c[0]||s[1]!==c[1])return c}}var o={grid:function(t,a,e,u,r){var s=e.axis,c={},h=r.model.coordinateSystem.getRect();return t=t||[0,0],s.dim==="x"?(c.pixel=a[0]-t[0],c.pixelLength=h.width,c.pixelStart=h.x,c.signal=s.inverse?1:-1):(c.pixel=a[1]-t[1],c.pixelLength=h.height,c.pixelStart=h.y,c.signal=s.inverse?-1:1),c},polar:function(t,a,e,u,r){var s=e.axis,c={},h=r.model.coordinateSystem,g=h.getRadiusAxis().getExtent(),v=h.getAngleAxis().getExtent();return t=t?h.pointToCoord(t):[0,0],a=h.pointToCoord(a),e.mainType==="radiusAxis"?(c.pixel=a[0]-t[0],c.pixelLength=g[1]-g[0],c.pixelStart=g[0],c.signal=s.inverse?1:-1):(c.pixel=a[1]-t[1],c.pixelLength=v[1]-v[0],c.pixelStart=v[0],c.signal=s.inverse?-1:1),c},singleAxis:function(t,a,e,u,r){var s=e.axis,c=r.model.coordinateSystem.getRect(),h={};return t=t||[0,0],s.orient==="horizontal"?(h.pixel=a[0]-t[0],h.pixelLength=c.width,h.pixelStart=c.x,h.signal=s.inverse?1:-1):(h.pixel=a[1]-t[1],h.pixelLength=c.height,h.pixelStart=c.y,h.signal=s.inverse?-1:1),h}},n=f;k.exports=n},MvSz:function(k,D,i){var y=i("LXxW"),p=i("0ycA"),S=Object.prototype,A=S.propertyIsEnumerable,m=Object.getOwnPropertySymbols,f=m?function(d){return d==null?[]:(d=Object(d),y(m(d),function(l){return A.call(d,l)}))}:p;k.exports=f},MwEJ:function(k,D,i){var y=i("bYtY"),p=i("YXkt"),S=i("sdST"),A=i("k9D9"),m=A.SOURCE_FORMAT_ORIGINAL,f=i("L0Ub"),d=f.getDimensionTypeByAxis,l=i("4NO4"),o=l.getDataItemValue,n=i("IDmD"),t=i("i38C"),a=t.getCoordSysInfoBySeries,e=i("7G+c"),u=i("7hqr"),r=u.enableDataStack,s=i("D5nY"),c=s.makeSeriesEncodeForAxisCoordSys;function h(w,x,T){T=T||{},e.isInstance(w)||(w=e.seriesDataToSource(w));var O=x.get("coordinateSystem"),E=n.get(O),C=a(x),I;C&&(I=y.map(C.coordSysDims,function(P){var z={name:P},W=C.axisMap.get(P);if(W){var U=W.get("type");z.type=d(U)}return z})),I||(I=E&&(E.getDimensionsInfo?E.getDimensionsInfo():E.dimensions.slice())||["x","y"]);var _=S(w,{coordDimensions:I,generateCoord:T.generateCoord,encodeDefaulter:T.useEncodeDefaulter?y.curry(c,I,x):null}),F,R;C&&y.each(_,function(P,z){var W=P.coordDim,U=C.categoryAxisMap.get(W);U&&(F==null&&(F=z),P.ordinalMeta=U.getOrdinalMeta()),P.otherDims.itemName!=null&&(R=!0)}),!R&&F!=null&&(_[F].otherDims.itemName=0);var B=r(x,_),M=new p(_,x);M.setCalculationInfo(B);var X=F!=null&&g(w)?function(P,z,W,U){return U===F?W:this.defaultDimValueGetter(P,z,W,U)}:null;return M.hasItemOption=!1,M.initData(w,null,X),M}function g(w){if(w.sourceFormat===m){var x=v(w.data||[]);return x!=null&&!y.isArray(o(x))}}function v(w){for(var x=0;x<w.length&&w[x]==null;)x++;return w[x]}var b=h;k.exports=b},Mylv:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("IwbS"),A=i("oVpE"),m=A.createSymbol,f=i("OELB"),d=f.parsePercent,l=f.isNumeric,o=i("56rv"),n=o.setLabel,t=["itemStyle","borderWidth"],a=[{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,$=V.getData(),le=this._data,re=V.coordinateSystem,Se=re.getBaseAxis(),Re=!!Se.isHorizontal(),Pe=re.grid.getRect(),Je={ecSize:{width:G.getWidth(),height:G.getHeight()},seriesModel:V,coordSys:re,coordSysExtent:[[Pe.x,Pe.x+Pe.width],[Pe.y,Pe.y+Pe.height]],isHorizontal:Re,valueDim:a[+Re],categoryDim:a[1-Re]};return $.diff(le).add(function(Ve){if(!$.hasValue(Ve))return;var ct=E($,Ve),Ue=r($,Ve,ct,Je),ue=F($,Je,Ue);$.setItemGraphicEl(Ve,ue),te.add(ue),z(ue,Je,Ue)}).update(function(Ve,ct){var Ue=le.getItemGraphicEl(ct);if(!$.hasValue(Ve)){te.remove(Ue);return}var ue=E($,Ve),rt=r($,Ve,ue,Je),ge=M($,rt);Ue&&ge!==Ue.__pictorialShapeStr&&(te.remove(Ue),$.setItemGraphicEl(Ve,null),Ue=null),Ue?R(Ue,Je,rt):Ue=F($,Je,rt,!0),$.setItemGraphicEl(Ve,Ue),Ue.__pictorialSymbolMeta=rt,te.add(Ue),z(Ue,Je,rt)}).remove(function(Ve){var ct=le.getItemGraphicEl(Ve);ct&&B(le,Ve,ct.__pictorialSymbolMeta.animationModel,ct)}).execute(),this._data=$,this.group},dispose:p.noop,remove:function(V,Q){var G=this.group,te=this._data;V.get("animation")?te&&te.eachItemGraphicEl(function($){B(te,$.dataIndex,V,$)}):G.removeAll()}});function r(V,Q,G,te){var $=V.getItemLayout(Q),le=G.get("symbolRepeat"),re=G.get("symbolClip"),Se=G.get("symbolPosition")||"start",Re=G.get("symbolRotate"),Pe=(Re||0)*Math.PI/180||0,Je=G.get("symbolPatternSize")||2,Ve=G.isAnimationEnabled(),ct={dataIndex:Q,layout:$,itemModel:G,symbolType:V.getItemVisual(Q,"symbol")||"circle",color:V.getItemVisual(Q,"color"),symbolClip:re,symbolRepeat:le,symbolRepeatDirection:G.get("symbolRepeatDirection"),symbolPatternSize:Je,rotation:Pe,animationModel:Ve?G:null,hoverAnimation:Ve&&G.get("hoverAnimation"),z2:G.getShallow("z",!0)||0};s(G,le,$,te,ct),h(V,Q,$,le,re,ct.boundingLength,ct.pxSign,Je,te,ct),g(G,ct.symbolScale,Pe,te,ct);var Ue=ct.symbolSize,ue=G.get("symbolOffset");return p.isArray(ue)&&(ue=[d(ue[0],Ue[0]),d(ue[1],Ue[1])]),v(G,Ue,$,le,re,ue,Se,ct.valueLineWidth,ct.boundingLength,ct.repeatCutLength,te,ct),ct}function s(V,Q,G,te,$){var le=te.valueDim,re=V.get("symbolBoundingData"),Se=te.coordSys.getOtherAxis(te.coordSys.getBaseAxis()),Re=Se.toGlobalCoord(Se.dataToCoord(0)),Pe=1-+(G[le.wh]<=0),Je;if(p.isArray(re)){var Ve=[c(Se,re[0])-Re,c(Se,re[1])-Re];Ve[1]<Ve[0]&&Ve.reverse(),Je=Ve[Pe]}else re!=null?Je=c(Se,re)-Re:Q?Je=te.coordSysExtent[le.index][Pe]-Re:Je=G[le.wh];$.boundingLength=Je,Q&&($.repeatCutLength=G[le.wh]),$.pxSign=Je>0?1:Je<0?-1:0}function c(V,Q){return V.toGlobalCoord(V.dataToCoord(V.scale.parse(Q)))}function h(V,Q,G,te,$,le,re,Se,Re,Pe){var Je=Re.valueDim,Ve=Re.categoryDim,ct=Math.abs(G[Ve.wh]),Ue=V.getItemVisual(Q,"symbolSize");p.isArray(Ue)?Ue=Ue.slice():(Ue==null&&(Ue="100%"),Ue=[Ue,Ue]),Ue[Ve.index]=d(Ue[Ve.index],ct),Ue[Je.index]=d(Ue[Je.index],te?ct:Math.abs(le)),Pe.symbolSize=Ue;var ue=Pe.symbolScale=[Ue[0]/Se,Ue[1]/Se];ue[Je.index]*=(Re.isHorizontal?-1:1)*re}function g(V,Q,G,te,$){var le=V.get(t)||0;le&&(e.attr({scale:Q.slice(),rotation:G}),e.updateTransform(),le/=e.getLineScale(),le*=Q[te.valueDim.index]),$.valueLineWidth=le}function v(V,Q,G,te,$,le,re,Se,Re,Pe,Je,Ve){var ct=Je.categoryDim,Ue=Je.valueDim,ue=Ve.pxSign,rt=Math.max(Q[Ue.index]+Se,0),ge=rt;if(te){var Z=Math.abs(Re),Y=p.retrieve(V.get("symbolMargin"),"15%")+"",ee=!1;Y.lastIndexOf("!")===Y.length-1&&(ee=!0,Y=Y.slice(0,Y.length-1)),Y=d(Y,Q[Ue.index]);var fe=Math.max(rt+Y*2,0),be=ee?0:Y*2,Ce=l(te),Te=Ce?te:W((Z+be)/fe),he=Z-Te*rt;Y=he/2/(ee?Te:Te-1),fe=rt+Y*2,be=ee?0:Y*2,!Ce&&te!=="fixed"&&(Te=Pe?W((Math.abs(Pe)+be)/fe):0),ge=Te*fe-be,Ve.repeatTimes=Te,Ve.symbolMargin=Y}var ye=ue*(ge/2),Ie=Ve.pathPosition=[];Ie[ct.index]=G[ct.wh]/2,Ie[Ue.index]=re==="start"?ye:re==="end"?Re-ye:Re/2,le&&(Ie[0]+=le[0],Ie[1]+=le[1]);var tt=Ve.bundlePosition=[];tt[ct.index]=G[ct.xy],tt[Ue.index]=G[Ue.xy];var pt=Ve.barRectShape=p.extend({},G);pt[Ue.wh]=ue*Math.max(Math.abs(G[Ue.wh]),Math.abs(Ie[Ue.index]+ye)),pt[ct.wh]=G[ct.wh];var st=Ve.clipShape={};st[ct.xy]=-G[ct.xy],st[ct.wh]=Je.ecSize[ct.wh],st[Ue.xy]=0,st[Ue.wh]=G[Ue.wh]}function b(V){var Q=V.symbolPatternSize,G=m(V.symbolType,-Q/2,-Q/2,Q,Q,V.color);return G.attr({culling:!0}),G.type!=="image"&&G.setStyle({strokeNoScale:!0}),G}function w(V,Q,G,te){var $=V.__pictorialBundle,le=G.symbolSize,re=G.valueLineWidth,Se=G.pathPosition,Re=Q.valueDim,Pe=G.repeatTimes||0,Je=0,Ve=le[Q.valueDim.index]+re+G.symbolMargin*2;for(X(V,function(Z){Z.__pictorialAnimationIndex=Je,Z.__pictorialRepeatTimes=Pe,Je<Pe?P(Z,null,ue(Je),G,te):P(Z,null,{scale:[0,0]},G,te,function(){$.remove(Z)}),_(Z,G),Je++});Je<Pe;Je++){var ct=b(G);ct.__pictorialAnimationIndex=Je,ct.__pictorialRepeatTimes=Pe,$.add(ct);var Ue=ue(Je);P(ct,{position:Ue.position,scale:[0,0]},{scale:Ue.scale,rotation:Ue.rotation},G,te),ct.on("mouseover",rt).on("mouseout",ge),_(ct,G)}function ue(Z){var Y=Se.slice(),ee=G.pxSign,fe=Z;return(G.symbolRepeatDirection==="start"?ee>0:ee<0)&&(fe=Pe-1-Z),Y[Re.index]=Ve*(fe-Pe/2+.5)+Se[Re.index],{position:Y,scale:G.symbolScale.slice(),rotation:G.rotation}}function rt(){X(V,function(Z){Z.trigger("emphasis")})}function ge(){X(V,function(Z){Z.trigger("normal")})}}function x(V,Q,G,te){var $=V.__pictorialBundle,le=V.__pictorialMainPath;le?P(le,null,{position:G.pathPosition.slice(),scale:G.symbolScale.slice(),rotation:G.rotation},G,te):(le=V.__pictorialMainPath=b(G),$.add(le),P(le,{position:G.pathPosition.slice(),scale:[0,0],rotation:G.rotation},{scale:G.symbolScale.slice()},G,te),le.on("mouseover",re).on("mouseout",Se)),_(le,G);function re(){this.trigger("emphasis")}function Se(){this.trigger("normal")}}function T(V,Q,G){var te=p.extend({},Q.barRectShape),$=V.__pictorialBarRect;$?P($,null,{shape:te},Q,G):($=V.__pictorialBarRect=new S.Rect({z2:2,shape:te,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),V.add($))}function O(V,Q,G,te){if(G.symbolClip){var $=V.__pictorialClipPath,le=p.extend({},G.clipShape),re=Q.valueDim,Se=G.animationModel,Re=G.dataIndex;if($)S.updateProps($,{shape:le},Se,Re);else{le[re.wh]=0,$=new S.Rect({shape:le}),V.__pictorialBundle.setClipPath($),V.__pictorialClipPath=$;var Pe={};Pe[re.wh]=G.clipShape[re.wh],S[te?"updateProps":"initProps"]($,{shape:Pe},Se,Re)}}}function E(V,Q){var G=V.getItemModel(Q);return G.getAnimationDelayParams=C,G.isAnimationEnabled=I,G}function C(V){return{index:V.__pictorialAnimationIndex,count:V.__pictorialRepeatTimes}}function I(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function _(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 F(V,Q,G,te){var $=new S.Group,le=new S.Group;return $.add(le),$.__pictorialBundle=le,le.attr("position",G.bundlePosition.slice()),G.symbolRepeat?w($,Q,G):x($,Q,G),T($,G,te),O($,Q,G,te),$.__pictorialShapeStr=M(V,G),$.__pictorialSymbolMeta=G,$}function R(V,Q,G){var te=G.animationModel,$=G.dataIndex,le=V.__pictorialBundle;S.updateProps(le,{position:G.bundlePosition.slice()},te,$),G.symbolRepeat?w(V,Q,G,!0):x(V,Q,G,!0),T(V,G,!0),O(V,Q,G,!0)}function B(V,Q,G,te){var $=te.__pictorialBarRect;$&&($.style.text=null);var le=[];X(te,function(re){le.push(re)}),te.__pictorialMainPath&&le.push(te.__pictorialMainPath),te.__pictorialClipPath&&(G=null),p.each(le,function(re){S.updateProps(re,{scale:[0,0]},G,Q,function(){te.parent&&te.parent.remove(te)})}),V.setItemGraphicEl(Q,null)}function M(V,Q){return[V.getItemVisual(Q.dataIndex,"symbol")||"none",!!Q.symbolRepeat,!!Q.symbolClip].join(":")}function X(V,Q,G){p.each(V.__pictorialBundle.children(),function(te){te!==V.__pictorialBarRect&&Q.call(G,te)})}function P(V,Q,G,te,$,le){Q&&V.attr(Q),te.symbolClip&&!$?G&&V.attr(G):G&&S[$?"updateProps":"initProps"](V,G,te.animationModel,te.dataIndex,le)}function z(V,Q,G){var te=G.color,$=G.dataIndex,le=G.itemModel,re=le.getModel("itemStyle").getItemStyle(["color"]),Se=le.getModel("emphasis.itemStyle").getItemStyle(),Re=le.getShallow("cursor");X(V,function(ct){ct.setColor(te),ct.setStyle(p.defaults({fill:te,opacity:G.opacity},re)),S.setHoverStyle(ct,Se),Re&&(ct.cursor=Re),ct.z2=G.z2});var Pe={},Je=Q.valueDim.posDesc[+(G.boundingLength>0)],Ve=V.__pictorialBarRect;n(Ve.style,Pe,le,te,Q.seriesModel,$,Je),S.setHoverStyle(Ve,Pe)}function W(V){var Q=Math.round(V);return Math.abs(V-Q)<1e-4?Q:Math.ceil(V)}var U=u;k.exports=U},"N/zr":function(k,D,i){"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 p=A(i("Lo0S"));function S(){if(typeof WeakMap!="function")return null;var f=new WeakMap;return S=function(){return f},f}function A(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={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in f)if(Object.prototype.hasOwnProperty.call(f,n)){var t=o?Object.getOwnPropertyDescriptor(f,n):null;t&&(t.get||t.set)?Object.defineProperty(l,n,t):l[n]=f[n]}return l.default=f,d&&d.set(f,l),l}var m={toBase64Table:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".split(""),base64Pad:"=",encode:function(d){"use strict";for(var l="",o=d.length,n=o%3,t=0;t<o-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 a=o-n;return n===2?(l+=this.toBase64Table[d[a]>>2],l+=this.toBase64Table[((d[a]&3)<<4)+(d[a+1]>>4)],l+=this.toBase64Table[(d[a+1]&15)<<2],l+=this.toBase64Table[64]):n===1&&(l+=this.toBase64Table[d[a]>>2],l+=this.toBase64Table[(d[a]&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,o=d.indexOf("=")-l;o<0&&(o=d.length-l);for(var n=(o>>2)*3+Math.floor(o%4/1.5),t=new Array(n),a=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){p.Error("Illegal character code "+d.charCodeAt(r)+" at position "+r);continue}e=e<<6|s,a+=6,a>=8&&(a-=8,c||(t[u++]=e>>a&255),e&=(1<<a)-1)}if(a){var h=new Error("Corrupted base64 string");throw h.name="Base64-Error",h}return t}};D.default=m},N5BQ:function(k,D,i){var y=i("OlYY"),p=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=p;k.exports=S},NA0q:function(k,D,i){var y=i("bYtY"),p=i("6Ic6"),S=i("TkdX"),A=i("gPAo"),m=i("7aKB"),f=m.windowOpen,d="sunburstRootToNode",l=p.extend({type:"sunburst",init:function(){},render:function(n,t,a,e){var u=this;this.seriesModel=n,this.api=a,this.ecModel=t;var r=n.getData(),s=r.tree.root,c=n.getViewRoot(),h=this.group,g=n.get("renderLabelForZeroData"),v=[];c.eachNode(function(I){v.push(I)});var b=this._oldChildren||[];if(T(v,b),C(s,c),e&&e.highlight&&e.highlight.piece){var w=n.getShallow("highlightPolicy");e.highlight.piece.onEmphasis(w)}else if(e&&e.unhighlight){var x=this.virtualPiece;!x&&s.children.length&&(x=s.children[0].piece),x&&x.onNormal()}this._initEvents(),this._oldChildren=v;function T(I,_){if(I.length===0&&_.length===0)return;new A(_,I,F,F).add(R).update(R).remove(y.curry(R,null)).execute();function F(B){return B.getId()}function R(B,M){var X=B==null?null:I[B],P=M==null?null:_[M];O(X,P)}}function O(I,_){if(!g&&I&&!I.getValue()&&(I=null),I!==s&&_!==s){if(_&&_.piece)I?(_.piece.updateData(!1,I,"normal",n,t),r.setItemGraphicEl(I.dataIndex,_.piece)):E(_);else if(I){var F=new S(I,n,t);h.add(F),r.setItemGraphicEl(I.dataIndex,F)}}}function E(I){if(!I)return;I.piece&&(h.remove(I.piece),I.piece=null)}function C(I,_){if(_.depth>0){u.virtualPiece?u.virtualPiece.updateData(!1,I,"normal",n,t):(u.virtualPiece=new S(I,n,t),h.add(u.virtualPiece)),_.piece._onclickEvent&&_.piece.off("click",_.piece._onclickEvent);var F=function(R){u._rootToNode(_.parentNode)};_.piece._onclickEvent=F,u.virtualPiece.on("click",F)}else u.virtualPiece&&(h.remove(u.virtualPiece),u.virtualPiece=null)}},dispose:function(){},_initEvents:function(){var n=this,t=function(a){var e=!1,u=n.seriesModel.getViewRoot();u.eachNode(function(r){if(!e&&r.piece&&r.piece.childAt(0)===a.target){var s=r.getModel().get("nodeClick");if(s==="rootToNode")n._rootToNode(r);else if(s==="link"){var c=r.getModel(),h=c.get("link");if(h){var g=c.get("target",!0)||"_blank";f(h,g)}}e=!0}})};this.group._onclickEvent&&this.group.off("click",this.group._onclickEvent),this.group.on("click",t),this.group._onclickEvent=t},_rootToNode:function(n){n!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:d,from:this.uid,seriesId:this.seriesModel.id,targetNode:n})},containPoint:function(n,t){var a=t.getData(),e=a.getItemLayout(0);if(e){var u=n[0]-e.cx,r=n[1]-e.cy,s=Math.sqrt(u*u+r*r);return s<=e.r&&s>=e.r0}}}),o=l;k.exports=o},NAnI:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("wXyp"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},NBmB:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.encodingName=p,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 p(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(k,D,i){var y=i("y+Vt"),p=i("IMiH"),S=i("7oTu"),A=Math.sqrt,m=Math.sin,f=Math.cos,d=Math.PI,l=function(v){return Math.sqrt(v[0]*v[0]+v[1]*v[1])},o=function(v,b){return(v[0]*b[0]+v[1]*b[1])/(l(v)*l(b))},n=function(v,b){return(v[0]*b[1]<v[1]*b[0]?-1:1)*Math.acos(o(v,b))};function t(g,v,b,w,x,T,O,E,C,I,_){var F=C*(d/180),R=f(F)*(g-b)/2+m(F)*(v-w)/2,B=-1*m(F)*(g-b)/2+f(F)*(v-w)/2,M=R*R/(O*O)+B*B/(E*E);M>1&&(O*=A(M),E*=A(M));var X=(x===T?-1:1)*A((O*O*(E*E)-O*O*(B*B)-E*E*(R*R))/(O*O*(B*B)+E*E*(R*R)))||0,P=X*O*B/E,z=X*-E*R/O,W=(g+b)/2+f(F)*P-m(F)*z,U=(v+w)/2+m(F)*P+f(F)*z,V=n([1,0],[(R-P)/O,(B-z)/E]),Q=[(R-P)/O,(B-z)/E],G=[(-1*R-P)/O,(-1*B-z)/E],te=n(Q,G);o(Q,G)<=-1&&(te=d),o(Q,G)>=1&&(te=0),T===0&&te>0&&(te=te-2*d),T===1&&te<0&&(te=te+2*d),_.addData(I,W,U,O,E,V,te,F,T)}var a=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,e=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function u(g){if(!g)return new p;for(var v=0,b=0,w=v,x=b,T,O=new p,E=p.CMD,C=g.match(a),I=0;I<C.length;I++){for(var _=C[I],F=_.charAt(0),R,B=_.match(e)||[],M=B.length,X=0;X<M;X++)B[X]=parseFloat(B[X]);for(var P=0;P<M;){var z,W,U,V,Q,G,te,$=v,le=b;switch(F){case"l":v+=B[P++],b+=B[P++],R=E.L,O.addData(R,v,b);break;case"L":v=B[P++],b=B[P++],R=E.L,O.addData(R,v,b);break;case"m":v+=B[P++],b+=B[P++],R=E.M,O.addData(R,v,b),w=v,x=b,F="l";break;case"M":v=B[P++],b=B[P++],R=E.M,O.addData(R,v,b),w=v,x=b,F="L";break;case"h":v+=B[P++],R=E.L,O.addData(R,v,b);break;case"H":v=B[P++],R=E.L,O.addData(R,v,b);break;case"v":b+=B[P++],R=E.L,O.addData(R,v,b);break;case"V":b=B[P++],R=E.L,O.addData(R,v,b);break;case"C":R=E.C,O.addData(R,B[P++],B[P++],B[P++],B[P++],B[P++],B[P++]),v=B[P-2],b=B[P-1];break;case"c":R=E.C,O.addData(R,B[P++]+v,B[P++]+b,B[P++]+v,B[P++]+b,B[P++]+v,B[P++]+b),v+=B[P-2],b+=B[P-1];break;case"S":z=v,W=b;var re=O.len(),Se=O.data;T===E.C&&(z+=v-Se[re-4],W+=b-Se[re-3]),R=E.C,$=B[P++],le=B[P++],v=B[P++],b=B[P++],O.addData(R,z,W,$,le,v,b);break;case"s":z=v,W=b;var re=O.len(),Se=O.data;T===E.C&&(z+=v-Se[re-4],W+=b-Se[re-3]),R=E.C,$=v+B[P++],le=b+B[P++],v+=B[P++],b+=B[P++],O.addData(R,z,W,$,le,v,b);break;case"Q":$=B[P++],le=B[P++],v=B[P++],b=B[P++],R=E.Q,O.addData(R,$,le,v,b);break;case"q":$=B[P++]+v,le=B[P++]+b,v+=B[P++],b+=B[P++],R=E.Q,O.addData(R,$,le,v,b);break;case"T":z=v,W=b;var re=O.len(),Se=O.data;T===E.Q&&(z+=v-Se[re-4],W+=b-Se[re-3]),v=B[P++],b=B[P++],R=E.Q,O.addData(R,z,W,v,b);break;case"t":z=v,W=b;var re=O.len(),Se=O.data;T===E.Q&&(z+=v-Se[re-4],W+=b-Se[re-3]),v+=B[P++],b+=B[P++],R=E.Q,O.addData(R,z,W,v,b);break;case"A":U=B[P++],V=B[P++],Q=B[P++],G=B[P++],te=B[P++],$=v,le=b,v=B[P++],b=B[P++],R=E.A,t($,le,v,b,G,te,U,V,Q,R,O);break;case"a":U=B[P++],V=B[P++],Q=B[P++],G=B[P++],te=B[P++],$=v,le=b,v+=B[P++],b+=B[P++],R=E.A,t($,le,v,b,G,te,U,V,Q,R,O);break}}(F==="z"||F==="Z")&&(R=E.Z,O.addData(R),v=w,b=x),T=R}return O.toStatic(),O}function r(g,v){var b=u(g);return v=v||{},v.buildPath=function(w){if(w.setData){w.setData(b.data);var x=w.getContext();x&&w.rebuildPath(x)}else{var x=w;b.rebuildPath(x)}},v.applyTransform=function(w){S(b,w),this.dirty(!0)},v}function s(g,v){return new y(r(g,v))}function c(g,v){return y.extend(r(g,v))}function h(g,v){for(var b=[],w=g.length,x=0;x<w;x++){var T=g[x];T.path||T.createPathProxy(),T.__dirtyPath&&T.buildPath(T.path,T.shape,!0),b.push(T.path)}var O=new y(v);return O.createPathProxy(),O.buildPath=function(E){E.appendPath(b);var C=E.getContext();C&&E.rebuildPath(C)},O}D.createFromString=s,D.extendFromString=c,D.mergePath=h},NFKh:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("MlIO"),i("F+F2"),i("qM6L"),i("ETIr"),i("wbyO"),i("cv67"),i("3y9D"),i("lPiR"),i("GRuw"),i("1uat"),i("uGsb"),i("5hvy"),i("ELcG"),i("WYAk"),i("e7zE"),i("K3mO"),i("OLod"),i("ALsQ"),i("9OqN"),i("qu8F"),i("S6kV"),i("gb/T"),i("qBft"),i("oRuE"),i("jO9C"),i("KmYQ"),i("uGxW"),i("bQjk"),i("wZgz"),i("pA7S"),i("w7YG"),i("E4JC"),i("PVpz"),i("r1uz"))})(this,function(y){return y})},NH9N:function(k,D,i){var y=i("bYtY"),p=i("mFDi"),S=i("Fofx"),A=i("IwbS"),m=i("+TT/"),f=i("kzvK"),d=i("CMP+"),l=i("oVpE"),o=l.createSymbol,n=i("aX7z"),t=i("OELB"),a=i("7aKB"),e=a.encodeHTML,u=y.bind,r=y.each,s=Math.PI,c=f.extend({type:"timeline.slider",init:function(w,x){this.api=x,this._axis,this._viewRect,this._timer,this._currentPointer,this._mainGroup,this._labelGroup},render:function(w,x,T,O){if(this.model=w,this.api=T,this.ecModel=x,this.group.removeAll(),w.get("show",!0)){var E=this._layout(w,T),C=this._createGroup("mainGroup"),I=this._createGroup("labelGroup"),_=this._axis=this._createAxis(E,w);w.formatTooltip=function(F){return e(_.scale.getLabel(F))},r(["AxisLine","AxisTick","Control","CurrentPointer"],function(F){this["_render"+F](E,C,_,w)},this),this._renderAxisLabel(E,I,_,w),this._position(E,w)}this._doPlayStop()},remove:function(){this._clearTimer(),this.group.removeAll()},dispose:function(){this._clearTimer()},_layout:function(w,x){var T=w.get("label.position"),O=w.get("orient"),E=h(w,x);T==null||T==="auto"?T=O==="horizontal"?E.y+E.height/2<x.getHeight()/2?"-":"+":E.x+E.width/2<x.getWidth()/2?"+":"-":isNaN(T)&&(T={horizontal:{top:"-",bottom:"+"},vertical:{left:"-",right:"+"}}[O][T]);var C={horizontal:"center",vertical:T>=0||T==="+"?"left":"right"},I={horizontal:T>=0||T==="+"?"top":"bottom",vertical:"middle"},_={horizontal:0,vertical:s/2},F=O==="vertical"?E.height:E.width,R=w.getModel("controlStyle"),B=R.get("show",!0),M=B?R.get("itemSize"):0,X=B?R.get("itemGap"):0,P=M+X,z=w.get("label.rotate")||0;z=z*s/180;var W,U,V,Q,G=R.get("position",!0),te=B&&R.get("showPlayBtn",!0),$=B&&R.get("showPrevBtn",!0),le=B&&R.get("showNextBtn",!0),re=0,Se=F;return G==="left"||G==="bottom"?(te&&(W=[0,0],re+=P),$&&(U=[re,0],re+=P),le&&(V=[Se-M,0],Se-=P)):(te&&(W=[Se-M,0],Se-=P),$&&(U=[0,0],re+=P),le&&(V=[Se-M,0],Se-=P)),Q=[re,Se],w.get("inverse")&&Q.reverse(),{viewRect:E,mainLength:F,orient:O,rotation:_[O],labelRotation:z,labelPosOpt:T,labelAlign:w.get("label.align")||C[O],labelBaseline:w.get("label.verticalAlign")||w.get("label.baseline")||I[O],playPosition:W,prevBtnPosition:U,nextBtnPosition:V,axisExtent:Q,controlSize:M,controlGap:X}},_position:function(w,x){var T=this._mainGroup,O=this._labelGroup,E=w.viewRect;if(w.orient==="vertical"){var C=S.create(),I=E.x,_=E.y+E.height;S.translate(C,C,[-I,-_]),S.rotate(C,C,-s/2),S.translate(C,C,[I,_]),E=E.clone(),E.applyTransform(C)}var F=U(E),R=U(T.getBoundingRect()),B=U(O.getBoundingRect()),M=T.position,X=O.position;X[0]=M[0]=F[0][0];var P=w.labelPosOpt;if(isNaN(P)){var z=P==="+"?0:1;V(M,R,F,1,z),V(X,B,F,1,1-z)}else{var z=P>=0?0:1;V(M,R,F,1,z),X[1]=M[1]+P}T.attr("position",M),O.attr("position",X),T.rotation=O.rotation=w.rotation,W(T),W(O);function W(Q){var G=Q.position;Q.origin=[F[0][0]-G[0],F[1][0]-G[1]]}function U(Q){return[[Q.x,Q.x+Q.width],[Q.y,Q.y+Q.height]]}function V(Q,G,te,$,le){Q[$]+=te[$][le]-G[$][le]}},_createAxis:function(w,x){var T=x.getData(),O=x.get("axisType"),E=n.createScaleByModel(x,O);E.getTicks=function(){return T.mapArray(["value"],function(_){return _})};var C=T.getDataExtent("value");E.setExtent(C[0],C[1]),E.niceTicks();var I=new d("value",E,w.axisExtent,O);return I.model=x,I},_createGroup:function(w){var x=this["_"+w]=new A.Group;return this.group.add(x),x},_renderAxisLine:function(w,x,T,O){var E=T.getExtent();if(!O.get("lineStyle.show"))return;x.add(new A.Line({shape:{x1:E[0],y1:0,x2:E[1],y2:0},style:y.extend({lineCap:"round"},O.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(w,x,T,O){var E=O.getData(),C=T.scale.getTicks();r(C,function(I){var _=T.dataToCoord(I),F=E.getItemModel(I),R=F.getModel("itemStyle"),B=F.getModel("emphasis.itemStyle"),M={position:[_,0],onclick:u(this._changeTimeline,this,I)},X=v(F,R,x,M);A.setHoverStyle(X,B.getItemStyle()),F.get("tooltip")?(X.dataIndex=I,X.dataModel=O):X.dataIndex=X.dataModel=null},this)},_renderAxisLabel:function(w,x,T,O){var E=T.getLabelModel();if(!E.get("show"))return;var C=O.getData(),I=T.getViewLabels();r(I,function(_){var F=_.tickValue,R=C.getItemModel(F),B=R.getModel("label"),M=R.getModel("emphasis.label"),X=T.dataToCoord(_.tickValue),P=new A.Text({position:[X,0],rotation:w.labelRotation-w.rotation,onclick:u(this._changeTimeline,this,F),silent:!1});A.setTextStyle(P.style,B,{text:_.formattedLabel,textAlign:w.labelAlign,textVerticalAlign:w.labelBaseline}),x.add(P),A.setHoverStyle(P,A.setTextStyle({},M))},this)},_renderControl:function(w,x,T,O){var E=w.controlSize,C=w.rotation,I=O.getModel("controlStyle").getItemStyle(),_=O.getModel("emphasis.controlStyle").getItemStyle(),F=[0,-E/2,E,E],R=O.getPlayState(),B=O.get("inverse",!0);M(w.nextBtnPosition,"controlStyle.nextIcon",u(this._changeTimeline,this,B?"-":"+")),M(w.prevBtnPosition,"controlStyle.prevIcon",u(this._changeTimeline,this,B?"+":"-")),M(w.playPosition,"controlStyle."+(R?"stopIcon":"playIcon"),u(this._handlePlayClick,this,!R),!0);function M(X,P,z,W){if(!X)return;var U={position:X,origin:[E/2,0],rotation:W?-C:0,rectHover:!0,style:I,onclick:z},V=g(O,P,F,U);x.add(V),A.setHoverStyle(V,_)}},_renderCurrentPointer:function(w,x,T,O){var E=O.getData(),C=O.getCurrentIndex(),I=E.getItemModel(C).getModel("checkpointStyle"),_=this,F={onCreate:function(R){R.draggable=!0,R.drift=u(_._handlePointerDrag,_),R.ondragend=u(_._handlePointerDragend,_),b(R,C,T,O,!0)},onUpdate:function(R){b(R,C,T,O)}};this._currentPointer=v(I,I,this._mainGroup,{},this._currentPointer,F)},_handlePlayClick:function(w){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:w,from:this.uid})},_handlePointerDrag:function(w,x,T){this._clearTimer(),this._pointerChangeTimeline([T.offsetX,T.offsetY])},_handlePointerDragend:function(w){this._pointerChangeTimeline([w.offsetX,w.offsetY],!0)},_pointerChangeTimeline:function(w,x){var T=this._toAxisCoord(w)[0],O=this._axis,E=t.asc(O.getExtent().slice());T>E[1]&&(T=E[1]),T<E[0]&&(T=E[0]),this._currentPointer.position[0]=T,this._currentPointer.dirty();var C=this._findNearestTick(T),I=this.model;(x||C!==I.getCurrentIndex()&&I.get("realtime"))&&this._changeTimeline(C)},_doPlayStop:function(){this._clearTimer(),this.model.getPlayState()&&(this._timer=setTimeout(u(w,this),this.model.get("playInterval")));function w(){var x=this.model;this._changeTimeline(x.getCurrentIndex()+(x.get("rewind",!0)?-1:1))}},_toAxisCoord:function(w){var x=this._mainGroup.getLocalTransform();return A.applyTransform(w,x,!0)},_findNearestTick:function(w){var x=this.model.getData(),T=Infinity,O,E=this._axis;return x.each(["value"],function(C,I){var _=E.dataToCoord(C),F=Math.abs(_-w);F<T&&(T=F,O=I)}),O},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(w){var x=this.model.getCurrentIndex();w==="+"?w=x+1:w==="-"&&(w=x-1),this.api.dispatchAction({type:"timelineChange",currentIndex:w,from:this.uid})}});function h(w,x){return m.getLayoutRect(w.getBoxLayoutParams(),{width:x.getWidth(),height:x.getHeight()},w.get("padding"))}function g(w,x,T,O){var E=A.makePath(w.get(x).replace(/^path:\/\//,""),y.clone(O||{}),new p(T[0],T[1],T[2],T[3]),"center");return E}function v(w,x,T,O,E,C){var I=x.get("color");if(E)E.setColor(I),T.add(E),C&&C.onUpdate(E);else{var _=w.get("symbol");E=o(_,-1,-1,2,2,I),E.setStyle("strokeNoScale",!0),T.add(E),C&&C.onCreate(E)}var F=x.getItemStyle(["color","symbol","symbolSize"]);E.setStyle(F),O=y.merge({rectHover:!0,z2:100},O,!0);var R=w.get("symbolSize");R=R instanceof Array?R.slice():[+R,+R],R[0]/=2,R[1]/=2,O.scale=R;var B=w.get("symbolOffset");if(B){var M=O.position=O.position||[0,0];M[0]+=t.parsePercent(B[0],R[0]),M[1]+=t.parsePercent(B[1],R[1])}var X=w.get("symbolRotate");return O.rotation=(X||0)*Math.PI/180||0,E.attr(O),E.updateTransform(),E}function b(w,x,T,O,E){if(w.dragging)return;var C=O.getModel("checkpointStyle"),I=T.dataToCoord(O.getData().get(["value"],x));E||!C.get("animation",!0)?w.attr({position:[I,0]}):(w.stopAnimation(!0),w.animateTo({position:[I,0]},C.get("animationDuration",!0),C.get("animationEasing",!0)))}k.exports=c},NJEC:function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("J4zp"),A=i.n(S),m=i("q1tI"),f=i.n(m),d=i("TSYQ"),l=i.n(d),o=i("sKbD"),n=i.n(o),t=i("4IlW"),a=i("3S7+"),e=i("2/Rp"),u=i("zvFY"),r=i("YMnH"),s=i("ZvpZ"),c=i("H84U"),h=i("bogI"),g=i("0n0R"),v=void 0,b=function(x,T){var O={};for(var E in x)Object.prototype.hasOwnProperty.call(x,E)&&T.indexOf(E)<0&&(O[E]=x[E]);if(x!=null&&typeof Object.getOwnPropertySymbols=="function")for(var C=0,E=Object.getOwnPropertySymbols(x);C<E.length;C++)T.indexOf(E[C])<0&&Object.prototype.propertyIsEnumerable.call(x,E[C])&&(O[E[C]]=x[E[C]]);return O},w=m.forwardRef(function(x,T){var O=m.useState(x.visible),E=A()(O,2),C=E[0],I=E[1];m.useEffect(function(){"visible"in x&&I(x.visible)},[x.visible]),m.useEffect(function(){"defaultVisible"in x&&I(x.defaultVisible)},[x.defaultVisible]);var _=function(Re,Pe){"visible"in x||I(Re),x.onVisibleChange&&x.onVisibleChange(Re,Pe)},F=function(Re){_(!1,Re),x.onConfirm&&x.onConfirm.call(v,Re)},R=function(Re){_(!1,Re),x.onCancel&&x.onCancel.call(v,Re)},B=function(Re){Re.keyCode===t.a.ESC&&C&&_(!1,Re)},M=function(Re){var Pe=x.disabled;if(Pe)return;_(Re)},X=function(Re,Pe){var Je=x.okButtonProps,Ve=x.cancelButtonProps,ct=x.title,Ue=x.cancelText,ue=x.okText,rt=x.okType,ge=x.icon;return m.createElement("div",{className:"".concat(Re,"-inner-content")},m.createElement("div",{className:"".concat(Re,"-message")},ge,m.createElement("div",{className:"".concat(Re,"-message-title")},Object(h.a)(ct))),m.createElement("div",{className:"".concat(Re,"-buttons")},m.createElement(e.a,p()({onClick:R,size:"small"},Ve),Ue||Pe.cancelText),m.createElement(e.a,p()({onClick:F},Object(u.a)(rt),{size:"small"},Je),ue||Pe.okText)))},P=m.useContext(c.b),z=P.getPrefixCls,W=x.prefixCls,U=x.placement,V=x.children,Q=x.overlayClassName,G=b(x,["prefixCls","placement","children","overlayClassName"]),te=z("popover",W),$=z("popconfirm",W),le=l()($,Q),re=m.createElement(r.a,{componentName:"Popconfirm",defaultLocale:s.a.Popconfirm},function(Se){return X(te,Se)});return m.createElement(a.a,p()({},G,{prefixCls:te,placement:U,onVisibleChange:M,visible:C,overlay:re,overlayClassName:le,ref:T}),Object(g.a)(V,{onKeyDown:function(Re){var Pe,Je;(Je=V==null?void 0:(Pe=V.props).onKeyDown)===null||Je===void 0||Je.call(Pe,Re),B(Re)}}))});w.defaultProps={transitionName:"zoom-big",placement:"top",trigger:"click",okType:"primary",icon:m.createElement(n.a,null),disabled:!1},D.a=w},NKxu:function(k,D,i){var y=i("lSCD"),p=i("E2jh"),S=i("GoyQ"),A=i("3Fdi"),m=/[\\^$.*+?()[\]{}|]/g,f=/^\[object .+?Constructor\]$/,d=Function.prototype,l=Object.prototype,o=d.toString,n=l.hasOwnProperty,t=RegExp("^"+o.call(n).replace(m,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function a(e){if(!S(e)||p(e))return!1;var u=y(e)?t:f;return u.test(A(e))}k.exports=a},NUBc:function(k,D,i){"use strict";var y=i("lSNA"),p=i.n(y),S=i("pVnL"),A=i.n(S),m=i("q1tI"),f=i.n(m),d=i("wx14"),l=i("rePB"),o=i("VTBJ"),n=i("1OyB"),t=i("vuIU"),a=i("Ji7U"),e=i("LK+K"),u=i("TSYQ"),r=i.n(u),s=function(Pe){var Je,Ve="".concat(Pe.rootPrefixCls,"-item"),ct=r()(Ve,"".concat(Ve,"-").concat(Pe.page),(Je={},Object(l.a)(Je,"".concat(Ve,"-active"),Pe.active),Object(l.a)(Je,Pe.className,!!Pe.className),Object(l.a)(Je,"".concat(Ve,"-disabled"),!Pe.page),Je)),Ue=function(){Pe.onClick(Pe.page)},ue=function(ge){Pe.onKeyPress(ge,Pe.onClick,Pe.page)};return f.a.createElement("li",{title:Pe.showTitle?Pe.page:null,className:ct,onClick:Ue,onKeyPress:ue,tabIndex:"0"},Pe.itemRender(Pe.page,"page",f.a.createElement("a",{rel:"nofollow"},Pe.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},g=function(Re){Object(a.a)(Je,Re);var Pe=Object(e.a)(Je);function Je(){var Ve;Object(n.a)(this,Je);for(var ct=arguments.length,Ue=new Array(ct),ue=0;ue<ct;ue++)Ue[ue]=arguments[ue];return Ve=Pe.call.apply(Pe,[this].concat(Ue)),Ve.state={goInputText:""},Ve.buildOptionText=function(rt){return"".concat(rt," ").concat(Ve.props.locale.items_per_page)},Ve.changeSize=function(rt){Ve.props.changeSize(Number(rt))},Ve.handleChange=function(rt){Ve.setState({goInputText:rt.target.value})},Ve.handleBlur=function(rt){var ge=Ve.props,Z=ge.goButton,Y=ge.quickGo,ee=ge.rootPrefixCls,fe=Ve.state.goInputText;if(Z||fe==="")return;if(rt.relatedTarget&&(rt.relatedTarget.className.indexOf("".concat(ee,"-prev"))>=0||rt.relatedTarget.className.indexOf("".concat(ee,"-next"))>=0))return;Ve.setState({goInputText:""}),Y(Ve.getValidValue())},Ve.go=function(rt){var ge=Ve.state.goInputText;if(ge==="")return;(rt.keyCode===h.ENTER||rt.type==="click")&&(Ve.setState({goInputText:""}),Ve.props.quickGo(Ve.getValidValue()))},Ve}return Object(t.a)(Je,[{key:"getValidValue",value:function(){var ct=this.state,Ue=ct.goInputText,ue=ct.current;return!Ue||isNaN(Ue)?ue:Number(Ue)}},{key:"getPageSizeOptions",value:function(){var ct=this.props,Ue=ct.pageSize,ue=ct.pageSizeOptions;return ue.some(function(rt){return rt.toString()===Ue.toString()})?ue:ue.concat([Ue.toString()]).sort(function(rt,ge){var Z=isNaN(Number(rt))?0:Number(rt),Y=isNaN(Number(ge))?0:Number(ge);return Z-Y})}},{key:"render",value:function(){var ct=this,Ue=this.props,ue=Ue.pageSize,rt=Ue.locale,ge=Ue.rootPrefixCls,Z=Ue.changeSize,Y=Ue.quickGo,ee=Ue.goButton,fe=Ue.selectComponentClass,be=Ue.buildOptionText,Ce=Ue.selectPrefixCls,Te=Ue.disabled,he=this.state.goInputText,ye="".concat(ge,"-options"),Ie=fe,tt=null,pt=null,st=null;if(!Z&&!Y)return null;var Fe=this.getPageSizeOptions();if(Z&&Ie){var ft=Fe.map(function(et,wt){return f.a.createElement(Ie.Option,{key:wt,value:et.toString()},(be||ct.buildOptionText)(et))});tt=f.a.createElement(Ie,{disabled:Te,prefixCls:Ce,showSearch:!1,className:"".concat(ye,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(ue||Fe[0]).toString(),onChange:this.changeSize,getPopupContainer:function(wt){return wt.parentNode}},ft)}return Y&&(ee&&(st=typeof ee=="boolean"?f.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Te,className:"".concat(ye,"-quick-jumper-button")},rt.jump_to_confirm):f.a.createElement("span",{onClick:this.go,onKeyUp:this.go},ee)),pt=f.a.createElement("div",{className:"".concat(ye,"-quick-jumper")},rt.jump_to,f.a.createElement("input",{disabled:Te,type:"text",value:he,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),rt.page,st)),f.a.createElement("li",{className:"".concat(ye)},tt,pt)}}]),Je}(f.a.Component);g.defaultProps={pageSizeOptions:["10","20","50","100"]};var v=g,b=i("N2Kk");function w(){}function x(Re){return typeof Re=="number"&&isFinite(Re)&&Math.floor(Re)===Re}function T(Re,Pe,Je){return Je}function O(Re,Pe,Je){var Ve=typeof Re=="undefined"?Pe.pageSize:Re;return Math.floor((Je.total-1)/Ve)+1}var E=function(Re){Object(a.a)(Je,Re);var Pe=Object(e.a)(Je);function Je(Ve){var ct;Object(n.a)(this,Je),ct=Pe.call(this,Ve),ct.getJumpPrevPage=function(){return Math.max(1,ct.state.current-(ct.props.showLessItems?3:5))},ct.getJumpNextPage=function(){return Math.min(O(void 0,ct.state,ct.props),ct.state.current+(ct.props.showLessItems?3:5))},ct.getItemIcon=function(Z,Y){var ee=ct.props.prefixCls,fe=Z||f.a.createElement("button",{type:"button","aria-label":Y,className:"".concat(ee,"-item-link")});return typeof Z=="function"&&(fe=f.a.createElement(Z,Object(o.a)({},ct.props))),fe},ct.savePaginationNode=function(Z){ct.paginationNode=Z},ct.isValid=function(Z){return x(Z)&&Z!==ct.state.current},ct.shouldDisplayQuickJumper=function(){var Z=ct.props,Y=Z.showQuickJumper,ee=Z.pageSize,fe=Z.total;return fe<=ee?!1:Y},ct.handleKeyDown=function(Z){(Z.keyCode===h.ARROW_UP||Z.keyCode===h.ARROW_DOWN)&&Z.preventDefault()},ct.handleKeyUp=function(Z){var Y=ct.getValidValue(Z),ee=ct.state.currentInputValue;Y!==ee&&ct.setState({currentInputValue:Y}),Z.keyCode===h.ENTER?ct.handleChange(Y):Z.keyCode===h.ARROW_UP?ct.handleChange(Y-1):Z.keyCode===h.ARROW_DOWN&&ct.handleChange(Y+1)},ct.changePageSize=function(Z){var Y=ct.state.current,ee=O(Z,ct.state,ct.props);Y=Y>ee?ee:Y,ee===0&&(Y=ct.state.current),typeof Z=="number"&&("pageSize"in ct.props||ct.setState({pageSize:Z}),"current"in ct.props||ct.setState({current:Y,currentInputValue:Y})),ct.props.onShowSizeChange(Y,Z),"onChange"in ct.props&&ct.props.onChange&&ct.props.onChange(Y,Z)},ct.handleChange=function(Z){var Y=ct.props.disabled,ee=Z;if(ct.isValid(ee)&&!Y){var fe=O(void 0,ct.state,ct.props);ee>fe?ee=fe:ee<1&&(ee=1),"current"in ct.props||ct.setState({current:ee,currentInputValue:ee});var be=ct.state.pageSize;return ct.props.onChange(ee,be),ee}return ct.state.current},ct.prev=function(){ct.hasPrev()&&ct.handleChange(ct.state.current-1)},ct.next=function(){ct.hasNext()&&ct.handleChange(ct.state.current+1)},ct.jumpPrev=function(){ct.handleChange(ct.getJumpPrevPage())},ct.jumpNext=function(){ct.handleChange(ct.getJumpNextPage())},ct.hasPrev=function(){return ct.state.current>1},ct.hasNext=function(){return ct.state.current<O(void 0,ct.state,ct.props)},ct.runIfEnter=function(Z,Y){if(Z.key==="Enter"||Z.charCode===13){for(var ee=arguments.length,fe=new Array(ee>2?ee-2:0),be=2;be<ee;be++)fe[be-2]=arguments[be];Y.apply(void 0,fe)}},ct.runIfEnterPrev=function(Z){ct.runIfEnter(Z,ct.prev)},ct.runIfEnterNext=function(Z){ct.runIfEnter(Z,ct.next)},ct.runIfEnterJumpPrev=function(Z){ct.runIfEnter(Z,ct.jumpPrev)},ct.runIfEnterJumpNext=function(Z){ct.runIfEnter(Z,ct.jumpNext)},ct.handleGoTO=function(Z){(Z.keyCode===h.ENTER||Z.type==="click")&&ct.handleChange(ct.state.currentInputValue)};var Ue=Ve.onChange!==w,ue="current"in Ve;ue&&!Ue&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var rt=Ve.defaultCurrent;"current"in Ve&&(rt=Ve.current);var ge=Ve.defaultPageSize;return"pageSize"in Ve&&(ge=Ve.pageSize),rt=Math.min(rt,O(ge,void 0,Ve)),ct.state={current:rt,currentInputValue:rt,pageSize:ge},ct}return Object(t.a)(Je,[{key:"componentDidUpdate",value:function(ct,Ue){var ue=this.props.prefixCls;if(Ue.current!==this.state.current&&this.paginationNode){var rt=this.paginationNode.querySelector(".".concat(ue,"-item-").concat(Ue.current));rt&&document.activeElement===rt&&rt.blur()}}},{key:"getValidValue",value:function(ct){var Ue=ct.target.value,ue=O(void 0,this.state,this.props),rt=this.state.currentInputValue,ge;return Ue===""?ge=Ue:isNaN(Number(Ue))?ge=rt:Ue>=ue?ge=ue:ge=Number(Ue),ge}},{key:"getShowSizeChanger",value:function(){var ct=this.props,Ue=ct.showSizeChanger,ue=ct.total,rt=ct.totalBoundaryShowSizeChanger;return typeof Ue!="undefined"?Ue:ue>rt}},{key:"renderPrev",value:function(ct){var Ue=this.props,ue=Ue.prevIcon,rt=Ue.itemRender,ge=rt(ct,"prev",this.getItemIcon(ue,"prev page")),Z=!this.hasPrev();return Object(m.isValidElement)(ge)?Object(m.cloneElement)(ge,{disabled:Z}):ge}},{key:"renderNext",value:function(ct){var Ue=this.props,ue=Ue.nextIcon,rt=Ue.itemRender,ge=rt(ct,"next",this.getItemIcon(ue,"next page")),Z=!this.hasNext();return Object(m.isValidElement)(ge)?Object(m.cloneElement)(ge,{disabled:Z}):ge}},{key:"render",value:function(){var ct=this,Ue=this.props,ue=Ue.prefixCls,rt=Ue.className,ge=Ue.style,Z=Ue.disabled,Y=Ue.hideOnSinglePage,ee=Ue.total,fe=Ue.locale,be=Ue.showQuickJumper,Ce=Ue.showLessItems,Te=Ue.showTitle,he=Ue.showTotal,ye=Ue.simple,Ie=Ue.itemRender,tt=Ue.showPrevNextJumpers,pt=Ue.jumpPrevIcon,st=Ue.jumpNextIcon,Fe=Ue.selectComponentClass,ft=Ue.selectPrefixCls,et=Ue.pageSizeOptions,wt=this.state,Ht=wt.current,Dt=wt.pageSize,Tt=wt.currentInputValue;if(Y===!0&&ee<=Dt)return null;var Bt=O(void 0,this.state,this.props),Ke=[],de=null,oe=null,lt=null,qe=null,pe=null,Kt=be&&be.goButton,hr=Ce?1:2,gt=Ht-1>0?Ht-1:0,nr=Ht+1<Bt?Ht+1:Bt,mr=Object.keys(this.props).reduce(function(Qn,$t){return($t.substr(0,5)==="data-"||$t.substr(0,5)==="aria-"||$t==="role")&&(Qn[$t]=ct.props[$t]),Qn},{});if(ye)return Kt&&(typeof Kt=="boolean"?pe=f.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},fe.jump_to_confirm):pe=f.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Kt),pe=f.a.createElement("li",{title:Te?"".concat(fe.jump_to).concat(Ht,"/").concat(Bt):null,className:"".concat(ue,"-simple-pager")},pe)),f.a.createElement("ul",Object(d.a)({className:r()(ue,"".concat(ue,"-simple"),Object(l.a)({},"".concat(ue,"-disabled"),Z),rt),style:ge,ref:this.savePaginationNode},mr),f.a.createElement("li",{title:Te?fe.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(gt)),f.a.createElement("li",{title:Te?"".concat(Ht,"/").concat(Bt):null,className:"".concat(ue,"-simple-pager")},f.a.createElement("input",{type:"text",value:Tt,disabled:Z,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),f.a.createElement("span",{className:"".concat(ue,"-slash")},"/"),Bt),f.a.createElement("li",{title:Te?fe.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(nr)),pe);if(Bt<=3+hr*2){var cn={locale:fe,rootPrefixCls:ue,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Te,itemRender:Ie};Bt||Ke.push(f.a.createElement(c,Object(d.a)({},cn,{key:"noPager",page:Bt,className:"".concat(ue,"-disabled")})));for(var Ar=1;Ar<=Bt;Ar+=1){var xr=Ht===Ar;Ke.push(f.a.createElement(c,Object(d.a)({},cn,{key:Ar,page:Ar,active:xr})))}}else{var qt=Ce?fe.prev_3:fe.prev_5,ar=Ce?fe.next_3:fe.next_5;tt&&(de=f.a.createElement("li",{title:Te?qt: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"),!!pt))},Ie(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(pt,"prev page"))),oe=f.a.createElement("li",{title:Te?ar: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"),!!st))},Ie(this.getJumpNextPage(),"jump-next",this.getItemIcon(st,"next page")))),qe=f.a.createElement(c,{locale:fe,last:!0,rootPrefixCls:ue,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Bt,page:Bt,active:!1,showTitle:Te,itemRender:Ie}),lt=f.a.createElement(c,{locale:fe,rootPrefixCls:ue,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Te,itemRender:Ie});var Et=Math.max(1,Ht-hr),en=Math.min(Ht+hr,Bt);Ht-1<=hr&&(en=1+hr*2),Bt-Ht<=hr&&(Et=Bt-hr*2);for(var Mn=Et;Mn<=en;Mn+=1){var Yn=Ht===Mn;Ke.push(f.a.createElement(c,{locale:fe,rootPrefixCls:ue,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Mn,page:Mn,active:Yn,showTitle:Te,itemRender:Ie}))}Ht-1>=hr*2&&Ht!==1+2&&(Ke[0]=Object(m.cloneElement)(Ke[0],{className:"".concat(ue,"-item-after-jump-prev")}),Ke.unshift(de)),Bt-Ht>=hr*2&&Ht!==Bt-2&&(Ke[Ke.length-1]=Object(m.cloneElement)(Ke[Ke.length-1],{className:"".concat(ue,"-item-before-jump-next")}),Ke.push(oe)),Et!==1&&Ke.unshift(lt),en!==Bt&&Ke.push(qe)}var ci=null;he&&(ci=f.a.createElement("li",{className:"".concat(ue,"-total-text")},he(ee,[ee===0?0:(Ht-1)*Dt+1,Ht*Dt>ee?ee:Ht*Dt])));var Vi=!this.hasPrev()||!Bt,jn=!this.hasNext()||!Bt;return f.a.createElement("ul",Object(d.a)({className:r()(ue,rt,Object(l.a)({},"".concat(ue,"-disabled"),Z)),style:ge,unselectable:"unselectable",ref:this.savePaginationNode},mr),ci,f.a.createElement("li",{title:Te?fe.prev_page:null,onClick:this.prev,tabIndex:Vi?null:0,onKeyPress:this.runIfEnterPrev,className:r()("".concat(ue,"-prev"),Object(l.a)({},"".concat(ue,"-disabled"),Vi)),"aria-disabled":Vi},this.renderPrev(gt)),Ke,f.a.createElement("li",{title:Te?fe.next_page:null,onClick:this.next,tabIndex:jn?null:0,onKeyPress:this.runIfEnterNext,className:r()("".concat(ue,"-next"),Object(l.a)({},"".concat(ue,"-disabled"),jn)),"aria-disabled":jn},this.renderNext(nr)),f.a.createElement(v,{disabled:Z,locale:fe,rootPrefixCls:ue,selectComponentClass:Fe,selectPrefixCls:ft,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ht,pageSize:Dt,pageSizeOptions:et,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Kt}))}}],[{key:"getDerivedStateFromProps",value:function(ct,Ue){var ue={};if("current"in ct&&(ue.current=ct.current,ct.current!==Ue.current&&(ue.currentInputValue=ue.current)),"pageSize"in ct&&ct.pageSize!==Ue.pageSize){var rt=Ue.current,ge=O(ct.pageSize,Ue,ct);rt=rt>ge?ge:rt,"current"in ct||(ue.current=rt,ue.currentInputValue=rt),ue.pageSize=ct.pageSize}return ue}}]),Je}(f.a.Component);E.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:w,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:w,locale:b.a,style:{},itemRender:T,totalBoundaryShowSizeChanger:50};var C=E,I=i("H4fg"),_=i("DFhj"),F=i.n(_),R=i("fEPi"),B=i.n(R),M=i("u9fO"),X=i.n(M),P=i("mO/d"),z=i.n(P),W=i("2fM7"),U=function(Pe){return m.createElement(W.a,A()({size:"small"},Pe))};U.Option=W.a.Option;var V=U,Q=i("YMnH"),G=i("H84U"),te=i("5OYt"),$=function(Re,Pe){var Je={};for(var Ve in Re)Object.prototype.hasOwnProperty.call(Re,Ve)&&Pe.indexOf(Ve)<0&&(Je[Ve]=Re[Ve]);if(Re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ct=0,Ve=Object.getOwnPropertySymbols(Re);ct<Ve.length;ct++)Pe.indexOf(Ve[ct])<0&&Object.prototype.propertyIsEnumerable.call(Re,Ve[ct])&&(Je[Ve[ct]]=Re[Ve[ct]]);return Je},le=function(Pe){var Je=Pe.prefixCls,Ve=Pe.selectPrefixCls,ct=Pe.className,Ue=Pe.size,ue=Pe.locale,rt=$(Pe,["prefixCls","selectPrefixCls","className","size","locale"]),ge=Object(te.a)(),Z=ge.xs,Y=m.useContext(G.b),ee=Y.getPrefixCls,fe=Y.direction,be=ee("pagination",Je),Ce=function(){var ye=m.createElement("span",{className:"".concat(be,"-item-ellipsis")},"\u2022\u2022\u2022"),Ie=m.createElement("button",{className:"".concat(be,"-item-link"),type:"button",tabIndex:-1},m.createElement(F.a,null)),tt=m.createElement("button",{className:"".concat(be,"-item-link"),type:"button",tabIndex:-1},m.createElement(B.a,null)),pt=m.createElement("a",{className:"".concat(be,"-item-link")},m.createElement("div",{className:"".concat(be,"-item-container")},m.createElement(X.a,{className:"".concat(be,"-item-link-icon")}),ye)),st=m.createElement("a",{className:"".concat(be,"-item-link")},m.createElement("div",{className:"".concat(be,"-item-container")},m.createElement(z.a,{className:"".concat(be,"-item-link-icon")}),ye));if(fe==="rtl"){var Fe=[tt,Ie];Ie=Fe[0],tt=Fe[1];var ft=[st,pt];pt=ft[0],st=ft[1]}return{prevIcon:Ie,nextIcon:tt,jumpPrevIcon:pt,jumpNextIcon:st}},Te=function(ye){var Ie=A()(A()({},ye),ue),tt=Ue==="small"||!!(Z&&!Ue&&rt.responsive),pt=ee("select",Ve),st=r()(ct,p()({mini:tt},"".concat(be,"-rtl"),fe==="rtl"));return m.createElement(C,A()({},rt,{prefixCls:be,selectPrefixCls:pt},Ce(),{className:st,selectComponentClass:tt?V:W.a,locale:Ie}))};return m.createElement(Q.a,{componentName:"Pagination",defaultLocale:I.a},Te)},re=le,Se=D.a=re},NohK:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=function(S){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,m=null;return function(){for(var f=this,d=arguments.length,l=new Array(d),o=0;o<d;o++)l[o]=arguments[o];clearTimeout(m),m=setTimeout(function(){S.apply(f,l)},A)}};D.default=y},Npjl:function(k,D){function i(y,p){return y==null?void 0:y[p]}k.exports=i},Nu4q:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:function(S,A){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:S}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:A}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:A}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:A}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:S}}]}},name:"picture",theme:"twotone"};D.default=y},"O/iA":function(k,D,i){},O3gP:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("O/iA"),A=i.n(S),m=i("OaEy")},OELB:function(k,D,i){var y=i("bYtY"),p=1e-4;function S(x){return x.replace(/^\s+|\s+$/g,"")}function A(x,T,O,E){var C=T[1]-T[0],I=O[1]-O[0];if(C===0)return I===0?O[0]:(O[0]+O[1])/2;if(E)if(C>0){if(x<=T[0])return O[0];if(x>=T[1])return O[1]}else{if(x>=T[0])return O[0];if(x<=T[1])return O[1]}else{if(x===T[0])return O[0];if(x===T[1])return O[1]}return(x-T[0])/C*I+O[0]}function m(x,T){switch(x){case"center":case"middle":x="50%";break;case"left":case"top":x="0%";break;case"right":case"bottom":x="100%";break}return typeof x=="string"?S(x).match(/%$/)?parseFloat(x)/100*T:parseFloat(x):x==null?NaN:+x}function f(x,T,O){return T==null&&(T=10),T=Math.min(Math.max(0,T),20),x=(+x).toFixed(T),O?x:+x}function d(x){return x.sort(function(T,O){return T-O}),x}function l(x){if(x=+x,isNaN(x))return 0;for(var T=1,O=0;Math.round(x*T)/T!==x;)T*=10,O++;return O}function o(x){var T=x.toString(),O=T.indexOf("e");if(O>0){var E=+T.slice(O+1);return E<0?-E:0}else{var C=T.indexOf(".");return C<0?0:T.length-1-C}}function n(x,T){var O=Math.log,E=Math.LN10,C=Math.floor(O(x[1]-x[0])/E),I=Math.round(O(Math.abs(T[1]-T[0]))/E),_=Math.min(Math.max(-C+I,0),20);return isFinite(_)?_:20}function t(x,T,O){if(!x[T])return 0;var E=y.reduce(x,function(W,U){return W+(isNaN(U)?0:U)},0);if(E===0)return 0;for(var C=Math.pow(10,O),I=y.map(x,function(W){return(isNaN(W)?0:W)/E*C*100}),_=C*100,F=y.map(I,function(W){return Math.floor(W)}),R=y.reduce(F,function(W,U){return W+U},0),B=y.map(I,function(W,U){return W-F[U]});R<_;){for(var M=Number.NEGATIVE_INFINITY,X=null,P=0,z=B.length;P<z;++P)B[P]>M&&(M=B[P],X=P);++F[X],B[X]=0,++R}return F[T]/C}var a=9007199254740991;function e(x){var T=Math.PI*2;return(x%T+T)%T}function u(x){return x>-p&&x<p}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(x){if(x instanceof Date)return x;if(typeof x=="string"){var T=r.exec(x);if(!T)return new Date(NaN);if(T[8]){var O=+T[4]||0;return T[8].toUpperCase()!=="Z"&&(O-=T[8].slice(0,3)),new Date(Date.UTC(+T[1],+(T[2]||1)-1,+T[3]||1,O,+(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(x==null)return new Date(NaN);return new Date(Math.round(x))}function c(x){return Math.pow(10,h(x))}function h(x){if(x===0)return 0;var T=Math.floor(Math.log(x)/Math.LN10);return x/Math.pow(10,T)>=10&&T++,T}function g(x,T){var O=h(x),E=Math.pow(10,O),C=x/E,I;return T?C<1.5?I=1:C<2.5?I=2:C<4?I=3:C<7?I=5:I=10:C<1?I=1:C<2?I=2:C<3?I=3:C<5?I=5:I=10,x=I*E,O>=-20?+x.toFixed(O<0?-O:0):x}function v(x,T){var O=(x.length-1)*T+1,E=Math.floor(O),C=+x[E-1],I=O-E;return I?C+I*(x[E]-C):C}function b(x){x.sort(function(R,B){return F(R,B,0)?-1:1});for(var T=-Infinity,O=1,E=0;E<x.length;){for(var C=x[E].interval,I=x[E].close,_=0;_<2;_++)C[_]<=T&&(C[_]=T,I[_]=_?1:1-O),T=C[_],O=I[_];C[0]===C[1]&&I[0]*I[1]!==1?x.splice(E,1):E++}return x;function F(R,B,M){return R.interval[M]<B.interval[M]||R.interval[M]===B.interval[M]&&(R.close[M]-B.close[M]===(M?-1:1)||!M&&F(R,B,1))}}function w(x){return x-parseFloat(x)>=0}D.linearMap=A,D.parsePercent=m,D.round=f,D.asc=d,D.getPrecision=l,D.getPrecisionSafe=o,D.getPixelPrecision=n,D.getPercentWithPrecision=t,D.MAX_SAFE_INTEGER=a,D.remRadian=e,D.isRadianAroundZero=u,D.parseDate=s,D.quantity=c,D.quantityExponent=h,D.nice=g,D.quantile=v,D.reformIntervals=b,D.isNumeric=w},OKJ2:function(k,D,i){var y=i("KxfA"),p=y.retrieveRawValue,S=i("7aKB"),A=S.getTooltipMarker,m=S.formatTpl,f=i("4NO4"),d=f.getTooltipRenderMode,l=/\{@(.+?)\}/g,o={getDataParams:function(n,t){var a=this.getData(t),e=this.getRawValue(n,t),u=a.getRawIndex(n),r=a.getName(n),s=a.getRawDataItem(n),c=a.getItemVisual(n,"color"),h=a.getItemVisual(n,"borderColor"),g=this.ecModel.getComponent("tooltip"),v=g&&g.get("renderMode"),b=d(v),w=this.mainType,x=w==="series",T=a.userOutput;return{componentType:w,componentSubType:this.subType,componentIndex:this.componentIndex,seriesType:x?this.subType:null,seriesIndex:this.seriesIndex,seriesId:x?this.id:null,seriesName:x?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:A({color:c,renderMode:b}),$vars:["seriesName","name","value"]}},getFormattedLabel:function(n,t,a,e,u){t=t||"normal";var r=this.getData(a),s=r.getItemModel(n),c=this.getDataParams(n,a);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 g=m(h,c);return g.replace(l,function(v,b){var w=b.length;return b.charAt(0)==="["&&b.charAt(w-1)==="]"&&(b=+b.slice(1,w-1)),p(r,n,b)})}},getRawValue:function(n,t){return p(this.getData(t),n)},formatTooltip:function(){}};k.exports=o},OLod:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("K3mO"))})(this,function(y){y.lib.Cipher||function(p){var S=y,A=S.lib,m=A.Base,f=A.WordArray,d=A.BufferedBlockAlgorithm,l=S.enc,o=l.Utf8,n=l.Base64,t=S.algo,a=t.EvpKDF,e=A.Cipher=d.extend({cfg:m.extend(),createEncryptor:function(_,F){return this.create(this._ENC_XFORM_MODE,_,F)},createDecryptor:function(_,F){return this.create(this._DEC_XFORM_MODE,_,F)},init:function(_,F,R){this.cfg=this.cfg.extend(R),this._xformMode=_,this._key=F,this.reset()},reset:function(){d.reset.call(this),this._doReset()},process:function(_){return this._append(_),this._process()},finalize:function(_){_&&this._append(_);var F=this._doFinalize();return F},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function I(_){return typeof _=="string"?C:T}return function(_){return{encrypt:function(R,B,M){return I(B).encrypt(_,R,B,M)},decrypt:function(R,B,M){return I(B).decrypt(_,R,B,M)}}}}()}),u=A.StreamCipher=e.extend({_doFinalize:function(){var _=this._process(!0);return _},blockSize:1}),r=S.mode={},s=A.BlockCipherMode=m.extend({createEncryptor:function(_,F){return this.Encryptor.create(_,F)},createDecryptor:function(_,F){return this.Decryptor.create(_,F)},init:function(_,F){this._cipher=_,this._iv=F}}),c=r.CBC=function(){var I=s.extend();I.Encryptor=I.extend({processBlock:function(R,B){var M=this._cipher,X=M.blockSize;_.call(this,R,B,X),M.encryptBlock(R,B),this._prevBlock=R.slice(B,B+X)}}),I.Decryptor=I.extend({processBlock:function(R,B){var M=this._cipher,X=M.blockSize,P=R.slice(B,B+X);M.decryptBlock(R,B),_.call(this,R,B,X),this._prevBlock=P}});function _(F,R,B){var M,X=this._iv;X?(M=X,this._iv=p):M=this._prevBlock;for(var P=0;P<B;P++)F[R+P]^=M[P]}return I}(),h=S.pad={},g=h.Pkcs7={pad:function(_,F){for(var R=F*4,B=R-_.sigBytes%R,M=B<<24|B<<16|B<<8|B,X=[],P=0;P<B;P+=4)X.push(M);var z=f.create(X,B);_.concat(z)},unpad:function(_){var F=_.words[_.sigBytes-1>>>2]&255;_.sigBytes-=F}},v=A.BlockCipher=e.extend({cfg:e.cfg.extend({mode:c,padding:g}),reset:function(){var _;e.reset.call(this);var F=this.cfg,R=F.iv,B=F.mode;this._xformMode==this._ENC_XFORM_MODE?_=B.createEncryptor:(_=B.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==_?this._mode.init(this,R&&R.words):(this._mode=_.call(B,this,R&&R.words),this._mode.__creator=_)},_doProcessBlock:function(_,F){this._mode.processBlock(_,F)},_doFinalize:function(){var _,F=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(F.pad(this._data,this.blockSize),_=this._process(!0)):(_=this._process(!0),F.unpad(_)),_},blockSize:128/32}),b=A.CipherParams=m.extend({init:function(_){this.mixIn(_)},toString:function(_){return(_||this.formatter).stringify(this)}}),w=S.format={},x=w.OpenSSL={stringify:function(_){var F,R=_.ciphertext,B=_.salt;return B?F=f.create([1398893684,1701076831]).concat(B).concat(R):F=R,F.toString(n)},parse:function(_){var F,R=n.parse(_),B=R.words;return B[0]==1398893684&&B[1]==1701076831&&(F=f.create(B.slice(2,4)),B.splice(0,4),R.sigBytes-=16),b.create({ciphertext:R,salt:F})}},T=A.SerializableCipher=m.extend({cfg:m.extend({format:x}),encrypt:function(_,F,R,B){B=this.cfg.extend(B);var M=_.createEncryptor(R,B),X=M.finalize(F),P=M.cfg;return b.create({ciphertext:X,key:R,iv:P.iv,algorithm:_,mode:P.mode,padding:P.padding,blockSize:_.blockSize,formatter:B.format})},decrypt:function(_,F,R,B){B=this.cfg.extend(B),F=this._parse(F,B.format);var M=_.createDecryptor(R,B).finalize(F.ciphertext);return M},_parse:function(_,F){return typeof _=="string"?F.parse(_,this):_}}),O=S.kdf={},E=O.OpenSSL={execute:function(_,F,R,B,M){if(B||(B=f.random(64/8)),M)var X=a.create({keySize:F+R,hasher:M}).compute(_,B);else var X=a.create({keySize:F+R}).compute(_,B);var P=f.create(X.words.slice(F),R*4);return X.sigBytes=F*4,b.create({key:X,iv:P,salt:B})}},C=A.PasswordBasedCipher=T.extend({cfg:T.cfg.extend({kdf:E}),encrypt:function(_,F,R,B){B=this.cfg.extend(B);var M=B.kdf.execute(R,_.keySize,_.ivSize,B.salt,B.hasher);B.iv=M.iv;var X=T.encrypt.call(this,_,F,M.key,B);return X.mixIn(M),X},decrypt:function(_,F,R,B){B=this.cfg.extend(B),F=this._parse(F,B.format);var M=B.kdf.execute(R,_.keySize,_.ivSize,F.salt,B.hasher);B.iv=M.iv;var X=T.decrypt.call(this,_,F,M.key,B);return X}})}()})},OPEp:function(k,D,i){},OQFs:function(k,D,i){var y=i("KCsZ"),p=y([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),S={getLineStyle:function(A){var m=p(this,A);return m.lineDash=this.getLineDash(m.lineWidth),m},getLineDash:function(A){A==null&&(A=1);var m=this.get("type"),f=Math.max(A,2),d=A*4;return m==="solid"||m==null?!1:m==="dashed"?[d,d]:[f,f]}};k.exports=S},OS9S:function(k,D,i){var y=i("bYtY"),p=y.inherits,S=i("Gev7"),A=i("mFDi");function m(l){S.call(this,l),this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.notClear=!0}m.prototype.incremental=!0,m.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.dirty(),this.notClear=!1},m.prototype.addDisplayable=function(l,o){o?this._temporaryDisplayables.push(l):this._displayables.push(l),this.dirty()},m.prototype.addDisplayables=function(l,o){o=o||!1;for(var n=0;n<l.length;n++)this.addDisplayable(l[n],o)},m.prototype.eachPendingDisplayable=function(l){for(var o=this._cursor;o<this._displayables.length;o++)l&&l(this._displayables[o]);for(var o=0;o<this._temporaryDisplayables.length;o++)l&&l(this._temporaryDisplayables[o])},m.prototype.update=function(){this.updateTransform();for(var l=this._cursor;l<this._displayables.length;l++){var o=this._displayables[l];o.parent=this,o.update(),o.parent=null}for(var l=0;l<this._temporaryDisplayables.length;l++){var o=this._temporaryDisplayables[l];o.parent=this,o.update(),o.parent=null}},m.prototype.brush=function(l,o){for(var n=this._cursor;n<this._displayables.length;n++){var t=this._displayables[n];t.beforeBrush&&t.beforeBrush(l),t.brush(l,n===this._cursor?null:this._displayables[n-1]),t.afterBrush&&t.afterBrush(l)}this._cursor=n;for(var n=0;n<this._temporaryDisplayables.length;n++){var t=this._temporaryDisplayables[n];t.beforeBrush&&t.beforeBrush(l),t.brush(l,n===0?null:this._temporaryDisplayables[n-1]),t.afterBrush&&t.afterBrush(l)}this._temporaryDisplayables=[],this.notClear=!0};var f=[];m.prototype.getBoundingRect=function(){if(!this._rect){for(var l=new A(Infinity,Infinity,-Infinity,-Infinity),o=0;o<this._displayables.length;o++){var n=this._displayables[o],t=n.getBoundingRect().clone();n.needLocalTransform()&&t.applyTransform(n.getLocalTransform(f)),l.union(t)}this._rect=l}return this._rect},m.prototype.contain=function(l,o){var n=this.transformCoordToLocal(l,o),t=this.getBoundingRect();if(t.contain(n[0],n[1]))for(var a=0;a<this._displayables.length;a++){var e=this._displayables[a];if(e.contain(l,o))return!0}return!1},p(m,S);var d=m;k.exports=d},OUJF:function(k,D,i){var y=i("ProS"),p=i("bYtY");y.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(S,A){var m=A.getComponent("timeline");return m&&S.currentIndex!=null&&(m.setCurrentIndex(S.currentIndex),!m.get("loop",!0)&&m.isIndexMax()&&m.setPlayState(!1)),A.resetOption("timeline"),p.defaults({currentIndex:m.option.currentIndex},S)}),y.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(S,A){var m=A.getComponent("timeline");m&&S.playState!=null&&m.setPlayState(S.playState)})},OXB0:function(k,D,i){var y=i("T4UG"),p=i("MwEJ"),S=i("IDmD"),A=y.extend({type:"series.heatmap",getInitialData:function(m,f){return p(this.getSource(),this,{generateCoord:"value"})},preventIncremental:function(){var m=S.get(this.get("coordinateSystem"));if(m&&m.dimensions)return m.dimensions[0]==="lng"&&m.dimensions[1]==="lat"},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}});k.exports=A},OaEy:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("bKJz"),A=i.n(S),m=i("R9oj")},"Of+w":function(k,D,i){var y=i("Cwc5"),p=i("Kz5y"),S=y(p,"WeakMap");k.exports=S},Ol7k:function(k,D,i){"use strict";var y=i("PKem"),p=i("ZX9x");y.b.Sider=p.b,D.a=y.b},OlYY:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("ProS"),A=i("bYtY"),m=i("ItGF"),f=i("4NO4"),d=i("UOVi"),l=i("zDms"),o=A.each,n=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=a(r);this.settledOption=h,this.mergeDefaultAndTheme(r,c),this.doInit(h)},mergeOption:function(r){var s=a(r);A.merge(this.option,r,!0),A.merge(this.settledOption,s,!0),this.doInit(s)},doInit:function(r){var s=this.option;m.canvasSupported||(s.realtime=!1),this._setDefaultThrottle(r),e(this,r);var c=this.settledOption;o([["start","startValue"],["end","endValue"]],function(h,g){this._rangePropMode[g]==="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,g){var v=this.dependentModels[s.axis][c],b=v.__dzAxisProxy||(v.__dzAxisProxy=new l(s.name,c,this,g));r[s.name+"_"+c]=b},this)},_resetTarget:function(){var r=this.option,s=this._judgeAutoMode();n(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;n(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 g=s==="vertical"?"y":"x";h[g+"Axis"].length?(c[g+"AxisIndex"]=[0],r=!1):o(h.singleAxis,function(v){r&&v.get("orient",!0)===s&&(c.singleAxisIndex=[v.componentIndex],r=!1)})}r&&n(function(v){if(!r)return;var b=[],w=this.dependentModels[v.axis];if(w.length&&!b.length)for(var x=0,T=w.length;x<T;x++)w[x].get("type")==="category"&&b.push(x);c[v.axisIndex]=b,b.length&&(r=!1)},this),r&&this.ecModel.eachSeries(function(v){this._isSeriesHasAllAxesTypeOf(v,"value")&&n(function(b){var w=c[b.axisIndex],x=v.get(b.axisIndex),T=v.get(b.axisId),O=v.ecModel.queryComponents({mainType:b.axis,index:x,id:T})[0];x=O.componentIndex,A.indexOf(w,x)<0&&w.push(x)})},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 n(function(h){var g=r.get(h.axisIndex),v=this.dependentModels[h.axis][g];(!v||v.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 n(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;n(function(h){o(this.get(h.axisIndex),function(g){r.call(s,h,g,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;o([["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;o(["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 a(r){var s={};return o(["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");o([["start","startValue"],["end","endValue"]],function(g,v){var b=s[g[0]]!=null,w=s[g[1]]!=null;b&&!w?c[v]="percent":!b&&w?c[v]="value":h?c[v]=h[v]:b&&(c[v]="percent")})}var u=t;k.exports=u},OnYD:function(k,D,i){},"Oy/b":function(k,D,i){(function(p,S){k.exports=S()})(typeof self!="undefined"?self:this,function(){return function(y){var p={};function S(A){if(p[A])return p[A].exports;var m=p[A]={i:A,l:!1,exports:{}};return y[A].call(m.exports,m,m.exports,S),m.l=!0,m.exports}return S.m=y,S.c=p,S.d=function(A,m,f){S.o(A,m)||Object.defineProperty(A,m,{enumerable:!0,get:f})},S.r=function(A){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(A,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(A,"__esModule",{value:!0})},S.t=function(A,m){if(m&1&&(A=S(A)),m&8)return A;if(m&4&&typeof A=="object"&&A&&A.__esModule)return A;var f=Object.create(null);if(S.r(f),Object.defineProperty(f,"default",{enumerable:!0,value:A}),m&2&&typeof A!="string")for(var d in A)S.d(f,d,function(l){return A[l]}.bind(null,d));return f},S.n=function(A){var m=A&&A.__esModule?function(){return A.default}:function(){return A};return S.d(m,"a",m),m},S.o=function(A,m){return Object.prototype.hasOwnProperty.call(A,m)},S.p="",S(S.s=1)}([function(y,p,S){},function(y,p,S){"use strict";S.r(p);var A=S(0),m=function(){function Nt(ce,Ee,Le){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=ce,this.start=Ee,this.end=Le}return Nt.range=function(Ee,Le){return Le?!Ee||!Ee.loc||!Le.loc||Ee.loc.lexer!==Le.loc.lexer?null:new Nt(Ee.loc.lexer,Ee.loc.start,Le.loc.end):Ee&&Ee.loc},Nt}(),f=function(){function Nt(Ee,Le){this.text=void 0,this.loc=void 0,this.text=Ee,this.loc=Le}var ce=Nt.prototype;return ce.range=function(Le,Qe){return new Nt(Qe,m.range(this,Le))},Nt}(),d=function Nt(ce,Ee){this.position=void 0;var Le="KaTeX parse error: "+ce,Qe,Rt=Ee&&Ee.loc;if(Rt&&Rt.start<=Rt.end){var lr=Rt.lexer.input;Qe=Rt.start;var Qr=Rt.end;Qe===lr.length?Le+=" at end of input: ":Le+=" at position "+(Qe+1)+": ";var pn=lr.slice(Qe,Qr).replace(/[^]/g,"$&\u0332"),In;Qe>15?In="\u2026"+lr.slice(Qe-15,Qe):In=lr.slice(0,Qe);var li;Qr+15<lr.length?li=lr.slice(Qr,Qr+15)+"\u2026":li=lr.slice(Qr),Le+=In+pn+li}var bi=new Error(Le);return bi.name="ParseError",bi.__proto__=Nt.prototype,bi.position=Qe,bi};d.prototype.__proto__=Error.prototype;var l=d,o=function(ce,Ee){return ce.indexOf(Ee)!==-1},n=function(ce,Ee){return ce===void 0?Ee:ce},t=/([A-Z])/g,a=function(ce){return ce.replace(t,"-$1").toLowerCase()},e={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},u=/[&><"']/g;function r(Nt){return String(Nt).replace(u,function(ce){return e[ce]})}var s=function Nt(ce){return ce.type==="ordgroup"||ce.type==="color"?ce.body.length===1?Nt(ce.body[0]):ce:ce.type==="font"?Nt(ce.body):ce},c=function(ce){var Ee=s(ce);return Ee.type==="mathord"||Ee.type==="textord"||Ee.type==="atom"},h=function(ce){if(!ce)throw new Error("Expected non-null, but got "+String(ce));return ce},g=function(ce){var Ee=/^\s*([^\\/#]*?)(?::|&#0*58|&#x0*3a)/i.exec(ce);return Ee!=null?Ee[1]:"_relative"},v={contains:o,deflt:n,escape:r,hyphenate:a,getBaseElem:s,isCharacterBox:c,protocolFromUrl:g},b=function(){function Nt(Ee){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,Ee=Ee||{},this.displayMode=v.deflt(Ee.displayMode,!1),this.output=v.deflt(Ee.output,"htmlAndMathml"),this.leqno=v.deflt(Ee.leqno,!1),this.fleqn=v.deflt(Ee.fleqn,!1),this.throwOnError=v.deflt(Ee.throwOnError,!0),this.errorColor=v.deflt(Ee.errorColor,"#cc0000"),this.macros=Ee.macros||{},this.minRuleThickness=Math.max(0,v.deflt(Ee.minRuleThickness,0)),this.colorIsTextColor=v.deflt(Ee.colorIsTextColor,!1),this.strict=v.deflt(Ee.strict,"warn"),this.trust=v.deflt(Ee.trust,!1),this.maxSize=Math.max(0,v.deflt(Ee.maxSize,Infinity)),this.maxExpand=Math.max(0,v.deflt(Ee.maxExpand,1e3))}var ce=Nt.prototype;return ce.reportNonstrict=function(Le,Qe,Rt){var lr=this.strict;if(typeof lr=="function"&&(lr=lr(Le,Qe,Rt)),!lr||lr==="ignore")return;if(lr===!0||lr==="error")throw new l("LaTeX-incompatible input and strict mode is set to 'error': "+(Qe+" ["+Le+"]"),Rt);lr==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Qe+" ["+Le+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+lr+"': "+Qe+" ["+Le+"]"))},ce.useStrictBehavior=function(Le,Qe,Rt){var lr=this.strict;if(typeof lr=="function")try{lr=lr(Le,Qe,Rt)}catch(Qr){lr="error"}return!lr||lr==="ignore"?!1:lr===!0||lr==="error"?!0:lr==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(Qe+" ["+Le+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+lr+"': "+Qe+" ["+Le+"]")),!1)},ce.isTrusted=function(Le){Le.url&&!Le.protocol&&(Le.protocol=v.protocolFromUrl(Le.url));var Qe=typeof this.trust=="function"?this.trust(Le):this.trust;return Boolean(Qe)},Nt}(),w=function(){function Nt(Ee,Le,Qe){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=Ee,this.size=Le,this.cramped=Qe}var ce=Nt.prototype;return ce.sup=function(){return R[B[this.id]]},ce.sub=function(){return R[M[this.id]]},ce.fracNum=function(){return R[X[this.id]]},ce.fracDen=function(){return R[P[this.id]]},ce.cramp=function(){return R[z[this.id]]},ce.text=function(){return R[W[this.id]]},ce.isTight=function(){return this.size>=2},Nt}(),x=0,T=1,O=2,E=3,C=4,I=5,_=6,F=7,R=[new w(x,0,!1),new w(T,0,!0),new w(O,1,!1),new w(E,1,!0),new w(C,2,!1),new w(I,2,!0),new w(_,3,!1),new w(F,3,!0)],B=[C,I,C,I,_,F,_,F],M=[I,I,I,I,F,F,F,F],X=[O,E,C,I,_,F,_,F],P=[E,E,I,I,F,F,F,F],z=[T,T,E,E,I,I,F,F],W=[x,T,O,E,O,E,O,E],U={DISPLAY:R[x],TEXT:R[O],SCRIPT:R[C],SCRIPTSCRIPT:R[_]},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(Nt){for(var ce=0;ce<V.length;ce++)for(var Ee=V[ce],Le=0;Le<Ee.blocks.length;Le++){var Qe=Ee.blocks[Le];if(Nt>=Qe[0]&&Nt<=Qe[1])return Ee.name}return null}var G=[];V.forEach(function(Nt){return Nt.blocks.forEach(function(ce){return G.push.apply(G,ce)})});function te(Nt){for(var ce=0;ce<G.length;ce+=2)if(Nt>=G[ce]&&Nt<=G[ce+1])return!0;return!1}var $=80,le=function(ce,Ee){return"M95,"+(622+ce+Ee)+`
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)+" "+Ee+"h400000v"+(40+ce)+"h-400000z"},re=function(ce,Ee){return"M263,"+(601+ce+Ee)+`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)+" "+Ee+"h400000v"+(40+ce)+"h-400000z"},Se=function(ce,Ee){return"M983 "+(10+ce+Ee)+`
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)+" "+Ee+"h400000v"+(40+ce)+"h-400000z"},Re=function(ce,Ee){return"M424,"+(2398+ce+Ee)+`
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)+" "+Ee+`
h400000v`+(40+ce)+"h-400000z"},Pe=function(ce,Ee){return"M473,"+(2713+ce+Ee)+`
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)+" "+Ee+"h400000v"+(40+ce)+"H1017.7z"},Je=function(ce,Ee,Le){var Qe=Le-54-Ee-ce;return"M702 "+(ce+Ee)+"H400000"+(40+ce)+`
H742v`+Qe+`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 `+Ee+"H400000v"+(40+ce)+"H742z"},Ve=function(ce,Ee,Le){Ee=1e3*Ee;var Qe="";switch(ce){case"sqrtMain":Qe=le(Ee,$);break;case"sqrtSize1":Qe=re(Ee,$);break;case"sqrtSize2":Qe=Se(Ee,$);break;case"sqrtSize3":Qe=Re(Ee,$);break;case"sqrtSize4":Qe=Pe(Ee,$);break;case"sqrtTall":Qe=Je(Ee,$,Le)}return Qe},ct={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`},Ue=function(){function Nt(Ee){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=Ee,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}var ce=Nt.prototype;return ce.hasClass=function(Le){return v.contains(this.classes,Le)},ce.toNode=function(){for(var Le=document.createDocumentFragment(),Qe=0;Qe<this.children.length;Qe++)Le.appendChild(this.children[Qe].toNode());return Le},ce.toMarkup=function(){for(var Le="",Qe=0;Qe<this.children.length;Qe++)Le+=this.children[Qe].toMarkup();return Le},ce.toText=function(){var Le=function(Rt){return Rt.toText()};return this.children.map(Le).join("")},Nt}(),ue=function(ce){return ce.filter(function(Ee){return Ee}).join(" ")},rt=function(ce,Ee,Le){if(this.classes=ce||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=Le||{},Ee){Ee.style.isTight()&&this.classes.push("mtight");var Qe=Ee.getColor();Qe&&(this.style.color=Qe)}},ge=function(ce){var Ee=document.createElement(ce);Ee.className=ue(this.classes);for(var Le in this.style)this.style.hasOwnProperty(Le)&&(Ee.style[Le]=this.style[Le]);for(var Qe in this.attributes)this.attributes.hasOwnProperty(Qe)&&Ee.setAttribute(Qe,this.attributes[Qe]);for(var Rt=0;Rt<this.children.length;Rt++)Ee.appendChild(this.children[Rt].toNode());return Ee},Z=function(ce){var Ee="<"+ce;this.classes.length&&(Ee+=' class="'+v.escape(ue(this.classes))+'"');var Le="";for(var Qe in this.style)this.style.hasOwnProperty(Qe)&&(Le+=v.hyphenate(Qe)+":"+this.style[Qe]+";");Le&&(Ee+=' style="'+v.escape(Le)+'"');for(var Rt in this.attributes)this.attributes.hasOwnProperty(Rt)&&(Ee+=" "+Rt+'="'+v.escape(this.attributes[Rt])+'"');Ee+=">";for(var lr=0;lr<this.children.length;lr++)Ee+=this.children[lr].toMarkup();return Ee+="</"+ce+">",Ee},Y=function(){function Nt(Ee,Le,Qe,Rt){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,rt.call(this,Ee,Qe,Rt),this.children=Le||[]}var ce=Nt.prototype;return ce.setAttribute=function(Le,Qe){this.attributes[Le]=Qe},ce.hasClass=function(Le){return v.contains(this.classes,Le)},ce.toNode=function(){return ge.call(this,"span")},ce.toMarkup=function(){return Z.call(this,"span")},Nt}(),ee=function(){function Nt(Ee,Le,Qe,Rt){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,rt.call(this,Le,Rt),this.children=Qe||[],this.setAttribute("href",Ee)}var ce=Nt.prototype;return ce.setAttribute=function(Le,Qe){this.attributes[Le]=Qe},ce.hasClass=function(Le){return v.contains(this.classes,Le)},ce.toNode=function(){return ge.call(this,"a")},ce.toMarkup=function(){return Z.call(this,"a")},Nt}(),fe=function(){function Nt(Ee,Le,Qe){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=Le,this.src=Ee,this.classes=["mord"],this.style=Qe}var ce=Nt.prototype;return ce.hasClass=function(Le){return v.contains(this.classes,Le)},ce.toNode=function(){var Le=document.createElement("img");Le.src=this.src,Le.alt=this.alt,Le.className="mord";for(var Qe in this.style)this.style.hasOwnProperty(Qe)&&(Le.style[Qe]=this.style[Qe]);return Le},ce.toMarkup=function(){var Le="<img src='"+this.src+" 'alt='"+this.alt+"' ",Qe="";for(var Rt in this.style)this.style.hasOwnProperty(Rt)&&(Qe+=v.hyphenate(Rt)+":"+this.style[Rt]+";");return Qe&&(Le+=' style="'+v.escape(Qe)+'"'),Le+="'/>",Le},Nt}(),be={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"},Ce=function(){function Nt(Ee,Le,Qe,Rt,lr,Qr,pn,In){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=Ee,this.height=Le||0,this.depth=Qe||0,this.italic=Rt||0,this.skew=lr||0,this.width=Qr||0,this.classes=pn||[],this.style=In||{},this.maxFontSize=0;var li=Q(this.text.charCodeAt(0));li&&this.classes.push(li+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=be[this.text])}var ce=Nt.prototype;return ce.hasClass=function(Le){return v.contains(this.classes,Le)},ce.toNode=function(){var Le=document.createTextNode(this.text),Qe=null;this.italic>0&&(Qe=document.createElement("span"),Qe.style.marginRight=this.italic+"em"),this.classes.length>0&&(Qe=Qe||document.createElement("span"),Qe.className=ue(this.classes));for(var Rt in this.style)this.style.hasOwnProperty(Rt)&&(Qe=Qe||document.createElement("span"),Qe.style[Rt]=this.style[Rt]);return Qe?(Qe.appendChild(Le),Qe):Le},ce.toMarkup=function(){var Le=!1,Qe="<span";this.classes.length&&(Le=!0,Qe+=' class="',Qe+=v.escape(ue(this.classes)),Qe+='"');var Rt="";this.italic>0&&(Rt+="margin-right:"+this.italic+"em;");for(var lr in this.style)this.style.hasOwnProperty(lr)&&(Rt+=v.hyphenate(lr)+":"+this.style[lr]+";");Rt&&(Le=!0,Qe+=' style="'+v.escape(Rt)+'"');var Qr=v.escape(this.text);return Le?(Qe+=">",Qe+=Qr,Qe+="</span>",Qe):Qr},Nt}(),Te=function(){function Nt(Ee,Le){this.children=void 0,this.attributes=void 0,this.children=Ee||[],this.attributes=Le||{}}var ce=Nt.prototype;return ce.toNode=function(){var Le="http://www.w3.org/2000/svg",Qe=document.createElementNS(Le,"svg");for(var Rt in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Rt)&&Qe.setAttribute(Rt,this.attributes[Rt]);for(var lr=0;lr<this.children.length;lr++)Qe.appendChild(this.children[lr].toNode());return Qe},ce.toMarkup=function(){var Le="<svg";for(var Qe in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Qe)&&(Le+=" "+Qe+"='"+this.attributes[Qe]+"'");Le+=">";for(var Rt=0;Rt<this.children.length;Rt++)Le+=this.children[Rt].toMarkup();return Le+="</svg>",Le},Nt}(),he=function(){function Nt(Ee,Le){this.pathName=void 0,this.alternate=void 0,this.pathName=Ee,this.alternate=Le}var ce=Nt.prototype;return ce.toNode=function(){var Le="http://www.w3.org/2000/svg",Qe=document.createElementNS(Le,"path");return this.alternate?Qe.setAttribute("d",this.alternate):Qe.setAttribute("d",ct[this.pathName]),Qe},ce.toMarkup=function(){return this.alternate?"<path d='"+this.alternate+"'/>":"<path d='"+ct[this.pathName]+"'/>"},Nt}(),ye=function(){function Nt(Ee){this.attributes=void 0,this.attributes=Ee||{}}var ce=Nt.prototype;return ce.toNode=function(){var Le="http://www.w3.org/2000/svg",Qe=document.createElementNS(Le,"line");for(var Rt in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Rt)&&Qe.setAttribute(Rt,this.attributes[Rt]);return Qe},ce.toMarkup=function(){var Le="<line";for(var Qe in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Qe)&&(Le+=" "+Qe+"='"+this.attributes[Qe]+"'");return Le+="/>",Le},Nt}();function Ie(Nt){if(Nt instanceof Ce)return Nt;throw new Error("Expected symbolNode but got "+String(Nt)+".")}function tt(Nt){if(Nt instanceof Y)return Nt;throw new Error("Expected span<HtmlDomNode> but got "+String(Nt)+".")}var pt={"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]}},st={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]},Fe={\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 ft(Nt,ce){pt[Nt]=ce}function et(Nt,ce,Ee){if(!pt[ce])throw new Error("Font metrics not found for font: "+ce+".");var Le=Nt.charCodeAt(0),Qe=pt[ce][Le];if(!Qe&&Nt[0]in Fe&&(Le=Fe[Nt[0]].charCodeAt(0),Qe=pt[ce][Le]),!Qe&&Ee==="text"&&(te(Le)&&(Qe=pt[ce][77])),Qe)return{depth:Qe[0],height:Qe[1],italic:Qe[2],skew:Qe[3],width:Qe[4]}}var wt={};function Ht(Nt){var ce;if(Nt>=5?ce=0:Nt>=3?ce=1:ce=2,!wt[ce]){var Ee=wt[ce]={cssEmPerMu:st.quad[ce]/18};for(var Le in st)st.hasOwnProperty(Le)&&(Ee[Le]=st[Le][ce])}return wt[ce]}var Dt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Tt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Bt={math:{},text:{}},Ke=Bt;function de(Nt,ce,Ee,Le,Qe,Rt){Bt[Nt][Qe]={font:ce,group:Ee,replace:Le},Rt&&Le&&(Bt[Nt][Le]=Bt[Nt][Qe])}var oe="math",lt="text",qe="main",pe="ams",Kt="accent-token",hr="bin",gt="close",nr="inner",mr="mathord",cn="op-token",Ar="open",xr="punct",qt="rel",ar="spacing",Et="textord";de(oe,qe,qt,"\u2261","\\equiv",!0),de(oe,qe,qt,"\u227A","\\prec",!0),de(oe,qe,qt,"\u227B","\\succ",!0),de(oe,qe,qt,"\u223C","\\sim",!0),de(oe,qe,qt,"\u22A5","\\perp"),de(oe,qe,qt,"\u2AAF","\\preceq",!0),de(oe,qe,qt,"\u2AB0","\\succeq",!0),de(oe,qe,qt,"\u2243","\\simeq",!0),de(oe,qe,qt,"\u2223","\\mid",!0),de(oe,qe,qt,"\u226A","\\ll",!0),de(oe,qe,qt,"\u226B","\\gg",!0),de(oe,qe,qt,"\u224D","\\asymp",!0),de(oe,qe,qt,"\u2225","\\parallel"),de(oe,qe,qt,"\u22C8","\\bowtie",!0),de(oe,qe,qt,"\u2323","\\smile",!0),de(oe,qe,qt,"\u2291","\\sqsubseteq",!0),de(oe,qe,qt,"\u2292","\\sqsupseteq",!0),de(oe,qe,qt,"\u2250","\\doteq",!0),de(oe,qe,qt,"\u2322","\\frown",!0),de(oe,qe,qt,"\u220B","\\ni",!0),de(oe,qe,qt,"\u221D","\\propto",!0),de(oe,qe,qt,"\u22A2","\\vdash",!0),de(oe,qe,qt,"\u22A3","\\dashv",!0),de(oe,qe,qt,"\u220B","\\owns"),de(oe,qe,xr,".","\\ldotp"),de(oe,qe,xr,"\u22C5","\\cdotp"),de(oe,qe,Et,"#","\\#"),de(lt,qe,Et,"#","\\#"),de(oe,qe,Et,"&","\\&"),de(lt,qe,Et,"&","\\&"),de(oe,qe,Et,"\u2135","\\aleph",!0),de(oe,qe,Et,"\u2200","\\forall",!0),de(oe,qe,Et,"\u210F","\\hbar",!0),de(oe,qe,Et,"\u2203","\\exists",!0),de(oe,qe,Et,"\u2207","\\nabla",!0),de(oe,qe,Et,"\u266D","\\flat",!0),de(oe,qe,Et,"\u2113","\\ell",!0),de(oe,qe,Et,"\u266E","\\natural",!0),de(oe,qe,Et,"\u2663","\\clubsuit",!0),de(oe,qe,Et,"\u2118","\\wp",!0),de(oe,qe,Et,"\u266F","\\sharp",!0),de(oe,qe,Et,"\u2662","\\diamondsuit",!0),de(oe,qe,Et,"\u211C","\\Re",!0),de(oe,qe,Et,"\u2661","\\heartsuit",!0),de(oe,qe,Et,"\u2111","\\Im",!0),de(oe,qe,Et,"\u2660","\\spadesuit",!0),de(lt,qe,Et,"\xA7","\\S",!0),de(lt,qe,Et,"\xB6","\\P",!0),de(oe,qe,Et,"\u2020","\\dag"),de(lt,qe,Et,"\u2020","\\dag"),de(lt,qe,Et,"\u2020","\\textdagger"),de(oe,qe,Et,"\u2021","\\ddag"),de(lt,qe,Et,"\u2021","\\ddag"),de(lt,qe,Et,"\u2021","\\textdaggerdbl"),de(oe,qe,gt,"\u23B1","\\rmoustache",!0),de(oe,qe,Ar,"\u23B0","\\lmoustache",!0),de(oe,qe,gt,"\u27EF","\\rgroup",!0),de(oe,qe,Ar,"\u27EE","\\lgroup",!0),de(oe,qe,hr,"\u2213","\\mp",!0),de(oe,qe,hr,"\u2296","\\ominus",!0),de(oe,qe,hr,"\u228E","\\uplus",!0),de(oe,qe,hr,"\u2293","\\sqcap",!0),de(oe,qe,hr,"\u2217","\\ast"),de(oe,qe,hr,"\u2294","\\sqcup",!0),de(oe,qe,hr,"\u25EF","\\bigcirc"),de(oe,qe,hr,"\u2219","\\bullet"),de(oe,qe,hr,"\u2021","\\ddagger"),de(oe,qe,hr,"\u2240","\\wr",!0),de(oe,qe,hr,"\u2A3F","\\amalg"),de(oe,qe,hr,"&","\\And"),de(oe,qe,qt,"\u27F5","\\longleftarrow",!0),de(oe,qe,qt,"\u21D0","\\Leftarrow",!0),de(oe,qe,qt,"\u27F8","\\Longleftarrow",!0),de(oe,qe,qt,"\u27F6","\\longrightarrow",!0),de(oe,qe,qt,"\u21D2","\\Rightarrow",!0),de(oe,qe,qt,"\u27F9","\\Longrightarrow",!0),de(oe,qe,qt,"\u2194","\\leftrightarrow",!0),de(oe,qe,qt,"\u27F7","\\longleftrightarrow",!0),de(oe,qe,qt,"\u21D4","\\Leftrightarrow",!0),de(oe,qe,qt,"\u27FA","\\Longleftrightarrow",!0),de(oe,qe,qt,"\u21A6","\\mapsto",!0),de(oe,qe,qt,"\u27FC","\\longmapsto",!0),de(oe,qe,qt,"\u2197","\\nearrow",!0),de(oe,qe,qt,"\u21A9","\\hookleftarrow",!0),de(oe,qe,qt,"\u21AA","\\hookrightarrow",!0),de(oe,qe,qt,"\u2198","\\searrow",!0),de(oe,qe,qt,"\u21BC","\\leftharpoonup",!0),de(oe,qe,qt,"\u21C0","\\rightharpoonup",!0),de(oe,qe,qt,"\u2199","\\swarrow",!0),de(oe,qe,qt,"\u21BD","\\leftharpoondown",!0),de(oe,qe,qt,"\u21C1","\\rightharpoondown",!0),de(oe,qe,qt,"\u2196","\\nwarrow",!0),de(oe,qe,qt,"\u21CC","\\rightleftharpoons",!0),de(oe,pe,qt,"\u226E","\\nless",!0),de(oe,pe,qt,"\uE010","\\@nleqslant"),de(oe,pe,qt,"\uE011","\\@nleqq"),de(oe,pe,qt,"\u2A87","\\lneq",!0),de(oe,pe,qt,"\u2268","\\lneqq",!0),de(oe,pe,qt,"\uE00C","\\@lvertneqq"),de(oe,pe,qt,"\u22E6","\\lnsim",!0),de(oe,pe,qt,"\u2A89","\\lnapprox",!0),de(oe,pe,qt,"\u2280","\\nprec",!0),de(oe,pe,qt,"\u22E0","\\npreceq",!0),de(oe,pe,qt,"\u22E8","\\precnsim",!0),de(oe,pe,qt,"\u2AB9","\\precnapprox",!0),de(oe,pe,qt,"\u2241","\\nsim",!0),de(oe,pe,qt,"\uE006","\\@nshortmid"),de(oe,pe,qt,"\u2224","\\nmid",!0),de(oe,pe,qt,"\u22AC","\\nvdash",!0),de(oe,pe,qt,"\u22AD","\\nvDash",!0),de(oe,pe,qt,"\u22EA","\\ntriangleleft"),de(oe,pe,qt,"\u22EC","\\ntrianglelefteq",!0),de(oe,pe,qt,"\u228A","\\subsetneq",!0),de(oe,pe,qt,"\uE01A","\\@varsubsetneq"),de(oe,pe,qt,"\u2ACB","\\subsetneqq",!0),de(oe,pe,qt,"\uE017","\\@varsubsetneqq"),de(oe,pe,qt,"\u226F","\\ngtr",!0),de(oe,pe,qt,"\uE00F","\\@ngeqslant"),de(oe,pe,qt,"\uE00E","\\@ngeqq"),de(oe,pe,qt,"\u2A88","\\gneq",!0),de(oe,pe,qt,"\u2269","\\gneqq",!0),de(oe,pe,qt,"\uE00D","\\@gvertneqq"),de(oe,pe,qt,"\u22E7","\\gnsim",!0),de(oe,pe,qt,"\u2A8A","\\gnapprox",!0),de(oe,pe,qt,"\u2281","\\nsucc",!0),de(oe,pe,qt,"\u22E1","\\nsucceq",!0),de(oe,pe,qt,"\u22E9","\\succnsim",!0),de(oe,pe,qt,"\u2ABA","\\succnapprox",!0),de(oe,pe,qt,"\u2246","\\ncong",!0),de(oe,pe,qt,"\uE007","\\@nshortparallel"),de(oe,pe,qt,"\u2226","\\nparallel",!0),de(oe,pe,qt,"\u22AF","\\nVDash",!0),de(oe,pe,qt,"\u22EB","\\ntriangleright"),de(oe,pe,qt,"\u22ED","\\ntrianglerighteq",!0),de(oe,pe,qt,"\uE018","\\@nsupseteqq"),de(oe,pe,qt,"\u228B","\\supsetneq",!0),de(oe,pe,qt,"\uE01B","\\@varsupsetneq"),de(oe,pe,qt,"\u2ACC","\\supsetneqq",!0),de(oe,pe,qt,"\uE019","\\@varsupsetneqq"),de(oe,pe,qt,"\u22AE","\\nVdash",!0),de(oe,pe,qt,"\u2AB5","\\precneqq",!0),de(oe,pe,qt,"\u2AB6","\\succneqq",!0),de(oe,pe,qt,"\uE016","\\@nsubseteqq"),de(oe,pe,hr,"\u22B4","\\unlhd"),de(oe,pe,hr,"\u22B5","\\unrhd"),de(oe,pe,qt,"\u219A","\\nleftarrow",!0),de(oe,pe,qt,"\u219B","\\nrightarrow",!0),de(oe,pe,qt,"\u21CD","\\nLeftarrow",!0),de(oe,pe,qt,"\u21CF","\\nRightarrow",!0),de(oe,pe,qt,"\u21AE","\\nleftrightarrow",!0),de(oe,pe,qt,"\u21CE","\\nLeftrightarrow",!0),de(oe,pe,qt,"\u25B3","\\vartriangle"),de(oe,pe,Et,"\u210F","\\hslash"),de(oe,pe,Et,"\u25BD","\\triangledown"),de(oe,pe,Et,"\u25CA","\\lozenge"),de(oe,pe,Et,"\u24C8","\\circledS"),de(oe,pe,Et,"\xAE","\\circledR"),de(lt,pe,Et,"\xAE","\\circledR"),de(oe,pe,Et,"\u2221","\\measuredangle",!0),de(oe,pe,Et,"\u2204","\\nexists"),de(oe,pe,Et,"\u2127","\\mho"),de(oe,pe,Et,"\u2132","\\Finv",!0),de(oe,pe,Et,"\u2141","\\Game",!0),de(oe,pe,Et,"\u2035","\\backprime"),de(oe,pe,Et,"\u25B2","\\blacktriangle"),de(oe,pe,Et,"\u25BC","\\blacktriangledown"),de(oe,pe,Et,"\u25A0","\\blacksquare"),de(oe,pe,Et,"\u29EB","\\blacklozenge"),de(oe,pe,Et,"\u2605","\\bigstar"),de(oe,pe,Et,"\u2222","\\sphericalangle",!0),de(oe,pe,Et,"\u2201","\\complement",!0),de(oe,pe,Et,"\xF0","\\eth",!0),de(oe,pe,Et,"\u2571","\\diagup"),de(oe,pe,Et,"\u2572","\\diagdown"),de(oe,pe,Et,"\u25A1","\\square"),de(oe,pe,Et,"\u25A1","\\Box"),de(oe,pe,Et,"\u25CA","\\Diamond"),de(oe,pe,Et,"\xA5","\\yen",!0),de(lt,pe,Et,"\xA5","\\yen",!0),de(oe,pe,Et,"\u2713","\\checkmark",!0),de(lt,pe,Et,"\u2713","\\checkmark"),de(oe,pe,Et,"\u2136","\\beth",!0),de(oe,pe,Et,"\u2138","\\daleth",!0),de(oe,pe,Et,"\u2137","\\gimel",!0),de(oe,pe,Et,"\u03DD","\\digamma",!0),de(oe,pe,Et,"\u03F0","\\varkappa"),de(oe,pe,Ar,"\u250C","\\ulcorner",!0),de(oe,pe,gt,"\u2510","\\urcorner",!0),de(oe,pe,Ar,"\u2514","\\llcorner",!0),de(oe,pe,gt,"\u2518","\\lrcorner",!0),de(oe,pe,qt,"\u2266","\\leqq",!0),de(oe,pe,qt,"\u2A7D","\\leqslant",!0),de(oe,pe,qt,"\u2A95","\\eqslantless",!0),de(oe,pe,qt,"\u2272","\\lesssim",!0),de(oe,pe,qt,"\u2A85","\\lessapprox",!0),de(oe,pe,qt,"\u224A","\\approxeq",!0),de(oe,pe,hr,"\u22D6","\\lessdot"),de(oe,pe,qt,"\u22D8","\\lll",!0),de(oe,pe,qt,"\u2276","\\lessgtr",!0),de(oe,pe,qt,"\u22DA","\\lesseqgtr",!0),de(oe,pe,qt,"\u2A8B","\\lesseqqgtr",!0),de(oe,pe,qt,"\u2251","\\doteqdot"),de(oe,pe,qt,"\u2253","\\risingdotseq",!0),de(oe,pe,qt,"\u2252","\\fallingdotseq",!0),de(oe,pe,qt,"\u223D","\\backsim",!0),de(oe,pe,qt,"\u22CD","\\backsimeq",!0),de(oe,pe,qt,"\u2AC5","\\subseteqq",!0),de(oe,pe,qt,"\u22D0","\\Subset",!0),de(oe,pe,qt,"\u228F","\\sqsubset",!0),de(oe,pe,qt,"\u227C","\\preccurlyeq",!0),de(oe,pe,qt,"\u22DE","\\curlyeqprec",!0),de(oe,pe,qt,"\u227E","\\precsim",!0),de(oe,pe,qt,"\u2AB7","\\precapprox",!0),de(oe,pe,qt,"\u22B2","\\vartriangleleft"),de(oe,pe,qt,"\u22B4","\\trianglelefteq"),de(oe,pe,qt,"\u22A8","\\vDash",!0),de(oe,pe,qt,"\u22AA","\\Vvdash",!0),de(oe,pe,qt,"\u2323","\\smallsmile"),de(oe,pe,qt,"\u2322","\\smallfrown"),de(oe,pe,qt,"\u224F","\\bumpeq",!0),de(oe,pe,qt,"\u224E","\\Bumpeq",!0),de(oe,pe,qt,"\u2267","\\geqq",!0),de(oe,pe,qt,"\u2A7E","\\geqslant",!0),de(oe,pe,qt,"\u2A96","\\eqslantgtr",!0),de(oe,pe,qt,"\u2273","\\gtrsim",!0),de(oe,pe,qt,"\u2A86","\\gtrapprox",!0),de(oe,pe,hr,"\u22D7","\\gtrdot"),de(oe,pe,qt,"\u22D9","\\ggg",!0),de(oe,pe,qt,"\u2277","\\gtrless",!0),de(oe,pe,qt,"\u22DB","\\gtreqless",!0),de(oe,pe,qt,"\u2A8C","\\gtreqqless",!0),de(oe,pe,qt,"\u2256","\\eqcirc",!0),de(oe,pe,qt,"\u2257","\\circeq",!0),de(oe,pe,qt,"\u225C","\\triangleq",!0),de(oe,pe,qt,"\u223C","\\thicksim"),de(oe,pe,qt,"\u2248","\\thickapprox"),de(oe,pe,qt,"\u2AC6","\\supseteqq",!0),de(oe,pe,qt,"\u22D1","\\Supset",!0),de(oe,pe,qt,"\u2290","\\sqsupset",!0),de(oe,pe,qt,"\u227D","\\succcurlyeq",!0),de(oe,pe,qt,"\u22DF","\\curlyeqsucc",!0),de(oe,pe,qt,"\u227F","\\succsim",!0),de(oe,pe,qt,"\u2AB8","\\succapprox",!0),de(oe,pe,qt,"\u22B3","\\vartriangleright"),de(oe,pe,qt,"\u22B5","\\trianglerighteq"),de(oe,pe,qt,"\u22A9","\\Vdash",!0),de(oe,pe,qt,"\u2223","\\shortmid"),de(oe,pe,qt,"\u2225","\\shortparallel"),de(oe,pe,qt,"\u226C","\\between",!0),de(oe,pe,qt,"\u22D4","\\pitchfork",!0),de(oe,pe,qt,"\u221D","\\varpropto"),de(oe,pe,qt,"\u25C0","\\blacktriangleleft"),de(oe,pe,qt,"\u2234","\\therefore",!0),de(oe,pe,qt,"\u220D","\\backepsilon"),de(oe,pe,qt,"\u25B6","\\blacktriangleright"),de(oe,pe,qt,"\u2235","\\because",!0),de(oe,pe,qt,"\u22D8","\\llless"),de(oe,pe,qt,"\u22D9","\\gggtr"),de(oe,pe,hr,"\u22B2","\\lhd"),de(oe,pe,hr,"\u22B3","\\rhd"),de(oe,pe,qt,"\u2242","\\eqsim",!0),de(oe,qe,qt,"\u22C8","\\Join"),de(oe,pe,qt,"\u2251","\\Doteq",!0),de(oe,pe,hr,"\u2214","\\dotplus",!0),de(oe,pe,hr,"\u2216","\\smallsetminus"),de(oe,pe,hr,"\u22D2","\\Cap",!0),de(oe,pe,hr,"\u22D3","\\Cup",!0),de(oe,pe,hr,"\u2A5E","\\doublebarwedge",!0),de(oe,pe,hr,"\u229F","\\boxminus",!0),de(oe,pe,hr,"\u229E","\\boxplus",!0),de(oe,pe,hr,"\u22C7","\\divideontimes",!0),de(oe,pe,hr,"\u22C9","\\ltimes",!0),de(oe,pe,hr,"\u22CA","\\rtimes",!0),de(oe,pe,hr,"\u22CB","\\leftthreetimes",!0),de(oe,pe,hr,"\u22CC","\\rightthreetimes",!0),de(oe,pe,hr,"\u22CF","\\curlywedge",!0),de(oe,pe,hr,"\u22CE","\\curlyvee",!0),de(oe,pe,hr,"\u229D","\\circleddash",!0),de(oe,pe,hr,"\u229B","\\circledast",!0),de(oe,pe,hr,"\u22C5","\\centerdot"),de(oe,pe,hr,"\u22BA","\\intercal",!0),de(oe,pe,hr,"\u22D2","\\doublecap"),de(oe,pe,hr,"\u22D3","\\doublecup"),de(oe,pe,hr,"\u22A0","\\boxtimes",!0),de(oe,pe,qt,"\u21E2","\\dashrightarrow",!0),de(oe,pe,qt,"\u21E0","\\dashleftarrow",!0),de(oe,pe,qt,"\u21C7","\\leftleftarrows",!0),de(oe,pe,qt,"\u21C6","\\leftrightarrows",!0),de(oe,pe,qt,"\u21DA","\\Lleftarrow",!0),de(oe,pe,qt,"\u219E","\\twoheadleftarrow",!0),de(oe,pe,qt,"\u21A2","\\leftarrowtail",!0),de(oe,pe,qt,"\u21AB","\\looparrowleft",!0),de(oe,pe,qt,"\u21CB","\\leftrightharpoons",!0),de(oe,pe,qt,"\u21B6","\\curvearrowleft",!0),de(oe,pe,qt,"\u21BA","\\circlearrowleft",!0),de(oe,pe,qt,"\u21B0","\\Lsh",!0),de(oe,pe,qt,"\u21C8","\\upuparrows",!0),de(oe,pe,qt,"\u21BF","\\upharpoonleft",!0),de(oe,pe,qt,"\u21C3","\\downharpoonleft",!0),de(oe,pe,qt,"\u22B8","\\multimap",!0),de(oe,pe,qt,"\u21AD","\\leftrightsquigarrow",!0),de(oe,pe,qt,"\u21C9","\\rightrightarrows",!0),de(oe,pe,qt,"\u21C4","\\rightleftarrows",!0),de(oe,pe,qt,"\u21A0","\\twoheadrightarrow",!0),de(oe,pe,qt,"\u21A3","\\rightarrowtail",!0),de(oe,pe,qt,"\u21AC","\\looparrowright",!0),de(oe,pe,qt,"\u21B7","\\curvearrowright",!0),de(oe,pe,qt,"\u21BB","\\circlearrowright",!0),de(oe,pe,qt,"\u21B1","\\Rsh",!0),de(oe,pe,qt,"\u21CA","\\downdownarrows",!0),de(oe,pe,qt,"\u21BE","\\upharpoonright",!0),de(oe,pe,qt,"\u21C2","\\downharpoonright",!0),de(oe,pe,qt,"\u21DD","\\rightsquigarrow",!0),de(oe,pe,qt,"\u21DD","\\leadsto"),de(oe,pe,qt,"\u21DB","\\Rrightarrow",!0),de(oe,pe,qt,"\u21BE","\\restriction"),de(oe,qe,Et,"\u2018","`"),de(oe,qe,Et,"$","\\$"),de(lt,qe,Et,"$","\\$"),de(lt,qe,Et,"$","\\textdollar"),de(oe,qe,Et,"%","\\%"),de(lt,qe,Et,"%","\\%"),de(oe,qe,Et,"_","\\_"),de(lt,qe,Et,"_","\\_"),de(lt,qe,Et,"_","\\textunderscore"),de(oe,qe,Et,"\u2220","\\angle",!0),de(oe,qe,Et,"\u221E","\\infty",!0),de(oe,qe,Et,"\u2032","\\prime"),de(oe,qe,Et,"\u25B3","\\triangle"),de(oe,qe,Et,"\u0393","\\Gamma",!0),de(oe,qe,Et,"\u0394","\\Delta",!0),de(oe,qe,Et,"\u0398","\\Theta",!0),de(oe,qe,Et,"\u039B","\\Lambda",!0),de(oe,qe,Et,"\u039E","\\Xi",!0),de(oe,qe,Et,"\u03A0","\\Pi",!0),de(oe,qe,Et,"\u03A3","\\Sigma",!0),de(oe,qe,Et,"\u03A5","\\Upsilon",!0),de(oe,qe,Et,"\u03A6","\\Phi",!0),de(oe,qe,Et,"\u03A8","\\Psi",!0),de(oe,qe,Et,"\u03A9","\\Omega",!0),de(oe,qe,Et,"A","\u0391"),de(oe,qe,Et,"B","\u0392"),de(oe,qe,Et,"E","\u0395"),de(oe,qe,Et,"Z","\u0396"),de(oe,qe,Et,"H","\u0397"),de(oe,qe,Et,"I","\u0399"),de(oe,qe,Et,"K","\u039A"),de(oe,qe,Et,"M","\u039C"),de(oe,qe,Et,"N","\u039D"),de(oe,qe,Et,"O","\u039F"),de(oe,qe,Et,"P","\u03A1"),de(oe,qe,Et,"T","\u03A4"),de(oe,qe,Et,"X","\u03A7"),de(oe,qe,Et,"\xAC","\\neg",!0),de(oe,qe,Et,"\xAC","\\lnot"),de(oe,qe,Et,"\u22A4","\\top"),de(oe,qe,Et,"\u22A5","\\bot"),de(oe,qe,Et,"\u2205","\\emptyset"),de(oe,pe,Et,"\u2205","\\varnothing"),de(oe,qe,mr,"\u03B1","\\alpha",!0),de(oe,qe,mr,"\u03B2","\\beta",!0),de(oe,qe,mr,"\u03B3","\\gamma",!0),de(oe,qe,mr,"\u03B4","\\delta",!0),de(oe,qe,mr,"\u03F5","\\epsilon",!0),de(oe,qe,mr,"\u03B6","\\zeta",!0),de(oe,qe,mr,"\u03B7","\\eta",!0),de(oe,qe,mr,"\u03B8","\\theta",!0),de(oe,qe,mr,"\u03B9","\\iota",!0),de(oe,qe,mr,"\u03BA","\\kappa",!0),de(oe,qe,mr,"\u03BB","\\lambda",!0),de(oe,qe,mr,"\u03BC","\\mu",!0),de(oe,qe,mr,"\u03BD","\\nu",!0),de(oe,qe,mr,"\u03BE","\\xi",!0),de(oe,qe,mr,"\u03BF","\\omicron",!0),de(oe,qe,mr,"\u03C0","\\pi",!0),de(oe,qe,mr,"\u03C1","\\rho",!0),de(oe,qe,mr,"\u03C3","\\sigma",!0),de(oe,qe,mr,"\u03C4","\\tau",!0),de(oe,qe,mr,"\u03C5","\\upsilon",!0),de(oe,qe,mr,"\u03D5","\\phi",!0),de(oe,qe,mr,"\u03C7","\\chi",!0),de(oe,qe,mr,"\u03C8","\\psi",!0),de(oe,qe,mr,"\u03C9","\\omega",!0),de(oe,qe,mr,"\u03B5","\\varepsilon",!0),de(oe,qe,mr,"\u03D1","\\vartheta",!0),de(oe,qe,mr,"\u03D6","\\varpi",!0),de(oe,qe,mr,"\u03F1","\\varrho",!0),de(oe,qe,mr,"\u03C2","\\varsigma",!0),de(oe,qe,mr,"\u03C6","\\varphi",!0),de(oe,qe,hr,"\u2217","*"),de(oe,qe,hr,"+","+"),de(oe,qe,hr,"\u2212","-"),de(oe,qe,hr,"\u22C5","\\cdot",!0),de(oe,qe,hr,"\u2218","\\circ"),de(oe,qe,hr,"\xF7","\\div",!0),de(oe,qe,hr,"\xB1","\\pm",!0),de(oe,qe,hr,"\xD7","\\times",!0),de(oe,qe,hr,"\u2229","\\cap",!0),de(oe,qe,hr,"\u222A","\\cup",!0),de(oe,qe,hr,"\u2216","\\setminus"),de(oe,qe,hr,"\u2227","\\land"),de(oe,qe,hr,"\u2228","\\lor"),de(oe,qe,hr,"\u2227","\\wedge",!0),de(oe,qe,hr,"\u2228","\\vee",!0),de(oe,qe,Et,"\u221A","\\surd"),de(oe,qe,Ar,"(","("),de(oe,qe,Ar,"[","["),de(oe,qe,Ar,"\u27E8","\\langle",!0),de(oe,qe,Ar,"\u2223","\\lvert"),de(oe,qe,Ar,"\u2225","\\lVert"),de(oe,qe,gt,")",")"),de(oe,qe,gt,"]","]"),de(oe,qe,gt,"?","?"),de(oe,qe,gt,"!","!"),de(oe,qe,gt,"\u27E9","\\rangle",!0),de(oe,qe,gt,"\u2223","\\rvert"),de(oe,qe,gt,"\u2225","\\rVert"),de(oe,qe,qt,"=","="),de(oe,qe,qt,"<","<"),de(oe,qe,qt,">",">"),de(oe,qe,qt,":",":"),de(oe,qe,qt,"\u2248","\\approx",!0),de(oe,qe,qt,"\u2245","\\cong",!0),de(oe,qe,qt,"\u2265","\\ge"),de(oe,qe,qt,"\u2265","\\geq",!0),de(oe,qe,qt,"\u2190","\\gets"),de(oe,qe,qt,">","\\gt"),de(oe,qe,qt,"\u2208","\\in",!0),de(oe,qe,qt,"\uE020","\\@not"),de(oe,qe,qt,"\u2282","\\subset",!0),de(oe,qe,qt,"\u2283","\\supset",!0),de(oe,qe,qt,"\u2286","\\subseteq",!0),de(oe,qe,qt,"\u2287","\\supseteq",!0),de(oe,pe,qt,"\u2288","\\nsubseteq",!0),de(oe,pe,qt,"\u2289","\\nsupseteq",!0),de(oe,qe,qt,"\u22A8","\\models"),de(oe,qe,qt,"\u2190","\\leftarrow",!0),de(oe,qe,qt,"\u2264","\\le"),de(oe,qe,qt,"\u2264","\\leq",!0),de(oe,qe,qt,"<","\\lt"),de(oe,qe,qt,"\u2192","\\rightarrow",!0),de(oe,qe,qt,"\u2192","\\to"),de(oe,pe,qt,"\u2271","\\ngeq",!0),de(oe,pe,qt,"\u2270","\\nleq",!0),de(oe,qe,ar,"\xA0","\\ "),de(oe,qe,ar,"\xA0","~"),de(oe,qe,ar,"\xA0","\\space"),de(oe,qe,ar,"\xA0","\\nobreakspace"),de(lt,qe,ar,"\xA0","\\ "),de(lt,qe,ar,"\xA0","~"),de(lt,qe,ar,"\xA0","\\space"),de(lt,qe,ar,"\xA0","\\nobreakspace"),de(oe,qe,ar,null,"\\nobreak"),de(oe,qe,ar,null,"\\allowbreak"),de(oe,qe,xr,",",","),de(oe,qe,xr,";",";"),de(oe,pe,hr,"\u22BC","\\barwedge",!0),de(oe,pe,hr,"\u22BB","\\veebar",!0),de(oe,qe,hr,"\u2299","\\odot",!0),de(oe,qe,hr,"\u2295","\\oplus",!0),de(oe,qe,hr,"\u2297","\\otimes",!0),de(oe,qe,Et,"\u2202","\\partial",!0),de(oe,qe,hr,"\u2298","\\oslash",!0),de(oe,pe,hr,"\u229A","\\circledcirc",!0),de(oe,pe,hr,"\u22A1","\\boxdot",!0),de(oe,qe,hr,"\u25B3","\\bigtriangleup"),de(oe,qe,hr,"\u25BD","\\bigtriangledown"),de(oe,qe,hr,"\u2020","\\dagger"),de(oe,qe,hr,"\u22C4","\\diamond"),de(oe,qe,hr,"\u22C6","\\star"),de(oe,qe,hr,"\u25C3","\\triangleleft"),de(oe,qe,hr,"\u25B9","\\triangleright"),de(oe,qe,Ar,"{","\\{"),de(lt,qe,Et,"{","\\{"),de(lt,qe,Et,"{","\\textbraceleft"),de(oe,qe,gt,"}","\\}"),de(lt,qe,Et,"}","\\}"),de(lt,qe,Et,"}","\\textbraceright"),de(oe,qe,Ar,"{","\\lbrace"),de(oe,qe,gt,"}","\\rbrace"),de(oe,qe,Ar,"[","\\lbrack"),de(lt,qe,Et,"[","\\lbrack"),de(oe,qe,gt,"]","\\rbrack"),de(lt,qe,Et,"]","\\rbrack"),de(oe,qe,Ar,"(","\\lparen"),de(oe,qe,gt,")","\\rparen"),de(lt,qe,Et,"<","\\textless"),de(lt,qe,Et,">","\\textgreater"),de(oe,qe,Ar,"\u230A","\\lfloor",!0),de(oe,qe,gt,"\u230B","\\rfloor",!0),de(oe,qe,Ar,"\u2308","\\lceil",!0),de(oe,qe,gt,"\u2309","\\rceil",!0),de(oe,qe,Et,"\\","\\backslash"),de(oe,qe,Et,"\u2223","|"),de(oe,qe,Et,"\u2223","\\vert"),de(lt,qe,Et,"|","\\textbar"),de(oe,qe,Et,"\u2225","\\|"),de(oe,qe,Et,"\u2225","\\Vert"),de(lt,qe,Et,"\u2225","\\textbardbl"),de(lt,qe,Et,"~","\\textasciitilde"),de(lt,qe,Et,"\\","\\textbackslash"),de(lt,qe,Et,"^","\\textasciicircum"),de(oe,qe,qt,"\u2191","\\uparrow",!0),de(oe,qe,qt,"\u21D1","\\Uparrow",!0),de(oe,qe,qt,"\u2193","\\downarrow",!0),de(oe,qe,qt,"\u21D3","\\Downarrow",!0),de(oe,qe,qt,"\u2195","\\updownarrow",!0),de(oe,qe,qt,"\u21D5","\\Updownarrow",!0),de(oe,qe,cn,"\u2210","\\coprod"),de(oe,qe,cn,"\u22C1","\\bigvee"),de(oe,qe,cn,"\u22C0","\\bigwedge"),de(oe,qe,cn,"\u2A04","\\biguplus"),de(oe,qe,cn,"\u22C2","\\bigcap"),de(oe,qe,cn,"\u22C3","\\bigcup"),de(oe,qe,cn,"\u222B","\\int"),de(oe,qe,cn,"\u222B","\\intop"),de(oe,qe,cn,"\u222C","\\iint"),de(oe,qe,cn,"\u222D","\\iiint"),de(oe,qe,cn,"\u220F","\\prod"),de(oe,qe,cn,"\u2211","\\sum"),de(oe,qe,cn,"\u2A02","\\bigotimes"),de(oe,qe,cn,"\u2A01","\\bigoplus"),de(oe,qe,cn,"\u2A00","\\bigodot"),de(oe,qe,cn,"\u222E","\\oint"),de(oe,qe,cn,"\u222F","\\oiint"),de(oe,qe,cn,"\u2230","\\oiiint"),de(oe,qe,cn,"\u2A06","\\bigsqcup"),de(oe,qe,cn,"\u222B","\\smallint"),de(lt,qe,nr,"\u2026","\\textellipsis"),de(oe,qe,nr,"\u2026","\\mathellipsis"),de(lt,qe,nr,"\u2026","\\ldots",!0),de(oe,qe,nr,"\u2026","\\ldots",!0),de(oe,qe,nr,"\u22EF","\\@cdots",!0),de(oe,qe,nr,"\u22F1","\\ddots",!0),de(oe,qe,Et,"\u22EE","\\varvdots"),de(oe,qe,Kt,"\u02CA","\\acute"),de(oe,qe,Kt,"\u02CB","\\grave"),de(oe,qe,Kt,"\xA8","\\ddot"),de(oe,qe,Kt,"~","\\tilde"),de(oe,qe,Kt,"\u02C9","\\bar"),de(oe,qe,Kt,"\u02D8","\\breve"),de(oe,qe,Kt,"\u02C7","\\check"),de(oe,qe,Kt,"^","\\hat"),de(oe,qe,Kt,"\u20D7","\\vec"),de(oe,qe,Kt,"\u02D9","\\dot"),de(oe,qe,Kt,"\u02DA","\\mathring"),de(oe,qe,mr,"\u0131","\\imath",!0),de(oe,qe,mr,"\u0237","\\jmath",!0),de(lt,qe,Et,"\u0131","\\i",!0),de(lt,qe,Et,"\u0237","\\j",!0),de(lt,qe,Et,"\xDF","\\ss",!0),de(lt,qe,Et,"\xE6","\\ae",!0),de(lt,qe,Et,"\xE6","\\ae",!0),de(lt,qe,Et,"\u0153","\\oe",!0),de(lt,qe,Et,"\xF8","\\o",!0),de(lt,qe,Et,"\xC6","\\AE",!0),de(lt,qe,Et,"\u0152","\\OE",!0),de(lt,qe,Et,"\xD8","\\O",!0),de(lt,qe,Kt,"\u02CA","\\'"),de(lt,qe,Kt,"\u02CB","\\`"),de(lt,qe,Kt,"\u02C6","\\^"),de(lt,qe,Kt,"\u02DC","\\~"),de(lt,qe,Kt,"\u02C9","\\="),de(lt,qe,Kt,"\u02D8","\\u"),de(lt,qe,Kt,"\u02D9","\\."),de(lt,qe,Kt,"\u02DA","\\r"),de(lt,qe,Kt,"\u02C7","\\v"),de(lt,qe,Kt,"\xA8",'\\"'),de(lt,qe,Kt,"\u02DD","\\H"),de(lt,qe,Kt,"\u25EF","\\textcircled");var en={"--":!0,"---":!0,"``":!0,"''":!0};de(lt,qe,Et,"\u2013","--"),de(lt,qe,Et,"\u2013","\\textendash"),de(lt,qe,Et,"\u2014","---"),de(lt,qe,Et,"\u2014","\\textemdash"),de(lt,qe,Et,"\u2018","`"),de(lt,qe,Et,"\u2018","\\textquoteleft"),de(lt,qe,Et,"\u2019","'"),de(lt,qe,Et,"\u2019","\\textquoteright"),de(lt,qe,Et,"\u201C","``"),de(lt,qe,Et,"\u201C","\\textquotedblleft"),de(lt,qe,Et,"\u201D","''"),de(lt,qe,Et,"\u201D","\\textquotedblright"),de(oe,qe,Et,"\xB0","\\degree",!0),de(lt,qe,Et,"\xB0","\\degree"),de(lt,qe,Et,"\xB0","\\textdegree",!0),de(oe,qe,mr,"\xA3","\\pounds"),de(oe,qe,mr,"\xA3","\\mathsterling",!0),de(lt,qe,mr,"\xA3","\\pounds"),de(lt,qe,mr,"\xA3","\\textsterling",!0),de(oe,pe,Et,"\u2720","\\maltese"),de(lt,pe,Et,"\u2720","\\maltese"),de(lt,qe,ar,"\xA0","\\ "),de(lt,qe,ar,"\xA0"," "),de(lt,qe,ar,"\xA0","~");for(var Mn='0123456789/@."',Yn=0;Yn<Mn.length;Yn++){var ci=Mn.charAt(Yn);de(oe,qe,Et,ci,ci)}for(var Vi='0123456789!@*()-=+[]<>|";:?/.,',jn=0;jn<Vi.length;jn++){var Qn=Vi.charAt(jn);de(lt,qe,Et,Qn,Qn)}for(var $t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",Ot=0;Ot<$t.length;Ot++){var ke=$t.charAt(Ot);de(oe,qe,mr,ke,ke),de(lt,qe,Et,ke,ke)}de(oe,pe,Et,"C","\u2102"),de(lt,pe,Et,"C","\u2102"),de(oe,pe,Et,"H","\u210D"),de(lt,pe,Et,"H","\u210D"),de(oe,pe,Et,"N","\u2115"),de(lt,pe,Et,"N","\u2115"),de(oe,pe,Et,"P","\u2119"),de(lt,pe,Et,"P","\u2119"),de(oe,pe,Et,"Q","\u211A"),de(lt,pe,Et,"Q","\u211A"),de(oe,pe,Et,"R","\u211D"),de(lt,pe,Et,"R","\u211D"),de(oe,pe,Et,"Z","\u2124"),de(lt,pe,Et,"Z","\u2124"),de(oe,qe,mr,"h","\u210E"),de(lt,qe,mr,"h","\u210E");for(var Me="",Be=0;Be<$t.length;Be++){var at=$t.charAt(Be);Me=String.fromCharCode(55349,56320+Be),de(oe,qe,mr,at,Me),de(lt,qe,Et,at,Me),Me=String.fromCharCode(55349,56372+Be),de(oe,qe,mr,at,Me),de(lt,qe,Et,at,Me),Me=String.fromCharCode(55349,56424+Be),de(oe,qe,mr,at,Me),de(lt,qe,Et,at,Me),Me=String.fromCharCode(55349,56580+Be),de(oe,qe,mr,at,Me),de(lt,qe,Et,at,Me),Me=String.fromCharCode(55349,56736+Be),de(oe,qe,mr,at,Me),de(lt,qe,Et,at,Me),Me=String.fromCharCode(55349,56788+Be),de(oe,qe,mr,at,Me),de(lt,qe,Et,at,Me),Me=String.fromCharCode(55349,56840+Be),de(oe,qe,mr,at,Me),de(lt,qe,Et,at,Me),Me=String.fromCharCode(55349,56944+Be),de(oe,qe,mr,at,Me),de(lt,qe,Et,at,Me),Be<26&&(Me=String.fromCharCode(55349,56632+Be),de(oe,qe,mr,at,Me),de(lt,qe,Et,at,Me),Me=String.fromCharCode(55349,56476+Be),de(oe,qe,mr,at,Me),de(lt,qe,Et,at,Me))}Me=String.fromCharCode(55349,56668),de(oe,qe,mr,"k",Me),de(lt,qe,Et,"k",Me);for(var At=0;At<10;At++){var Ct=At.toString();Me=String.fromCharCode(55349,57294+At),de(oe,qe,mr,Ct,Me),de(lt,qe,Et,Ct,Me),Me=String.fromCharCode(55349,57314+At),de(oe,qe,mr,Ct,Me),de(lt,qe,Et,Ct,Me),Me=String.fromCharCode(55349,57324+At),de(oe,qe,mr,Ct,Me),de(lt,qe,Et,Ct,Me),Me=String.fromCharCode(55349,57334+At),de(oe,qe,mr,Ct,Me),de(lt,qe,Et,Ct,Me)}for(var Yt="\xC7\xD0\xDE\xE7\xFE",Pr=0;Pr<Yt.length;Pr++){var qr=Yt.charAt(Pr);de(oe,qe,mr,qr,qr),de(lt,qe,Et,qr,qr)}de(lt,qe,Et,"\xF0","\xF0"),de(lt,qe,Et,"\u2013","\u2013"),de(lt,qe,Et,"\u2014","\u2014"),de(lt,qe,Et,"\u2018","\u2018"),de(lt,qe,Et,"\u2019","\u2019"),de(lt,qe,Et,"\u201C","\u201C"),de(lt,qe,Et,"\u201D","\u201D");var An=[["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"]],Gt=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],vt=function(ce,Ee){var Le=ce.charCodeAt(0),Qe=ce.charCodeAt(1),Rt=(Le-55296)*1024+(Qe-56320)+65536,lr=Ee==="math"?0:1;if(119808<=Rt&&Rt<120484){var Qr=Math.floor((Rt-119808)/26);return[An[Qr][2],An[Qr][lr]]}else if(120782<=Rt&&Rt<=120831){var pn=Math.floor((Rt-120782)/10);return[Gt[pn][2],Gt[pn][lr]]}else{if(Rt===120485||Rt===120486)return[An[0][2],An[0][lr]];if(120486<Rt&&Rt<120782)return["",""];throw new l("Unsupported character: "+ce)}},bt=[[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]],fr=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Jt=function(ce,Ee){return Ee.size<2?ce:bt[ce-1][Ee.size-1]},Ut=function(){function Nt(Ee){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=Ee.style,this.color=Ee.color,this.size=Ee.size||Nt.BASESIZE,this.textSize=Ee.textSize||this.size,this.phantom=!!Ee.phantom,this.font=Ee.font||"",this.fontFamily=Ee.fontFamily||"",this.fontWeight=Ee.fontWeight||"",this.fontShape=Ee.fontShape||"",this.sizeMultiplier=fr[this.size-1],this.maxSize=Ee.maxSize,this.minRuleThickness=Ee.minRuleThickness,this._fontMetrics=void 0}var ce=Nt.prototype;return ce.extend=function(Le){var Qe={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 Rt in Le)Le.hasOwnProperty(Rt)&&(Qe[Rt]=Le[Rt]);return new Nt(Qe)},ce.havingStyle=function(Le){return this.style===Le?this:this.extend({style:Le,size:Jt(this.textSize,Le)})},ce.havingCrampedStyle=function(){return this.havingStyle(this.style.cramp())},ce.havingSize=function(Le){return this.size===Le&&this.textSize===Le?this:this.extend({style:this.style.text(),size:Le,textSize:Le,sizeMultiplier:fr[Le-1]})},ce.havingBaseStyle=function(Le){Le=Le||this.style.text();var Qe=Jt(Nt.BASESIZE,Le);return this.size===Qe&&this.textSize===Nt.BASESIZE&&this.style===Le?this:this.extend({style:Le,size:Qe})},ce.havingBaseSizing=function(){var Le;switch(this.style.id){case 4:case 5:Le=3;break;case 6:case 7:Le=1;break;default:Le=6}return this.extend({style:this.style.text(),size:Le})},ce.withColor=function(Le){return this.extend({color:Le})},ce.withPhantom=function(){return this.extend({phantom:!0})},ce.withFont=function(Le){return this.extend({font:Le})},ce.withTextFontFamily=function(Le){return this.extend({fontFamily:Le,font:""})},ce.withTextFontWeight=function(Le){return this.extend({fontWeight:Le,font:""})},ce.withTextFontShape=function(Le){return this.extend({fontShape:Le,font:""})},ce.sizingClasses=function(Le){return Le.size!==this.size?["sizing","reset-size"+Le.size,"size"+this.size]:[]},ce.baseSizingClasses=function(){return this.size!==Nt.BASESIZE?["sizing","reset-size"+this.size,"size"+Nt.BASESIZE]:[]},ce.fontMetrics=function(){return this._fontMetrics||(this._fontMetrics=Ht(this.size)),this._fontMetrics},ce.getColor=function(){return this.phantom?"transparent":this.color},Nt}();Ut.BASESIZE=6;var er=Ut,Mt={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},Zt={ex:!0,em:!0,mu:!0},Hr=function(ce){return typeof ce!="string"&&(ce=ce.unit),ce in Mt||ce in Zt||ce==="ex"},Ir=function(ce,Ee){var Le;if(ce.unit in Mt)Le=Mt[ce.unit]/Ee.fontMetrics().ptPerEm/Ee.sizeMultiplier;else if(ce.unit==="mu")Le=Ee.fontMetrics().cssEmPerMu;else{var Qe;if(Ee.style.isTight()?Qe=Ee.havingStyle(Ee.style.text()):Qe=Ee,ce.unit==="ex")Le=Qe.fontMetrics().xHeight;else if(ce.unit==="em")Le=Qe.fontMetrics().quad;else throw new l("Invalid unit: '"+ce.unit+"'");Qe!==Ee&&(Le*=Qe.sizeMultiplier/Ee.sizeMultiplier)}return Math.min(ce.number*Le,Ee.maxSize)},Lr=["\\imath","\u0131","\\jmath","\u0237","\\pounds","\\mathsterling","\\textsterling","\xA3"],dn=function(ce,Ee,Le){return Ke[Le][ce]&&Ke[Le][ce].replace&&(ce=Ke[Le][ce].replace),{value:ce,metrics:et(ce,Ee,Le)}},gn=function(ce,Ee,Le,Qe,Rt){var lr=dn(ce,Ee,Le),Qr=lr.metrics;ce=lr.value;var pn;if(Qr){var In=Qr.italic;(Le==="text"||Qe&&Qe.font==="mathit")&&(In=0),pn=new Ce(ce,Qr.height,Qr.depth,In,Qr.skew,Qr.width,Rt)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+ce+"' in style '"+Ee+"' and mode '"+Le+"'")),pn=new Ce(ce,0,0,0,0,0,Rt);if(Qe){pn.maxFontSize=Qe.sizeMultiplier,Qe.style.isTight()&&pn.classes.push("mtight");var li=Qe.getColor();li&&(pn.style.color=li)}return pn},ri=function(ce,Ee,Le,Qe){return Qe===void 0&&(Qe=[]),Le.font==="boldsymbol"&&dn(ce,"Main-Bold",Ee).metrics?gn(ce,"Main-Bold",Ee,Le,Qe.concat(["mathbf"])):ce==="\\"||Ke[Ee][ce].font==="main"?gn(ce,"Main-Regular",Ee,Le,Qe):gn(ce,"AMS-Regular",Ee,Le,Qe.concat(["amsrm"]))},Zn=function(ce,Ee,Le,Qe){return/[0-9]/.test(ce.charAt(0))||v.contains(Lr,ce)?{fontName:"Main-Italic",fontClass:"mathit"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},pi=function(ce,Ee,Le,Qe){return v.contains(Lr,ce)?{fontName:"Main-Italic",fontClass:"mathit"}:/[0-9]/.test(ce.charAt(0))?{fontName:"Caligraphic-Regular",fontClass:"mathcal"}:{fontName:"Math-Italic",fontClass:"mathdefault"}},Ci=function(ce,Ee,Le,Qe){return dn(ce,"Math-BoldItalic",Ee).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},Ni=function(ce,Ee,Le){var Qe=ce.mode,Rt=ce.text,lr=["mord"],Qr=Qe==="math"||Qe==="text"&&Ee.font,pn=Qr?Ee.font:Ee.fontFamily;if(Rt.charCodeAt(0)===55349){var In=vt(Rt,Qe),li=In[0],bi=In[1];return gn(Rt,li,Qe,Ee,lr.concat(bi))}else if(pn){var Ai,Yi;if(pn==="boldsymbol"||pn==="mathnormal"){var ua=pn==="boldsymbol"?Ci(Rt,Qe,Ee,lr):pi(Rt,Qe,Ee,lr);Ai=ua.fontName,Yi=[ua.fontClass]}else v.contains(Lr,Rt)?(Ai="Main-Italic",Yi=["mathit"]):Qr?(Ai=fn[pn].fontName,Yi=[pn]):(Ai=Vr(pn,Ee.fontWeight,Ee.fontShape),Yi=[pn,Ee.fontWeight,Ee.fontShape]);if(dn(Rt,Ai,Qe).metrics)return gn(Rt,Ai,Qe,Ee,lr.concat(Yi));if(en.hasOwnProperty(Rt)&&Ai.substr(0,10)==="Typewriter"){for(var Va=[],ro=0;ro<Rt.length;ro++)Va.push(gn(Rt[ro],Ai,Qe,Ee,lr.concat(Yi)));return ot(Va)}}if(Le==="mathord"){var So=Zn(Rt,Qe,Ee,lr);return gn(Rt,So.fontName,Qe,Ee,lr.concat([So.fontClass]))}else if(Le==="textord"){var Ro=Ke[Qe][Rt]&&Ke[Qe][Rt].font;if(Ro==="ams"){var jo=Vr("amsrm",Ee.fontWeight,Ee.fontShape);return gn(Rt,jo,Qe,Ee,lr.concat("amsrm",Ee.fontWeight,Ee.fontShape))}else if(Ro==="main"||!Ro){var Cs=Vr("textrm",Ee.fontWeight,Ee.fontShape);return gn(Rt,Cs,Qe,Ee,lr.concat(Ee.fontWeight,Ee.fontShape))}else{var vs=Vr(Ro,Ee.fontWeight,Ee.fontShape);return gn(Rt,vs,Qe,Ee,lr.concat(vs,Ee.fontWeight,Ee.fontShape))}}else throw new Error("unexpected type: "+Le+" in makeOrd")},zi=function(ce,Ee){if(ue(ce.classes)!==ue(Ee.classes)||ce.skew!==Ee.skew||ce.maxFontSize!==Ee.maxFontSize)return!1;for(var Le in ce.style)if(ce.style.hasOwnProperty(Le)&&ce.style[Le]!==Ee.style[Le])return!1;for(var Qe in Ee.style)if(Ee.style.hasOwnProperty(Qe)&&ce.style[Qe]!==Ee.style[Qe])return!1;return!0},it=function(ce){for(var Ee=0;Ee<ce.length-1;Ee++){var Le=ce[Ee],Qe=ce[Ee+1];Le instanceof Ce&&Qe instanceof Ce&&zi(Le,Qe)&&(Le.text+=Qe.text,Le.height=Math.max(Le.height,Qe.height),Le.depth=Math.max(Le.depth,Qe.depth),Le.italic=Qe.italic,ce.splice(Ee+1,1),Ee--)}return ce},Ne=function(ce){for(var Ee=0,Le=0,Qe=0,Rt=0;Rt<ce.children.length;Rt++){var lr=ce.children[Rt];lr.height>Ee&&(Ee=lr.height),lr.depth>Le&&(Le=lr.depth),lr.maxFontSize>Qe&&(Qe=lr.maxFontSize)}ce.height=Ee,ce.depth=Le,ce.maxFontSize=Qe},He=function(ce,Ee,Le,Qe){var Rt=new Y(ce,Ee,Le,Qe);return Ne(Rt),Rt},Ge=function(ce,Ee,Le,Qe){return new Y(ce,Ee,Le,Qe)},nt=function(ce,Ee,Le){var Qe=He([ce],[],Ee);return Qe.height=Math.max(Le||Ee.fontMetrics().defaultRuleThickness,Ee.minRuleThickness),Qe.style.borderBottomWidth=Qe.height+"em",Qe.maxFontSize=1,Qe},$e=function(ce,Ee,Le,Qe){var Rt=new ee(ce,Ee,Le,Qe);return Ne(Rt),Rt},ot=function(ce){var Ee=new Ue(ce);return Ne(Ee),Ee},Pt=function(ce,Ee){return ce instanceof Ue?He([],[ce],Ee):ce},xt=function(ce){if(ce.positionType==="individualShift"){for(var Ee=ce.children,Le=[Ee[0]],Qe=-Ee[0].shift-Ee[0].elem.depth,Rt=Qe,lr=1;lr<Ee.length;lr++){var Qr=-Ee[lr].shift-Rt-Ee[lr].elem.depth,pn=Qr-(Ee[lr-1].elem.height+Ee[lr-1].elem.depth);Rt=Rt+Qr,Le.push({type:"kern",size:pn}),Le.push(Ee[lr])}return{children:Le,depth:Qe}}var In;if(ce.positionType==="top"){for(var li=ce.positionData,bi=0;bi<ce.children.length;bi++){var Ai=ce.children[bi];li-=Ai.type==="kern"?Ai.size:Ai.elem.height+Ai.elem.depth}In=li}else if(ce.positionType==="bottom")In=-ce.positionData;else{var Yi=ce.children[0];if(Yi.type!=="elem")throw new Error('First child must have type "elem".');if(ce.positionType==="shift")In=-Yi.elem.depth-ce.positionData;else if(ce.positionType==="firstBaseline")In=-Yi.elem.depth;else throw new Error("Invalid positionType "+ce.positionType+".")}return{children:ce.children,depth:In}},rr=function(ce,Ee){for(var Le=xt(ce),Qe=Le.children,Rt=Le.depth,lr=0,Qr=0;Qr<Qe.length;Qr++){var pn=Qe[Qr];if(pn.type==="elem"){var In=pn.elem;lr=Math.max(lr,In.maxFontSize,In.height)}}lr+=2;var li=He(["pstrut"],[]);li.style.height=lr+"em";for(var bi=[],Ai=Rt,Yi=Rt,ua=Rt,Va=0;Va<Qe.length;Va++){var ro=Qe[Va];if(ro.type==="kern")ua+=ro.size;else{var So=ro.elem,Ro=ro.wrapperClasses||[],jo=ro.wrapperStyle||{},Cs=He(Ro,[li,So],void 0,jo);Cs.style.top=-lr-ua-So.depth+"em",ro.marginLeft&&(Cs.style.marginLeft=ro.marginLeft),ro.marginRight&&(Cs.style.marginRight=ro.marginRight),bi.push(Cs),ua+=So.height+So.depth}Ai=Math.min(Ai,ua),Yi=Math.max(Yi,ua)}var vs=He(["vlist"],bi);vs.style.height=Yi+"em";var os;if(Ai<0){var Fo=He([],[]),yo=He(["vlist"],[Fo]);yo.style.height=-Ai+"em";var As=He(["vlist-s"],[new Ce("\u200B")]);os=[He(["vlist-r"],[vs,As]),He(["vlist-r"],[yo])]}else os=[He(["vlist-r"],[vs])];var $s=He(["vlist-t"],os);return os.length===2&&$s.classes.push("vlist-t2"),$s.height=Yi,$s.depth=-Ai,$s},Fr=function(ce,Ee){var Le=He(["mspace"],[],Ee),Qe=Ir(ce,Ee);return Le.style.marginRight=Qe+"em",Le},Vr=function(ce,Ee,Le){var Qe="";switch(ce){case"amsrm":Qe="AMS";break;case"textrm":Qe="Main";break;case"textsf":Qe="SansSerif";break;case"texttt":Qe="Typewriter";break;default:Qe=ce}var Rt;return Ee==="textbf"&&Le==="textit"?Rt="BoldItalic":Ee==="textbf"?Rt="Bold":Ee==="textit"?Rt="Italic":Rt="Regular",Qe+"-"+Rt},fn={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"}},gr={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Gn=function(ce,Ee){var Le=gr[ce],Qe=Le[0],Rt=Le[1],lr=Le[2],Qr=new he(Qe),pn=new Te([Qr],{width:Rt+"em",height:lr+"em",style:"width:"+Rt+"em",viewBox:"0 0 "+1e3*Rt+" "+1e3*lr,preserveAspectRatio:"xMinYMin"}),In=Ge(["overlay"],[pn],Ee);return In.height=lr,In.style.height=lr+"em",In.style.width=Rt+"em",In},Mr={fontMap:fn,makeSymbol:gn,mathsym:ri,makeSpan:He,makeSvgSpan:Ge,makeLineSpan:nt,makeAnchor:$e,makeFragment:ot,wrapFragment:Pt,makeVList:rr,makeOrd:Ni,makeGlue:Fr,staticSvg:Gn,svgData:gr,tryCombineChars:it};function Rn(Nt,ce){var Ee=bn(Nt,ce);if(!Ee)throw new Error("Expected node of type "+ce+", but got "+(Nt?"node of type "+Nt.type:String(Nt)));return Ee}function bn(Nt,ce){return Nt&&Nt.type===ce?Nt:null}function rn(Nt,ce){var Ee=ei(Nt,ce);if(!Ee)throw new Error('Expected node of type "atom" and family "'+ce+'", but got '+(Nt?Nt.type==="atom"?"atom of family "+Nt.family:"node of type "+Nt.type:String(Nt)));return Ee}function ei(Nt,ce){return Nt&&Nt.type==="atom"&&Nt.family===ce?Nt:null}function fi(Nt){var ce=Mi(Nt);if(!ce)throw new Error("Expected node of symbol group type, but got "+(Nt?"node of type "+Nt.type:String(Nt)));return ce}function Mi(Nt){return Nt&&(Nt.type==="atom"||Tt.hasOwnProperty(Nt.type))?Nt:null}var $r={number:3,unit:"mu"},En={number:4,unit:"mu"},Hn={number:5,unit:"mu"},zt={mord:{mop:$r,mbin:En,mrel:Hn,minner:$r},mop:{mord:$r,mop:$r,mrel:Hn,minner:$r},mbin:{mord:En,mop:En,mopen:En,minner:En},mrel:{mord:Hn,mop:Hn,mopen:Hn,minner:Hn},mopen:{},mclose:{mop:$r,mbin:En,mrel:Hn,minner:$r},mpunct:{mord:$r,mop:$r,mrel:Hn,mopen:$r,mclose:$r,mpunct:$r,minner:$r},minner:{mord:$r,mop:$r,mbin:En,mrel:Hn,mopen:$r,mpunct:$r,minner:$r}},_t={mord:{mop:$r},mop:{mord:$r,mop:$r},mbin:{},mrel:{},mopen:{},mclose:{mop:$r},mpunct:{},minner:{mop:$r}},Ft={},Wt={},Vt={};function Lt(Nt){for(var ce=Nt.type,Ee=Nt.names,Le=Nt.props,Qe=Nt.handler,Rt=Nt.htmlBuilder,lr=Nt.mathmlBuilder,Qr={type:ce,numArgs:Le.numArgs,argTypes:Le.argTypes,greediness:Le.greediness===void 0?1:Le.greediness,allowedInText:!!Le.allowedInText,allowedInMath:Le.allowedInMath===void 0?!0:Le.allowedInMath,numOptionalArgs:Le.numOptionalArgs||0,infix:!!Le.infix,handler:Qe},pn=0;pn<Ee.length;++pn)Ft[Ee[pn]]=Qr;ce&&(Rt&&(Wt[ce]=Rt),lr&&(Vt[ce]=lr))}function cr(Nt){var ce=Nt.type,Ee=Nt.htmlBuilder,Le=Nt.mathmlBuilder;Lt({type:ce,names:[],props:{numArgs:0},handler:function(){throw new Error("Should never be called.")},htmlBuilder:Ee,mathmlBuilder:Le})}var vr=function(ce){var Ee=bn(ce,"ordgroup");return Ee?Ee.body:[ce]},yr=Mr.makeSpan,Dr=["leftmost","mbin","mopen","mrel","mop","mpunct"],Kn=["rightmost","mrel","mclose","mpunct"],Dn={display:U.DISPLAY,text:U.TEXT,script:U.SCRIPT,scriptscript:U.SCRIPTSCRIPT},di={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},mn=function(ce,Ee,Le,Qe){Qe===void 0&&(Qe=[null,null]);for(var Rt=[],lr=0;lr<ce.length;lr++){var Qr=xi(ce[lr],Ee);if(Qr instanceof Ue){var pn=Qr.children;Rt.push.apply(Rt,pn)}else Rt.push(Qr)}if(!Le)return Rt;var In=Ee;if(ce.length===1){var li=bn(ce[0],"sizing")||bn(ce[0],"styling");li&&(li.type==="sizing"?In=Ee.havingSize(li.size):li.type==="styling"&&(In=Ee.havingStyle(Dn[li.style])))}var bi=yr([Qe[0]||"leftmost"],[],Ee),Ai=yr([Qe[1]||"rightmost"],[],Ee);return Ur(Rt,function(Yi,ua){var Va=ua.classes[0],ro=Yi.classes[0];Va==="mbin"&&v.contains(Kn,ro)?ua.classes[0]="mord":ro==="mbin"&&v.contains(Dr,Va)&&(Yi.classes[0]="mord")},{node:bi},Ai),Ur(Rt,function(Yi,ua){var Va=qn(ua),ro=qn(Yi),So=Va&&ro?Yi.hasClass("mtight")?_t[Va][ro]:zt[Va][ro]:null;if(So)return Mr.makeGlue(So,In)},{node:bi},Ai),Rt},Ur=function Nt(ce,Ee,Le,Qe){Qe&&ce.push(Qe);for(var Rt=0;Rt<ce.length;Rt++){var lr=ce[Rt],Qr=On(lr);if(Qr){Nt(Qr.children,Ee,Le);continue}if(lr.classes[0]==="mspace")continue;var pn=Ee(lr,Le.node);pn&&(Le.insertAfter?Le.insertAfter(pn):(ce.unshift(pn),Rt++)),Le.node=lr,Le.insertAfter=function(In){return function(li){ce.splice(In+1,0,li),Rt++}}(Rt)}Qe&&ce.pop()},On=function(ce){return ce instanceof Ue||ce instanceof ee?ce:null},zn=function Nt(ce,Ee){var Le=On(ce);if(Le){var Qe=Le.children;if(Qe.length){if(Ee==="right")return Nt(Qe[Qe.length-1],"right");if(Ee==="left")return Nt(Qe[0],"left")}}return ce},qn=function(ce,Ee){return ce?(Ee&&(ce=zn(ce,Ee)),di[ce.classes[0]]||null):null},oi=function(ce,Ee){var Le=["nulldelimiter"].concat(ce.baseSizingClasses());return yr(Ee.concat(Le))},xi=function(ce,Ee,Le){if(!ce)return yr();if(Wt[ce.type]){var Qe=Wt[ce.type](ce,Ee);if(Le&&Ee.size!==Le.size){Qe=yr(Ee.sizingClasses(Le),[Qe],Ee);var Rt=Ee.sizeMultiplier/Le.sizeMultiplier;Qe.height*=Rt,Qe.depth*=Rt}return Qe}else throw new l("Got group of unknown type: '"+ce.type+"'")};function Di(Nt,ce){var Ee=yr(["base"],Nt,ce),Le=yr(["strut"]);return Le.style.height=Ee.height+Ee.depth+"em",Le.style.verticalAlign=-Ee.depth+"em",Ee.children.unshift(Le),Ee}function Li(Nt,ce){var Ee=null;Nt.length===1&&Nt[0].type==="tag"&&(Ee=Nt[0].tag,Nt=Nt[0].body);for(var Le=mn(Nt,ce,!0),Qe=[],Rt=[],lr=0;lr<Le.length;lr++)if(Rt.push(Le[lr]),Le[lr].hasClass("mbin")||Le[lr].hasClass("mrel")||Le[lr].hasClass("allowbreak")){for(var Qr=!1;lr<Le.length-1&&Le[lr+1].hasClass("mspace")&&!Le[lr+1].hasClass("newline");)lr++,Rt.push(Le[lr]),Le[lr].hasClass("nobreak")&&(Qr=!0);Qr||(Qe.push(Di(Rt,ce)),Rt=[])}else Le[lr].hasClass("newline")&&(Rt.pop(),Rt.length>0&&(Qe.push(Di(Rt,ce)),Rt=[]),Qe.push(Le[lr]));Rt.length>0&&Qe.push(Di(Rt,ce));var pn;Ee&&(pn=Di(mn(Ee,ce,!0)),pn.classes=["tag"],Qe.push(pn));var In=yr(["katex-html"],Qe);if(In.setAttribute("aria-hidden","true"),pn){var li=pn.children[0];li.style.height=In.height+In.depth+"em",li.style.verticalAlign=-In.depth+"em"}return In}function aa(Nt){return new Ue(Nt)}var ma=function(){function Nt(Ee,Le){this.type=void 0,this.attributes=void 0,this.children=void 0,this.type=Ee,this.attributes={},this.children=Le||[]}var ce=Nt.prototype;return ce.setAttribute=function(Le,Qe){this.attributes[Le]=Qe},ce.getAttribute=function(Le){return this.attributes[Le]},ce.toNode=function(){var Le=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var Qe in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Qe)&&Le.setAttribute(Qe,this.attributes[Qe]);for(var Rt=0;Rt<this.children.length;Rt++)Le.appendChild(this.children[Rt].toNode());return Le},ce.toMarkup=function(){var Le="<"+this.type;for(var Qe in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,Qe)&&(Le+=" "+Qe+'="',Le+=v.escape(this.attributes[Qe]),Le+='"');Le+=">";for(var Rt=0;Rt<this.children.length;Rt++)Le+=this.children[Rt].toMarkup();return Le+="</"+this.type+">",Le},ce.toText=function(){return this.children.map(function(Le){return Le.toText()}).join("")},Nt}(),na=function(){function Nt(Ee){this.text=void 0,this.text=Ee}var ce=Nt.prototype;return ce.toNode=function(){return document.createTextNode(this.text)},ce.toMarkup=function(){return v.escape(this.toText())},ce.toText=function(){return this.text},Nt}(),Aa=function(){function Nt(Ee){this.width=void 0,this.character=void 0,this.width=Ee,Ee>=.05555&&Ee<=.05556?this.character="\u200A":Ee>=.1666&&Ee<=.1667?this.character="\u2009":Ee>=.2222&&Ee<=.2223?this.character="\u2005":Ee>=.2777&&Ee<=.2778?this.character="\u2005\u200A":Ee>=-.05556&&Ee<=-.05555?this.character="\u200A\u2063":Ee>=-.1667&&Ee<=-.1666?this.character="\u2009\u2063":Ee>=-.2223&&Ee<=-.2222?this.character="\u205F\u2063":Ee>=-.2778&&Ee<=-.2777?this.character="\u2005\u2063":this.character=null}var ce=Nt.prototype;return ce.toNode=function(){if(this.character)return document.createTextNode(this.character);var Le=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return Le.setAttribute("width",this.width+"em"),Le},ce.toMarkup=function(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+this.width+'em"/>'},ce.toText=function(){return this.character?this.character:" "},Nt}(),yi={MathNode:ma,TextNode:na,SpaceNode:Aa,newDocumentFragment:aa},Ln=function(ce,Ee,Le){return Ke[Ee][ce]&&Ke[Ee][ce].replace&&ce.charCodeAt(0)!==55349&&!(en.hasOwnProperty(ce)&&Le&&(Le.fontFamily&&Le.fontFamily.substr(4,2)==="tt"||Le.font&&Le.font.substr(4,2)==="tt"))&&(ce=Ke[Ee][ce].replace),new yi.TextNode(ce)},ji=function(ce){return ce.length===1?ce[0]:new yi.MathNode("mrow",ce)},ha=function(ce,Ee){if(Ee.fontFamily==="texttt")return"monospace";if(Ee.fontFamily==="textsf")return Ee.fontShape==="textit"&&Ee.fontWeight==="textbf"?"sans-serif-bold-italic":Ee.fontShape==="textit"?"sans-serif-italic":Ee.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(Ee.fontShape==="textit"&&Ee.fontWeight==="textbf")return"bold-italic";if(Ee.fontShape==="textit")return"italic";if(Ee.fontWeight==="textbf")return"bold";var Le=Ee.font;if(!Le||Le==="mathnormal")return null;var Qe=ce.mode;if(Le==="mathit")return"italic";if(Le==="boldsymbol")return"bold-italic";if(Le==="mathbf")return"bold";if(Le==="mathbb")return"double-struck";if(Le==="mathfrak")return"fraktur";if(Le==="mathscr"||Le==="mathcal")return"script";if(Le==="mathsf")return"sans-serif";if(Le==="mathtt")return"monospace";var Rt=ce.text;if(v.contains(["\\imath","\\jmath"],Rt))return null;Ke[Qe][Rt]&&Ke[Qe][Rt].replace&&(Rt=Ke[Qe][Rt].replace);var lr=Mr.fontMap[Le].fontName;return et(Rt,lr,Qe)?Mr.fontMap[Le].variant:null},ea=function(ce,Ee,Le){if(ce.length===1){var Qe=kr(ce[0],Ee);return Le&&Qe instanceof ma&&Qe.type==="mo"&&(Qe.setAttribute("lspace","0em"),Qe.setAttribute("rspace","0em")),[Qe]}for(var Rt=[],lr,Qr=0;Qr<ce.length;Qr++){var pn=kr(ce[Qr],Ee);if(pn instanceof ma&&lr instanceof ma){if(pn.type==="mtext"&&lr.type==="mtext"&&pn.getAttribute("mathvariant")===lr.getAttribute("mathvariant")){var In;(In=lr.children).push.apply(In,pn.children);continue}else if(pn.type==="mn"&&lr.type==="mn"){var li;(li=lr.children).push.apply(li,pn.children);continue}else if(pn.type==="mi"&&pn.children.length===1&&lr.type==="mn"){var bi=pn.children[0];if(bi instanceof na&&bi.text==="."){var Ai;(Ai=lr.children).push.apply(Ai,pn.children);continue}}else if(lr.type==="mi"&&lr.children.length===1){var Yi=lr.children[0];if(Yi instanceof na&&Yi.text==="\u0338"&&(pn.type==="mo"||pn.type==="mi"||pn.type==="mn")){var ua=pn.children[0];ua instanceof na&&ua.text.length>0&&(ua.text=ua.text.slice(0,1)+"\u0338"+ua.text.slice(1),Rt.pop())}}}Rt.push(pn),lr=pn}return Rt},ca=function(ce,Ee,Le){return ji(ea(ce,Ee,Le))},kr=function(ce,Ee){if(!ce)return new yi.MathNode("mrow");if(Vt[ce.type]){var Le=Vt[ce.type](ce,Ee);return Le}else throw new l("Got group of unknown type: '"+ce.type+"'")};function Sr(Nt,ce,Ee,Le){var Qe=ea(Nt,Ee),Rt;Qe.length===1&&Qe[0]instanceof ma&&v.contains(["mrow","mtable"],Qe[0].type)?Rt=Qe[0]:Rt=new yi.MathNode("mrow",Qe);var lr=new yi.MathNode("annotation",[new yi.TextNode(ce)]);lr.setAttribute("encoding","application/x-tex");var Qr=new yi.MathNode("semantics",[Rt,lr]),pn=new yi.MathNode("math",[Qr]);pn.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML");var In=Le?"katex":"katex-mathml";return Mr.makeSpan([In],[pn])}var yn=function(ce){return new er({style:ce.displayMode?U.DISPLAY:U.TEXT,maxSize:ce.maxSize,minRuleThickness:ce.minRuleThickness})},dr=function(ce,Ee){if(Ee.displayMode){var Le=["katex-display"];Ee.leqno&&Le.push("leqno"),Ee.fleqn&&Le.push("fleqn"),ce=Mr.makeSpan(Le,[ce])}return ce},Rr=function(ce,Ee,Le){var Qe=yn(Le),Rt;if(Le.output==="mathml")return Sr(ce,Ee,Qe,!0);if(Le.output==="html"){var lr=Li(ce,Qe);Rt=Mr.makeSpan(["katex"],[lr])}else{var Qr=Sr(ce,Ee,Qe,!1),pn=Li(ce,Qe);Rt=Mr.makeSpan(["katex"],[Qr,pn])}return dr(Rt,Le)},Gr=function(ce,Ee,Le){var Qe=yn(Le),Rt=Li(ce,Qe),lr=Mr.makeSpan(["katex"],[Rt]);return dr(lr,Le)},ln=Rr,kn={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"},kt=function(ce){var Ee=new yi.MathNode("mo",[new yi.TextNode(kn[ce.substr(1)])]);return Ee.setAttribute("stretchy","true"),Ee},_r={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]},Nr=function(ce){return ce.type==="ordgroup"?ce.body.length:1},Jr=function(ce,Ee){function Le(){var pn=4e5,In=ce.label.substr(1);if(v.contains(["widehat","widecheck","widetilde","utilde"],In)){var li=ce,bi=Nr(li.base),Ai,Yi,ua;if(bi>5)In==="widehat"||In==="widecheck"?(Ai=420,pn=2364,ua=.42,Yi=In+"4"):(Ai=312,pn=2340,ua=.34,Yi="tilde4");else{var Va=[1,1,2,2,3,3][bi];In==="widehat"||In==="widecheck"?(pn=[0,1062,2364,2364,2364][Va],Ai=[0,239,300,360,420][Va],ua=[0,.24,.3,.3,.36,.42][Va],Yi=In+Va):(pn=[0,600,1033,2339,2340][Va],Ai=[0,260,286,306,312][Va],ua=[0,.26,.286,.3,.306,.34][Va],Yi="tilde"+Va)}var ro=new he(Yi),So=new Te([ro],{width:"100%",height:ua+"em",viewBox:"0 0 "+pn+" "+Ai,preserveAspectRatio:"none"});return{span:Mr.makeSvgSpan([],[So],Ee),minWidth:0,height:ua}}else{var Ro=[],jo=_r[In],Cs=jo[0],vs=jo[1],os=jo[2],Fo=os/1e3,yo=Cs.length,As,$s;if(yo===1){var ys=jo[3];As=["hide-tail"],$s=[ys]}else if(yo===2)As=["halfarrow-left","halfarrow-right"],$s=["xMinYMin","xMaxYMin"];else if(yo===3)As=["brace-left","brace-center","brace-right"],$s=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
`+yo+" children.");for(var Fa=0;Fa<yo;Fa++){var ml=new he(Cs[Fa]),cl=new Te([ml],{width:"400em",height:Fo+"em",viewBox:"0 0 "+pn+" "+os,preserveAspectRatio:$s[Fa]+" slice"}),Ps=Mr.makeSvgSpan([As[Fa]],[cl],Ee);if(yo===1)return{span:Ps,minWidth:vs,height:Fo};Ps.style.height=Fo+"em",Ro.push(Ps)}return{span:Mr.makeSpan(["stretchy"],Ro,Ee),minWidth:vs,height:Fo}}}var Qe=Le(),Rt=Qe.span,lr=Qe.minWidth,Qr=Qe.height;return Rt.height=Qr,Rt.style.height=Qr+"em",lr>0&&(Rt.style.minWidth=lr+"em"),Rt},xn=function(ce,Ee,Le,Qe){var Rt,lr=ce.height+ce.depth+2*Le;if(/fbox|color/.test(Ee)){if(Rt=Mr.makeSpan(["stretchy",Ee],[],Qe),Ee==="fbox"){var Qr=Qe.color&&Qe.getColor();Qr&&(Rt.style.borderColor=Qr)}}else{var pn=[];/^[bx]cancel$/.test(Ee)&&pn.push(new ye({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(Ee)&&pn.push(new ye({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var In=new Te(pn,{width:"100%",height:lr+"em"});Rt=Mr.makeSvgSpan([],[In],Qe)}return Rt.height=lr,Rt.style.height=lr+"em",Rt},Tn={encloseSpan:xn,mathMLnode:kt,svgSpan:Jr},wn=function(ce,Ee){var Le,Qe,Rt=bn(ce,"supsub"),lr;Rt?(Qe=Rn(Rt.base,"accent"),Le=Qe.base,Rt.base=Le,lr=tt(xi(Rt,Ee)),Rt.base=Qe):(Qe=Rn(ce,"accent"),Le=Qe.base);var Qr=xi(Le,Ee.havingCrampedStyle()),pn=Qe.isShifty&&v.isCharacterBox(Le),In=0;if(pn){var li=v.getBaseElem(Le),bi=xi(li,Ee.havingCrampedStyle());In=Ie(bi).skew}var Ai=Math.min(Qr.height,Ee.fontMetrics().xHeight),Yi;if(Qe.isStretchy)Yi=Tn.svgSpan(Qe,Ee),Yi=Mr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Qr},{type:"elem",elem:Yi,wrapperClasses:["svg-align"],wrapperStyle:In>0?{width:"calc(100% - "+2*In+"em)",marginLeft:2*In+"em"}:void 0}]},Ee);else{var ua,Va;Qe.label==="\\vec"?(ua=Mr.staticSvg("vec",Ee),Va=Mr.svgData.vec[1]):(ua=Mr.makeOrd({mode:Qe.mode,text:Qe.label},Ee,"textord"),ua=Ie(ua),ua.italic=0,Va=ua.width),Yi=Mr.makeSpan(["accent-body"],[ua]);var ro=Qe.label==="\\textcircled";ro&&(Yi.classes.push("accent-full"),Ai=Qr.height);var So=In;ro||(So-=Va/2),Yi.style.left=So+"em",Qe.label==="\\textcircled"&&(Yi.style.top=".2em"),Yi=Mr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Qr},{type:"kern",size:-Ai},{type:"elem",elem:Yi}]},Ee)}var Ro=Mr.makeSpan(["mord","accent"],[Yi],Ee);return lr?(lr.children[0]=Ro,lr.height=Math.max(Ro.height,lr.height),lr.classes[0]="mord",lr):Ro},$n=function(ce,Ee){var Le=ce.isStretchy?Tn.mathMLnode(ce.label):new yi.MathNode("mo",[Ln(ce.label,ce.mode)]),Qe=new yi.MathNode("mover",[kr(ce.base,Ee),Le]);return Qe.setAttribute("accent","true"),Qe},Vn=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(function(Nt){return"\\"+Nt}).join("|"));Lt({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,Ee){var Le=Ee[0],Qe=!Vn.test(ce.funcName),Rt=!Qe||ce.funcName==="\\widehat"||ce.funcName==="\\widetilde"||ce.funcName==="\\widecheck";return{type:"accent",mode:ce.parser.mode,label:ce.funcName,isStretchy:Qe,isShifty:Rt,base:Le}},htmlBuilder:wn,mathmlBuilder:$n}),Lt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!1},handler:function(ce,Ee){var Le=Ee[0];return{type:"accent",mode:ce.parser.mode,label:ce.funcName,isStretchy:!1,isShifty:!0,base:Le}},htmlBuilder:wn,mathmlBuilder:$n}),Lt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:function(ce,Ee){var Le=ce.parser,Qe=ce.funcName,Rt=Ee[0];return{type:"accentUnder",mode:Le.mode,label:Qe,base:Rt}},htmlBuilder:function(ce,Ee){var Le=xi(ce.base,Ee),Qe=Tn.svgSpan(ce,Ee),Rt=ce.label==="\\utilde"?.12:0,lr=Mr.makeVList({positionType:"bottom",positionData:Qe.height+Rt,children:[{type:"elem",elem:Qe,wrapperClasses:["svg-align"]},{type:"kern",size:Rt},{type:"elem",elem:Le}]},Ee);return Mr.makeSpan(["mord","accentunder"],[lr],Ee)},mathmlBuilder:function(ce,Ee){var Le=Tn.mathMLnode(ce.label),Qe=new yi.MathNode("munder",[kr(ce.base,Ee),Le]);return Qe.setAttribute("accentunder","true"),Qe}});var mi=function(ce){var Ee=new yi.MathNode("mpadded",ce?[ce]:[]);return Ee.setAttribute("width","+0.6em"),Ee.setAttribute("lspace","0.3em"),Ee};Lt({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,Ee,Le){var Qe=ce.parser,Rt=ce.funcName;return{type:"xArrow",mode:Qe.mode,label:Rt,body:Ee[0],below:Le[0]}},htmlBuilder:function(ce,Ee){var Le=Ee.style,Qe=Ee.havingStyle(Le.sup()),Rt=Mr.wrapFragment(xi(ce.body,Qe,Ee),Ee);Rt.classes.push("x-arrow-pad");var lr;ce.below&&(Qe=Ee.havingStyle(Le.sub()),lr=Mr.wrapFragment(xi(ce.below,Qe,Ee),Ee),lr.classes.push("x-arrow-pad"));var Qr=Tn.svgSpan(ce,Ee),pn=-Ee.fontMetrics().axisHeight+.5*Qr.height,In=-Ee.fontMetrics().axisHeight-.5*Qr.height-.111;(Rt.depth>.25||ce.label==="\\xleftequilibrium")&&(In-=Rt.depth);var li;if(lr){var bi=-Ee.fontMetrics().axisHeight+lr.height+.5*Qr.height+.111;li=Mr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Rt,shift:In},{type:"elem",elem:Qr,shift:pn},{type:"elem",elem:lr,shift:bi}]},Ee)}else li=Mr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Rt,shift:In},{type:"elem",elem:Qr,shift:pn}]},Ee);return li.children[0].children[0].children[1].classes.push("svg-align"),Mr.makeSpan(["mrel","x-arrow"],[li],Ee)},mathmlBuilder:function(ce,Ee){var Le=Tn.mathMLnode(ce.label),Qe;if(ce.body){var Rt=mi(kr(ce.body,Ee));if(ce.below){var lr=mi(kr(ce.below,Ee));Qe=new yi.MathNode("munderover",[Le,lr,Rt])}else Qe=new yi.MathNode("mover",[Le,Rt])}else if(ce.below){var Qr=mi(kr(ce.below,Ee));Qe=new yi.MathNode("munder",[Le,Qr])}else Qe=mi(),Qe=new yi.MathNode("mover",[Le,Qe]);return Qe}}),Lt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler:function(ce,Ee){for(var Le=ce.parser,Qe=Rn(Ee[0],"ordgroup"),Rt=Qe.body,lr="",Qr=0;Qr<Rt.length;Qr++){var pn=Rn(Rt[Qr],"textord");lr+=pn.text}var In=parseInt(lr);if(isNaN(In))throw new l("\\@char has non-numeric argument "+lr);return{type:"textord",mode:Le.mode,text:String.fromCharCode(In)}}});var Ri=function(ce,Ee){var Le=mn(ce.body,Ee.withColor(ce.color),!1);return Mr.makeFragment(Le)},vi=function(ce,Ee){var Le=ea(ce.body,Ee.withColor(ce.color)),Qe=new yi.MathNode("mstyle",Le);return Qe.setAttribute("mathcolor",ce.color),Qe};Lt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","original"]},handler:function(ce,Ee){var Le=ce.parser,Qe=Rn(Ee[0],"color-token").color,Rt=Ee[1];return{type:"color",mode:Le.mode,color:Qe,body:vr(Rt)}},htmlBuilder:Ri,mathmlBuilder:vi}),Lt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,greediness:3,argTypes:["color"]},handler:function(ce,Ee){var Le=ce.parser,Qe=ce.breakOnTokenText,Rt=Rn(Ee[0],"color-token").color;Le.gullet.macros.set("\\current@color",Rt);var lr=Le.parseExpression(!0,Qe);return{type:"color",mode:Le.mode,color:Rt,body:lr}},htmlBuilder:Ri,mathmlBuilder:vi}),Lt({type:"cr",names:["\\cr","\\newline"],props:{numArgs:0,numOptionalArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ce,Ee,Le){var Qe=ce.parser,Rt=ce.funcName,lr=Le[0],Qr=Rt==="\\cr",pn=!1;return Qr||(Qe.settings.displayMode&&Qe.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode")?pn=!1:pn=!0),{type:"cr",mode:Qe.mode,newLine:pn,newRow:Qr,size:lr&&Rn(lr,"size").value}},htmlBuilder:function(ce,Ee){if(ce.newRow)throw new l("\\cr valid only within a tabular/array environment");var Le=Mr.makeSpan(["mspace"],[],Ee);return ce.newLine&&(Le.classes.push("newline"),ce.size&&(Le.style.marginTop=Ir(ce.size,Ee)+"em")),Le},mathmlBuilder:function(ce,Ee){var Le=new yi.MathNode("mspace");return ce.newLine&&(Le.setAttribute("linebreak","newline"),ce.size&&Le.setAttribute("height",Ir(ce.size,Ee)+"em")),Le}});var Bi=function(ce,Ee,Le){var Qe=Ke.math[ce]&&Ke.math[ce].replace,Rt=et(Qe||ce,Ee,Le);if(!Rt)throw new Error("Unsupported symbol "+ce+" and font size "+Ee+".");return Rt},Gi=function(ce,Ee,Le,Qe){var Rt=Le.havingBaseStyle(Ee),lr=Mr.makeSpan(Qe.concat(Rt.sizingClasses(Le)),[ce],Le),Qr=Rt.sizeMultiplier/Le.sizeMultiplier;return lr.height*=Qr,lr.depth*=Qr,lr.maxFontSize=Rt.sizeMultiplier,lr},ta=function(ce,Ee,Le){var Qe=Ee.havingBaseStyle(Le),Rt=(1-Ee.sizeMultiplier/Qe.sizeMultiplier)*Ee.fontMetrics().axisHeight;ce.classes.push("delimcenter"),ce.style.top=Rt+"em",ce.height-=Rt,ce.depth+=Rt},Pi=function(ce,Ee,Le,Qe,Rt,lr){var Qr=Mr.makeSymbol(ce,"Main-Regular",Rt,Qe),pn=Gi(Qr,Ee,Qe,lr);return Le&&ta(pn,Qe,Ee),pn},Ki=function(ce,Ee,Le,Qe){return Mr.makeSymbol(ce,"Size"+Ee+"-Regular",Le,Qe)},Hi=function(ce,Ee,Le,Qe,Rt,lr){var Qr=Ki(ce,Ee,Rt,Qe),pn=Gi(Mr.makeSpan(["delimsizing","size"+Ee],[Qr],Qe),U.TEXT,Qe,lr);return Le&&ta(pn,Qe,U.TEXT),pn},Qi=function(ce,Ee,Le){var Qe;Ee==="Size1-Regular"?Qe="delim-size1":Qe="delim-size4";var Rt=Mr.makeSpan(["delimsizinginner",Qe],[Mr.makeSpan([],[Mr.makeSymbol(ce,Ee,Le)])]);return{type:"elem",elem:Rt}},da={type:"kern",size:-.005},Oa=function(ce,Ee,Le,Qe,Rt,lr){var Qr,pn,In,li;Qr=In=li=ce,pn=null;var bi="Size1-Regular";ce==="\\uparrow"?In=li="\u23D0":ce==="\\Uparrow"?In=li="\u2016":ce==="\\downarrow"?Qr=In="\u23D0":ce==="\\Downarrow"?Qr=In="\u2016":ce==="\\updownarrow"?(Qr="\\uparrow",In="\u23D0",li="\\downarrow"):ce==="\\Updownarrow"?(Qr="\\Uparrow",In="\u2016",li="\\Downarrow"):ce==="["||ce==="\\lbrack"?(Qr="\u23A1",In="\u23A2",li="\u23A3",bi="Size4-Regular"):ce==="]"||ce==="\\rbrack"?(Qr="\u23A4",In="\u23A5",li="\u23A6",bi="Size4-Regular"):ce==="\\lfloor"||ce==="\u230A"?(In=Qr="\u23A2",li="\u23A3",bi="Size4-Regular"):ce==="\\lceil"||ce==="\u2308"?(Qr="\u23A1",In=li="\u23A2",bi="Size4-Regular"):ce==="\\rfloor"||ce==="\u230B"?(In=Qr="\u23A5",li="\u23A6",bi="Size4-Regular"):ce==="\\rceil"||ce==="\u2309"?(Qr="\u23A4",In=li="\u23A5",bi="Size4-Regular"):ce==="("||ce==="\\lparen"?(Qr="\u239B",In="\u239C",li="\u239D",bi="Size4-Regular"):ce===")"||ce==="\\rparen"?(Qr="\u239E",In="\u239F",li="\u23A0",bi="Size4-Regular"):ce==="\\{"||ce==="\\lbrace"?(Qr="\u23A7",pn="\u23A8",li="\u23A9",In="\u23AA",bi="Size4-Regular"):ce==="\\}"||ce==="\\rbrace"?(Qr="\u23AB",pn="\u23AC",li="\u23AD",In="\u23AA",bi="Size4-Regular"):ce==="\\lgroup"||ce==="\u27EE"?(Qr="\u23A7",li="\u23A9",In="\u23AA",bi="Size4-Regular"):ce==="\\rgroup"||ce==="\u27EF"?(Qr="\u23AB",li="\u23AD",In="\u23AA",bi="Size4-Regular"):ce==="\\lmoustache"||ce==="\u23B0"?(Qr="\u23A7",li="\u23AD",In="\u23AA",bi="Size4-Regular"):(ce==="\\rmoustache"||ce==="\u23B1")&&(Qr="\u23AB",li="\u23A9",In="\u23AA",bi="Size4-Regular");var Ai=Bi(Qr,bi,Rt),Yi=Ai.height+Ai.depth,ua=Bi(In,bi,Rt),Va=ua.height+ua.depth,ro=Bi(li,bi,Rt),So=ro.height+ro.depth,Ro=0,jo=1;if(pn!==null){var Cs=Bi(pn,bi,Rt);Ro=Cs.height+Cs.depth,jo=2}var vs=Yi+So+Ro,os=Math.max(0,Math.ceil((Ee-vs)/(jo*Va))),Fo=vs+os*jo*Va,yo=Qe.fontMetrics().axisHeight;Le&&(yo*=Qe.sizeMultiplier);var As=Fo/2-yo,$s=(os+1)*.005-Va,ys=[];if(ys.push(Qi(li,bi,Rt)),pn===null)for(var Fa=0;Fa<os;Fa++)ys.push(da),ys.push(Qi(In,bi,Rt));else{for(var ml=0;ml<os;ml++)ys.push(da),ys.push(Qi(In,bi,Rt));ys.push({type:"kern",size:$s}),ys.push(Qi(In,bi,Rt)),ys.push(da),ys.push(Qi(pn,bi,Rt));for(var cl=0;cl<os;cl++)ys.push(da),ys.push(Qi(In,bi,Rt))}ys.push({type:"kern",size:$s}),ys.push(Qi(In,bi,Rt)),ys.push(da),ys.push(Qi(Qr,bi,Rt));var Ps=Qe.havingBaseStyle(U.TEXT),ws=Mr.makeVList({positionType:"bottom",positionData:As,children:ys},Ps);return Gi(Mr.makeSpan(["delimsizing","mult"],[ws],Ps),U.TEXT,Qe,lr)},ra=80,Da=.08,Ra=function(ce,Ee,Le,Qe,Rt){var lr=Ve(ce,Qe,Le),Qr=new he(ce,lr),pn=new Te([Qr],{width:"400em",height:Ee+"em",viewBox:"0 0 400000 "+Le,preserveAspectRatio:"xMinYMin slice"});return Mr.makeSvgSpan(["hide-tail"],[pn],Rt)},va=function(ce,Ee){var Le=Ee.havingBaseSizing(),Qe=$i("\\surd",ce*Le.sizeMultiplier,io,Le),Rt=Le.sizeMultiplier,lr=Math.max(0,Ee.minRuleThickness-Ee.fontMetrics().sqrtRuleThickness),Qr,pn=0,In=0,li=0,bi;return Qe.type==="small"?(li=1e3+1e3*lr+ra,ce<1?Rt=1:ce<1.4&&(Rt=.7),pn=(1+lr+Da)/Rt,In=(1+lr)/Rt,Qr=Ra("sqrtMain",pn,li,lr,Ee),Qr.style.minWidth="0.853em",bi=.833/Rt):Qe.type==="large"?(li=(1e3+ra)*Ga[Qe.size],In=(Ga[Qe.size]+lr)/Rt,pn=(Ga[Qe.size]+lr+Da)/Rt,Qr=Ra("sqrtSize"+Qe.size,pn,li,lr,Ee),Qr.style.minWidth="1.02em",bi=1/Rt):(pn=ce+lr+Da,In=ce+lr,li=Math.floor(1e3*ce+lr)+ra,Qr=Ra("sqrtTall",pn,li,lr,Ee),Qr.style.minWidth="0.742em",bi=1.056),Qr.height=In,Qr.style.height=pn+"em",{span:Qr,advanceWidth:bi,ruleWidth:(Ee.fontMetrics().sqrtRuleThickness+lr)*Rt}},ga=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],_a=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],ya=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Ga=[0,1.2,1.8,2.4,3],Ia=function(ce,Ee,Le,Qe,Rt){if(ce==="<"||ce==="\\lt"||ce==="\u27E8"?ce="\\langle":(ce===">"||ce==="\\gt"||ce==="\u27E9")&&(ce="\\rangle"),v.contains(ga,ce)||v.contains(ya,ce))return Hi(ce,Ee,!1,Le,Qe,Rt);if(v.contains(_a,ce))return Oa(ce,Ga[Ee],!1,Le,Qe,Rt);throw new l("Illegal delimiter: '"+ce+"'")},Wa=[{type:"small",style:U.SCRIPTSCRIPT},{type:"small",style:U.SCRIPT},{type:"small",style:U.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],no=[{type:"small",style:U.SCRIPTSCRIPT},{type:"small",style:U.SCRIPT},{type:"small",style:U.TEXT},{type:"stack"}],io=[{type:"small",style:U.SCRIPTSCRIPT},{type:"small",style:U.SCRIPT},{type:"small",style:U.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],uo=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.")},$i=function(ce,Ee,Le,Qe){for(var Rt=Math.min(2,3-Qe.style.size),lr=Rt;lr<Le.length&&!(Le[lr].type==="stack");lr++){var Qr=Bi(ce,uo(Le[lr]),"math"),pn=Qr.height+Qr.depth;if(Le[lr].type==="small"){var In=Qe.havingBaseStyle(Le[lr].style);pn*=In.sizeMultiplier}if(pn>Ee)return Le[lr]}return Le[Le.length-1]},mo=function(ce,Ee,Le,Qe,Rt,lr){ce==="<"||ce==="\\lt"||ce==="\u27E8"?ce="\\langle":(ce===">"||ce==="\\gt"||ce==="\u27E9")&&(ce="\\rangle");var Qr;v.contains(ya,ce)?Qr=Wa:v.contains(ga,ce)?Qr=io:Qr=no;var pn=$i(ce,Ee,Qr,Qe);return pn.type==="small"?Pi(ce,pn.style,Le,Qe,Rt,lr):pn.type==="large"?Hi(ce,pn.size,Le,Qe,Rt,lr):Oa(ce,Ee,Le,Qe,Rt,lr)},Eo=function(ce,Ee,Le,Qe,Rt,lr){var Qr=Qe.fontMetrics().axisHeight*Qe.sizeMultiplier,pn=901,In=5/Qe.fontMetrics().ptPerEm,li=Math.max(Ee-Qr,Le+Qr),bi=Math.max(li/500*pn,2*li-In);return mo(ce,bi,!0,Qe,Rt,lr)},ao={sqrtImage:va,sizedDelim:Ia,customSizedDelim:mo,leftRightDelim:Eo},Co={"\\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}},Ko=["(","\\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(Nt,ce){var Ee=Mi(Nt);if(Ee&&v.contains(Ko,Ee.text))return Ee;throw new l("Invalid delimiter: '"+(Ee?Ee.text:JSON.stringify(Nt))+"' after '"+ce.funcName+"'",Nt)}Lt({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,Ee){var Le=to(Ee[0],ce);return{type:"delimsizing",mode:ce.parser.mode,size:Co[ce.funcName].size,mclass:Co[ce.funcName].mclass,delim:Le.text}},htmlBuilder:function(ce,Ee){return ce.delim==="."?Mr.makeSpan([ce.mclass]):ao.sizedDelim(ce.delim,ce.size,Ee,ce.mode,[ce.mclass])},mathmlBuilder:function(ce){var Ee=[];ce.delim!=="."&&Ee.push(Ln(ce.delim,ce.mode));var Le=new yi.MathNode("mo",Ee);return ce.mclass==="mopen"||ce.mclass==="mclose"?Le.setAttribute("fence","true"):Le.setAttribute("fence","false"),Le}});function Qo(Nt){if(!Nt.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Lt({type:"leftright-right",names:["\\right"],props:{numArgs:1},handler:function(ce,Ee){var Le=ce.parser.gullet.macros.get("\\current@color");if(Le&&typeof Le!="string")throw new l("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:ce.parser.mode,delim:to(Ee[0],ce).text,color:Le}}}),Lt({type:"leftright",names:["\\left"],props:{numArgs:1},handler:function(ce,Ee){var Le=to(Ee[0],ce),Qe=ce.parser;++Qe.leftrightDepth;var Rt=Qe.parseExpression(!1);--Qe.leftrightDepth,Qe.expect("\\right",!1);var lr=Rn(Qe.parseFunction(),"leftright-right");return{type:"leftright",mode:Qe.mode,body:Rt,left:Le.text,right:lr.delim,rightColor:lr.color}},htmlBuilder:function(ce,Ee){Qo(ce);for(var Le=mn(ce.body,Ee,!0,["mopen","mclose"]),Qe=0,Rt=0,lr=!1,Qr=0;Qr<Le.length;Qr++)Le[Qr].isMiddle?lr=!0:(Qe=Math.max(Le[Qr].height,Qe),Rt=Math.max(Le[Qr].depth,Rt));Qe*=Ee.sizeMultiplier,Rt*=Ee.sizeMultiplier;var pn;if(ce.left==="."?pn=oi(Ee,["mopen"]):pn=ao.leftRightDelim(ce.left,Qe,Rt,Ee,ce.mode,["mopen"]),Le.unshift(pn),lr)for(var In=1;In<Le.length;In++){var li=Le[In],bi=li.isMiddle;bi&&(Le[In]=ao.leftRightDelim(bi.delim,Qe,Rt,bi.options,ce.mode,[]))}var Ai;if(ce.right===".")Ai=oi(Ee,["mclose"]);else{var Yi=ce.rightColor?Ee.withColor(ce.rightColor):Ee;Ai=ao.leftRightDelim(ce.right,Qe,Rt,Yi,ce.mode,["mclose"])}return Le.push(Ai),Mr.makeSpan(["minner"],Le,Ee)},mathmlBuilder:function(ce,Ee){Qo(ce);var Le=ea(ce.body,Ee);if(ce.left!=="."){var Qe=new yi.MathNode("mo",[Ln(ce.left,ce.mode)]);Qe.setAttribute("fence","true"),Le.unshift(Qe)}if(ce.right!=="."){var Rt=new yi.MathNode("mo",[Ln(ce.right,ce.mode)]);Rt.setAttribute("fence","true"),ce.rightColor&&Rt.setAttribute("mathcolor",ce.rightColor),Le.push(Rt)}return ji(Le)}}),Lt({type:"middle",names:["\\middle"],props:{numArgs:1},handler:function(ce,Ee){var Le=to(Ee[0],ce);if(!ce.parser.leftrightDepth)throw new l("\\middle without preceding \\left",Le);return{type:"middle",mode:ce.parser.mode,delim:Le.text}},htmlBuilder:function(ce,Ee){var Le;if(ce.delim===".")Le=oi(Ee,[]);else{Le=ao.sizedDelim(ce.delim,1,Ee,ce.mode,[]);var Qe={delim:ce.delim,options:Ee};Le.isMiddle=Qe}return Le},mathmlBuilder:function(ce,Ee){var Le=ce.delim==="\\vert"||ce.delim==="|"?Ln("|","text"):Ln(ce.delim,ce.mode),Qe=new yi.MathNode("mo",[Le]);return Qe.setAttribute("fence","true"),Qe.setAttribute("lspace","0.05em"),Qe.setAttribute("rspace","0.05em"),Qe}});var bo=function(ce,Ee){var Le=Mr.wrapFragment(xi(ce.body,Ee),Ee),Qe=ce.label.substr(1),Rt=Ee.sizeMultiplier,lr,Qr=0,pn=v.isCharacterBox(ce.body);if(Qe==="sout")lr=Mr.makeSpan(["stretchy","sout"]),lr.height=Ee.fontMetrics().defaultRuleThickness/Rt,Qr=-.5*Ee.fontMetrics().xHeight;else{/cancel/.test(Qe)?pn||Le.classes.push("cancel-pad"):Le.classes.push("boxpad");var In=0,li=0;/box/.test(Qe)?(li=Math.max(Ee.fontMetrics().fboxrule,Ee.minRuleThickness),In=Ee.fontMetrics().fboxsep+(Qe==="colorbox"?0:li)):In=pn?.2:0,lr=Tn.encloseSpan(Le,Qe,In,Ee),/fbox|boxed|fcolorbox/.test(Qe)&&(lr.style.borderStyle="solid",lr.style.borderWidth=li+"em"),Qr=Le.depth+In,ce.backgroundColor&&(lr.style.backgroundColor=ce.backgroundColor,ce.borderColor&&(lr.style.borderColor=ce.borderColor))}var bi;return ce.backgroundColor?bi=Mr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:lr,shift:Qr},{type:"elem",elem:Le,shift:0}]},Ee):bi=Mr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Le,shift:0},{type:"elem",elem:lr,shift:Qr,wrapperClasses:/cancel/.test(Qe)?["svg-align"]:[]}]},Ee),/cancel/.test(Qe)&&(bi.height=Le.height,bi.depth=Le.depth),/cancel/.test(Qe)&&!pn?Mr.makeSpan(["mord","cancel-lap"],[bi],Ee):Mr.makeSpan(["mord"],[bi],Ee)},xo=function(ce,Ee){var Le=0,Qe=new yi.MathNode(ce.label.indexOf("colorbox")>-1?"mpadded":"menclose",[kr(ce.body,Ee)]);switch(ce.label){case"\\cancel":Qe.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":Qe.setAttribute("notation","downdiagonalstrike");break;case"\\sout":Qe.setAttribute("notation","horizontalstrike");break;case"\\fbox":Qe.setAttribute("notation","box");break;case"\\fcolorbox":case"\\colorbox":if(Le=Ee.fontMetrics().fboxsep*Ee.fontMetrics().ptPerEm,Qe.setAttribute("width","+"+2*Le+"pt"),Qe.setAttribute("height","+"+2*Le+"pt"),Qe.setAttribute("lspace",Le+"pt"),Qe.setAttribute("voffset",Le+"pt"),ce.label==="\\fcolorbox"){var Rt=Math.max(Ee.fontMetrics().fboxrule,Ee.minRuleThickness);Qe.setAttribute("style","border: "+Rt+"em solid "+String(ce.borderColor))}break;case"\\xcancel":Qe.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return ce.backgroundColor&&Qe.setAttribute("mathbackground",ce.backgroundColor),Qe};Lt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,greediness:3,argTypes:["color","text"]},handler:function(ce,Ee,Le){var Qe=ce.parser,Rt=ce.funcName,lr=Rn(Ee[0],"color-token").color,Qr=Ee[1];return{type:"enclose",mode:Qe.mode,label:Rt,backgroundColor:lr,body:Qr}},htmlBuilder:bo,mathmlBuilder:xo}),Lt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,greediness:3,argTypes:["color","color","text"]},handler:function(ce,Ee,Le){var Qe=ce.parser,Rt=ce.funcName,lr=Rn(Ee[0],"color-token").color,Qr=Rn(Ee[1],"color-token").color,pn=Ee[2];return{type:"enclose",mode:Qe.mode,label:Rt,backgroundColor:Qr,borderColor:lr,body:pn}},htmlBuilder:bo,mathmlBuilder:xo}),Lt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler:function(ce,Ee){var Le=ce.parser;return{type:"enclose",mode:Le.mode,label:"\\fbox",body:Ee[0]}}}),Lt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout"],props:{numArgs:1},handler:function(ce,Ee,Le){var Qe=ce.parser,Rt=ce.funcName,lr=Ee[0];return{type:"enclose",mode:Qe.mode,label:Rt,body:lr}},htmlBuilder:bo,mathmlBuilder:xo});var ts={};function ka(Nt){for(var ce=Nt.type,Ee=Nt.names,Le=Nt.props,Qe=Nt.handler,Rt=Nt.htmlBuilder,lr=Nt.mathmlBuilder,Qr={type:ce,numArgs:Le.numArgs||0,greediness:1,allowedInText:!1,numOptionalArgs:0,handler:Qe},pn=0;pn<Ee.length;++pn)ts[Ee[pn]]=Qr;Rt&&(Wt[ce]=Rt),lr&&(Vt[ce]=lr)}function Io(Nt){var ce=[];Nt.consumeSpaces();for(var Ee=Nt.fetch().text;Ee==="\\hline"||Ee==="\\hdashline";)Nt.consume(),ce.push(Ee==="\\hdashline"),Nt.consumeSpaces(),Ee=Nt.fetch().text;return ce}function Mo(Nt,ce,Ee){var Le=ce.hskipBeforeAndAfter,Qe=ce.addJot,Rt=ce.cols,lr=ce.arraystretch,Qr=ce.colSeparationType;if(Nt.gullet.beginGroup(),Nt.gullet.macros.set("\\\\","\\cr"),!lr){var pn=Nt.gullet.expandMacroAsText("\\arraystretch");if(pn==null)lr=1;else if(lr=parseFloat(pn),!lr||lr<0)throw new l("Invalid \\arraystretch: "+pn)}Nt.gullet.beginGroup();var In=[],li=[In],bi=[],Ai=[];for(Ai.push(Io(Nt));;){var Yi=Nt.parseExpression(!1,"\\cr");Nt.gullet.endGroup(),Nt.gullet.beginGroup(),Yi={type:"ordgroup",mode:Nt.mode,body:Yi},Ee&&(Yi={type:"styling",mode:Nt.mode,style:Ee,body:[Yi]}),In.push(Yi);var ua=Nt.fetch().text;if(ua==="&")Nt.consume();else if(ua==="\\end"){In.length===1&&Yi.type==="styling"&&Yi.body[0].body.length===0&&li.pop(),Ai.length<li.length+1&&Ai.push([]);break}else if(ua==="\\cr"){var Va=Rn(Nt.parseFunction(),"cr");bi.push(Va.size),Ai.push(Io(Nt)),In=[],li.push(In)}else throw new l("Expected & or \\\\ or \\cr or \\end",Nt.nextToken)}return Nt.gullet.endGroup(),Nt.gullet.endGroup(),{type:"array",mode:Nt.mode,addJot:Qe,arraystretch:lr,body:li,cols:Rt,rowGaps:bi,hskipBeforeAndAfter:Le,hLinesBeforeRow:Ai,colSeparationType:Qr}}function is(Nt){return Nt.substr(0,1)==="d"?"display":"text"}var To=function(ce,Ee){var Le,Qe,Rt=ce.body.length,lr=ce.hLinesBeforeRow,Qr=0,pn=new Array(Rt),In=[],li=Math.max(Ee.fontMetrics().arrayRuleWidth,Ee.minRuleThickness),bi=1/Ee.fontMetrics().ptPerEm,Ai=5*bi;if(ce.colSeparationType&&ce.colSeparationType==="small"){var Yi=Ee.havingStyle(U.SCRIPT).sizeMultiplier;Ai=.2778*(Yi/Ee.sizeMultiplier)}var ua=12*bi,Va=3*bi,ro=ce.arraystretch*ua,So=.7*ro,Ro=.3*ro,jo=0;function Cs(Is){for(var Rs=0;Rs<Is.length;++Rs)Rs>0&&(jo+=.25),In.push({pos:jo,isDashed:Is[Rs]})}for(Cs(lr[0]),Le=0;Le<ce.body.length;++Le){var vs=ce.body[Le],os=So,Fo=Ro;Qr<vs.length&&(Qr=vs.length);var yo=new Array(vs.length);for(Qe=0;Qe<vs.length;++Qe){var As=xi(vs[Qe],Ee);Fo<As.depth&&(Fo=As.depth),os<As.height&&(os=As.height),yo[Qe]=As}var $s=ce.rowGaps[Le],ys=0;$s&&(ys=Ir($s,Ee),ys>0&&(ys+=Ro,Fo<ys&&(Fo=ys),ys=0)),ce.addJot&&(Fo+=Va),yo.height=os,yo.depth=Fo,jo+=os,yo.pos=jo,jo+=Fo+ys,pn[Le]=yo,Cs(lr[Le+1])}var Fa=jo/2+Ee.fontMetrics().axisHeight,ml=ce.cols||[],cl=[],Ps,ws;for(Qe=0,ws=0;Qe<Qr||ws<ml.length;++Qe,++ws){for(var Ys=ml[ws]||{},Vl=!0;Ys.type==="separator";){if(Vl||(Ps=Mr.makeSpan(["arraycolsep"],[]),Ps.style.width=Ee.fontMetrics().doubleRuleSep+"em",cl.push(Ps)),Ys.separator==="|"||Ys.separator===":"){var Nl=Ys.separator==="|"?"solid":"dashed",hl=Mr.makeSpan(["vertical-separator"],[],Ee);hl.style.height=jo+"em",hl.style.borderRightWidth=li+"em",hl.style.borderRightStyle=Nl,hl.style.margin="0 -"+li/2+"em",hl.style.verticalAlign=-(jo-Fa)+"em",cl.push(hl)}else throw new l("Invalid separator type: "+Ys.separator);ws++,Ys=ml[ws]||{},Vl=!1}if(Qe>=Qr)continue;var Os=void 0;(Qe>0||ce.hskipBeforeAndAfter)&&(Os=v.deflt(Ys.pregap,Ai),Os!==0&&(Ps=Mr.makeSpan(["arraycolsep"],[]),Ps.style.width=Os+"em",cl.push(Ps)));var Vs=[];for(Le=0;Le<Rt;++Le){var _l=pn[Le],ol=_l[Qe];if(!ol)continue;var Ho=_l.pos-Fa;ol.depth=_l.depth,ol.height=_l.height,Vs.push({type:"elem",elem:ol,shift:Ho})}Vs=Mr.makeVList({positionType:"individualShift",children:Vs},Ee),Vs=Mr.makeSpan(["col-align-"+(Ys.align||"c")],[Vs]),cl.push(Vs),(Qe<Qr-1||ce.hskipBeforeAndAfter)&&(Os=v.deflt(Ys.postgap,Ai),Os!==0&&(Ps=Mr.makeSpan(["arraycolsep"],[]),Ps.style.width=Os+"em",cl.push(Ps)))}if(pn=Mr.makeSpan(["mtable"],cl),In.length>0){for(var vo=Mr.makeLineSpan("hline",Ee,li),$o=Mr.makeLineSpan("hdashline",Ee,li),ms=[{type:"elem",elem:pn,shift:0}];In.length>0;){var _s=In.pop(),qo=_s.pos-Fa;_s.isDashed?ms.push({type:"elem",elem:$o,shift:qo}):ms.push({type:"elem",elem:vo,shift:qo})}pn=Mr.makeVList({positionType:"individualShift",children:ms},Ee)}return Mr.makeSpan(["mord"],[pn],Ee)},Zo={c:"center ",l:"left ",r:"right "},Vo=function(ce,Ee){var Le=new yi.MathNode("mtable",ce.body.map(function(jo){return new yi.MathNode("mtr",jo.map(function(Cs){return new yi.MathNode("mtd",[kr(Cs,Ee)])}))})),Qe=ce.arraystretch===.5?.1:.16+ce.arraystretch-1+(ce.addJot?.09:0);Le.setAttribute("rowspacing",Qe+"em");var Rt="",lr="";if(ce.cols){var Qr=ce.cols,pn="",In=!1,li=0,bi=Qr.length;Qr[0].type==="separator"&&(Rt+="top ",li=1),Qr[Qr.length-1].type==="separator"&&(Rt+="bottom ",bi-=1);for(var Ai=li;Ai<bi;Ai++)Qr[Ai].type==="align"?(lr+=Zo[Qr[Ai].align],In&&(pn+="none "),In=!0):Qr[Ai].type==="separator"&&(In&&(pn+=Qr[Ai].separator==="|"?"solid ":"dashed ",In=!1));Le.setAttribute("columnalign",lr.trim()),/[sd]/.test(pn)&&Le.setAttribute("columnlines",pn.trim())}if(ce.colSeparationType==="align"){for(var Yi=ce.cols||[],ua="",Va=1;Va<Yi.length;Va++)ua+=Va%2?"0em ":"1em ";Le.setAttribute("columnspacing",ua.trim())}else ce.colSeparationType==="alignat"?Le.setAttribute("columnspacing","0em"):ce.colSeparationType==="small"?Le.setAttribute("columnspacing","0.2778em"):Le.setAttribute("columnspacing","1em");var ro="",So=ce.hLinesBeforeRow;Rt+=So[0].length>0?"left ":"",Rt+=So[So.length-1].length>0?"right ":"";for(var Ro=1;Ro<So.length-1;Ro++)ro+=So[Ro].length===0?"none ":So[Ro][0]?"dashed ":"solid ";return/[sd]/.test(ro)&&Le.setAttribute("rowlines",ro.trim()),Rt!==""&&(Le=new yi.MathNode("menclose",[Le]),Le.setAttribute("notation",Rt.trim())),ce.arraystretch&&ce.arraystretch<1&&(Le=new yi.MathNode("mstyle",[Le]),Le.setAttribute("scriptlevel","1")),Le},Lo=function(ce,Ee){var Le=[],Qe=Mo(ce.parser,{cols:Le,addJot:!0},"display"),Rt,lr=0,Qr={type:"ordgroup",mode:ce.mode,body:[]},pn=bn(Ee[0],"ordgroup");if(pn){for(var In="",li=0;li<pn.body.length;li++){var bi=Rn(pn.body[li],"textord");In+=bi.text}Rt=Number(In),lr=Rt*2}var Ai=!lr;Qe.body.forEach(function(ro){for(var So=1;So<ro.length;So+=2){var Ro=Rn(ro[So],"styling"),jo=Rn(Ro.body[0],"ordgroup");jo.body.unshift(Qr)}if(Ai)lr<ro.length&&(lr=ro.length);else{var Cs=ro.length/2;if(Rt<Cs)throw new l("Too many math in a row: "+("expected "+Rt+", but got "+Cs),ro[0])}});for(var Yi=0;Yi<lr;++Yi){var ua="r",Va=0;Yi%2===1?ua="l":Yi>0&&Ai&&(Va=1),Le[Yi]={type:"align",align:ua,pregap:Va,postgap:0}}return Qe.colSeparationType=Ai?"align":"alignat",Qe};ka({type:"array",names:["array","darray"],props:{numArgs:1},handler:function(ce,Ee){var Le=Mi(Ee[0]),Qe=Le?[Ee[0]]:Rn(Ee[0],"ordgroup").body,Rt=Qe.map(function(Qr){var pn=fi(Qr),In=pn.text;if("lcr".indexOf(In)!==-1)return{type:"align",align:In};if(In==="|")return{type:"separator",separator:"|"};if(In===":")return{type:"separator",separator:":"};throw new l("Unknown column alignment: "+In,Qr)}),lr={cols:Rt,hskipBeforeAndAfter:!0};return Mo(ce.parser,lr,is(ce.envName))},htmlBuilder:To,mathmlBuilder:Vo}),ka({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix"],props:{numArgs:0},handler:function(ce){var Ee={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[ce.envName],Le={hskipBeforeAndAfter:!1},Qe=Mo(ce.parser,Le,is(ce.envName));return Ee?{type:"leftright",mode:ce.mode,body:[Qe],left:Ee[0],right:Ee[1],rightColor:void 0}:Qe},htmlBuilder:To,mathmlBuilder:Vo}),ka({type:"array",names:["smallmatrix"],props:{numArgs:0},handler:function(ce){var Ee={arraystretch:.5},Le=Mo(ce.parser,Ee,"script");return Le.colSeparationType="small",Le},htmlBuilder:To,mathmlBuilder:Vo}),ka({type:"array",names:["subarray"],props:{numArgs:1},handler:function(ce,Ee){var Le=Mi(Ee[0]),Qe=Le?[Ee[0]]:Rn(Ee[0],"ordgroup").body,Rt=Qe.map(function(Qr){var pn=fi(Qr),In=pn.text;if("lc".indexOf(In)!==-1)return{type:"align",align:In};throw new l("Unknown column alignment: "+In,Qr)});if(Rt.length>1)throw new l("{subarray} can contain only one column");var lr={cols:Rt,hskipBeforeAndAfter:!1,arraystretch:.5};if(lr=Mo(ce.parser,lr,"script"),lr.body[0].length>1)throw new l("{subarray} can contain only one column");return lr},htmlBuilder:To,mathmlBuilder:Vo}),ka({type:"array",names:["cases","dcases"],props:{numArgs:0},handler:function(ce){var Ee={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},Le=Mo(ce.parser,Ee,is(ce.envName));return{type:"leftright",mode:ce.mode,body:[Le],left:"\\{",right:".",rightColor:void 0}},htmlBuilder:To,mathmlBuilder:Vo}),ka({type:"array",names:["aligned"],props:{numArgs:0},handler:Lo,htmlBuilder:To,mathmlBuilder:Vo}),ka({type:"array",names:["gathered"],props:{numArgs:0},handler:function(ce){var Ee={cols:[{type:"align",align:"c"}],addJot:!0};return Mo(ce.parser,Ee,"display")},htmlBuilder:To,mathmlBuilder:Vo}),ka({type:"array",names:["alignedat"],props:{numArgs:1},handler:Lo,htmlBuilder:To,mathmlBuilder:Vo}),Lt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler:function(ce,Ee){throw new l(ce.funcName+" valid only within array environment")}});var ho=ts,ja=ho;Lt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler:function(ce,Ee){var Le=ce.parser,Qe=ce.funcName,Rt=Ee[0];if(Rt.type!=="ordgroup")throw new l("Invalid environment name",Rt);for(var lr="",Qr=0;Qr<Rt.body.length;++Qr)lr+=Rn(Rt.body[Qr],"textord").text;if(Qe==="\\begin"){if(!ja.hasOwnProperty(lr))throw new l("No such environment: "+lr,Rt);var pn=ja[lr],In=Le.parseArguments("\\begin{"+lr+"}",pn),li=In.args,bi=In.optArgs,Ai={mode:Le.mode,envName:lr,parser:Le},Yi=pn.handler(Ai,li,bi);Le.expect("\\end",!1);var ua=Le.nextToken,Va=Rn(Le.parseFunction(),"environment");if(Va.name!==lr)throw new l("Mismatch: \\begin{"+lr+"} matched by \\end{"+Va.name+"}",ua);return Yi}return{type:"environment",mode:Le.mode,name:lr,nameGroup:Rt}}});var mt=Mr.makeSpan;function Cr(Nt,ce){var Ee=mn(Nt.body,ce,!0);return mt([Nt.mclass],Ee,ce)}function tn(Nt,ce){var Ee,Le=ea(Nt.body,ce);return Nt.mclass==="minner"?yi.newDocumentFragment(Le):(Nt.mclass==="mord"?Nt.isCharacterBox?(Ee=Le[0],Ee.type="mi"):Ee=new yi.MathNode("mi",Le):(Nt.isCharacterBox?(Ee=Le[0],Ee.type="mo"):Ee=new yi.MathNode("mo",Le),Nt.mclass==="mbin"?(Ee.attributes.lspace="0.22em",Ee.attributes.rspace="0.22em"):Nt.mclass==="mpunct"?(Ee.attributes.lspace="0em",Ee.attributes.rspace="0.17em"):(Nt.mclass==="mopen"||Nt.mclass==="mclose")&&(Ee.attributes.lspace="0em",Ee.attributes.rspace="0em")),Ee)}Lt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1},handler:function(ce,Ee){var Le=ce.parser,Qe=ce.funcName,Rt=Ee[0];return{type:"mclass",mode:Le.mode,mclass:"m"+Qe.substr(5),body:vr(Rt),isCharacterBox:v.isCharacterBox(Rt)}},htmlBuilder:Cr,mathmlBuilder:tn});var Yr=function(ce){var Ee=ce.type==="ordgroup"&&ce.body.length?ce.body[0]:ce;return Ee.type==="atom"&&(Ee.family==="bin"||Ee.family==="rel")?"m"+Ee.family:"mord"};Lt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler:function(ce,Ee){var Le=ce.parser;return{type:"mclass",mode:Le.mode,mclass:Yr(Ee[0]),body:[Ee[1]],isCharacterBox:v.isCharacterBox(Ee[1])}}}),Lt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler:function(ce,Ee){var Le=ce.parser,Qe=ce.funcName,Rt=Ee[1],lr=Ee[0],Qr;Qe!=="\\stackrel"?Qr=Yr(Rt):Qr="mrel";var pn={type:"op",mode:Rt.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:Qe!=="\\stackrel",body:vr(Rt)},In={type:"supsub",mode:lr.mode,base:pn,sup:Qe==="\\underset"?null:lr,sub:Qe==="\\underset"?lr:null};return{type:"mclass",mode:Le.mode,mclass:Qr,body:[In],isCharacterBox:v.isCharacterBox(In)}},htmlBuilder:Cr,mathmlBuilder:tn});var Xn=function(ce,Ee){var Le=ce.font,Qe=Ee.withFont(Le);return xi(ce.body,Qe)},hn=function(ce,Ee){var Le=ce.font,Qe=Ee.withFont(Le);return kr(ce.body,Qe)},Xr={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Lt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,greediness:2},handler:function(ce,Ee){var Le=ce.parser,Qe=ce.funcName,Rt=Ee[0],lr=Qe;return lr in Xr&&(lr=Xr[lr]),{type:"font",mode:Le.mode,font:lr.slice(1),body:Rt}},htmlBuilder:Xn,mathmlBuilder:hn}),Lt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1,greediness:2},handler:function(ce,Ee){var Le=ce.parser,Qe=Ee[0],Rt=v.isCharacterBox(Qe);return{type:"mclass",mode:Le.mode,mclass:Yr(Qe),body:[{type:"font",mode:Le.mode,font:"boldsymbol",body:Qe}],isCharacterBox:Rt}}}),Lt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it"],props:{numArgs:0,allowedInText:!0},handler:function(ce,Ee){var Le=ce.parser,Qe=ce.funcName,Rt=ce.breakOnTokenText,lr=Le.mode,Qr=Le.parseExpression(!0,Rt),pn="math"+Qe.slice(1);return{type:"font",mode:lr,font:pn,body:{type:"ordgroup",mode:Le.mode,body:Qr}}},htmlBuilder:Xn,mathmlBuilder:hn});var ni=function(ce,Ee){var Le=Ee;return ce==="display"?Le=Le.id>=U.SCRIPT.id?Le.text():U.DISPLAY:ce==="text"&&Le.size===U.DISPLAY.size?Le=U.TEXT:ce==="script"?Le=U.SCRIPT:ce==="scriptscript"&&(Le=U.SCRIPTSCRIPT),Le},nn=function(ce,Ee){var Le=ni(ce.size,Ee.style),Qe=Le.fracNum(),Rt=Le.fracDen(),lr;lr=Ee.havingStyle(Qe);var Qr=xi(ce.numer,lr,Ee);if(ce.continued){var pn=8.5/Ee.fontMetrics().ptPerEm,In=3.5/Ee.fontMetrics().ptPerEm;Qr.height=Qr.height<pn?pn:Qr.height,Qr.depth=Qr.depth<In?In:Qr.depth}lr=Ee.havingStyle(Rt);var li=xi(ce.denom,lr,Ee),bi,Ai,Yi;ce.hasBarLine?(ce.barSize?(Ai=Ir(ce.barSize,Ee),bi=Mr.makeLineSpan("frac-line",Ee,Ai)):bi=Mr.makeLineSpan("frac-line",Ee),Ai=bi.height,Yi=bi.height):(bi=null,Ai=0,Yi=Ee.fontMetrics().defaultRuleThickness);var ua,Va,ro;Le.size===U.DISPLAY.size||ce.size==="display"?(ua=Ee.fontMetrics().num1,Ai>0?Va=3*Yi:Va=7*Yi,ro=Ee.fontMetrics().denom1):(Ai>0?(ua=Ee.fontMetrics().num2,Va=Yi):(ua=Ee.fontMetrics().num3,Va=3*Yi),ro=Ee.fontMetrics().denom2);var So;if(bi){var jo=Ee.fontMetrics().axisHeight;ua-Qr.depth-(jo+.5*Ai)<Va&&(ua+=Va-(ua-Qr.depth-(jo+.5*Ai))),jo-.5*Ai-(li.height-ro)<Va&&(ro+=Va-(jo-.5*Ai-(li.height-ro)));var Cs=-(jo-.5*Ai);So=Mr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:li,shift:ro},{type:"elem",elem:bi,shift:Cs},{type:"elem",elem:Qr,shift:-ua}]},Ee)}else{var Ro=ua-Qr.depth-(li.height-ro);Ro<Va&&(ua+=.5*(Va-Ro),ro+=.5*(Va-Ro)),So=Mr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:li,shift:ro},{type:"elem",elem:Qr,shift:-ua}]},Ee)}lr=Ee.havingStyle(Le),So.height*=lr.sizeMultiplier/Ee.sizeMultiplier,So.depth*=lr.sizeMultiplier/Ee.sizeMultiplier;var vs;Le.size===U.DISPLAY.size?vs=Ee.fontMetrics().delim1:vs=Ee.fontMetrics().delim2;var os,Fo;return ce.leftDelim==null?os=oi(Ee,["mopen"]):os=ao.customSizedDelim(ce.leftDelim,vs,!0,Ee.havingStyle(Le),ce.mode,["mopen"]),ce.continued?Fo=Mr.makeSpan([]):ce.rightDelim==null?Fo=oi(Ee,["mclose"]):Fo=ao.customSizedDelim(ce.rightDelim,vs,!0,Ee.havingStyle(Le),ce.mode,["mclose"]),Mr.makeSpan(["mord"].concat(lr.sizingClasses(Ee)),[os,Mr.makeSpan(["mfrac"],[So]),Fo],Ee)},Wn=function(ce,Ee){var Le=new yi.MathNode("mfrac",[kr(ce.numer,Ee),kr(ce.denom,Ee)]);if(!ce.hasBarLine)Le.setAttribute("linethickness","0px");else if(ce.barSize){var Qe=Ir(ce.barSize,Ee);Le.setAttribute("linethickness",Qe+"em")}var Rt=ni(ce.size,Ee.style);if(Rt.size!==Ee.style.size){Le=new yi.MathNode("mstyle",[Le]);var lr=Rt.size===U.DISPLAY.size?"true":"false";Le.setAttribute("displaystyle",lr),Le.setAttribute("scriptlevel","0")}if(ce.leftDelim!=null||ce.rightDelim!=null){var Qr=[];if(ce.leftDelim!=null){var pn=new yi.MathNode("mo",[new yi.TextNode(ce.leftDelim.replace("\\",""))]);pn.setAttribute("fence","true"),Qr.push(pn)}if(Qr.push(Le),ce.rightDelim!=null){var In=new yi.MathNode("mo",[new yi.TextNode(ce.rightDelim.replace("\\",""))]);In.setAttribute("fence","true"),Qr.push(In)}return ji(Qr)}return Le};Lt({type:"genfrac",names:["\\cfrac","\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,greediness:2},handler:function(ce,Ee){var Le=ce.parser,Qe=ce.funcName,Rt=Ee[0],lr=Ee[1],Qr,pn=null,In=null,li="auto";switch(Qe){case"\\cfrac":case"\\dfrac":case"\\frac":case"\\tfrac":Qr=!0;break;case"\\\\atopfrac":Qr=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Qr=!1,pn="(",In=")";break;case"\\\\bracefrac":Qr=!1,pn="\\{",In="\\}";break;case"\\\\brackfrac":Qr=!1,pn="[",In="]";break;default:throw new Error("Unrecognized genfrac command")}switch(Qe){case"\\cfrac":case"\\dfrac":case"\\dbinom":li="display";break;case"\\tfrac":case"\\tbinom":li="text";break}return{type:"genfrac",mode:Le.mode,continued:Qe==="\\cfrac",numer:Rt,denom:lr,hasBarLine:Qr,leftDelim:pn,rightDelim:In,size:li,barSize:null}},htmlBuilder:nn,mathmlBuilder:Wn}),Lt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler:function(ce){var Ee=ce.parser,Le=ce.funcName,Qe=ce.token,Rt;switch(Le){case"\\over":Rt="\\frac";break;case"\\choose":Rt="\\binom";break;case"\\atop":Rt="\\\\atopfrac";break;case"\\brace":Rt="\\\\bracefrac";break;case"\\brack":Rt="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:Ee.mode,replaceWith:Rt,token:Qe}}});var si=["display","text","script","scriptscript"],ui=function(ce){var Ee=null;return ce.length>0&&(Ee=ce,Ee=Ee==="."?null:Ee),Ee};Lt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,greediness:6,argTypes:["math","math","size","text","math","math"]},handler:function(ce,Ee){var Le=ce.parser,Qe=Ee[4],Rt=Ee[5],lr=bn(Ee[0],"atom");lr&&(lr=rn(Ee[0],"open"));var Qr=lr?ui(lr.text):null,pn=bn(Ee[1],"atom");pn&&(pn=rn(Ee[1],"close"));var In=pn?ui(pn.text):null,li=Rn(Ee[2],"size"),bi,Ai=null;li.isBlank?bi=!0:(Ai=li.value,bi=Ai.number>0);var Yi="auto",ua=bn(Ee[3],"ordgroup");if(ua){if(ua.body.length>0){var Va=Rn(ua.body[0],"textord");Yi=si[Number(Va.text)]}}else ua=Rn(Ee[3],"textord"),Yi=si[Number(ua.text)];return{type:"genfrac",mode:Le.mode,numer:Qe,denom:Rt,continued:!1,hasBarLine:bi,barSize:Ai,leftDelim:Qr,rightDelim:In,size:Yi}},htmlBuilder:nn,mathmlBuilder:Wn}),Lt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler:function(ce,Ee){var Le=ce.parser,Qe=ce.funcName,Rt=ce.token;return{type:"infix",mode:Le.mode,replaceWith:"\\\\abovefrac",size:Rn(Ee[0],"size").value,token:Rt}}}),Lt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:function(ce,Ee){var Le=ce.parser,Qe=ce.funcName,Rt=Ee[0],lr=h(Rn(Ee[1],"infix").size),Qr=Ee[2],pn=lr.number>0;return{type:"genfrac",mode:Le.mode,numer:Rt,denom:Qr,continued:!1,hasBarLine:pn,barSize:lr,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:nn,mathmlBuilder:Wn});var ai=function(ce,Ee){var Le=Ee.style,Qe,Rt,lr=bn(ce,"supsub");lr?(Qe=lr.sup?xi(lr.sup,Ee.havingStyle(Le.sup()),Ee):xi(lr.sub,Ee.havingStyle(Le.sub()),Ee),Rt=Rn(lr.base,"horizBrace")):Rt=Rn(ce,"horizBrace");var Qr=xi(Rt.base,Ee.havingBaseStyle(U.DISPLAY)),pn=Tn.svgSpan(Rt,Ee),In;if(Rt.isOver?(In=Mr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Qr},{type:"kern",size:.1},{type:"elem",elem:pn}]},Ee),In.children[0].children[0].children[1].classes.push("svg-align")):(In=Mr.makeVList({positionType:"bottom",positionData:Qr.depth+.1+pn.height,children:[{type:"elem",elem:pn},{type:"kern",size:.1},{type:"elem",elem:Qr}]},Ee),In.children[0].children[0].children[0].classes.push("svg-align")),Qe){var li=Mr.makeSpan(["mord",Rt.isOver?"mover":"munder"],[In],Ee);Rt.isOver?In=Mr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:li},{type:"kern",size:.2},{type:"elem",elem:Qe}]},Ee):In=Mr.makeVList({positionType:"bottom",positionData:li.depth+.2+Qe.height+Qe.depth,children:[{type:"elem",elem:Qe},{type:"kern",size:.2},{type:"elem",elem:li}]},Ee)}return Mr.makeSpan(["mord",Rt.isOver?"mover":"munder"],[In],Ee)},Ei=function(ce,Ee){var Le=Tn.mathMLnode(ce.label);return new yi.MathNode(ce.isOver?"mover":"munder",[kr(ce.base,Ee),Le])};Lt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler:function(ce,Ee){var Le=ce.parser,Qe=ce.funcName;return{type:"horizBrace",mode:Le.mode,label:Qe,isOver:/^\\over/.test(Qe),base:Ee[0]}},htmlBuilder:ai,mathmlBuilder:Ei}),Lt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:function(ce,Ee){var Le=ce.parser,Qe=Ee[1],Rt=Rn(Ee[0],"url").url;return Le.settings.isTrusted({command:"\\href",url:Rt})?{type:"href",mode:Le.mode,href:Rt,body:vr(Qe)}:Le.formatUnsupportedCmd("\\href")},htmlBuilder:function(ce,Ee){var Le=mn(ce.body,Ee,!1);return Mr.makeAnchor(ce.href,[],Le,Ee)},mathmlBuilder:function(ce,Ee){var Le=ca(ce.body,Ee);return Le instanceof ma||(Le=new ma("mrow",[Le])),Le.setAttribute("href",ce.href),Le}}),Lt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:function(ce,Ee){var Le=ce.parser,Qe=Rn(Ee[0],"url").url;if(!Le.settings.isTrusted({command:"\\url",url:Qe}))return Le.formatUnsupportedCmd("\\url");for(var Rt=[],lr=0;lr<Qe.length;lr++){var Qr=Qe[lr];Qr==="~"&&(Qr="\\textasciitilde"),Rt.push({type:"textord",mode:"text",text:Qr})}var pn={type:"text",mode:Le.mode,font:"\\texttt",body:Rt};return{type:"href",mode:Le.mode,href:Qe,body:vr(pn)}}}),Lt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:function(ce,Ee){var Le=ce.parser;return{type:"htmlmathml",mode:Le.mode,html:vr(Ee[0]),mathml:vr(Ee[1])}},htmlBuilder:function(ce,Ee){var Le=mn(ce.html,Ee,!1);return Mr.makeFragment(Le)},mathmlBuilder:function(ce,Ee){return ca(ce.mathml,Ee)}});var gi=function(ce){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(ce))return{number:+ce,unit:"bp"};var Ee=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(ce);if(!Ee)throw new l("Invalid size: '"+ce+"' in \\includegraphics");var Le={number:+(Ee[1]+Ee[2]),unit:Ee[3]};if(!Hr(Le))throw new l("Invalid unit: '"+Le.unit+"' in \\includegraphics.");return Le};Lt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:function(ce,Ee,Le){var Qe=ce.parser,Rt={number:0,unit:"em"},lr={number:.9,unit:"em"},Qr={number:0,unit:"em"},pn="";if(Le[0])for(var In=Rn(Le[0],"raw").string,li=In.split(","),bi=0;bi<li.length;bi++){var Ai=li[bi].split("=");if(Ai.length===2){var Yi=Ai[1].trim();switch(Ai[0].trim()){case"alt":pn=Yi;break;case"width":Rt=gi(Yi);break;case"height":lr=gi(Yi);break;case"totalheight":Qr=gi(Yi);break;default:throw new l("Invalid key: '"+Ai[0]+"' in \\includegraphics.")}}}var ua=Rn(Ee[0],"url").url;return pn===""&&(pn=ua,pn=pn.replace(/^.*[\\/]/,""),pn=pn.substring(0,pn.lastIndexOf("."))),Qe.settings.isTrusted({command:"\\includegraphics",url:ua})?{type:"includegraphics",mode:Qe.mode,alt:pn,width:Rt,height:lr,totalheight:Qr,src:ua}:Qe.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:function(ce,Ee){var Le=Ir(ce.height,Ee),Qe=0;ce.totalheight.number>0&&(Qe=Ir(ce.totalheight,Ee)-Le,Qe=Number(Qe.toFixed(2)));var Rt=0;ce.width.number>0&&(Rt=Ir(ce.width,Ee));var lr={height:Le+Qe+"em"};Rt>0&&(lr.width=Rt+"em"),Qe>0&&(lr.verticalAlign=-Qe+"em");var Qr=new fe(ce.src,ce.alt,lr);return Qr.height=Le,Qr.depth=Qe,Qr},mathmlBuilder:function(ce,Ee){var Le=new yi.MathNode("mglyph",[]);Le.setAttribute("alt",ce.alt);var Qe=Ir(ce.height,Ee),Rt=0;if(ce.totalheight.number>0&&(Rt=Ir(ce.totalheight,Ee)-Qe,Rt=Rt.toFixed(2),Le.setAttribute("valign","-"+Rt+"em")),Le.setAttribute("height",Qe+Rt+"em"),ce.width.number>0){var lr=Ir(ce.width,Ee);Le.setAttribute("width",lr+"em")}return Le.setAttribute("src",ce.src),Le}}),Lt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],allowedInText:!0},handler:function(ce,Ee){var Le=ce.parser,Qe=ce.funcName,Rt=Rn(Ee[0],"size");if(Le.settings.strict){var lr=Qe[1]==="m",Qr=Rt.value.unit==="mu";lr?(Qr||Le.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Qe+" supports only mu units, "+("not "+Rt.value.unit+" units")),Le.mode!=="math"&&Le.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Qe+" works only in math mode")):Qr&&Le.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+Qe+" doesn't support mu units")}return{type:"kern",mode:Le.mode,dimension:Rt.value}},htmlBuilder:function(ce,Ee){return Mr.makeGlue(ce.dimension,Ee)},mathmlBuilder:function(ce,Ee){var Le=Ir(ce.dimension,Ee);return new yi.SpaceNode(Le)}}),Lt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:function(ce,Ee){var Le=ce.parser,Qe=ce.funcName,Rt=Ee[0];return{type:"lap",mode:Le.mode,alignment:Qe.slice(5),body:Rt}},htmlBuilder:function(ce,Ee){var Le;ce.alignment==="clap"?(Le=Mr.makeSpan([],[xi(ce.body,Ee)]),Le=Mr.makeSpan(["inner"],[Le],Ee)):Le=Mr.makeSpan(["inner"],[xi(ce.body,Ee)]);var Qe=Mr.makeSpan(["fix"],[]),Rt=Mr.makeSpan([ce.alignment],[Le,Qe],Ee),lr=Mr.makeSpan(["strut"]);return lr.style.height=Rt.height+Rt.depth+"em",lr.style.verticalAlign=-Rt.depth+"em",Rt.children.unshift(lr),Rt=Mr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Rt}]},Ee),Mr.makeSpan(["mord"],[Rt],Ee)},mathmlBuilder:function(ce,Ee){var Le=new yi.MathNode("mpadded",[kr(ce.body,Ee)]);if(ce.alignment!=="rlap"){var Qe=ce.alignment==="llap"?"-1":"-0.5";Le.setAttribute("lspace",Qe+"width")}return Le.setAttribute("width","0px"),Le}}),Lt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ce,Ee){var Le=ce.funcName,Qe=ce.parser,Rt=Qe.mode;Qe.switchMode("math");var lr=Le==="\\("?"\\)":"$",Qr=Qe.parseExpression(!1,lr);return Qe.expect(lr),Qe.switchMode(Rt),{type:"styling",mode:Qe.mode,style:"text",body:Qr}}}),Lt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler:function(ce,Ee){throw new l("Mismatched "+ce.funcName)}});var Ti=function(ce,Ee){switch(Ee.style.size){case U.DISPLAY.size:return ce.display;case U.TEXT.size:return ce.text;case U.SCRIPT.size:return ce.script;case U.SCRIPTSCRIPT.size:return ce.scriptscript;default:return ce.text}};Lt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4},handler:function(ce,Ee){var Le=ce.parser;return{type:"mathchoice",mode:Le.mode,display:vr(Ee[0]),text:vr(Ee[1]),script:vr(Ee[2]),scriptscript:vr(Ee[3])}},htmlBuilder:function(ce,Ee){var Le=Ti(ce,Ee),Qe=mn(Le,Ee,!1);return Mr.makeFragment(Qe)},mathmlBuilder:function(ce,Ee){var Le=Ti(ce,Ee);return ca(Le,Ee)}});var _i=function(ce,Ee,Le,Qe,Rt,lr,Qr){ce=Mr.makeSpan([],[ce]);var pn,In;if(Ee){var li=xi(Ee,Qe.havingStyle(Rt.sup()),Qe);In={elem:li,kern:Math.max(Qe.fontMetrics().bigOpSpacing1,Qe.fontMetrics().bigOpSpacing3-li.depth)}}if(Le){var bi=xi(Le,Qe.havingStyle(Rt.sub()),Qe);pn={elem:bi,kern:Math.max(Qe.fontMetrics().bigOpSpacing2,Qe.fontMetrics().bigOpSpacing4-bi.height)}}var Ai;if(In&&pn){var Yi=Qe.fontMetrics().bigOpSpacing5+pn.elem.height+pn.elem.depth+pn.kern+ce.depth+Qr;Ai=Mr.makeVList({positionType:"bottom",positionData:Yi,children:[{type:"kern",size:Qe.fontMetrics().bigOpSpacing5},{type:"elem",elem:pn.elem,marginLeft:-lr+"em"},{type:"kern",size:pn.kern},{type:"elem",elem:ce},{type:"kern",size:In.kern},{type:"elem",elem:In.elem,marginLeft:lr+"em"},{type:"kern",size:Qe.fontMetrics().bigOpSpacing5}]},Qe)}else if(pn){var ua=ce.height-Qr;Ai=Mr.makeVList({positionType:"top",positionData:ua,children:[{type:"kern",size:Qe.fontMetrics().bigOpSpacing5},{type:"elem",elem:pn.elem,marginLeft:-lr+"em"},{type:"kern",size:pn.kern},{type:"elem",elem:ce}]},Qe)}else if(In){var Va=ce.depth+Qr;Ai=Mr.makeVList({positionType:"bottom",positionData:Va,children:[{type:"elem",elem:ce},{type:"kern",size:In.kern},{type:"elem",elem:In.elem,marginLeft:lr+"em"},{type:"kern",size:Qe.fontMetrics().bigOpSpacing5}]},Qe)}else return ce;return Mr.makeSpan(["mop","op-limits"],[Ai],Qe)},ia=["\\smallint"],Fi=function(ce,Ee){var Le,Qe,Rt=!1,lr,Qr=bn(ce,"supsub");Qr?(Le=Qr.sup,Qe=Qr.sub,lr=Rn(Qr.base,"op"),Rt=!0):lr=Rn(ce,"op");var pn=Ee.style,In=!1;pn.size===U.DISPLAY.size&&lr.symbol&&!v.contains(ia,lr.name)&&(In=!0);var li;if(lr.symbol){var bi=In?"Size2-Regular":"Size1-Regular",Ai="";if((lr.name==="\\oiint"||lr.name==="\\oiiint")&&(Ai=lr.name.substr(1),lr.name=Ai==="oiint"?"\\iint":"\\iiint"),li=Mr.makeSymbol(lr.name,bi,"math",Ee,["mop","op-symbol",In?"large-op":"small-op"]),Ai.length>0){var Yi=li.italic,ua=Mr.staticSvg(Ai+"Size"+(In?"2":"1"),Ee);li=Mr.makeVList({positionType:"individualShift",children:[{type:"elem",elem:li,shift:0},{type:"elem",elem:ua,shift:In?.08:0}]},Ee),lr.name="\\"+Ai,li.classes.unshift("mop"),li.italic=Yi}}else if(lr.body){var Va=mn(lr.body,Ee,!0);Va.length===1&&Va[0]instanceof Ce?(li=Va[0],li.classes[0]="mop"):li=Mr.makeSpan(["mop"],Mr.tryCombineChars(Va),Ee)}else{for(var ro=[],So=1;So<lr.name.length;So++)ro.push(Mr.mathsym(lr.name[So],lr.mode,Ee));li=Mr.makeSpan(["mop"],ro,Ee)}var Ro=0,jo=0;return(li instanceof Ce||lr.name==="\\oiint"||lr.name==="\\oiiint")&&!lr.suppressBaseShift&&(Ro=(li.height-li.depth)/2-Ee.fontMetrics().axisHeight,jo=li.italic),Rt?_i(li,Le,Qe,Ee,pn,jo,Ro):(Ro&&(li.style.position="relative",li.style.top=Ro+"em"),li)},fa=function(ce,Ee){var Le;if(ce.symbol)Le=new ma("mo",[Ln(ce.name,ce.mode)]),v.contains(ia,ce.name)&&Le.setAttribute("largeop","false");else if(ce.body)Le=new ma("mo",ea(ce.body,Ee));else{Le=new ma("mi",[new na(ce.name.slice(1))]);var Qe=new ma("mo",[Ln("\u2061","text")]);ce.parentIsSupSub?Le=new ma("mo",[Le,Qe]):Le=aa([Le,Qe])}return Le},za={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};Lt({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,Ee){var Le=ce.parser,Qe=ce.funcName,Rt=Qe;return Rt.length===1&&(Rt=za[Rt]),{type:"op",mode:Le.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:Rt}},htmlBuilder:Fi,mathmlBuilder:fa}),Lt({type:"op",names:["\\mathop"],props:{numArgs:1},handler:function(ce,Ee){var Le=ce.parser,Qe=Ee[0];return{type:"op",mode:Le.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:vr(Qe)}},htmlBuilder:Fi,mathmlBuilder:fa});var Ca={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};Lt({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 Ee=ce.parser,Le=ce.funcName;return{type:"op",mode:Ee.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:Le}},htmlBuilder:Fi,mathmlBuilder:fa}),Lt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler:function(ce){var Ee=ce.parser,Le=ce.funcName;return{type:"op",mode:Ee.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:Le}},htmlBuilder:Fi,mathmlBuilder:fa}),Lt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler:function(ce){var Ee=ce.parser,Le=ce.funcName,Qe=Le;return Qe.length===1&&(Qe=Ca[Qe]),{type:"op",mode:Ee.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:Qe}},htmlBuilder:Fi,mathmlBuilder:fa});var xa=function(ce,Ee){var Le,Qe,Rt=!1,lr,Qr=bn(ce,"supsub");Qr?(Le=Qr.sup,Qe=Qr.sub,lr=Rn(Qr.base,"operatorname"),Rt=!0):lr=Rn(ce,"operatorname");var pn;if(lr.body.length>0){for(var In=lr.body.map(function(Yi){var ua=Yi.text;return typeof ua=="string"?{type:"textord",mode:Yi.mode,text:ua}:Yi}),li=mn(In,Ee.withFont("mathrm"),!0),bi=0;bi<li.length;bi++){var Ai=li[bi];Ai instanceof Ce&&(Ai.text=Ai.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}pn=Mr.makeSpan(["mop"],li,Ee)}else pn=Mr.makeSpan(["mop"],[],Ee);return Rt?_i(pn,Le,Qe,Ee,Ee.style,0,0):pn},Ma=function(ce,Ee){for(var Le=ea(ce.body,Ee.withFont("mathrm")),Qe=!0,Rt=0;Rt<Le.length;Rt++){var lr=Le[Rt];if(!(lr instanceof yi.SpaceNode))if(lr instanceof yi.MathNode)switch(lr.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Qr=lr.children[0];lr.children.length===1&&Qr instanceof yi.TextNode?Qr.text=Qr.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):Qe=!1;break}default:Qe=!1}else Qe=!1}if(Qe){var pn=Le.map(function(bi){return bi.toText()}).join("");Le=[new yi.TextNode(pn)]}var In=new yi.MathNode("mi",Le);In.setAttribute("mathvariant","normal");var li=new yi.MathNode("mo",[Ln("\u2061","text")]);return ce.parentIsSupSub?new yi.MathNode("mo",[In,li]):yi.newDocumentFragment([In,li])};Lt({type:"operatorname",names:["\\operatorname","\\operatorname*"],props:{numArgs:1},handler:function(ce,Ee){var Le=ce.parser,Qe=ce.funcName,Rt=Ee[0];return{type:"operatorname",mode:Le.mode,body:vr(Rt),alwaysHandleSupSub:Qe==="\\operatorname*",limits:!1,parentIsSupSub:!1}},htmlBuilder:xa,mathmlBuilder:Ma}),cr({type:"ordgroup",htmlBuilder:function(ce,Ee){return ce.semisimple?Mr.makeFragment(mn(ce.body,Ee,!1)):Mr.makeSpan(["mord"],mn(ce.body,Ee,!0),Ee)},mathmlBuilder:function(ce,Ee){return ca(ce.body,Ee,!0)}}),Lt({type:"overline",names:["\\overline"],props:{numArgs:1},handler:function(ce,Ee){var Le=ce.parser,Qe=Ee[0];return{type:"overline",mode:Le.mode,body:Qe}},htmlBuilder:function(ce,Ee){var Le=xi(ce.body,Ee.havingCrampedStyle()),Qe=Mr.makeLineSpan("overline-line",Ee),Rt=Ee.fontMetrics().defaultRuleThickness,lr=Mr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Le},{type:"kern",size:3*Rt},{type:"elem",elem:Qe},{type:"kern",size:Rt}]},Ee);return Mr.makeSpan(["mord","overline"],[lr],Ee)},mathmlBuilder:function(ce,Ee){var Le=new yi.MathNode("mo",[new yi.TextNode("\u203E")]);Le.setAttribute("stretchy","true");var Qe=new yi.MathNode("mover",[kr(ce.body,Ee),Le]);return Qe.setAttribute("accent","true"),Qe}}),Lt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:function(ce,Ee){var Le=ce.parser,Qe=Ee[0];return{type:"phantom",mode:Le.mode,body:vr(Qe)}},htmlBuilder:function(ce,Ee){var Le=mn(ce.body,Ee.withPhantom(),!1);return Mr.makeFragment(Le)},mathmlBuilder:function(ce,Ee){var Le=ea(ce.body,Ee);return new yi.MathNode("mphantom",Le)}}),Lt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ce,Ee){var Le=ce.parser,Qe=Ee[0];return{type:"hphantom",mode:Le.mode,body:Qe}},htmlBuilder:function(ce,Ee){var Le=Mr.makeSpan([],[xi(ce.body,Ee.withPhantom())]);if(Le.height=0,Le.depth=0,Le.children)for(var Qe=0;Qe<Le.children.length;Qe++)Le.children[Qe].height=0,Le.children[Qe].depth=0;return Le=Mr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Le}]},Ee),Mr.makeSpan(["mord"],[Le],Ee)},mathmlBuilder:function(ce,Ee){var Le=ea(vr(ce.body),Ee),Qe=new yi.MathNode("mphantom",Le),Rt=new yi.MathNode("mpadded",[Qe]);return Rt.setAttribute("height","0px"),Rt.setAttribute("depth","0px"),Rt}}),Lt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:function(ce,Ee){var Le=ce.parser,Qe=Ee[0];return{type:"vphantom",mode:Le.mode,body:Qe}},htmlBuilder:function(ce,Ee){var Le=Mr.makeSpan(["inner"],[xi(ce.body,Ee.withPhantom())]),Qe=Mr.makeSpan(["fix"],[]);return Mr.makeSpan(["mord","rlap"],[Le,Qe],Ee)},mathmlBuilder:function(ce,Ee){var Le=ea(vr(ce.body),Ee),Qe=new yi.MathNode("mphantom",Le),Rt=new yi.MathNode("mpadded",[Qe]);return Rt.setAttribute("width","0px"),Rt}}),Lt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler:function(ce,Ee){var Le=ce.parser,Qe=Rn(Ee[0],"size").value,Rt=Ee[1];return{type:"raisebox",mode:Le.mode,dy:Qe,body:Rt}},htmlBuilder:function(ce,Ee){var Le=xi(ce.body,Ee),Qe=Ir(ce.dy,Ee);return Mr.makeVList({positionType:"shift",positionData:-Qe,children:[{type:"elem",elem:Le}]},Ee)},mathmlBuilder:function(ce,Ee){var Le=new yi.MathNode("mpadded",[kr(ce.body,Ee)]),Qe=ce.dy.number+ce.dy.unit;return Le.setAttribute("voffset",Qe),Le}}),Lt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler:function(ce,Ee,Le){var Qe=ce.parser,Rt=Le[0],lr=Rn(Ee[0],"size"),Qr=Rn(Ee[1],"size");return{type:"rule",mode:Qe.mode,shift:Rt&&Rn(Rt,"size").value,width:lr.value,height:Qr.value}},htmlBuilder:function(ce,Ee){var Le=Mr.makeSpan(["mord","rule"],[],Ee),Qe=Ir(ce.width,Ee),Rt=Ir(ce.height,Ee),lr=ce.shift?Ir(ce.shift,Ee):0;return Le.style.borderRightWidth=Qe+"em",Le.style.borderTopWidth=Rt+"em",Le.style.bottom=lr+"em",Le.width=Qe,Le.height=Rt+lr,Le.depth=-lr,Le.maxFontSize=Rt*1.125*Ee.sizeMultiplier,Le},mathmlBuilder:function(ce,Ee){var Le=Ir(ce.width,Ee),Qe=Ir(ce.height,Ee),Rt=ce.shift?Ir(ce.shift,Ee):0,lr=Ee.color&&Ee.getColor()||"black",Qr=new yi.MathNode("mspace");Qr.setAttribute("mathbackground",lr),Qr.setAttribute("width",Le+"em"),Qr.setAttribute("height",Qe+"em");var pn=new yi.MathNode("mpadded",[Qr]);return Rt>=0?pn.setAttribute("height","+"+Rt+"em"):(pn.setAttribute("height",Rt+"em"),pn.setAttribute("depth","+"+-Rt+"em")),pn.setAttribute("voffset",Rt+"em"),pn}});function Pa(Nt,ce,Ee){for(var Le=mn(Nt,ce,!1),Qe=ce.sizeMultiplier/Ee.sizeMultiplier,Rt=0;Rt<Le.length;Rt++){var lr=Le[Rt].classes.indexOf("sizing");lr<0?Array.prototype.push.apply(Le[Rt].classes,ce.sizingClasses(Ee)):Le[Rt].classes[lr+1]==="reset-size"+ce.size&&(Le[Rt].classes[lr+1]="reset-size"+Ee.size),Le[Rt].height*=Qe,Le[Rt].depth*=Qe}return Mr.makeFragment(Le)}var Wo=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Oo=function(ce,Ee){var Le=Ee.havingSize(ce.size);return Pa(ce.body,Le,Ee)};Lt({type:"sizing",names:Wo,props:{numArgs:0,allowedInText:!0},handler:function(ce,Ee){var Le=ce.breakOnTokenText,Qe=ce.funcName,Rt=ce.parser,lr=Rt.parseExpression(!1,Le);return{type:"sizing",mode:Rt.mode,size:Wo.indexOf(Qe)+1,body:lr}},htmlBuilder:Oo,mathmlBuilder:function(ce,Ee){var Le=Ee.havingSize(ce.size),Qe=ea(ce.body,Le),Rt=new yi.MathNode("mstyle",Qe);return Rt.setAttribute("mathsize",Le.sizeMultiplier+"em"),Rt}}),Lt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:function(ce,Ee,Le){var Qe=ce.parser,Rt=!1,lr=!1,Qr=Le[0]&&Rn(Le[0],"ordgroup");if(Qr)for(var pn="",In=0;In<Qr.body.length;++In){var li=Qr.body[In];if(pn=li.text,pn==="t")Rt=!0;else if(pn==="b")lr=!0;else{Rt=!1,lr=!1;break}}else Rt=!0,lr=!0;var bi=Ee[0];return{type:"smash",mode:Qe.mode,body:bi,smashHeight:Rt,smashDepth:lr}},htmlBuilder:function(ce,Ee){var Le=Mr.makeSpan([],[xi(ce.body,Ee)]);if(!ce.smashHeight&&!ce.smashDepth)return Le;if(ce.smashHeight&&(Le.height=0,Le.children))for(var Qe=0;Qe<Le.children.length;Qe++)Le.children[Qe].height=0;if(ce.smashDepth&&(Le.depth=0,Le.children))for(var Rt=0;Rt<Le.children.length;Rt++)Le.children[Rt].depth=0;var lr=Mr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Le}]},Ee);return Mr.makeSpan(["mord"],[lr],Ee)},mathmlBuilder:function(ce,Ee){var Le=new yi.MathNode("mpadded",[kr(ce.body,Ee)]);return ce.smashHeight&&Le.setAttribute("height","0px"),ce.smashDepth&&Le.setAttribute("depth","0px"),Le}}),Lt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler:function(ce,Ee,Le){var Qe=ce.parser,Rt=Le[0],lr=Ee[0];return{type:"sqrt",mode:Qe.mode,body:lr,index:Rt}},htmlBuilder:function(ce,Ee){var Le=xi(ce.body,Ee.havingCrampedStyle());Le.height===0&&(Le.height=Ee.fontMetrics().xHeight),Le=Mr.wrapFragment(Le,Ee);var Qe=Ee.fontMetrics(),Rt=Qe.defaultRuleThickness,lr=Rt;Ee.style.id<U.TEXT.id&&(lr=Ee.fontMetrics().xHeight);var Qr=Rt+lr/4,pn=Le.height+Le.depth+Qr+Rt,In=ao.sqrtImage(pn,Ee),li=In.span,bi=In.ruleWidth,Ai=In.advanceWidth,Yi=li.height-bi;Yi>Le.height+Le.depth+Qr&&(Qr=(Qr+Yi-Le.height-Le.depth)/2);var ua=li.height-Le.height-Qr-bi;Le.style.paddingLeft=Ai+"em";var Va=Mr.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:Le,wrapperClasses:["svg-align"]},{type:"kern",size:-(Le.height+ua)},{type:"elem",elem:li},{type:"kern",size:bi}]},Ee);if(ce.index){var ro=Ee.havingStyle(U.SCRIPTSCRIPT),So=xi(ce.index,ro,Ee),Ro=.6*(Va.height-Va.depth),jo=Mr.makeVList({positionType:"shift",positionData:-Ro,children:[{type:"elem",elem:So}]},Ee),Cs=Mr.makeSpan(["root"],[jo]);return Mr.makeSpan(["mord","sqrt"],[Cs,Va],Ee)}else return Mr.makeSpan(["mord","sqrt"],[Va],Ee)},mathmlBuilder:function(ce,Ee){var Le=ce.body,Qe=ce.index;return Qe?new yi.MathNode("mroot",[kr(Le,Ee),kr(Qe,Ee)]):new yi.MathNode("msqrt",[kr(Le,Ee)])}});var pa={display:U.DISPLAY,text:U.TEXT,script:U.SCRIPT,scriptscript:U.SCRIPTSCRIPT};Lt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0},handler:function(ce,Ee){var Le=ce.breakOnTokenText,Qe=ce.funcName,Rt=ce.parser,lr=Rt.parseExpression(!0,Le),Qr=Qe.slice(1,Qe.length-5);return{type:"styling",mode:Rt.mode,style:Qr,body:lr}},htmlBuilder:function(ce,Ee){var Le=pa[ce.style],Qe=Ee.havingStyle(Le).withFont("");return Pa(ce.body,Qe,Ee)},mathmlBuilder:function(ce,Ee){var Le=pa[ce.style],Qe=Ee.havingStyle(Le),Rt=ea(ce.body,Qe),lr=new yi.MathNode("mstyle",Rt),Qr={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},pn=Qr[ce.style];return lr.setAttribute("scriptlevel",pn[0]),lr.setAttribute("displaystyle",pn[1]),lr}});var Sa=function(ce,Ee){var Le=ce.base;if(Le)if(Le.type==="op"){var Qe=Le.limits&&(Ee.style.size===U.DISPLAY.size||Le.alwaysHandleSupSub);return Qe?Fi:null}else if(Le.type==="operatorname"){var Rt=Le.alwaysHandleSupSub&&(Ee.style.size===U.DISPLAY.size||Le.limits);return Rt?xa:null}else{if(Le.type==="accent")return v.isCharacterBox(Le.base)?wn:null;if(Le.type==="horizBrace"){var lr=!ce.sub;return lr===Le.isOver?ai:null}else return null}else return null};cr({type:"supsub",htmlBuilder:function(ce,Ee){var Le=Sa(ce,Ee);if(Le)return Le(ce,Ee);var Qe=ce.base,Rt=ce.sup,lr=ce.sub,Qr=xi(Qe,Ee),pn,In,li=Ee.fontMetrics(),bi=0,Ai=0,Yi=Qe&&v.isCharacterBox(Qe);if(Rt){var ua=Ee.havingStyle(Ee.style.sup());pn=xi(Rt,ua,Ee),Yi||(bi=Qr.height-ua.fontMetrics().supDrop*ua.sizeMultiplier/Ee.sizeMultiplier)}if(lr){var Va=Ee.havingStyle(Ee.style.sub());In=xi(lr,Va,Ee),Yi||(Ai=Qr.depth+Va.fontMetrics().subDrop*Va.sizeMultiplier/Ee.sizeMultiplier)}var ro;Ee.style===U.DISPLAY?ro=li.sup1:Ee.style.cramped?ro=li.sup3:ro=li.sup2;var So=Ee.sizeMultiplier,Ro=.5/li.ptPerEm/So+"em",jo=null;if(In){var Cs=ce.base&&ce.base.type==="op"&&ce.base.name&&(ce.base.name==="\\oiint"||ce.base.name==="\\oiiint");(Qr instanceof Ce||Cs)&&(jo=-Qr.italic+"em")}var vs;if(pn&&In){bi=Math.max(bi,ro,pn.depth+.25*li.xHeight),Ai=Math.max(Ai,li.sub2);var os=li.defaultRuleThickness,Fo=4*os;if(bi-pn.depth-(In.height-Ai)<Fo){Ai=Fo-(bi-pn.depth)+In.height;var yo=.8*li.xHeight-(bi-pn.depth);yo>0&&(bi+=yo,Ai-=yo)}var As=[{type:"elem",elem:In,shift:Ai,marginRight:Ro,marginLeft:jo},{type:"elem",elem:pn,shift:-bi,marginRight:Ro}];vs=Mr.makeVList({positionType:"individualShift",children:As},Ee)}else if(In){Ai=Math.max(Ai,li.sub1,In.height-.8*li.xHeight);var $s=[{type:"elem",elem:In,marginLeft:jo,marginRight:Ro}];vs=Mr.makeVList({positionType:"shift",positionData:Ai,children:$s},Ee)}else if(pn)bi=Math.max(bi,ro,pn.depth+.25*li.xHeight),vs=Mr.makeVList({positionType:"shift",positionData:-bi,children:[{type:"elem",elem:pn,marginRight:Ro}]},Ee);else throw new Error("supsub must have either sup or sub.");var ys=qn(Qr,"right")||"mord";return Mr.makeSpan([ys],[Qr,Mr.makeSpan(["msupsub"],[vs])],Ee)},mathmlBuilder:function(ce,Ee){var Le=!1,Qe,Rt,lr=bn(ce.base,"horizBrace");lr&&(Rt=!!ce.sup,Rt===lr.isOver&&(Le=!0,Qe=lr.isOver)),ce.base&&(ce.base.type==="op"||ce.base.type==="operatorname")&&(ce.base.parentIsSupSub=!0);var Qr=[kr(ce.base,Ee)];ce.sub&&Qr.push(kr(ce.sub,Ee)),ce.sup&&Qr.push(kr(ce.sup,Ee));var pn;if(Le)pn=Qe?"mover":"munder";else if(ce.sub)if(ce.sup){var bi=ce.base;bi&&bi.type==="op"&&bi.limits&&Ee.style===U.DISPLAY||bi&&bi.type==="operatorname"&&bi.alwaysHandleSupSub&&(Ee.style===U.DISPLAY||bi.limits)?pn="munderover":pn="msubsup"}else{var li=ce.base;li&&li.type==="op"&&li.limits&&(Ee.style===U.DISPLAY||li.alwaysHandleSupSub)||li&&li.type==="operatorname"&&li.alwaysHandleSupSub&&(li.limits||Ee.style===U.DISPLAY)?pn="munder":pn="msub"}else{var In=ce.base;In&&In.type==="op"&&In.limits&&(Ee.style===U.DISPLAY||In.alwaysHandleSupSub)||In&&In.type==="operatorname"&&In.alwaysHandleSupSub&&(In.limits||Ee.style===U.DISPLAY)?pn="mover":pn="msup"}var Ai=new yi.MathNode(pn,Qr);return Ai}}),cr({type:"atom",htmlBuilder:function(ce,Ee){return Mr.mathsym(ce.text,ce.mode,Ee,["m"+ce.family])},mathmlBuilder:function(ce,Ee){var Le=new yi.MathNode("mo",[Ln(ce.text,ce.mode)]);if(ce.family==="bin"){var Qe=ha(ce,Ee);Qe==="bold-italic"&&Le.setAttribute("mathvariant",Qe)}else ce.family==="punct"?Le.setAttribute("separator","true"):(ce.family==="open"||ce.family==="close")&&Le.setAttribute("stretchy","false");return Le}});var Ea={mi:"italic",mn:"normal",mtext:"normal"};cr({type:"mathord",htmlBuilder:function(ce,Ee){return Mr.makeOrd(ce,Ee,"mathord")},mathmlBuilder:function(ce,Ee){var Le=new yi.MathNode("mi",[Ln(ce.text,ce.mode,Ee)]),Qe=ha(ce,Ee)||"italic";return Qe!==Ea[Le.type]&&Le.setAttribute("mathvariant",Qe),Le}}),cr({type:"textord",htmlBuilder:function(ce,Ee){return Mr.makeOrd(ce,Ee,"textord")},mathmlBuilder:function(ce,Ee){var Le=Ln(ce.text,ce.mode,Ee),Qe=ha(ce,Ee)||"normal",Rt;return ce.mode==="text"?Rt=new yi.MathNode("mtext",[Le]):/[0-9]/.test(ce.text)?Rt=new yi.MathNode("mn",[Le]):ce.text==="\\prime"?Rt=new yi.MathNode("mo",[Le]):Rt=new yi.MathNode("mi",[Le]),Qe!==Ea[Rt.type]&&Rt.setAttribute("mathvariant",Qe),Rt}});var Ka={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},so={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};cr({type:"spacing",htmlBuilder:function(ce,Ee){if(so.hasOwnProperty(ce.text)){var Le=so[ce.text].className||"";if(ce.mode==="text"){var Qe=Mr.makeOrd(ce,Ee,"textord");return Qe.classes.push(Le),Qe}else return Mr.makeSpan(["mspace",Le],[Mr.mathsym(ce.text,ce.mode,Ee)],Ee)}else{if(Ka.hasOwnProperty(ce.text))return Mr.makeSpan(["mspace",Ka[ce.text]],[],Ee);throw new l('Unknown type of space "'+ce.text+'"')}},mathmlBuilder:function(ce,Ee){var Le;if(so.hasOwnProperty(ce.text))Le=new yi.MathNode("mtext",[new yi.TextNode("\xA0")]);else{if(Ka.hasOwnProperty(ce.text))return new yi.MathNode("mspace");throw new l('Unknown type of space "'+ce.text+'"')}return Le}});var lo=function(){var ce=new yi.MathNode("mtd",[]);return ce.setAttribute("width","50%"),ce};cr({type:"tag",mathmlBuilder:function(ce,Ee){var Le=new yi.MathNode("mtable",[new yi.MathNode("mtr",[lo(),new yi.MathNode("mtd",[ca(ce.body,Ee)]),lo(),new yi.MathNode("mtd",[ca(ce.tag,Ee)])])]);return Le.setAttribute("width","100%"),Le}});var wo={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},No={"\\textbf":"textbf","\\textmd":"textmd"},cs={"\\textit":"textit","\\textup":"textup"},hs=function(ce,Ee){var Le=ce.font;return Le?wo[Le]?Ee.withTextFontFamily(wo[Le]):No[Le]?Ee.withTextFontWeight(No[Le]):Ee.withTextFontShape(cs[Le]):Ee};Lt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],greediness:2,allowedInText:!0},handler:function(ce,Ee){var Le=ce.parser,Qe=ce.funcName,Rt=Ee[0];return{type:"text",mode:Le.mode,body:vr(Rt),font:Qe}},htmlBuilder:function(ce,Ee){var Le=hs(ce,Ee),Qe=mn(ce.body,Le,!0);return Mr.makeSpan(["mord","text"],Mr.tryCombineChars(Qe),Le)},mathmlBuilder:function(ce,Ee){var Le=hs(ce,Ee);return ca(ce.body,Le)}}),Lt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler:function(ce,Ee){var Le=ce.parser;return{type:"underline",mode:Le.mode,body:Ee[0]}},htmlBuilder:function(ce,Ee){var Le=xi(ce.body,Ee),Qe=Mr.makeLineSpan("underline-line",Ee),Rt=Ee.fontMetrics().defaultRuleThickness,lr=Mr.makeVList({positionType:"top",positionData:Le.height,children:[{type:"kern",size:Rt},{type:"elem",elem:Qe},{type:"kern",size:3*Rt},{type:"elem",elem:Le}]},Ee);return Mr.makeSpan(["mord","underline"],[lr],Ee)},mathmlBuilder:function(ce,Ee){var Le=new yi.MathNode("mo",[new yi.TextNode("\u203E")]);Le.setAttribute("stretchy","true");var Qe=new yi.MathNode("munder",[kr(ce.body,Ee),Le]);return Qe.setAttribute("accentunder","true"),Qe}}),Lt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler:function(ce,Ee,Le){throw new l("\\verb ended by end of line instead of matching delimiter")},htmlBuilder:function(ce,Ee){for(var Le=Bs(ce),Qe=[],Rt=Ee.havingStyle(Ee.style.text()),lr=0;lr<Le.length;lr++){var Qr=Le[lr];Qr==="~"&&(Qr="\\textasciitilde"),Qe.push(Mr.makeSymbol(Qr,"Typewriter-Regular",ce.mode,Rt,["mord","texttt"]))}return Mr.makeSpan(["mord","text"].concat(Rt.sizingClasses(Ee)),Mr.tryCombineChars(Qe),Rt)},mathmlBuilder:function(ce,Ee){var Le=new yi.TextNode(Bs(ce)),Qe=new yi.MathNode("mtext",[Le]);return Qe.setAttribute("mathvariant","monospace"),Qe}});var Bs=function(ce){return ce.body.replace(/ /g,ce.star?"\u2423":"\xA0")},rs=Ft,ns=rs,co=`[ \r
]`,oo="\\\\[a-zA-Z@]+",eo="\\\\[^\uD800-\uDFFF]",ss=""+oo+co+"*",xs=new RegExp("^("+oo+")"+co+"*$"),Po="[\u0300-\u036F]",el=new RegExp(Po+"+$"),zo="("+co+"+)|([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(Po+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Po+"*")+"|\\\\verb\\*([^]).*?\\3|\\\\verb([^*a-zA-Z]).*?\\4|\\\\operatorname\\*"+("|"+ss)+("|"+eo+")"),Jo=function(){function Nt(Ee,Le){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=Ee,this.settings=Le,this.tokenRegex=new RegExp(zo,"g"),this.catcodes={"%":14}}var ce=Nt.prototype;return ce.setCatcode=function(Le,Qe){this.catcodes[Le]=Qe},ce.lex=function(){var Le=this.input,Qe=this.tokenRegex.lastIndex;if(Qe===Le.length)return new f("EOF",new m(this,Qe,Qe));var Rt=this.tokenRegex.exec(Le);if(Rt===null||Rt.index!==Qe)throw new l("Unexpected character: '"+Le[Qe]+"'",new f(Le[Qe],new m(this,Qe,Qe+1)));var lr=Rt[2]||" ";if(this.catcodes[lr]===14){var Qr=Le.indexOf(`
`,this.tokenRegex.lastIndex);return Qr===-1?(this.tokenRegex.lastIndex=Le.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=Qr+1,this.lex()}var pn=lr.match(xs);return pn&&(lr=pn[1]),new f(lr,new m(this,Qe,this.tokenRegex.lastIndex))},Nt}(),ks=function(){function Nt(Ee,Le){Ee===void 0&&(Ee={}),Le===void 0&&(Le={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=Le,this.builtins=Ee,this.undefStack=[]}var ce=Nt.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 Le=this.undefStack.pop();for(var Qe in Le)Le.hasOwnProperty(Qe)&&(Le[Qe]===void 0?delete this.current[Qe]:this.current[Qe]=Le[Qe])},ce.has=function(Le){return this.current.hasOwnProperty(Le)||this.builtins.hasOwnProperty(Le)},ce.get=function(Le){return this.current.hasOwnProperty(Le)?this.current[Le]:this.builtins[Le]},ce.set=function(Le,Qe,Rt){if(Rt===void 0&&(Rt=!1),Rt){for(var lr=0;lr<this.undefStack.length;lr++)delete this.undefStack[lr][Le];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][Le]=Qe)}else{var Qr=this.undefStack[this.undefStack.length-1];Qr&&!Qr.hasOwnProperty(Le)&&(Qr[Le]=this.current[Le])}this.current[Le]=Qe},Nt}(),as={},fs=as;function Sn(Nt,ce){as[Nt]=ce}Sn("\\@firstoftwo",function(Nt){var ce=Nt.consumeArgs(2);return{tokens:ce[0],numArgs:0}}),Sn("\\@secondoftwo",function(Nt){var ce=Nt.consumeArgs(2);return{tokens:ce[1],numArgs:0}}),Sn("\\@ifnextchar",function(Nt){var ce=Nt.consumeArgs(3),Ee=Nt.future();return ce[0].length===1&&ce[0][0].text===Ee.text?{tokens:ce[1],numArgs:0}:{tokens:ce[2],numArgs:0}}),Sn("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),Sn("\\TextOrMath",function(Nt){var ce=Nt.consumeArgs(2);return Nt.mode==="text"?{tokens:ce[0],numArgs:0}:{tokens:ce[1],numArgs:0}});var Ls={"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(Nt){var ce=Nt.popToken(),Ee,Le="";if(ce.text==="'")Ee=8,ce=Nt.popToken();else if(ce.text==='"')Ee=16,ce=Nt.popToken();else if(ce.text==="`")if(ce=Nt.popToken(),ce.text[0]==="\\")Le=ce.text.charCodeAt(1);else{if(ce.text==="EOF")throw new l("\\char` missing argument");Le=ce.text.charCodeAt(0)}else Ee=10;if(Ee){if(Le=Ls[ce.text],Le==null||Le>=Ee)throw new l("Invalid base-"+Ee+" digit "+ce.text);for(var Qe;(Qe=Ls[Nt.future().text])!=null&&Qe<Ee;)Le*=Ee,Le+=Qe,Nt.popToken()}return"\\@char{"+Le+"}"});var yl=function(ce,Ee){var Le=ce.consumeArgs(1)[0];if(Le.length!==1)throw new l("\\gdef's first argument must be a macro name");var Qe=Le[0].text,Rt=0;for(Le=ce.consumeArgs(1)[0];Le.length===1&&Le[0].text==="#";){if(Le=ce.consumeArgs(1)[0],Le.length!==1)throw new l('Invalid argument number length "'+Le.length+'"');if(!/^[1-9]$/.test(Le[0].text))throw new l('Invalid argument number "'+Le[0].text+'"');if(Rt++,parseInt(Le[0].text)!==Rt)throw new l('Argument number "'+Le[0].text+'" out of order');Le=ce.consumeArgs(1)[0]}return ce.macros.set(Qe,{tokens:Le,numArgs:Rt},Ee),""};Sn("\\gdef",function(Nt){return yl(Nt,!0)}),Sn("\\def",function(Nt){return yl(Nt,!1)}),Sn("\\global",function(Nt){var ce=Nt.consumeArgs(1)[0];if(ce.length!==1)throw new l("Invalid command after \\global");var Ee=ce[0].text;if(Ee==="\\def")return yl(Nt,!0);throw new l("Invalid command '"+Ee+"' after \\global")});var Ks=function(ce,Ee,Le){var Qe=ce.consumeArgs(1)[0];if(Qe.length!==1)throw new l("\\newcommand's first argument must be a macro name");var Rt=Qe[0].text,lr=ce.isDefined(Rt);if(lr&&!Ee)throw new l("\\newcommand{"+Rt+"} attempting to redefine "+(Rt+"; use \\renewcommand"));if(!lr&&!Le)throw new l("\\renewcommand{"+Rt+"} when command "+Rt+" does not yet exist; use \\newcommand");var Qr=0;if(Qe=ce.consumeArgs(1)[0],Qe.length===1&&Qe[0].text==="["){for(var pn="",In=ce.expandNextToken();In.text!=="]"&&In.text!=="EOF";)pn+=In.text,In=ce.expandNextToken();if(!pn.match(/^\s*[0-9]+\s*$/))throw new l("Invalid number of arguments: "+pn);Qr=parseInt(pn),Qe=ce.consumeArgs(1)[0]}return ce.macros.set(Rt,{tokens:Qe,numArgs:Qr}),""};Sn("\\newcommand",function(Nt){return Ks(Nt,!1,!0)}),Sn("\\renewcommand",function(Nt){return Ks(Nt,!0,!1)}),Sn("\\providecommand",function(Nt){return Ks(Nt,!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 Ws={",":"\\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(Nt){var ce="\\dotso",Ee=Nt.expandAfterFuture().text;return Ee in Ws?ce=Ws[Ee]:Ee.substr(0,4)==="\\not"?ce="\\dotsb":Ee in Ke.math&&(v.contains(["bin","rel"],Ke.math[Ee].group)&&(ce="\\dotsb")),ce});var ps={")":!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(Nt){var ce=Nt.future().text;return ce in ps?"\\ldots\\,":"\\ldots"}),Sn("\\dotsc",function(Nt){var ce=Nt.future().text;return ce in ps&&ce!==","?"\\ldots\\,":"\\ldots"}),Sn("\\cdots",function(Nt){var ce=Nt.future().text;return ce in ps?"\\@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(Nt){if(Nt.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 Ms=pt["Main-Regular"]["T".charCodeAt(0)][1]-.7*pt["Main-Regular"]["A".charCodeAt(0)][1]+"em";Sn("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+Ms+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),Sn("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+Ms+"}{\\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 Zs={"\\relax":!0,"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},zs=function(){function Nt(Ee,Le,Qe){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=Le,this.expansionCount=0,this.feed(Ee),this.macros=new ks(fs,Le.macros),this.mode=Qe,this.stack=[]}var ce=Nt.prototype;return ce.feed=function(Le){this.lexer=new Jo(Le,this.settings)},ce.switchMode=function(Le){this.mode=Le},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(Le){this.stack.push(Le)},ce.pushTokens=function(Le){var Qe;(Qe=this.stack).push.apply(Qe,Le)},ce.consumeSpaces=function(){for(;;){var Le=this.future();if(Le.text===" ")this.stack.pop();else break}},ce.consumeArgs=function(Le){for(var Qe=[],Rt=0;Rt<Le;++Rt){this.consumeSpaces();var lr=this.popToken();if(lr.text==="{"){for(var Qr=[],pn=1;pn!==0;){var In=this.popToken();if(Qr.push(In),In.text==="{")++pn;else if(In.text==="}")--pn;else if(In.text==="EOF")throw new l("End of input in macro argument",lr)}Qr.pop(),Qr.reverse(),Qe[Rt]=Qr}else{if(lr.text==="EOF")throw new l("End of input expecting macro argument");Qe[Rt]=[lr]}}return Qe},ce.expandOnce=function(){var Le=this.popToken(),Qe=Le.text,Rt=this._getExpansion(Qe);if(Rt==null)return this.pushToken(Le),Le;if(this.expansionCount++,this.expansionCount>this.settings.maxExpand)throw new l("Too many expansions: infinite loop or need to increase maxExpand setting");var lr=Rt.tokens;if(Rt.numArgs){var Qr=this.consumeArgs(Rt.numArgs);lr=lr.slice();for(var pn=lr.length-1;pn>=0;--pn){var In=lr[pn];if(In.text==="#"){if(pn===0)throw new l("Incomplete placeholder at end of macro body",In);if(In=lr[--pn],In.text==="#")lr.splice(pn+1,1);else if(/^[1-9]$/.test(In.text)){var li;(li=lr).splice.apply(li,[pn,2].concat(Qr[+In.text-1]))}else throw new l("Not a valid argument number",In)}}}return this.pushTokens(lr),lr},ce.expandAfterFuture=function(){return this.expandOnce(),this.future()},ce.expandNextToken=function(){for(;;){var Le=this.expandOnce();if(Le instanceof f)if(Le.text==="\\relax")this.stack.pop();else return this.stack.pop()}throw new Error},ce.expandMacro=function(Le){if(!this.macros.get(Le))return;var Qe=[],Rt=this.stack.length;for(this.pushToken(new f(Le));this.stack.length>Rt;){var lr=this.expandOnce();lr instanceof f&&Qe.push(this.stack.pop())}return Qe},ce.expandMacroAsText=function(Le){var Qe=this.expandMacro(Le);return Qe&&Qe.map(function(Rt){return Rt.text}).join("")},ce._getExpansion=function(Le){var Qe=this.macros.get(Le);if(Qe==null)return Qe;var Rt=typeof Qe=="function"?Qe(this):Qe;if(typeof Rt=="string"){var lr=0;if(Rt.indexOf("#")!==-1)for(var Qr=Rt.replace(/##/g,"");Qr.indexOf("#"+(lr+1))!==-1;)++lr;for(var pn=new Jo(Rt,this.settings),In=[],li=pn.lex();li.text!=="EOF";)In.push(li),li=pn.lex();In.reverse();var bi={tokens:In,numArgs:lr};return bi}return Rt},ce.isDefined=function(Le){return this.macros.has(Le)||ns.hasOwnProperty(Le)||Ke.math.hasOwnProperty(Le)||Ke.text.hasOwnProperty(Le)||Zs.hasOwnProperty(Le)},Nt}(),Es={"\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"}},Ds={\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"},tl=function(){function Nt(Ee,Le){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 zs(Ee,Le,this.mode),this.settings=Le,this.leftrightDepth=0}var ce=Nt.prototype;return ce.expect=function(Le,Qe){if(Qe===void 0&&(Qe=!0),this.fetch().text!==Le)throw new l("Expected '"+Le+"', got '"+this.fetch().text+"'",this.fetch());Qe&&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(Le){this.mode=Le,this.gullet.switchMode(Le)},ce.parse=function(){this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");var Le=this.parseExpression(!1);return this.expect("EOF"),this.gullet.endGroup(),Le},ce.parseExpression=function(Le,Qe){for(var Rt=[];;){this.mode==="math"&&this.consumeSpaces();var lr=this.fetch();if(Nt.endOfExpression.indexOf(lr.text)!==-1)break;if(Qe&&lr.text===Qe)break;if(Le&&ns[lr.text]&&ns[lr.text].infix)break;var Qr=this.parseAtom(Qe);if(!Qr)break;Rt.push(Qr)}return this.mode==="text"&&this.formLigatures(Rt),this.handleInfixNodes(Rt)},ce.handleInfixNodes=function(Le){for(var Qe=-1,Rt,lr=0;lr<Le.length;lr++){var Qr=bn(Le[lr],"infix");if(Qr){if(Qe!==-1)throw new l("only one infix operator per group",Qr.token);Qe=lr,Rt=Qr.replaceWith}}if(Qe!==-1&&Rt){var pn,In,li=Le.slice(0,Qe),bi=Le.slice(Qe+1);li.length===1&&li[0].type==="ordgroup"?pn=li[0]:pn={type:"ordgroup",mode:this.mode,body:li},bi.length===1&&bi[0].type==="ordgroup"?In=bi[0]:In={type:"ordgroup",mode:this.mode,body:bi};var Ai;return Rt==="\\\\abovefrac"?Ai=this.callFunction(Rt,[pn,Le[Qe],In],[]):Ai=this.callFunction(Rt,[pn,In],[]),[Ai]}else return Le},ce.handleSupSubscript=function(Le){var Qe=this.fetch(),Rt=Qe.text;this.consume();var lr=this.parseGroup(Le,!1,Nt.SUPSUB_GREEDINESS,void 0,void 0,!0);if(!lr)throw new l("Expected group after '"+Rt+"'",Qe);return lr},ce.formatUnsupportedCmd=function(Le){for(var Qe=[],Rt=0;Rt<Le.length;Rt++)Qe.push({type:"textord",mode:"text",text:Le[Rt]});var lr={type:"text",mode:this.mode,body:Qe},Qr={type:"color",mode:this.mode,color:this.settings.errorColor,body:[lr]};return Qr},ce.parseAtom=function(Le){var Qe=this.parseGroup("atom",!1,null,Le);if(this.mode==="text")return Qe;for(var Rt,lr;;){this.consumeSpaces();var Qr=this.fetch();if(Qr.text==="\\limits"||Qr.text==="\\nolimits"){var pn=bn(Qe,"op");if(pn){var In=Qr.text==="\\limits";pn.limits=In,pn.alwaysHandleSupSub=!0}else if(pn=bn(Qe,"operatorname"),pn&&pn.alwaysHandleSupSub){var li=Qr.text==="\\limits";pn.limits=li}else throw new l("Limit controls must follow a math operator",Qr);this.consume()}else if(Qr.text==="^"){if(Rt)throw new l("Double superscript",Qr);Rt=this.handleSupSubscript("superscript")}else if(Qr.text==="_"){if(lr)throw new l("Double subscript",Qr);lr=this.handleSupSubscript("subscript")}else if(Qr.text==="'"){if(Rt)throw new l("Double superscript",Qr);var bi={type:"textord",mode:this.mode,text:"\\prime"},Ai=[bi];for(this.consume();this.fetch().text==="'";)Ai.push(bi),this.consume();this.fetch().text==="^"&&Ai.push(this.handleSupSubscript("superscript")),Rt={type:"ordgroup",mode:this.mode,body:Ai}}else break}return Rt||lr?{type:"supsub",mode:this.mode,base:Qe,sup:Rt,sub:lr}:Qe},ce.parseFunction=function(Le,Qe,Rt){var lr=this.fetch(),Qr=lr.text,pn=ns[Qr];if(!pn)return null;if(this.consume(),Rt!=null&&pn.greediness<=Rt)throw new l("Got function '"+Qr+"' with no arguments"+(Qe?" as "+Qe:""),lr);if(this.mode==="text"&&!pn.allowedInText)throw new l("Can't use function '"+Qr+"' in text mode",lr);if(this.mode==="math"&&pn.allowedInMath===!1)throw new l("Can't use function '"+Qr+"' in math mode",lr);var In=this.parseArguments(Qr,pn),li=In.args,bi=In.optArgs;return this.callFunction(Qr,li,bi,lr,Le)},ce.callFunction=function(Le,Qe,Rt,lr,Qr){var pn={funcName:Le,parser:this,token:lr,breakOnTokenText:Qr},In=ns[Le];if(In&&In.handler)return In.handler(pn,Qe,Rt);throw new l("No function handler for "+Le)},ce.parseArguments=function(Le,Qe){var Rt=Qe.numArgs+Qe.numOptionalArgs;if(Rt===0)return{args:[],optArgs:[]};for(var lr=Qe.greediness,Qr=[],pn=[],In=0;In<Rt;In++){var li=Qe.argTypes&&Qe.argTypes[In],bi=In<Qe.numOptionalArgs,Ai=In>0&&!bi||In===0&&!bi&&this.mode==="math",Yi=this.parseGroupOfType("argument to '"+Le+"'",li,bi,lr,Ai);if(!Yi){if(bi){pn.push(null);continue}throw new l("Expected group after '"+Le+"'",this.fetch())}(bi?pn:Qr).push(Yi)}return{args:Qr,optArgs:pn}},ce.parseGroupOfType=function(Le,Qe,Rt,lr,Qr){switch(Qe){case"color":return Qr&&this.consumeSpaces(),this.parseColorGroup(Rt);case"size":return Qr&&this.consumeSpaces(),this.parseSizeGroup(Rt);case"url":return this.parseUrlGroup(Rt,Qr);case"math":case"text":return this.parseGroup(Le,Rt,lr,void 0,Qe,Qr);case"hbox":{var pn=this.parseGroup(Le,Rt,lr,void 0,"text",Qr);if(!pn)return pn;var In={type:"styling",mode:pn.mode,body:[pn],style:"text"};return In}case"raw":{if(Qr&&this.consumeSpaces(),Rt&&this.fetch().text==="{")return null;var li=this.parseStringGroup("raw",Rt,!0);if(li)return{type:"raw",mode:"text",string:li.text};throw new l("Expected raw group",this.fetch())}case"original":case null:case void 0:return this.parseGroup(Le,Rt,lr,void 0,void 0,Qr);default:throw new l("Unknown group type as "+Le,this.fetch())}},ce.consumeSpaces=function(){for(;this.fetch().text===" ";)this.consume()},ce.parseStringGroup=function(Le,Qe,Rt){var lr=Qe?"[":"{",Qr=Qe?"]":"}",pn=this.fetch();if(pn.text!==lr){if(Qe)return null;if(Rt&&pn.text!=="EOF"&&/[^{}[\]]/.test(pn.text))return this.consume(),pn}var In=this.mode;this.mode="text",this.expect(lr);for(var li="",bi=this.fetch(),Ai=0,Yi=bi,ua;(ua=this.fetch()).text!==Qr||Rt&&Ai>0;){switch(ua.text){case"EOF":throw new l("Unexpected end of input in "+Le,bi.range(Yi,li));case lr:Ai++;break;case Qr:Ai--;break}Yi=ua,li+=Yi.text,this.consume()}return this.expect(Qr),this.mode=In,bi.range(Yi,li)},ce.parseRegexGroup=function(Le,Qe){var Rt=this.mode;this.mode="text";for(var lr=this.fetch(),Qr=lr,pn="",In;(In=this.fetch()).text!=="EOF"&&Le.test(pn+In.text);)Qr=In,pn+=Qr.text,this.consume();if(pn==="")throw new l("Invalid "+Qe+": '"+lr.text+"'",lr);return this.mode=Rt,lr.range(Qr,pn)},ce.parseColorGroup=function(Le){var Qe=this.parseStringGroup("color",Le);if(!Qe)return null;var Rt=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(Qe.text);if(!Rt)throw new l("Invalid color: '"+Qe.text+"'",Qe);var lr=Rt[0];return/^[0-9a-f]{6}$/i.test(lr)&&(lr="#"+lr),{type:"color-token",mode:this.mode,color:lr}},ce.parseSizeGroup=function(Le){var Qe,Rt=!1;if(!Le&&this.fetch().text!=="{"?Qe=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):Qe=this.parseStringGroup("size",Le),!Qe)return null;!Le&&Qe.text.length===0&&(Qe.text="0pt",Rt=!0);var lr=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(Qe.text);if(!lr)throw new l("Invalid size: '"+Qe.text+"'",Qe);var Qr={number:+(lr[1]+lr[2]),unit:lr[3]};if(!Hr(Qr))throw new l("Invalid unit: '"+Qr.unit+"'",Qe);return{type:"size",mode:this.mode,value:Qr,isBlank:Rt}},ce.parseUrlGroup=function(Le,Qe){this.gullet.lexer.setCatcode("%",13);var Rt=this.parseStringGroup("url",Le,!0);if(this.gullet.lexer.setCatcode("%",14),!Rt)return null;var lr=Rt.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:lr}},ce.parseGroup=function(Le,Qe,Rt,lr,Qr,pn){var In=this.mode;Qr&&this.switchMode(Qr),pn&&this.consumeSpaces();var li=this.fetch(),bi=li.text,Ai;if(Qe?bi==="[":bi==="{"||bi==="\\begingroup"){this.consume();var Yi=Nt.endOfGroup[bi];this.gullet.beginGroup();var ua=this.parseExpression(!1,Yi),Va=this.fetch();this.expect(Yi),this.gullet.endGroup(),Ai={type:"ordgroup",mode:this.mode,loc:m.range(li,Va),body:ua,semisimple:bi==="\\begingroup"||void 0}}else if(Qe)Ai=null;else if(Ai=this.parseFunction(lr,Le,Rt)||this.parseSymbol(),Ai==null&&bi[0]==="\\"&&!Zs.hasOwnProperty(bi)){if(this.settings.throwOnError)throw new l("Undefined control sequence: "+bi,li);Ai=this.formatUnsupportedCmd(bi),this.consume()}return Qr&&this.switchMode(In),Ai},ce.formLigatures=function(Le){for(var Qe=Le.length-1,Rt=0;Rt<Qe;++Rt){var lr=Le[Rt],Qr=lr.text;Qr==="-"&&Le[Rt+1].text==="-"&&(Rt+1<Qe&&Le[Rt+2].text==="-"?(Le.splice(Rt,3,{type:"textord",mode:"text",loc:m.range(lr,Le[Rt+2]),text:"---"}),Qe-=2):(Le.splice(Rt,2,{type:"textord",mode:"text",loc:m.range(lr,Le[Rt+1]),text:"--"}),Qe-=1)),(Qr==="'"||Qr==="`")&&Le[Rt+1].text===Qr&&(Le.splice(Rt,2,{type:"textord",mode:"text",loc:m.range(lr,Le[Rt+1]),text:Qr+Qr}),Qe-=1)}},ce.parseSymbol=function(){var Le=this.fetch(),Qe=Le.text;if(/^\\verb[^a-zA-Z]/.test(Qe)){this.consume();var Rt=Qe.slice(5),lr=Rt.charAt(0)==="*";if(lr&&(Rt=Rt.slice(1)),Rt.length<2||Rt.charAt(0)!==Rt.slice(-1))throw new l(`\\verb assertion failed --
please report what input caused this bug`);return Rt=Rt.slice(1,-1),{type:"verb",mode:"text",body:Rt,star:lr}}Ds.hasOwnProperty(Qe[0])&&!Ke[this.mode][Qe[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+Qe[0]+'" used in math mode',Le),Qe=Ds[Qe[0]]+Qe.substr(1));var Qr=el.exec(Qe);Qr&&(Qe=Qe.substring(0,Qr.index),Qe==="i"?Qe="\u0131":Qe==="j"&&(Qe="\u0237"));var pn;if(Ke[this.mode][Qe]){this.settings.strict&&this.mode==="math"&&Yt.indexOf(Qe)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+Qe[0]+'" used in math mode',Le);var In=Ke[this.mode][Qe].group,li=m.range(Le),bi;if(Dt.hasOwnProperty(In)){var Ai=In;bi={type:"atom",mode:this.mode,family:Ai,loc:li,text:Qe}}else bi={type:In,mode:this.mode,loc:li,text:Qe};pn=bi}else if(Qe.charCodeAt(0)>=128)this.settings.strict&&(te(Qe.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+Qe[0]+'" used in math mode',Le):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+Qe[0]+'"'+(" ("+Qe.charCodeAt(0)+")"),Le)),pn={type:"textord",mode:"text",loc:m.range(Le),text:Qe};else return null;if(this.consume(),Qr)for(var Yi=0;Yi<Qr[0].length;Yi++){var ua=Qr[0][Yi];if(!Es[ua])throw new l("Unknown accent ' "+ua+"'",Le);var Va=Es[ua][this.mode];if(!Va)throw new l("Accent "+ua+" unsupported in "+this.mode+" mode",Le);pn={type:"accent",mode:this.mode,loc:m.range(Le),label:Va,isStretchy:!1,isShifty:!0,base:pn}}return pn},Nt}();tl.endOfExpression=["}","\\endgroup","\\end","\\right","&"],tl.endOfGroup={"[":"]","{":"}","\\begingroup":"\\endgroup"},tl.SUPSUB_GREEDINESS=1;var Us=function(ce,Ee){if(!(typeof ce=="string"||ce instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var Le=new tl(ce,Ee);delete Le.gullet.macros.current["\\df@tag"];var Qe=Le.parse();if(Le.gullet.macros.get("\\df@tag")){if(!Ee.displayMode)throw new l("\\tag works only in display equations");Le.gullet.feed("\\df@tag"),Qe=[{type:"tag",mode:"text",body:Qe,tag:Le.parse()}]}return Qe},Go=Us,Do=function(ce,Ee,Le){Ee.textContent="";var Qe=jt(ce,Le).toNode();Ee.appendChild(Qe)};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."),Do=function(){throw new l("KaTeX doesn't work in quirks mode.")}));var Ts=function(ce,Ee){var Le=jt(ce,Ee).toMarkup();return Le},Ns=function(ce,Ee){var Le=new b(Ee);return Go(ce,Le)},Ao=function(ce,Ee,Le){if(Le.throwOnError||!(ce instanceof l))throw ce;var Qe=Mr.makeSpan(["katex-error"],[new Ce(Ee)]);return Qe.setAttribute("title",ce.toString()),Qe.setAttribute("style","color:"+Le.errorColor),Qe},jt=function(ce,Ee){var Le=new b(Ee);try{var Qe=Go(ce,Le);return Rr(Qe,ce,Le)}catch(Rt){return Ao(Rt,ce,Le)}},sr=function(ce,Ee){var Le=new b(Ee);try{var Qe=Go(ce,Le);return Gr(Qe,ce,Le)}catch(Rt){return Ao(Rt,ce,Le)}},_n={version:"0.11.1",render:Do,renderToString:Ts,ParseError:l,__parse:Ns,__renderToDomTree:jt,__renderToHTMLTree:sr,__setFontMetrics:ft,__defineSymbol:de,__defineMacro:Sn,__domTree:{Span:Y,Anchor:ee,SymbolNode:Ce,SvgNode:Te,PathNode:he,LineNode:ye}},hi=p.default=_n}]).default})},P2fV:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("Q9mQ"),A=i("+L6B"),m=i("sE09"),f=i.n(m)},P2ho:function(k,D,i){"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(k,D,i){var y=i("hydK"),p=y.createElement,S=i("IMiH"),A=i("mFDi"),m=i("Fofx"),f=i("6GrX"),d=i("pzxd"),l=i("dqUG"),o=S.CMD,n=Array.prototype.join,t="none",a=Math.round,e=Math.sin,u=Math.cos,r=Math.PI,s=Math.PI*2,c=180/r,h=1e-4;function g(Q){return a(Q*1e4)/1e4}function v(Q){return Q<h&&Q>-h}function b(Q,G){var te=G?Q.textFill:Q.fill;return te!=null&&te!==t}function w(Q,G){var te=G?Q.textStroke:Q.stroke;return te!=null&&te!==t}function x(Q,G){G&&T(Q,"transform","matrix("+n.call(G,",")+")")}function T(Q,G,te){(!te||te.type!=="linear"&&te.type!=="radial")&&Q.setAttribute(G,te)}function O(Q,G,te){Q.setAttributeNS("http://www.w3.org/1999/xlink",G,te)}function E(Q,G,te,$){if(b(G,te)){var le=te?G.textFill:G.fill;le=le==="transparent"?t:le,T(Q,"fill",le),T(Q,"fill-opacity",G.fillOpacity!=null?G.fillOpacity*G.opacity:G.opacity)}else T(Q,"fill",t);if(w(G,te)){var re=te?G.textStroke:G.stroke;re=re==="transparent"?t:re,T(Q,"stroke",re);var Se=te?G.textStrokeWidth:G.lineWidth,Re=!te&&G.strokeNoScale?$.getLineScale():1;T(Q,"stroke-width",Se/Re),T(Q,"paint-order",te?"stroke":"fill"),T(Q,"stroke-opacity",G.strokeOpacity!=null?G.strokeOpacity:G.opacity);var Pe=G.lineDash;Pe?(T(Q,"stroke-dasharray",G.lineDash.join(",")),T(Q,"stroke-dashoffset",a(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 C(Q){for(var G=[],te=Q.data,$=Q.len(),le=0;le<$;){var re=te[le++],Se="",Re=0;switch(re){case o.M:Se="M",Re=2;break;case o.L:Se="L",Re=2;break;case o.Q:Se="Q",Re=4;break;case o.C:Se="C",Re=6;break;case o.A:var Pe=te[le++],Je=te[le++],Ve=te[le++],ct=te[le++],Ue=te[le++],ue=te[le++],rt=te[le++],ge=te[le++],Z=Math.abs(ue),Y=v(Z-s)||(ge?ue>=s:-ue>=s),ee=ue>0?ue%s:ue%s+s,fe=!1;Y?fe=!0:v(Z)?fe=!1:fe=ee>=r===!!ge;var be=g(Pe+Ve*u(Ue)),Ce=g(Je+ct*e(Ue));Y&&(ge?ue=s-1e-4:ue=-s+1e-4,fe=!0,le===9&&G.push("M",be,Ce));var Te=g(Pe+Ve*u(Ue+ue)),he=g(Je+ct*e(Ue+ue));G.push("A",g(Ve),g(ct),a(rt*c),+fe,+ge,Te,he);break;case o.Z:Se="Z";break;case o.R:var Te=g(te[le++]),he=g(te[le++]),ye=g(te[le++]),Ie=g(te[le++]);G.push("M",Te,he,"L",Te+ye,he,"L",Te+ye,he+Ie,"L",Te,he+Ie,"L",Te,he);break}Se&&G.push(Se);for(var tt=0;tt<Re;tt++)G.push(g(te[le++]))}return G.join(" ")}var I={};I.brush=function(Q){var G=Q.style,te=Q.__svgEl;te||(te=p("path"),Q.__svgEl=te),Q.path||Q.createPathProxy();var $=Q.path;if(Q.__dirtyPath){$.beginPath(),$.subPixelOptimize=!1,Q.buildPath($,Q.shape),Q.__dirtyPath=!1;var le=C($);le.indexOf("NaN")<0&&T(te,"d",le)}E(te,G,!1,Q),x(te,Q.transform),G.text!=null?P(Q,Q.getBoundingRect()):V(Q)};var _={};_.brush=function(Q){var G=Q.style,te=G.image;if(te instanceof HTMLImageElement){var $=te.src;te=$}if(!te)return;var le=G.x||0,re=G.y||0,Se=G.width,Re=G.height,Pe=Q.__svgEl;Pe||(Pe=p("image"),Q.__svgEl=Pe),te!==Q.__imageSrc&&(O(Pe,"href",te),Q.__imageSrc=te),T(Pe,"width",Se),T(Pe,"height",Re),T(Pe,"x",le),T(Pe,"y",re),x(Pe,Q.transform),G.text!=null?P(Q,Q.getBoundingRect()):V(Q)};var F={},R=new A,B={},M=[],X={left:"start",right:"end",center:"middle",middle:"middle"},P=function(G,te){var $=G.style,le=G.transform,re=G instanceof l||$.transformText;G.__dirty&&d.normalizeTextStyle($,!0);var Se=$.text;if(Se!=null&&(Se+=""),!d.needDrawText(Se,$))return;Se==null&&(Se=""),!re&&le&&(R.copy(te),R.applyTransform(le),te=R);var Re=G.__textSvgEl;Re||(Re=p("text"),G.__textSvgEl=Re);var Pe=Re.style,Je=$.font||f.DEFAULT_FONT,Ve=Re.__computedFont;Je!==Re.__styleFont&&(Pe.font=Re.__styleFont=Je,Ve=Re.__computedFont=Pe.font);var ct=$.textPadding,Ue=$.textLineHeight,ue=G.__textCotentBlock;(!ue||G.__dirtyText)&&(ue=G.__textCotentBlock=f.parsePlainText(Se,Ve,ct,Ue,$.truncate));var rt=ue.outerHeight,ge=ue.lineHeight;d.getBoxPosition(B,G,$,te);var Z=B.baseX,Y=B.baseY,ee=B.textAlign||"left",fe=B.textVerticalAlign;z(Re,re,le,$,te,Z,Y);var be=f.adjustTextY(Y,rt,fe),Ce=Z,Te=be;ct&&(Ce=W(Z,ee,ct),Te+=ct[0]),Te+=ge/2,E(Re,$,!0,G);var he=ue.canCacheByTextString,ye=G.__tspanList||(G.__tspanList=[]),Ie=ye.length;if(he&&G.__canCacheByTextString&&G.__text===Se){if(G.__dirtyText&&Ie)for(var tt=0;tt<Ie;++tt)U(ye[tt],ee,Ce,Te+tt*ge)}else{G.__text=Se,G.__canCacheByTextString=he;for(var pt=ue.lines,st=pt.length,tt=0;tt<st;tt++){var Fe=ye[tt],ft=pt[tt];Fe?Fe.__zrText!==ft&&(Fe.innerHTML="",Fe.appendChild(document.createTextNode(ft))):(Fe=ye[tt]=p("tspan"),Re.appendChild(Fe),Fe.appendChild(document.createTextNode(ft))),U(Fe,ee,Ce,Te+tt*ge)}if(Ie>st){for(;tt<Ie;tt++)Re.removeChild(ye[tt]);ye.length=st}}};function z(Q,G,te,$,le,re,Se){m.identity(M),G&&te&&m.copy(M,te);var Re=$.textRotation;if(le&&Re){var Pe=$.textOrigin;Pe==="center"?(re=le.width/2+le.x,Se=le.height/2+le.y):Pe&&(re=Pe[0]+le.x,Se=Pe[1]+le.y),M[4]-=re,M[5]-=Se,m.rotate(M,M,Re),M[4]+=re,M[5]+=Se}x(Q,M)}function W(Q,G,te){return G==="right"?Q-te[1]:G==="center"?Q+te[3]/2-te[1]/2:Q+te[3]}function U(Q,G,te,$){T(Q,"dominant-baseline","middle"),T(Q,"text-anchor",X[G]),T(Q,"x",te),T(Q,"y",$)}function V(Q){Q&&Q.__textSvgEl&&(Q.__textSvgEl.parentNode&&Q.__textSvgEl.parentNode.removeChild(Q.__textSvgEl),Q.__textSvgEl=null,Q.__tspanList=[],Q.__text=null)}F.drawRectText=P,F.brush=function(Q){var G=Q.style;G.text!=null?P(Q,!1):V(Q)},D.path=I,D.image=_,D.text=F},P4Qj:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.removeSensor=D.getSensor=D.Sensors=void 0;var y=A(i("chpo")),p=i("FxDU"),S=i("24YM");function A(o){return o&&o.__esModule?o:{default:o}}var m={};D.Sensors=m;function f(o){o&&m[o]&&delete m[o]}var d=function(n){var t=n.getAttribute(S.SizeSensorId);if(t&&m[t])return m[t];var a=(0,y.default)();n.setAttribute(S.SizeSensorId,a);var e=(0,p.createSensor)(n,function(){return f(a)});return m[a]=e,e};D.getSensor=d;var l=function(n){var t=n.element.getAttribute(S.SizeSensorId);n.destroy(),f(t)};D.removeSensor=l},P5Jw:function(k,D,i){"use strict";var y=i("rHrb"),p=y.CopyToClipboard;p.CopyToClipboard=p,k.exports=p},PArb:function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("lSNA"),A=i.n(S),m=i("q1tI"),f=i.n(m),d=i("TSYQ"),l=i.n(d),o=i("H84U"),n=function(a,e){var u={};for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&e.indexOf(r)<0&&(u[r]=a[r]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,r=Object.getOwnPropertySymbols(a);s<r.length;s++)e.indexOf(r[s])<0&&Object.prototype.propertyIsEnumerable.call(a,r[s])&&(u[r[s]]=a[r[s]]);return u},t=function(e){return m.createElement(o.a,null,function(u){var r,s=u.getPrefixCls,c=u.direction,h=e.prefixCls,g=e.type,v=g===void 0?"horizontal":g,b=e.orientation,w=b===void 0?"center":b,x=e.className,T=e.children,O=e.dashed,E=e.plain,C=n(e,["prefixCls","type","orientation","className","children","dashed","plain"]),I=s("divider",h),_=w.length>0?"-".concat(w):w,F=!!T,R=l()(x,I,"".concat(I,"-").concat(v),(r={},A()(r,"".concat(I,"-with-text"),F),A()(r,"".concat(I,"-with-text").concat(_),F),A()(r,"".concat(I,"-dashed"),!!O),A()(r,"".concat(I,"-plain"),!!E),A()(r,"".concat(I,"-rtl"),c==="rtl"),r));return m.createElement("div",p()({className:R},C,{role:"separator"}),T&&m.createElement("span",{className:"".concat(I,"-inner-text")},T))})};D.a=t},PD8m:function(k,D){k.exports={name:"memoryStorage",read:y,write:p,each:S,remove:A,clearAll:m};var i={};function y(f){return i[f]}function p(f,d){i[f]=d}function S(f){for(var d in i)i.hasOwnProperty(d)&&f(i[d],d)}function A(f){delete i[f]}function m(f){i={}}},PKem:function(k,D,i){"use strict";i.d(D,"a",function(){return b});var y=i("RIqP"),p=i.n(y),S=i("lSNA"),A=i.n(S),m=i("pVnL"),f=i.n(m),d=i("lwsE"),l=i.n(d),o=i("W8MJ"),n=i.n(o),t=i("7W2i"),a=i.n(t),e=i("LQ03"),u=i.n(e),r=i("q1tI"),s=i.n(r),c=i("TSYQ"),h=i.n(c),g=i("H84U"),v=function(_,F){var R={};for(var B in _)Object.prototype.hasOwnProperty.call(_,B)&&F.indexOf(B)<0&&(R[B]=_[B]);if(_!=null&&typeof Object.getOwnPropertySymbols=="function")for(var M=0,B=Object.getOwnPropertySymbols(_);M<B.length;M++)F.indexOf(B[M])<0&&Object.prototype.propertyIsEnumerable.call(_,B[M])&&(R[B[M]]=_[B[M]]);return R},b=r.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function w(_){var F=_.suffixCls,R=_.tagName,B=_.displayName;return function(M){var X;return X=function(P){a()(W,P);var z=u()(W);function W(){var U;return l()(this,W),U=z.apply(this,arguments),U.renderComponent=function(V){var Q=V.getPrefixCls,G=U.props.prefixCls,te=Q(F,G);return r.createElement(M,f()({prefixCls:te,tagName:R},U.props))},U}return n()(W,[{key:"render",value:function(){return r.createElement(g.a,null,this.renderComponent)}}]),W}(r.Component),X.displayName=B,X}}var x=function(F){var R=F.prefixCls,B=F.className,M=F.children,X=F.tagName,P=v(F,["prefixCls","className","children","tagName"]),z=h()(R,B);return r.createElement(X,f()({className:z},P),M)},T=function(_){a()(R,_);var F=u()(R);function R(){var B;return l()(this,R),B=F.apply(this,arguments),B.state={siders:[]},B.renderComponent=function(M){var X,P=M.direction,z=B.props,W=z.prefixCls,U=z.className,V=z.children,Q=z.hasSider,G=z.tagName,te=v(z,["prefixCls","className","children","hasSider","tagName"]),$=h()(W,(X={},A()(X,"".concat(W,"-has-sider"),typeof Q=="boolean"?Q:B.state.siders.length>0),A()(X,"".concat(W,"-rtl"),P==="rtl"),X),U);return r.createElement(b.Provider,{value:{siderHook:B.getSiderHook()}},r.createElement(G,f()({className:$},te),V))},B}return n()(R,[{key:"getSiderHook",value:function(){var M=this;return{addSider:function(P){M.setState(function(z){return{siders:[].concat(p()(z.siders),[P])}})},removeSider:function(P){M.setState(function(z){return{siders:z.siders.filter(function(W){return W!==P})}})}}}},{key:"render",value:function(){return r.createElement(g.a,null,this.renderComponent)}}]),R}(r.Component),O=w({suffixCls:"layout",tagName:"section",displayName:"Layout"})(T),E=w({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(x),C=w({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(x),I=w({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(x);O.Header=E,O.Footer=C,O.Content=I,D.b=O},PNag:function(k,D,i){var y=i("bYtY"),p=i("SKnc"),S=i("YH21"),A=i("crZl"),m=i("IwbS"),f=i("OELB"),d=i("72pK"),l=i("y7Aq"),o=i("4NO4"),n=f.linearMap,t=y.each,a=Math.min,e=Math.max,u=12,r=6,s=A.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,O,E,C){(!C||C.type!=="selectDataRange"||C.from!==this.uid)&&this._buildView()},_buildView:function(){this.group.removeAll();var T=this.visualMapModel,O=this.group;this._orient=T.get("orient"),this._useHandle=T.get("calculable"),this._resetInterval(),this._renderBar(O);var E=T.get("text");this._renderEndsText(O,E,0),this._renderEndsText(O,E,1),this._updateView(!0),this.renderBackground(O),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(O)},_renderEndsText:function(T,O,E){if(!O)return;var C=O[1-E];C=C!=null?C+"":"";var I=this.visualMapModel,_=I.get("textGap"),F=I.itemSize,R=this._shapes.barGroup,B=this._applyTransform([F[0]/2,E===0?-_:F[1]+_],R),M=this._applyTransform(E===0?"bottom":"top",R),X=this._orient,P=this.visualMapModel.textStyleModel;this.group.add(new m.Text({style:{x:B[0],y:B[1],textVerticalAlign:X==="horizontal"?"middle":M,textAlign:X==="horizontal"?M:"center",text:C,textFont:P.getFont(),textFill:P.getTextColor()}}))},_renderBar:function(T){var O=this.visualMapModel,E=this._shapes,C=O.itemSize,I=this._orient,_=this._useHandle,F=l.getItemAlign(O,this.api,C),R=E.barGroup=this._createBarGroup(F);R.add(E.outOfRange=c()),R.add(E.inRange=c(null,_?w(this._orient):null,y.bind(this._dragHandle,this,"all",!1),y.bind(this._dragHandle,this,"all",!0)));var B=O.textStyleModel.getTextRect("\u56FD"),M=e(B.width,B.height);_&&(E.handleThumbs=[],E.handleLabels=[],E.handleLabelPoints=[],this._createHandle(R,0,C,M,I,F),this._createHandle(R,1,C,M,I,F)),this._createIndicator(R,C,M,I),T.add(R)},_createHandle:function(T,O,E,C,I){var _=y.bind(this._dragHandle,this,O,!1),F=y.bind(this._dragHandle,this,O,!0),R=c(h(O,C),w(this._orient),_,F);R.position[0]=E[0],T.add(R);var B=this.visualMapModel.textStyleModel,M=new m.Text({draggable:!0,drift:_,onmousemove:function(z){S.stop(z.event)},ondragend:F,style:{x:0,y:0,text:"",textFont:B.getFont(),textFill:B.getTextColor()}});this.group.add(M);var X=[I==="horizontal"?C/2:C*1.5,I==="horizontal"?O===0?-(C*1.5):C*1.5:O===0?-C/2:C/2],P=this._shapes;P.handleThumbs[O]=R,P.handleLabelPoints[O]=X,P.handleLabels[O]=M},_createIndicator:function(T,O,E,C){var I=c([[0,0]],"move");I.position[0]=O[0],I.attr({invisible:!0,silent:!0}),T.add(I);var _=this.visualMapModel.textStyleModel,F=new m.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:_.getFont(),textFill:_.getTextColor()}});this.group.add(F);var R=[C==="horizontal"?E/2:r+3,0],B=this._shapes;B.indicator=I,B.indicatorLabel=F,B.indicatorLabelPoint=R},_dragHandle:function(T,O,E,C){if(!this._useHandle)return;if(this._dragging=!O,!O){var I=this._applyTransform([E,C],this._shapes.barGroup,!0);this._updateInterval(T,I[1]),this._updateView()}O===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),O?!this._hovering&&this._clearHoverLinkToSeries():b(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[T],!1)},_resetInterval:function(){var T=this.visualMapModel,O=this._dataInterval=T.getSelected(),E=T.getExtent(),C=[0,T.itemSize[1]];this._handleEnds=[n(O[0],E,C,!0),n(O[1],E,C,!0)]},_updateInterval:function(T,O){O=O||0;var E=this.visualMapModel,C=this._handleEnds,I=[0,E.itemSize[1]];d(O,C,I,T,0);var _=E.getExtent();this._dataInterval=[n(C[0],I,_,!0),n(C[1],I,_,!0)]},_updateView:function(T){var O=this.visualMapModel,E=O.getExtent(),C=this._shapes,I=[0,O.itemSize[1]],_=T?I:this._handleEnds,F=this._createBarVisual(this._dataInterval,E,_,"inRange"),R=this._createBarVisual(E,E,I,"outOfRange");C.inRange.setStyle({fill:F.barColor,opacity:F.opacity}).setShape("points",F.barPoints),C.outOfRange.setStyle({fill:R.barColor,opacity:R.opacity}).setShape("points",R.barPoints),this._updateHandle(_,F)},_createBarVisual:function(T,O,E,C){var I={forceState:C,convertOpacityToAlpha:!0},_=this._makeColorGradient(T,I),F=[this.getControllerVisual(T[0],"symbolSize",I),this.getControllerVisual(T[1],"symbolSize",I)],R=this._createBarPoints(E,F);return{barColor:new p(0,0,0,1,_),barPoints:R,handlesColor:[_[0].color,_[_.length-1].color]}},_makeColorGradient:function(T,O){var E=100,C=[],I=(T[1]-T[0])/E;C.push({color:this.getControllerVisual(T[0],"color",O),offset:0});for(var _=1;_<E;_++){var F=T[0]+I*_;if(F>T[1])break;C.push({color:this.getControllerVisual(F,"color",O),offset:_/E})}return C.push({color:this.getControllerVisual(T[1],"color",O),offset:1}),C},_createBarPoints:function(T,O){var E=this.visualMapModel.itemSize;return[[E[0]-O[0],T[0]],[E[0],T[0]],[E[0],T[1]],[E[0]-O[1],T[1]]]},_createBarGroup:function(T){var O=this._orient,E=this.visualMapModel.get("inverse");return new m.Group(O==="horizontal"&&!E?{scale:T==="bottom"?[1,1]:[-1,1],rotation:Math.PI/2}:O==="horizontal"&&E?{scale:T==="bottom"?[-1,1]:[1,1],rotation:-Math.PI/2}:O==="vertical"&&!E?{scale:T==="left"?[1,-1]:[-1,-1]}:{scale:T==="left"?[1,1]:[-1,1]})},_updateHandle:function(T,O){if(!this._useHandle)return;var E=this._shapes,C=this.visualMapModel,I=E.handleThumbs,_=E.handleLabels;t([0,1],function(F){var R=I[F];R.setStyle("fill",O.handlesColor[F]),R.position[1]=T[F];var B=m.applyTransform(E.handleLabelPoints[F],m.getTransform(R,this.group));_[F].setStyle({x:B[0],y:B[1],text:C.formatValueText(this._dataInterval[F]),textVerticalAlign:"middle",textAlign:this._applyTransform(this._orient==="horizontal"?F===0?"bottom":"top":"left",E.barGroup)})},this)},_showIndicator:function(T,O,E,C){var I=this.visualMapModel,_=I.getExtent(),F=I.itemSize,R=[0,F[1]],B=n(T,_,R,!0),M=this._shapes,X=M.indicator;if(!X)return;X.position[1]=B,X.attr("invisible",!1),X.setShape("points",g(!!E,C,B,F[1]));var P={convertOpacityToAlpha:!0},z=this.getControllerVisual(T,"color",P);X.setStyle("fill",z);var W=m.applyTransform(M.indicatorLabelPoint,m.getTransform(X,this.group)),U=M.indicatorLabel;U.attr("invisible",!1);var V=this._applyTransform("left",M.barGroup),Q=this._orient;U.setStyle({text:(E||"")+I.formatValueText(O),textVerticalAlign:Q==="horizontal"?V:"middle",textAlign:Q==="horizontal"?"center":V,x:W[0],y:W[1]})},_enableHoverLinkToSeries:function(){var T=this;this._shapes.barGroup.on("mousemove",function(O){if(T._hovering=!0,!T._dragging){var E=T.visualMapModel.itemSize,C=T._applyTransform([O.offsetX,O.offsetY],T._shapes.barGroup,!0,!0);C[1]=a(e(0,C[1]),E[1]),T._doHoverLinkToSeries(C[1],0<=C[0]&&C[0]<=E[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,O){var E=this.visualMapModel,C=E.itemSize;if(!E.option.hoverLink)return;var I=[0,C[1]],_=E.getExtent();T=a(e(I[0],T),I[1]);var F=v(E,_,I),R=[T-F,T+F],B=n(T,I,_,!0),M=[n(R[0],I,_,!0),n(R[1],I,_,!0)];R[0]<I[0]&&(M[0]=-Infinity),R[1]>I[1]&&(M[1]=Infinity),O&&(M[0]===-Infinity?this._showIndicator(B,M[1],"< ",F):M[1]===Infinity?this._showIndicator(B,M[0],"> ",F):this._showIndicator(B,B,"\u2248 ",F));var X=this._hoverLinkDataIndices,P=[];(O||b(E))&&(P=this._hoverLinkDataIndices=E.findTargetDataIndices(M));var z=o.compressBatches(X,P);this._dispatchHighDown("downplay",l.makeHighDownBatch(z[0],E)),this._dispatchHighDown("highlight",l.makeHighDownBatch(z[1],E))},_hoverLinkFromSeriesMouseOver:function(T){var O=T.target,E=this.visualMapModel;if(!O||O.dataIndex==null)return;var C=this.ecModel.getSeriesByIndex(O.seriesIndex);if(!E.isTargetSeries(C))return;var I=C.getData(O.dataType),_=I.get(E.getDataDimension(I),O.dataIndex,!0);isNaN(_)||this._showIndicator(_,_)},_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,O,E,C){var I=m.getTransform(O,C?null:this.group);return m[y.isArray(T)?"applyTransform":"transformDirection"](T,I,E)},_dispatchHighDown:function(T,O){O&&O.length&&this.api.dispatchAction({type:T,batch:O})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});function c(T,O,E,C){return new m.Polygon({shape:{points:T},draggable:!!E,cursor:O,drift:E,onmousemove:function(I){S.stop(I.event)},ondragend:C})}function h(T,O){return T===0?[[0,0],[O,0],[O,-O]]:[[0,0],[O,0],[O,O]]}function g(T,O,E,C){return T?[[0,-a(O,e(E,0))],[r,0],[0,a(O,e(C-E,0))]]:[[0,0],[5,-5],[5,5]]}function v(T,O,E){var C=u/2,I=T.get("hoverLinkDataSize");return I&&(C=n(I,O,E,!0)/2),C}function b(T){var O=T.get("hoverLinkOnHandle");return!!(O==null?T.get("realtime"):O)}function w(T){return T==="vertical"?"ns-resize":"ew-resize"}var x=s;k.exports=x},PQMj:function(k,D,i){},PSzr:function(k,D,i){"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(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("ETIr"),i("cv67"),i("K3mO"),i("OLod"))})(this,function(y){return function(){var p=y,S=p.lib,A=S.StreamCipher,m=p.algo,f=[],d=[],l=[],o=m.RabbitLegacy=A.extend({_doReset:function(){var a=this._key.words,e=this.cfg.iv,u=this._X=[a[0],a[3]<<16|a[2]>>>16,a[1],a[0]<<16|a[3]>>>16,a[2],a[1]<<16|a[0]>>>16,a[3],a[2]<<16|a[1]>>>16],r=this._C=[a[2]<<16|a[2]>>>16,a[0]&4294901760|a[1]&65535,a[3]<<16|a[3]>>>16,a[1]&4294901760|a[2]&65535,a[0]<<16|a[0]>>>16,a[2]&4294901760|a[3]&65535,a[1]<<16|a[1]>>>16,a[3]&4294901760|a[0]&65535];this._b=0;for(var s=0;s<4;s++)n.call(this);for(var s=0;s<8;s++)r[s]^=u[s+4&7];if(e){var c=e.words,h=c[0],g=c[1],v=(h<<8|h>>>24)&16711935|(h<<24|h>>>8)&4278255360,b=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,w=v>>>16|b&4294901760,x=b<<16|v&65535;r[0]^=v,r[1]^=w,r[2]^=b,r[3]^=x,r[4]^=v,r[5]^=w,r[6]^=b,r[7]^=x;for(var s=0;s<4;s++)n.call(this)}},_doProcessBlock:function(a,e){var u=this._X;n.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,a[e+r]^=f[r]},blockSize:128/32,ivSize:64/32});function n(){for(var t=this._X,a=this._C,e=0;e<8;e++)d[e]=a[e];a[0]=a[0]+1295307597+this._b|0,a[1]=a[1]+3545052371+(a[0]>>>0<d[0]>>>0?1:0)|0,a[2]=a[2]+886263092+(a[1]>>>0<d[1]>>>0?1:0)|0,a[3]=a[3]+1295307597+(a[2]>>>0<d[2]>>>0?1:0)|0,a[4]=a[4]+3545052371+(a[3]>>>0<d[3]>>>0?1:0)|0,a[5]=a[5]+886263092+(a[4]>>>0<d[4]>>>0?1:0)|0,a[6]=a[6]+1295307597+(a[5]>>>0<d[5]>>>0?1:0)|0,a[7]=a[7]+3545052371+(a[6]>>>0<d[6]>>>0?1:0)|0,this._b=a[7]>>>0<d[7]>>>0?1:0;for(var e=0;e<8;e++){var u=t[e]+a[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}p.RabbitLegacy=A._createHelper(o)}(),y.RabbitLegacy})},ProS:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("aX58"),A=i("bYtY"),m=i("Qe9p"),f=i("ItGF"),d=i("BPZU"),l=i("H6uX"),o=i("fmMI"),n=i("hD7B"),t=i("IDmD"),a=i("ypgQ"),e=i("+wW9"),u=i("0V0F"),r=i("bLfw"),s=i("T4UG"),c=i("sS/r"),h=i("6Ic6"),g=i("IwbS"),v=i("4NO4"),b=i("iLNv"),w=b.throttle,x=i("/WM3"),T=i("uAnK"),O=i("mYwL"),E=i("af/B"),C=i("xTNl"),I=i("8hn6");i("A1Ka");var _=i("7DRL"),F=A.assert,R=A.each,B=A.isFunction,M=A.isObject,X=r.parseClassType,P="4.8.0",z={zrender:"4.3.1"},W=1,U=1e3,V=800,Q=900,G=5e3,te=1e3,$=1100,le=2e3,re=3e3,Se=3500,Re=4e3,Pe=5e3,Je={PROCESSOR:{FILTER:U,SERIES_FILTER:V,STATISTIC:G},VISUAL:{LAYOUT:te,PROGRESSIVE_LAYOUT:$,GLOBAL:le,CHART:re,POST_CHART_LAYOUT:Se,COMPONENT:Re,BRUSH:Pe}},Ve="__flagInMainProcess",ct="__optionUpdated",Ue=/^[a-zA-Z0-9_]+$/;function ue(Mt,Zt){return function(Hr,Ir,Lr){if(!Zt&&this._disposed){Ht(this.id);return}Hr=Hr&&Hr.toLowerCase(),l.prototype[Mt].call(this,Hr,Ir,Lr)}}function rt(){l.call(this)}rt.prototype.on=ue("on",!0),rt.prototype.off=ue("off",!0),rt.prototype.one=ue("one",!0),A.mixin(rt,l);function ge(Mt,Zt,Hr){Hr=Hr||{},typeof Zt=="string"&&(Zt=gt[Zt]),this.id,this.group,this._dom=Mt;var Ir="canvas",Lr=this._zr=S.init(Mt,{renderer:Hr.renderer||Ir,devicePixelRatio:Hr.devicePixelRatio,width:Hr.width,height:Hr.height});this._throttledZrFlush=w(A.bind(Lr.flush,Lr),17);var Zt=A.clone(Zt);Zt&&e(Zt,!0),this._theme=Zt,this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._coordSysMgr=new t;var dn=this._api=Ke(this);function gn(ri,Zn){return ri.__prio-Zn.__prio}d(hr,gn),d(qe,gn),this._scheduler=new E(this,dn,qe,hr),l.call(this,this._ecEventProcessor=new de),this._messageCenter=new rt,this._initEvents(),this.resize=A.bind(this.resize,this),this._pendingActions=[],Lr.animation.on("frame",this._onframe,this),Ie(Lr,this),A.setAsPrimitive(this)}var Z=ge.prototype;Z._onframe=function(){if(this._disposed)return;var Mt=this._scheduler;if(this[ct]){var Zt=this[ct].silent;this[Ve]=!0,fe(this),ee.update.call(this),this[Ve]=!1,this[ct]=!1,he.call(this,Zt),ye.call(this,Zt)}else if(Mt.unfinished){var Hr=W,Ir=this._model,Lr=this._api;Mt.unfinished=!1;do{var dn=+new Date;Mt.performSeriesTasks(Ir),Mt.performDataProcessorTasks(Ir),Ce(this,Ir),Mt.performVisualTasks(Ir),ft(this,this._model,Lr,"remain"),Hr-=+new Date-dn}while(Hr>0&&Mt.unfinished);Mt.unfinished||this._zr.flush()}},Z.getDom=function(){return this._dom},Z.getZr=function(){return this._zr},Z.setOption=function(Mt,Zt,Hr){if(this._disposed){Ht(this.id);return}var Ir;if(M(Zt)&&(Hr=Zt.lazyUpdate,Ir=Zt.silent,Zt=Zt.notMerge),this[Ve]=!0,!this._model||Zt){var Lr=new a(this._api),dn=this._theme,gn=this._model=new o;gn.scheduler=this._scheduler,gn.init(null,null,dn,Lr)}this._model.setOption(Mt,pe),Hr?(this[ct]={silent:Ir},this[Ve]=!1):(fe(this),ee.update.call(this),this._zr.flush(),this[ct]=!1,this[Ve]=!1,he.call(this,Ir),ye.call(this,Ir))},Z.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},Z.getModel=function(){return this._model},Z.getOption=function(){return this._model&&this._model.getOption()},Z.getWidth=function(){return this._zr.getWidth()},Z.getHeight=function(){return this._zr.getHeight()},Z.getDevicePixelRatio=function(){return this._zr.painter.dpr||window.devicePixelRatio||1},Z.getRenderedCanvas=function(Mt){if(!f.canvasSupported)return;Mt=Mt||{},Mt.pixelRatio=Mt.pixelRatio||1,Mt.backgroundColor=Mt.backgroundColor||this._model.get("backgroundColor");var Zt=this._zr;return Zt.painter.getRenderedCanvas(Mt)},Z.getSvgDataURL=function(){if(!f.svgSupported)return;var Mt=this._zr,Zt=Mt.storage.getDisplayList();return A.each(Zt,function(Hr){Hr.stopAnimation(!0)}),Mt.painter.toDataURL()},Z.getDataURL=function(Mt){if(this._disposed){Ht(this.id);return}Mt=Mt||{};var Zt=Mt.excludeComponents,Hr=this._model,Ir=[],Lr=this;R(Zt,function(gn){Hr.eachComponent({mainType:gn},function(ri){var Zn=Lr._componentsMap[ri.__viewId];Zn.group.ignore||(Ir.push(Zn),Zn.group.ignore=!0)})});var dn=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.getRenderedCanvas(Mt).toDataURL("image/"+(Mt&&Mt.type||"png"));return R(Ir,function(gn){gn.group.ignore=!1}),dn},Z.getConnectedDataURL=function(Mt){if(this._disposed){Ht(this.id);return}if(!f.canvasSupported)return;var Zt=Mt.type==="svg",Hr=this.group,Ir=Math.min,Lr=Math.max,dn=Infinity;if(cn[Hr]){var gn=dn,ri=dn,Zn=-dn,pi=-dn,Ci=[],Ni=Mt&&Mt.pixelRatio||1;A.each(mr,function(nt,$e){if(nt.group===Hr){var ot=Zt?nt.getZr().painter.getSvgDom().innerHTML:nt.getRenderedCanvas(A.clone(Mt)),Pt=nt.getDom().getBoundingClientRect();gn=Ir(Pt.left,gn),ri=Ir(Pt.top,ri),Zn=Lr(Pt.right,Zn),pi=Lr(Pt.bottom,pi),Ci.push({dom:ot,left:Pt.left,top:Pt.top})}}),gn*=Ni,ri*=Ni,Zn*=Ni,pi*=Ni;var zi=Zn-gn,it=pi-ri,Ne=A.createCanvas(),He=S.init(Ne,{renderer:Zt?"svg":"canvas"});if(He.resize({width:zi,height:it}),Zt){var Ge="";return R(Ci,function(nt){var $e=nt.left-gn,ot=nt.top-ri;Ge+='<g transform="translate('+$e+","+ot+')">'+nt.dom+"</g>"}),He.painter.getSvgRoot().innerHTML=Ge,Mt.connectedBackgroundColor&&He.painter.setBackgroundColor(Mt.connectedBackgroundColor),He.refreshImmediately(),He.painter.toDataURL()}else return Mt.connectedBackgroundColor&&He.add(new g.Rect({shape:{x:0,y:0,width:zi,height:it},style:{fill:Mt.connectedBackgroundColor}})),R(Ci,function(nt){var $e=new g.Image({style:{x:nt.left*Ni-gn,y:nt.top*Ni-ri,image:nt.dom}});He.add($e)}),He.refreshImmediately(),Ne.toDataURL("image/"+(Mt&&Mt.type||"png"))}else return this.getDataURL(Mt)},Z.convertToPixel=A.curry(Y,"convertToPixel"),Z.convertFromPixel=A.curry(Y,"convertFromPixel");function Y(Mt,Zt,Hr){if(this._disposed){Ht(this.id);return}var Ir=this._model,Lr=this._coordSysMgr.getCoordinateSystems(),dn;Zt=v.parseFinder(Ir,Zt);for(var gn=0;gn<Lr.length;gn++){var ri=Lr[gn];if(ri[Mt]&&(dn=ri[Mt](Ir,Zt,Hr))!=null)return dn}}Z.containPixel=function(Mt,Zt){if(this._disposed){Ht(this.id);return}var Hr=this._model,Ir;return Mt=v.parseFinder(Hr,Mt),A.each(Mt,function(Lr,dn){dn.indexOf("Models")>=0&&A.each(Lr,function(gn){var ri=gn.coordinateSystem;if(ri&&ri.containPoint)Ir|=!!ri.containPoint(Zt);else if(dn==="seriesModels"){var Zn=this._chartsMap[gn.__viewId];Zn&&Zn.containPoint&&(Ir|=Zn.containPoint(Zt,gn))}},this)},this),!!Ir},Z.getVisual=function(Mt,Zt){var Hr=this._model;Mt=v.parseFinder(Hr,Mt,{defaultMainType:"series"});var Ir=Mt.seriesModel,Lr=Ir.getData(),dn=Mt.hasOwnProperty("dataIndexInside")?Mt.dataIndexInside:Mt.hasOwnProperty("dataIndex")?Lr.indexOfRawIndex(Mt.dataIndex):null;return dn!=null?Lr.getItemVisual(dn,Zt):Lr.getVisual(Zt)},Z.getViewOfComponentModel=function(Mt){return this._componentsMap[Mt.__viewId]},Z.getViewOfSeriesModel=function(Mt){return this._chartsMap[Mt.__viewId]};var ee={prepareAndUpdate:function(Mt){fe(this),ee.update.call(this,Mt)},update:function(Mt){var Zt=this._model,Hr=this._api,Ir=this._zr,Lr=this._coordSysMgr,dn=this._scheduler;if(!Zt)return;dn.restoreData(Zt,Mt),dn.performSeriesTasks(Zt),Lr.create(Zt,Hr),dn.performDataProcessorTasks(Zt,Mt),Ce(this,Zt),Lr.update(Zt,Hr),pt(Zt),dn.performVisualTasks(Zt,Mt),st(this,Zt,Hr,Mt);var gn=Zt.get("backgroundColor")||"transparent";if(f.canvasSupported)Ir.setBackgroundColor(gn);else{var ri=m.parse(gn);gn=m.stringify(ri,"rgb"),ri[3]===0&&(gn="transparent")}et(Zt,Hr)},updateTransform:function(Mt){var Zt=this._model,Hr=this,Ir=this._api;if(!Zt)return;var Lr=[];Zt.eachComponent(function(gn,ri){var Zn=Hr.getViewOfComponentModel(ri);if(Zn&&Zn.__alive)if(Zn.updateTransform){var pi=Zn.updateTransform(ri,Zt,Ir,Mt);pi&&pi.update&&Lr.push(Zn)}else Lr.push(Zn)});var dn=A.createHashMap();Zt.eachSeries(function(gn){var ri=Hr._chartsMap[gn.__viewId];if(ri.updateTransform){var Zn=ri.updateTransform(gn,Zt,Ir,Mt);Zn&&Zn.update&&dn.set(gn.uid,1)}else dn.set(gn.uid,1)}),pt(Zt),this._scheduler.performVisualTasks(Zt,Mt,{setDirty:!0,dirtyMap:dn}),ft(Hr,Zt,Ir,Mt,dn),et(Zt,this._api)},updateView:function(Mt){var Zt=this._model;if(!Zt)return;h.markUpdateMethod(Mt,"updateView"),pt(Zt),this._scheduler.performVisualTasks(Zt,Mt,{setDirty:!0}),st(this,this._model,this._api,Mt),et(Zt,this._api)},updateVisual:function(Mt){ee.update.call(this,Mt)},updateLayout:function(Mt){ee.update.call(this,Mt)}};function fe(Mt){var Zt=Mt._model,Hr=Mt._scheduler;Hr.restorePipelines(Zt),Hr.prepareStageTasks(),tt(Mt,"component",Zt,Hr),tt(Mt,"chart",Zt,Hr),Hr.plan()}function be(Mt,Zt,Hr,Ir,Lr){var dn=Mt._model;if(!Ir){R(Mt._componentsViews.concat(Mt._chartsViews),pi);return}var gn={};gn[Ir+"Id"]=Hr[Ir+"Id"],gn[Ir+"Index"]=Hr[Ir+"Index"],gn[Ir+"Name"]=Hr[Ir+"Name"];var ri={mainType:Ir,query:gn};Lr&&(ri.subType=Lr);var Zn=Hr.excludeSeriesId;Zn!=null&&(Zn=A.createHashMap(v.normalizeToArray(Zn))),dn&&dn.eachComponent(ri,function(Ci){(!Zn||Zn.get(Ci.id)==null)&&pi(Mt[Ir==="series"?"_chartsMap":"_componentsMap"][Ci.__viewId])},Mt);function pi(Ci){Ci&&Ci.__alive&&Ci[Zt]&&Ci[Zt](Ci.__model,dn,Mt._api,Hr)}}Z.resize=function(Mt){if(this._disposed){Ht(this.id);return}this._zr.resize(Mt);var Zt=this._model;if(this._loadingFX&&this._loadingFX.resize(),!Zt)return;var Hr=Zt.resetOption("media"),Ir=Mt&&Mt.silent;this[Ve]=!0,Hr&&fe(this),ee.update.call(this),this[Ve]=!1,he.call(this,Ir),ye.call(this,Ir)};function Ce(Mt,Zt){var Hr=Mt._chartsMap,Ir=Mt._scheduler;Zt.eachSeries(function(Lr){Ir.updateStreamModes(Lr,Hr[Lr.__viewId])})}Z.showLoading=function(Mt,Zt){if(this._disposed){Ht(this.id);return}if(M(Mt)&&(Zt=Mt,Mt=""),Mt=Mt||"default",this.hideLoading(),!nr[Mt])return;var Hr=nr[Mt](this._api,Zt),Ir=this._zr;this._loadingFX=Hr,Ir.add(Hr)},Z.hideLoading=function(){if(this._disposed){Ht(this.id);return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},Z.makeActionFromEvent=function(Mt){var Zt=A.extend({},Mt);return Zt.type=lt[Mt.type],Zt},Z.dispatchAction=function(Mt,Zt){if(this._disposed){Ht(this.id);return}if(M(Zt)||(Zt={silent:!!Zt}),!oe[Mt.type])return;if(!this._model)return;if(this[Ve]){this._pendingActions.push(Mt);return}Te.call(this,Mt,Zt.silent),Zt.flush?this._zr.flush(!0):Zt.flush!==!1&&f.browser.weChat&&this._throttledZrFlush(),he.call(this,Zt.silent),ye.call(this,Zt.silent)};function Te(Mt,Zt){var Hr=Mt.type,Ir=Mt.escapeConnect,Lr=oe[Hr],dn=Lr.actionInfo,gn=(dn.update||"update").split(":"),ri=gn.pop();gn=gn[0]!=null&&X(gn[0]),this[Ve]=!0;var Zn=[Mt],pi=!1;Mt.batch&&(pi=!0,Zn=A.map(Mt.batch,function(it){return it=A.defaults(A.extend({},it),Mt),it.batch=null,it}));var Ci=[],Ni,zi=Hr==="highlight"||Hr==="downplay";R(Zn,function(it){Ni=Lr.action(it,this._model,this._api),Ni=Ni||A.extend({},it),Ni.type=dn.event||Ni.type,Ci.push(Ni),zi?be(this,ri,it,"series"):gn&&be(this,ri,it,gn.main,gn.sub)},this),ri!=="none"&&!zi&&!gn&&(this[ct]?(fe(this),ee.update.call(this,Mt),this[ct]=!1):ee[ri].call(this,Mt)),pi?Ni={type:dn.event||Hr,escapeConnect:Ir,batch:Ci}:Ni=Ci[0],this[Ve]=!1,!Zt&&this._messageCenter.trigger(Ni.type,Ni)}function he(Mt){for(var Zt=this._pendingActions;Zt.length;){var Hr=Zt.shift();Te.call(this,Hr,Mt)}}function ye(Mt){!Mt&&this.trigger("updated")}function Ie(Mt,Zt){Mt.on("rendered",function(){Zt.trigger("rendered"),Mt.animation.isFinished()&&!Zt[ct]&&!Zt._scheduler.unfinished&&!Zt._pendingActions.length&&Zt.trigger("finished")})}Z.appendData=function(Mt){if(this._disposed){Ht(this.id);return}var Zt=Mt.seriesIndex,Hr=this.getModel(),Ir=Hr.getSeriesByIndex(Zt);Ir.appendData(Mt),this._scheduler.unfinished=!0},Z.on=ue("on",!1),Z.off=ue("off",!1),Z.one=ue("one",!1);function tt(Mt,Zt,Hr,Ir){for(var Lr=Zt==="component",dn=Lr?Mt._componentsViews:Mt._chartsViews,gn=Lr?Mt._componentsMap:Mt._chartsMap,ri=Mt._zr,Zn=Mt._api,pi=0;pi<dn.length;pi++)dn[pi].__alive=!1;Lr?Hr.eachComponent(function(zi,it){zi!=="series"&&Ci(it)}):Hr.eachSeries(Ci);function Ci(zi){var it="_ec_"+zi.id+"_"+zi.type,Ne=gn[it];if(!Ne){var He=X(zi.type),Ge=Lr?c.getClass(He.main,He.sub):h.getClass(He.sub);Ne=new Ge,Ne.init(Hr,Zn),gn[it]=Ne,dn.push(Ne),ri.add(Ne.group)}zi.__viewId=Ne.__id=it,Ne.__alive=!0,Ne.__model=zi,Ne.group.__ecComponentInfo={mainType:zi.mainType,index:zi.componentIndex},!Lr&&Ir.prepareView(Ne,zi,Hr,Zn)}for(var pi=0;pi<dn.length;){var Ni=dn[pi];Ni.__alive?pi++:(!Lr&&Ni.renderTask.dispose(),ri.remove(Ni.group),Ni.dispose(Hr,Zn),dn.splice(pi,1),delete gn[Ni.__id],Ni.__id=Ni.group.__ecComponentInfo=null)}}function pt(Mt){Mt.clearColorPalette(),Mt.eachSeries(function(Zt){Zt.clearColorPalette()})}function st(Mt,Zt,Hr,Ir){Fe(Mt,Zt,Hr,Ir),R(Mt._chartsViews,function(Lr){Lr.__alive=!1}),ft(Mt,Zt,Hr,Ir),R(Mt._chartsViews,function(Lr){Lr.__alive||Lr.remove(Zt,Hr)})}function Fe(Mt,Zt,Hr,Ir,Lr){R(Lr||Mt._componentsViews,function(dn){var gn=dn.__model;dn.render(gn,Zt,Hr,Ir),Bt(gn,dn)})}function ft(Mt,Zt,Hr,Ir,Lr){var dn=Mt._scheduler,gn;Zt.eachSeries(function(ri){var Zn=Mt._chartsMap[ri.__viewId];Zn.__alive=!0;var pi=Zn.renderTask;dn.updatePayload(pi,Ir),Lr&&Lr.get(ri.uid)&&pi.dirty(),gn|=pi.perform(dn.getPerformArgs(pi)),Zn.group.silent=!!ri.get("silent"),Bt(ri,Zn),Tt(ri,Zn)}),dn.unfinished|=gn,Dt(Mt,Zt),T(Mt._zr.dom,Zt)}function et(Mt,Zt){R(Kt,function(Hr){Hr(Mt,Zt)})}var wt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];Z._initEvents=function(){R(wt,function(Mt){var Zt=function(Hr){var Ir=this.getModel(),Lr=Hr.target,dn,gn=Mt==="globalout";if(gn)dn={};else if(Lr&&Lr.dataIndex!=null){var ri=Lr.dataModel||Ir.getSeriesByIndex(Lr.seriesIndex);dn=ri&&ri.getDataParams(Lr.dataIndex,Lr.dataType,Lr)||{}}else Lr&&Lr.eventData&&(dn=A.extend({},Lr.eventData));if(dn){var Zn=dn.componentType,pi=dn.componentIndex;(Zn==="markLine"||Zn==="markPoint"||Zn==="markArea")&&(Zn="series",pi=dn.seriesIndex);var Ci=Zn&&pi!=null&&Ir.getComponent(Zn,pi),Ni=Ci&&this[Ci.mainType==="series"?"_chartsMap":"_componentsMap"][Ci.__viewId];dn.event=Hr,dn.type=Mt,this._ecEventProcessor.eventInfo={targetEl:Lr,packedEvent:dn,model:Ci,view:Ni},this.trigger(Mt,dn)}};Zt.zrEventfulCallAtLast=!0,this._zr.on(Mt,Zt,this)},this),R(lt,function(Mt,Zt){this._messageCenter.on(Zt,function(Hr){this.trigger(Zt,Hr)},this)},this)},Z.isDisposed=function(){return this._disposed},Z.clear=function(){if(this._disposed){Ht(this.id);return}this.setOption({series:[]},!0)},Z.dispose=function(){if(this._disposed){Ht(this.id);return}this._disposed=!0,v.setAttribute(this.getDom(),qt,"");var Mt=this._api,Zt=this._model;R(this._componentsViews,function(Hr){Hr.dispose(Zt,Mt)}),R(this._chartsViews,function(Hr){Hr.dispose(Zt,Mt)}),this._zr.dispose(),delete mr[this.id]},A.mixin(ge,l);function Ht(Mt){}function Dt(Mt,Zt){var Hr=Mt._zr,Ir=Hr.storage,Lr=0;Ir.traverse(function(dn){Lr++}),Lr>Zt.get("hoverLayerThreshold")&&!f.node&&Zt.eachSeries(function(dn){if(dn.preventUsingHoverLayer)return;var gn=Mt._chartsMap[dn.__viewId];gn.__alive&&gn.group.traverse(function(ri){ri.useHoverLayer=!0})})}function Tt(Mt,Zt){var Hr=Mt.get("blendMode")||null;Zt.group.traverse(function(Ir){Ir.isGroup||Ir.style.blend!==Hr&&Ir.setStyle("blend",Hr),Ir.eachPendingDisplayable&&Ir.eachPendingDisplayable(function(Lr){Lr.setStyle("blend",Hr)})})}function Bt(Mt,Zt){var Hr=Mt.get("z"),Ir=Mt.get("zlevel");Zt.group.traverse(function(Lr){Lr.type!=="group"&&(Hr!=null&&(Lr.z=Hr),Ir!=null&&(Lr.zlevel=Ir))})}function Ke(Mt){var Zt=Mt._coordSysMgr;return A.extend(new n(Mt),{getCoordinateSystems:A.bind(Zt.getCoordinateSystems,Zt),getComponentByElement:function(Hr){for(;Hr;){var Ir=Hr.__ecComponentInfo;if(Ir!=null)return Mt._model.getComponent(Ir.mainType,Ir.index);Hr=Hr.parent}}})}function de(){this.eventInfo}de.prototype={constructor:de,normalizeQuery:function(Mt){var Zt={},Hr={},Ir={};if(A.isString(Mt)){var Lr=X(Mt);Zt.mainType=Lr.main||null,Zt.subType=Lr.sub||null}else{var dn=["Index","Name","Id"],gn={name:1,dataIndex:1,dataType:1};A.each(Mt,function(ri,Zn){for(var pi=!1,Ci=0;Ci<dn.length;Ci++){var Ni=dn[Ci],zi=Zn.lastIndexOf(Ni);if(zi>0&&zi===Zn.length-Ni.length){var it=Zn.slice(0,zi);it!=="data"&&(Zt.mainType=it,Zt[Ni.toLowerCase()]=ri,pi=!0)}}gn.hasOwnProperty(Zn)&&(Hr[Zn]=ri,pi=!0),pi||(Ir[Zn]=ri)})}return{cptQuery:Zt,dataQuery:Hr,otherQuery:Ir}},filter:function(Mt,Zt,Hr){var Ir=this.eventInfo;if(!Ir)return!0;var Lr=Ir.targetEl,dn=Ir.packedEvent,gn=Ir.model,ri=Ir.view;if(!gn||!ri)return!0;var Zn=Zt.cptQuery,pi=Zt.dataQuery;return Ci(Zn,gn,"mainType")&&Ci(Zn,gn,"subType")&&Ci(Zn,gn,"index","componentIndex")&&Ci(Zn,gn,"name")&&Ci(Zn,gn,"id")&&Ci(pi,dn,"name")&&Ci(pi,dn,"dataIndex")&&Ci(pi,dn,"dataType")&&(!ri.filterForExposedEvent||ri.filterForExposedEvent(Mt,Zt.otherQuery,Lr,dn));function Ci(Ni,zi,it,Ne){return Ni[it]==null||zi[Ne||it]===Ni[it]}},afterTrigger:function(){this.eventInfo=null}};var oe={},lt={},qe=[],pe=[],Kt=[],hr=[],gt={},nr={},mr={},cn={},Ar=new Date-0,xr=new Date-0,qt="_echarts_instance_";function ar(Mt){var Zt=0,Hr=1,Ir=2,Lr="__connectUpdateStatus";function dn(gn,ri){for(var Zn=0;Zn<gn.length;Zn++){var pi=gn[Zn];pi[Lr]=ri}}R(lt,function(gn,ri){Mt._messageCenter.on(ri,function(Zn){if(cn[Mt.group]&&Mt[Lr]!==Zt){if(Zn&&Zn.escapeConnect)return;var pi=Mt.makeActionFromEvent(Zn),Ci=[];R(mr,function(Ni){Ni!==Mt&&Ni.group===Mt.group&&Ci.push(Ni)}),dn(Ci,Zt),R(Ci,function(Ni){Ni[Lr]!==Hr&&Ni.dispatchAction(pi)}),dn(Ci,Ir)}})})}function Et(Mt,Zt,Hr){var Ir=Vi(Mt);if(Ir)return Ir;var Lr=new ge(Mt,Zt,Hr);return Lr.id="ec_"+Ar++,mr[Lr.id]=Lr,v.setAttribute(Mt,qt,Lr.id),ar(Lr),Lr}function en(Mt){if(A.isArray(Mt)){var Zt=Mt;Mt=null,R(Zt,function(Hr){Hr.group!=null&&(Mt=Hr.group)}),Mt=Mt||"g_"+xr++,R(Zt,function(Hr){Hr.group=Mt})}return cn[Mt]=!0,Mt}function Mn(Mt){cn[Mt]=!1}var Yn=Mn;function ci(Mt){typeof Mt=="string"?Mt=mr[Mt]:Mt instanceof ge||(Mt=Vi(Mt)),Mt instanceof ge&&!Mt.isDisposed()&&Mt.dispose()}function Vi(Mt){return mr[v.getAttribute(Mt,qt)]}function jn(Mt){return mr[Mt]}function Qn(Mt,Zt){gt[Mt]=Zt}function $t(Mt){pe.push(Mt)}function Ot(Mt,Zt){Yt(qe,Mt,Zt,U)}function ke(Mt){Kt.push(Mt)}function Me(Mt,Zt,Hr){typeof Zt=="function"&&(Hr=Zt,Zt="");var Ir=M(Mt)?Mt.type:[Mt,Mt={event:Zt}][0];Mt.event=(Mt.event||Ir).toLowerCase(),Zt=Mt.event,F(Ue.test(Ir)&&Ue.test(Zt)),oe[Ir]||(oe[Ir]={action:Hr,actionInfo:Mt}),lt[Zt]=Ir}function Be(Mt,Zt){t.register(Mt,Zt)}function at(Mt){var Zt=t.get(Mt);if(Zt)return Zt.getDimensionsInfo?Zt.getDimensionsInfo():Zt.dimensions.slice()}function At(Mt,Zt){Yt(hr,Mt,Zt,te,"layout")}function Ct(Mt,Zt){Yt(hr,Mt,Zt,re,"visual")}function Yt(Mt,Zt,Hr,Ir,Lr){(B(Zt)||M(Zt))&&(Hr=Zt,Zt=Ir);var dn=E.wrapStageHandler(Hr,Lr);return dn.__prio=Zt,dn.__raw=Hr,Mt.push(dn),dn}function Pr(Mt,Zt){nr[Mt]=Zt}function qr(Mt){return r.extend(Mt)}function An(Mt){return c.extend(Mt)}function Gt(Mt){return s.extend(Mt)}function vt(Mt){return h.extend(Mt)}function bt(Mt){A.$override("createCanvas",Mt)}function fr(Mt,Zt,Hr){_.registerMap(Mt,Zt,Hr)}function Jt(Mt){var Zt=_.retrieveMap(Mt);return Zt&&Zt[0]&&{geoJson:Zt[0].geoJSON,specialAreas:Zt[0].specialAreas}}Ct(le,x),$t(e),Ot(Q,u),Pr("default",O),Me({type:"highlight",event:"highlight",update:"highlight"},A.noop),Me({type:"downplay",event:"downplay",update:"downplay"},A.noop),Qn("light",C),Qn("dark",I);var Ut={};D.version=P,D.dependencies=z,D.PRIORITY=Je,D.init=Et,D.connect=en,D.disConnect=Mn,D.disconnect=Yn,D.dispose=ci,D.getInstanceByDom=Vi,D.getInstanceById=jn,D.registerTheme=Qn,D.registerPreprocessor=$t,D.registerProcessor=Ot,D.registerPostUpdate=ke,D.registerAction=Me,D.registerCoordinateSystem=Be,D.getCoordinateSystemDimensions=at,D.registerLayout=At,D.registerVisual=Ct,D.registerLoading=Pr,D.extendComponentModel=qr,D.extendComponentView=An,D.extendSeriesModel=Gt,D.extendChartView=vt,D.setCanvasCreator=bt,D.registerMap=fr,D.getMap=Jt,D.dataTool=Ut;var er=i("txkQ");(function(){for(var Mt in er)er.hasOwnProperty(Mt)&&(D[Mt]=er[Mt])})()},Pw59:function(k,D,i){"use strict";var y=i("q1tI"),p=i.n(y),S=Object(y.createContext)({});D.a=S},Q7if:function(k,D,i){var y=i("JEkh"),p=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"}}}});k.exports=p},Q9mQ:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("UADf"),A=i.n(S)},"QB+1":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("Ywus"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},QBsz:function(k,D){var i=typeof Float32Array=="undefined"?Array:Float32Array;function y(E,C){var I=new i(2);return E==null&&(E=0),C==null&&(C=0),I[0]=E,I[1]=C,I}function p(E,C){return E[0]=C[0],E[1]=C[1],E}function S(E){var C=new i(2);return C[0]=E[0],C[1]=E[1],C}function A(E,C,I){return E[0]=C,E[1]=I,E}function m(E,C,I){return E[0]=C[0]+I[0],E[1]=C[1]+I[1],E}function f(E,C,I,_){return E[0]=C[0]+I[0]*_,E[1]=C[1]+I[1]*_,E}function d(E,C,I){return E[0]=C[0]-I[0],E[1]=C[1]-I[1],E}function l(E){return Math.sqrt(n(E))}var o=l;function n(E){return E[0]*E[0]+E[1]*E[1]}var t=n;function a(E,C,I){return E[0]=C[0]*I[0],E[1]=C[1]*I[1],E}function e(E,C,I){return E[0]=C[0]/I[0],E[1]=C[1]/I[1],E}function u(E,C){return E[0]*C[0]+E[1]*C[1]}function r(E,C,I){return E[0]=C[0]*I,E[1]=C[1]*I,E}function s(E,C){var I=l(C);return I===0?(E[0]=0,E[1]=0):(E[0]=C[0]/I,E[1]=C[1]/I),E}function c(E,C){return Math.sqrt((E[0]-C[0])*(E[0]-C[0])+(E[1]-C[1])*(E[1]-C[1]))}var h=c;function g(E,C){return(E[0]-C[0])*(E[0]-C[0])+(E[1]-C[1])*(E[1]-C[1])}var v=g;function b(E,C){return E[0]=-C[0],E[1]=-C[1],E}function w(E,C,I,_){return E[0]=C[0]+_*(I[0]-C[0]),E[1]=C[1]+_*(I[1]-C[1]),E}function x(E,C,I){var _=C[0],F=C[1];return E[0]=I[0]*_+I[2]*F+I[4],E[1]=I[1]*_+I[3]*F+I[5],E}function T(E,C,I){return E[0]=Math.min(C[0],I[0]),E[1]=Math.min(C[1],I[1]),E}function O(E,C,I){return E[0]=Math.max(C[0],I[0]),E[1]=Math.max(C[1],I[1]),E}D.create=y,D.copy=p,D.clone=S,D.set=A,D.add=m,D.scaleAndAdd=f,D.sub=d,D.len=l,D.length=o,D.lenSquare=n,D.lengthSquare=t,D.mul=a,D.div=e,D.dot=u,D.scale=r,D.normalize=s,D.distance=c,D.dist=h,D.distanceSquare=g,D.distSquare=v,D.negate=b,D.lerp=w,D.applyTransform=x,D.min=T,D.max=O},"QO+J":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.createSensor=void 0;var y=S(i("NohK")),p=i("24YM");function S(m){return m&&m.__esModule?m:{default:m}}var A=function(f,d){var l=void 0,o=[],n=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",p.SensorClassName),s.setAttribute("tabindex",p.SensorTabIndex),s.type="text/html",f.appendChild(s),s.data="about:blank",s},t=(0,y.default)(function(){o.forEach(function(r){r(f)})}),a=function(s){l||(l=n()),o.indexOf(s)===-1&&o.push(s)},e=function(){l&&l.parentNode&&(l.contentDocument&&l.contentDocument.defaultView.removeEventListener("resize",t),l.parentNode.removeChild(l),f.removeAttribute(p.SizeSensorId),l=void 0,o=[],d&&d())},u=function(s){var c=o.indexOf(s);c!==-1&&o.splice(c,1),o.length===0&&l&&e()};return{element:f,bind:a,destroy:e,unbind:u}};D.createSensor=A},"QQZ/":function(k,D,i){var y=i("Sq3C"),p=i("Z1HP"),S=i("Sxd8"),A=i("dt0z");function m(f,d,l){f=A(f),d=S(d);var o=d?p(f):0;return d&&o<d?y(d-o,l)+f:f}k.exports=m},QUw5:function(k,D,i){var y=i("OlYY"),p=y.extend({type:"dataZoom.select"});k.exports=p},QV2g:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=y;function y(){for(var A,m=[],f=0;f<256;f++){A=f;for(var d=0;d<8;d++)A=A&1?3988292384^A>>>1:A>>>1;m[f]=A}return m}var p=y();function S(A,m,f,d){var l=p,o=d+f;A^=-1;for(var n=d;n<o;n++)A=A>>>8^l[(A^m[n])&255];return A^-1}},QbM5:function(k,D,i){},Qe9p:function(k,D,i){var y=i("1RvN"),p={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(C){return C=Math.round(C),C<0?0:C>255?255:C}function A(C){return C=Math.round(C),C<0?0:C>360?360:C}function m(C){return C<0?0:C>1?1:C}function f(C){return C.length&&C.charAt(C.length-1)==="%"?S(parseFloat(C)/100*255):S(parseInt(C,10))}function d(C){return C.length&&C.charAt(C.length-1)==="%"?m(parseFloat(C)/100):m(parseFloat(C))}function l(C,I,_){return _<0?_+=1:_>1&&(_-=1),_*6<1?C+(I-C)*_*6:_*2<1?I:_*3<2?C+(I-C)*(2/3-_)*6:C}function o(C,I,_){return C+(I-C)*_}function n(C,I,_,F,R){return C[0]=I,C[1]=_,C[2]=F,C[3]=R,C}function t(C,I){return C[0]=I[0],C[1]=I[1],C[2]=I[2],C[3]=I[3],C}var a=new y(20),e=null;function u(C,I){e&&t(e,I),e=a.put(C,e||I.slice())}function r(C,I){if(!C)return;I=I||[];var _=a.get(C);if(_)return t(I,_);C=C+"";var F=C.replace(/ /g,"").toLowerCase();if(F in p)return t(I,p[F]),u(C,I),I;if(F.charAt(0)==="#"){if(F.length===4){var R=parseInt(F.substr(1),16);if(!(R>=0&&R<=4095)){n(I,0,0,0,1);return}return n(I,(R&3840)>>4|(R&3840)>>8,R&240|(R&240)>>4,R&15|(R&15)<<4,1),u(C,I),I}else if(F.length===7){var R=parseInt(F.substr(1),16);if(!(R>=0&&R<=16777215)){n(I,0,0,0,1);return}return n(I,(R&16711680)>>16,(R&65280)>>8,R&255,1),u(C,I),I}return}var B=F.indexOf("("),M=F.indexOf(")");if(B!==-1&&M+1===F.length){var X=F.substr(0,B),P=F.substr(B+1,M-(B+1)).split(","),z=1;switch(X){case"rgba":if(P.length!==4){n(I,0,0,0,1);return}z=d(P.pop());case"rgb":if(P.length!==3){n(I,0,0,0,1);return}return n(I,f(P[0]),f(P[1]),f(P[2]),z),u(C,I),I;case"hsla":if(P.length!==4){n(I,0,0,0,1);return}return P[3]=d(P[3]),s(P,I),u(C,I),I;case"hsl":if(P.length!==3){n(I,0,0,0,1);return}return s(P,I),u(C,I),I;default:return}}n(I,0,0,0,1);return}function s(C,I){var _=(parseFloat(C[0])%360+360)%360/360,F=d(C[1]),R=d(C[2]),B=R<=.5?R*(F+1):R+F-R*F,M=R*2-B;return I=I||[],n(I,S(l(M,B,_+1/3)*255),S(l(M,B,_)*255),S(l(M,B,_-1/3)*255),1),C.length===4&&(I[3]=C[3]),I}function c(C){if(!C)return;var I=C[0]/255,_=C[1]/255,F=C[2]/255,R=Math.min(I,_,F),B=Math.max(I,_,F),M=B-R,X=(B+R)/2,P,z;if(M===0)P=0,z=0;else{X<.5?z=M/(B+R):z=M/(2-B-R);var W=((B-I)/6+M/2)/M,U=((B-_)/6+M/2)/M,V=((B-F)/6+M/2)/M;I===B?P=V-U:_===B?P=1/3+W-V:F===B&&(P=2/3+U-W),P<0&&(P+=1),P>1&&(P-=1)}var Q=[P*360,z,X];return C[3]!=null&&Q.push(C[3]),Q}function h(C,I){var _=r(C);if(_){for(var F=0;F<3;F++)I<0?_[F]=_[F]*(1-I)|0:_[F]=(255-_[F])*I+_[F]|0,_[F]>255?_[F]=255:C[F]<0&&(_[F]=0);return E(_,_.length===4?"rgba":"rgb")}}function g(C){var I=r(C);if(I)return((1<<24)+(I[0]<<16)+(I[1]<<8)+ +I[2]).toString(16).slice(1)}function v(C,I,_){if(!(I&&I.length)||!(C>=0&&C<=1))return;_=_||[];var F=C*(I.length-1),R=Math.floor(F),B=Math.ceil(F),M=I[R],X=I[B],P=F-R;return _[0]=S(o(M[0],X[0],P)),_[1]=S(o(M[1],X[1],P)),_[2]=S(o(M[2],X[2],P)),_[3]=m(o(M[3],X[3],P)),_}var b=v;function w(C,I,_){if(!(I&&I.length)||!(C>=0&&C<=1))return;var F=C*(I.length-1),R=Math.floor(F),B=Math.ceil(F),M=r(I[R]),X=r(I[B]),P=F-R,z=E([S(o(M[0],X[0],P)),S(o(M[1],X[1],P)),S(o(M[2],X[2],P)),m(o(M[3],X[3],P))],"rgba");return _?{color:z,leftIndex:R,rightIndex:B,value:F}:z}var x=w;function T(C,I,_,F){if(C=r(C),C)return C=c(C),I!=null&&(C[0]=A(I)),_!=null&&(C[1]=d(_)),F!=null&&(C[2]=d(F)),E(s(C),"rgba")}function O(C,I){if(C=r(C),C&&I!=null)return C[3]=m(I),E(C,"rgba")}function E(C,I){if(!C||!C.length)return;var _=C[0]+","+C[1]+","+C[2];return(I==="rgba"||I==="hsva"||I==="hsla")&&(_+=","+C[3]),I+"("+_+")"}D.parse=r,D.lift=h,D.toHex=g,D.fastLerp=v,D.fastMapToColor=b,D.lerp=w,D.mapToColor=x,D.modifyHSL=T,D.modifyAlpha=O,D.stringify=E},Qi1f:function(k,D,i){"use strict";i.d(D,"g",function(){return E}),i.d(D,"c",function(){return C}),i.d(D,"a",function(){return _}),i.d(D,"b",function(){return F}),i.d(D,"d",function(){return R}),i.d(D,"e",function(){return B}),i.d(D,"f",function(){return X});var y=i("VTBJ"),p=i("U8pU"),S=i("AJpP"),A=i("q1tI"),m=i.n(A),f=i("Kwbf"),d=i("MNnm"),l=i("l4aY"),o="data-rc-order",n="data-rc-priority",t="rc-util-key",a=new Map;function e(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},z=P.mark;return z?z.startsWith("data-")?z:"data-".concat(z):t}function u(P){if(P.attachTo)return P.attachTo;var z=document.querySelector("head");return z||document.body}function r(P){return P==="queue"?"prependQueue":P?"prepend":"append"}function s(P){return Array.from((a.get(P)||P).children).filter(function(z){return z.tagName==="STYLE"})}function c(P){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Object(d.a)())return null;var W=z.csp,U=z.prepend,V=z.priority,Q=V===void 0?0:V,G=r(U),te=G==="prependQueue",$=document.createElement("style");$.setAttribute(o,G),te&&Q&&$.setAttribute(n,"".concat(Q)),W!=null&&W.nonce&&($.nonce=W==null?void 0:W.nonce),$.innerHTML=P;var le=u(z),re=le.firstChild;if(U){if(te){var Se=s(le).filter(function(Re){if(!["prepend","prependQueue"].includes(Re.getAttribute(o)))return!1;var Pe=Number(Re.getAttribute(n)||0);return Q>=Pe});if(Se.length)return le.insertBefore($,Se[Se.length-1].nextSibling),$}le.insertBefore($,re)}else le.appendChild($);return $}function h(P){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=u(z);return s(W).find(function(U){return U.getAttribute(e(z))===P})}function g(P){var z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},W=h(P,z);if(W){var U=u(z);U.removeChild(W)}}function v(P,z){var W=a.get(P);if(!W||!Object(l.a)(document,W)){var U=c("",z),V=U.parentNode;a.set(P,V),P.removeChild(U)}}function b(){a.clear()}function w(P,z){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},U=u(W);v(U,W);var V=h(z,W);if(V){var Q,G;if((Q=W.csp)!==null&&Q!==void 0&&Q.nonce&&V.nonce!==((G=W.csp)===null||G===void 0?void 0:G.nonce)){var te;V.nonce=(te=W.csp)===null||te===void 0?void 0:te.nonce}return V.innerHTML!==P&&(V.innerHTML=P),V}var $=c(P,W);return $.setAttribute(e(W),z),$}var x=i("Pw59"),T=i("u6S6"),O=i.n(T);function E(P,z){Object(f.a)(P,"[@ant-design/icons] ".concat(z))}function C(P){return Object(p.a)(P)==="object"&&typeof P.name=="string"&&typeof P.theme=="string"&&(Object(p.a)(P.icon)==="object"||typeof P.icon=="function")}function I(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(P).reduce(function(z,W){var U=P[W];switch(W){case"class":z.className=U,delete z.class;break;default:delete z[W],z[O()(W)]=U}return z},{})}function _(P,z,W){return W?m.a.createElement(P.tag,Object(y.a)(Object(y.a)({key:z},I(P.attrs)),W),(P.children||[]).map(function(U,V){return _(U,"".concat(z,"-").concat(P.tag,"-").concat(V))})):m.a.createElement(P.tag,Object(y.a)({key:z},I(P.attrs)),(P.children||[]).map(function(U,V){return _(U,"".concat(z,"-").concat(P.tag,"-").concat(V))}))}function F(P){return Object(S.generate)(P)[0]}function R(P){return P?Array.isArray(P)?P:[P]:[]}var B={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},M=`
.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 z=arguments.length>0&&arguments[0]!==void 0?arguments[0]:M,W=Object(A.useContext)(x.a),U=W.csp;Object(A.useEffect)(function(){w(z,"@ant-design-icons",{prepend:!0,csp:U})},[])}},QkVE:function(k,D,i){var y=i("EpBk");function p(S,A){var m=S.__data__;return y(A)?m[typeof A=="string"?"string":"hash"]:m.map}k.exports=p},QoRX:function(k,D){function i(y,p){for(var S=-1,A=y==null?0:y.length;++S<A;)if(p(y[S],S,y))return!0;return!1}k.exports=i},QqLw:function(k,D,i){var y=i("tadb"),p=i("ebwN"),S=i("HOxn"),A=i("yGk4"),m=i("Of+w"),f=i("NykK"),d=i("3Fdi"),l="[object Map]",o="[object Object]",n="[object Promise]",t="[object Set]",a="[object WeakMap]",e="[object DataView]",u=d(y),r=d(p),s=d(S),c=d(A),h=d(m),g=f;(y&&g(new y(new ArrayBuffer(1)))!=e||p&&g(new p)!=l||S&&g(S.resolve())!=n||A&&g(new A)!=t||m&&g(new m)!=a)&&(g=function(v){var b=f(v),w=b==o?v.constructor:void 0,x=w?d(w):"";if(x)switch(x){case u:return e;case r:return l;case s:return n;case c:return t;case h:return a}return b}),k.exports=g},Qs3X:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("X+im"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},Qs9O:function(k,D,i){"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(k,D){var i=function(S){this.colorStops=S||[]};i.prototype={constructor:i,addColorStop:function(S,A){this.colorStops.push({offset:S,color:A})}};var y=i;k.exports=y},Qvb6:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("ItGF"),A=i("B9fm"),m=i("gvm7"),f=i("7aKB"),d=i("OELB"),l=i("IwbS"),o=i("Ez2D"),n=i("+TT/"),t=i("Qxkt"),a=i("F9bG"),e=i("aX7z"),u=i("/y7N"),r=i("4NO4"),s=r.getTooltipRenderMode,c=p.bind,h=p.each,g=d.parsePercent,v=new l.Rect({shape:{x:-1,y:-1,width:2,height:2}}),b=y.extendComponentView({type:"tooltip",init:function(I,_){if(S.node)return;var F=I.getComponent("tooltip"),R=F.get("renderMode");this._renderMode=s(R);var B;this._renderMode==="html"?(B=new A(_.getDom(),_,{appendToBody:F.get("appendToBody",!0)}),this._newLine="<br/>"):(B=new m(_),this._newLine=`
`),this._tooltipContent=B},render:function(I,_,F){if(S.node)return;this.group.removeAll(),this._tooltipModel=I,this._ecModel=_,this._api=F,this._lastDataByCoordSys=null,this._alwaysShowContent=I.get("alwaysShowContent");var R=this._tooltipContent;R.update(),R.setEnterable(I.get("enterable")),this._initGlobalListener(),this._keepShow()},_initGlobalListener:function(){var I=this._tooltipModel,_=I.get("triggerOn");a.register("itemTooltip",this._api,c(function(F,R,B){_!=="none"&&(_.indexOf(F)>=0?this._tryShow(R,B):F==="leave"&&this._hide(B))},this))},_keepShow:function(){var I=this._tooltipModel,_=this._ecModel,F=this._api;if(this._lastX!=null&&this._lastY!=null&&I.get("triggerOn")!=="none"){var R=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!F.isDisposed()&&R.manuallyShowTip(I,_,F,{x:R._lastX,y:R._lastY})})}},manuallyShowTip:function(I,_,F,R){if(R.from===this.uid||S.node)return;var B=x(R,F);this._ticket="";var M=R.dataByCoordSys;if(R.tooltip&&R.x!=null&&R.y!=null){var X=v;X.position=[R.x,R.y],X.update(),X.tooltip=R.tooltip,this._tryShow({offsetX:R.x,offsetY:R.y,target:X},B)}else if(M)this._tryShow({offsetX:R.x,offsetY:R.y,position:R.position,dataByCoordSys:R.dataByCoordSys,tooltipOption:R.tooltipOption},B);else if(R.seriesIndex!=null){if(this._manuallyAxisShowTip(I,_,F,R))return;var P=o(R,_),z=P.point[0],W=P.point[1];z!=null&&W!=null&&this._tryShow({offsetX:z,offsetY:W,position:R.position,target:P.el},B)}else R.x!=null&&R.y!=null&&(F.dispatchAction({type:"updateAxisPointer",x:R.x,y:R.y}),this._tryShow({offsetX:R.x,offsetY:R.y,position:R.position,target:F.getZr().findHover(R.x,R.y).target},B))},manuallyHideTip:function(I,_,F,R){var B=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&B.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=null,R.from!==this.uid&&this._hide(x(R,F))},_manuallyAxisShowTip:function(I,_,F,R){var B=R.seriesIndex,M=R.dataIndex,X=_.getComponent("axisPointer").coordSysAxesInfo;if(B==null||M==null||X==null)return;var P=_.getSeriesByIndex(B);if(!P)return;var z=P.getData(),I=w([z.getItemModel(M),P,(P.coordinateSystem||{}).model,I]);return I.get("trigger")!=="axis"?void 0:(F.dispatchAction({type:"updateAxisPointer",seriesIndex:B,dataIndex:M,position:R.position}),!0)},_tryShow:function(I,_){var F=I.target,R=this._tooltipModel;if(!R)return;this._lastX=I.offsetX,this._lastY=I.offsetY;var B=I.dataByCoordSys;B&&B.length?this._showAxisTooltip(B,I):F&&F.dataIndex!=null?(this._lastDataByCoordSys=null,this._showSeriesItemTooltip(I,F,_)):F&&F.tooltip?(this._lastDataByCoordSys=null,this._showComponentItemTooltip(I,F,_)):(this._lastDataByCoordSys=null,this._hide(_))},_showOrMove:function(I,_){var F=I.get("showDelay");_=p.bind(_,this),clearTimeout(this._showTimout),F>0?this._showTimout=setTimeout(_,F):_()},_showAxisTooltip:function(I,_){var F=this._ecModel,R=this._tooltipModel,B=[_.offsetX,_.offsetY],M=[],X=[],P=w([_.tooltipOption,R]),z=this._renderMode,W=this._newLine,U={};h(I,function(Q){h(Q.dataByAxis,function(G){var te=F.getComponent(G.axisDim+"Axis",G.axisIndex),$=G.value,le=[];if(!te||$==null)return;var re=u.getValueLabel($,te.axis,F,G.seriesDataIndices,G.valueLabelOpt);p.each(G.seriesDataIndices,function(Re){var Pe=F.getSeriesByIndex(Re.seriesIndex),Je=Re.dataIndexInside,Ve=Pe&&Pe.getDataParams(Je);if(Ve.axisDim=G.axisDim,Ve.axisIndex=G.axisIndex,Ve.axisType=G.axisType,Ve.axisId=G.axisId,Ve.axisValue=e.getAxisRawValue(te.axis,$),Ve.axisValueLabel=re,Ve){X.push(Ve);var ct=Pe.formatTooltip(Je,!0,null,z),Ue;if(p.isObject(ct)){Ue=ct.html;var ue=ct.markers;p.merge(U,ue)}else Ue=ct;le.push(Ue)}});var Se=re;z!=="html"?M.push(le.join(W)):M.push((Se?f.encodeHTML(Se)+W:"")+le.join(W))})},this),M.reverse(),M=M.join(this._newLine+this._newLine);var V=_.position;this._showOrMove(P,function(){this._updateContentNotChangedOnAxis(I)?this._updatePosition(P,V,B[0],B[1],this._tooltipContent,X):this._showTooltipContent(P,M,X,Math.random(),B[0],B[1],V,void 0,U)})},_showSeriesItemTooltip:function(I,_,F){var R=this._ecModel,B=_.seriesIndex,M=R.getSeriesByIndex(B),X=_.dataModel||M,P=_.dataIndex,z=_.dataType,W=X.getData(z),U=w([W.getItemModel(P),X,M&&(M.coordinateSystem||{}).model,this._tooltipModel]),V=U.get("trigger");if(V!=null&&V!=="item")return;var Q=X.getDataParams(P,z),G=X.formatTooltip(P,!1,z,this._renderMode),te,$;p.isObject(G)?(te=G.html,$=G.markers):(te=G,$=null);var le="item_"+X.name+"_"+P;this._showOrMove(U,function(){this._showTooltipContent(U,te,Q,le,I.offsetX,I.offsetY,I.position,I.target,$)}),F({type:"showTip",dataIndexInside:P,dataIndex:W.getRawIndex(P),seriesIndex:B,from:this.uid})},_showComponentItemTooltip:function(I,_,F){var R=_.tooltip;if(typeof R=="string"){var B=R;R={content:B,formatter:B}}var M=new t(R,this._tooltipModel,this._ecModel),X=M.get("content"),P=Math.random();this._showOrMove(M,function(){this._showTooltipContent(M,X,M.get("formatterParams")||{},P,I.offsetX,I.offsetY,I.position,_)}),F({type:"showTip",from:this.uid})},_showTooltipContent:function(I,_,F,R,B,M,X,P,z){if(this._ticket="",!I.get("showContent")||!I.get("show"))return;var W=this._tooltipContent,U=I.get("formatter");X=X||I.get("position");var V=_;if(U&&typeof U=="string")V=f.formatTpl(U,F,!0);else if(typeof U=="function"){var Q=c(function(G,te){G===this._ticket&&(W.setContent(te,z,I),this._updatePosition(I,X,B,M,W,F,P))},this);this._ticket=R,V=U(F,R,Q)}W.setContent(V,z,I),W.show(I),this._updatePosition(I,X,B,M,W,F,P)},_updatePosition:function(I,_,F,R,B,M,X){var P=this._api.getWidth(),z=this._api.getHeight();_=_||I.get("position");var W=B.getSize(),U=I.get("align"),V=I.get("verticalAlign"),Q=X&&X.getBoundingRect().clone();if(X&&Q.applyTransform(X.transform),typeof _=="function"&&(_=_([F,R],M,B.el,Q,{viewSize:[P,z],contentSize:W.slice()})),p.isArray(_))F=g(_[0],P),R=g(_[1],z);else if(p.isObject(_)){_.width=W[0],_.height=W[1];var G=n.getLayoutRect(_,{width:P,height:z});F=G.x,R=G.y,U=null,V=null}else if(typeof _=="string"&&X){var te=E(_,Q,W);F=te[0],R=te[1]}else{var te=T(F,R,B,P,z,U?null:20,V?null:20);F=te[0],R=te[1]}if(U&&(F-=C(U)?W[0]/2:U==="right"?W[0]:0),V&&(R-=C(V)?W[1]/2:V==="bottom"?W[1]:0),I.get("confine")){var te=O(F,R,B,P,z);F=te[0],R=te[1]}B.moveTo(F,R)},_updateContentNotChangedOnAxis:function(I){var _=this._lastDataByCoordSys,F=!!_&&_.length===I.length;return F&&h(_,function(R,B){var M=R.dataByAxis||{},X=I[B]||{},P=X.dataByAxis||[];F&=M.length===P.length,F&&h(M,function(z,W){var U=P[W]||{},V=z.seriesDataIndices||[],Q=U.seriesDataIndices||[];F&=z.value===U.value&&z.axisType===U.axisType&&z.axisId===U.axisId&&V.length===Q.length,F&&h(V,function(G,te){var $=Q[te];F&=G.seriesIndex===$.seriesIndex&&G.dataIndex===$.dataIndex})})}),this._lastDataByCoordSys=I,!!F},_hide:function(I){this._lastDataByCoordSys=null,I({type:"hideTip",from:this.uid})},dispose:function(I,_){if(S.node)return;this._tooltipContent.dispose(),a.unregister("itemTooltip",_)}});function w(I){for(var _=I.pop();I.length;){var F=I.pop();F&&(t.isInstance(F)&&(F=F.get("tooltip",!0)),typeof F=="string"&&(F={formatter:F}),_=new t(F,_,_.ecModel))}return _}function x(I,_){return I.dispatchAction||p.bind(_.dispatchAction,_)}function T(I,_,F,R,B,M,X){var P=F.getOuterSize(),z=P.width,W=P.height;return M!=null&&(I+z+M>R?I-=z+M:I+=M),X!=null&&(_+W+X>B?_-=W+X:_+=X),[I,_]}function O(I,_,F,R,B){var M=F.getOuterSize(),X=M.width,P=M.height;return I=Math.min(I+X,R)-X,_=Math.min(_+P,B)-P,I=Math.max(I,0),_=Math.max(_,0),[I,_]}function E(I,_,F){var R=F[0],B=F[1],M=5,X=0,P=0,z=_.width,W=_.height;switch(I){case"inside":X=_.x+z/2-R/2,P=_.y+W/2-B/2;break;case"top":X=_.x+z/2-R/2,P=_.y-B-M;break;case"bottom":X=_.x+z/2-R/2,P=_.y+W+M;break;case"left":X=_.x-R-M,P=_.y+W/2-B/2;break;case"right":X=_.x+z+M,P=_.y+W/2-B/2}return[X,P]}function C(I){return I==="center"||I==="middle"}k.exports=b},Qxkt:function(k,D,i){var y=i("bYtY"),p=i("ItGF"),S=i("4NO4"),A=S.makeInner,m=i("Yl7c"),f=m.enableClassExtend,d=m.enableClassCheck,l=i("OQFs"),o=i("m9t5"),n=i("/iHx"),t=i("VR9l"),a=y.mixin,e=A();function u(h,g,v){this.parentModel=g,this.ecModel=v,this.option=h}u.prototype={constructor:u,init:null,mergeOption:function(h){y.merge(this.option,h,!0)},get:function(h,g){return h==null?this.option:r(this.option,this.parsePath(h),!g&&s(this,h))},getShallow:function(h,g){var v=this.option,b=v==null?v:v[h],w=!g&&s(this,h);return b==null&&w&&(b=w.getShallow(h)),b},getModel:function(h,g){var v=h==null?this.option:r(this.option,h=this.parsePath(h)),b;return g=g||(b=s(this,h))&&b.getModel(h),new u(v,g,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(!p.node){if(this.option.animation!=null)return!!this.option.animation;if(this.parentModel)return this.parentModel.isAnimationEnabled()}}};function r(h,g,v){for(var b=0;b<g.length;b++){if(!g[b])continue;if(h=h&&typeof h=="object"?h[g[b]]:null,h==null)break}return h==null&&v&&(h=v.get(g)),h}function s(h,g){var v=e(h).getParent;return v?v.call(h,g):h.parentModel}f(u),d(u),a(u,l),a(u,o),a(u,n),a(u,t);var c=u;k.exports=c},QyFq:function(k,D,i){"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(k,D,i){var y=i("S/Yl"),p=i("IDmD");function S(A,m){var f=[];return A.eachComponent("singleAxis",function(d,l){var o=new y(d,A,m);o.name="single_"+l,o.resize(d,m),d.coordinateSystem=o,f.push(o)}),A.eachSeries(function(d){if(d.get("coordinateSystem")==="singleAxis"){var l=A.queryComponents({mainType:"singleAxis",index:d.get("singleAxisIndex"),id:d.get("singleAxisId")})[0];d.coordinateSystem=l&&l.coordinateSystem}}),f}p.register("single",{create:S,dimensions:y.prototype.dimensions})},R4Th:function(k,D,i){var y=i("ProS"),p=i("9wZj"),S=i("yO87"),A=i("Fofx"),m=i("h8O9"),f=y.extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new p(S)},render:function(d,l,o){var n=d.getData(),t=this._symbolDraw;t.updateData(n),this.group.add(t.group)},updateTransform:function(d,l,o){var n=d.getData();this.group.dirty();var t=m().reset(d);t.progress&&t.progress({start:0,end:n.count()},n),this._symbolDraw.updateLayout(n)},_updateGroupTransform:function(d){var l=d.coordinateSystem;l&&l.getRoamTransform&&(this.group.transform=A.clone(l.getRoamTransform()),this.group.decomposeTransform())},remove:function(d,l){this._symbolDraw&&this._symbolDraw.remove(l)},dispose:function(){}});k.exports=f},R9oj:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("pwpV"),A=i.n(S)},RBEP:function(k,D,i){for(var y=i("ProS"),p=i("VaxA"),S=function(){},A=["treemapZoomToNode","treemapRender","treemapMove"],m=0;m<A.length;m++)y.registerAction({type:A[m],update:"updateView"},S);y.registerAction({type:"treemapRootToNode",update:"updateView"},function(f,d){d.eachComponent({mainType:"series",subType:"treemap",query:f},l);function l(o,n){var t=["treemapZoomToNode","treemapRootToNode"],a=p.retrieveTargetInfo(f,t,o);if(a){var e=o.getViewRoot();e&&(f.direction=p.aboveViewRoot(e,a.node)?"rollUp":"drillDown"),o.resetViewRoot(a.node)}}})},RCxd:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("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"},A=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:A}))};f.displayName="ExclamationCircleOutlined";var d=D.a=p.forwardRef(f)},RDYZ:function(k,D,i){var y=i("dMvE");function p(A){this._target=A.target,this._life=A.life||1e3,this._delay=A.delay||0,this._initialized=!1,this.loop=A.loop==null?!1:A.loop,this.gap=A.gap||0,this.easing=A.easing||"Linear",this.onframe=A.onframe,this.ondestroy=A.ondestroy,this.onrestart=A.onrestart,this._pausedTime=0,this._paused=!1}p.prototype={constructor:p,step:function(m,f){if(this._initialized||(this._startTime=m+this._delay,this._initialized=!0),this._paused){this._pausedTime+=f;return}var d=(m-this._startTime-this._pausedTime)/this._life;if(d<0)return;d=Math.min(d,1);var l=this.easing,o=typeof l=="string"?y[l]:l,n=typeof o=="function"?o(d):d;return this.fire("frame",n),d===1?this.loop?(this.restart(m),"restart"):(this._needsRemove=!0,"destroy"):null},restart:function(m){var f=(m-this._startTime-this._pausedTime)%this._life;this._startTime=m-f+this.gap,this._pausedTime=0,this._needsRemove=!1},fire:function(m,f){m="on"+m,this[m]&&this[m](this._target,f)},pause:function(){this._paused=!0},resume:function(){this._paused=!1}};var S=p;k.exports=S},RELg:function(k,D,i){var y=i("MFOe"),p=y.Global;k.exports={name:"oldIE-userDataStorage",write:d,read:l,each:o,remove:n,clearAll:t};var S="storejs",A=p.document,m=u(),f=(p.navigator?p.navigator.userAgent:"").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);function d(r,s){if(f)return;var c=e(r);m(function(h){h.setAttribute(c,s),h.save(S)})}function l(r){if(f)return;var s=e(r),c=null;return m(function(h){c=h.getAttribute(s)}),c}function o(r){m(function(s){for(var c=s.XMLDocument.documentElement.attributes,h=c.length-1;h>=0;h--){var g=c[h];r(s.getAttribute(g.name),g.name)}})}function n(r){var s=e(r);m(function(c){c.removeAttribute(s),c.save(S)})}function t(){m(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 a=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function e(r){return r.replace(/^\d/,"___$&").replace(a,"___")}function u(){if(!A||!A.documentElement||!A.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(g){h=A.createElement("div"),s=A.body}return function(g){var v=[].slice.call(arguments,0);v.unshift(h),s.appendChild(h),h.addBehavior("#default#userData"),h.load(S),g.apply(this,v),s.removeChild(h);return}}},RPvy:function(k,D,i){var y=i("ProS"),p=i("VaxA"),S="sunburstRootToNode";y.registerAction({type:S,update:"updateView"},function(f,d){d.eachComponent({mainType:"series",subType:"sunburst",query:f},l);function l(o,n){var t=p.retrieveTargetInfo(f,[S],o);if(t){var a=o.getViewRoot();a&&(f.direction=p.aboveViewRoot(a,t.node)?"rollUp":"drillDown"),o.resetViewRoot(t.node)}}});var A="sunburstHighlight";y.registerAction({type:A,update:"updateView"},function(f,d){d.eachComponent({mainType:"series",subType:"sunburst",query:f},l);function l(o,n){var t=p.retrieveTargetInfo(f,[A],o);t&&(f.highlight=t.node)}});var m="sunburstUnhighlight";y.registerAction({type:m,update:"updateView"},function(f,d){d.eachComponent({mainType:"series",subType:"sunburst",query:f},l);function l(o,n){f.unhighlight=!0}})},RSch:function(k,D,i){var y=i("IwbS"),p=i("bYtY");function S(f,d,l){y.Group.call(this),this._createPolyline(f,d,l)}var A=S.prototype;A._createPolyline=function(f,d,l){var o=f.getItemLayout(d),n=new y.Polyline({shape:{points:o}});this.add(n),this._updateCommonStl(f,d,l)},A.updateData=function(f,d,l){var o=f.hostModel,n=this.childAt(0),t={shape:{points:f.getItemLayout(d)}};y.updateProps(n,t,o,d),this._updateCommonStl(f,d,l)},A._updateCommonStl=function(f,d,l){var o=this.childAt(0),n=f.getItemModel(d),t=f.getItemVisual(d,"color"),a=l&&l.lineStyle,e=l&&l.hoverLineStyle;(!l||f.hasItemOption)&&(a=n.getModel("lineStyle").getLineStyle(),e=n.getModel("emphasis.lineStyle").getLineStyle()),o.useStyle(p.defaults({strokeNoScale:!0,fill:"none",stroke:t},a)),o.hoverStyle=e,y.setHoverStyle(this)},A.updateLayout=function(f,d){var l=this.childAt(0);l.setShape("points",f.getItemLayout(d))},p.inherits(S,y.Group);var m=S;k.exports=m},RXMa:function(k,D,i){var y=i("y+Vt"),p=y.extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(A,m){var f=m.cx,d=m.cy,l=Math.PI*2;A.moveTo(f+m.r,d),A.arc(f,d,m.r,0,l,!1),A.moveTo(f+m.r0,d),A.arc(f,d,m.r0,0,l,!0)}});k.exports=p},RZPm:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("JgUQ")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="FileOutlined";var n=A.forwardRef(o);D.default=n},RlCK:function(k,D,i){var y=i("ProS"),p=i("bYtY");function S(A,m,f){var d={},l=A==="toggleSelected",o;return f.eachComponent("legend",function(n){l&&o!=null?n[o?"select":"unSelect"](m.name):A==="allSelect"||A==="inverseSelect"?n[A]():(n[A](m.name),o=n.isSelected(m.name));var t=n.getData();p.each(t,function(a){var e=a.get("name");if(e===`
`||e==="")return;var u=n.isSelected(e);d.hasOwnProperty(e)?d[e]=d[e]&&u:d[e]=u})}),A==="allSelect"||A==="inverseSelect"?{selected:d}:{name:m.name,selected:d}}y.registerAction("legendToggleSelect","legendselectchanged",p.curry(S,"toggleSelected")),y.registerAction("legendAllSelect","legendselectall",p.curry(S,"allSelect")),y.registerAction("legendInverseSelect","legendinverseselect",p.curry(S,"inverseSelect")),y.registerAction("legendSelect","legendselected",p.curry(S,"select")),y.registerAction("legendUnSelect","legendunselected",p.curry(S,"unSelect"))},RotF:function(k,D,i){k.exports=i("LSTS")},Rx6q:function(k,D){function i(y){var p=y.getRect(),S=y.getRangeInfo();return{coordSys:{type:"calendar",x:p.x,y:p.y,width:p.width,height:p.height,cellWidth:y.getCellWidth(),cellHeight:y.getCellHeight(),rangeInfo:{start:S.start,end:S.end,weeks:S.weeks,dayCount:S.allDay}},api:{coord:function(A,m){return y.dataToPoint(A,m)}}}}k.exports=i},"S/Yl":function(k,D,i){var y=i("Zvw2"),p=i("aX7z"),S=i("+TT/"),A=S.getLayoutRect,m=i("bYtY"),f=m.each;function d(o,n,t){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(o,n,t),this.model=o}d.prototype={type:"singleAxis",axisPointerEnabled:!0,constructor:d,_init:function(o,n,t){var a=this.dimension,e=new y(a,p.createScaleByModel(o),[0,0],o.get("type"),o.get("position")),u=e.type==="category";e.onBand=u&&o.get("boundaryGap"),e.inverse=o.get("inverse"),e.orient=o.get("orient"),o.axis=e,e.model=o,e.coordinateSystem=this,this._axis=e},update:function(o,n){o.eachSeries(function(t){if(t.coordinateSystem===this){var a=t.getData();f(a.mapDimension(this.dimension,!0),function(e){this._axis.scale.unionExtentFromData(a,e)},this),p.niceScaleExtent(this._axis.scale,this._axis.model)}},this)},resize:function(o,n){this._rect=A({left:o.get("left"),top:o.get("top"),right:o.get("right"),bottom:o.get("bottom"),width:o.get("width"),height:o.get("height")},{width:n.getWidth(),height:n.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var o=this._rect,n=this._axis,t=n.isHorizontal(),a=t?[0,o.width]:[0,o.height],e=n.reverse?1:0;n.setExtent(a[e],a[1-e]),this._updateAxisTransform(n,t?o.x:o.y)},_updateAxisTransform:function(o,n){var t=o.getExtent(),a=t[0]+t[1],e=o.isHorizontal();o.toGlobalCoord=e?function(u){return u+n}:function(u){return a-u+n},o.toLocalCoord=e?function(u){return u-n}:function(u){return a-u+n}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},getAxes:function(){return[this._axis]},getTooltipAxes:function(){return{baseAxes:[this.getAxis()]}},containPoint:function(o){var n=this.getRect(),t=this.getAxis(),a=t.orient;return a==="horizontal"?t.contain(t.toLocalCoord(o[0]))&&o[1]>=n.y&&o[1]<=n.y+n.height:t.contain(t.toLocalCoord(o[1]))&&o[0]>=n.y&&o[0]<=n.y+n.height},pointToData:function(o){var n=this.getAxis();return[n.coordToData(n.toLocalCoord(o[n.orient==="horizontal"?0:1]))]},dataToPoint:function(o){var n=this.getAxis(),t=this.getRect(),a=[],e=n.orient==="horizontal"?0:1;return o instanceof Array&&(o=o[0]),a[e]=n.toGlobalCoord(n.dataToCoord(+o)),a[1-e]=e===0?t.y+t.height/2:t.x+t.width/2,a}};var l=d;k.exports=l},S6kV:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return y.mode.OFB=function(){var p=y.lib.BlockCipherMode.extend(),S=p.Encryptor=p.extend({processBlock:function(m,f){var d=this._cipher,l=d.blockSize,o=this._iv,n=this._keystream;o&&(n=this._keystream=o.slice(0),this._iv=void 0),d.encryptBlock(n,0);for(var t=0;t<l;t++)m[f+t]^=n[t]}});return p.Decryptor=S,p}(),y.mode.OFB})},"SA+Z":function(k,D,i){var y=i("wTVA"),p=i("EbDI"),S=i("ZhPi"),A=i("wkBT");function m(f){return y(f)||p(f)||S(f)||A()}k.exports=m,k.exports.__esModule=!0,k.exports.default=k.exports},"SA4+":function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("ProS"),A=i("IwbS"),m=i("zYTA"),f=i("bYtY");function d(t,a,e){var u=t[1]-t[0];a=f.map(a,function(c){return{interval:[(c.interval[0]-t[0])/u,(c.interval[1]-t[0])/u]}});var r=a.length,s=0;return function(c){for(var h=s;h<r;h++){var g=a[h].interval;if(g[0]<=c&&c<=g[1]){s=h;break}}if(h===r)for(var h=s-1;h>=0;h--){var g=a[h].interval;if(g[0]<=c&&c<=g[1]){s=h;break}}return h>=0&&h<r&&e[h]}}function l(t,a){var e=t[1]-t[0];return a=[(a[0]-t[0])/e,(a[1]-t[0])/e],function(u){return u>=a[0]&&u<=a[1]}}function o(t){var a=t.dimensions;return a[0]==="lng"&&a[1]==="lat"}var n=S.extendChartView({type:"heatmap",render:function(t,a,e){var u;a.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()):o(r)&&this._renderOnGeo(r,t,u,e)},incrementalPrepareRender:function(t,a,e){this.group.removeAll()},incrementalRender:function(t,a,e,u){var r=a.coordinateSystem;r&&this._renderOnCartesianAndCalendar(a,u,t.start,t.end,!0)},_renderOnCartesianAndCalendar:function(t,a,e,u,r){var s=t.coordinateSystem,c,h;if(s.type==="cartesian2d"){var g=s.getAxis("x"),v=s.getAxis("y");c=g.getBandWidth(),h=v.getBandWidth()}for(var b=this.group,w=t.getData(),x="itemStyle",T="emphasis.itemStyle",O="label",E="emphasis.label",C=t.getModel(x).getItemStyle(["color"]),I=t.getModel(T).getItemStyle(),_=t.getModel(O),F=t.getModel(E),R=s.type,B=R==="cartesian2d"?[w.mapDimension("x"),w.mapDimension("y"),w.mapDimension("value")]:[w.mapDimension("time"),w.mapDimension("value")],M=e;M<u;M++){var X;if(R==="cartesian2d"){if(isNaN(w.get(B[2],M)))continue;var P=s.dataToPoint([w.get(B[0],M),w.get(B[1],M)]);X=new A.Rect({shape:{x:Math.floor(Math.round(P[0])-c/2),y:Math.floor(Math.round(P[1])-h/2),width:Math.ceil(c),height:Math.ceil(h)},style:{fill:w.getItemVisual(M,"color"),opacity:w.getItemVisual(M,"opacity")}})}else{if(isNaN(w.get(B[1],M)))continue;X=new A.Rect({z2:1,shape:s.dataToRect([w.get(B[0],M)]).contentShape,style:{fill:w.getItemVisual(M,"color"),opacity:w.getItemVisual(M,"opacity")}})}var z=w.getItemModel(M);w.hasItemOption&&(C=z.getModel(x).getItemStyle(["color"]),I=z.getModel(T).getItemStyle(),_=z.getModel(O),F=z.getModel(E));var W=t.getRawValue(M),U="-";W&&W[2]!=null&&(U=W[2]),A.setLabelStyle(C,I,_,F,{labelFetcher:t,labelDataIndex:M,defaultText:U,isRectText:!0}),X.setStyle(C),A.setHoverStyle(X,w.hasItemOption?I:f.extend({},I)),X.incremental=r,r&&(X.useHoverLayer=!0),b.add(X),w.setItemGraphicEl(M,X)}},_renderOnGeo:function(t,a,e,u){var r=e.targetVisuals.inRange,s=e.targetVisuals.outOfRange,c=a.getData(),h=this._hmLayer||this._hmLayer||new m;h.blurSize=a.get("blurSize"),h.pointSize=a.get("pointSize"),h.minOpacity=a.get("minOpacity"),h.maxOpacity=a.get("maxOpacity");var g=t.getViewRect().clone(),v=t.getRoamTransform();g.applyTransform(v);var b=Math.max(g.x,0),w=Math.max(g.y,0),x=Math.min(g.width+g.x,u.getWidth()),T=Math.min(g.height+g.y,u.getHeight()),O=x-b,E=T-w,C=[c.mapDimension("lng"),c.mapDimension("lat"),c.mapDimension("value")],I=c.mapArray(C,function(B,M,X){var P=t.dataToPoint([B,M]);return P[0]-=b,P[1]-=w,P.push(X),P}),_=e.getExtent(),F=e.type==="visualMap.continuous"?l(_,e.option.range):d(_,e.getPieceList(),e.option.selected);h.update(I,O,E,r.color.getNormalizer(),{inRange:r.color.getColorMapper(),outOfRange:s.color.getColorMapper()},F);var R=new A.Image({style:{width:O,height:E,x:b,y:w,image:h.canvas},silent:!0});this.group.add(R)},dispose:function(){}});k.exports=n},SA8n:function(k,D,i){var y=i("Sj9i"),p=i("QBsz"),S=i("U/Mo"),A=S.getSymbolSize,m=[],f=[],d=[],l=y.quadraticAt,o=p.distSquare,n=Math.abs;function t(e,u,r){for(var s=e[0],c=e[1],h=e[2],g=Infinity,v,b=r*r,w=.1,x=.1;x<=.9;x+=.1){m[0]=l(s[0],c[0],h[0],x),m[1]=l(s[1],c[1],h[1],x);var T=n(o(m,u)-b);T<g&&(g=T,v=x)}for(var O=0;O<32;O++){var E=v+w;f[0]=l(s[0],c[0],h[0],v),f[1]=l(s[1],c[1],h[1],v),d[0]=l(s[0],c[0],h[0],E),d[1]=l(s[1],c[1],h[1],E);var T=o(f,u)-b;if(n(T)<.01)break;var C=o(d,u)-b;w/=2,T<0?C>=0?v=v+w:v=v-w:C>=0?v=v-w:v=v+w}return v}function a(e,u){var r=[],s=y.quadraticSubdivide,c=[[],[],[]],h=[[],[]],g=[];u/=2,e.eachEdge(function(v,b){var w=v.getLayout(),x=v.getVisual("fromSymbol"),T=v.getVisual("toSymbol");w.__original||(w.__original=[p.clone(w[0]),p.clone(w[1])],w[2]&&w.__original.push(p.clone(w[2])));var O=w.__original;if(w[2]!=null){if(p.copy(c[0],O[0]),p.copy(c[1],O[2]),p.copy(c[2],O[1]),x&&x!=="none"){var E=A(v.node1),C=t(c,O[0],E*u);s(c[0][0],c[1][0],c[2][0],C,r),c[0][0]=r[3],c[1][0]=r[4],s(c[0][1],c[1][1],c[2][1],C,r),c[0][1]=r[3],c[1][1]=r[4]}if(T&&T!=="none"){var E=A(v.node2),C=t(c,O[1],E*u);s(c[0][0],c[1][0],c[2][0],C,r),c[1][0]=r[1],c[2][0]=r[2],s(c[0][1],c[1][1],c[2][1],C,r),c[1][1]=r[1],c[2][1]=r[2]}p.copy(w[0],c[0]),p.copy(w[1],c[2]),p.copy(w[2],c[1])}else{if(p.copy(h[0],O[0]),p.copy(h[1],O[1]),p.sub(g,h[1],h[0]),p.normalize(g,g),x&&x!=="none"){var E=A(v.node1);p.scaleAndAdd(h[0],h[0],g,E*u)}if(T&&T!=="none"){var E=A(v.node2);p.scaleAndAdd(h[1],h[1],g,-E*u)}p.copy(w[0],h[0]),p.copy(w[1],h[1])}})}k.exports=a},SJMd:function(k,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 i,y,p,S=!1,A,m;window.PR_SHOULD_USE_CONTINUATION=!0;var f,d;(function(){var l=window,o=["break,continue,do,else,for,if,return,while"],n=[o,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,restrict,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],t=[n,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],a=[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=[o,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],g=[o,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],v=[o,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],b=[a,u,e,s,c,h,g,v],w=/^(DIR|FILE|array|vector|(de|priority_)?queue|(forward_)?list|stack|(const_)?(reverse_)?iterator|(unordered_)?(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,x="str",T="kwd",O="com",E="typ",C="lit",I="pun",_="pln",F="tag",R="dec",B="src",M="atn",X="atv",P="nocode",z="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function W(ge){for(var Z=0,Y=!1,ee=!1,fe=0,be=ge.length;fe<be;++fe){var Ce=ge[fe];if(Ce.ignoreCase)ee=!0;else if(/[a-z]/i.test(Ce.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){Y=!0,ee=!1;break}}var Te={b:8,t:9,n:10,v:11,f:12,r:13};function he(st){var Fe=st.charCodeAt(0);if(Fe!==92)return Fe;var ft=st.charAt(1);return Fe=Te[ft],Fe||("0"<=ft&&ft<="7"?parseInt(st.substring(1),8):ft==="u"||ft==="x"?parseInt(st.substring(2),16):st.charCodeAt(1))}function ye(st){if(st<32)return(st<16?"\\x0":"\\x")+st.toString(16);var Fe=String.fromCharCode(st);return Fe==="\\"||Fe==="-"||Fe==="]"||Fe==="^"?"\\"+Fe:Fe}function Ie(st){var Fe=st.substring(1,st.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")),ft=[],et=Fe[0]==="^",wt=["["];et&&wt.push("^");for(var Ht=et?1:0,Dt=Fe.length;Ht<Dt;++Ht){var Tt=Fe[Ht];if(/\\[bdsw]/i.test(Tt))wt.push(Tt);else{var Bt=he(Tt),Ke;Ht+2<Dt&&Fe[Ht+1]==="-"?(Ke=he(Fe[Ht+2]),Ht+=2):Ke=Bt,ft.push([Bt,Ke]),Ke<65||Bt>122||(Ke<65||Bt>90||ft.push([Math.max(65,Bt)|32,Math.min(Ke,90)|32]),Ke<97||Bt>122||ft.push([Math.max(97,Bt)&~32,Math.min(Ke,122)&~32]))}}ft.sort(function(qe,pe){return qe[0]-pe[0]||pe[1]-qe[1]});for(var de=[],oe=[],Ht=0;Ht<ft.length;++Ht){var lt=ft[Ht];lt[0]<=oe[1]+1?oe[1]=Math.max(oe[1],lt[1]):de.push(oe=lt)}for(var Ht=0;Ht<de.length;++Ht){var lt=de[Ht];wt.push(ye(lt[0])),lt[1]>lt[0]&&(lt[1]+1>lt[0]&&wt.push("-"),wt.push(ye(lt[1])))}return wt.push("]"),wt.join("")}function tt(st){for(var Fe=st.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")),ft=Fe.length,et=[],wt=0,Ht=0;wt<ft;++wt){var Dt=Fe[wt];if(Dt==="(")++Ht;else if(Dt.charAt(0)==="\\"){var Tt=+Dt.substring(1);Tt&&(Tt<=Ht?et[Tt]=-1:Fe[wt]=ye(Tt))}}for(var wt=1;wt<et.length;++wt)et[wt]===-1&&(et[wt]=++Z);for(var wt=0,Ht=0;wt<ft;++wt){var Dt=Fe[wt];if(Dt==="(")++Ht,et[Ht]||(Fe[wt]="(?:");else if(Dt.charAt(0)==="\\"){var Tt=+Dt.substring(1);Tt&&Tt<=Ht&&(Fe[wt]="\\"+et[Tt])}}for(var wt=0;wt<ft;++wt)Fe[wt]==="^"&&Fe[wt+1]!=="^"&&(Fe[wt]="");if(st.ignoreCase&&Y)for(var wt=0;wt<ft;++wt){var Dt=Fe[wt],Bt=Dt.charAt(0);Dt.length>=2&&Bt==="["?Fe[wt]=Ie(Dt):Bt!=="\\"&&(Fe[wt]=Dt.replace(/[a-zA-Z]/g,function(oe){var lt=oe.charCodeAt(0);return"["+String.fromCharCode(lt&~32,lt|32)+"]"}))}return Fe.join("")}for(var pt=[],fe=0,be=ge.length;fe<be;++fe){var Ce=ge[fe];if(Ce.global||Ce.multiline)throw new Error(""+Ce);pt.push("(?:"+tt(Ce)+")")}return new RegExp(pt.join("|"),ee?"gi":"g")}function U(ge,Z){var Y=/(?:^|\s)nocode(?:\s|$)/,ee=[],fe=0,be=[],Ce=0;function Te(he){var ye=he.nodeType;if(ye==1){if(Y.test(he.className))return;for(var Ie=he.firstChild;Ie;Ie=Ie.nextSibling)Te(Ie);var tt=he.nodeName.toLowerCase();(tt==="br"||tt==="li")&&(ee[Ce]=`
`,be[Ce<<1]=fe++,be[Ce++<<1|1]=he)}else if(ye==3||ye==4){var pt=he.nodeValue;pt.length&&(Z?pt=pt.replace(/\r\n?/g,`
`):pt=pt.replace(/[ \t\r\n]+/g," "),ee[Ce]=pt,be[Ce<<1]=fe,fe+=pt.length,be[Ce++<<1|1]=he)}}return Te(ge),{sourceCode:ee.join("").replace(/\n$/,""),spans:be}}function V(ge,Z,Y,ee,fe){if(!Y)return;var be={sourceNode:ge,pre:1,langExtension:null,numberLines:null,sourceCode:Y,spans:null,basePos:Z,decorations:null};ee(be),fe.push.apply(fe,be.decorations)}var Q=/\S/;function G(ge){for(var Z=void 0,Y=ge.firstChild;Y;Y=Y.nextSibling){var ee=Y.nodeType;Z=ee===1?Z?ge:Y:ee===3&&Q.test(Y.nodeValue)?ge:Z}return Z===ge?void 0:Z}function te(ge,Z){var Y={},ee;(function(){for(var Ce=ge.concat(Z),Te=[],he={},ye=0,Ie=Ce.length;ye<Ie;++ye){var tt=Ce[ye],pt=tt[3];if(pt)for(var st=pt.length;--st>=0;)Y[pt.charAt(st)]=tt;var Fe=tt[1],ft=""+Fe;he.hasOwnProperty(ft)||(Te.push(Fe),he[ft]=null)}Te.push(/[\0-\uffff]/),ee=W(Te)})();var fe=Z.length,be=function Ce(Te){for(var he=Te.sourceCode,ye=Te.basePos,Ie=Te.sourceNode,tt=[ye,_],pt=0,st=he.match(ee)||[],Fe={},ft=0,et=st.length;ft<et;++ft){var wt=st[ft],Ht=Fe[wt],Dt=void 0,Tt;if(typeof Ht=="string")Tt=!1;else{var Bt=Y[wt.charAt(0)];if(Bt)Dt=wt.match(Bt[1]),Ht=Bt[0];else{for(var Ke=0;Ke<fe;++Ke)if(Bt=Z[Ke],Dt=wt.match(Bt[1]),Dt){Ht=Bt[0];break}Dt||(Ht=_)}Tt=Ht.length>=5&&Ht.substring(0,5)==="lang-",Tt&&!(Dt&&typeof Dt[1]=="string")&&(Tt=!1,Ht=B),Tt||(Fe[wt]=Ht)}var de=pt;if(pt+=wt.length,!Tt)tt.push(ye+de,Ht);else{var oe=Dt[1],lt=wt.indexOf(oe),qe=lt+oe.length;Dt[2]&&(qe=wt.length-Dt[2].length,lt=qe-oe.length);var pe=Ht.substring(5);V(Ie,ye+de,wt.substring(0,lt),Ce,tt),V(Ie,ye+de+lt,oe,Je(pe,oe),tt),V(Ie,ye+de+qe,wt.substring(qe),Ce,tt)}}Te.decorations=tt};return be}function $(ge){var Z=[],Y=[];ge.tripleQuotedStrings?Z.push([x,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,`'"`]):ge.multiLineStrings?Z.push([x,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):Z.push([x,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,`"'`]),ge.verbatimStrings&&Y.push([x,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var ee=ge.hashComments;ee&&(ge.cStyleComments?(ee>1?Z.push([O,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):Z.push([O,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),Y.push([x,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):Z.push([O,/^#[^\r\n]*/,null,"#"])),ge.cStyleComments&&(Y.push([O,/^\/\/[^\r\n]*/,null]),Y.push([O,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var fe=ge.regexLiterals;if(fe){var be=fe>1?"":`
\r`,Ce=be?".":"[\\S\\s]",Te="/(?=[^/*"+be+"])(?:[^/\\x5B\\x5C"+be+"]|\\x5C"+Ce+"|\\x5B(?:[^\\x5C\\x5D"+be+"]|\\x5C"+Ce+")*(?:\\x5D|$))+/";Y.push(["lang-regex",RegExp("^"+z+"("+Te+")")])}var he=ge.types;he&&Y.push([E,he]);var ye=(""+ge.keywords).replace(/^ | $/g,"");ye.length&&Y.push([T,new RegExp("^(?:"+ye.replace(/[\s,]+/g,"|")+")\\b"),null]),Z.push([_,/^\s+/,null,` \r
\xA0`]);var Ie="^.[^\\s\\w.$@'\"`/\\\\]*";return ge.regexLiterals&&(Ie+="(?!s*/)"),Y.push([C,/^@[a-z_$][a-z_$@0-9]*/i,null],[E,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[_,/^[a-z_$][a-z_$@0-9]*/i,null],[C,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[_,/^\\[\s\S]?/,null],[I,new RegExp(Ie),null]),te(Z,Y)}var le=$({keywords:b,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0});function re(ge,Z,Y){for(var ee=/(?:^|\s)nocode(?:\s|$)/,fe=/\r\n?|\n/,be=ge.ownerDocument,Ce=be.createElement("li");ge.firstChild;)Ce.appendChild(ge.firstChild);var Te=[Ce];function he(Fe){var ft=Fe.nodeType;if(ft==1&&!ee.test(Fe.className))if(Fe.nodeName==="br")ye(Fe),Fe.parentNode&&Fe.parentNode.removeChild(Fe);else for(var et=Fe.firstChild;et;et=et.nextSibling)he(et);else if((ft==3||ft==4)&&Y){var wt=Fe.nodeValue,Ht=wt.match(fe);if(Ht){var Dt=wt.substring(0,Ht.index);Fe.nodeValue=Dt;var Tt=wt.substring(Ht.index+Ht[0].length);if(Tt){var Bt=Fe.parentNode;Bt.insertBefore(be.createTextNode(Tt),Fe.nextSibling)}ye(Fe),Dt||Fe.parentNode.removeChild(Fe)}}}function ye(Fe){for(;!Fe.nextSibling;)if(Fe=Fe.parentNode,!Fe)return;function ft(Ht,Dt){var Tt=Dt?Ht.cloneNode(!1):Ht,Bt=Ht.parentNode;if(Bt){var Ke=ft(Bt,1),de=Ht.nextSibling;Ke.appendChild(Tt);for(var oe=de;oe;oe=de)de=oe.nextSibling,Ke.appendChild(oe)}return Tt}for(var et=ft(Fe.nextSibling,0),wt;(wt=et.parentNode)&&wt.nodeType===1;)et=wt;Te.push(et)}for(var Ie=0;Ie<Te.length;++Ie)he(Te[Ie]);Z===(Z|0)&&Te[0].setAttribute("value",Z);var tt=be.createElement("ol");tt.className="linenums";for(var pt=Math.max(0,Z-1|0)||0,Ie=0,st=Te.length;Ie<st;++Ie)Ce=Te[Ie],Ce.className="L"+(Ie+pt)%10,Ce.firstChild||Ce.appendChild(be.createTextNode("\xA0")),tt.appendChild(Ce);ge.appendChild(tt)}function Se(ge){var Z=/\bMSIE\s(\d+)/.exec(navigator.userAgent);Z=Z&&+Z[1]<=8;var Y=/\n/g,ee=ge.sourceCode,fe=ee.length,be=0,Ce=ge.spans,Te=Ce.length,he=0,ye=ge.decorations,Ie=ye.length,tt=0;ye[Ie]=fe;var pt,st;for(st=pt=0;st<Ie;)ye[st]!==ye[st+2]?(ye[pt++]=ye[st++],ye[pt++]=ye[st++]):st+=2;for(Ie=pt,st=pt=0;st<Ie;){for(var Fe=ye[st],ft=ye[st+1],et=st+2;et+2<=Ie&&ye[et+1]===ft;)et+=2;ye[pt++]=Fe,ye[pt++]=ft,st=et}Ie=ye.length=pt;var wt=ge.sourceNode,Ht="";wt&&(Ht=wt.style.display,wt.style.display="none");try{for(var Dt=null;he<Te;){var Tt=Ce[he],Bt=Ce[he+2]||fe,Ke=ye[tt+2]||fe,et=Math.min(Bt,Ke),de=Ce[he+1],oe;if(de.nodeType!==1&&(oe=ee.substring(be,et))){Z&&(oe=oe.replace(Y,"\r")),de.nodeValue=oe;var lt=de.ownerDocument,qe=lt.createElement("span");qe.className=ye[tt+1];var pe=de.parentNode;pe.replaceChild(qe,de),qe.appendChild(de),be<Bt&&(Ce[he+1]=de=lt.createTextNode(ee.substring(et,Bt)),pe.insertBefore(de,qe.nextSibling))}be=et,be>=Bt&&(he+=2),be>=Ke&&(tt+=2)}}finally{wt&&(wt.style.display=Ht)}}var Re={};function Pe(ge,Z){for(var Y=Z.length;--Y>=0;){var ee=Z[Y];Re.hasOwnProperty(ee)?l.console&&console.warn("cannot override language handler %s",ee):Re[ee]=ge}}function Je(ge,Z){return ge&&Re.hasOwnProperty(ge)||(ge=/^\s*</.test(Z)?"default-markup":"default-code"),Re[ge]}Pe(le,["default-code"]),Pe(te([],[[_,/^[^<?]+/],[R,/^<!\w[^>]*(?:>|$)/],[O,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[I,/^(?:<[%?]|[%?]>)/],["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"]),Pe(te([[_,/^[\s]+/,null,` \r
`],[X,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,`"'`]],[[F,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[M,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[I,/^[=<>\/]+/],["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"]),Pe(te([],[[X,/^[\s\S]+/]]),["uq.val"]),Pe($({keywords:a,hashComments:!0,cStyleComments:!0,types:w}),["c","cc","cpp","cxx","cyc","m"]),Pe($({keywords:"null,true,false"}),["json"]),Pe($({keywords:u,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:w}),["cs"]),Pe($({keywords:e,cStyleComments:!0}),["java"]),Pe($({keywords:v,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),Pe($({keywords:h,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),Pe($({keywords:c,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),Pe($({keywords:g,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),Pe($({keywords:s,cStyleComments:!0,regexLiterals:!0}),["javascript","js","ts","typescript"]),Pe($({keywords:r,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),Pe(te([],[[x,/^[\s\S]+/]]),["regex"]);function Ve(ge){var Z=ge.langExtension;try{var Y=U(ge.sourceNode,ge.pre),ee=Y.sourceCode;ge.sourceCode=ee,ge.spans=Y.spans,ge.basePos=0,Je(Z,ee)(ge),Se(ge)}catch(fe){l.console&&console.log(fe&&fe.stack||fe)}}function ct(ge,Z,Y){var ee=Y||!1,fe=Z||null,be=document.createElement("div");be.innerHTML="<pre>"+ge+"</pre>",be=be.firstChild,ee&&re(be,ee,!0);var Ce={langExtension:fe,numberLines:ee,sourceNode:be,pre:1,sourceCode:null,basePos:null,spans:null,decorations:null};return Ve(Ce),be.innerHTML}function Ue(ge,Z){var Y=Z||document.body,ee=Y.ownerDocument||document;function fe(Tt){return Y.getElementsByTagName(Tt)}for(var be=[fe("pre"),fe("code"),fe("xmp")],Ce=[],Te=0;Te<be.length;++Te)for(var he=0,ye=be[Te].length;he<ye;++he)Ce.push(be[Te][he]);be=null;var Ie=Date;Ie.now||(Ie={now:function(){return+new Date}});var tt=0,pt=/\blang(?:uage)?-([\w.]+)(?!\S)/,st=/\bprettyprint\b/,Fe=/\bprettyprinted\b/,ft=/pre|xmp/i,et=/^code$/i,wt=/^(?:pre|code|xmp)$/i,Ht={};function Dt(){for(var Tt=l.PR_SHOULD_USE_CONTINUATION?Ie.now()+250:Infinity;tt<Ce.length&&Ie.now()<Tt;tt++){for(var Bt=Ce[tt],Ke=Ht,de=Bt;de=de.previousSibling;){var oe=de.nodeType,lt=(oe===7||oe===8)&&de.nodeValue;if(lt?!/^\??prettify\b/.test(lt):oe!==3||/\S/.test(de.nodeValue))break;if(lt){Ke={},lt.replace(/\b(\w+)=([\w:.%+-]+)/g,function(Et,en,Mn){Ke[en]=Mn});break}}var qe=Bt.className;if((Ke!==Ht||st.test(qe))&&!Fe.test(qe)){for(var pe=!1,Kt=Bt.parentNode;Kt;Kt=Kt.parentNode){var hr=Kt.tagName;if(wt.test(hr)&&Kt.className&&st.test(Kt.className)){pe=!0;break}}if(!pe){Bt.className+=" prettyprinted";var gt=Ke.lang;if(!gt){gt=qe.match(pt);var nr;!gt&&(nr=G(Bt))&&et.test(nr.tagName)&&(gt=nr.className.match(pt)),gt&&(gt=gt[1])}var mr;if(ft.test(Bt.tagName))mr=1;else{var cn=Bt.currentStyle,Ar=ee.defaultView,xr=cn?cn.whiteSpace:Ar&&Ar.getComputedStyle?Ar.getComputedStyle(Bt,null).getPropertyValue("white-space"):0;mr=xr&&xr.substring(0,3)==="pre"}var qt=Ke.linenums;(qt=qt==="true"||+qt)||(qt=qe.match(/\blinenums\b(?::(\d+))?/),qt=qt?qt[1]&&qt[1].length?+qt[1]:!0:!1),qt&&re(Bt,qt,mr);var ar={langExtension:gt,sourceNode:Bt,numberLines:qt,pre:mr,sourceCode:null,basePos:null,spans:null,decorations:null};Ve(ar)}}}tt<Ce.length?l.setTimeout(Dt,250):typeof ge=="function"&&ge()}Dt()}var ue=l.PR={createSimpleLexer:te,registerLangHandler:Pe,sourceDecorator:$,PR_ATTRIB_NAME:M,PR_ATTRIB_VALUE:X,PR_COMMENT:O,PR_DECLARATION:R,PR_KEYWORD:T,PR_LITERAL:C,PR_NOCODE:P,PR_PLAIN:_,PR_PUNCTUATION:I,PR_SOURCE:B,PR_STRING:x,PR_TAG:F,PR_TYPE:E,prettyPrintOne:S?l.prettyPrintOne=ct:f=ct,prettyPrint:d=S?l.prettyPrint=Ue:d=Ue},rt=l.define;typeof rt=="function"&&rt.amd&&rt("google-code-prettify",[],function(){return ue})})()},SKnc:function(k,D,i){var y=i("bYtY"),p=i("QuXc"),S=function(f,d,l,o,n,t){this.x=f==null?0:f,this.y=d==null?0:d,this.x2=l==null?1:l,this.y2=o==null?0:o,this.type="linear",this.global=t||!1,p.call(this,n)};S.prototype={constructor:S},y.inherits(S,p);var A=S;k.exports=A},"SKx+":function(k,D,i){var y=i("ProS"),p=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=p;k.exports=S},SMc4:function(k,D,i){var y=i("bYtY"),p=i("bLfw"),S=i("nkfE"),A=i("ICMv"),m=p.extend({type:"cartesian2dAxis",axis:null,init:function(){m.superApply(this,"init",arguments),this.resetRange()},mergeOption:function(){m.superApply(this,"mergeOption",arguments),this.resetRange()},restoreData:function(){m.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(o,n){return n.type||(n.data?"category":"value")}y.merge(m.prototype,A);var d={offset:0};S("x",m,f,d),S("y",m,f,d);var l=m;k.exports=l},SRve:function(k,D,i){"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(k,D,i){var y=i("LPTA"),p=y.debugMode,S=function(){};p===1&&(S=console.error);var A=S;k.exports=A},SZEN:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.clientToElement=y;function y(p,S,A){var m=A.getBoundingClientRect(),f={x:0,y:0};return p<m.left?f.x=0:p>=m.right?f.x=m.width-1:f.x=p-m.left,S<m.top?f.y=0:S>=m.bottom?f.y=m.height-1:f.y=S-m.top,f}},Sdc0:function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("lSNA"),A=i.n(S),m=i("q1tI"),f=i("rePB"),d=i("ODXe"),l=i("Ff2n"),o=i("TSYQ"),n=i.n(o),t=i("6cGi"),a=i("4IlW"),e=m.forwardRef(function(T,O){var E,C=T.prefixCls,I=C===void 0?"rc-switch":C,_=T.className,F=T.checked,R=T.defaultChecked,B=T.disabled,M=T.loadingIcon,X=T.checkedChildren,P=T.unCheckedChildren,z=T.onClick,W=T.onChange,U=T.onKeyDown,V=Object(l.a)(T,["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"]),Q=Object(t.a)(!1,{value:F,defaultValue:R}),G=Object(d.a)(Q,2),te=G[0],$=G[1];function le(Pe,Je){var Ve=te;return B||(Ve=Pe,$(Ve),W==null||W(Ve,Je)),Ve}function re(Pe){Pe.which===a.a.LEFT?le(!1,Pe):Pe.which===a.a.RIGHT&&le(!0,Pe),U==null||U(Pe)}function Se(Pe){var Je=le(!te,Pe);z==null||z(Je,Pe)}var Re=n()(I,_,(E={},Object(f.a)(E,"".concat(I,"-checked"),te),Object(f.a)(E,"".concat(I,"-disabled"),B),E));return m.createElement("button",Object.assign({},V,{type:"button",role:"switch","aria-checked":te,disabled:B,className:Re,ref:O,onKeyDown:re,onClick:Se}),M,m.createElement("span",{className:"".concat(I,"-inner")},te?X:P))});e.displayName="Switch";var u=e,r=i("gZBC"),s=i.n(r),c=i("g0mS"),h=i("H84U"),g=i("3Nzz"),v=i("uaoM"),b=function(T,O){var E={};for(var C in T)Object.prototype.hasOwnProperty.call(T,C)&&O.indexOf(C)<0&&(E[C]=T[C]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,C=Object.getOwnPropertySymbols(T);I<C.length;I++)O.indexOf(C[I])<0&&Object.prototype.propertyIsEnumerable.call(T,C[I])&&(E[C[I]]=T[C[I]]);return E},w=m.forwardRef(function(T,O){var E,C=T.prefixCls,I=T.size,_=T.loading,F=T.className,R=F===void 0?"":F,B=T.disabled,M=b(T,["prefixCls","size","loading","className","disabled"]);Object(v.a)("checked"in M||!("value"in M),"Switch","`value` is not a valid prop, do you mean `checked`?");var X=m.useContext(h.b),P=X.getPrefixCls,z=X.direction,W=m.useContext(g.b),U=P("switch",C),V=m.createElement("div",{className:"".concat(U,"-handle")},_&&m.createElement(s.a,{className:"".concat(U,"-loading-icon")})),Q=n()(R,(E={},A()(E,"".concat(U,"-small"),(I||W)==="small"),A()(E,"".concat(U,"-loading"),_),A()(E,"".concat(U,"-rtl"),z==="rtl"),E));return m.createElement(c.a,{insertExtraNode:!0},m.createElement(u,p()({},M,{prefixCls:U,className:Q,disabled:B||_,ref:O,loadingIcon:V})))});w.__ANT_SWITCH=!0,w.displayName="Switch";var x=D.a=w},SehX:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("2B6p"),A=S.updateCenterAndZoom;y.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(m,f){var d=m.componentType||"series";f.eachComponent({mainType:d,query:m},function(l){var o=l.coordinateSystem;if(o.type!=="geo")return;var n=A(o,m,l.get("scaleLimit"));l.setCenter&&l.setCenter(n.center),l.setZoom&&l.setZoom(n.zoom),d==="series"&&p.each(l.seriesGroup,function(t){t.setCenter(n.center),t.setZoom(n.zoom)})})})},SfRM:function(k,D,i){var y=i("YESw");function p(){this.__data__=y?y(null):{},this.size=0}k.exports=p},SgGq:function(k,D,i){var y=i("bYtY"),p=i("H6uX"),S=i("YH21"),A=i("pP6R");function m(r){this.pointerChecker,this._zr=r,this._opt={};var s=y.bind,c=s(f,this),h=s(d,this),g=s(l,this),v=s(o,this),b=s(n,this);p.call(this),this.setPointerChecker=function(w){this.pointerChecker=w},this.enable=function(w,x){this.disable(),this._opt=y.defaults(y.clone(x)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),w==null&&(w=!0),(w===!0||w==="move"||w==="pan")&&(r.on("mousedown",c),r.on("mousemove",h),r.on("mouseup",g)),(w===!0||w==="scale"||w==="zoom")&&(r.on("mousewheel",v),r.on("pinch",b))},this.disable=function(){r.off("mousedown",c),r.off("mousemove",h),r.off("mouseup",g),r.off("mousewheel",v),r.off("pinch",b)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}y.mixin(m,p);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"||A.isTaken(this._zr,"globalPan"))return;var s=r.offsetX,c=r.offsetY,h=this._x,g=this._y,v=s-h,b=c-g;this._x=s,this._y=c,this._opt.preventDefaultMouseMove&&S.stop(r.event),a(this,"pan","moveOnMouseMove",r,{dx:v,dy:b,oldX:h,oldY:g,newX:s,newY:c})}function l(r){S.isMiddleOrRightButtonOnMouseUpDown(r)||(this._dragging=!1)}function o(r){var s=e("zoomOnMouseWheel",r,this._opt),c=e("moveOnMouseWheel",r,this._opt),h=r.wheelDelta,g=Math.abs(h),v=r.offsetX,b=r.offsetY;if(h===0||!s&&!c)return;if(s){var w=g>3?1.4:g>1?1.2:1.1,x=h>0?w:1/w;t(this,"zoom","zoomOnMouseWheel",r,{scale:x,originX:v,originY:b})}if(c){var T=Math.abs(h),O=(h>0?1:-1)*(T>3?.4:T>1?.15:.05);t(this,"scrollMove","moveOnMouseWheel",r,{scrollDelta:O,originX:v,originY:b})}}function n(r){if(A.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,g){r.pointerChecker&&r.pointerChecker(h,g.originX,g.originY)&&(S.stop(h.event),a(r,s,c,h,g))}function a(r,s,c,h,g){g.isAvailableBehavior=y.bind(e,null,c,h),r.trigger(s,g)}function e(r,s,c){var h=c[r];return!r||h&&(!y.isString(h)||s.event[h+"Key"])}var u=m;k.exports=u},SgaC:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(m,f){if(!(m instanceof f))throw new TypeError("Cannot call a class as a function")}function p(m,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(m,l.key,l)}}function S(m,f,d){return f&&p(m.prototype,f),d&&p(m,d),m}var A=function(){function m(){y(this,m),this._subrects=0}return S(m,[{key:"decodeRect",value:function(d,l,o,n,t,a,e){if(this._subrects===0){if(t.rQwait("RRE",4+4))return!1;this._subrects=t.rQshift32();var u=t.rQshiftBytes(4);a.fillRect(d,l,o,n,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(),g=t.rQshift16();a.fillRect(d+s,l+c,h,g,r),this._subrects--}return!0}}]),m}();D.default=A},Sj0X:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("XuBP")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="DownOutlined";var n=A.forwardRef(o);D.default=n},Sj9i:function(k,D,i){var y=i("QBsz"),p=y.create,S=y.distSquare,A=Math.pow,m=Math.sqrt,f=1e-8,d=1e-4,l=m(3),o=1/3,n=p(),t=p(),a=p();function e(C){return C>-f&&C<f}function u(C){return C>f||C<-f}function r(C,I,_,F,R){var B=1-R;return B*B*(B*C+3*R*I)+R*R*(R*F+3*B*_)}function s(C,I,_,F,R){var B=1-R;return 3*(((I-C)*B+2*(_-I)*R)*B+(F-_)*R*R)}function c(C,I,_,F,R,B){var M=F+3*(I-_)-C,X=3*(_-I*2+C),P=3*(I-C),z=C-R,W=X*X-3*M*P,U=X*P-9*M*z,V=P*P-3*X*z,Q=0;if(e(W)&&e(U))if(e(X))B[0]=0;else{var G=-P/X;G>=0&&G<=1&&(B[Q++]=G)}else{var te=U*U-4*W*V;if(e(te)){var $=U/W,G=-X/M+$,le=-$/2;G>=0&&G<=1&&(B[Q++]=G),le>=0&&le<=1&&(B[Q++]=le)}else if(te>0){var re=m(te),Se=W*X+1.5*M*(-U+re),Re=W*X+1.5*M*(-U-re);Se<0?Se=-A(-Se,o):Se=A(Se,o),Re<0?Re=-A(-Re,o):Re=A(Re,o);var G=(-X-(Se+Re))/(3*M);G>=0&&G<=1&&(B[Q++]=G)}else{var Pe=(2*W*X-3*M*U)/(2*m(W*W*W)),Je=Math.acos(Pe)/3,Ve=m(W),ct=Math.cos(Je),G=(-X-2*Ve*ct)/(3*M),le=(-X+Ve*(ct+l*Math.sin(Je)))/(3*M),Ue=(-X+Ve*(ct-l*Math.sin(Je)))/(3*M);G>=0&&G<=1&&(B[Q++]=G),le>=0&&le<=1&&(B[Q++]=le),Ue>=0&&Ue<=1&&(B[Q++]=Ue)}}return Q}function h(C,I,_,F,R){var B=6*_-12*I+6*C,M=9*I+3*F-3*C-9*_,X=3*I-3*C,P=0;if(e(M)){if(u(B)){var z=-X/B;z>=0&&z<=1&&(R[P++]=z)}}else{var W=B*B-4*M*X;if(e(W))R[0]=-B/(2*M);else if(W>0){var U=m(W),z=(-B+U)/(2*M),V=(-B-U)/(2*M);z>=0&&z<=1&&(R[P++]=z),V>=0&&V<=1&&(R[P++]=V)}}return P}function g(C,I,_,F,R,B){var M=(I-C)*R+C,X=(_-I)*R+I,P=(F-_)*R+_,z=(X-M)*R+M,W=(P-X)*R+X,U=(W-z)*R+z;B[0]=C,B[1]=M,B[2]=z,B[3]=U,B[4]=U,B[5]=W,B[6]=P,B[7]=F}function v(C,I,_,F,R,B,M,X,P,z,W){var U,V=.005,Q=Infinity,G,te,$,le;n[0]=P,n[1]=z;for(var re=0;re<1;re+=.05)t[0]=r(C,_,R,M,re),t[1]=r(I,F,B,X,re),$=S(n,t),$<Q&&(U=re,Q=$);Q=Infinity;for(var Se=0;Se<32&&!(V<d);Se++)G=U-V,te=U+V,t[0]=r(C,_,R,M,G),t[1]=r(I,F,B,X,G),$=S(t,n),G>=0&&$<Q?(U=G,Q=$):(a[0]=r(C,_,R,M,te),a[1]=r(I,F,B,X,te),le=S(a,n),te<=1&&le<Q?(U=te,Q=le):V*=.5);return W&&(W[0]=r(C,_,R,M,U),W[1]=r(I,F,B,X,U)),m(Q)}function b(C,I,_,F){var R=1-F;return R*(R*C+2*F*I)+F*F*_}function w(C,I,_,F){return 2*((1-F)*(I-C)+F*(_-I))}function x(C,I,_,F,R){var B=C-2*I+_,M=2*(I-C),X=C-F,P=0;if(e(B)){if(u(M)){var z=-X/M;z>=0&&z<=1&&(R[P++]=z)}}else{var W=M*M-4*B*X;if(e(W)){var z=-M/(2*B);z>=0&&z<=1&&(R[P++]=z)}else if(W>0){var U=m(W),z=(-M+U)/(2*B),V=(-M-U)/(2*B);z>=0&&z<=1&&(R[P++]=z),V>=0&&V<=1&&(R[P++]=V)}}return P}function T(C,I,_){var F=C+_-2*I;return F===0?.5:(C-I)/F}function O(C,I,_,F,R){var B=(I-C)*F+C,M=(_-I)*F+I,X=(M-B)*F+B;R[0]=C,R[1]=B,R[2]=X,R[3]=X,R[4]=M,R[5]=_}function E(C,I,_,F,R,B,M,X,P){var z,W=.005,U=Infinity;n[0]=M,n[1]=X;for(var V=0;V<1;V+=.05){t[0]=b(C,_,R,V),t[1]=b(I,F,B,V);var Q=S(n,t);Q<U&&(z=V,U=Q)}U=Infinity;for(var G=0;G<32&&!(W<d);G++){var te=z-W,$=z+W;t[0]=b(C,_,R,te),t[1]=b(I,F,B,te);var Q=S(t,n);if(te>=0&&Q<U)z=te,U=Q;else{a[0]=b(C,_,R,$),a[1]=b(I,F,B,$);var le=S(a,n);$<=1&&le<U?(z=$,U=le):W*=.5}}return P&&(P[0]=b(C,_,R,z),P[1]=b(I,F,B,z)),m(U)}D.cubicAt=r,D.cubicDerivativeAt=s,D.cubicRootAt=c,D.cubicExtrema=h,D.cubicSubdivide=g,D.cubicProjectPoint=v,D.quadraticAt=b,D.quadraticDerivativeAt=w,D.quadraticRootAt=x,D.quadraticExtremum=T,D.quadraticSubdivide=O,D.quadraticProjectPoint=E},Sp2Z:function(k,D,i){var y=i("3LNs"),p=i("/y7N"),S=i("AVZG"),A=i("Znkb"),m=y.extend({makeElOption:function(n,t,a,e,u){var r=a.axis,s=r.grid,c=e.get("type"),h=f(s,r).getOtherAxis(r).getGlobalExtent(),g=r.toGlobalCoord(r.dataToCoord(t,!0));if(c&&c!=="none"){var v=p.buildElStyle(e),b=d[c](r,g,h);b.style=v,n.graphicKey=b.type,n.pointer=b}var w=S.layout(s.model,a);p.buildCartesianSingleLabelElOption(t,n,w,a,e,u)},getHandleTransform:function(n,t,a){var e=S.layout(t.axis.grid.model,t,{labelInside:!1});return e.labelMargin=a.get("handle.margin"),{position:p.getTransformedPosition(t.axis,n,e),rotation:e.rotation+(e.labelDirection<0?Math.PI:0)}},updateHandleTransform:function(n,t,a,e){var u=a.axis,r=u.grid,s=u.getGlobalExtent(!0),c=f(r,u).getOtherAxis(u).getGlobalExtent(),h=u.dim==="x"?0:1,g=n.position;g[h]+=t[h],g[h]=Math.min(s[1],g[h]),g[h]=Math.max(s[0],g[h]);var v=(c[1]+c[0])/2,b=[v,v];b[h]=g[h];var w=[{verticalAlign:"middle"},{align:"center"}];return{position:g,rotation:n.rotation,cursorPoint:b,tooltipOption:w[h]}}});function f(n,t){var a={};return a[t.dim+"AxisIndex"]=t.index,n.getCartesian(a)}var d={line:function(n,t,a){var e=p.makeLineShape([t,a[0]],[t,a[1]],l(n));return{type:"Line",subPixelOptimize:!0,shape:e}},shadow:function(n,t,a){var e=Math.max(1,n.getBandWidth()),u=a[1]-a[0];return{type:"Rect",shape:p.makeRectShape([t-e/2,a[0]],[e,u],l(n))}}};function l(n){return n.dim==="x"?0:1}A.registerAxisPointerClass("CartesianAxisPointer",m);var o=m;k.exports=o},Sq3C:function(k,D,i){var y=i("sKgW"),p=i("zoYe"),S=i("wy8a"),A=i("quyA"),m=i("Z1HP"),f=i("Em2t"),d=Math.ceil;function l(o,n){n=n===void 0?" ":p(n);var t=n.length;if(t<2)return t?y(n,o):n;var a=y(n,d(o/m(n)));return A(n)?S(f(a),0,o).join(""):a.slice(0,o)}k.exports=l},SqI9:function(k,D,i){var y=i("y+Vt"),p=i("iXp4"),S=y.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},brush:p(y.prototype.brush),buildPath:function(m,f){var d=f.cx,l=f.cy,o=Math.max(f.r0||0,0),n=Math.max(f.r,0),t=f.startAngle,a=f.endAngle,e=f.clockwise,u=Math.cos(t),r=Math.sin(t);m.moveTo(u*o+d,r*o+l),m.lineTo(u*n+d,r*n+l),m.arc(d,l,n,t,a,!e),m.lineTo(Math.cos(a)*o+d,Math.sin(a)*o+l),o!==0&&m.arc(d,l,o,a,t,e),m.closePath()}});k.exports=S},SrGk:function(k,D,i){var y=i("hydK"),p=y.createElement,S=i("bYtY"),A=i("y+Vt"),m=i("Dagg"),f=i("dqUG"),d=i("P47w"),l=d.path,o=d.image,n=d.text,t="0",a="1";function e(r,s,c,h,g){this._zrId=r,this._svgRoot=s,this._tagNames=typeof c=="string"?[c]:c,this._markLabel=h,this._domName=g||"_dom",this.nextId=0}e.prototype.createElement=p,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 g=c.children;if(!g)return!1;for(var v=g.length-1;v>=0;--v)if(g[v]===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]=a)},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]!==a&&r.removeChild(h)})},e.prototype.getSvgProxy=function(r){return r instanceof A?l:r instanceof m?o:r instanceof f?n:l},e.prototype.getTextSvgElement=function(r){return r.__textSvgEl},e.prototype.getSvgElement=function(r){return r.__svgEl};var u=e;k.exports=u},Swgg:function(k,D,i){var y=i("fc+c"),p=y.extend({type:"dataZoom.select"});k.exports=p},Sxd8:function(k,D,i){var y=i("ZCgT");function p(S){var A=y(S),m=A%1;return A===A?m?A-m:A:0}k.exports=p},T1rO:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("zdCA"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},T4UG:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),A=i("ItGF"),m=i("7aKB"),f=m.formatTime,d=m.encodeHTML,l=m.addCommas,o=m.getTooltipMarker,n=i("4NO4"),t=i("bLfw"),a=i("5Hur"),e=i("OKJ2"),u=i("+TT/"),r=u.getLayoutParams,s=u.mergeLayoutParam,c=i("9H2F"),h=c.createTask,g=i("D5nY"),v=g.prepareSource,b=g.getSource,w=i("KxfA"),x=w.retrieveRawValue,T=n.makeInner(),O=t.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendVisualProvider:null,visualColorAccessPath:"itemStyle.color",visualBorderColorAccessPath:"itemStyle.borderColor",layoutMode:null,init:function(P,z,W,U){this.seriesIndex=this.componentIndex,this.dataTask=h({count:I,reset:_}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(P,W),v(this);var V=this.getInitialData(P,W);R(V,this),this.dataTask.context.data=V,T(this).dataBeforeProcessed=V,E(this)},mergeDefaultAndTheme:function(P,z){var W=this.layoutMode,U=W?r(P):{},V=this.subType;t.hasClass(V)&&(V+="Series"),S.merge(P,z.getTheme().get(this.subType)),S.merge(P,this.getDefaultOption()),n.defaultEmphasis(P,"label",["show"]),this.fillDataTextStyle(P.data),W&&s(P,U,W)},mergeOption:function(P,z){P=S.merge(this.option,P,!0),this.fillDataTextStyle(P.data);var W=this.layoutMode;W&&s(this.option,P,W),v(this);var U=this.getInitialData(P,z);R(U,this),this.dataTask.dirty(),this.dataTask.context.data=U,T(this).dataBeforeProcessed=U,E(this)},fillDataTextStyle:function(P){if(P&&!S.isTypedArray(P))for(var z=["show"],W=0;W<P.length;W++)P[W]&&P[W].label&&n.defaultEmphasis(P[W],"label",z)},getInitialData:function(){},appendData:function(P){var z=this.getRawData();z.appendData(P.data)},getData:function(P){var z=M(this);if(z){var W=z.context.data;return P==null?W:W.getLinkedData(P)}else return T(this).data},setData:function(P){var z=M(this);if(z){var W=z.context;W.data!==P&&z.modifyOutputEnd&&z.setOutputEnd(P.count()),W.outputData=P,z!==this.dataTask&&(W.data=P)}T(this).data=P},getSource:function(){return b(this)},getRawData:function(){return T(this).dataBeforeProcessed},getBaseAxis:function(){var P=this.coordinateSystem;return P&&P.getBaseAxis&&P.getBaseAxis()},formatTooltip:function(P,z,W,U){var V=this;U=U||"html";var Q=U==="html"?"<br/>":`
`,G=U==="richText",te={},$=0;function le(be){var Ce=S.reduce(be,function(tt,pt,st){var Fe=Se.getDimensionInfo(st);return tt|=Fe&&Fe.tooltip!==!1&&Fe.displayName!=null},0),Te=[];Re.length?S.each(Re,function(tt){he(x(Se,P,tt),tt)}):S.each(be,he);function he(tt,pt){var st=Se.getDimensionInfo(pt);if(!st||st.otherDims.tooltip===!1)return;var Fe=st.type,ft="sub"+V.seriesIndex+"at"+$,et=o({color:ct,type:"subItem",renderMode:U,markerId:ft}),wt=typeof et=="string"?et:et.content,Ht=(Ce?wt+d(st.displayName||"-")+": ":"")+d(Fe==="ordinal"?tt+"":Fe==="time"?z?"":f("yyyy/MM/dd hh:mm:ss",tt):l(tt));Ht&&Te.push(Ht),G&&(te[ft]=ct,++$)}var ye=Ce?G?`
`:"<br/>":"",Ie=ye+Te.join(ye||", ");return{renderMode:U,content:Ie,style:te}}function re(be){return{renderMode:U,content:d(l(be)),style:te}}var Se=this.getData(),Re=Se.mapDimension("defaultedTooltip",!0),Pe=Re.length,Je=this.getRawValue(P),Ve=S.isArray(Je),ct=Se.getItemVisual(P,"color");S.isObject(ct)&&ct.colorStops&&(ct=(ct.colorStops[0]||{}).color),ct=ct||"transparent";var Ue=Pe>1||Ve&&!Pe?le(Je):re(Pe?x(Se,P,Re[0]):Ve?Je[0]:Je),ue=Ue.content,rt=V.seriesIndex+"at"+$,ge=o({color:ct,type:"item",renderMode:U,markerId:rt});te[rt]=ct,++$;var Z=Se.getName(P),Y=this.name;n.isNameSpecified(this)||(Y=""),Y=Y?d(Y)+(z?": ":Q):"";var ee=typeof ge=="string"?ge:ge.content,fe=z?ee+Y+ue:Y+ee+(Z?d(Z)+": "+ue:ue);return{html:fe,markers:te}},isAnimationEnabled:function(){if(A.node)return!1;var P=this.getShallow("animation");return P&&(this.getData().count()>this.getShallow("animationThreshold")&&(P=!1)),P},restoreData:function(){this.dataTask.dirty()},getColorFromPalette:function(P,z,W){var U=this.ecModel,V=a.getColorFromPalette.call(this,P,z,W);return V||(V=U.getColorFromPalette(P,z,W)),V},coordDimToDataDim:function(P){return this.getRawData().mapDimension(P,!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(O,e),S.mixin(O,a);function E(P){var z=P.name;n.isNameSpecified(P)||(P.name=C(P)||z)}function C(P){var z=P.getRawData(),W=z.mapDimension("seriesName",!0),U=[];return S.each(W,function(V){var Q=z.getDimensionInfo(V);Q.displayName&&U.push(Q.displayName)}),U.join(" ")}function I(P){return P.model.getRawData().count()}function _(P){var z=P.model;return z.setData(z.getRawData().cloneShallow()),F}function F(P,z){z.outputData&&P.end>z.outputData.count()&&z.model.getRawData().cloneShallow(z.outputData)}function R(P,z){S.each(P.CHANGABLE_METHODS,function(W){P.wrapMethod(W,S.curry(B,z))})}function B(P){var z=M(P);z&&z.setOutputEnd(this.count())}function M(P){var z=(P.ecModel||{}).scheduler,W=z&&z.getPipeline(P.uid);if(W){var U=W.currentTask;if(U){var V=U.agentStubMap;V&&(U=V.get(P.uid))}return U}}var X=O;k.exports=X},T6xi:function(k,D,i){var y=i("YgsL"),p=i("nCxF");function S(A,m,f){var d=m.points,l=m.smooth;if(d&&d.length>=2){if(l&&l!=="spline"){var o=p(d,l,f,m.smoothConstraint);A.moveTo(d[0][0],d[0][1]);for(var n=d.length,t=0;t<(f?n:n-1);t++){var a=o[t*2],e=o[t*2+1],u=d[(t+1)%n];A.bezierCurveTo(a[0],a[1],e[0],e[1],u[0],u[1])}}else{l==="spline"&&(d=y(d,f)),A.moveTo(d[0][0],d[0][1]);for(var t=1,r=d.length;t<r;t++)A.lineTo(d[t][0],d[t][1])}f&&A.closePath()}}D.buildPath=S},TIY9:function(k,D,i){var y=i("bYtY"),p=y.each,S=i("vafp"),A=i("4NO4"),m=A.makeInner,f=i("Mgri"),d=i("F5Ls"),l=i("a9QJ"),o=i("p/La"),n=m(),t={load:function(e,u,r){var s=n(u).parsed;if(s)return s;var c=u.specialAreas||{},h=u.geoJSON,g;try{g=h?S(h,r):[]}catch(v){throw new Error(`Invalid geoJson format
`+v.message)}return f(e,g),p(g,function(v){var b=v.name;d(e,v),l(e,v),o(e,v);var w=c[b];w&&v.transformTo(w.left,w.top,w.width,w.height)}),n(u).parsed={regions:g,boundingRect:a(g)}}};function a(e){for(var u,r=0;r<e.length;r++){var s=e[r].getBoundingRect();u=u||s.clone(),u.union(s)}return u}k.exports=t},TJmX:function(k,D,i){var y=i("zM3Q"),p=["itemStyle","borderColor"],S=["itemStyle","borderColor0"],A=["itemStyle","color"],m=["itemStyle","color0"],f={seriesType:"candlestick",plan:y(),performRawSeries:!0,reset:function(d,l){var o=d.getData();if(o.setVisual({legendSymbol:"roundRect",colorP:a(1,d),colorN:a(-1,d),borderColorP:e(1,d),borderColorN:e(-1,d)}),l.isSeriesFiltered(d))return;var n=d.pipelineContext.large;return!n&&{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:a(h,c),borderColor:e(h,c)})}}function a(u,r){return r.get(u>0?A:m)}function e(u,r){return r.get(u>0?p:S)}}};k.exports=f},TWL2:function(k,D,i){var y=i("IwbS"),p=i("bYtY"),S=i("6Ic6");function A(o,n){y.Group.call(this);var t=new y.Polygon,a=new y.Polyline,e=new y.Text;this.add(t),this.add(a),this.add(e),this.highDownOnUpdate=function(u,r){r==="emphasis"?(a.ignore=a.hoverIgnore,e.ignore=e.hoverIgnore):(a.ignore=a.normalIgnore,e.ignore=e.normalIgnore)},this.updateData(o,n,!0)}var m=A.prototype,f=["itemStyle","opacity"];m.updateData=function(o,n,t){var a=this.childAt(0),e=o.hostModel,u=o.getItemModel(n),r=o.getItemLayout(n),s=o.getItemModel(n).get(f);s=s==null?1:s,a.useStyle({}),t?(a.setShape({points:r.points}),a.setStyle({opacity:0}),y.initProps(a,{style:{opacity:s}},e,n)):y.updateProps(a,{style:{opacity:s},shape:{points:r.points}},e,n);var c=u.getModel("itemStyle"),h=o.getItemVisual(n,"color");a.setStyle(p.defaults({lineJoin:"round",fill:h},c.getItemStyle(["opacity"]))),a.hoverStyle=c.getModel("emphasis").getItemStyle(),this._updateLabel(o,n),y.setHoverStyle(this)},m._updateLabel=function(o,n){var t=this.childAt(1),a=this.childAt(2),e=o.hostModel,u=o.getItemModel(n),r=o.getItemLayout(n),s=r.label,c=o.getItemVisual(n,"color");y.updateProps(t,{shape:{points:s.linePoints||s.linePoints}},e,n),y.updateProps(a,{style:{x:s.x,y:s.y}},e,n),a.attr({rotation:s.rotation,origin:[s.x,s.y],z2:10});var h=u.getModel("label"),g=u.getModel("emphasis.label"),v=u.getModel("labelLine"),b=u.getModel("emphasis.labelLine"),c=o.getItemVisual(n,"color");y.setLabelStyle(a.style,a.hoverStyle={},h,g,{labelFetcher:o.hostModel,labelDataIndex:n,defaultText:o.getName(n),autoColor:c,useInsideStyle:!!s.inside},{textAlign:s.textAlign,textVerticalAlign:s.verticalAlign}),a.ignore=a.normalIgnore=!h.get("show"),a.hoverIgnore=!g.get("show"),t.ignore=t.normalIgnore=!v.get("show"),t.hoverIgnore=!b.get("show"),t.setStyle({stroke:c}),t.setStyle(v.getModel("lineStyle").getLineStyle()),t.hoverStyle=b.getModel("lineStyle").getLineStyle()},p.inherits(A,y.Group);var d=S.extend({type:"funnel",render:function(o,n,t){var a=o.getData(),e=this._data,u=this.group;a.diff(e).add(function(r){var s=new A(a,r);a.setItemGraphicEl(r,s),u.add(s)}).update(function(r,s){var c=e.getItemGraphicEl(s);c.updateData(a,r),u.add(c),a.setItemGraphicEl(r,c)}).remove(function(r){var s=e.getItemGraphicEl(r);u.remove(s)}).execute(),this._data=a},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}}),l=d;k.exports=l},TYVI:function(k,D,i){var y=i("5GtS"),p=i("T4UG"),S=p.extend({type:"series.gauge",getInitialData:function(m,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}}}),A=S;k.exports=A},Tghj:function(k,D,i){(function(y){var p;typeof window!="undefined"?p=window.__DEV__:typeof y!="undefined"&&(p=y.__DEV__),typeof p=="undefined"&&(p=!0);var S=p;D.__DEV__=S}).call(this,i("yLpj"))},ThAp:function(k,D,i){var y=i("bYtY"),p=i("5GtS"),S=i("T4UG"),A=i("7aKB"),m=A.encodeHTML,f=A.addCommas,d=i("cCMj"),l=i("KxfA"),o=l.retrieveRawAttr,n=i("W4dC"),t=i("D5nY"),a=t.makeSeriesEncodeForNameBased,e=S.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(r){for(var s=p(this,{coordDimensions:["value"],encodeDefaulter:y.curry(a,this)}),c=s.mapDimension("value"),h=y.createHashMap(),g=[],v=[],b=0,w=s.count();b<w;b++){var x=s.getName(b);h.set(x,!0),g.push({name:x,value:s.get(c,b),selected:o(s,b,"selected")})}var T=n.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return y.each(T.regions,function(O){var E=O.name;h.get(E)||(g.push({name:E}),v.push(E))}),this.updateSelectedMap(g),s.appendValues([],v),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),g=this.seriesGroup,v=[],b=0;b<g.length;b++){var w=g[b].originalData.indexOfName(h),x=s.mapDimension("value");isNaN(g[b].originalData.get(x,w))||v.push(m(g[b].name))}return v.join(", ")+"<br />"+m(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;k.exports=u},TkdX:function(k,D,i){var y=i("bYtY"),p=i("IwbS"),S={NONE:"none",DESCENDANT:"descendant",ANCESTOR:"ancestor",SELF:"self"},A=2,m=4;function f(e,u,r){p.Group.call(this);var s=new p.Sector({z2:A});s.seriesIndex=u.seriesIndex;var c=new p.Text({z2:m,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 g(){c.ignore=c.normalIgnore}this.on("emphasis",h).on("normal",g).on("mouseover",h).on("mouseout",g)}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 g=u.getModel(),v=u.getLayout(),b=y.extend({},v);b.label=null;var w=o(u,s,c);a(u,s,w);var x=g.getModel("itemStyle").getItemStyle(),T;if(r==="normal")T=x;else{var O=g.getModel(r+".itemStyle").getItemStyle();T=y.merge(O,x)}T=y.defaults({lineJoin:"bevel",fill:T.fill||w},T),e?(h.setShape(b),h.shape.r=v.r0,p.updateProps(h,{shape:{r:v.r}},s,u.dataIndex),h.useStyle(T)):typeof T.fill=="object"&&T.fill.type||typeof h.style.fill=="object"&&h.style.fill.type?(p.updateProps(h,{shape:b},s),h.useStyle(T)):p.updateProps(h,{shape:b,style:T},s),this._updateLabel(s,w,r);var E=g.getShallow("cursor");if(E&&h.attr("cursor",E),e){var C=s.getShallow("highlightPolicy");this._initEvents(h,u,s,C)}this._seriesModel=s||this._seriesModel,this._ecModel=c||this._ecModel,p.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"),g=s.getModel("emphasis.label"),v=y.retrieve(e.getFormattedLabel(this.node.dataIndex,r,null,null,"label"),this.node.name);z("show")===!1&&(v="");var b=this.node.getLayout(),w=h.get("minAngle");w==null&&(w=c.get("minAngle")),w=w/180*Math.PI;var x=b.endAngle-b.startAngle;w!=null&&Math.abs(x)<w&&(v="");var T=this.childAt(1);p.setLabelStyle(T.style,T.hoverStyle||{},c,g,{defaultText:h.getShallow("show")?v:null,autoColor:u,useInsideStyle:!0});var O=(b.startAngle+b.endAngle)/2,E=Math.cos(O),C=Math.sin(O),I,_=z("position"),F=z("distance")||0,R=z("align");_==="outside"?(I=b.r+F,R=O>Math.PI/2?"right":"left"):!R||R==="center"?(I=(b.r+b.r0)/2,R="center"):R==="left"?(I=b.r0+F,O>Math.PI/2&&(R="right")):R==="right"&&(I=b.r-F,O>Math.PI/2&&(R="left")),T.attr("style",{text:v,textAlign:R,textVerticalAlign:z("verticalAlign")||"middle",opacity:z("opacity")});var B=I*E+b.cx,M=I*C+b.cy;T.attr("position",[B,M]);var X=z("rotate"),P=0;X==="radial"?(P=-O,P<-Math.PI/2&&(P+=Math.PI)):X==="tangential"?(P=Math.PI/2-O,P>Math.PI/2?P-=Math.PI:P<-Math.PI/2&&(P+=Math.PI)):typeof X=="number"&&(P=X*Math.PI/180),T.attr("rotation",P);function z(W){var U=h.get(W);return U==null?c.get(W):U}},d._initEvents=function(e,u,r,s){e.off("mouseover").off("mouseout").off("emphasis").off("normal");var c=this,h=function(){c.onEmphasis(s)},g=function(){c.onNormal()},v=function(){c.onDownplay()},b=function(){c.onHighlight()};r.isAnimationEnabled()&&e.on("mouseover",h).on("mouseout",g).on("emphasis",h).on("normal",g).on("downplay",v).on("highlight",b)},y.inherits(f,p.Group);var l=f;function o(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 g=r.option.color.length;return h=r.option.color[n(e)%g],h}function n(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 a(e,u,r){var s=u.getData();s.setItemVisual(e.dataIndex,"color",r)}k.exports=l},Tp9H:function(k,D,i){var y=i("ItGF"),p=i("Kagy"),S=i("IUWy"),A=p.toolbox.saveAsImage;function m(l){this.model=l}m.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:A.title,type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:A.lang.slice()},m.prototype.unusable=!y.canvasSupported;var f=m.prototype;f.onclick=function(l,o){var n=this.model,t=n.get("name")||l.get("title.0.text")||"echarts",a=o.getZr().painter.getType()==="svg",e=a?"svg":n.get("type",!0)||"png",u=o.getConnectedDataURL({type:e,backgroundColor:n.get("backgroundColor",!0)||l.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.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,g=new Uint8Array(h);h--;)g[h]=c.charCodeAt(h);var v=new Blob([g]);window.navigator.msSaveOrOpenBlob(v,t+"."+e)}else{var b=n.get("lang"),w='<body style="margin:0;"><img src="'+u+'" style="max-width:100%;" title="'+(b&&b[0]||"")+'" /></body>',x=window.open();x.document.write(w)}},S.register("saveAsImage",m);var d=m;k.exports=d},"U/Mo":function(k,D){function i(p){var S=p.coordinateSystem;if(S.type!=="view")return 1;var A=p.option.nodeScaleRatio,m=S.scale,f=m&&m[0]||1,d=S.getZoom(),l=(d-1)*A+1;return l/f}function y(p){var S=p.getVisual("symbolSize");return S instanceof Array&&(S=(S[0]+S[1])/2),+S}D.getNodeGlobalScale=i,D.getSymbolSize=y},UADf:function(k,D,i){},UESt:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("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"},A=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:A}))};f.displayName="RightOutlined";var d=D.a=p.forwardRef(f)},"UNi/":function(k,D){function i(y,p){for(var S=-1,A=Array(y);++S<y;)A[S]=p(S);return A}k.exports=i},UOVi:function(k,D,i){var y=i("bYtY"),p=i("7aKB"),S=["x","y","z","radius","angle","single"],A=["cartesian2d","polar","singleAxis"];function m(o){return y.indexOf(A,o)>=0}function f(o,n){o=o.slice();var t=y.map(o,p.capitalFirst);n=(n||[]).slice();var a=y.map(n,p.capitalFirst);return function(e,u){y.each(o,function(r,s){for(var c={name:r,capital:t[s]},h=0;h<n.length;h++)c[n[h]]=r+a[h];e.call(u,c)})}}var d=f(S,["axisIndex","axis","index","id"]);function l(o,n,t){return function(r){var s={nodes:[],records:{}};if(n(function(g){s.records[g.name]={}}),!r)return s;u(r,s);var c;do c=!1,o(h);while(c);function h(g){!a(g,s)&&e(g,s)&&(u(g,s),c=!0)}return s};function a(r,s){return y.indexOf(s.nodes,r)>=0}function e(r,s){var c=!1;return n(function(h){y.each(t(r,h)||[],function(g){s.records[h.name][g]&&(c=!0)})}),c}function u(r,s){s.nodes.push(r),n(function(c){y.each(t(r,c)||[],function(h){s.records[c.name][h]=!0})})}}D.isCoordSupported=m,D.createNameEach=f,D.eachAxisDim=d,D.createLinkedNodesFinder=l},Uc92:function(k,D,i){"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(k,D,i){var y=i("bYtY"),p=i("OELB");function S(f,d){f.eachSeriesByType("themeRiver",function(l){var o=l.getData(),n=l.coordinateSystem,t={},a=n.getRect();t.rect=a;var e=l.get("boundaryGap"),u=n.getAxis();if(t.boundaryGap=e,u.orient==="horizontal"){e[0]=p.parsePercent(e[0],a.height),e[1]=p.parsePercent(e[1],a.height);var r=a.height-e[0]-e[1];A(o,l,r)}else{e[0]=p.parsePercent(e[0],a.width),e[1]=p.parsePercent(e[1],a.width);var s=a.width-e[0]-e[1];A(o,l,s)}o.setLayout("layoutInfo",t)})}function A(f,d,l){if(!f.count())return;for(var o=d.coordinateSystem,n=d.getLayerSeries(),t=f.mapDimension("single"),a=f.mapDimension("value"),e=y.map(n,function(w){return y.map(w.indices,function(x){var T=o.dataToPoint(f.get(t,x));return T[1]=f.get(a,x),T})}),u=m(e),r=u.y0,s=l/u.max,c=n.length,h=n[0].indices.length,g,v=0;v<h;++v){g=r[v]*s,f.setItemLayout(n[0].indices[v],{layerIndex:0,x:e[0][v][0],y0:g,y:e[0][v][1]*s});for(var b=1;b<c;++b)g+=e[b-1][v][1]*s,f.setItemLayout(n[b].indices[v],{layerIndex:b,x:e[b][v][0],y0:g,y:e[b][v][1]*s})}}function m(f){for(var d=f.length,l=f[0].length,o=[],n=[],t=0,a,e={},u=0;u<l;++u){for(var r=0,a=0;r<d;++r)a+=f[r][u][1];a>t&&(t=a),o.push(a)}for(var s=0;s<l;++s)n[s]=(t-o[s])/2;t=0;for(var c=0;c<l;++c){var h=o[c]+n[c];h>t&&(t=h)}return e.y0=n,e.max=t,e}k.exports=S},Urep:function(k,D,i){},V6Ve:function(k,D,i){var y=i("kekF"),p=y(Object.keys,Object);k.exports=p},V7ic:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("digP")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="FileTwoTone";var n=A.forwardRef(o);D.default=n},VFCP:function(k,D,i){i("dBmv"),i("KamJ")},VPsl:function(k,D){function i(y){y.eachSeriesByType("map",function(p){var S=p.get("color"),A=p.getModel("itemStyle"),m=A.get("areaColor"),f=A.get("color")||S[p.seriesIndex%S.length];p.getData().setVisual({areaColor:m,color:f})})}k.exports=i},VR9l:function(k,D,i){var y=i("KCsZ"),p=y([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"],["textPosition"],["textAlign"]]),S={getItemStyle:function(A,m){var f=p(this,A,m),d=this.getBorderLineDash();return d&&(f.lineDash=d),f},getBorderLineDash:function(){var A=this.get("borderType");return A==="solid"||A==null?null:A==="dashed"?[5,5]:[1,1]}};k.exports=S},VSLf:function(k,D,i){i("I+Bx"),i("F0hE"),i("bBKM")},VSMT:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.decodeUTF8=y,D.encodeUTF8=p;function y(S){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;try{return decodeURIComponent(escape(S))}catch(m){if(m instanceof URIError&&A)return S;throw m}}function p(S){return unescape(encodeURIComponent(S))}},VXYp:function(k,D,i){var y=i("bYtY"),p=i("SgGq"),S=i("iLNv"),A="\0_ec_dataZoom_roams";function m(e,u){var r=l(e),s=u.dataZoomId,c=u.coordId;y.each(r,function(v,b){var w=v.dataZoomInfos;w[s]&&y.indexOf(u.allCoordIds,c)<0&&(delete w[s],v.count--)}),n(r);var h=r[c];h||(h=r[c]={coordId:c,dataZoomInfos:{},count:0},h.controller=o(e,h),h.dispatchAction=y.curry(t,e)),!h.dataZoomInfos[s]&&h.count++,h.dataZoomInfos[s]=u;var g=a(h.dataZoomInfos);h.controller.enable(g.controlType,g.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--)}),n(r)}function d(e){return e.type+"\0_"+e.id}function l(e){var u=e.getZr();return u[A]||(u[A]={})}function o(e,u){var r=new p(e.getZr());return y.each(["pan","zoom","scrollMove"],function(s){r.on(s,function(c){var h=[];y.each(u.dataZoomInfos,function(g){if(!c.isAvailableBehavior(g.dataZoomModel.option))return;var v=(g.getRange||{})[s],b=v&&v(u.controller,c);!g.dataZoomModel.get("disabled",!0)&&b&&h.push({dataZoomId:g.dataZoomId,start:b[0],end:b[1]})}),h.length&&u.dispatchAction(h)})}),r}function n(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 a(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 g=h.dataZoomModel,v=g.get("disabled",!0)?!1:g.get("zoomLock",!0)?"move":!0;s[r+v]>s[r+u]&&(u=v),c&=g.get("preventDefaultMouseMove",!0)}),{controlType:u,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!c}}}D.register=m,D.unregister=f,D.generateCoordId=d},VaNO:function(k,D){function i(y){return this.__data__.has(y)}k.exports=i},VaxA:function(k,D,i){var y=i("bYtY");function p(f,d,l){if(f&&y.indexOf(d,f.type)>=0){var o=l.getData().tree.root,n=f.targetNode;if(typeof n=="string"&&(n=o.getNodeById(n)),n&&o.contains(n))return{node:n};var t=f.targetNodeId;if(t!=null&&(n=o.getNodeById(t)))return{node:n}}}function S(f){for(var d=[];f;)f=f.parentNode,f&&d.push(f);return d.reverse()}function A(f,d){var l=S(f);return y.indexOf(l,d)>=0}function m(f,d){for(var l=[];f;){var o=f.dataIndex;l.push({name:f.name,dataIndex:o,value:d.getRawValue(o)}),f=f.parentNode}return l.reverse(),l}D.retrieveTargetInfo=p,D.getPathToRoot=S,D.aboveViewRoot=A,D.wrapTreePathInfo=m},Vi4m:function(k,D,i){var y=i("bYtY");function p(A){A!=null&&y.extend(this,A),this.otherDims={}}var S=p;k.exports=S},Vl3Y:function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("J4zp"),A=i.n(S),m=i("lSNA"),f=i.n(m),d=i("q1tI"),l=i("TSYQ"),o=i.n(l),n=i("85Yc"),t=i("H84U"),a=i("BGR+"),e=d.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),u=d.createContext({updateItemErrors:function(){}}),r=function(Kt){var hr=Object(a.default)(Kt,["prefixCls"]);return d.createElement(n.FormProvider,hr)};function s(pe){return typeof pe=="object"&&pe!=null&&pe.nodeType===1}function c(pe,Kt){return(!Kt||pe!=="hidden")&&pe!=="visible"&&pe!=="clip"}function h(pe,Kt){if(pe.clientHeight<pe.scrollHeight||pe.clientWidth<pe.scrollWidth){var hr=getComputedStyle(pe,null);return c(hr.overflowY,Kt)||c(hr.overflowX,Kt)||function(gt){var nr=function(mr){if(!mr.ownerDocument||!mr.ownerDocument.defaultView)return null;try{return mr.ownerDocument.defaultView.frameElement}catch(cn){return null}}(gt);return!!nr&&(nr.clientHeight<gt.scrollHeight||nr.clientWidth<gt.scrollWidth)}(pe)}return!1}function g(pe,Kt,hr,gt,nr,mr,cn,Ar){return mr<pe&&cn>Kt||mr>pe&&cn<Kt?0:mr<=pe&&Ar<=hr||cn>=Kt&&Ar>=hr?mr-pe-gt:cn>Kt&&Ar<hr||mr<pe&&Ar>hr?cn-Kt+nr:0}var v=function(Kt,hr){var gt=window,nr=hr.scrollMode,mr=hr.block,cn=hr.inline,Ar=hr.boundary,xr=hr.skipOverflowHiddenElements,qt=typeof Ar=="function"?Ar:function(it){return it!==Ar};if(!s(Kt))throw new TypeError("Invalid target");for(var ar,Et,en=document.scrollingElement||document.documentElement,Mn=[],Yn=Kt;s(Yn)&&qt(Yn);){if((Yn=(Et=(ar=Yn).parentElement)==null?ar.getRootNode().host||null:Et)===en){Mn.push(Yn);break}Yn!=null&&Yn===document.body&&h(Yn)&&!h(document.documentElement)||Yn!=null&&h(Yn,xr)&&Mn.push(Yn)}for(var ci=gt.visualViewport?gt.visualViewport.width:innerWidth,Vi=gt.visualViewport?gt.visualViewport.height:innerHeight,jn=window.scrollX||pageXOffset,Qn=window.scrollY||pageYOffset,$t=Kt.getBoundingClientRect(),Ot=$t.height,ke=$t.width,Me=$t.top,Be=$t.right,at=$t.bottom,At=$t.left,Ct=mr==="start"||mr==="nearest"?Me:mr==="end"?at:Me+Ot/2,Yt=cn==="center"?At+ke/2:cn==="end"?Be:At,Pr=[],qr=0;qr<Mn.length;qr++){var An=Mn[qr],Gt=An.getBoundingClientRect(),vt=Gt.height,bt=Gt.width,fr=Gt.top,Jt=Gt.right,Ut=Gt.bottom,er=Gt.left;if(nr==="if-needed"&&Me>=0&&At>=0&&at<=Vi&&Be<=ci&&Me>=fr&&at<=Ut&&At>=er&&Be<=Jt)return Pr;var Mt=getComputedStyle(An),Zt=parseInt(Mt.borderLeftWidth,10),Hr=parseInt(Mt.borderTopWidth,10),Ir=parseInt(Mt.borderRightWidth,10),Lr=parseInt(Mt.borderBottomWidth,10),dn=0,gn=0,ri="offsetWidth"in An?An.offsetWidth-An.clientWidth-Zt-Ir:0,Zn="offsetHeight"in An?An.offsetHeight-An.clientHeight-Hr-Lr:0,pi="offsetWidth"in An?An.offsetWidth===0?0:bt/An.offsetWidth:0,Ci="offsetHeight"in An?An.offsetHeight===0?0:vt/An.offsetHeight:0;if(en===An)dn=mr==="start"?Ct:mr==="end"?Ct-Vi:mr==="nearest"?g(Qn,Qn+Vi,Vi,Hr,Lr,Qn+Ct,Qn+Ct+Ot,Ot):Ct-Vi/2,gn=cn==="start"?Yt:cn==="center"?Yt-ci/2:cn==="end"?Yt-ci:g(jn,jn+ci,ci,Zt,Ir,jn+Yt,jn+Yt+ke,ke),dn=Math.max(0,dn+Qn),gn=Math.max(0,gn+jn);else{dn=mr==="start"?Ct-fr-Hr:mr==="end"?Ct-Ut+Lr+Zn:mr==="nearest"?g(fr,Ut,vt,Hr,Lr+Zn,Ct,Ct+Ot,Ot):Ct-(fr+vt/2)+Zn/2,gn=cn==="start"?Yt-er-Zt:cn==="center"?Yt-(er+bt/2)+ri/2:cn==="end"?Yt-Jt+Ir+ri:g(er,Jt,bt,Zt,Ir+ri,Yt,Yt+ke,ke);var Ni=An.scrollLeft,zi=An.scrollTop;Ct+=zi-(dn=Math.max(0,Math.min(zi+dn/Ci,An.scrollHeight-vt/Ci+Zn))),Yt+=Ni-(gn=Math.max(0,Math.min(Ni+gn/pi,An.scrollWidth-bt/pi+ri)))}Pr.push({el:An,top:dn,left:gn})}return Pr};function b(pe){return pe===Object(pe)&&Object.keys(pe).length!==0}function w(pe,Kt){Kt===void 0&&(Kt="auto");var hr="scrollBehavior"in document.body.style;pe.forEach(function(gt){var nr=gt.el,mr=gt.top,cn=gt.left;nr.scroll&&hr?nr.scroll({top:mr,left:cn,behavior:Kt}):(nr.scrollTop=mr,nr.scrollLeft=cn)})}function x(pe){return pe===!1?{block:"end",inline:"nearest"}:b(pe)?pe:{block:"start",inline:"nearest"}}function T(pe,Kt){var hr=pe.isConnected||pe.ownerDocument.documentElement.contains(pe);if(b(Kt)&&typeof Kt.behavior=="function")return Kt.behavior(hr?v(pe,Kt):[]);if(!hr)return;var gt=x(Kt);return w(v(pe,gt),gt.behavior)}var O=T;function E(pe){return pe===void 0||pe===!1?[]:Array.isArray(pe)?pe:[pe]}function C(pe,Kt){if(!pe.length)return;var hr=pe.join("_");return Kt?"".concat(Kt,"_").concat(hr):hr}function I(pe){var Kt=E(pe);return Kt.join("_")}function _(pe){var Kt=Object(n.useForm)(),hr=A()(Kt,1),gt=hr[0],nr=Object(d.useRef)({}),mr=Object(d.useMemo)(function(){return pe||p()(p()({},gt),{__INTERNAL__:{itemRef:function(Ar){return function(xr){var qt=I(Ar);xr?nr.current[qt]=xr:delete nr.current[qt]}}},scrollToField:function(Ar){var xr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},qt=E(Ar),ar=C(qt,mr.__INTERNAL__.name),Et=ar?document.getElementById(ar):null;Et&&O(Et,p()({scrollMode:"if-needed",block:"nearest"},xr))},getFieldInstance:function(Ar){var xr=I(Ar);return nr.current[xr]}})},[pe,gt]);return[mr]}var F=i("3Nzz"),R=function(pe,Kt){var hr={};for(var gt in pe)Object.prototype.hasOwnProperty.call(pe,gt)&&Kt.indexOf(gt)<0&&(hr[gt]=pe[gt]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nr=0,gt=Object.getOwnPropertySymbols(pe);nr<gt.length;nr++)Kt.indexOf(gt[nr])<0&&Object.prototype.propertyIsEnumerable.call(pe,gt[nr])&&(hr[gt[nr]]=pe[gt[nr]]);return hr},B=function(Kt,hr){var gt,nr=d.useContext(F.b),mr=d.useContext(t.b),cn=mr.getPrefixCls,Ar=mr.direction,xr=Kt.name,qt=Kt.prefixCls,ar=Kt.className,Et=ar===void 0?"":ar,en=Kt.size,Mn=en===void 0?nr:en,Yn=Kt.form,ci=Kt.colon,Vi=Kt.labelAlign,jn=Kt.labelCol,Qn=Kt.wrapperCol,$t=Kt.hideRequiredMark,Ot=Kt.layout,ke=Ot===void 0?"horizontal":Ot,Me=Kt.scrollToFirstError,Be=Kt.requiredMark,at=Kt.onFinishFailed,At=R(Kt,["prefixCls","className","size","form","colon","labelAlign","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed"]),Ct=Object(d.useMemo)(function(){return Be!==void 0?Be:!$t},[$t,Be]),Yt=cn("form",qt),Pr=o()(Yt,(gt={},f()(gt,"".concat(Yt,"-").concat(ke),!0),f()(gt,"".concat(Yt,"-hide-required-mark"),Ct===!1),f()(gt,"".concat(Yt,"-rtl"),Ar==="rtl"),f()(gt,"".concat(Yt,"-").concat(Mn),Mn),gt),Et),qr=_(Yn),An=A()(qr,1),Gt=An[0],vt=Gt.__INTERNAL__;vt.name=xr;var bt=Object(d.useMemo)(function(){return{name:xr,labelAlign:Vi,labelCol:jn,wrapperCol:Qn,vertical:ke==="vertical",colon:ci,requiredMark:Ct,itemRef:vt.itemRef}},[xr,Vi,jn,Qn,ke,ci,Ct]);d.useImperativeHandle(hr,function(){return Gt});var fr=function(Ut){at&&at(Ut),Me&&Ut.errorFields.length&&Gt.scrollToField(Ut.errorFields[0].name)};return d.createElement(F.a,{size:Mn},d.createElement(e.Provider,{value:bt},d.createElement(n.default,p()({id:xr},At,{onFinishFailed:fr,form:Gt,className:Pr}))))},M=d.forwardRef(B),X=M,P=i("cDf5"),z=i.n(P),W=i("RIqP"),U=i.n(W),V=i("Y+p1"),Q=i.n(V),G=i("KW7l"),te=i("c+Xe"),$=i("qrJ5"),le=i("CWQg"),re=i("uaoM"),Se=i("/kpp"),Re=i("YMnH"),Pe=i("ZvpZ"),Je=function(Kt){var hr=Kt.prefixCls,gt=Kt.label,nr=Kt.htmlFor,mr=Kt.labelCol,cn=Kt.labelAlign,Ar=Kt.colon,xr=Kt.required,qt=Kt.requiredMark,ar=Object(Re.b)("Form"),Et=A()(ar,1),en=Et[0];return gt?d.createElement(e.Consumer,{key:"label"},function(Mn){var Yn,ci=Mn.vertical,Vi=Mn.labelAlign,jn=Mn.labelCol,Qn=Mn.colon,$t,Ot=mr||jn||{},ke=cn||Vi,Me="".concat(hr,"-item-label"),Be=o()(Me,ke==="left"&&"".concat(Me,"-left"),Ot.className),at=gt,At=Ar===!0||Qn!==!1&&Ar!==!1,Ct=At&&!ci;Ct&&typeof gt=="string"&&gt.trim()!==""&&(at=gt.replace(/[:|]\s*$/,"")),qt==="optional"&&!xr&&(at=d.createElement(d.Fragment,null,at,d.createElement("span",{className:"".concat(hr,"-item-optional")},(en==null?void 0:en.optional)||(($t=Pe.a.Form)===null||$t===void 0?void 0:$t.optional))));var Yt=o()((Yn={},f()(Yn,"".concat(hr,"-item-required"),xr),f()(Yn,"".concat(hr,"-item-required-mark-optional"),qt==="optional"),f()(Yn,"".concat(hr,"-item-no-colon"),!At),Yn));return d.createElement(Se.a,p()({},Ot,{className:Be}),d.createElement("label",{htmlFor:nr,className:Yt,title:typeof gt=="string"?gt:""},at))}):null},Ve=Je,ct=i("gZBC"),Ue=i.n(ct),ue=i("kbBi"),rt=i.n(ue),ge=i("J84W"),Z=i.n(ge),Y=i("sKbD"),ee=i.n(Y),fe=i("YrtM"),be=i("HTfv"),Ce=i("hkKa");function Te(pe,Kt,hr){var gt=d.useRef({errors:pe,visible:!!pe.length}),nr=Object(Ce.a)(),mr=function(){var Ar=gt.current.visible,xr=!!pe.length,qt=gt.current.errors;gt.current.errors=pe,gt.current.visible=xr,Ar!==xr?Kt(xr):(qt.length!==pe.length||qt.some(function(ar,Et){return ar!==pe[Et]}))&&nr()};return d.useEffect(function(){if(!hr){var cn=setTimeout(mr,10);return function(){return clearTimeout(cn)}}},[pe]),hr&&mr(),[gt.current.visible,gt.current.errors]}var he={success:Z.a,warning:ee.a,error:rt.a,validating:Ue.a},ye=function(Kt){var hr=Kt.prefixCls,gt=Kt.wrapperCol,nr=Kt.children,mr=Kt.help,cn=Kt.errors,Ar=Kt.onDomErrorVisibleChange,xr=Kt.hasFeedback,qt=Kt.validateStatus,ar=Kt.extra,Et=Object(Ce.a)(),en="".concat(hr,"-item"),Mn=d.useContext(e),Yn=gt||Mn.wrapperCol||{},ci=o()("".concat(en,"-control"),Yn.className),Vi=Te(cn,function(at){at&&Promise.resolve().then(function(){Ar(!0)}),Et()},!!mr),jn=A()(Vi,2),Qn=jn[0],$t=jn[1];d.useEffect(function(){return function(){Ar(!1)}},[]);var Ot=Object(fe.a)(function(){return $t},Qn,function(at,At){return At}),ke=qt&&he[qt],Me=xr&&ke?d.createElement("span",{className:"".concat(en,"-children-icon")},d.createElement(ke,null)):null,Be=p()({},Mn);return delete Be.labelCol,delete Be.wrapperCol,d.createElement(e.Provider,{value:Be},d.createElement(Se.a,p()({},Yn,{className:ci}),d.createElement("div",{className:"".concat(en,"-control-input")},d.createElement("div",{className:"".concat(en,"-control-input-content")},nr),Me),d.createElement(be.default,{motionDeadline:500,visible:Qn,motionName:"show-help",onLeaveEnd:function(){Ar(!1)},motionAppear:!0,removeOnLeave:!0},function(at){var At=at.className;return d.createElement("div",{className:o()("".concat(en,"-explain"),At),key:"help"},Ot.map(function(Ct,Yt){return d.createElement("div",{key:Yt,role:"alert"},Ct)}))}),ar&&d.createElement("div",{className:"".concat(en,"-extra")},ar)))},Ie=ye,tt=i("0n0R"),pt=i("xEkU"),st=i.n(pt);function Fe(pe){var Kt=d.useState(pe),hr=A()(Kt,2),gt=hr[0],nr=hr[1],mr=Object(d.useRef)(null),cn=Object(d.useRef)([]),Ar=Object(d.useRef)(!1);d.useEffect(function(){return function(){Ar.current=!0,st.a.cancel(mr.current)}},[]);function xr(qt){if(Ar.current)return;mr.current===null&&(cn.current=[],mr.current=st()(function(){mr.current=null,nr(function(ar){var Et=ar;return cn.current.forEach(function(en){Et=en(Et)}),Et})})),cn.current.push(qt)}return[gt,xr]}function ft(){var pe=d.useContext(e),Kt=pe.itemRef,hr=d.useRef({});function gt(nr,mr){var cn=mr&&z()(mr)==="object"&&mr.ref,Ar=nr.join("_");return(hr.current.name!==Ar||hr.current.originRef!==cn)&&(hr.current.name=Ar,hr.current.originRef=cn,hr.current.ref=Object(te.a)(Kt(nr),cn)),hr.current.ref}return gt}var et=function(pe,Kt){var hr={};for(var gt in pe)Object.prototype.hasOwnProperty.call(pe,gt)&&Kt.indexOf(gt)<0&&(hr[gt]=pe[gt]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nr=0,gt=Object.getOwnPropertySymbols(pe);nr<gt.length;nr++)Kt.indexOf(gt[nr])<0&&Object.prototype.propertyIsEnumerable.call(pe,gt[nr])&&(hr[gt[nr]]=pe[gt[nr]]);return hr},wt=Object(le.a)("success","warning","error","validating",""),Ht=d.memo(function(pe){var Kt=pe.children;return Kt},function(pe,Kt){return pe.value===Kt.value&&pe.update===Kt.update});function Dt(pe){return pe===null&&Object(re.a)(!1,"Form.Item","`null` is passed as `name` property"),!(pe==null)}function Tt(pe){var Kt=pe.name,hr=pe.fieldKey,gt=pe.noStyle,nr=pe.dependencies,mr=pe.prefixCls,cn=pe.style,Ar=pe.className,xr=pe.shouldUpdate,qt=pe.hasFeedback,ar=pe.help,Et=pe.rules,en=pe.validateStatus,Mn=pe.children,Yn=pe.required,ci=pe.label,Vi=pe.trigger,jn=Vi===void 0?"onChange":Vi,Qn=pe.validateTrigger,$t=pe.hidden,Ot=et(pe,["name","fieldKey","noStyle","dependencies","prefixCls","style","className","shouldUpdate","hasFeedback","help","rules","validateStatus","children","required","label","trigger","validateTrigger","hidden"]),ke=d.useRef(!1),Me=d.useContext(t.b),Be=Me.getPrefixCls,at=d.useContext(e),At=at.name,Ct=at.requiredMark,Yt=d.useContext(u),Pr=Yt.updateItemErrors,qr=d.useState(!!ar),An=A()(qr,2),Gt=An[0],vt=An[1],bt=d.useRef(en),fr=Fe({}),Jt=A()(fr,2),Ut=Jt[0],er=Jt[1],Mt=d.useContext(G.b),Zt=Mt.validateTrigger,Hr=Qn!==void 0?Qn:Zt;function Ir(it){ke.current||vt(it)}var Lr=Dt(Kt),dn=d.useRef([]);d.useEffect(function(){return function(){ke.current=!0,Pr(dn.current.join("__SPLIT__"),[])}},[]);var gn=Be("form",mr),ri=gt?Pr:function(it,Ne){er(function(){var He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Q()(He[it],Ne)?He:p()(p()({},He),f()({},it,Ne))})},Zn=ft();function pi(it,Ne,He,Ge){var nt,$e;if(gt&&!$t)return it;var ot=[];Object.keys(Ut).forEach(function(Fr){ot=[].concat(U()(ot),U()(Ut[Fr]||[]))});var Pt;ar!=null?Pt=E(ar):(Pt=He?He.errors:[],Pt=[].concat(U()(Pt),U()(ot)));var xt="";en!==void 0?xt=en:(He==null?void 0:He.validating)?xt="validating":(($e=He==null?void 0:He.errors)===null||$e===void 0?void 0:$e.length)||ot.length?xt="error":(He==null?void 0:He.touched)&&(xt="success"),Gt&&ar&&(bt.current=xt);var rr=(nt={},f()(nt,"".concat(gn,"-item"),!0),f()(nt,"".concat(gn,"-item-with-help"),Gt||ar),f()(nt,"".concat(Ar),!!Ar),f()(nt,"".concat(gn,"-item-has-feedback"),xt&&qt),f()(nt,"".concat(gn,"-item-has-success"),xt==="success"),f()(nt,"".concat(gn,"-item-has-warning"),xt==="warning"),f()(nt,"".concat(gn,"-item-has-error"),xt==="error"),f()(nt,"".concat(gn,"-item-has-error-leave"),!ar&&Gt&&bt.current==="error"),f()(nt,"".concat(gn,"-item-is-validating"),xt==="validating"),f()(nt,"".concat(gn,"-item-hidden"),$t),nt);return d.createElement($.a,p()({className:o()(rr),style:cn,key:"row"},Object(a.default)(Ot,["colon","extra","getValueFromEvent","getValueProps","hasFeedback","help","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","normalize","preserve","required","validateFirst","validateStatus","valuePropName","wrapperCol"])),d.createElement(Ve,p()({htmlFor:Ne,required:Ge,requiredMark:Ct},pe,{prefixCls:gn})),d.createElement(Ie,p()({},pe,He,{errors:Pt,prefixCls:gn,onDomErrorVisibleChange:Ir,validateStatus:xt}),d.createElement(u.Provider,{value:{updateItemErrors:ri}},it)))}var Ci=typeof Mn=="function",Ni=d.useRef(0);if(Ni.current+=1,!Lr&&!Ci&&!nr)return pi(Mn);var zi={};return typeof ci=="string"&&(zi.label=ci),d.createElement(n.Field,p()({},pe,{messageVariables:zi,trigger:jn,validateTrigger:Hr,onReset:function(){Ir(!1)}}),function(it,Ne,He){var Ge=Ne.errors,nt=E(Kt).length&&Ne?Ne.name:[],$e=C(nt,At);if(gt){if(dn.current=U()(nt),hr){var ot=Array.isArray(hr)?hr:[hr];dn.current=[].concat(U()(nt.slice(0,-1)),U()(ot))}Pr(dn.current.join("__SPLIT__"),Ge)}var Pt=Yn!==void 0?Yn:!!(Et&&Et.some(function(fn){if(fn&&z()(fn)==="object"&&fn.required)return!0;if(typeof fn=="function"){var gr=fn(He);return gr&&gr.required}return!1})),xt=p()({},it),rr=null;if(Object(re.a)(!(xr&&nr),"Form.Item","`shouldUpdate` and `dependencies` shouldn't be used together. See https://ant.design/components/form/#dependencies."),Array.isArray(Mn)&&Lr)Object(re.a)(!1,"Form.Item","`children` is array of render props cannot have `name`."),rr=Mn;else if(Ci&&(!(xr||nr)||Lr))Object(re.a)(!!(xr||nr),"Form.Item","`children` of render props only work with `shouldUpdate` or `dependencies`."),Object(re.a)(!Lr,"Form.Item","Do not use `name` with `children` of render props since it's not a field.");else if(nr&&!Ci&&!Lr)Object(re.a)(!1,"Form.Item","Must set `name` or use render props when `dependencies` is set.");else if(Object(tt.b)(Mn)){Object(re.a)(Mn.props.defaultValue===void 0,"Form.Item","`defaultValue` will not work on controlled Field. You should use `initialValues` of Form instead.");var Fr=p()(p()({},Mn.props),xt);Fr.id||(Fr.id=$e),Object(te.c)(Mn)&&(Fr.ref=Zn(nt,Mn));var Vr=new Set([].concat(U()(E(jn)),U()(E(Hr))));Vr.forEach(function(fn){Fr[fn]=function(){for(var gr,Gn,Mr,Rn,bn,rn=arguments.length,ei=new Array(rn),fi=0;fi<rn;fi++)ei[fi]=arguments[fi];(Mr=xt[fn])===null||Mr===void 0||(gr=Mr).call.apply(gr,[xt].concat(ei)),(bn=(Rn=Mn.props)[fn])===null||bn===void 0||(Gn=bn).call.apply(Gn,[Rn].concat(ei))}}),rr=d.createElement(Ht,{value:xt[pe.valuePropName||"value"],update:Ni.current},Object(tt.a)(Mn,Fr))}else Ci&&(xr||nr)&&!Lr?rr=Mn(He):(Object(re.a)(!nt.length,"Form.Item","`name` is only used for validate React element. If you are using Form.Item as layout display, please remove `name` instead."),rr=Mn);return pi(rr,$e,Ne,Pt)})}var Bt=Tt,Ke=function(pe,Kt){var hr={};for(var gt in pe)Object.prototype.hasOwnProperty.call(pe,gt)&&Kt.indexOf(gt)<0&&(hr[gt]=pe[gt]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nr=0,gt=Object.getOwnPropertySymbols(pe);nr<gt.length;nr++)Kt.indexOf(gt[nr])<0&&Object.prototype.propertyIsEnumerable.call(pe,gt[nr])&&(hr[gt[nr]]=pe[gt[nr]]);return hr},de=function(Kt){var hr=Kt.children,gt=Ke(Kt,["children"]);return Object(re.a)(!!gt.name,"Form.List","Miss `name` prop."),d.createElement(n.List,gt,function(nr,mr){return hr(nr.map(function(cn){return p()(p()({},cn),{fieldKey:cn.key})}),mr)})},oe=de,lt=X;lt.Item=Bt,lt.List=oe,lt.useForm=_,lt.Provider=r,lt.create=function(){Object(re.a)(!1,"Form","antd v4 removed `Form.create`. Please remove or use `@ant-design/compatible` instead.")};var qe=D.a=lt},VpOo:function(k,D){function i(y,p){var S=p.x,A=p.y,m=p.width,f=p.height,d=p.r,l,o,n,t;m<0&&(S=S+m,m=-m),f<0&&(A=A+f,f=-f),typeof d=="number"?l=o=n=t=d:d instanceof Array?d.length===1?l=o=n=t=d[0]:d.length===2?(l=n=d[0],o=t=d[1]):d.length===3?(l=d[0],o=t=d[1],n=d[2]):(l=d[0],o=d[1],n=d[2],t=d[3]):l=o=n=t=0;var a;l+o>m&&(a=l+o,l*=m/a,o*=m/a),n+t>m&&(a=n+t,n*=m/a,t*=m/a),o+n>f&&(a=o+n,o*=f/a,n*=f/a),l+t>f&&(a=l+t,l*=f/a,t*=f/a),y.moveTo(S+l,A),y.lineTo(S+m-o,A),o!==0&&y.arc(S+m-o,A+o,o,-Math.PI/2,0),y.lineTo(S+m,A+f-n),n!==0&&y.arc(S+m-n,A+f-n,n,0,Math.PI/2),y.lineTo(S+t,A+f),t!==0&&y.arc(S+t,A+f-t,t,Math.PI/2,Math.PI),y.lineTo(S,A+l),l!==0&&y.arc(S+l,A+l,l,Math.PI,Math.PI*1.5)}D.buildPath=i},"VrN/":function(k,D,i){(function(y,p){k.exports=p()})(this,function(){"use strict";var y=navigator.userAgent,p=navigator.platform,S=/gecko\/\d/i.test(y),A=/MSIE \d/.test(y),m=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(y),f=/Edge\/(\d+)/.exec(y),d=A||m||f,l=d&&(A?document.documentMode||6:+(f||m)[1]),o=!f&&/WebKit\//.test(y),n=o&&/Qt\/\d+\.\d+/.test(y),t=!f&&/Chrome\//.test(y),a=/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),g=s||/Mac/.test(p),v=/\bCrOS\b/.test(y),b=/win/i.test(p),w=a&&y.match(/Version\/(\d*\.\d*)/);w&&(w=Number(w[1])),w&&w>=15&&(a=!1,o=!0);var x=g&&(n||a&&(w==null||w<12.11)),T=S||d&&l>=9;function O(N){return new RegExp("(^|\\s)"+N+"(?:$|\\s)\\s*")}var E=function(j,ie){var se=j.className,me=O(ie).exec(se);if(me){var ze=se.slice(me.index+me[0].length);j.className=se.slice(0,me.index)+(ze?me[1]+ze:"")}};function C(N){for(var j=N.childNodes.length;j>0;--j)N.removeChild(N.firstChild);return N}function I(N,j){return C(N).appendChild(j)}function _(N,j,ie,se){var me=document.createElement(N);if(ie&&(me.className=ie),se&&(me.style.cssText=se),typeof j=="string")me.appendChild(document.createTextNode(j));else if(j)for(var ze=0;ze<j.length;++ze)me.appendChild(j[ze]);return me}function F(N,j,ie,se){var me=_(N,j,ie,se);return me.setAttribute("role","presentation"),me}var R;document.createRange?R=function(j,ie,se,me){var ze=document.createRange();return ze.setEnd(me||j,se),ze.setStart(j,ie),ze}:R=function(j,ie,se){var me=document.body.createTextRange();try{me.moveToElementText(j.parentNode)}catch(ze){return me}return me.collapse(!0),me.moveEnd("character",se),me.moveStart("character",ie),me};function B(N,j){if(j.nodeType==3&&(j=j.parentNode),N.contains)return N.contains(j);do if(j.nodeType==11&&(j=j.host),j==N)return!0;while(j=j.parentNode)}function M(){var N;try{N=document.activeElement}catch(j){N=document.body||null}for(;N&&N.shadowRoot&&N.shadowRoot.activeElement;)N=N.shadowRoot.activeElement;return N}function X(N,j){var ie=N.className;O(j).test(ie)||(N.className+=(ie?" ":"")+j)}function P(N,j){for(var ie=N.split(" "),se=0;se<ie.length;se++)ie[se]&&!O(ie[se]).test(j)&&(j+=" "+ie[se]);return j}var z=function(j){j.select()};s?z=function(j){j.selectionStart=0,j.selectionEnd=j.value.length}:d&&(z=function(j){try{j.select()}catch(ie){}});function W(N){var j=Array.prototype.slice.call(arguments,1);return function(){return N.apply(null,j)}}function U(N,j,ie){j||(j={});for(var se in N)N.hasOwnProperty(se)&&(ie!==!1||!j.hasOwnProperty(se))&&(j[se]=N[se]);return j}function V(N,j,ie,se,me){j==null&&(j=N.search(/[^\s\u00a0]/),j==-1&&(j=N.length));for(var ze=se||0,It=me||0;;){var ir=N.indexOf(" ",ze);if(ir<0||ir>=j)return It+(j-ze);It+=ir-ze,It+=ie-It%ie,ze=ir+1}}var Q=function(){this.id=null,this.f=null,this.time=0,this.handler=W(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,j){this.f=j;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,j){for(var ie=0;ie<N.length;++ie)if(N[ie]==j)return ie;return-1}var te=50,$={toString:function(){return"CodeMirror.Pass"}},le={scroll:!1},re={origin:"*mouse"},Se={origin:"+move"};function Re(N,j,ie){for(var se=0,me=0;;){var ze=N.indexOf(" ",se);ze==-1&&(ze=N.length);var It=ze-se;if(ze==N.length||me+It>=j)return se+Math.min(It,j-me);if(me+=ze-se,me+=ie-me%ie,se=ze+1,me>=j)return se}}var Pe=[""];function Je(N){for(;Pe.length<=N;)Pe.push(Ve(Pe)+" ");return Pe[N]}function Ve(N){return N[N.length-1]}function ct(N,j){for(var ie=[],se=0;se<N.length;se++)ie[se]=j(N[se],se);return ie}function Ue(N,j,ie){for(var se=0,me=ie(j);se<N.length&&ie(N[se])<=me;)se++;N.splice(se,0,j)}function ue(){}function rt(N,j){var ie;return Object.create?ie=Object.create(N):(ue.prototype=N,ie=new ue),j&&U(j,ie),ie}var ge=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Z(N){return/\w/.test(N)||N>"\x80"&&(N.toUpperCase()!=N.toLowerCase()||ge.test(N))}function Y(N,j){return j?j.source.indexOf("\\w")>-1&&Z(N)?!0:j.test(N):Z(N)}function ee(N){for(var j in N)if(N.hasOwnProperty(j)&&N[j])return!1;return!0}var fe=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function be(N){return N.charCodeAt(0)>=768&&fe.test(N)}function Ce(N,j,ie){for(;(ie<0?j>0:j<N.length)&&be(N.charAt(j));)j+=ie;return j}function Te(N,j,ie){for(var se=j>ie?-1:1;;){if(j==ie)return j;var me=(j+ie)/2,ze=se<0?Math.ceil(me):Math.floor(me);if(ze==j)return N(ze)?j:ie;N(ze)?ie=ze:j=ze+se}}function he(N,j,ie,se){if(!N)return se(j,ie,"ltr",0);for(var me=!1,ze=0;ze<N.length;++ze){var It=N[ze];(It.from<ie&&It.to>j||j==ie&&It.to==j)&&(se(Math.max(It.from,j),Math.min(It.to,ie),It.level==1?"rtl":"ltr",ze),me=!0)}me||se(j,ie,"ltr")}var ye=null;function Ie(N,j,ie){var se;ye=null;for(var me=0;me<N.length;++me){var ze=N[me];if(ze.from<j&&ze.to>j)return me;ze.to==j&&(ze.from!=ze.to&&ie=="before"?se=me:ye=me),ze.from==j&&(ze.from!=ze.to&&ie!="before"?se=me:ye=me)}return se!=null?se:ye}var tt=function(){var N="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",j="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ie(Or){return Or<=247?N.charAt(Or):1424<=Or&&Or<=1524?"R":1536<=Or&&Or<=1785?j.charAt(Or-1536):1774<=Or&&Or<=2220?"r":8192<=Or&&Or<=8203?"w":Or==8204?"b":"L"}var se=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,me=/[stwN]/,ze=/[LRr]/,It=/[Lb1n]/,ir=/[1n]/;function wr(Or,Bn,ti){this.level=Or,this.from=Bn,this.to=ti}return function(Or,Bn){var ti=Bn=="ltr"?"L":"R";if(Or.length==0||Bn=="ltr"&&!se.test(Or))return!1;for(var Si=Or.length,Oi=[],oa=0;oa<Si;++oa)Oi.push(ie(Or.charCodeAt(oa)));for(var Ta=0,Ha=ti;Ta<Si;++Ta){var Ba=Oi[Ta];Ba=="m"?Oi[Ta]=Ha:Ha=Ba}for(var Na=0,$a=ti;Na<Si;++Na){var fo=Oi[Na];fo=="1"&&$a=="r"?Oi[Na]="n":ze.test(fo)&&($a=fo,fo=="r"&&(Oi[Na]="R"))}for(var es=1,Bo=Oi[0];es<Si-1;++es){var Ss=Oi[es];Ss=="+"&&Bo=="1"&&Oi[es+1]=="1"?Oi[es]="1":Ss==","&&Bo==Oi[es+1]&&(Bo=="1"||Bo=="n")&&(Oi[es]=Bo),Bo=Ss}for(var Qs=0;Qs<Si;++Qs){var gl=Oi[Qs];if(gl==",")Oi[Qs]="N";else if(gl=="%"){var il=void 0;for(il=Qs+1;il<Si&&Oi[il]=="%";++il);for(var Fl=Qs&&Oi[Qs-1]=="!"||il<Si&&Oi[il]=="1"?"1":"N",Wl=Qs;Wl<il;++Wl)Oi[Wl]=Fl;Qs=il-1}}for(var Cl=0,zl=ti;Cl<Si;++Cl){var Bl=Oi[Cl];zl=="L"&&Bl=="1"?Oi[Cl]="L":ze.test(Bl)&&(zl=Bl)}for(var Qa=0;Qa<Si;++Qa)if(me.test(Oi[Qa])){var fl=void 0;for(fl=Qa+1;fl<Si&&me.test(Oi[fl]);++fl);for(var dl=(Qa?Oi[Qa-1]:ti)=="L",Al=(fl<Si?Oi[fl]:ti)=="L",Bu=dl==Al?dl?"L":"R":ti,Fs=Qa;Fs<fl;++Fs)Oi[Fs]=Bu;Qa=fl-1}for(var gs=[],lu,jl=0;jl<Si;)if(It.test(Oi[jl])){var Uu=jl;for(++jl;jl<Si&&It.test(Oi[jl]);++jl);gs.push(new wr(0,Uu,jl))}else{var Eu=jl,uu=gs.length,ku=Bn=="rtl"?1:0;for(++jl;jl<Si&&Oi[jl]!="L";++jl);for(var Xl=Eu;Xl<jl;)if(ir.test(Oi[Xl])){Eu<Xl&&(gs.splice(uu,0,new wr(1,Eu,Xl)),uu+=ku);var Cu=Xl;for(++Xl;Xl<jl&&ir.test(Oi[Xl]);++Xl);gs.splice(uu,0,new wr(2,Cu,Xl)),uu+=ku,Eu=Xl}else++Xl;Eu<jl&&gs.splice(uu,0,new wr(1,Eu,jl))}return Bn=="ltr"&&(gs[0].level==1&&(lu=Or.match(/^\s+/))&&(gs[0].from=lu[0].length,gs.unshift(new wr(0,0,lu[0].length))),Ve(gs).level==1&&(lu=Or.match(/\s+$/))&&(Ve(gs).to-=lu[0].length,gs.push(new wr(0,Si-lu[0].length,Si)))),Bn=="rtl"?gs.reverse():gs}}();function pt(N,j){var ie=N.order;return ie==null&&(ie=N.order=tt(N.text,j)),ie}var st=[],Fe=function(j,ie,se){if(j.addEventListener)j.addEventListener(ie,se,!1);else if(j.attachEvent)j.attachEvent("on"+ie,se);else{var me=j._handlers||(j._handlers={});me[ie]=(me[ie]||st).concat(se)}};function ft(N,j){return N._handlers&&N._handlers[j]||st}function et(N,j,ie){if(N.removeEventListener)N.removeEventListener(j,ie,!1);else if(N.detachEvent)N.detachEvent("on"+j,ie);else{var se=N._handlers,me=se&&se[j];if(me){var ze=G(me,ie);ze>-1&&(se[j]=me.slice(0,ze).concat(me.slice(ze+1)))}}}function wt(N,j){var ie=ft(N,j);if(!ie.length)return;for(var se=Array.prototype.slice.call(arguments,2),me=0;me<ie.length;++me)ie[me].apply(null,se)}function Ht(N,j,ie){return typeof j=="string"&&(j={type:j,preventDefault:function(){this.defaultPrevented=!0}}),wt(N,ie||j.type,N,j),oe(j)||j.codemirrorIgnore}function Dt(N){var j=N._handlers&&N._handlers.cursorActivity;if(!j)return;for(var ie=N.curOp.cursorActivityHandlers||(N.curOp.cursorActivityHandlers=[]),se=0;se<j.length;++se)G(ie,j[se])==-1&&ie.push(j[se])}function Tt(N,j){return ft(N,j).length>0}function Bt(N){N.prototype.on=function(j,ie){Fe(this,j,ie)},N.prototype.off=function(j,ie){et(this,j,ie)}}function Ke(N){N.preventDefault?N.preventDefault():N.returnValue=!1}function de(N){N.stopPropagation?N.stopPropagation():N.cancelBubble=!0}function oe(N){return N.defaultPrevented!=null?N.defaultPrevented:N.returnValue==!1}function lt(N){Ke(N),de(N)}function qe(N){return N.target||N.srcElement}function pe(N){var j=N.which;return j==null&&(N.button&1?j=1:N.button&2?j=3:N.button&4&&(j=2)),g&&N.ctrlKey&&j==1&&(j=3),j}var Kt=function(){if(d&&l<9)return!1;var N=_("div");return"draggable"in N||"dragDrop"in N}(),hr;function gt(N){if(hr==null){var j=_("span","\u200B");I(N,_("span",[j,document.createTextNode("x")])),N.firstChild.offsetHeight!=0&&(hr=j.offsetWidth<=1&&j.offsetHeight>2&&!(d&&l<8))}var ie=hr?_("span","\u200B"):_("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ie.setAttribute("cm-text",""),ie}var nr;function mr(N){if(nr!=null)return nr;var j=I(N,document.createTextNode("A\u062EA")),ie=R(j,0,1).getBoundingClientRect(),se=R(j,1,2).getBoundingClientRect();return C(N),!ie||ie.left==ie.right?!1:nr=se.right-ie.right<3}var cn=`
b`.split(/\n/).length!=3?function(N){for(var j=0,ie=[],se=N.length;j<=se;){var me=N.indexOf(`
`,j);me==-1&&(me=N.length);var ze=N.slice(j,N.charAt(me-1)=="\r"?me-1:me),It=ze.indexOf("\r");It!=-1?(ie.push(ze.slice(0,It)),j+=It+1):(ie.push(ze),j=me+1)}return ie}:function(N){return N.split(/\r\n?|\n/)},Ar=window.getSelection?function(N){try{return N.selectionStart!=N.selectionEnd}catch(j){return!1}}:function(N){var j;try{j=N.ownerDocument.selection.createRange()}catch(ie){}return!j||j.parentElement()!=N?!1:j.compareEndPoints("StartToEnd",j)!=0},xr=function(){var N=_("div");return"oncopy"in N?!0:(N.setAttribute("oncopy","return;"),typeof N.oncopy=="function")}(),qt=null;function ar(N){if(qt!=null)return qt;var j=I(N,_("span","x")),ie=j.getBoundingClientRect(),se=R(j,0,1).getBoundingClientRect();return qt=Math.abs(ie.left-se.left)>1}var Et={},en={};function Mn(N,j){arguments.length>2&&(j.dependencies=Array.prototype.slice.call(arguments,2)),Et[N]=j}function Yn(N,j){en[N]=j}function ci(N){if(typeof N=="string"&&en.hasOwnProperty(N))N=en[N];else if(N&&typeof N.name=="string"&&en.hasOwnProperty(N.name)){var j=en[N.name];typeof j=="string"&&(j={name:j}),N=rt(j,N),N.name=j.name}else{if(typeof N=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(N))return ci("application/xml");if(typeof N=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(N))return ci("application/json")}return typeof N=="string"?{name:N}:N||{name:"null"}}function Vi(N,j){j=ci(j);var ie=Et[j.name];if(!ie)return Vi(N,"text/plain");var se=ie(N,j);if(jn.hasOwnProperty(j.name)){var me=jn[j.name];for(var ze in me){if(!me.hasOwnProperty(ze))continue;se.hasOwnProperty(ze)&&(se["_"+ze]=se[ze]),se[ze]=me[ze]}}if(se.name=j.name,j.helperType&&(se.helperType=j.helperType),j.modeProps)for(var It in j.modeProps)se[It]=j.modeProps[It];return se}var jn={};function Qn(N,j){var ie=jn.hasOwnProperty(N)?jn[N]:jn[N]={};U(j,ie)}function $t(N,j){if(j===!0)return j;if(N.copyState)return N.copyState(j);var ie={};for(var se in j){var me=j[se];me instanceof Array&&(me=me.concat([])),ie[se]=me}return ie}function Ot(N,j){for(var ie;N.innerMode&&!(ie=N.innerMode(j),!ie||ie.mode==N);)j=ie.state,N=ie.mode;return ie||{mode:N,state:j}}function ke(N,j,ie){return N.startState?N.startState(j,ie):!0}var Me=function(j,ie,se){this.pos=this.start=0,this.string=j,this.tabSize=ie||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=se};Me.prototype.eol=function(){return this.pos>=this.string.length},Me.prototype.sol=function(){return this.pos==this.lineStart},Me.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Me.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Me.prototype.eat=function(N){var j=this.string.charAt(this.pos),ie;if(typeof N=="string"?ie=j==N:ie=j&&(N.test?N.test(j):N(j)),ie)return++this.pos,j},Me.prototype.eatWhile=function(N){for(var j=this.pos;this.eat(N););return this.pos>j},Me.prototype.eatSpace=function(){for(var N=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>N},Me.prototype.skipToEnd=function(){this.pos=this.string.length},Me.prototype.skipTo=function(N){var j=this.string.indexOf(N,this.pos);if(j>-1)return this.pos=j,!0},Me.prototype.backUp=function(N){this.pos-=N},Me.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)},Me.prototype.indentation=function(){return V(this.string,null,this.tabSize)-(this.lineStart?V(this.string,this.lineStart,this.tabSize):0)},Me.prototype.match=function(N,j,ie){if(typeof N=="string"){var se=function(ir){return ie?ir.toLowerCase():ir},me=this.string.substr(this.pos,N.length);if(se(me)==se(N))return j!==!1&&(this.pos+=N.length),!0}else{var ze=this.string.slice(this.pos).match(N);return ze&&ze.index>0?null:(ze&&j!==!1&&(this.pos+=ze[0].length),ze)}},Me.prototype.current=function(){return this.string.slice(this.start,this.pos)},Me.prototype.hideFirstChars=function(N,j){this.lineStart+=N;try{return j()}finally{this.lineStart-=N}},Me.prototype.lookAhead=function(N){var j=this.lineOracle;return j&&j.lookAhead(N)},Me.prototype.baseToken=function(){var N=this.lineOracle;return N&&N.baseToken(this.pos)};function Be(N,j){if(j-=N.first,j<0||j>=N.size)throw new Error("There is no line "+(j+N.first)+" in the document.");for(var ie=N;!ie.lines;)for(var se=0;;++se){var me=ie.children[se],ze=me.chunkSize();if(j<ze){ie=me;break}j-=ze}return ie.lines[j]}function at(N,j,ie){var se=[],me=j.line;return N.iter(j.line,ie.line+1,function(ze){var It=ze.text;me==ie.line&&(It=It.slice(0,ie.ch)),me==j.line&&(It=It.slice(j.ch)),se.push(It),++me}),se}function At(N,j,ie){var se=[];return N.iter(j,ie,function(me){se.push(me.text)}),se}function Ct(N,j){var ie=j-N.height;if(ie)for(var se=N;se;se=se.parent)se.height+=ie}function Yt(N){if(N.parent==null)return null;for(var j=N.parent,ie=G(j.lines,N),se=j.parent;se;j=se,se=se.parent)for(var me=0;!(se.children[me]==j);++me)ie+=se.children[me].chunkSize();return ie+j.first}function Pr(N,j){var ie=N.first;e:do{for(var se=0;se<N.children.length;++se){var me=N.children[se],ze=me.height;if(j<ze){N=me;continue e}j-=ze,ie+=me.chunkSize()}return ie}while(!N.lines);for(var It=0;It<N.lines.length;++It){var ir=N.lines[It],wr=ir.height;if(j<wr)break;j-=wr}return ie+It}function qr(N,j){return j>=N.first&&j<N.first+N.size}function An(N,j){return String(N.lineNumberFormatter(j+N.firstLineNumber))}function Gt(N,j,ie){if(ie===void 0&&(ie=null),!(this instanceof Gt))return new Gt(N,j,ie);this.line=N,this.ch=j,this.sticky=ie}function vt(N,j){return N.line-j.line||N.ch-j.ch}function bt(N,j){return N.sticky==j.sticky&&vt(N,j)==0}function fr(N){return Gt(N.line,N.ch)}function Jt(N,j){return vt(N,j)<0?j:N}function Ut(N,j){return vt(N,j)<0?N:j}function er(N,j){return Math.max(N.first,Math.min(j,N.first+N.size-1))}function Mt(N,j){if(j.line<N.first)return Gt(N.first,0);var ie=N.first+N.size-1;return j.line>ie?Gt(ie,Be(N,ie).text.length):Zt(j,Be(N,j.line).text.length)}function Zt(N,j){var ie=N.ch;return ie==null||ie>j?Gt(N.line,j):ie<0?Gt(N.line,0):N}function Hr(N,j){for(var ie=[],se=0;se<j.length;se++)ie[se]=Mt(N,j[se]);return ie}var Ir=function(j,ie){this.state=j,this.lookAhead=ie},Lr=function(j,ie,se,me){this.state=ie,this.doc=j,this.line=se,this.maxLookAhead=me||0,this.baseTokens=null,this.baseTokenPos=1};Lr.prototype.lookAhead=function(N){var j=this.doc.getLine(this.line+N);return j!=null&&N>this.maxLookAhead&&(this.maxLookAhead=N),j},Lr.prototype.baseToken=function(N){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=N;)this.baseTokenPos+=2;var j=this.baseTokens[this.baseTokenPos+1];return{type:j&&j.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-N}},Lr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Lr.fromSaved=function(N,j,ie){return j instanceof Ir?new Lr(N,$t(N.mode,j.state),ie,j.lookAhead):new Lr(N,$t(N.mode,j),ie)},Lr.prototype.save=function(N){var j=N!==!1?$t(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ir(j,this.maxLookAhead):j};function dn(N,j,ie,se){var me=[N.state.modeGen],ze={};Ne(N,j.text,N.doc.mode,ie,function(Or,Bn){return me.push(Or,Bn)},ze,se);for(var It=ie.state,ir=function(Bn){ie.baseTokens=me;var ti=N.state.overlays[Bn],Si=1,Oi=0;ie.state=!0,Ne(N,j.text,ti.mode,ie,function(oa,Ta){for(var Ha=Si;Oi<oa;){var Ba=me[Si];Ba>oa&&me.splice(Si,1,oa,me[Si+1],Ba),Si+=2,Oi=Math.min(oa,Ba)}if(!Ta)return;if(ti.opaque)me.splice(Ha,Si-Ha,oa,"overlay "+Ta),Si=Ha+2;else for(;Ha<Si;Ha+=2){var Na=me[Ha+1];me[Ha+1]=(Na?Na+" ":"")+"overlay "+Ta}},ze),ie.state=It,ie.baseTokens=null,ie.baseTokenPos=1},wr=0;wr<N.state.overlays.length;++wr)ir(wr);return{styles:me,classes:ze.bgClass||ze.textClass?ze:null}}function gn(N,j,ie){if(!j.styles||j.styles[0]!=N.state.modeGen){var se=ri(N,Yt(j)),me=j.text.length>N.options.maxHighlightLength&&$t(N.doc.mode,se.state),ze=dn(N,j,se);me&&(se.state=me),j.stateAfter=se.save(!me),j.styles=ze.styles,ze.classes?j.styleClasses=ze.classes:j.styleClasses&&(j.styleClasses=null),ie===N.doc.highlightFrontier&&(N.doc.modeFrontier=Math.max(N.doc.modeFrontier,++N.doc.highlightFrontier))}return j.styles}function ri(N,j,ie){var se=N.doc,me=N.display;if(!se.mode.startState)return new Lr(se,!0,j);var ze=He(N,j,ie),It=ze>se.first&&Be(se,ze-1).stateAfter,ir=It?Lr.fromSaved(se,It,ze):new Lr(se,ke(se.mode),ze);return se.iter(ze,j,function(wr){Zn(N,wr.text,ir);var Or=ir.line;wr.stateAfter=Or==j-1||Or%5==0||Or>=me.viewFrom&&Or<me.viewTo?ir.save():null,ir.nextLine()}),ie&&(se.modeFrontier=ir.line),ir}function Zn(N,j,ie,se){var me=N.doc.mode,ze=new Me(j,N.options.tabSize,ie);for(ze.start=ze.pos=se||0,j==""&&pi(me,ie.state);!ze.eol();)Ci(me,ze,ie.state),ze.start=ze.pos}function pi(N,j){if(N.blankLine)return N.blankLine(j);if(!N.innerMode)return;var ie=Ot(N,j);if(ie.mode.blankLine)return ie.mode.blankLine(ie.state)}function Ci(N,j,ie,se){for(var me=0;me<10;me++){se&&(se[0]=Ot(N,ie).mode);var ze=N.token(j,ie);if(j.pos>j.start)return ze}throw new Error("Mode "+N.name+" failed to advance stream.")}var Ni=function(j,ie,se){this.start=j.start,this.end=j.pos,this.string=j.current(),this.type=ie||null,this.state=se};function zi(N,j,ie,se){var me=N.doc,ze=me.mode,It;j=Mt(me,j);var ir=Be(me,j.line),wr=ri(N,j.line,ie),Or=new Me(ir.text,N.options.tabSize,wr),Bn;for(se&&(Bn=[]);(se||Or.pos<j.ch)&&!Or.eol();)Or.start=Or.pos,It=Ci(ze,Or,wr.state),se&&Bn.push(new Ni(Or,It,$t(me.mode,wr.state)));return se?Bn:new Ni(Or,It,wr.state)}function it(N,j){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 se=ie[1]?"bgClass":"textClass";j[se]==null?j[se]=ie[2]:new RegExp("(?:^|\\s)"+ie[2]+"(?:$|\\s)").test(j[se])||(j[se]+=" "+ie[2])}return N}function Ne(N,j,ie,se,me,ze,It){var ir=ie.flattenSpans;ir==null&&(ir=N.options.flattenSpans);var wr=0,Or=null,Bn=new Me(j,N.options.tabSize,se),ti,Si=N.options.addModeClass&&[null];for(j==""&&it(pi(ie,se.state),ze);!Bn.eol();){if(Bn.pos>N.options.maxHighlightLength?(ir=!1,It&&Zn(N,j,se,Bn.pos),Bn.pos=j.length,ti=null):ti=it(Ci(ie,Bn,se.state,Si),ze),Si){var Oi=Si[0].name;Oi&&(ti="m-"+(ti?Oi+" "+ti:Oi))}if(!ir||Or!=ti){for(;wr<Bn.start;)wr=Math.min(Bn.start,wr+5e3),me(wr,Or);Or=ti}Bn.start=Bn.pos}for(;wr<Bn.pos;){var oa=Math.min(Bn.pos,wr+5e3);me(oa,Or),wr=oa}}function He(N,j,ie){for(var se,me,ze=N.doc,It=ie?-1:j-(N.doc.mode.innerMode?1e3:100),ir=j;ir>It;--ir){if(ir<=ze.first)return ze.first;var wr=Be(ze,ir-1),Or=wr.stateAfter;if(Or&&(!ie||ir+(Or instanceof Ir?Or.lookAhead:0)<=ze.modeFrontier))return ir;var Bn=V(wr.text,null,N.options.tabSize);(me==null||se>Bn)&&(me=ir-1,se=Bn)}return me}function Ge(N,j){if(N.modeFrontier=Math.min(N.modeFrontier,j),N.highlightFrontier<j-10)return;for(var ie=N.first,se=j-1;se>ie;se--){var me=Be(N,se).stateAfter;if(me&&(!(me instanceof Ir)||se+me.lookAhead<j)){ie=se+1;break}}N.highlightFrontier=Math.min(N.highlightFrontier,ie)}var nt=!1,$e=!1;function ot(){nt=!0}function Pt(){$e=!0}function xt(N,j,ie){this.marker=N,this.from=j,this.to=ie}function rr(N,j){if(N)for(var ie=0;ie<N.length;++ie){var se=N[ie];if(se.marker==j)return se}}function Fr(N,j){for(var ie,se=0;se<N.length;++se)N[se]!=j&&(ie||(ie=[])).push(N[se]);return ie}function Vr(N,j){N.markedSpans=N.markedSpans?N.markedSpans.concat([j]):[j],j.marker.attachLine(N)}function fn(N,j,ie){var se;if(N)for(var me=0;me<N.length;++me){var ze=N[me],It=ze.marker,ir=ze.from==null||(It.inclusiveLeft?ze.from<=j:ze.from<j);if(ir||ze.from==j&&It.type=="bookmark"&&(!ie||!ze.marker.insertLeft)){var wr=ze.to==null||(It.inclusiveRight?ze.to>=j:ze.to>j);(se||(se=[])).push(new xt(It,ze.from,wr?null:ze.to))}}return se}function gr(N,j,ie){var se;if(N)for(var me=0;me<N.length;++me){var ze=N[me],It=ze.marker,ir=ze.to==null||(It.inclusiveRight?ze.to>=j:ze.to>j);if(ir||ze.from==j&&It.type=="bookmark"&&(!ie||ze.marker.insertLeft)){var wr=ze.from==null||(It.inclusiveLeft?ze.from<=j:ze.from<j);(se||(se=[])).push(new xt(It,wr?null:ze.from-j,ze.to==null?null:ze.to-j))}}return se}function Gn(N,j){if(j.full)return null;var ie=qr(N,j.from.line)&&Be(N,j.from.line).markedSpans,se=qr(N,j.to.line)&&Be(N,j.to.line).markedSpans;if(!ie&&!se)return null;var me=j.from.ch,ze=j.to.ch,It=vt(j.from,j.to)==0,ir=fn(ie,me,It),wr=gr(se,ze,It),Or=j.text.length==1,Bn=Ve(j.text).length+(Or?me:0);if(ir)for(var ti=0;ti<ir.length;++ti){var Si=ir[ti];if(Si.to==null){var Oi=rr(wr,Si.marker);Oi?Or&&(Si.to=Oi.to==null?null:Oi.to+Bn):Si.to=me}}if(wr)for(var oa=0;oa<wr.length;++oa){var Ta=wr[oa];if(Ta.to!=null&&(Ta.to+=Bn),Ta.from==null){var Ha=rr(ir,Ta.marker);Ha||(Ta.from=Bn,Or&&(ir||(ir=[])).push(Ta))}else Ta.from+=Bn,Or&&(ir||(ir=[])).push(Ta)}ir&&(ir=Mr(ir)),wr&&wr!=ir&&(wr=Mr(wr));var Ba=[ir];if(!Or){var Na=j.text.length-2,$a;if(Na>0&&ir)for(var fo=0;fo<ir.length;++fo)ir[fo].to==null&&($a||($a=[])).push(new xt(ir[fo].marker,null,null));for(var es=0;es<Na;++es)Ba.push($a);Ba.push(wr)}return Ba}function Mr(N){for(var j=0;j<N.length;++j){var ie=N[j];ie.from!=null&&ie.from==ie.to&&ie.marker.clearWhenEmpty!==!1&&N.splice(j--,1)}return N.length?N:null}function Rn(N,j,ie){var se=null;if(N.iter(j.line,ie.line+1,function(Oi){if(Oi.markedSpans)for(var oa=0;oa<Oi.markedSpans.length;++oa){var Ta=Oi.markedSpans[oa].marker;Ta.readOnly&&(!se||G(se,Ta)==-1)&&(se||(se=[])).push(Ta)}}),!se)return null;for(var me=[{from:j,to:ie}],ze=0;ze<se.length;++ze)for(var It=se[ze],ir=It.find(0),wr=0;wr<me.length;++wr){var Or=me[wr];if(vt(Or.to,ir.from)<0||vt(Or.from,ir.to)>0)continue;var Bn=[wr,1],ti=vt(Or.from,ir.from),Si=vt(Or.to,ir.to);(ti<0||!It.inclusiveLeft&&!ti)&&Bn.push({from:Or.from,to:ir.from}),(Si>0||!It.inclusiveRight&&!Si)&&Bn.push({from:ir.to,to:Or.to}),me.splice.apply(me,Bn),wr+=Bn.length-3}return me}function bn(N){var j=N.markedSpans;if(!j)return;for(var ie=0;ie<j.length;++ie)j[ie].marker.detachLine(N);N.markedSpans=null}function rn(N,j){if(!j)return;for(var ie=0;ie<j.length;++ie)j[ie].marker.attachLine(N);N.markedSpans=j}function ei(N){return N.inclusiveLeft?-1:0}function fi(N){return N.inclusiveRight?1:0}function Mi(N,j){var ie=N.lines.length-j.lines.length;if(ie!=0)return ie;var se=N.find(),me=j.find(),ze=vt(se.from,me.from)||ei(N)-ei(j);if(ze)return-ze;var It=vt(se.to,me.to)||fi(N)-fi(j);return It||j.id-N.id}function $r(N,j){var ie=$e&&N.markedSpans,se;if(ie)for(var me=void 0,ze=0;ze<ie.length;++ze)me=ie[ze],me.marker.collapsed&&(j?me.from:me.to)==null&&(!se||Mi(se,me.marker)<0)&&(se=me.marker);return se}function En(N){return $r(N,!0)}function Hn(N){return $r(N,!1)}function zt(N,j){var ie=$e&&N.markedSpans,se;if(ie)for(var me=0;me<ie.length;++me){var ze=ie[me];ze.marker.collapsed&&(ze.from==null||ze.from<j)&&(ze.to==null||ze.to>j)&&(!se||Mi(se,ze.marker)<0)&&(se=ze.marker)}return se}function _t(N,j,ie,se,me){var ze=Be(N,j),It=$e&&ze.markedSpans;if(It)for(var ir=0;ir<It.length;++ir){var wr=It[ir];if(!wr.marker.collapsed)continue;var Or=wr.marker.find(0),Bn=vt(Or.from,ie)||ei(wr.marker)-ei(me),ti=vt(Or.to,se)||fi(wr.marker)-fi(me);if(Bn>=0&&ti<=0||Bn<=0&&ti>=0)continue;if(Bn<=0&&(wr.marker.inclusiveRight&&me.inclusiveLeft?vt(Or.to,ie)>=0:vt(Or.to,ie)>0)||Bn>=0&&(wr.marker.inclusiveRight&&me.inclusiveLeft?vt(Or.from,se)<=0:vt(Or.from,se)<0))return!0}}function Ft(N){for(var j;j=En(N);)N=j.find(-1,!0).line;return N}function Wt(N){for(var j;j=Hn(N);)N=j.find(1,!0).line;return N}function Vt(N){for(var j,ie;j=Hn(N);)N=j.find(1,!0).line,(ie||(ie=[])).push(N);return ie}function Lt(N,j){var ie=Be(N,j),se=Ft(ie);return ie==se?j:Yt(se)}function cr(N,j){if(j>N.lastLine())return j;var ie=Be(N,j),se;if(!vr(N,ie))return j;for(;se=Hn(ie);)ie=se.find(1,!0).line;return Yt(ie)+1}function vr(N,j){var ie=$e&&j.markedSpans;if(ie)for(var se=void 0,me=0;me<ie.length;++me){if(se=ie[me],!se.marker.collapsed)continue;if(se.from==null)return!0;if(se.marker.widgetNode)continue;if(se.from==0&&se.marker.inclusiveLeft&&yr(N,j,se))return!0}}function yr(N,j,ie){if(ie.to==null){var se=ie.marker.find(1,!0);return yr(N,se.line,rr(se.line.markedSpans,ie.marker))}if(ie.marker.inclusiveRight&&ie.to==j.text.length)return!0;for(var me=void 0,ze=0;ze<j.markedSpans.length;++ze)if(me=j.markedSpans[ze],me.marker.collapsed&&!me.marker.widgetNode&&me.from==ie.to&&(me.to==null||me.to!=ie.from)&&(me.marker.inclusiveLeft||ie.marker.inclusiveRight)&&yr(N,j,me))return!0}function Dr(N){N=Ft(N);for(var j=0,ie=N.parent,se=0;se<ie.lines.length;++se){var me=ie.lines[se];if(me==N)break;j+=me.height}for(var ze=ie.parent;ze;ie=ze,ze=ie.parent)for(var It=0;It<ze.children.length;++It){var ir=ze.children[It];if(ir==ie)break;j+=ir.height}return j}function Kn(N){if(N.height==0)return 0;for(var j=N.text.length,ie,se=N;ie=En(se);){var me=ie.find(0,!0);se=me.from.line,j+=me.from.ch-me.to.ch}for(se=N;ie=Hn(se);){var ze=ie.find(0,!0);j-=se.text.length-ze.from.ch,se=ze.to.line,j+=se.text.length-ze.to.ch}return j}function Dn(N){var j=N.display,ie=N.doc;j.maxLine=Be(ie,ie.first),j.maxLineLength=Kn(j.maxLine),j.maxLineChanged=!0,ie.iter(function(se){var me=Kn(se);me>j.maxLineLength&&(j.maxLineLength=me,j.maxLine=se)})}var di=function(j,ie,se){this.text=j,rn(this,ie),this.height=se?se(this):1};di.prototype.lineNo=function(){return Yt(this)},Bt(di);function mn(N,j,ie,se){N.text=j,N.stateAfter&&(N.stateAfter=null),N.styles&&(N.styles=null),N.order!=null&&(N.order=null),bn(N),rn(N,ie);var me=se?se(N):1;me!=N.height&&Ct(N,me)}function Ur(N){N.parent=null,bn(N)}var On={},zn={};function qn(N,j){if(!N||/^\s*$/.test(N))return null;var ie=j.addModeClass?zn:On;return ie[N]||(ie[N]=N.replace(/\S+/g,"cm-$&"))}function oi(N,j){var ie=F("span",null,null,o?"padding-right: .1px":null),se={pre:F("pre",[ie],"CodeMirror-line"),content:ie,col:0,pos:0,cm:N,trailingSpace:!1,splitSpaces:N.getOption("lineWrapping")};j.measure={};for(var me=0;me<=(j.rest?j.rest.length:0);me++){var ze=me?j.rest[me-1]:j.line,It=void 0;se.pos=0,se.addToken=Di,mr(N.display.measure)&&(It=pt(ze,N.doc.direction))&&(se.addToken=aa(se.addToken,It)),se.map=[];var ir=j!=N.display.externalMeasured&&Yt(ze);na(ze,se,gn(N,ze,ir)),ze.styleClasses&&(ze.styleClasses.bgClass&&(se.bgClass=P(ze.styleClasses.bgClass,se.bgClass||"")),ze.styleClasses.textClass&&(se.textClass=P(ze.styleClasses.textClass,se.textClass||""))),se.map.length==0&&se.map.push(0,0,se.content.appendChild(gt(N.display.measure))),me==0?(j.measure.map=se.map,j.measure.cache={}):((j.measure.maps||(j.measure.maps=[])).push(se.map),(j.measure.caches||(j.measure.caches=[])).push({}))}if(o){var wr=se.content.lastChild;(/\bcm-tab\b/.test(wr.className)||wr.querySelector&&wr.querySelector(".cm-tab"))&&(se.content.className="cm-tab-wrap-hack")}return wt(N,"renderLine",N,j.line,se.pre),se.pre.className&&(se.textClass=P(se.pre.className,se.textClass||"")),se}function xi(N){var j=_("span","\u2022","cm-invalidchar");return j.title="\\u"+N.charCodeAt(0).toString(16),j.setAttribute("aria-label",j.title),j}function Di(N,j,ie,se,me,ze,It){if(!j)return;var ir=N.splitSpaces?Li(j,N.trailingSpace):j,wr=N.cm.state.specialChars,Or=!1,Bn;if(!wr.test(j))N.col+=j.length,Bn=document.createTextNode(ir),N.map.push(N.pos,N.pos+j.length,Bn),d&&l<9&&(Or=!0),N.pos+=j.length;else{Bn=document.createDocumentFragment();for(var ti=0;;){wr.lastIndex=ti;var Si=wr.exec(j),Oi=Si?Si.index-ti:j.length-ti;if(Oi){var oa=document.createTextNode(ir.slice(ti,ti+Oi));d&&l<9?Bn.appendChild(_("span",[oa])):Bn.appendChild(oa),N.map.push(N.pos,N.pos+Oi,oa),N.col+=Oi,N.pos+=Oi}if(!Si)break;ti+=Oi+1;var Ta=void 0;if(Si[0]==" "){var Ha=N.cm.options.tabSize,Ba=Ha-N.col%Ha;Ta=Bn.appendChild(_("span",Je(Ba),"cm-tab")),Ta.setAttribute("role","presentation"),Ta.setAttribute("cm-text"," "),N.col+=Ba}else Si[0]=="\r"||Si[0]==`
`?(Ta=Bn.appendChild(_("span",Si[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ta.setAttribute("cm-text",Si[0]),N.col+=1):(Ta=N.cm.options.specialCharPlaceholder(Si[0]),Ta.setAttribute("cm-text",Si[0]),d&&l<9?Bn.appendChild(_("span",[Ta])):Bn.appendChild(Ta),N.col+=1);N.map.push(N.pos,N.pos+1,Ta),N.pos++}}if(N.trailingSpace=ir.charCodeAt(j.length-1)==32,ie||se||me||Or||ze||It){var Na=ie||"";se&&(Na+=se),me&&(Na+=me);var $a=_("span",[Bn],Na,ze);if(It)for(var fo in It)It.hasOwnProperty(fo)&&fo!="style"&&fo!="class"&&$a.setAttribute(fo,It[fo]);return N.content.appendChild($a)}N.content.appendChild(Bn)}function Li(N,j){if(N.length>1&&!/ /.test(N))return N;for(var ie=j,se="",me=0;me<N.length;me++){var ze=N.charAt(me);ze==" "&&ie&&(me==N.length-1||N.charCodeAt(me+1)==32)&&(ze="\xA0"),se+=ze,ie=ze==" "}return se}function aa(N,j){return function(ie,se,me,ze,It,ir,wr){me=me?me+" cm-force-border":"cm-force-border";for(var Or=ie.pos,Bn=Or+se.length;;){for(var ti=void 0,Si=0;Si<j.length&&!(ti=j[Si],ti.to>Or&&ti.from<=Or);Si++);if(ti.to>=Bn)return N(ie,se,me,ze,It,ir,wr);N(ie,se.slice(0,ti.to-Or),me,ze,null,ir,wr),ze=null,se=se.slice(ti.to-Or),Or=ti.to}}}function ma(N,j,ie,se){var me=!se&&ie.widgetNode;me&&N.map.push(N.pos,N.pos+j,me),!se&&N.cm.display.input.needsContentAttribute&&(me||(me=N.content.appendChild(document.createElement("span"))),me.setAttribute("cm-marker",ie.id)),me&&(N.cm.display.input.setUneditable(me),N.content.appendChild(me)),N.pos+=j,N.trailingSpace=!1}function na(N,j,ie){var se=N.markedSpans,me=N.text,ze=0;if(!se){for(var It=1;It<ie.length;It+=2)j.addToken(j,me.slice(ze,ze=ie[It]),qn(ie[It+1],j.cm.options));return}for(var ir=me.length,wr=0,Or=1,Bn="",ti,Si,Oi=0,oa,Ta,Ha,Ba,Na;;){if(Oi==wr){oa=Ta=Ha=Si="",Na=null,Ba=null,Oi=Infinity;for(var $a=[],fo=void 0,es=0;es<se.length;++es){var Bo=se[es],Ss=Bo.marker;if(Ss.type=="bookmark"&&Bo.from==wr&&Ss.widgetNode)$a.push(Ss);else if(Bo.from<=wr&&(Bo.to==null||Bo.to>wr||Ss.collapsed&&Bo.to==wr&&Bo.from==wr)){if(Bo.to!=null&&Bo.to!=wr&&Oi>Bo.to&&(Oi=Bo.to,Ta=""),Ss.className&&(oa+=" "+Ss.className),Ss.css&&(Si=(Si?Si+";":"")+Ss.css),Ss.startStyle&&Bo.from==wr&&(Ha+=" "+Ss.startStyle),Ss.endStyle&&Bo.to==Oi&&(fo||(fo=[])).push(Ss.endStyle,Bo.to),Ss.title&&((Na||(Na={})).title=Ss.title),Ss.attributes)for(var Qs in Ss.attributes)(Na||(Na={}))[Qs]=Ss.attributes[Qs];Ss.collapsed&&(!Ba||Mi(Ba.marker,Ss)<0)&&(Ba=Bo)}else Bo.from>wr&&Oi>Bo.from&&(Oi=Bo.from)}if(fo)for(var gl=0;gl<fo.length;gl+=2)fo[gl+1]==Oi&&(Ta+=" "+fo[gl]);if(!Ba||Ba.from==wr)for(var il=0;il<$a.length;++il)ma(j,0,$a[il]);if(Ba&&(Ba.from||0)==wr){if(ma(j,(Ba.to==null?ir+1:Ba.to)-wr,Ba.marker,Ba.from==null),Ba.to==null)return;Ba.to==wr&&(Ba=!1)}}if(wr>=ir)break;for(var Fl=Math.min(ir,Oi);;){if(Bn){var Wl=wr+Bn.length;if(!Ba){var Cl=Wl>Fl?Bn.slice(0,Fl-wr):Bn;j.addToken(j,Cl,ti?ti+oa:oa,Ha,wr+Cl.length==Oi?Ta:"",Si,Na)}if(Wl>=Fl){Bn=Bn.slice(Fl-wr),wr=Fl;break}wr=Wl,Ha=""}Bn=me.slice(ze,ze=ie[Or++]),ti=qn(ie[Or++],j.cm.options)}}}function Aa(N,j,ie){this.line=j,this.rest=Vt(j),this.size=this.rest?Yt(Ve(this.rest))-ie+1:1,this.node=this.text=null,this.hidden=vr(N,j)}function yi(N,j,ie){for(var se=[],me,ze=j;ze<ie;ze=me){var It=new Aa(N.doc,Be(N.doc,ze),ze);me=ze+It.size,se.push(It)}return se}var Ln=null;function ji(N){Ln?Ln.ops.push(N):N.ownsGroup=Ln={ops:[N],delayedCallbacks:[]}}function ha(N){var j=N.delayedCallbacks,ie=0;do{for(;ie<j.length;ie++)j[ie].call(null);for(var se=0;se<N.ops.length;se++){var me=N.ops[se];if(me.cursorActivityHandlers)for(;me.cursorActivityCalled<me.cursorActivityHandlers.length;)me.cursorActivityHandlers[me.cursorActivityCalled++].call(null,me.cm)}}while(ie<j.length)}function ea(N,j){var ie=N.ownsGroup;if(!ie)return;try{ha(ie)}finally{Ln=null,j(ie)}}var ca=null;function kr(N,j){var ie=ft(N,j);if(!ie.length)return;var se=Array.prototype.slice.call(arguments,2),me;Ln?me=Ln.delayedCallbacks:ca?me=ca:(me=ca=[],setTimeout(Sr,0));for(var ze=function(wr){me.push(function(){return ie[wr].apply(null,se)})},It=0;It<ie.length;++It)ze(It)}function Sr(){var N=ca;ca=null;for(var j=0;j<N.length;++j)N[j]()}function yn(N,j,ie,se){for(var me=0;me<j.changes.length;me++){var ze=j.changes[me];ze=="text"?ln(N,j):ze=="gutter"?kt(N,j,ie,se):ze=="class"?kn(N,j):ze=="widget"&&_r(N,j,se)}j.changes=null}function dr(N){return N.node==N.text&&(N.node=_("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 Rr(N,j){var ie=j.bgClass?j.bgClass+" "+(j.line.bgClass||""):j.line.bgClass;if(ie&&(ie+=" CodeMirror-linebackground"),j.background)ie?j.background.className=ie:(j.background.parentNode.removeChild(j.background),j.background=null);else if(ie){var se=dr(j);j.background=se.insertBefore(_("div",null,ie),se.firstChild),N.display.input.setUneditable(j.background)}}function Gr(N,j){var ie=N.display.externalMeasured;return ie&&ie.line==j.line?(N.display.externalMeasured=null,j.measure=ie.measure,ie.built):oi(N,j)}function ln(N,j){var ie=j.text.className,se=Gr(N,j);j.text==j.node&&(j.node=se.pre),j.text.parentNode.replaceChild(se.pre,j.text),j.text=se.pre,se.bgClass!=j.bgClass||se.textClass!=j.textClass?(j.bgClass=se.bgClass,j.textClass=se.textClass,kn(N,j)):ie&&(j.text.className=ie)}function kn(N,j){Rr(N,j),j.line.wrapClass?dr(j).className=j.line.wrapClass:j.node!=j.text&&(j.node.className="");var ie=j.textClass?j.textClass+" "+(j.line.textClass||""):j.line.textClass;j.text.className=ie||""}function kt(N,j,ie,se){if(j.gutter&&(j.node.removeChild(j.gutter),j.gutter=null),j.gutterBackground&&(j.node.removeChild(j.gutterBackground),j.gutterBackground=null),j.line.gutterClass){var me=dr(j);j.gutterBackground=_("div",null,"CodeMirror-gutter-background "+j.line.gutterClass,"left: "+(N.options.fixedGutter?se.fixedPos:-se.gutterTotalWidth)+"px; width: "+se.gutterTotalWidth+"px"),N.display.input.setUneditable(j.gutterBackground),me.insertBefore(j.gutterBackground,j.text)}var ze=j.line.gutterMarkers;if(N.options.lineNumbers||ze){var It=dr(j),ir=j.gutter=_("div",null,"CodeMirror-gutter-wrapper","left: "+(N.options.fixedGutter?se.fixedPos:-se.gutterTotalWidth)+"px");if(N.display.input.setUneditable(ir),It.insertBefore(ir,j.text),j.line.gutterClass&&(ir.className+=" "+j.line.gutterClass),N.options.lineNumbers&&(!ze||!ze["CodeMirror-linenumbers"])&&(j.lineNumber=ir.appendChild(_("div",An(N.options,ie),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+se.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+N.display.lineNumInnerWidth+"px"))),ze)for(var wr=0;wr<N.display.gutterSpecs.length;++wr){var Or=N.display.gutterSpecs[wr].className,Bn=ze.hasOwnProperty(Or)&&ze[Or];Bn&&ir.appendChild(_("div",[Bn],"CodeMirror-gutter-elt","left: "+se.gutterLeft[Or]+"px; width: "+se.gutterWidth[Or]+"px"))}}}function _r(N,j,ie){j.alignable&&(j.alignable=null);for(var se=O("CodeMirror-linewidget"),me=j.node.firstChild,ze=void 0;me;me=ze)ze=me.nextSibling,se.test(me.className)&&j.node.removeChild(me);Jr(N,j,ie)}function Nr(N,j,ie,se){var me=Gr(N,j);return j.text=j.node=me.pre,me.bgClass&&(j.bgClass=me.bgClass),me.textClass&&(j.textClass=me.textClass),kn(N,j),kt(N,j,ie,se),Jr(N,j,se),j.node}function Jr(N,j,ie){if(xn(N,j.line,j,ie,!0),j.rest)for(var se=0;se<j.rest.length;se++)xn(N,j.rest[se],j,ie,!1)}function xn(N,j,ie,se,me){if(!j.widgets)return;for(var ze=dr(ie),It=0,ir=j.widgets;It<ir.length;++It){var wr=ir[It],Or=_("div",[wr.node],"CodeMirror-linewidget"+(wr.className?" "+wr.className:""));wr.handleMouseEvents||Or.setAttribute("cm-ignore-events","true"),Tn(wr,Or,ie,se),N.display.input.setUneditable(Or),me&&wr.above?ze.insertBefore(Or,ie.gutter||ie.text):ze.appendChild(Or),kr(wr,"redraw")}}function Tn(N,j,ie,se){if(N.noHScroll){(ie.alignable||(ie.alignable=[])).push(j);var me=se.wrapperWidth;j.style.left=se.fixedPos+"px",N.coverGutter||(me-=se.gutterTotalWidth,j.style.paddingLeft=se.gutterTotalWidth+"px"),j.style.width=me+"px"}N.coverGutter&&(j.style.zIndex=5,j.style.position="relative",N.noHScroll||(j.style.marginLeft=-se.gutterTotalWidth+"px"))}function wn(N){if(N.height!=null)return N.height;var j=N.doc.cm;if(!j)return 0;if(!B(document.body,N.node)){var ie="position: relative;";N.coverGutter&&(ie+="margin-left: -"+j.display.gutters.offsetWidth+"px;"),N.noHScroll&&(ie+="width: "+j.display.wrapper.clientWidth+"px;"),I(j.display.measure,_("div",[N.node],null,ie))}return N.height=N.node.parentNode.offsetHeight}function $n(N,j){for(var ie=qe(j);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 Vn(N){return N.lineSpace.offsetTop}function mi(N){return N.mover.offsetHeight-N.lineSpace.offsetHeight}function Ri(N){if(N.cachedPaddingH)return N.cachedPaddingH;var j=I(N.measure,_("pre","x","CodeMirror-line-like")),ie=window.getComputedStyle?window.getComputedStyle(j):j.currentStyle,se={left:parseInt(ie.paddingLeft),right:parseInt(ie.paddingRight)};return!isNaN(se.left)&&!isNaN(se.right)&&(N.cachedPaddingH=se),se}function vi(N){return te-N.display.nativeBarWidth}function Bi(N){return N.display.scroller.clientWidth-vi(N)-N.display.barWidth}function Gi(N){return N.display.scroller.clientHeight-vi(N)-N.display.barHeight}function ta(N,j,ie){var se=N.options.lineWrapping,me=se&&Bi(N);if(!j.measure.heights||se&&j.measure.width!=me){var ze=j.measure.heights=[];if(se){j.measure.width=me;for(var It=j.text.firstChild.getClientRects(),ir=0;ir<It.length-1;ir++){var wr=It[ir],Or=It[ir+1];Math.abs(wr.bottom-Or.bottom)>2&&ze.push((wr.bottom+Or.top)/2-ie.top)}}ze.push(ie.bottom-ie.top)}}function Pi(N,j,ie){if(N.line==j)return{map:N.measure.map,cache:N.measure.cache};for(var se=0;se<N.rest.length;se++)if(N.rest[se]==j)return{map:N.measure.maps[se],cache:N.measure.caches[se]};for(var me=0;me<N.rest.length;me++)if(Yt(N.rest[me])>ie)return{map:N.measure.maps[me],cache:N.measure.caches[me],before:!0}}function Ki(N,j){j=Ft(j);var ie=Yt(j),se=N.display.externalMeasured=new Aa(N.doc,j,ie);se.lineN=ie;var me=se.built=oi(N,se);return se.text=me.pre,I(N.display.lineMeasure,me.pre),se}function Hi(N,j,ie,se){return Oa(N,da(N,j),ie,se)}function Qi(N,j){if(j>=N.display.viewFrom&&j<N.display.viewTo)return N.display.view[ho(N,j)];var ie=N.display.externalMeasured;if(ie&&j>=ie.lineN&&j<ie.lineN+ie.size)return ie}function da(N,j){var ie=Yt(j),se=Qi(N,ie);se&&!se.text?se=null:se&&se.changes&&(yn(N,se,ie,is(N)),N.curOp.forceUpdate=!0),se||(se=Ki(N,j));var me=Pi(se,j,ie);return{line:j,view:se,rect:null,map:me.map,cache:me.cache,before:me.before,hasHeights:!1}}function Oa(N,j,ie,se,me){j.before&&(ie=-1);var ze=ie+(se||""),It;return j.cache.hasOwnProperty(ze)?It=j.cache[ze]:(j.rect||(j.rect=j.view.text.getBoundingClientRect()),j.hasHeights||(ta(N,j.view,j.rect),j.hasHeights=!0),It=va(N,j,ie,se),It.bogus||(j.cache[ze]=It)),{left:It.left,right:It.right,top:me?It.rtop:It.top,bottom:me?It.rbottom:It.bottom}}var ra={left:0,right:0,top:0,bottom:0};function Da(N,j,ie){for(var se,me,ze,It,ir,wr,Or=0;Or<N.length;Or+=3)if(ir=N[Or],wr=N[Or+1],j<ir?(me=0,ze=1,It="left"):j<wr?(me=j-ir,ze=me+1):(Or==N.length-3||j==wr&&N[Or+3]>j)&&(ze=wr-ir,me=ze-1,j>=wr&&(It="right")),me!=null){if(se=N[Or+2],ir==wr&&ie==(se.insertLeft?"left":"right")&&(It=ie),ie=="left"&&me==0)for(;Or&&N[Or-2]==N[Or-3]&&N[Or-1].insertLeft;)se=N[(Or-=3)+2],It="left";if(ie=="right"&&me==wr-ir)for(;Or<N.length-3&&N[Or+3]==N[Or+4]&&!N[Or+5].insertLeft;)se=N[(Or+=3)+2],It="right";break}return{node:se,start:me,end:ze,collapse:It,coverStart:ir,coverEnd:wr}}function Ra(N,j){var ie=ra;if(j=="left")for(var se=0;se<N.length&&!((ie=N[se]).left!=ie.right);se++);else for(var me=N.length-1;me>=0&&!((ie=N[me]).left!=ie.right);me--);return ie}function va(N,j,ie,se){var me=Da(j.map,ie,se),ze=me.node,It=me.start,ir=me.end,wr=me.collapse,Or;if(ze.nodeType==3){for(var Bn=0;Bn<4;Bn++){for(;It&&be(j.line.text.charAt(me.coverStart+It));)--It;for(;me.coverStart+ir<me.coverEnd&&be(j.line.text.charAt(me.coverStart+ir));)++ir;if(d&&l<9&&It==0&&ir==me.coverEnd-me.coverStart?Or=ze.parentNode.getBoundingClientRect():Or=Ra(R(ze,It,ir).getClientRects(),se),Or.left||Or.right||It==0)break;ir=It,It=It-1,wr="right"}d&&l<11&&(Or=ga(N.display.measure,Or))}else{It>0&&(wr=se="right");var ti;N.options.lineWrapping&&(ti=ze.getClientRects()).length>1?Or=ti[se=="right"?ti.length-1:0]:Or=ze.getBoundingClientRect()}if(d&&l<9&&!It&&(!Or||!Or.left&&!Or.right)){var Si=ze.parentNode.getClientRects()[0];Si?Or={left:Si.left,right:Si.left+Mo(N.display),top:Si.top,bottom:Si.bottom}:Or=ra}for(var Oi=Or.top-j.rect.top,oa=Or.bottom-j.rect.top,Ta=(Oi+oa)/2,Ha=j.view.measure.heights,Ba=0;Ba<Ha.length-1&&!(Ta<Ha[Ba]);Ba++);var Na=Ba?Ha[Ba-1]:0,$a=Ha[Ba],fo={left:(wr=="right"?Or.right:Or.left)-j.rect.left,right:(wr=="left"?Or.left:Or.right)-j.rect.left,top:Na,bottom:$a};return!Or.left&&!Or.right&&(fo.bogus=!0),N.options.singleCursorHeightPerLine||(fo.rtop=Oi,fo.rbottom=oa),fo}function ga(N,j){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!ar(N))return j;var ie=screen.logicalXDPI/screen.deviceXDPI,se=screen.logicalYDPI/screen.deviceYDPI;return{left:j.left*ie,right:j.right*ie,top:j.top*se,bottom:j.bottom*se}}function _a(N){if(N.measure&&(N.measure.cache={},N.measure.heights=null,N.rest))for(var j=0;j<N.rest.length;j++)N.measure.caches[j]={}}function ya(N){N.display.externalMeasure=null,C(N.display.lineMeasure);for(var j=0;j<N.display.view.length;j++)_a(N.display.view[j])}function Ga(N){ya(N),N.display.cachedCharWidth=N.display.cachedTextHeight=N.display.cachedPaddingH=null,N.options.lineWrapping||(N.display.maxLineChanged=!0),N.display.lineNumChars=null}function Ia(){return t&&c?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Wa(){return t&&c?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function no(N){var j=0;if(N.widgets)for(var ie=0;ie<N.widgets.length;++ie)N.widgets[ie].above&&(j+=wn(N.widgets[ie]));return j}function io(N,j,ie,se,me){if(!me){var ze=no(j);ie.top+=ze,ie.bottom+=ze}if(se=="line")return ie;se||(se="local");var It=Dr(j);if(se=="local"?It+=Vn(N.display):It-=N.display.viewOffset,se=="page"||se=="window"){var ir=N.display.lineSpace.getBoundingClientRect();It+=ir.top+(se=="window"?0:Wa());var wr=ir.left+(se=="window"?0:Ia());ie.left+=wr,ie.right+=wr}return ie.top+=It,ie.bottom+=It,ie}function uo(N,j,ie){if(ie=="div")return j;var se=j.left,me=j.top;if(ie=="page")se-=Ia(),me-=Wa();else if(ie=="local"||!ie){var ze=N.display.sizer.getBoundingClientRect();se+=ze.left,me+=ze.top}var It=N.display.lineSpace.getBoundingClientRect();return{left:se-It.left,top:me-It.top}}function $i(N,j,ie,se,me){return se||(se=Be(N.doc,j.line)),io(N,se,Hi(N,se,j.ch,me),ie)}function mo(N,j,ie,se,me,ze){se=se||Be(N.doc,j.line),me||(me=da(N,se));function It(oa,Ta){var Ha=Oa(N,me,oa,Ta?"right":"left",ze);return Ta?Ha.left=Ha.right:Ha.right=Ha.left,io(N,se,Ha,ie)}var ir=pt(se,N.doc.direction),wr=j.ch,Or=j.sticky;if(wr>=se.text.length?(wr=se.text.length,Or="before"):wr<=0&&(wr=0,Or="after"),!ir)return It(Or=="before"?wr-1:wr,Or=="before");function Bn(oa,Ta,Ha){var Ba=ir[Ta],Na=Ba.level==1;return It(Ha?oa-1:oa,Na!=Ha)}var ti=Ie(ir,wr,Or),Si=ye,Oi=Bn(wr,ti,Or=="before");return Si!=null&&(Oi.other=Bn(wr,Si,Or!="before")),Oi}function Eo(N,j){var ie=0;j=Mt(N.doc,j),N.options.lineWrapping||(ie=Mo(N.display)*j.ch);var se=Be(N.doc,j.line),me=Dr(se)+Vn(N.display);return{left:ie,right:ie,top:me,bottom:me+se.height}}function ao(N,j,ie,se,me){var ze=Gt(N,j,ie);return ze.xRel=me,se&&(ze.outside=se),ze}function Co(N,j,ie){var se=N.doc;if(ie+=N.display.viewOffset,ie<0)return ao(se.first,0,null,-1,-1);var me=Pr(se,ie),ze=se.first+se.size-1;if(me>ze)return ao(se.first+se.size-1,Be(se,ze).text.length,null,1,1);j<0&&(j=0);for(var It=Be(se,me);;){var ir=bo(N,It,me,j,ie),wr=zt(It,ir.ch+(ir.xRel>0||ir.outside>0?1:0));if(!wr)return ir;var Or=wr.find(1);if(Or.line==me)return Or;It=Be(se,me=Or.line)}}function Ko(N,j,ie,se){se-=no(j);var me=j.text.length,ze=Te(function(It){return Oa(N,ie,It-1).bottom<=se},me,0);return me=Te(function(It){return Oa(N,ie,It).top>se},ze,me),{begin:ze,end:me}}function to(N,j,ie,se){ie||(ie=da(N,j));var me=io(N,j,Oa(N,ie,se),"line").top;return Ko(N,j,ie,me)}function Qo(N,j,ie,se){return N.bottom<=ie?!1:N.top>ie?!0:(se?N.left:N.right)>j}function bo(N,j,ie,se,me){me-=Dr(j);var ze=da(N,j),It=no(j),ir=0,wr=j.text.length,Or=!0,Bn=pt(j,N.doc.direction);if(Bn){var ti=(N.options.lineWrapping?ts:xo)(N,j,ie,ze,Bn,se,me);Or=ti.level!=1,ir=Or?ti.from:ti.to-1,wr=Or?ti.to:ti.from-1}var Si=null,Oi=null,oa=Te(function(es){var Bo=Oa(N,ze,es);return Bo.top+=It,Bo.bottom+=It,Qo(Bo,se,me,!1)?(Bo.top<=me&&Bo.left<=se&&(Si=es,Oi=Bo),!0):!1},ir,wr),Ta,Ha,Ba=!1;if(Oi){var Na=se-Oi.left<Oi.right-se,$a=Na==Or;oa=Si+($a?0:1),Ha=$a?"after":"before",Ta=Na?Oi.left:Oi.right}else{!Or&&(oa==wr||oa==ir)&&oa++,Ha=oa==0?"after":oa==j.text.length?"before":Oa(N,ze,oa-(Or?1:0)).bottom+It<=me==Or?"after":"before";var fo=mo(N,Gt(ie,oa,Ha),"line",j,ze);Ta=fo.left,Ba=me<fo.top?-1:me>=fo.bottom?1:0}return oa=Ce(j.text,oa,1),ao(ie,oa,Ha,Ba,se-Ta)}function xo(N,j,ie,se,me,ze,It){var ir=Te(function(ti){var Si=me[ti],Oi=Si.level!=1;return Qo(mo(N,Gt(ie,Oi?Si.to:Si.from,Oi?"before":"after"),"line",j,se),ze,It,!0)},0,me.length-1),wr=me[ir];if(ir>0){var Or=wr.level!=1,Bn=mo(N,Gt(ie,Or?wr.from:wr.to,Or?"after":"before"),"line",j,se);Qo(Bn,ze,It,!0)&&Bn.top>It&&(wr=me[ir-1])}return wr}function ts(N,j,ie,se,me,ze,It){var ir=Ko(N,j,se,It),wr=ir.begin,Or=ir.end;/\s/.test(j.text.charAt(Or-1))&&Or--;for(var Bn=null,ti=null,Si=0;Si<me.length;Si++){var Oi=me[Si];if(Oi.from>=Or||Oi.to<=wr)continue;var oa=Oi.level!=1,Ta=Oa(N,se,oa?Math.min(Or,Oi.to)-1:Math.max(wr,Oi.from)).right,Ha=Ta<ze?ze-Ta+1e9:Ta-ze;(!Bn||ti>Ha)&&(Bn=Oi,ti=Ha)}return Bn||(Bn=me[me.length-1]),Bn.from<wr&&(Bn={from:wr,to:Bn.to,level:Bn.level}),Bn.to>Or&&(Bn={from:Bn.from,to:Or,level:Bn.level}),Bn}var ka;function Io(N){if(N.cachedTextHeight!=null)return N.cachedTextHeight;if(ka==null){ka=_("pre",null,"CodeMirror-line-like");for(var j=0;j<49;++j)ka.appendChild(document.createTextNode("x")),ka.appendChild(_("br"));ka.appendChild(document.createTextNode("x"))}I(N.measure,ka);var ie=ka.offsetHeight/50;return ie>3&&(N.cachedTextHeight=ie),C(N.measure),ie||1}function Mo(N){if(N.cachedCharWidth!=null)return N.cachedCharWidth;var j=_("span","xxxxxxxxxx"),ie=_("pre",[j],"CodeMirror-line-like");I(N.measure,ie);var se=j.getBoundingClientRect(),me=(se.right-se.left)/10;return me>2&&(N.cachedCharWidth=me),me||10}function is(N){for(var j=N.display,ie={},se={},me=j.gutters.clientLeft,ze=j.gutters.firstChild,It=0;ze;ze=ze.nextSibling,++It){var ir=N.display.gutterSpecs[It].className;ie[ir]=ze.offsetLeft+ze.clientLeft+me,se[ir]=ze.clientWidth}return{fixedPos:To(j),gutterTotalWidth:j.gutters.offsetWidth,gutterLeft:ie,gutterWidth:se,wrapperWidth:j.wrapper.clientWidth}}function To(N){return N.scroller.getBoundingClientRect().left-N.sizer.getBoundingClientRect().left}function Zo(N){var j=Io(N.display),ie=N.options.lineWrapping,se=ie&&Math.max(5,N.display.scroller.clientWidth/Mo(N.display)-3);return function(me){if(vr(N.doc,me))return 0;var ze=0;if(me.widgets)for(var It=0;It<me.widgets.length;It++)me.widgets[It].height&&(ze+=me.widgets[It].height);return ie?ze+(Math.ceil(me.text.length/se)||1)*j:ze+j}}function Vo(N){var j=N.doc,ie=Zo(N);j.iter(function(se){var me=ie(se);me!=se.height&&Ct(se,me)})}function Lo(N,j,ie,se){var me=N.display;if(!ie&&qe(j).getAttribute("cm-not-content")=="true")return null;var ze,It,ir=me.lineSpace.getBoundingClientRect();try{ze=j.clientX-ir.left,It=j.clientY-ir.top}catch(ti){return null}var wr=Co(N,ze,It),Or;if(se&&wr.xRel>0&&(Or=Be(N.doc,wr.line).text).length==wr.ch){var Bn=V(Or,Or.length,N.options.tabSize)-Or.length;wr=Gt(wr.line,Math.max(0,Math.round((ze-Ri(N.display).left)/Mo(N.display))-Bn))}return wr}function ho(N,j){if(j>=N.display.viewTo)return null;if(j-=N.display.viewFrom,j<0)return null;for(var ie=N.display.view,se=0;se<ie.length;se++)if(j-=ie[se].size,j<0)return se}function ja(N,j,ie,se){j==null&&(j=N.doc.first),ie==null&&(ie=N.doc.first+N.doc.size),se||(se=0);var me=N.display;if(se&&ie<me.viewTo&&(me.updateLineNumbers==null||me.updateLineNumbers>j)&&(me.updateLineNumbers=j),N.curOp.viewChanged=!0,j>=me.viewTo)$e&&Lt(N.doc,j)<me.viewTo&&Cr(N);else if(ie<=me.viewFrom)$e&&cr(N.doc,ie+se)>me.viewFrom?Cr(N):(me.viewFrom+=se,me.viewTo+=se);else if(j<=me.viewFrom&&ie>=me.viewTo)Cr(N);else if(j<=me.viewFrom){var ze=tn(N,ie,ie+se,1);ze?(me.view=me.view.slice(ze.index),me.viewFrom=ze.lineN,me.viewTo+=se):Cr(N)}else if(ie>=me.viewTo){var It=tn(N,j,j,-1);It?(me.view=me.view.slice(0,It.index),me.viewTo=It.lineN):Cr(N)}else{var ir=tn(N,j,j,-1),wr=tn(N,ie,ie+se,1);ir&&wr?(me.view=me.view.slice(0,ir.index).concat(yi(N,ir.lineN,wr.lineN)).concat(me.view.slice(wr.index)),me.viewTo+=se):Cr(N)}var Or=me.externalMeasured;Or&&(ie<Or.lineN?Or.lineN+=se:j<Or.lineN+Or.size&&(me.externalMeasured=null))}function mt(N,j,ie){N.curOp.viewChanged=!0;var se=N.display,me=N.display.externalMeasured;if(me&&j>=me.lineN&&j<me.lineN+me.size&&(se.externalMeasured=null),j<se.viewFrom||j>=se.viewTo)return;var ze=se.view[ho(N,j)];if(ze.node==null)return;var It=ze.changes||(ze.changes=[]);G(It,ie)==-1&&It.push(ie)}function Cr(N){N.display.viewFrom=N.display.viewTo=N.doc.first,N.display.view=[],N.display.viewOffset=0}function tn(N,j,ie,se){var me=ho(N,j),ze,It=N.display.view;if(!$e||ie==N.doc.first+N.doc.size)return{index:me,lineN:ie};for(var ir=N.display.viewFrom,wr=0;wr<me;wr++)ir+=It[wr].size;if(ir!=j){if(se>0){if(me==It.length-1)return null;ze=ir+It[me].size-j,me++}else ze=ir-j;j+=ze,ie+=ze}for(;Lt(N.doc,ie)!=ie;){if(me==(se<0?0:It.length-1))return null;ie+=se*It[me-(se<0?1:0)].size,me+=se}return{index:me,lineN:ie}}function Yr(N,j,ie){var se=N.display,me=se.view;me.length==0||j>=se.viewTo||ie<=se.viewFrom?(se.view=yi(N,j,ie),se.viewFrom=j):(se.viewFrom>j?se.view=yi(N,j,se.viewFrom).concat(se.view):se.viewFrom<j&&(se.view=se.view.slice(ho(N,j))),se.viewFrom=j,se.viewTo<ie?se.view=se.view.concat(yi(N,se.viewTo,ie)):se.viewTo>ie&&(se.view=se.view.slice(0,ho(N,ie)))),se.viewTo=ie}function Xn(N){for(var j=N.display.view,ie=0,se=0;se<j.length;se++){var me=j[se];!me.hidden&&(!me.node||me.changes)&&++ie}return ie}function hn(N){N.display.input.showSelection(N.display.input.prepareSelection())}function Xr(N,j){j===void 0&&(j=!0);for(var ie=N.doc,se={},me=se.cursors=document.createDocumentFragment(),ze=se.selection=document.createDocumentFragment(),It=0;It<ie.sel.ranges.length;It++){if(!j&&It==ie.sel.primIndex)continue;var ir=ie.sel.ranges[It];if(ir.from().line>=N.display.viewTo||ir.to().line<N.display.viewFrom)continue;var wr=ir.empty();(wr||N.options.showCursorWhenSelecting)&&ni(N,ir.head,me),wr||Wn(N,ir,ze)}return se}function ni(N,j,ie){var se=mo(N,j,"div",null,null,!N.options.singleCursorHeightPerLine),me=ie.appendChild(_("div","\xA0","CodeMirror-cursor"));if(me.style.left=se.left+"px",me.style.top=se.top+"px",me.style.height=Math.max(0,se.bottom-se.top)*N.options.cursorHeight+"px",se.other){var ze=ie.appendChild(_("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ze.style.display="",ze.style.left=se.other.left+"px",ze.style.top=se.other.top+"px",ze.style.height=(se.other.bottom-se.other.top)*.85+"px"}}function nn(N,j){return N.top-j.top||N.left-j.left}function Wn(N,j,ie){var se=N.display,me=N.doc,ze=document.createDocumentFragment(),It=Ri(N.display),ir=It.left,wr=Math.max(se.sizerWidth,Bi(N)-se.sizer.offsetLeft)-It.right,Or=me.direction=="ltr";function Bn($a,fo,es,Bo){fo<0&&(fo=0),fo=Math.round(fo),Bo=Math.round(Bo),ze.appendChild(_("div",null,"CodeMirror-selected","position: absolute; left: "+$a+`px;
top: `+fo+"px; width: "+(es==null?wr-$a:es)+`px;
height: `+(Bo-fo)+"px"))}function ti($a,fo,es){var Bo=Be(me,$a),Ss=Bo.text.length,Qs,gl;function il(Cl,zl){return $i(N,Gt($a,Cl),"div",Bo,zl)}function Fl(Cl,zl,Bl){var Qa=to(N,Bo,null,Cl),fl=zl=="ltr"==(Bl=="after")?"left":"right",dl=Bl=="after"?Qa.begin:Qa.end-(/\s/.test(Bo.text.charAt(Qa.end-1))?2:1);return il(dl,fl)[fl]}var Wl=pt(Bo,me.direction);return he(Wl,fo||0,es==null?Ss:es,function(Cl,zl,Bl,Qa){var fl=Bl=="ltr",dl=il(Cl,fl?"left":"right"),Al=il(zl-1,fl?"right":"left"),Bu=fo==null&&Cl==0,Fs=es==null&&zl==Ss,gs=Qa==0,lu=!Wl||Qa==Wl.length-1;if(Al.top-dl.top<=3){var jl=(Or?Bu:Fs)&&gs,Uu=(Or?Fs:Bu)&&lu,Eu=jl?ir:(fl?dl:Al).left,uu=Uu?wr:(fl?Al:dl).right;Bn(Eu,dl.top,uu-Eu,dl.bottom)}else{var ku,Xl,Cu,Vu;fl?(ku=Or&&Bu&&gs?ir:dl.left,Xl=Or?wr:Fl(Cl,Bl,"before"),Cu=Or?ir:Fl(zl,Bl,"after"),Vu=Or&&Fs&&lu?wr:Al.right):(ku=Or?Fl(Cl,Bl,"before"):ir,Xl=!Or&&Bu&&gs?wr:dl.right,Cu=!Or&&Fs&&lu?ir:Al.left,Vu=Or?Fl(zl,Bl,"after"):wr),Bn(ku,dl.top,Xl-ku,dl.bottom),dl.bottom<Al.top&&Bn(ir,dl.bottom,null,Al.top),Bn(Cu,Al.top,Vu-Cu,Al.bottom)}(!Qs||nn(dl,Qs)<0)&&(Qs=dl),nn(Al,Qs)<0&&(Qs=Al),(!gl||nn(dl,gl)<0)&&(gl=dl),nn(Al,gl)<0&&(gl=Al)}),{start:Qs,end:gl}}var Si=j.from(),Oi=j.to();if(Si.line==Oi.line)ti(Si.line,Si.ch,Oi.ch);else{var oa=Be(me,Si.line),Ta=Be(me,Oi.line),Ha=Ft(oa)==Ft(Ta),Ba=ti(Si.line,Si.ch,Ha?oa.text.length+1:null).end,Na=ti(Oi.line,Ha?0:null,Oi.ch).start;Ha&&(Ba.top<Na.top-2?(Bn(Ba.right,Ba.top,null,Ba.bottom),Bn(ir,Na.top,Na.left,Na.bottom)):Bn(Ba.right,Ba.top,Na.left-Ba.right,Ba.bottom)),Ba.bottom<Na.top&&Bn(ir,Ba.bottom,null,Na.top)}ie.appendChild(ze)}function si(N){if(!N.state.focused)return;var j=N.display;clearInterval(j.blinker);var ie=!0;j.cursorDiv.style.visibility="",N.options.cursorBlinkRate>0?j.blinker=setInterval(function(){N.hasFocus()||gi(N),j.cursorDiv.style.visibility=(ie=!ie)?"":"hidden"},N.options.cursorBlinkRate):N.options.cursorBlinkRate<0&&(j.cursorDiv.style.visibility="hidden")}function ui(N){N.state.focused||(N.display.input.focus(),Ei(N))}function ai(N){N.state.delayingBlurEvent=!0,setTimeout(function(){N.state.delayingBlurEvent&&(N.state.delayingBlurEvent=!1,gi(N))},100)}function Ei(N,j){if(N.state.delayingBlurEvent&&(N.state.delayingBlurEvent=!1),N.options.readOnly=="nocursor")return;N.state.focused||(wt(N,"focus",N,j),N.state.focused=!0,X(N.display.wrapper,"CodeMirror-focused"),!N.curOp&&N.display.selForContextMenu!=N.doc.sel&&(N.display.input.reset(),o&&setTimeout(function(){return N.display.input.reset(!0)},20)),N.display.input.receivedFocus()),si(N)}function gi(N,j){if(N.state.delayingBlurEvent)return;N.state.focused&&(wt(N,"blur",N,j),N.state.focused=!1,E(N.display.wrapper,"CodeMirror-focused")),clearInterval(N.display.blinker),setTimeout(function(){N.state.focused||(N.display.shift=!1)},150)}function Ti(N){for(var j=N.display,ie=j.lineDiv.offsetTop,se=0;se<j.view.length;se++){var me=j.view[se],ze=N.options.lineWrapping,It=void 0,ir=0;if(me.hidden)continue;if(d&&l<8){var wr=me.node.offsetTop+me.node.offsetHeight;It=wr-ie,ie=wr}else{var Or=me.node.getBoundingClientRect();It=Or.bottom-Or.top,!ze&&me.text.firstChild&&(ir=me.text.firstChild.getBoundingClientRect().right-Or.left-1)}var Bn=me.line.height-It;if((Bn>.005||Bn<-.005)&&(Ct(me.line,It),_i(me.line),me.rest))for(var ti=0;ti<me.rest.length;ti++)_i(me.rest[ti]);if(ir>N.display.sizerWidth){var Si=Math.ceil(ir/Mo(N.display));Si>N.display.maxLineLength&&(N.display.maxLineLength=Si,N.display.maxLine=me.line,N.display.maxLineChanged=!0)}}}function _i(N){if(N.widgets)for(var j=0;j<N.widgets.length;++j){var ie=N.widgets[j],se=ie.node.parentNode;se&&(ie.height=se.offsetHeight)}}function ia(N,j,ie){var se=ie&&ie.top!=null?Math.max(0,ie.top):N.scroller.scrollTop;se=Math.floor(se-Vn(N));var me=ie&&ie.bottom!=null?ie.bottom:se+N.wrapper.clientHeight,ze=Pr(j,se),It=Pr(j,me);if(ie&&ie.ensure){var ir=ie.ensure.from.line,wr=ie.ensure.to.line;ir<ze?(ze=ir,It=Pr(j,Dr(Be(j,ir))+N.wrapper.clientHeight)):Math.min(wr,j.lastLine())>=It&&(ze=Pr(j,Dr(Be(j,wr))-N.wrapper.clientHeight),It=wr)}return{from:ze,to:Math.max(It,ze+1)}}function Fi(N,j){if(Ht(N,"scrollCursorIntoView"))return;var ie=N.display,se=ie.sizer.getBoundingClientRect(),me=null;if(j.top+se.top<0?me=!0:j.bottom+se.top>(window.innerHeight||document.documentElement.clientHeight)&&(me=!1),me!=null&&!r){var ze=_("div","\u200B",null,`position: absolute;
top: `+(j.top-ie.viewOffset-Vn(N.display))+`px;
height: `+(j.bottom-j.top+vi(N)+ie.barHeight)+`px;
left: `+j.left+"px; width: "+Math.max(2,j.right-j.left)+"px;");N.display.lineSpace.appendChild(ze),ze.scrollIntoView(me),N.display.lineSpace.removeChild(ze)}}function fa(N,j,ie,se){se==null&&(se=0);var me;!N.options.lineWrapping&&j==ie&&(j=j.ch?Gt(j.line,j.sticky=="before"?j.ch-1:j.ch,"after"):j,ie=j.sticky=="before"?Gt(j.line,j.ch+1,"before"):j);for(var ze=0;ze<5;ze++){var It=!1,ir=mo(N,j),wr=!ie||ie==j?ir:mo(N,ie);me={left:Math.min(ir.left,wr.left),top:Math.min(ir.top,wr.top)-se,right:Math.max(ir.left,wr.left),bottom:Math.max(ir.bottom,wr.bottom)+se};var Or=Ca(N,me),Bn=N.doc.scrollTop,ti=N.doc.scrollLeft;if(Or.scrollTop!=null&&(Sa(N,Or.scrollTop),Math.abs(N.doc.scrollTop-Bn)>1&&(It=!0)),Or.scrollLeft!=null&&(Ka(N,Or.scrollLeft),Math.abs(N.doc.scrollLeft-ti)>1&&(It=!0)),!It)break}return me}function za(N,j){var ie=Ca(N,j);ie.scrollTop!=null&&Sa(N,ie.scrollTop),ie.scrollLeft!=null&&Ka(N,ie.scrollLeft)}function Ca(N,j){var ie=N.display,se=Io(N.display);j.top<0&&(j.top=0);var me=N.curOp&&N.curOp.scrollTop!=null?N.curOp.scrollTop:ie.scroller.scrollTop,ze=Gi(N),It={};j.bottom-j.top>ze&&(j.bottom=j.top+ze);var ir=N.doc.height+mi(ie),wr=j.top<se,Or=j.bottom>ir-se;if(j.top<me)It.scrollTop=wr?0:j.top;else if(j.bottom>me+ze){var Bn=Math.min(j.top,(Or?ir:j.bottom)-ze);Bn!=me&&(It.scrollTop=Bn)}var ti=N.options.fixedGutter?0:ie.gutters.offsetWidth,Si=N.curOp&&N.curOp.scrollLeft!=null?N.curOp.scrollLeft:ie.scroller.scrollLeft-ti,Oi=Bi(N)-ie.gutters.offsetWidth,oa=j.right-j.left>Oi;return oa&&(j.right=j.left+Oi),j.left<10?It.scrollLeft=0:j.left<Si?It.scrollLeft=Math.max(0,j.left+ti-(oa?0:10)):j.right>Oi+Si-3&&(It.scrollLeft=j.right+(oa?0:10)-Oi),It}function xa(N,j){if(j==null)return;Oo(N),N.curOp.scrollTop=(N.curOp.scrollTop==null?N.doc.scrollTop:N.curOp.scrollTop)+j}function Ma(N){Oo(N);var j=N.getCursor();N.curOp.scrollToPos={from:j,to:j,margin:N.options.cursorScrollMargin}}function Pa(N,j,ie){(j!=null||ie!=null)&&Oo(N),j!=null&&(N.curOp.scrollLeft=j),ie!=null&&(N.curOp.scrollTop=ie)}function Wo(N,j){Oo(N),N.curOp.scrollToPos=j}function Oo(N){var j=N.curOp.scrollToPos;if(j){N.curOp.scrollToPos=null;var ie=Eo(N,j.from),se=Eo(N,j.to);pa(N,ie,se,j.margin)}}function pa(N,j,ie,se){var me=Ca(N,{left:Math.min(j.left,ie.left),top:Math.min(j.top,ie.top)-se,right:Math.max(j.right,ie.right),bottom:Math.max(j.bottom,ie.bottom)+se});Pa(N,me.scrollLeft,me.scrollTop)}function Sa(N,j){if(Math.abs(N.doc.scrollTop-j)<2)return;S||Zs(N,{top:j}),Ea(N,j,!0),S&&Zs(N),fs(N,100)}function Ea(N,j,ie){if(j=Math.max(0,Math.min(N.display.scroller.scrollHeight-N.display.scroller.clientHeight,j)),N.display.scroller.scrollTop==j&&!ie)return;N.doc.scrollTop=j,N.display.scrollbars.setScrollTop(j),N.display.scroller.scrollTop!=j&&(N.display.scroller.scrollTop=j)}function Ka(N,j,ie,se){if(j=Math.max(0,Math.min(j,N.display.scroller.scrollWidth-N.display.scroller.clientWidth)),(ie?j==N.doc.scrollLeft:Math.abs(N.doc.scrollLeft-j)<2)&&!se)return;N.doc.scrollLeft=j,tl(N),N.display.scroller.scrollLeft!=j&&(N.display.scroller.scrollLeft=j),N.display.scrollbars.setScrollLeft(j)}function so(N){var j=N.display,ie=j.gutters.offsetWidth,se=Math.round(N.doc.height+mi(N.display));return{clientHeight:j.scroller.clientHeight,viewHeight:j.wrapper.clientHeight,scrollWidth:j.scroller.scrollWidth,clientWidth:j.scroller.clientWidth,viewWidth:j.wrapper.clientWidth,barLeft:N.options.fixedGutter?ie:0,docHeight:se,scrollHeight:se+vi(N)+j.barHeight,nativeBarWidth:j.nativeBarWidth,gutterWidth:ie}}var lo=function(j,ie,se){this.cm=se;var me=this.vert=_("div",[_("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),ze=this.horiz=_("div",[_("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");me.tabIndex=ze.tabIndex=-1,j(me),j(ze),Fe(me,"scroll",function(){me.clientHeight&&ie(me.scrollTop,"vertical")}),Fe(ze,"scroll",function(){ze.clientWidth&&ie(ze.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,d&&l<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};lo.prototype.update=function(N){var j=N.scrollWidth>N.clientWidth+1,ie=N.scrollHeight>N.clientHeight+1,se=N.nativeBarWidth;if(ie){this.vert.style.display="block",this.vert.style.bottom=j?se+"px":"0";var me=N.viewHeight-(j?se:0);this.vert.firstChild.style.height=Math.max(0,N.scrollHeight-N.clientHeight+me)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(j){this.horiz.style.display="block",this.horiz.style.right=ie?se+"px":"0",this.horiz.style.left=N.barLeft+"px";var ze=N.viewWidth-N.barLeft-(ie?se:0);this.horiz.firstChild.style.width=Math.max(0,N.scrollWidth-N.clientWidth+ze)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&N.clientHeight>0&&(se==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ie?se:0,bottom:j?se:0}},lo.prototype.setScrollLeft=function(N){this.horiz.scrollLeft!=N&&(this.horiz.scrollLeft=N),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},lo.prototype.setScrollTop=function(N){this.vert.scrollTop!=N&&(this.vert.scrollTop=N),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},lo.prototype.zeroWidthHack=function(){var N=g&&!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},lo.prototype.enableZeroWidthBar=function(N,j,ie){N.style.pointerEvents="auto";function se(){var me=N.getBoundingClientRect(),ze=ie=="vert"?document.elementFromPoint(me.right-1,(me.top+me.bottom)/2):document.elementFromPoint((me.right+me.left)/2,me.bottom-1);ze!=N?N.style.pointerEvents="none":j.set(1e3,se)}j.set(1e3,se)},lo.prototype.clear=function(){var N=this.horiz.parentNode;N.removeChild(this.horiz),N.removeChild(this.vert)};var wo=function(){};wo.prototype.update=function(){return{bottom:0,right:0}},wo.prototype.setScrollLeft=function(){},wo.prototype.setScrollTop=function(){},wo.prototype.clear=function(){};function No(N,j){j||(j=so(N));var ie=N.display.barWidth,se=N.display.barHeight;cs(N,j);for(var me=0;me<4&&ie!=N.display.barWidth||se!=N.display.barHeight;me++)ie!=N.display.barWidth&&N.options.lineWrapping&&Ti(N),cs(N,so(N)),ie=N.display.barWidth,se=N.display.barHeight}function cs(N,j){var ie=N.display,se=ie.scrollbars.update(j);ie.sizer.style.paddingRight=(ie.barWidth=se.right)+"px",ie.sizer.style.paddingBottom=(ie.barHeight=se.bottom)+"px",ie.heightForcer.style.borderBottom=se.bottom+"px solid transparent",se.right&&se.bottom?(ie.scrollbarFiller.style.display="block",ie.scrollbarFiller.style.height=se.bottom+"px",ie.scrollbarFiller.style.width=se.right+"px"):ie.scrollbarFiller.style.display="",se.bottom&&N.options.coverGutterNextToScrollbar&&N.options.fixedGutter?(ie.gutterFiller.style.display="block",ie.gutterFiller.style.height=se.bottom+"px",ie.gutterFiller.style.width=j.gutterWidth+"px"):ie.gutterFiller.style.display=""}var hs={native:lo,null:wo};function Bs(N){N.display.scrollbars&&(N.display.scrollbars.clear(),N.display.scrollbars.addClass&&E(N.display.wrapper,N.display.scrollbars.addClass)),N.display.scrollbars=new hs[N.options.scrollbarStyle](function(j){N.display.wrapper.insertBefore(j,N.display.scrollbarFiller),Fe(j,"mousedown",function(){N.state.focused&&setTimeout(function(){return N.display.input.focus()},0)}),j.setAttribute("cm-not-content","true")},function(j,ie){ie=="horizontal"?Ka(N,j):Sa(N,j)},N),N.display.scrollbars.addClass&&X(N.display.wrapper,N.display.scrollbars.addClass)}var rs=0;function ns(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:++rs},ji(N.curOp)}function co(N){var j=N.curOp;j&&ea(j,function(ie){for(var se=0;se<ie.ops.length;se++)ie.ops[se].cm.curOp=null;oo(ie)})}function oo(N){for(var j=N.ops,ie=0;ie<j.length;ie++)eo(j[ie]);for(var se=0;se<j.length;se++)ss(j[se]);for(var me=0;me<j.length;me++)xs(j[me]);for(var ze=0;ze<j.length;ze++)Po(j[ze]);for(var It=0;It<j.length;It++)el(j[It])}function eo(N){var j=N.cm,ie=j.display;yl(j),N.updateMaxLine&&Dn(j),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&&j.options.lineWrapping,N.update=N.mustUpdate&&new Ls(j,N.mustUpdate&&{top:N.scrollTop,ensure:N.scrollToPos},N.forceUpdate)}function ss(N){N.updatedDisplay=N.mustUpdate&&ps(N.cm,N.update)}function xs(N){var j=N.cm,ie=j.display;N.updatedDisplay&&Ti(j),N.barMeasure=so(j),ie.maxLineChanged&&!j.options.lineWrapping&&(N.adjustWidthTo=Hi(j,ie.maxLine,ie.maxLine.text.length).left+3,j.display.sizerWidth=N.adjustWidthTo,N.barMeasure.scrollWidth=Math.max(ie.scroller.clientWidth,ie.sizer.offsetLeft+N.adjustWidthTo+vi(j)+j.display.barWidth),N.maxScrollLeft=Math.max(0,ie.sizer.offsetLeft+N.adjustWidthTo-Bi(j))),(N.updatedDisplay||N.selectionChanged)&&(N.preparedSelection=ie.input.prepareSelection())}function Po(N){var j=N.cm;N.adjustWidthTo!=null&&(j.display.sizer.style.minWidth=N.adjustWidthTo+"px",N.maxScrollLeft<j.doc.scrollLeft&&Ka(j,Math.min(j.display.scroller.scrollLeft,N.maxScrollLeft),!0),j.display.maxLineChanged=!1);var ie=N.focus&&N.focus==M();N.preparedSelection&&j.display.input.showSelection(N.preparedSelection,ie),(N.updatedDisplay||N.startHeight!=j.doc.height)&&No(j,N.barMeasure),N.updatedDisplay&&Ds(j,N.barMeasure),N.selectionChanged&&si(j),j.state.focused&&N.updateInput&&j.display.input.reset(N.typing),ie&&ui(N.cm)}function el(N){var j=N.cm,ie=j.display,se=j.doc;if(N.updatedDisplay&&Ms(j,N.update),ie.wheelStartX!=null&&(N.scrollTop!=null||N.scrollLeft!=null||N.scrollToPos)&&(ie.wheelStartX=ie.wheelStartY=null),N.scrollTop!=null&&Ea(j,N.scrollTop,N.forceScroll),N.scrollLeft!=null&&Ka(j,N.scrollLeft,!0,!0),N.scrollToPos){var me=fa(j,Mt(se,N.scrollToPos.from),Mt(se,N.scrollToPos.to),N.scrollToPos.margin);Fi(j,me)}var ze=N.maybeHiddenMarkers,It=N.maybeUnhiddenMarkers;if(ze)for(var ir=0;ir<ze.length;++ir)ze[ir].lines.length||wt(ze[ir],"hide");if(It)for(var wr=0;wr<It.length;++wr)It[wr].lines.length&&wt(It[wr],"unhide");ie.wrapper.offsetHeight&&(se.scrollTop=j.display.scroller.scrollTop),N.changeObjs&&wt(j,"changes",j,N.changeObjs),N.update&&N.update.finish()}function zo(N,j){if(N.curOp)return j();ns(N);try{return j()}finally{co(N)}}function Jo(N,j){return function(){if(N.curOp)return j.apply(N,arguments);ns(N);try{return j.apply(N,arguments)}finally{co(N)}}}function ks(N){return function(){if(this.curOp)return N.apply(this,arguments);ns(this);try{return N.apply(this,arguments)}finally{co(this)}}}function as(N){return function(){var j=this.cm;if(!j||j.curOp)return N.apply(this,arguments);ns(j);try{return N.apply(this,arguments)}finally{co(j)}}}function fs(N,j){N.doc.highlightFrontier<N.display.viewTo&&N.state.highlight.set(j,W(Sn,N))}function Sn(N){var j=N.doc;if(j.highlightFrontier>=N.display.viewTo)return;var ie=+new Date+N.options.workTime,se=ri(N,j.highlightFrontier),me=[];j.iter(se.line,Math.min(j.first+j.size,N.display.viewTo+500),function(ze){if(se.line>=N.display.viewFrom){var It=ze.styles,ir=ze.text.length>N.options.maxHighlightLength?$t(j.mode,se.state):null,wr=dn(N,ze,se,!0);ir&&(se.state=ir),ze.styles=wr.styles;var Or=ze.styleClasses,Bn=wr.classes;Bn?ze.styleClasses=Bn:Or&&(ze.styleClasses=null);for(var ti=!It||It.length!=ze.styles.length||Or!=Bn&&(!Or||!Bn||Or.bgClass!=Bn.bgClass||Or.textClass!=Bn.textClass),Si=0;!ti&&Si<It.length;++Si)ti=It[Si]!=ze.styles[Si];ti&&me.push(se.line),ze.stateAfter=se.save(),se.nextLine()}else ze.text.length<=N.options.maxHighlightLength&&Zn(N,ze.text,se),ze.stateAfter=se.line%5==0?se.save():null,se.nextLine();if(+new Date>ie)return fs(N,N.options.workDelay),!0}),j.highlightFrontier=se.line,j.modeFrontier=Math.max(j.modeFrontier,se.line),me.length&&zo(N,function(){for(var ze=0;ze<me.length;ze++)mt(N,me[ze],"text")})}var Ls=function(j,ie,se){var me=j.display;this.viewport=ie,this.visible=ia(me,j.doc,ie),this.editorIsHidden=!me.wrapper.offsetWidth,this.wrapperHeight=me.wrapper.clientHeight,this.wrapperWidth=me.wrapper.clientWidth,this.oldDisplayWidth=Bi(j),this.force=se,this.dims=is(j),this.events=[]};Ls.prototype.signal=function(N,j){Tt(N,j)&&this.events.push(arguments)},Ls.prototype.finish=function(){for(var N=0;N<this.events.length;N++)wt.apply(null,this.events[N])};function yl(N){var j=N.display;!j.scrollbarsClipped&&j.scroller.offsetWidth&&(j.nativeBarWidth=j.scroller.offsetWidth-j.scroller.clientWidth,j.heightForcer.style.height=vi(N)+"px",j.sizer.style.marginBottom=-j.nativeBarWidth+"px",j.sizer.style.borderRightWidth=vi(N)+"px",j.scrollbarsClipped=!0)}function Ks(N){if(N.hasFocus())return null;var j=M();if(!j||!B(N.display.lineDiv,j))return null;var ie={activeElt:j};if(window.getSelection){var se=window.getSelection();se.anchorNode&&se.extend&&B(N.display.lineDiv,se.anchorNode)&&(ie.anchorNode=se.anchorNode,ie.anchorOffset=se.anchorOffset,ie.focusNode=se.focusNode,ie.focusOffset=se.focusOffset)}return ie}function Ws(N){if(!N||!N.activeElt||N.activeElt==M())return;if(N.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(N.activeElt.nodeName)&&N.anchorNode&&B(document.body,N.anchorNode)&&B(document.body,N.focusNode)){var j=window.getSelection(),ie=document.createRange();ie.setEnd(N.anchorNode,N.anchorOffset),ie.collapse(!1),j.removeAllRanges(),j.addRange(ie),j.extend(N.focusNode,N.focusOffset)}}function ps(N,j){var ie=N.display,se=N.doc;if(j.editorIsHidden)return Cr(N),!1;if(!j.force&&j.visible.from>=ie.viewFrom&&j.visible.to<=ie.viewTo&&(ie.updateLineNumbers==null||ie.updateLineNumbers>=ie.viewTo)&&ie.renderedView==ie.view&&Xn(N)==0)return!1;Us(N)&&(Cr(N),j.dims=is(N));var me=se.first+se.size,ze=Math.max(j.visible.from-N.options.viewportMargin,se.first),It=Math.min(me,j.visible.to+N.options.viewportMargin);ie.viewFrom<ze&&ze-ie.viewFrom<20&&(ze=Math.max(se.first,ie.viewFrom)),ie.viewTo>It&&ie.viewTo-It<20&&(It=Math.min(me,ie.viewTo)),$e&&(ze=Lt(N.doc,ze),It=cr(N.doc,It));var ir=ze!=ie.viewFrom||It!=ie.viewTo||ie.lastWrapHeight!=j.wrapperHeight||ie.lastWrapWidth!=j.wrapperWidth;Yr(N,ze,It),ie.viewOffset=Dr(Be(N.doc,ie.viewFrom)),N.display.mover.style.top=ie.viewOffset+"px";var wr=Xn(N);if(!ir&&wr==0&&!j.force&&ie.renderedView==ie.view&&(ie.updateLineNumbers==null||ie.updateLineNumbers>=ie.viewTo))return!1;var Or=Ks(N);return wr>4&&(ie.lineDiv.style.display="none"),zs(N,ie.updateLineNumbers,j.dims),wr>4&&(ie.lineDiv.style.display=""),ie.renderedView=ie.view,Ws(Or),C(ie.cursorDiv),C(ie.selectionDiv),ie.gutters.style.height=ie.sizer.style.minHeight=0,ir&&(ie.lastWrapHeight=j.wrapperHeight,ie.lastWrapWidth=j.wrapperWidth,fs(N,400)),ie.updateLineNumbers=null,!0}function Ms(N,j){for(var ie=j.viewport,se=!0;;se=!1){if(!se||!N.options.lineWrapping||j.oldDisplayWidth==Bi(N)){if(ie&&ie.top!=null&&(ie={top:Math.min(N.doc.height+mi(N.display)-Gi(N),ie.top)}),j.visible=ia(N.display,N.doc,ie),j.visible.from>=N.display.viewFrom&&j.visible.to<=N.display.viewTo)break}else se&&(j.visible=ia(N.display,N.doc,ie));if(!ps(N,j))break;Ti(N);var me=so(N);hn(N),No(N,me),Ds(N,me),j.force=!1}j.signal(N,"update",N),(N.display.viewFrom!=N.display.reportedViewFrom||N.display.viewTo!=N.display.reportedViewTo)&&(j.signal(N,"viewportChange",N,N.display.viewFrom,N.display.viewTo),N.display.reportedViewFrom=N.display.viewFrom,N.display.reportedViewTo=N.display.viewTo)}function Zs(N,j){var ie=new Ls(N,j);if(ps(N,ie)){Ti(N),Ms(N,ie);var se=so(N);hn(N),No(N,se),Ds(N,se),ie.finish()}}function zs(N,j,ie){var se=N.display,me=N.options.lineNumbers,ze=se.lineDiv,It=ze.firstChild;function ir(oa){var Ta=oa.nextSibling;return o&&g&&N.display.currentWheelTarget==oa?oa.style.display="none":oa.parentNode.removeChild(oa),Ta}for(var wr=se.view,Or=se.viewFrom,Bn=0;Bn<wr.length;Bn++){var ti=wr[Bn];if(!ti.hidden)if(!ti.node||ti.node.parentNode!=ze){var Si=Nr(N,ti,Or,ie);ze.insertBefore(Si,It)}else{for(;It!=ti.node;)It=ir(It);var Oi=me&&j!=null&&j<=Or&&ti.lineNumber;ti.changes&&(G(ti.changes,"gutter")>-1&&(Oi=!1),yn(N,ti,Or,ie)),Oi&&(C(ti.lineNumber),ti.lineNumber.appendChild(document.createTextNode(An(N.options,Or)))),It=ti.node.nextSibling}Or+=ti.size}for(;It;)It=ir(It)}function Es(N){var j=N.gutters.offsetWidth;N.sizer.style.marginLeft=j+"px"}function Ds(N,j){N.display.sizer.style.minHeight=j.docHeight+"px",N.display.heightForcer.style.top=j.docHeight+"px",N.display.gutters.style.height=j.docHeight+N.display.barHeight+vi(N)+"px"}function tl(N){var j=N.display,ie=j.view;if(!j.alignWidgets&&(!j.gutters.firstChild||!N.options.fixedGutter))return;for(var se=To(j)-j.scroller.scrollLeft+N.doc.scrollLeft,me=j.gutters.offsetWidth,ze=se+"px",It=0;It<ie.length;It++)if(!ie[It].hidden){N.options.fixedGutter&&(ie[It].gutter&&(ie[It].gutter.style.left=ze),ie[It].gutterBackground&&(ie[It].gutterBackground.style.left=ze));var ir=ie[It].alignable;if(ir)for(var wr=0;wr<ir.length;wr++)ir[wr].style.left=ze}N.options.fixedGutter&&(j.gutters.style.left=se+me+"px")}function Us(N){if(!N.options.lineNumbers)return!1;var j=N.doc,ie=An(N.options,j.first+j.size-1),se=N.display;if(ie.length!=se.lineNumChars){var me=se.measure.appendChild(_("div",[_("div",ie)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ze=me.firstChild.offsetWidth,It=me.offsetWidth-ze;return se.lineGutter.style.width="",se.lineNumInnerWidth=Math.max(ze,se.lineGutter.offsetWidth-It)+1,se.lineNumWidth=se.lineNumInnerWidth+It,se.lineNumChars=se.lineNumInnerWidth?ie.length:-1,se.lineGutter.style.width=se.lineNumWidth+"px",Es(N.display),!0}return!1}function Go(N,j){for(var ie=[],se=!1,me=0;me<N.length;me++){var ze=N[me],It=null;if(typeof ze!="string"&&(It=ze.style,ze=ze.className),ze=="CodeMirror-linenumbers")if(j)se=!0;else continue;ie.push({className:ze,style:It})}return j&&!se&&ie.push({className:"CodeMirror-linenumbers",style:null}),ie}function Do(N){var j=N.gutters,ie=N.gutterSpecs;C(j),N.lineGutter=null;for(var se=0;se<ie.length;++se){var me=ie[se],ze=me.className,It=me.style,ir=j.appendChild(_("div",null,"CodeMirror-gutter "+ze));It&&(ir.style.cssText=It),ze=="CodeMirror-linenumbers"&&(N.lineGutter=ir,ir.style.width=(N.lineNumWidth||1)+"px")}j.style.display=ie.length?"":"none",Es(N)}function Ts(N){Do(N.display),ja(N),tl(N)}function Ns(N,j,ie,se){var me=this;this.input=ie,me.scrollbarFiller=_("div",null,"CodeMirror-scrollbar-filler"),me.scrollbarFiller.setAttribute("cm-not-content","true"),me.gutterFiller=_("div",null,"CodeMirror-gutter-filler"),me.gutterFiller.setAttribute("cm-not-content","true"),me.lineDiv=F("div",null,"CodeMirror-code"),me.selectionDiv=_("div",null,null,"position: relative; z-index: 1"),me.cursorDiv=_("div",null,"CodeMirror-cursors"),me.measure=_("div",null,"CodeMirror-measure"),me.lineMeasure=_("div",null,"CodeMirror-measure"),me.lineSpace=F("div",[me.measure,me.lineMeasure,me.selectionDiv,me.cursorDiv,me.lineDiv],null,"position: relative; outline: none");var ze=F("div",[me.lineSpace],"CodeMirror-lines");me.mover=_("div",[ze],null,"position: relative"),me.sizer=_("div",[me.mover],"CodeMirror-sizer"),me.sizerWidth=null,me.heightForcer=_("div",null,null,"position: absolute; height: "+te+"px; width: 1px;"),me.gutters=_("div",null,"CodeMirror-gutters"),me.lineGutter=null,me.scroller=_("div",[me.sizer,me.heightForcer,me.gutters],"CodeMirror-scroll"),me.scroller.setAttribute("tabIndex","-1"),me.wrapper=_("div",[me.scrollbarFiller,me.gutterFiller,me.scroller],"CodeMirror"),d&&l<8&&(me.gutters.style.zIndex=-1,me.scroller.style.paddingRight=0),!o&&!(S&&h)&&(me.scroller.draggable=!0),N&&(N.appendChild?N.appendChild(me.wrapper):N(me.wrapper)),me.viewFrom=me.viewTo=j.first,me.reportedViewFrom=me.reportedViewTo=j.first,me.view=[],me.renderedView=null,me.externalMeasured=null,me.viewOffset=0,me.lastWrapHeight=me.lastWrapWidth=0,me.updateLineNumbers=null,me.nativeBarWidth=me.barHeight=me.barWidth=0,me.scrollbarsClipped=!1,me.lineNumWidth=me.lineNumInnerWidth=me.lineNumChars=null,me.alignWidgets=!1,me.cachedCharWidth=me.cachedTextHeight=me.cachedPaddingH=null,me.maxLine=null,me.maxLineLength=0,me.maxLineChanged=!1,me.wheelDX=me.wheelDY=me.wheelStartX=me.wheelStartY=null,me.shift=!1,me.selForContextMenu=null,me.activeTouch=null,me.gutterSpecs=Go(se.gutters,se.lineNumbers),Do(me),ie.init(me)}var Ao=0,jt=null;d?jt=-.53:S?jt=15:t?jt=-.7:e&&(jt=-1/3);function sr(N){var j=N.wheelDeltaX,ie=N.wheelDeltaY;return j==null&&N.detail&&N.axis==N.HORIZONTAL_AXIS&&(j=N.detail),ie==null&&N.detail&&N.axis==N.VERTICAL_AXIS?ie=N.detail:ie==null&&(ie=N.wheelDelta),{x:j,y:ie}}function _n(N){var j=sr(N);return j.x*=jt,j.y*=jt,j}function hi(N,j){var ie=sr(j),se=ie.x,me=ie.y,ze=N.display,It=ze.scroller,ir=It.scrollWidth>It.clientWidth,wr=It.scrollHeight>It.clientHeight;if(!(se&&ir||me&&wr))return;if(me&&g&&o){e:for(var Or=j.target,Bn=ze.view;Or!=It;Or=Or.parentNode)for(var ti=0;ti<Bn.length;ti++)if(Bn[ti].node==Or){N.display.currentWheelTarget=Or;break e}}if(se&&!S&&!a&&jt!=null){me&&wr&&Sa(N,Math.max(0,It.scrollTop+me*jt)),Ka(N,Math.max(0,It.scrollLeft+se*jt)),(!me||me&&wr)&&Ke(j),ze.wheelStartX=null;return}if(me&&jt!=null){var Si=me*jt,Oi=N.doc.scrollTop,oa=Oi+ze.wrapper.clientHeight;Si<0?Oi=Math.max(0,Oi+Si-50):oa=Math.min(N.doc.height,oa+Si+50),Zs(N,{top:Oi,bottom:oa})}Ao<20&&(ze.wheelStartX==null?(ze.wheelStartX=It.scrollLeft,ze.wheelStartY=It.scrollTop,ze.wheelDX=se,ze.wheelDY=me,setTimeout(function(){if(ze.wheelStartX==null)return;var Ta=It.scrollLeft-ze.wheelStartX,Ha=It.scrollTop-ze.wheelStartY,Ba=Ha&&ze.wheelDY&&Ha/ze.wheelDY||Ta&&ze.wheelDX&&Ta/ze.wheelDX;if(ze.wheelStartX=ze.wheelStartY=null,!Ba)return;jt=(jt*Ao+Ba)/(Ao+1),++Ao},200)):(ze.wheelDX+=se,ze.wheelDY+=me))}var Nt=function(j,ie){this.ranges=j,this.primIndex=ie};Nt.prototype.primary=function(){return this.ranges[this.primIndex]},Nt.prototype.equals=function(N){if(N==this)return!0;if(N.primIndex!=this.primIndex||N.ranges.length!=this.ranges.length)return!1;for(var j=0;j<this.ranges.length;j++){var ie=this.ranges[j],se=N.ranges[j];if(!bt(ie.anchor,se.anchor)||!bt(ie.head,se.head))return!1}return!0},Nt.prototype.deepCopy=function(){for(var N=[],j=0;j<this.ranges.length;j++)N[j]=new ce(fr(this.ranges[j].anchor),fr(this.ranges[j].head));return new Nt(N,this.primIndex)},Nt.prototype.somethingSelected=function(){for(var N=0;N<this.ranges.length;N++)if(!this.ranges[N].empty())return!0;return!1},Nt.prototype.contains=function(N,j){j||(j=N);for(var ie=0;ie<this.ranges.length;ie++){var se=this.ranges[ie];if(vt(j,se.from())>=0&&vt(N,se.to())<=0)return ie}return-1};var ce=function(j,ie){this.anchor=j,this.head=ie};ce.prototype.from=function(){return Ut(this.anchor,this.head)},ce.prototype.to=function(){return Jt(this.anchor,this.head)},ce.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Ee(N,j,ie){var se=N&&N.options.selectionsMayTouch,me=j[ie];j.sort(function(Si,Oi){return vt(Si.from(),Oi.from())}),ie=G(j,me);for(var ze=1;ze<j.length;ze++){var It=j[ze],ir=j[ze-1],wr=vt(ir.to(),It.from());if(se&&!It.empty()?wr>0:wr>=0){var Or=Ut(ir.from(),It.from()),Bn=Jt(ir.to(),It.to()),ti=ir.empty()?It.from()==It.head:ir.from()==ir.head;ze<=ie&&--ie,j.splice(--ze,2,new ce(ti?Bn:Or,ti?Or:Bn))}}return new Nt(j,ie)}function Le(N,j){return new Nt([new ce(N,j||N)],0)}function Qe(N){return N.text?Gt(N.from.line+N.text.length-1,Ve(N.text).length+(N.text.length==1?N.from.ch:0)):N.to}function Rt(N,j){if(vt(N,j.from)<0)return N;if(vt(N,j.to)<=0)return Qe(j);var ie=N.line+j.text.length-(j.to.line-j.from.line)-1,se=N.ch;return N.line==j.to.line&&(se+=Qe(j).ch-j.to.ch),Gt(ie,se)}function lr(N,j){for(var ie=[],se=0;se<N.sel.ranges.length;se++){var me=N.sel.ranges[se];ie.push(new ce(Rt(me.anchor,j),Rt(me.head,j)))}return Ee(N.cm,ie,N.sel.primIndex)}function Qr(N,j,ie){return N.line==j.line?Gt(ie.line,N.ch-j.ch+ie.ch):Gt(ie.line+(N.line-j.line),N.ch)}function pn(N,j,ie){for(var se=[],me=Gt(N.first,0),ze=me,It=0;It<j.length;It++){var ir=j[It],wr=Qr(ir.from,me,ze),Or=Qr(Qe(ir),me,ze);if(me=ir.to,ze=Or,ie=="around"){var Bn=N.sel.ranges[It],ti=vt(Bn.head,Bn.anchor)<0;se[It]=new ce(ti?Or:wr,ti?wr:Or)}else se[It]=new ce(wr,wr)}return new Nt(se,N.sel.primIndex)}function In(N){N.doc.mode=Vi(N.options,N.doc.modeOption),li(N)}function li(N){N.doc.iter(function(j){j.stateAfter&&(j.stateAfter=null),j.styles&&(j.styles=null)}),N.doc.modeFrontier=N.doc.highlightFrontier=N.doc.first,fs(N,100),N.state.modeGen++,N.curOp&&ja(N)}function bi(N,j){return j.from.ch==0&&j.to.ch==0&&Ve(j.text)==""&&(!N.cm||N.cm.options.wholeLineUpdateBefore)}function Ai(N,j,ie,se){function me(Na){return ie?ie[Na]:null}function ze(Na,$a,fo){mn(Na,$a,fo,se),kr(Na,"change",Na,j)}function It(Na,$a){for(var fo=[],es=Na;es<$a;++es)fo.push(new di(Or[es],me(es),se));return fo}var ir=j.from,wr=j.to,Or=j.text,Bn=Be(N,ir.line),ti=Be(N,wr.line),Si=Ve(Or),Oi=me(Or.length-1),oa=wr.line-ir.line;if(j.full)N.insert(0,It(0,Or.length)),N.remove(Or.length,N.size-Or.length);else if(bi(N,j)){var Ta=It(0,Or.length-1);ze(ti,ti.text,Oi),oa&&N.remove(ir.line,oa),Ta.length&&N.insert(ir.line,Ta)}else if(Bn==ti)if(Or.length==1)ze(Bn,Bn.text.slice(0,ir.ch)+Si+Bn.text.slice(wr.ch),Oi);else{var Ha=It(1,Or.length-1);Ha.push(new di(Si+Bn.text.slice(wr.ch),Oi,se)),ze(Bn,Bn.text.slice(0,ir.ch)+Or[0],me(0)),N.insert(ir.line+1,Ha)}else if(Or.length==1)ze(Bn,Bn.text.slice(0,ir.ch)+Or[0]+ti.text.slice(wr.ch),me(0)),N.remove(ir.line+1,oa);else{ze(Bn,Bn.text.slice(0,ir.ch)+Or[0],me(0)),ze(ti,Si+ti.text.slice(wr.ch),Oi);var Ba=It(1,Or.length-1);oa>1&&N.remove(ir.line+1,oa-1),N.insert(ir.line+1,Ba)}kr(N,"change",N,j)}function Yi(N,j,ie){function se(me,ze,It){if(me.linked)for(var ir=0;ir<me.linked.length;++ir){var wr=me.linked[ir];if(wr.doc==ze)continue;var Or=It&&wr.sharedHist;if(ie&&!Or)continue;j(wr.doc,Or),se(wr.doc,me,Or)}}se(N,null,!0)}function ua(N,j){if(j.cm)throw new Error("This document is already in use.");N.doc=j,j.cm=N,Vo(N),In(N),Va(N),N.options.lineWrapping||Dn(N),N.options.mode=j.modeOption,ja(N)}function Va(N){(N.doc.direction=="rtl"?X:E)(N.display.lineDiv,"CodeMirror-rtl")}function ro(N){zo(N,function(){Va(N),ja(N)})}function So(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 Ro(N,j){var ie={from:fr(j.from),to:Qe(j),text:at(N,j.from,j.to)};return As(N,ie,j.from.line,j.to.line+1),Yi(N,function(se){return As(se,ie,j.from.line,j.to.line+1)},!0),ie}function jo(N){for(;N.length;){var j=Ve(N);if(j.ranges)N.pop();else break}}function Cs(N,j){if(j)return jo(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 vs(N,j,ie,se){var me=N.history;me.undone.length=0;var ze=+new Date,It,ir;if((me.lastOp==se||me.lastOrigin==j.origin&&j.origin&&(j.origin.charAt(0)=="+"&&me.lastModTime>ze-(N.cm?N.cm.options.historyEventDelay:500)||j.origin.charAt(0)=="*"))&&(It=Cs(me,me.lastOp==se)))ir=Ve(It.changes),vt(j.from,j.to)==0&&vt(j.from,ir.to)==0?ir.to=Qe(j):It.changes.push(Ro(N,j));else{var wr=Ve(me.done);for((!wr||!wr.ranges)&&yo(N.sel,me.done),It={changes:[Ro(N,j)],generation:me.generation},me.done.push(It);me.done.length>me.undoDepth;)me.done.shift(),me.done[0].ranges||me.done.shift()}me.done.push(ie),me.generation=++me.maxGeneration,me.lastModTime=me.lastSelTime=ze,me.lastOp=me.lastSelOp=se,me.lastOrigin=me.lastSelOrigin=j.origin,ir||wt(N,"historyAdded")}function os(N,j,ie,se){var me=j.charAt(0);return me=="*"||me=="+"&&ie.ranges.length==se.ranges.length&&ie.somethingSelected()==se.somethingSelected()&&new Date-N.history.lastSelTime<=(N.cm?N.cm.options.historyEventDelay:500)}function Fo(N,j,ie,se){var me=N.history,ze=se&&se.origin;ie==me.lastSelOp||ze&&me.lastSelOrigin==ze&&(me.lastModTime==me.lastSelTime&&me.lastOrigin==ze||os(N,ze,Ve(me.done),j))?me.done[me.done.length-1]=j:yo(j,me.done),me.lastSelTime=+new Date,me.lastSelOrigin=ze,me.lastSelOp=ie,se&&se.clearRedo!==!1&&jo(me.undone)}function yo(N,j){var ie=Ve(j);ie&&ie.ranges&&ie.equals(N)||j.push(N)}function As(N,j,ie,se){var me=j["spans_"+N.id],ze=0;N.iter(Math.max(N.first,ie),Math.min(N.first+N.size,se),function(It){It.markedSpans&&((me||(me=j["spans_"+N.id]={}))[ze]=It.markedSpans),++ze})}function $s(N){if(!N)return null;for(var j,ie=0;ie<N.length;++ie)N[ie].marker.explicitlyCleared?j||(j=N.slice(0,ie)):j&&j.push(N[ie]);return j?j.length?j:null:N}function ys(N,j){var ie=j["spans_"+N.id];if(!ie)return null;for(var se=[],me=0;me<j.text.length;++me)se.push($s(ie[me]));return se}function Fa(N,j){var ie=ys(N,j),se=Gn(N,j);if(!ie)return se;if(!se)return ie;for(var me=0;me<ie.length;++me){var ze=ie[me],It=se[me];if(ze&&It){e:for(var ir=0;ir<It.length;++ir){for(var wr=It[ir],Or=0;Or<ze.length;++Or)if(ze[Or].marker==wr.marker)continue e;ze.push(wr)}}else It&&(ie[me]=It)}return ie}function ml(N,j,ie){for(var se=[],me=0;me<N.length;++me){var ze=N[me];if(ze.ranges){se.push(ie?Nt.prototype.deepCopy.call(ze):ze);continue}var It=ze.changes,ir=[];se.push({changes:ir});for(var wr=0;wr<It.length;++wr){var Or=It[wr],Bn=void 0;if(ir.push({from:Or.from,to:Or.to,text:Or.text}),j)for(var ti in Or)(Bn=ti.match(/^spans_(\d+)$/))&&(G(j,Number(Bn[1]))>-1&&(Ve(ir)[ti]=Or[ti],delete Or[ti]))}}return se}function cl(N,j,ie,se){if(se){var me=N.anchor;if(ie){var ze=vt(j,me)<0;ze!=vt(ie,me)<0?(me=j,j=ie):ze!=vt(j,ie)<0&&(j=ie)}return new ce(me,j)}else return new ce(ie||j,j)}function Ps(N,j,ie,se,me){me==null&&(me=N.cm&&(N.cm.display.shift||N.extend)),Os(N,new Nt([cl(N.sel.primary(),j,ie,me)],0),se)}function ws(N,j,ie){for(var se=[],me=N.cm&&(N.cm.display.shift||N.extend),ze=0;ze<N.sel.ranges.length;ze++)se[ze]=cl(N.sel.ranges[ze],j[ze],null,me);var It=Ee(N.cm,se,N.sel.primIndex);Os(N,It,ie)}function Ys(N,j,ie,se){var me=N.sel.ranges.slice(0);me[j]=ie,Os(N,Ee(N.cm,me,N.sel.primIndex),se)}function Vl(N,j,ie,se){Os(N,Le(j,ie),se)}function Nl(N,j,ie){var se={ranges:j.ranges,update:function(ze){this.ranges=[];for(var It=0;It<ze.length;It++)this.ranges[It]=new ce(Mt(N,ze[It].anchor),Mt(N,ze[It].head))},origin:ie&&ie.origin};return wt(N,"beforeSelectionChange",N,se),N.cm&&wt(N.cm,"beforeSelectionChange",N.cm,se),se.ranges!=j.ranges?Ee(N.cm,se.ranges,se.ranges.length-1):j}function hl(N,j,ie){var se=N.history.done,me=Ve(se);me&&me.ranges?(se[se.length-1]=j,Vs(N,j,ie)):Os(N,j,ie)}function Os(N,j,ie){Vs(N,j,ie),Fo(N,N.sel,N.cm?N.cm.curOp.id:NaN,ie)}function Vs(N,j,ie){(Tt(N,"beforeSelectionChange")||N.cm&&Tt(N.cm,"beforeSelectionChange"))&&(j=Nl(N,j,ie));var se=ie&&ie.bias||(vt(j.primary().head,N.sel.primary().head)<0?-1:1);_l(N,Ho(N,j,se,!0)),!(ie&&ie.scroll===!1)&&N.cm&&Ma(N.cm)}function _l(N,j){if(j.equals(N.sel))return;N.sel=j,N.cm&&(N.cm.curOp.updateInput=1,N.cm.curOp.selectionChanged=!0,Dt(N.cm)),kr(N,"cursorActivity",N)}function ol(N){_l(N,Ho(N,N.sel,null,!1))}function Ho(N,j,ie,se){for(var me,ze=0;ze<j.ranges.length;ze++){var It=j.ranges[ze],ir=j.ranges.length==N.sel.ranges.length&&N.sel.ranges[ze],wr=$o(N,It.anchor,ir&&ir.anchor,ie,se),Or=$o(N,It.head,ir&&ir.head,ie,se);(me||wr!=It.anchor||Or!=It.head)&&(me||(me=j.ranges.slice(0,ze)),me[ze]=new ce(wr,Or))}return me?Ee(N.cm,me,j.primIndex):j}function vo(N,j,ie,se,me){var ze=Be(N,j.line);if(ze.markedSpans)for(var It=0;It<ze.markedSpans.length;++It){var ir=ze.markedSpans[It],wr=ir.marker,Or="selectLeft"in wr?!wr.selectLeft:wr.inclusiveLeft,Bn="selectRight"in wr?!wr.selectRight:wr.inclusiveRight;if((ir.from==null||(Or?ir.from<=j.ch:ir.from<j.ch))&&(ir.to==null||(Bn?ir.to>=j.ch:ir.to>j.ch))){if(me&&(wt(wr,"beforeCursorEnter"),wr.explicitlyCleared))if(ze.markedSpans){--It;continue}else break;if(!wr.atomic)continue;if(ie){var ti=wr.find(se<0?1:-1),Si=void 0;if((se<0?Bn:Or)&&(ti=ms(N,ti,-se,ti&&ti.line==j.line?ze:null)),ti&&ti.line==j.line&&(Si=vt(ti,ie))&&(se<0?Si<0:Si>0))return vo(N,ti,j,se,me)}var Oi=wr.find(se<0?-1:1);return(se<0?Or:Bn)&&(Oi=ms(N,Oi,se,Oi.line==j.line?ze:null)),Oi?vo(N,Oi,j,se,me):null}}return j}function $o(N,j,ie,se,me){var ze=se||1,It=vo(N,j,ie,ze,me)||!me&&vo(N,j,ie,ze,!0)||vo(N,j,ie,-ze,me)||!me&&vo(N,j,ie,-ze,!0);return It||(N.cantEdit=!0,Gt(N.first,0))}function ms(N,j,ie,se){return ie<0&&j.ch==0?j.line>N.first?Mt(N,Gt(j.line-1)):null:ie>0&&j.ch==(se||Be(N,j.line)).text.length?j.line<N.first+N.size-1?Gt(j.line+1,0):null:new Gt(j.line,j.ch+ie)}function _s(N){N.setSelection(Gt(N.firstLine(),0),Gt(N.lastLine()),le)}function qo(N,j,ie){var se={canceled:!1,from:j.from,to:j.to,text:j.text,origin:j.origin,cancel:function(){return se.canceled=!0}};return ie&&(se.update=function(me,ze,It,ir){me&&(se.from=Mt(N,me)),ze&&(se.to=Mt(N,ze)),It&&(se.text=It),ir!==void 0&&(se.origin=ir)}),wt(N,"beforeChange",N,se),N.cm&&wt(N.cm,"beforeChange",N.cm,se),se.canceled?(N.cm&&(N.cm.curOp.updateInput=2),null):{from:se.from,to:se.to,text:se.text,origin:se.origin}}function Is(N,j,ie){if(N.cm){if(!N.cm.curOp)return Jo(N.cm,Is)(N,j,ie);if(N.cm.state.suppressEdits)return}if((Tt(N,"beforeChange")||N.cm&&Tt(N.cm,"beforeChange"))&&(j=qo(N,j,!0),!j))return;var se=nt&&!ie&&Rn(N,j.from,j.to);if(se)for(var me=se.length-1;me>=0;--me)Rs(N,{from:se[me].from,to:se[me].to,text:me?[""]:j.text,origin:j.origin});else Rs(N,j)}function Rs(N,j){if(j.text.length==1&&j.text[0]==""&&vt(j.from,j.to)==0)return;var ie=lr(N,j);vs(N,j,ie,N.cm?N.cm.curOp.id:NaN),Tl(N,j,ie,Gn(N,j));var se=[];Yi(N,function(me,ze){!ze&&G(se,me.history)==-1&&(sl(me.history,j),se.push(me.history)),Tl(me,j,null,Gn(me,j))})}function nl(N,j,ie){var se=N.cm&&N.cm.state.suppressEdits;if(se&&!ie)return;for(var me=N.history,ze,It=N.sel,ir=j=="undo"?me.done:me.undone,wr=j=="undo"?me.undone:me.done,Or=0;Or<ir.length&&!(ze=ir[Or],ie?ze.ranges&&!ze.equals(N.sel):!ze.ranges);Or++);if(Or==ir.length)return;for(me.lastOrigin=me.lastSelOrigin=null;;)if(ze=ir.pop(),ze.ranges){if(yo(ze,wr),ie&&!ze.equals(N.sel)){Os(N,ze,{clearRedo:!1});return}It=ze}else if(se){ir.push(ze);return}else break;var Bn=[];yo(It,wr),wr.push({changes:Bn,generation:me.generation}),me.generation=ze.generation||++me.maxGeneration;for(var ti=Tt(N,"beforeChange")||N.cm&&Tt(N.cm,"beforeChange"),Si=function(Ha){var Ba=ze.changes[Ha];if(Ba.origin=j,ti&&!qo(N,Ba,!1))return ir.length=0,{};Bn.push(Ro(N,Ba));var Na=Ha?lr(N,Ba):Ve(ir);Tl(N,Ba,Na,Fa(N,Ba)),!Ha&&N.cm&&N.cm.scrollIntoView({from:Ba.from,to:Qe(Ba)});var $a=[];Yi(N,function(fo,es){!es&&G($a,fo.history)==-1&&(sl(fo.history,Ba),$a.push(fo.history)),Tl(fo,Ba,null,Fa(fo,Ba))})},Oi=ze.changes.length-1;Oi>=0;--Oi){var oa=Si(Oi);if(oa)return oa.v}}function Il(N,j){if(j==0)return;if(N.first+=j,N.sel=new Nt(ct(N.sel.ranges,function(me){return new ce(Gt(me.anchor.line+j,me.anchor.ch),Gt(me.head.line+j,me.head.ch))}),N.sel.primIndex),N.cm){ja(N.cm,N.first,N.first-j,j);for(var ie=N.cm.display,se=ie.viewFrom;se<ie.viewTo;se++)mt(N.cm,se,"gutter")}}function Tl(N,j,ie,se){if(N.cm&&!N.cm.curOp)return Jo(N.cm,Tl)(N,j,ie,se);if(j.to.line<N.first){Il(N,j.text.length-1-(j.to.line-j.from.line));return}if(j.from.line>N.lastLine())return;if(j.from.line<N.first){var me=j.text.length-1-(N.first-j.from.line);Il(N,me),j={from:Gt(N.first,0),to:Gt(j.to.line+me,j.to.ch),text:[Ve(j.text)],origin:j.origin}}var ze=N.lastLine();j.to.line>ze&&(j={from:j.from,to:Gt(ze,Be(N,ze).text.length),text:[j.text[0]],origin:j.origin}),j.removed=at(N,j.from,j.to),ie||(ie=lr(N,j)),N.cm?Ul(N.cm,j,se):Ai(N,j,se),Vs(N,ie,le),N.cantEdit&&$o(N,Gt(N.firstLine(),0))&&(N.cantEdit=!1)}function Ul(N,j,ie){var se=N.doc,me=N.display,ze=j.from,It=j.to,ir=!1,wr=ze.line;N.options.lineWrapping||(wr=Yt(Ft(Be(se,ze.line))),se.iter(wr,It.line+1,function(Oi){if(Oi==me.maxLine)return ir=!0,!0})),se.sel.contains(j.from,j.to)>-1&&Dt(N),Ai(se,j,ie,Zo(N)),N.options.lineWrapping||(se.iter(wr,ze.line+j.text.length,function(Oi){var oa=Kn(Oi);oa>me.maxLineLength&&(me.maxLine=Oi,me.maxLineLength=oa,me.maxLineChanged=!0,ir=!1)}),ir&&(N.curOp.updateMaxLine=!0)),Ge(se,ze.line),fs(N,400);var Or=j.text.length-(It.line-ze.line)-1;j.full?ja(N):ze.line==It.line&&j.text.length==1&&!bi(N.doc,j)?mt(N,ze.line,"text"):ja(N,ze.line,It.line+1,Or);var Bn=Tt(N,"changes"),ti=Tt(N,"change");if(ti||Bn){var Si={from:ze,to:It,text:j.text,removed:j.removed,origin:j.origin};ti&&kr(N,"change",N,Si),Bn&&(N.curOp.changeObjs||(N.curOp.changeObjs=[])).push(Si)}N.display.selForContextMenu=null}function Dl(N,j,ie,se,me){var ze;se||(se=ie),vt(se,ie)<0&&(ze=[se,ie],ie=ze[0],se=ze[1]),typeof j=="string"&&(j=N.splitLines(j)),Is(N,{from:ie,to:se,text:j,origin:me})}function Rl(N,j,ie,se){ie<N.line?N.line+=se:j<N.line&&(N.line=j,N.ch=0)}function Hl(N,j,ie,se){for(var me=0;me<N.length;++me){var ze=N[me],It=!0;if(ze.ranges){ze.copied||(ze=N[me]=ze.deepCopy(),ze.copied=!0);for(var ir=0;ir<ze.ranges.length;ir++)Rl(ze.ranges[ir].anchor,j,ie,se),Rl(ze.ranges[ir].head,j,ie,se);continue}for(var wr=0;wr<ze.changes.length;++wr){var Or=ze.changes[wr];if(ie<Or.from.line)Or.from=Gt(Or.from.line+se,Or.from.ch),Or.to=Gt(Or.to.line+se,Or.to.ch);else if(j<=Or.to.line){It=!1;break}}It||(N.splice(0,me+1),me=0)}}function sl(N,j){var ie=j.from.line,se=j.to.line,me=j.text.length-(se-ie)-1;Hl(N.done,ie,se,me),Hl(N.undone,ie,se,me)}function Gs(N,j,ie,se){var me=j,ze=j;return typeof j=="number"?ze=Be(N,er(N,j)):me=Yt(j),me==null?null:(se(ze,me)&&N.cm&&mt(N.cm,me,ie),ze)}function ll(N){this.lines=N,this.parent=null;for(var j=0,ie=0;ie<N.length;++ie)N[ie].parent=this,j+=N[ie].height;this.height=j}ll.prototype={chunkSize:function(){return this.lines.length},removeInner:function(j,ie){for(var se=j,me=j+ie;se<me;++se){var ze=this.lines[se];this.height-=ze.height,Ur(ze),kr(ze,"delete")}this.lines.splice(j,ie)},collapse:function(j){j.push.apply(j,this.lines)},insertInner:function(j,ie,se){this.height+=se,this.lines=this.lines.slice(0,j).concat(ie).concat(this.lines.slice(j));for(var me=0;me<ie.length;++me)ie[me].parent=this},iterN:function(j,ie,se){for(var me=j+ie;j<me;++j)if(se(this.lines[j]))return!0}};function Xs(N){this.children=N;for(var j=0,ie=0,se=0;se<N.length;++se){var me=N[se];j+=me.chunkSize(),ie+=me.height,me.parent=this}this.size=j,this.height=ie,this.parent=null}Xs.prototype={chunkSize:function(){return this.size},removeInner:function(j,ie){this.size-=ie;for(var se=0;se<this.children.length;++se){var me=this.children[se],ze=me.chunkSize();if(j<ze){var It=Math.min(ie,ze-j),ir=me.height;if(me.removeInner(j,It),this.height-=ir-me.height,ze==It&&(this.children.splice(se--,1),me.parent=null),(ie-=It)==0)break;j=0}else j-=ze}if(this.size-ie<25&&(this.children.length>1||!(this.children[0]instanceof ll))){var wr=[];this.collapse(wr),this.children=[new ll(wr)],this.children[0].parent=this}},collapse:function(j){for(var ie=0;ie<this.children.length;++ie)this.children[ie].collapse(j)},insertInner:function(j,ie,se){this.size+=ie.length,this.height+=se;for(var me=0;me<this.children.length;++me){var ze=this.children[me],It=ze.chunkSize();if(j<=It){if(ze.insertInner(j,ie,se),ze.lines&&ze.lines.length>50){for(var ir=ze.lines.length%25+25,wr=ir;wr<ze.lines.length;){var Or=new ll(ze.lines.slice(wr,wr+=25));ze.height-=Or.height,this.children.splice(++me,0,Or),Or.parent=this}ze.lines=ze.lines.slice(0,ir),this.maybeSpill()}break}j-=It}},maybeSpill:function(){if(this.children.length<=10)return;var j=this;do{var ie=j.children.splice(j.children.length-5,5),se=new Xs(ie);if(j.parent){j.size-=se.size,j.height-=se.height;var ze=G(j.parent.children,j);j.parent.children.splice(ze+1,0,se)}else{var me=new Xs(j.children);me.parent=j,j.children=[me,se],j=me}se.parent=j.parent}while(j.children.length>10);j.parent.maybeSpill()},iterN:function(j,ie,se){for(var me=0;me<this.children.length;++me){var ze=this.children[me],It=ze.chunkSize();if(j<It){var ir=Math.min(ie,It-j);if(ze.iterN(j,ir,se))return!0;if((ie-=ir)==0)break;j=0}else j-=It}}};var bl=function(j,ie,se){if(se)for(var me in se)se.hasOwnProperty(me)&&(this[me]=se[me]);this.doc=j,this.node=ie};bl.prototype.clear=function(){var N=this.doc.cm,j=this.line.widgets,ie=this.line,se=Yt(ie);if(se==null||!j)return;for(var me=0;me<j.length;++me)j[me]==this&&j.splice(me--,1);j.length||(ie.widgets=null);var ze=wn(this);Ct(ie,Math.max(0,ie.height-ze)),N&&(zo(N,function(){kl(N,ie,-ze),mt(N,se,"widget")}),kr(N,"lineWidgetCleared",N,this,se))},bl.prototype.changed=function(){var N=this,j=this.height,ie=this.doc.cm,se=this.line;this.height=null;var me=wn(this)-j;if(!me)return;vr(this.doc,se)||Ct(se,se.height+me),ie&&zo(ie,function(){ie.curOp.forceUpdate=!0,kl(ie,se,me),kr(ie,"lineWidgetChanged",ie,N,Yt(se))})},Bt(bl);function kl(N,j,ie){Dr(j)<(N.curOp&&N.curOp.scrollTop||N.doc.scrollTop)&&xa(N,ie)}function Yl(N,j,ie,se){var me=new bl(N,ie,se),ze=N.cm;return ze&&me.noHScroll&&(ze.display.alignWidgets=!0),Gs(N,j,"widget",function(It){var ir=It.widgets||(It.widgets=[]);if(me.insertAt==null?ir.push(me):ir.splice(Math.min(ir.length-1,Math.max(0,me.insertAt)),0,me),me.line=It,ze&&!vr(N,It)){var wr=Dr(It)<N.scrollTop;Ct(It,It.height+wn(me)),wr&&xa(ze,me.height),ze.curOp.forceUpdate=!0}return!0}),ze&&kr(ze,"lineWidgetAdded",ze,me,typeof j=="number"?j:Yt(j)),me}var Zl=0,wl=function(j,ie){this.lines=[],this.type=ie,this.doc=j,this.id=++Zl};wl.prototype.clear=function(){if(this.explicitlyCleared)return;var N=this.doc.cm,j=N&&!N.curOp;if(j&&ns(N),Tt(this,"clear")){var ie=this.find();ie&&kr(this,"clear",ie.from,ie.to)}for(var se=null,me=null,ze=0;ze<this.lines.length;++ze){var It=this.lines[ze],ir=rr(It.markedSpans,this);N&&!this.collapsed?mt(N,Yt(It),"text"):N&&(ir.to!=null&&(me=Yt(It)),ir.from!=null&&(se=Yt(It))),It.markedSpans=Fr(It.markedSpans,ir),ir.from==null&&this.collapsed&&!vr(this.doc,It)&&N&&Ct(It,Io(N.display))}if(N&&this.collapsed&&!N.options.lineWrapping)for(var wr=0;wr<this.lines.length;++wr){var Or=Ft(this.lines[wr]),Bn=Kn(Or);Bn>N.display.maxLineLength&&(N.display.maxLine=Or,N.display.maxLineLength=Bn,N.display.maxLineChanged=!0)}se!=null&&N&&this.collapsed&&ja(N,se,me+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,N&&ol(N.doc)),N&&kr(N,"markerCleared",N,this,se,me),j&&co(N),this.parent&&this.parent.clear()},wl.prototype.find=function(N,j){N==null&&this.type=="bookmark"&&(N=1);for(var ie,se,me=0;me<this.lines.length;++me){var ze=this.lines[me],It=rr(ze.markedSpans,this);if(It.from!=null&&(ie=Gt(j?ze:Yt(ze),It.from),N==-1))return ie;if(It.to!=null&&(se=Gt(j?ze:Yt(ze),It.to),N==1))return se}return ie&&{from:ie,to:se}},wl.prototype.changed=function(){var N=this,j=this.find(-1,!0),ie=this,se=this.doc.cm;if(!j||!se)return;zo(se,function(){var me=j.line,ze=Yt(j.line),It=Qi(se,ze);if(It&&(_a(It),se.curOp.selectionChanged=se.curOp.forceUpdate=!0),se.curOp.updateMaxLine=!0,!vr(ie.doc,me)&&ie.height!=null){var ir=ie.height;ie.height=null;var wr=wn(ie)-ir;wr&&Ct(me,me.height+wr)}kr(se,"markerChanged",se,N)})},wl.prototype.attachLine=function(N){if(!this.lines.length&&this.doc.cm){var j=this.doc.cm.curOp;(!j.maybeHiddenMarkers||G(j.maybeHiddenMarkers,this)==-1)&&(j.maybeUnhiddenMarkers||(j.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(N)},wl.prototype.detachLine=function(N){if(this.lines.splice(G(this.lines,N),1),!this.lines.length&&this.doc.cm){var j=this.doc.cm.curOp;(j.maybeHiddenMarkers||(j.maybeHiddenMarkers=[])).push(this)}},Bt(wl);function Gl(N,j,ie,se,me){if(se&&se.shared)return Iu(N,j,ie,se,me);if(N.cm&&!N.cm.curOp)return Jo(N.cm,Gl)(N,j,ie,se,me);var ze=new wl(N,me),It=vt(j,ie);if(se&&U(se,ze,!1),It>0||It==0&&ze.clearWhenEmpty!==!1)return ze;if(ze.replacedWith&&(ze.collapsed=!0,ze.widgetNode=F("span",[ze.replacedWith],"CodeMirror-widget"),se.handleMouseEvents||ze.widgetNode.setAttribute("cm-ignore-events","true"),se.insertLeft&&(ze.widgetNode.insertLeft=!0)),ze.collapsed){if(_t(N,j.line,j,ie,ze)||j.line!=ie.line&&_t(N,ie.line,j,ie,ze))throw new Error("Inserting collapsed marker partially overlapping an existing one");Pt()}ze.addToHistory&&vs(N,{from:j,to:ie,origin:"markText"},N.sel,NaN);var ir=j.line,wr=N.cm,Or;if(N.iter(ir,ie.line+1,function(ti){wr&&ze.collapsed&&!wr.options.lineWrapping&&Ft(ti)==wr.display.maxLine&&(Or=!0),ze.collapsed&&ir!=j.line&&Ct(ti,0),Vr(ti,new xt(ze,ir==j.line?j.ch:null,ir==ie.line?ie.ch:null)),++ir}),ze.collapsed&&N.iter(j.line,ie.line+1,function(ti){vr(N,ti)&&Ct(ti,0)}),ze.clearOnEnter&&Fe(ze,"beforeCursorEnter",function(){return ze.clear()}),ze.readOnly&&(ot(),(N.history.done.length||N.history.undone.length)&&N.clearHistory()),ze.collapsed&&(ze.id=++Zl,ze.atomic=!0),wr){if(Or&&(wr.curOp.updateMaxLine=!0),ze.collapsed)ja(wr,j.line,ie.line+1);else if(ze.className||ze.startStyle||ze.endStyle||ze.css||ze.attributes||ze.title)for(var Bn=j.line;Bn<=ie.line;Bn++)mt(wr,Bn,"text");ze.atomic&&ol(wr.doc),kr(wr,"markerAdded",wr,ze)}return ze}var tu=function(j,ie){this.markers=j,this.primary=ie;for(var se=0;se<j.length;++se)j[se].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();kr(this,"clear")},tu.prototype.find=function(N,j){return this.primary.find(N,j)},Bt(tu);function Iu(N,j,ie,se,me){se=U(se),se.shared=!1;var ze=[Gl(N,j,ie,se,me)],It=ze[0],ir=se.widgetNode;return Yi(N,function(wr){ir&&(se.widgetNode=ir.cloneNode(!0)),ze.push(Gl(wr,Mt(wr,j),Mt(wr,ie),se,me));for(var Or=0;Or<wr.linked.length;++Or)if(wr.linked[Or].isParent)return;It=Ve(ze)}),new tu(ze,It)}function bu(N){return N.findMarks(Gt(N.first,0),N.clipPos(Gt(N.lastLine())),function(j){return j.parent})}function du(N,j){for(var ie=0;ie<j.length;ie++){var se=j[ie],me=se.find(),ze=N.clipPos(me.from),It=N.clipPos(me.to);if(vt(ze,It)){var ir=Gl(N,ze,It,se.primary,se.primary.type);se.markers.push(ir),ir.parent=se}}}function hu(N){for(var j=function(me){var ze=N[me],It=[ze.primary.doc];Yi(ze.primary.doc,function(Or){return It.push(Or)});for(var ir=0;ir<ze.markers.length;ir++){var wr=ze.markers[ir];G(It,wr.doc)==-1&&(wr.parent=null,ze.markers.splice(ir--,1))}},ie=0;ie<N.length;ie++)j(ie)}var nu=0,Sl=function N(j,ie,se,me,ze){if(!(this instanceof N))return new N(j,ie,se,me,ze);se==null&&(se=0),Xs.call(this,[new ll([new di("",null)])]),this.first=se,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=se;var It=Gt(se,0);this.sel=Le(It),this.history=new So(null),this.id=++nu,this.modeOption=ie,this.lineSep=me,this.direction=ze=="rtl"?"rtl":"ltr",this.extend=!1,typeof j=="string"&&(j=this.splitLines(j)),Ai(this,{from:It,to:It,text:j}),Os(this,Le(It),le)};Sl.prototype=rt(Xs.prototype,{constructor:Sl,iter:function(j,ie,se){se?this.iterN(j-this.first,ie-j,se):this.iterN(this.first,this.first+this.size,j)},insert:function(j,ie){for(var se=0,me=0;me<ie.length;++me)se+=ie[me].height;this.insertInner(j-this.first,ie,se)},remove:function(j,ie){this.removeInner(j-this.first,ie)},getValue:function(j){var ie=At(this,this.first,this.first+this.size);return j===!1?ie:ie.join(j||this.lineSeparator())},setValue:as(function(N){var j=Gt(this.first,0),ie=this.first+this.size-1;Is(this,{from:j,to:Gt(ie,Be(this,ie).text.length),text:this.splitLines(N),origin:"setValue",full:!0},!0),this.cm&&Pa(this.cm,0,0),Os(this,Le(j),le)}),replaceRange:function(j,ie,se,me){ie=Mt(this,ie),se=se?Mt(this,se):ie,Dl(this,j,ie,se,me)},getRange:function(j,ie,se){var me=at(this,Mt(this,j),Mt(this,ie));return se===!1?me:me.join(se||this.lineSeparator())},getLine:function(j){var ie=this.getLineHandle(j);return ie&&ie.text},getLineHandle:function(j){if(qr(this,j))return Be(this,j)},getLineNumber:function(j){return Yt(j)},getLineHandleVisualStart:function(j){return typeof j=="number"&&(j=Be(this,j)),Ft(j)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(j){return Mt(this,j)},getCursor:function(j){var ie=this.sel.primary(),se;return j==null||j=="head"?se=ie.head:j=="anchor"?se=ie.anchor:j=="end"||j=="to"||j===!1?se=ie.to():se=ie.from(),se},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:as(function(N,j,ie){Vl(this,Mt(this,typeof N=="number"?Gt(N,j||0):N),null,ie)}),setSelection:as(function(N,j,ie){Vl(this,Mt(this,N),Mt(this,j||N),ie)}),extendSelection:as(function(N,j,ie){Ps(this,Mt(this,N),j&&Mt(this,j),ie)}),extendSelections:as(function(N,j){ws(this,Hr(this,N),j)}),extendSelectionsBy:as(function(N,j){var ie=ct(this.sel.ranges,N);ws(this,Hr(this,ie),j)}),setSelections:as(function(N,j,ie){if(!N.length)return;for(var se=[],me=0;me<N.length;me++)se[me]=new ce(Mt(this,N[me].anchor),Mt(this,N[me].head));j==null&&(j=Math.min(N.length-1,this.sel.primIndex)),Os(this,Ee(this.cm,se,j),ie)}),addSelection:as(function(N,j,ie){var se=this.sel.ranges.slice(0);se.push(new ce(Mt(this,N),Mt(this,j||N))),Os(this,Ee(this.cm,se,se.length-1),ie)}),getSelection:function(j){for(var ie=this.sel.ranges,se,me=0;me<ie.length;me++){var ze=at(this,ie[me].from(),ie[me].to());se=se?se.concat(ze):ze}return j===!1?se:se.join(j||this.lineSeparator())},getSelections:function(j){for(var ie=[],se=this.sel.ranges,me=0;me<se.length;me++){var ze=at(this,se[me].from(),se[me].to());j!==!1&&(ze=ze.join(j||this.lineSeparator())),ie[me]=ze}return ie},replaceSelection:function(j,ie,se){for(var me=[],ze=0;ze<this.sel.ranges.length;ze++)me[ze]=j;this.replaceSelections(me,ie,se||"+input")},replaceSelections:as(function(N,j,ie){for(var se=[],me=this.sel,ze=0;ze<me.ranges.length;ze++){var It=me.ranges[ze];se[ze]={from:It.from(),to:It.to(),text:this.splitLines(N[ze]),origin:ie}}for(var ir=j&&j!="end"&&pn(this,se,j),wr=se.length-1;wr>=0;wr--)Is(this,se[wr]);ir?hl(this,ir):this.cm&&Ma(this.cm)}),undo:as(function(){nl(this,"undo")}),redo:as(function(){nl(this,"redo")}),undoSelection:as(function(){nl(this,"undo",!0)}),redoSelection:as(function(){nl(this,"redo",!0)}),setExtending:function(j){this.extend=j},getExtending:function(){return this.extend},historySize:function(){for(var j=this.history,ie=0,se=0,me=0;me<j.done.length;me++)j.done[me].ranges||++ie;for(var ze=0;ze<j.undone.length;ze++)j.undone[ze].ranges||++se;return{undo:ie,redo:se}},clearHistory:function(){var j=this;this.history=new So(this.history.maxGeneration),Yi(this,function(ie){return ie.history=j.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(j){return j&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(j){return this.history.generation==(j||this.cleanGeneration)},getHistory:function(){return{done:ml(this.history.done),undone:ml(this.history.undone)}},setHistory:function(j){var ie=this.history=new So(this.history.maxGeneration);ie.done=ml(j.done.slice(0),null,!0),ie.undone=ml(j.undone.slice(0),null,!0)},setGutterMarker:as(function(N,j,ie){return Gs(this,N,"gutter",function(se){var me=se.gutterMarkers||(se.gutterMarkers={});return me[j]=ie,!ie&&ee(me)&&(se.gutterMarkers=null),!0})}),clearGutter:as(function(N){var j=this;this.iter(function(ie){ie.gutterMarkers&&ie.gutterMarkers[N]&&Gs(j,ie,"gutter",function(){return ie.gutterMarkers[N]=null,ee(ie.gutterMarkers)&&(ie.gutterMarkers=null),!0})})}),lineInfo:function(j){var ie;if(typeof j=="number"){if(!qr(this,j))return null;if(ie=j,j=Be(this,j),!j)return null}else if(ie=Yt(j),ie==null)return null;return{line:ie,handle:j,text:j.text,gutterMarkers:j.gutterMarkers,textClass:j.textClass,bgClass:j.bgClass,wrapClass:j.wrapClass,widgets:j.widgets}},addLineClass:as(function(N,j,ie){return Gs(this,N,j=="gutter"?"gutter":"class",function(se){var me=j=="text"?"textClass":j=="background"?"bgClass":j=="gutter"?"gutterClass":"wrapClass";if(!se[me])se[me]=ie;else{if(O(ie).test(se[me]))return!1;se[me]+=" "+ie}return!0})}),removeLineClass:as(function(N,j,ie){return Gs(this,N,j=="gutter"?"gutter":"class",function(se){var me=j=="text"?"textClass":j=="background"?"bgClass":j=="gutter"?"gutterClass":"wrapClass",ze=se[me];if(ze)if(ie==null)se[me]=null;else{var It=ze.match(O(ie));if(!It)return!1;var ir=It.index+It[0].length;se[me]=ze.slice(0,It.index)+(!It.index||ir==ze.length?"":" ")+ze.slice(ir)||null}else return!1;return!0})}),addLineWidget:as(function(N,j,ie){return Yl(this,N,j,ie)}),removeLineWidget:function(j){j.clear()},markText:function(j,ie,se){return Gl(this,Mt(this,j),Mt(this,ie),se,se&&se.type||"range")},setBookmark:function(j,ie){var se={replacedWith:ie&&(ie.nodeType==null?ie.widget:ie),insertLeft:ie&&ie.insertLeft,clearWhenEmpty:!1,shared:ie&&ie.shared,handleMouseEvents:ie&&ie.handleMouseEvents};return j=Mt(this,j),Gl(this,j,j,se,"bookmark")},findMarksAt:function(j){j=Mt(this,j);var ie=[],se=Be(this,j.line).markedSpans;if(se)for(var me=0;me<se.length;++me){var ze=se[me];(ze.from==null||ze.from<=j.ch)&&(ze.to==null||ze.to>=j.ch)&&ie.push(ze.marker.parent||ze.marker)}return ie},findMarks:function(j,ie,se){j=Mt(this,j),ie=Mt(this,ie);var me=[],ze=j.line;return this.iter(j.line,ie.line+1,function(It){var ir=It.markedSpans;if(ir)for(var wr=0;wr<ir.length;wr++){var Or=ir[wr];!(Or.to!=null&&ze==j.line&&j.ch>=Or.to||Or.from==null&&ze!=j.line||Or.from!=null&&ze==ie.line&&Or.from>=ie.ch)&&(!se||se(Or.marker))&&me.push(Or.marker.parent||Or.marker)}++ze}),me},getAllMarks:function(){var j=[];return this.iter(function(ie){var se=ie.markedSpans;if(se)for(var me=0;me<se.length;++me)se[me].from!=null&&j.push(se[me].marker)}),j},posFromIndex:function(j){var ie,se=this.first,me=this.lineSeparator().length;return this.iter(function(ze){var It=ze.text.length+me;if(It>j)return ie=j,!0;j-=It,++se}),Mt(this,Gt(se,ie))},indexFromPos:function(j){j=Mt(this,j);var ie=j.ch;if(j.line<this.first||j.ch<0)return 0;var se=this.lineSeparator().length;return this.iter(this.first,j.line,function(me){ie+=me.text.length+se}),ie},copy:function(j){var ie=new Sl(At(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,j&&(ie.history.undoDepth=this.history.undoDepth,ie.setHistory(this.getHistory())),ie},linkedDoc:function(j){j||(j={});var ie=this.first,se=this.first+this.size;j.from!=null&&j.from>ie&&(ie=j.from),j.to!=null&&j.to<se&&(se=j.to);var me=new Sl(At(this,ie,se),j.mode||this.modeOption,ie,this.lineSep,this.direction);return j.sharedHist&&(me.history=this.history),(this.linked||(this.linked=[])).push({doc:me,sharedHist:j.sharedHist}),me.linked=[{doc:this,isParent:!0,sharedHist:j.sharedHist}],du(me,bu(this)),me},unlinkDoc:function(j){if(j instanceof Br&&(j=j.doc),this.linked)for(var ie=0;ie<this.linked.length;++ie){var se=this.linked[ie];if(se.doc!=j)continue;this.linked.splice(ie,1),j.unlinkDoc(this),hu(bu(this));break}if(j.history==this.history){var me=[j.id];Yi(j,function(ze){return me.push(ze.id)},!0),j.history=new So(null),j.history.done=ml(this.history.done,me),j.history.undone=ml(this.history.undone,me)}},iterLinkedDocs:function(j){Yi(this,j)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(j){return this.lineSep?j.split(this.lineSep):cn(j)},lineSeparator:function(){return this.lineSep||`
`},setDirection:as(function(N){if(N!="rtl"&&(N="ltr"),N==this.direction)return;this.direction=N,this.iter(function(j){return j.order=null}),this.cm&&ro(this.cm)})}),Sl.prototype.eachLine=Sl.prototype.iter;var Ml=0;function Ll(N){var j=this;if(fu(j),Ht(j,N)||$n(j.display,N))return;Ke(N),d&&(Ml=+new Date);var ie=Lo(j,N,!0),se=N.dataTransfer.files;if(!ie||j.isReadOnly())return;if(se&&se.length&&window.FileReader&&window.File)for(var me=se.length,ze=Array(me),It=0,ir=function(){++It==me&&Jo(j,function(){ie=Mt(j.doc,ie);var oa={from:ie,to:ie,text:j.doc.splitLines(ze.filter(function(Ta){return Ta!=null}).join(j.doc.lineSeparator())),origin:"paste"};Is(j.doc,oa),hl(j.doc,Le(Mt(j.doc,ie),Mt(j.doc,Qe(oa))))})()},wr=function(oa,Ta){if(j.options.allowDropFileTypes&&G(j.options.allowDropFileTypes,oa.type)==-1){ir();return}var Ha=new FileReader;Ha.onerror=function(){return ir()},Ha.onload=function(){var Ba=Ha.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Ba)){ir();return}ze[Ta]=Ba,ir()},Ha.readAsText(oa)},Or=0;Or<se.length;Or++)wr(se[Or],Or);else{if(j.state.draggingText&&j.doc.sel.contains(ie)>-1){j.state.draggingText(N),setTimeout(function(){return j.display.input.focus()},20);return}try{var Bn=N.dataTransfer.getData("Text");if(Bn){var ti;if(j.state.draggingText&&!j.state.draggingText.copy&&(ti=j.listSelections()),Vs(j.doc,Le(ie,ie)),ti)for(var Si=0;Si<ti.length;++Si)Dl(j.doc,"",ti[Si].anchor,ti[Si].head,"drag");j.replaceSelection(Bn,"around","paste"),j.display.input.focus()}}catch(Oi){}}}function $l(N,j){if(d&&(!N.state.draggingText||+new Date-Ml<100)){lt(j);return}if(Ht(N,j)||$n(N.display,j))return;if(j.dataTransfer.setData("Text",N.getSelection()),j.dataTransfer.effectAllowed="copyMove",j.dataTransfer.setDragImage&&!e){var ie=_("img",null,null,"position: fixed; left: 0; top: 0;");ie.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",a&&(ie.width=ie.height=1,N.display.wrapper.appendChild(ie),ie._top=ie.offsetTop),j.dataTransfer.setDragImage(ie,0,0),a&&ie.parentNode.removeChild(ie)}}function Pl(N,j){var ie=Lo(N,j);if(!ie)return;var se=document.createDocumentFragment();ni(N,ie,se),N.display.dragCursor||(N.display.dragCursor=_("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),N.display.lineSpace.insertBefore(N.display.dragCursor,N.display.cursorDiv)),I(N.display.dragCursor,se)}function fu(N){N.display.dragCursor&&(N.display.lineSpace.removeChild(N.display.dragCursor),N.display.dragCursor=null)}function xl(N){if(!document.getElementsByClassName)return;for(var j=document.getElementsByClassName("CodeMirror"),ie=[],se=0;se<j.length;se++){var me=j[se].CodeMirror;me&&ie.push(me)}ie.length&&ie[0].operation(function(){for(var ze=0;ze<ie.length;ze++)N(ie[ze])})}var El=!1;function pu(){if(El)return;mu(),El=!0}function mu(){var N;Fe(window,"resize",function(){N==null&&(N=setTimeout(function(){N=null,xl(Lu)},100))}),Fe(window,"blur",function(){return xl(gi)})}function Lu(N){var j=N.display;j.cachedCharWidth=j.cachedTextHeight=j.cachedPaddingH=null,j.scrollbarsClipped=!1,N.setSize()}for(var Kl={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"},ql=0;ql<10;ql++)Kl[ql+48]=Kl[ql+96]=String(ql);for(var iu=65;iu<=90;iu++)Kl[iu]=String.fromCharCode(iu);for(var au=1;au<=12;au++)Kl[au+111]=Kl[au+63235]="F"+au;var Ql={};Ql.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"},Ql.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"},Ql.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"},Ql.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"]},Ql.default=g?Ql.macDefault:Ql.pcDefault;function Ru(N){var j=N.split(/-(?!$)/);N=j[j.length-1];for(var ie,se,me,ze,It=0;It<j.length-1;It++){var ir=j[It];if(/^(cmd|meta|m)$/i.test(ir))ze=!0;else if(/^a(lt)?$/i.test(ir))ie=!0;else if(/^(c|ctrl|control)$/i.test(ir))se=!0;else if(/^s(hift)?$/i.test(ir))me=!0;else throw new Error("Unrecognized modifier name: "+ir)}return ie&&(N="Alt-"+N),se&&(N="Ctrl-"+N),ze&&(N="Cmd-"+N),me&&(N="Shift-"+N),N}function Nu(N){var j={};for(var ie in N)if(N.hasOwnProperty(ie)){var se=N[ie];if(/^(name|fallthrough|(de|at)tach)$/.test(ie))continue;if(se=="..."){delete N[ie];continue}for(var me=ct(ie.split(" "),Ru),ze=0;ze<me.length;ze++){var It=void 0,ir=void 0;ze==me.length-1?(ir=me.join(" "),It=se):(ir=me.slice(0,ze+1).join(" "),It="...");var wr=j[ir];if(!wr)j[ir]=It;else if(wr!=It)throw new Error("Inconsistent bindings for "+ir)}delete N[ie]}for(var Or in j)N[Or]=j[Or];return N}function Jl(N,j,ie,se){j=ul(j);var me=j.call?j.call(N,se):j[N];if(me===!1)return"nothing";if(me==="...")return"multi";if(me!=null&&ie(me))return"handled";if(j.fallthrough){if(Object.prototype.toString.call(j.fallthrough)!="[object Array]")return Jl(N,j.fallthrough,ie,se);for(var ze=0;ze<j.fallthrough.length;ze++){var It=Jl(N,j.fallthrough[ze],ie,se);if(It)return It}}}function gu(N){var j=typeof N=="string"?N:Kl[N.keyCode];return j=="Ctrl"||j=="Alt"||j=="Shift"||j=="Mod"}function wu(N,j,ie){var se=N;return j.altKey&&se!="Alt"&&(N="Alt-"+N),(x?j.metaKey:j.ctrlKey)&&se!="Ctrl"&&(N="Ctrl-"+N),(x?j.ctrlKey:j.metaKey)&&se!="Mod"&&(N="Cmd-"+N),!ie&&j.shiftKey&&se!="Shift"&&(N="Shift-"+N),N}function vu(N,j){if(a&&N.keyCode==34&&N.char)return!1;var ie=Kl[N.keyCode];return ie==null||N.altGraphKey?!1:(N.keyCode==3&&N.code&&(ie=N.code),wu(ie,N,j))}function ul(N){return typeof N=="string"?Ql[N]:N}function Ol(N,j){for(var ie=N.doc.sel.ranges,se=[],me=0;me<ie.length;me++){for(var ze=j(ie[me]);se.length&&vt(ze.from,Ve(se).to)<=0;){var It=se.pop();if(vt(It.from,ze.from)<0){ze.from=It.from;break}}se.push(ze)}zo(N,function(){for(var ir=se.length-1;ir>=0;ir--)Dl(N.doc,"",se[ir].from,se[ir].to,"+delete");Ma(N)})}function ru(N,j,ie){var se=Ce(N.text,j+ie,ie);return se<0||se>N.text.length?null:se}function Du(N,j,ie){var se=ru(N,j.ch,ie);return se==null?null:new Gt(j.line,se,ie<0?"after":"before")}function Su(N,j,ie,se,me){if(N){j.doc.direction=="rtl"&&(me=-me);var ze=pt(ie,j.doc.direction);if(ze){var It=me<0?Ve(ze):ze[0],ir=me<0==(It.level==1),wr=ir?"after":"before",Or;if(It.level>0||j.doc.direction=="rtl"){var Bn=da(j,ie);Or=me<0?ie.text.length-1:0;var ti=Oa(j,Bn,Or).top;Or=Te(function(Si){return Oa(j,Bn,Si).top==ti},me<0==(It.level==1)?It.from:It.to-1,Or),wr=="before"&&(Or=ru(ie,Or,1))}else Or=me<0?It.to:It.from;return new Gt(se,Or,wr)}}return new Gt(se,me<0?ie.text.length:0,me<0?"before":"after")}function cu(N,j,ie,se){var me=pt(j,N.doc.direction);if(!me)return Du(j,ie,se);ie.ch>=j.text.length?(ie.ch=j.text.length,ie.sticky="before"):ie.ch<=0&&(ie.ch=0,ie.sticky="after");var ze=Ie(me,ie.ch,ie.sticky),It=me[ze];if(N.doc.direction=="ltr"&&It.level%2==0&&(se>0?It.to>ie.ch:It.from<ie.ch))return Du(j,ie,se);var ir=function(Na,$a){return ru(j,Na instanceof Gt?Na.ch:Na,$a)},wr,Or=function(Na){return N.options.lineWrapping?(wr=wr||da(N,j),to(N,j,wr,Na)):{begin:0,end:j.text.length}},Bn=Or(ie.sticky=="before"?ir(ie,-1):ie.ch);if(N.doc.direction=="rtl"||It.level==1){var ti=It.level==1==se<0,Si=ir(ie,ti?1:-1);if(Si!=null&&(ti?Si<=It.to&&Si<=Bn.end:Si>=It.from&&Si>=Bn.begin)){var Oi=ti?"before":"after";return new Gt(ie.line,Si,Oi)}}var oa=function(Na,$a,fo){for(var es=function(il,Fl){return Fl?new Gt(ie.line,ir(il,1),"before"):new Gt(ie.line,il,"after")};Na>=0&&Na<me.length;Na+=$a){var Bo=me[Na],Ss=$a>0==(Bo.level!=1),Qs=Ss?fo.begin:ir(fo.end,-1);if(Bo.from<=Qs&&Qs<Bo.to)return es(Qs,Ss);if(Qs=Ss?Bo.from:ir(Bo.to,-1),fo.begin<=Qs&&Qs<fo.end)return es(Qs,Ss)}},Ta=oa(ze+se,se,Bn);if(Ta)return Ta;var Ha=se>0?Bn.end:ir(Bn.begin,-1);return Ha!=null&&!(se>0&&Ha==j.text.length)&&(Ta=oa(se>0?0:me.length-1,se,Or(Ha)),Ta)?Ta:null}var ou={selectAll:_s,singleSelection:function(j){return j.setSelection(j.getCursor("anchor"),j.getCursor("head"),le)},killLine:function(j){return Ol(j,function(ie){if(ie.empty()){var se=Be(j.doc,ie.head.line).text.length;return ie.head.ch==se&&ie.head.line<j.lastLine()?{from:ie.head,to:Gt(ie.head.line+1,0)}:{from:ie.head,to:Gt(ie.head.line,se)}}else return{from:ie.from(),to:ie.to()}})},deleteLine:function(j){return Ol(j,function(ie){return{from:Gt(ie.from().line,0),to:Mt(j.doc,Gt(ie.to().line+1,0))}})},delLineLeft:function(j){return Ol(j,function(ie){return{from:Gt(ie.from().line,0),to:ie.from()}})},delWrappedLineLeft:function(j){return Ol(j,function(ie){var se=j.charCoords(ie.head,"div").top+5,me=j.coordsChar({left:0,top:se},"div");return{from:me,to:ie.from()}})},delWrappedLineRight:function(j){return Ol(j,function(ie){var se=j.charCoords(ie.head,"div").top+5,me=j.coordsChar({left:j.display.lineDiv.offsetWidth+100,top:se},"div");return{from:ie.from(),to:me}})},undo:function(j){return j.undo()},redo:function(j){return j.redo()},undoSelection:function(j){return j.undoSelection()},redoSelection:function(j){return j.redoSelection()},goDocStart:function(j){return j.extendSelection(Gt(j.firstLine(),0))},goDocEnd:function(j){return j.extendSelection(Gt(j.lastLine()))},goLineStart:function(j){return j.extendSelectionsBy(function(ie){return su(j,ie.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(j){return j.extendSelectionsBy(function(ie){return Au(j,ie.head)},{origin:"+move",bias:1})},goLineEnd:function(j){return j.extendSelectionsBy(function(ie){return xu(j,ie.head.line)},{origin:"+move",bias:-1})},goLineRight:function(j){return j.extendSelectionsBy(function(ie){var se=j.cursorCoords(ie.head,"div").top+5;return j.coordsChar({left:j.display.lineDiv.offsetWidth+100,top:se},"div")},Se)},goLineLeft:function(j){return j.extendSelectionsBy(function(ie){var se=j.cursorCoords(ie.head,"div").top+5;return j.coordsChar({left:0,top:se},"div")},Se)},goLineLeftSmart:function(j){return j.extendSelectionsBy(function(ie){var se=j.cursorCoords(ie.head,"div").top+5,me=j.coordsChar({left:0,top:se},"div");return me.ch<j.getLine(me.line).search(/\S/)?Au(j,ie.head):me},Se)},goLineUp:function(j){return j.moveV(-1,"line")},goLineDown:function(j){return j.moveV(1,"line")},goPageUp:function(j){return j.moveV(-1,"page")},goPageDown:function(j){return j.moveV(1,"page")},goCharLeft:function(j){return j.moveH(-1,"char")},goCharRight:function(j){return j.moveH(1,"char")},goColumnLeft:function(j){return j.moveH(-1,"column")},goColumnRight:function(j){return j.moveH(1,"column")},goWordLeft:function(j){return j.moveH(-1,"word")},goGroupRight:function(j){return j.moveH(1,"group")},goGroupLeft:function(j){return j.moveH(-1,"group")},goWordRight:function(j){return j.moveH(1,"word")},delCharBefore:function(j){return j.deleteH(-1,"codepoint")},delCharAfter:function(j){return j.deleteH(1,"char")},delWordBefore:function(j){return j.deleteH(-1,"word")},delWordAfter:function(j){return j.deleteH(1,"word")},delGroupBefore:function(j){return j.deleteH(-1,"group")},delGroupAfter:function(j){return j.deleteH(1,"group")},indentAuto:function(j){return j.indentSelection("smart")},indentMore:function(j){return j.indentSelection("add")},indentLess:function(j){return j.indentSelection("subtract")},insertTab:function(j){return j.replaceSelection(" ")},insertSoftTab:function(j){for(var ie=[],se=j.listSelections(),me=j.options.tabSize,ze=0;ze<se.length;ze++){var It=se[ze].from(),ir=V(j.getLine(It.line),It.ch,me);ie.push(Je(me-ir%me))}j.replaceSelections(ie)},defaultTab:function(j){j.somethingSelected()?j.indentSelection("add"):j.execCommand("insertTab")},transposeChars:function(j){return zo(j,function(){for(var ie=j.listSelections(),se=[],me=0;me<ie.length;me++){if(!ie[me].empty())continue;var ze=ie[me].head,It=Be(j.doc,ze.line).text;if(It){if(ze.ch==It.length&&(ze=new Gt(ze.line,ze.ch-1)),ze.ch>0)ze=new Gt(ze.line,ze.ch+1),j.replaceRange(It.charAt(ze.ch-1)+It.charAt(ze.ch-2),Gt(ze.line,ze.ch-2),ze,"+transpose");else if(ze.line>j.doc.first){var ir=Be(j.doc,ze.line-1).text;ir&&(ze=new Gt(ze.line,1),j.replaceRange(It.charAt(0)+j.doc.lineSeparator()+ir.charAt(ir.length-1),Gt(ze.line-1,ir.length-1),ze,"+transpose"))}}se.push(new ce(ze,ze))}j.setSelections(se)})},newlineAndIndent:function(j){return zo(j,function(){for(var ie=j.listSelections(),se=ie.length-1;se>=0;se--)j.replaceRange(j.doc.lineSeparator(),ie[se].anchor,ie[se].head,"+input");ie=j.listSelections();for(var me=0;me<ie.length;me++)j.indentLine(ie[me].from().line,null,!0);Ma(j)})},openLine:function(j){return j.replaceSelection(`
`,"start")},toggleOverwrite:function(j){return j.toggleOverwrite()}};function su(N,j){var ie=Be(N.doc,j),se=Ft(ie);return se!=ie&&(j=Yt(se)),Su(!0,N,se,j,1)}function xu(N,j){var ie=Be(N.doc,j),se=Wt(ie);return se!=ie&&(j=Yt(se)),Su(!0,N,ie,j,-1)}function Au(N,j){var ie=su(N,j.line),se=Be(N.doc,ie.line),me=pt(se,N.doc.direction);if(!me||me[0].level==0){var ze=Math.max(ie.ch,se.text.search(/\S/)),It=j.line==ie.line&&j.ch<=ze&&j.ch;return Gt(ie.line,It?0:ze,ie.sticky)}return ie}function ve(N,j,ie){if(typeof j=="string"&&(j=ou[j],!j))return!1;N.display.input.ensurePolled();var se=N.display.shift,me=!1;try{N.isReadOnly()&&(N.state.suppressEdits=!0),ie&&(N.display.shift=!1),me=j(N)!=$}finally{N.display.shift=se,N.state.suppressEdits=!1}return me}function q(N,j,ie){for(var se=0;se<N.state.keyMaps.length;se++){var me=Jl(j,N.state.keyMaps[se],ie,N);if(me)return me}return N.options.extraKeys&&Jl(j,N.options.extraKeys,ie,N)||Jl(j,N.options.keyMap,ie,N)}var L=new Q;function K(N,j,ie,se){var me=N.state.keySeq;if(me){if(gu(j))return"handled";if(/\'$/.test(j)?N.state.keySeq=null:L.set(50,function(){N.state.keySeq==me&&(N.state.keySeq=null,N.display.input.reset())}),H(N,me+" "+j,ie,se))return!0}return H(N,j,ie,se)}function H(N,j,ie,se){var me=q(N,j,se);return me=="multi"&&(N.state.keySeq=j),me=="handled"&&kr(N,"keyHandled",N,j,ie),(me=="handled"||me=="multi")&&(Ke(ie),si(N)),!!me}function J(N,j){var ie=vu(j,!0);return ie?j.shiftKey&&!N.state.keySeq?K(N,"Shift-"+ie,j,function(se){return ve(N,se,!0)})||K(N,ie,j,function(se){if(typeof se=="string"?/^go[A-Z]/.test(se):se.motion)return ve(N,se)}):K(N,ie,j,function(se){return ve(N,se)}):!1}function ne(N,j,ie){return K(N,"'"+ie+"'",j,function(se){return ve(N,se,!0)})}var we=null;function _e(N){var j=this;if(N.target&&N.target!=j.display.input.getField())return;if(j.curOp.focus=M(),Ht(j,N))return;d&&l<11&&N.keyCode==27&&(N.returnValue=!1);var ie=N.keyCode;j.display.shift=ie==16||N.shiftKey;var se=J(j,N);a&&(we=se?ie:null,!se&&ie==88&&!xr&&(g?N.metaKey:N.ctrlKey)&&j.replaceSelection("",null,"cut")),S&&!g&&!se&&ie==46&&N.shiftKey&&!N.ctrlKey&&document.execCommand&&document.execCommand("cut"),ie==18&&!/\bCodeMirror-crosshair\b/.test(j.display.lineDiv.className)&&Xe(j)}function Xe(N){var j=N.display.lineDiv;X(j,"CodeMirror-crosshair");function ie(se){(se.keyCode==18||!se.altKey)&&(E(j,"CodeMirror-crosshair"),et(document,"keyup",ie),et(document,"mouseover",ie))}Fe(document,"keyup",ie),Fe(document,"mouseover",ie)}function ut(N){N.keyCode==16&&(this.doc.sel.shift=!1),Ht(this,N)}function ht(N){var j=this;if(N.target&&N.target!=j.display.input.getField())return;if($n(j.display,N)||Ht(j,N)||N.ctrlKey&&!N.altKey||g&&N.metaKey)return;var ie=N.keyCode,se=N.charCode;if(a&&ie==we){we=null,Ke(N);return}if(a&&(!N.which||N.which<10)&&J(j,N))return;var me=String.fromCharCode(se==null?ie:se);if(me=="\b")return;if(ne(j,N,me))return;j.display.input.onKeyPress(N)}var Qt=400,Tr=function(j,ie,se){this.time=j,this.pos=ie,this.button=se};Tr.prototype.compare=function(N,j,ie){return this.time+Qt>N&&vt(j,this.pos)==0&&ie==this.button};var br,Kr;function Zr(N,j){var ie=+new Date;return Kr&&Kr.compare(ie,N,j)?(br=Kr=null,"triple"):br&&br.compare(ie,N,j)?(Kr=new Tr(ie,N,j),br=null,"double"):(br=new Tr(ie,N,j),Kr=null,"single")}function Pn(N){var j=this,ie=j.display;if(Ht(j,N)||ie.activeTouch&&ie.input.supportsTouch())return;if(ie.input.ensurePolled(),ie.shift=N.shiftKey,$n(ie,N)){o||(ie.scroller.draggable=!1,setTimeout(function(){return ie.scroller.draggable=!0},100));return}if(Ua(j,N))return;var se=Lo(j,N),me=pe(N),ze=se?Zr(se,me):"single";if(window.focus(),me==1&&j.state.selectingText&&j.state.selectingText(N),se&&Nn(j,me,se,ze,N))return;me==1?se?wi(j,se,ze,N):qe(N)==ie.scroller&&Ke(N):me==2?(se&&Ps(j.doc,se),setTimeout(function(){return ie.input.focus()},20)):me==3&&(T?j.display.input.onContextMenu(N):ai(j))}function Nn(N,j,ie,se,me){var ze="Click";return se=="double"?ze="Double"+ze:se=="triple"&&(ze="Triple"+ze),ze=(j==1?"Left":j==2?"Middle":"Right")+ze,K(N,wu(ze,me),me,function(It){if(typeof It=="string"&&(It=ou[It]),!It)return!1;var ir=!1;try{N.isReadOnly()&&(N.state.suppressEdits=!0),ir=It(N,ie)!=$}finally{N.state.suppressEdits=!1}return ir})}function Jn(N,j,ie){var se=N.getOption("configureMouse"),me=se?se(N,j,ie):{};if(me.unit==null){var ze=v?ie.shiftKey&&ie.metaKey:ie.altKey;me.unit=ze?"rectangle":j=="single"?"char":j=="double"?"word":"line"}return(me.extend==null||N.doc.extend)&&(me.extend=N.doc.extend||ie.shiftKey),me.addNew==null&&(me.addNew=g?ie.metaKey:ie.ctrlKey),me.moveOnDrag==null&&(me.moveOnDrag=!(g?ie.altKey:ie.ctrlKey)),me}function wi(N,j,ie,se){d?setTimeout(W(ui,N),0):N.curOp.focus=M();var me=Jn(N,ie,se),ze=N.doc.sel,It;N.options.dragDrop&&Kt&&!N.isReadOnly()&&ie=="single"&&(It=ze.contains(j))>-1&&(vt((It=ze.ranges[It]).from(),j)<0||j.xRel>0)&&(vt(It.to(),j)>0||j.xRel<0)?sa(N,se,j,me):Ji(N,se,j,me)}function sa(N,j,ie,se){var me=N.display,ze=!1,It=Jo(N,function(Or){o&&(me.scroller.draggable=!1),N.state.draggingText=!1,et(me.wrapper.ownerDocument,"mouseup",It),et(me.wrapper.ownerDocument,"mousemove",ir),et(me.scroller,"dragstart",wr),et(me.scroller,"drop",It),ze||(Ke(Or),se.addNew||Ps(N.doc,ie,null,null,se.extend),o&&!e||d&&l==9?setTimeout(function(){me.wrapper.ownerDocument.body.focus({preventScroll:!0}),me.input.focus()},20):me.input.focus())}),ir=function(Bn){ze=ze||Math.abs(j.clientX-Bn.clientX)+Math.abs(j.clientY-Bn.clientY)>=10},wr=function(){return ze=!0};o&&(me.scroller.draggable=!0),N.state.draggingText=It,It.copy=!se.moveOnDrag,me.scroller.dragDrop&&me.scroller.dragDrop(),Fe(me.wrapper.ownerDocument,"mouseup",It),Fe(me.wrapper.ownerDocument,"mousemove",ir),Fe(me.scroller,"dragstart",wr),Fe(me.scroller,"drop",It),ai(N),setTimeout(function(){return me.input.focus()},20)}function Wi(N,j,ie){if(ie=="char")return new ce(j,j);if(ie=="word")return N.findWordAt(j);if(ie=="line")return new ce(Gt(j.line,0),Mt(N.doc,Gt(j.line+1,0)));var se=ie(N,j);return new ce(se.from,se.to)}function Ji(N,j,ie,se){var me=N.display,ze=N.doc;Ke(j);var It,ir,wr=ze.sel,Or=wr.ranges;if(se.addNew&&!se.extend?(ir=ze.sel.contains(ie),ir>-1?It=Or[ir]:It=new ce(ie,ie)):(It=ze.sel.primary(),ir=ze.sel.primIndex),se.unit=="rectangle")se.addNew||(It=new ce(ie,ie)),ie=Lo(N,j,!0,!0),ir=-1;else{var Bn=Wi(N,ie,se.unit);se.extend?It=cl(It,Bn.anchor,Bn.head,se.extend):It=Bn}se.addNew?ir==-1?(ir=Or.length,Os(ze,Ee(N,Or.concat([It]),ir),{scroll:!1,origin:"*mouse"})):Or.length>1&&Or[ir].empty()&&se.unit=="char"&&!se.extend?(Os(ze,Ee(N,Or.slice(0,ir).concat(Or.slice(ir+1)),0),{scroll:!1,origin:"*mouse"}),wr=ze.sel):Ys(ze,ir,It,re):(ir=0,Os(ze,new Nt([It],0),re),wr=ze.sel);var ti=ie;function Si($a){if(vt(ti,$a)==0)return;if(ti=$a,se.unit=="rectangle"){for(var fo=[],es=N.options.tabSize,Bo=V(Be(ze,ie.line).text,ie.ch,es),Ss=V(Be(ze,$a.line).text,$a.ch,es),Qs=Math.min(Bo,Ss),gl=Math.max(Bo,Ss),il=Math.min(ie.line,$a.line),Fl=Math.min(N.lastLine(),Math.max(ie.line,$a.line));il<=Fl;il++){var Wl=Be(ze,il).text,Cl=Re(Wl,Qs,es);Qs==gl?fo.push(new ce(Gt(il,Cl),Gt(il,Cl))):Wl.length>Cl&&fo.push(new ce(Gt(il,Cl),Gt(il,Re(Wl,gl,es))))}fo.length||fo.push(new ce(ie,ie)),Os(ze,Ee(N,wr.ranges.slice(0,ir).concat(fo),ir),{origin:"*mouse",scroll:!1}),N.scrollIntoView($a)}else{var zl=It,Bl=Wi(N,$a,se.unit),Qa=zl.anchor,fl;vt(Bl.anchor,Qa)>0?(fl=Bl.head,Qa=Ut(zl.from(),Bl.anchor)):(fl=Bl.anchor,Qa=Jt(zl.to(),Bl.head));var dl=wr.ranges.slice(0);dl[ir]=La(N,new ce(Mt(ze,Qa),fl)),Os(ze,Ee(N,dl,ir),re)}}var Oi=me.wrapper.getBoundingClientRect(),oa=0;function Ta($a){var fo=++oa,es=Lo(N,$a,!0,se.unit=="rectangle");if(!es)return;if(vt(es,ti)!=0){N.curOp.focus=M(),Si(es);var Bo=ia(me,ze);(es.line>=Bo.to||es.line<Bo.from)&&setTimeout(Jo(N,function(){oa==fo&&Ta($a)}),150)}else{var Ss=$a.clientY<Oi.top?-20:$a.clientY>Oi.bottom?20:0;Ss&&setTimeout(Jo(N,function(){if(oa!=fo)return;me.scroller.scrollTop+=Ss,Ta($a)}),50)}}function Ha($a){N.state.selectingText=!1,oa=Infinity,$a&&(Ke($a),me.input.focus()),et(me.wrapper.ownerDocument,"mousemove",Ba),et(me.wrapper.ownerDocument,"mouseup",Na),ze.history.lastSelOrigin=null}var Ba=Jo(N,function($a){$a.buttons===0||!pe($a)?Ha($a):Ta($a)}),Na=Jo(N,Ha);N.state.selectingText=Na,Fe(me.wrapper.ownerDocument,"mousemove",Ba),Fe(me.wrapper.ownerDocument,"mouseup",Na)}function La(N,j){var ie=j.anchor,se=j.head,me=Be(N.doc,ie.line);if(vt(ie,se)==0&&ie.sticky==se.sticky)return j;var ze=pt(me);if(!ze)return j;var It=Ie(ze,ie.ch,ie.sticky),ir=ze[It];if(ir.from!=ie.ch&&ir.to!=ie.ch)return j;var wr=It+(ir.from==ie.ch==(ir.level!=1)?0:1);if(wr==0||wr==ze.length)return j;var Or;if(se.line!=ie.line)Or=(se.line-ie.line)*(N.doc.direction=="ltr"?1:-1)>0;else{var Bn=Ie(ze,se.ch,se.sticky),ti=Bn-It||(se.ch-ie.ch)*(ir.level==1?-1:1);Bn==wr-1||Bn==wr?Or=ti<0:Or=ti>0}var Si=ze[wr+(Or?-1:0)],Oi=Or==(Si.level==1),oa=Oi?Si.from:Si.to,Ta=Oi?"after":"before";return ie.ch==oa&&ie.sticky==Ta?j:new ce(new Gt(ie.line,oa,Ta),se)}function Xa(N,j,ie,se){var me,ze;if(j.touches)me=j.touches[0].clientX,ze=j.touches[0].clientY;else try{me=j.clientX,ze=j.clientY}catch(Si){return!1}if(me>=Math.floor(N.display.gutters.getBoundingClientRect().right))return!1;se&&Ke(j);var It=N.display,ir=It.lineDiv.getBoundingClientRect();if(ze>ir.bottom||!Tt(N,ie))return oe(j);ze-=ir.top-It.viewOffset;for(var wr=0;wr<N.display.gutterSpecs.length;++wr){var Or=It.gutters.childNodes[wr];if(Or&&Or.getBoundingClientRect().right>=me){var Bn=Pr(N.doc,ze),ti=N.display.gutterSpecs[wr];return wt(N,ie,N,Bn,ti.className,j),oe(j)}}}function Ua(N,j){return Xa(N,j,"gutterClick",!0)}function ba(N,j){if($n(N.display,j)||_o(N,j))return;if(Ht(N,j,"contextmenu"))return;T||N.display.input.onContextMenu(j)}function _o(N,j){return Tt(N,"gutterContextMenu")?Xa(N,j,"gutterContextMenu",!1):!1}function bs(N){N.display.wrapper.className=N.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+N.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ga(N)}var ds={toString:function(){return"CodeMirror.Init"}},rl={},xe={};function Ye(N){var j=N.optionHandlers;function ie(se,me,ze,It){N.defaults[se]=me,ze&&(j[se]=It?function(ir,wr,Or){Or!=ds&&ze(ir,wr,Or)}:ze)}N.defineOption=ie,N.Init=ds,ie("value","",function(se,me){return se.setValue(me)},!0),ie("mode",null,function(se,me){se.doc.modeOption=me,In(se)},!0),ie("indentUnit",2,In,!0),ie("indentWithTabs",!1),ie("smartIndent",!0),ie("tabSize",4,function(se){li(se),Ga(se),ja(se)},!0),ie("lineSeparator",null,function(se,me){if(se.doc.lineSep=me,!me)return;var ze=[],It=se.doc.first;se.doc.iter(function(wr){for(var Or=0;;){var Bn=wr.text.indexOf(me,Or);if(Bn==-1)break;Or=Bn+me.length,ze.push(Gt(It,Bn))}It++});for(var ir=ze.length-1;ir>=0;ir--)Dl(se.doc,me,ze[ir],Gt(ze[ir].line,ze[ir].ch+me.length))}),ie("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(se,me,ze){se.state.specialChars=new RegExp(me.source+(me.test(" ")?"":"| "),"g"),ze!=ds&&se.refresh()}),ie("specialCharPlaceholder",xi,function(se){return se.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(se,me){return se.getInputField().spellcheck=me},!0),ie("autocorrect",!1,function(se,me){return se.getInputField().autocorrect=me},!0),ie("autocapitalize",!1,function(se,me){return se.getInputField().autocapitalize=me},!0),ie("rtlMoveVisually",!b),ie("wholeLineUpdateBefore",!0),ie("theme","default",function(se){bs(se),Ts(se)},!0),ie("keyMap","default",function(se,me,ze){var It=ul(me),ir=ze!=ds&&ul(ze);ir&&ir.detach&&ir.detach(se,It),It.attach&&It.attach(se,ir||null)}),ie("extraKeys",null),ie("configureMouse",null),ie("lineWrapping",!1,ur,!0),ie("gutters",[],function(se,me){se.display.gutterSpecs=Go(me,se.options.lineNumbers),Ts(se)},!0),ie("fixedGutter",!0,function(se,me){se.display.gutters.style.left=me?To(se.display)+"px":"0",se.refresh()},!0),ie("coverGutterNextToScrollbar",!1,function(se){return No(se)},!0),ie("scrollbarStyle","native",function(se){Bs(se),No(se),se.display.scrollbars.setScrollTop(se.doc.scrollTop),se.display.scrollbars.setScrollLeft(se.doc.scrollLeft)},!0),ie("lineNumbers",!1,function(se,me){se.display.gutterSpecs=Go(se.options.gutters,me),Ts(se)},!0),ie("firstLineNumber",1,Ts,!0),ie("lineNumberFormatter",function(se){return se},Ts,!0),ie("showCursorWhenSelecting",!1,hn,!0),ie("resetSelectionOnContextMenu",!0),ie("lineWiseCopyCut",!0),ie("pasteLinesPerSelection",!0),ie("selectionsMayTouch",!1),ie("readOnly",!1,function(se,me){me=="nocursor"&&(gi(se),se.display.input.blur()),se.display.input.readOnlyChanged(me)}),ie("screenReaderLabel",null,function(se,me){me=me===""?null:me,se.display.input.screenReaderLabelChanged(me)}),ie("disableInput",!1,function(se,me){me||se.display.input.reset()},!0),ie("dragDrop",!0,St),ie("allowDropFileTypes",null),ie("cursorBlinkRate",530),ie("cursorScrollMargin",0),ie("cursorHeight",1,hn,!0),ie("singleCursorHeightPerLine",!0,hn,!0),ie("workTime",100),ie("workDelay",100),ie("flattenSpans",!0,li,!0),ie("addModeClass",!1,li,!0),ie("pollInterval",100),ie("undoDepth",200,function(se,me){return se.doc.history.undoDepth=me}),ie("historyEventDelay",1250),ie("viewportMargin",10,function(se){return se.refresh()},!0),ie("maxHighlightLength",1e4,li,!0),ie("moveInputWithCursor",!0,function(se,me){me||se.display.input.resetPosition()}),ie("tabindex",null,function(se,me){return se.display.input.getField().tabIndex=me||""}),ie("autofocus",null),ie("direction","ltr",function(se,me){return se.doc.setDirection(me)},!0),ie("phrases",null)}function St(N,j,ie){var se=ie&&ie!=ds;if(!j!=!se){var me=N.display.dragFunctions,ze=j?Fe:et;ze(N.display.scroller,"dragstart",me.start),ze(N.display.scroller,"dragenter",me.enter),ze(N.display.scroller,"dragover",me.over),ze(N.display.scroller,"dragleave",me.leave),ze(N.display.scroller,"drop",me.drop)}}function ur(N){N.options.lineWrapping?(X(N.display.wrapper,"CodeMirror-wrap"),N.display.sizer.style.minWidth="",N.display.sizerWidth=null):(E(N.display.wrapper,"CodeMirror-wrap"),Dn(N)),Vo(N),ja(N),Ga(N),setTimeout(function(){return No(N)},100)}function Br(N,j){var ie=this;if(!(this instanceof Br))return new Br(N,j);this.options=j=j?U(j):{},U(rl,j,!1);var se=j.value;typeof se=="string"?se=new Sl(se,j.mode,null,j.lineSeparator,j.direction):j.mode&&(se.modeOption=j.mode),this.doc=se;var me=new Br.inputStyles[j.inputStyle](this),ze=this.display=new Ns(N,se,me,j);ze.wrapper.CodeMirror=this,bs(this),j.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Bs(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},j.autofocus&&!h&&ze.input.focus(),d&&l<11&&setTimeout(function(){return ie.display.input.reset(!0)},20),on(this),pu(),ns(this),this.curOp.forceUpdate=!0,ua(this,se),j.autofocus&&!h||this.hasFocus()?setTimeout(function(){ie.hasFocus()&&!ie.state.focused&&Ei(ie)},20):gi(this);for(var It in xe)xe.hasOwnProperty(It)&&xe[It](this,j[It],ds);Us(this),j.finishInit&&j.finishInit(this);for(var ir=0;ir<je.length;++ir)je[ir](this);co(this),o&&j.lineWrapping&&getComputedStyle(ze.lineDiv).textRendering=="optimizelegibility"&&(ze.lineDiv.style.textRendering="auto")}Br.defaults=rl,Br.optionHandlers=xe;function on(N){var j=N.display;Fe(j.scroller,"mousedown",Jo(N,Pn)),d&&l<11?Fe(j.scroller,"dblclick",Jo(N,function(wr){if(Ht(N,wr))return;var Or=Lo(N,wr);if(!Or||Ua(N,wr)||$n(N.display,wr))return;Ke(wr);var Bn=N.findWordAt(Or);Ps(N.doc,Bn.anchor,Bn.head)})):Fe(j.scroller,"dblclick",function(wr){return Ht(N,wr)||Ke(wr)}),Fe(j.scroller,"contextmenu",function(wr){return ba(N,wr)}),Fe(j.input.getField(),"contextmenu",function(wr){j.scroller.contains(wr.target)||ba(N,wr)});var ie,se={end:0};function me(){j.activeTouch&&(ie=setTimeout(function(){return j.activeTouch=null},1e3),se=j.activeTouch,se.end=+new Date)}function ze(wr){if(wr.touches.length!=1)return!1;var Or=wr.touches[0];return Or.radiusX<=1&&Or.radiusY<=1}function It(wr,Or){if(Or.left==null)return!0;var Bn=Or.left-wr.left,ti=Or.top-wr.top;return Bn*Bn+ti*ti>20*20}Fe(j.scroller,"touchstart",function(wr){if(!Ht(N,wr)&&!ze(wr)&&!Ua(N,wr)){j.input.ensurePolled(),clearTimeout(ie);var Or=+new Date;j.activeTouch={start:Or,moved:!1,prev:Or-se.end<=300?se:null},wr.touches.length==1&&(j.activeTouch.left=wr.touches[0].pageX,j.activeTouch.top=wr.touches[0].pageY)}}),Fe(j.scroller,"touchmove",function(){j.activeTouch&&(j.activeTouch.moved=!0)}),Fe(j.scroller,"touchend",function(wr){var Or=j.activeTouch;if(Or&&!$n(j,wr)&&Or.left!=null&&!Or.moved&&new Date-Or.start<300){var Bn=N.coordsChar(j.activeTouch,"page"),ti;!Or.prev||It(Or,Or.prev)?ti=new ce(Bn,Bn):!Or.prev.prev||It(Or,Or.prev.prev)?ti=N.findWordAt(Bn):ti=new ce(Gt(Bn.line,0),Mt(N.doc,Gt(Bn.line+1,0))),N.setSelection(ti.anchor,ti.head),N.focus(),Ke(wr)}me()}),Fe(j.scroller,"touchcancel",me),Fe(j.scroller,"scroll",function(){j.scroller.clientHeight&&(Sa(N,j.scroller.scrollTop),Ka(N,j.scroller.scrollLeft,!0),wt(N,"scroll",N))}),Fe(j.scroller,"mousewheel",function(wr){return hi(N,wr)}),Fe(j.scroller,"DOMMouseScroll",function(wr){return hi(N,wr)}),Fe(j.wrapper,"scroll",function(){return j.wrapper.scrollTop=j.wrapper.scrollLeft=0}),j.dragFunctions={enter:function(Or){Ht(N,Or)||lt(Or)},over:function(Or){Ht(N,Or)||(Pl(N,Or),lt(Or))},start:function(Or){return $l(N,Or)},drop:Jo(N,Ll),leave:function(Or){Ht(N,Or)||fu(N)}};var ir=j.input.getField();Fe(ir,"keyup",function(wr){return ut.call(N,wr)}),Fe(ir,"keydown",Jo(N,_e)),Fe(ir,"keypress",Jo(N,ht)),Fe(ir,"focus",function(wr){return Ei(N,wr)}),Fe(ir,"blur",function(wr){return gi(N,wr)})}var je=[];Br.defineInitHook=function(N){return je.push(N)};function ae(N,j,ie,se){var me=N.doc,ze;ie==null&&(ie="add"),ie=="smart"&&(me.mode.indent?ze=ri(N,j).state:ie="prev");var It=N.options.tabSize,ir=Be(me,j),wr=V(ir.text,null,It);ir.stateAfter&&(ir.stateAfter=null);var Or=ir.text.match(/^\s*/)[0],Bn;if(!se&&!/\S/.test(ir.text))Bn=0,ie="not";else if(ie=="smart"&&(Bn=me.mode.indent(ze,ir.text.slice(Or.length),ir.text),Bn==$||Bn>150)){if(!se)return;ie="prev"}ie=="prev"?j>me.first?Bn=V(Be(me,j-1).text,null,It):Bn=0:ie=="add"?Bn=wr+N.options.indentUnit:ie=="subtract"?Bn=wr-N.options.indentUnit:typeof ie=="number"&&(Bn=wr+ie),Bn=Math.max(0,Bn);var ti="",Si=0;if(N.options.indentWithTabs)for(var Oi=Math.floor(Bn/It);Oi;--Oi)Si+=It,ti+=" ";if(Si<Bn&&(ti+=Je(Bn-Si)),ti!=Or)return Dl(me,ti,Gt(j,0),Gt(j,Or.length),"+input"),ir.stateAfter=null,!0;for(var oa=0;oa<me.sel.ranges.length;oa++){var Ta=me.sel.ranges[oa];if(Ta.head.line==j&&Ta.head.ch<Or.length){var Ha=Gt(j,Or.length);Ys(me,oa,new ce(Ha,Ha));break}}}var Oe=null;function Ze(N){Oe=N}function yt(N,j,ie,se,me){var ze=N.doc;N.display.shift=!1,se||(se=ze.sel);var It=+new Date-200,ir=me=="paste"||N.state.pasteIncoming>It,wr=cn(j),Or=null;if(ir&&se.ranges.length>1)if(Oe&&Oe.text.join(`
`)==j){if(se.ranges.length%Oe.text.length==0){Or=[];for(var Bn=0;Bn<Oe.text.length;Bn++)Or.push(ze.splitLines(Oe.text[Bn]))}}else wr.length==se.ranges.length&&N.options.pasteLinesPerSelection&&(Or=ct(wr,function(Ba){return[Ba]}));for(var ti=N.curOp.updateInput,Si=se.ranges.length-1;Si>=0;Si--){var Oi=se.ranges[Si],oa=Oi.from(),Ta=Oi.to();Oi.empty()&&(ie&&ie>0?oa=Gt(oa.line,oa.ch-ie):N.state.overwrite&&!ir?Ta=Gt(Ta.line,Math.min(Be(ze,Ta.line).text.length,Ta.ch+Ve(wr).length)):ir&&Oe&&Oe.lineWise&&Oe.text.join(`
`)==wr.join(`
`)&&(oa=Ta=Gt(oa.line,0)));var Ha={from:oa,to:Ta,text:Or?Or[Si%Or.length]:wr,origin:me||(ir?"paste":N.state.cutIncoming>It?"cut":"+input")};Is(N.doc,Ha),kr(N,"inputRead",N,Ha)}j&&!ir&&tr(N,j),Ma(N),N.curOp.updateInput<2&&(N.curOp.updateInput=ti),N.curOp.typing=!0,N.state.pasteIncoming=N.state.cutIncoming=-1}function Xt(N,j){var ie=N.clipboardData&&N.clipboardData.getData("Text");if(ie)return N.preventDefault(),!j.isReadOnly()&&!j.options.disableInput&&zo(j,function(){return yt(j,ie,0,null,"paste")}),!0}function tr(N,j){if(!N.options.electricChars||!N.options.smartIndent)return;for(var ie=N.doc.sel,se=ie.ranges.length-1;se>=0;se--){var me=ie.ranges[se];if(me.head.ch>100||se&&ie.ranges[se-1].head.line==me.head.line)continue;var ze=N.getModeAt(me.head),It=!1;if(ze.electricChars){for(var ir=0;ir<ze.electricChars.length;ir++)if(j.indexOf(ze.electricChars.charAt(ir))>-1){It=ae(N,me.head.line,"smart");break}}else ze.electricInput&&(ze.electricInput.test(Be(N.doc,me.head.line).text.slice(0,me.head.ch))&&(It=ae(N,me.head.line,"smart")));It&&kr(N,"electricInput",N,me.head.line)}}function or(N){for(var j=[],ie=[],se=0;se<N.doc.sel.ranges.length;se++){var me=N.doc.sel.ranges[se].head.line,ze={anchor:Gt(me,0),head:Gt(me+1,0)};ie.push(ze),j.push(N.getRange(ze.anchor,ze.head))}return{text:j,ranges:ie}}function Wr(N,j,ie,se){N.setAttribute("autocorrect",ie?"":"off"),N.setAttribute("autocapitalize",se?"":"off"),N.setAttribute("spellcheck",!!j)}function un(){var N=_("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),j=_("div",[N],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return o?N.style.width="1000px":N.setAttribute("wrap","off"),s&&(N.style.border="1px solid black"),Wr(N),j}function zr(N){var j=N.optionHandlers,ie=N.helpers={};N.prototype={constructor:N,focus:function(){window.focus(),this.display.input.focus()},setOption:function(me,ze){var It=this.options,ir=It[me];if(It[me]==ze&&me!="mode")return;It[me]=ze,j.hasOwnProperty(me)&&Jo(this,j[me])(this,ze,ir),wt(this,"optionChange",this,me)},getOption:function(me){return this.options[me]},getDoc:function(){return this.doc},addKeyMap:function(me,ze){this.state.keyMaps[ze?"push":"unshift"](ul(me))},removeKeyMap:function(me){for(var ze=this.state.keyMaps,It=0;It<ze.length;++It)if(ze[It]==me||ze[It].name==me)return ze.splice(It,1),!0},addOverlay:ks(function(se,me){var ze=se.token?se:N.getMode(this.options,se);if(ze.startState)throw new Error("Overlays may not be stateful.");Ue(this.state.overlays,{mode:ze,modeSpec:se,opaque:me&&me.opaque,priority:me&&me.priority||0},function(It){return It.priority}),this.state.modeGen++,ja(this)}),removeOverlay:ks(function(se){for(var me=this.state.overlays,ze=0;ze<me.length;++ze){var It=me[ze].modeSpec;if(It==se||typeof se=="string"&&It.name==se){me.splice(ze,1),this.state.modeGen++,ja(this);return}}}),indentLine:ks(function(se,me,ze){typeof me!="string"&&typeof me!="number"&&(me==null?me=this.options.smartIndent?"smart":"prev":me=me?"add":"subtract"),qr(this.doc,se)&&ae(this,se,me,ze)}),indentSelection:ks(function(se){for(var me=this.doc.sel.ranges,ze=-1,It=0;It<me.length;It++){var ir=me[It];if(ir.empty())ir.head.line>ze&&(ae(this,ir.head.line,se,!0),ze=ir.head.line,It==this.doc.sel.primIndex&&Ma(this));else{var wr=ir.from(),Or=ir.to(),Bn=Math.max(ze,wr.line);ze=Math.min(this.lastLine(),Or.line-(Or.ch?0:1))+1;for(var ti=Bn;ti<ze;++ti)ae(this,ti,se);var Si=this.doc.sel.ranges;wr.ch==0&&me.length==Si.length&&Si[It].from().ch>0&&Ys(this.doc,It,new ce(wr,Si[It].to()),le)}}}),getTokenAt:function(me,ze){return zi(this,me,ze)},getLineTokens:function(me,ze){return zi(this,Gt(me),ze,!0)},getTokenTypeAt:function(me){me=Mt(this.doc,me);var ze=gn(this,Be(this.doc,me.line)),It=0,ir=(ze.length-1)/2,wr=me.ch,Or;if(wr==0)Or=ze[2];else for(;;){var Bn=It+ir>>1;if((Bn?ze[Bn*2-1]:0)>=wr)ir=Bn;else if(ze[Bn*2+1]<wr)It=Bn+1;else{Or=ze[Bn*2+2];break}}var ti=Or?Or.indexOf("overlay "):-1;return ti<0?Or:ti==0?null:Or.slice(0,ti-1)},getModeAt:function(me){var ze=this.doc.mode;return ze.innerMode?N.innerMode(ze,this.getTokenAt(me).state).mode:ze},getHelper:function(me,ze){return this.getHelpers(me,ze)[0]},getHelpers:function(me,ze){var It=[];if(!ie.hasOwnProperty(ze))return It;var ir=ie[ze],wr=this.getModeAt(me);if(typeof wr[ze]=="string")ir[wr[ze]]&&It.push(ir[wr[ze]]);else if(wr[ze])for(var Or=0;Or<wr[ze].length;Or++){var Bn=ir[wr[ze][Or]];Bn&&It.push(Bn)}else wr.helperType&&ir[wr.helperType]?It.push(ir[wr.helperType]):ir[wr.name]&&It.push(ir[wr.name]);for(var ti=0;ti<ir._global.length;ti++){var Si=ir._global[ti];Si.pred(wr,this)&&G(It,Si.val)==-1&&It.push(Si.val)}return It},getStateAfter:function(me,ze){var It=this.doc;return me=er(It,me==null?It.first+It.size-1:me),ri(this,me+1,ze).state},cursorCoords:function(me,ze){var It,ir=this.doc.sel.primary();return me==null?It=ir.head:typeof me=="object"?It=Mt(this.doc,me):It=me?ir.from():ir.to(),mo(this,It,ze||"page")},charCoords:function(me,ze){return $i(this,Mt(this.doc,me),ze||"page")},coordsChar:function(me,ze){return me=uo(this,me,ze||"page"),Co(this,me.left,me.top)},lineAtHeight:function(me,ze){return me=uo(this,{top:me,left:0},ze||"page").top,Pr(this.doc,me+this.display.viewOffset)},heightAtLine:function(me,ze,It){var ir=!1,wr;if(typeof me=="number"){var Or=this.doc.first+this.doc.size-1;me<this.doc.first?me=this.doc.first:me>Or&&(me=Or,ir=!0),wr=Be(this.doc,me)}else wr=me;return io(this,wr,{top:0,left:0},ze||"page",It||ir).top+(ir?this.doc.height-Dr(wr):0)},defaultTextHeight:function(){return Io(this.display)},defaultCharWidth:function(){return Mo(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(me,ze,It,ir,wr){var Or=this.display;me=mo(this,Mt(this.doc,me));var Bn=me.bottom,ti=me.left;if(ze.style.position="absolute",ze.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(ze),Or.sizer.appendChild(ze),ir=="over")Bn=me.top;else if(ir=="above"||ir=="near"){var Si=Math.max(Or.wrapper.clientHeight,this.doc.height),Oi=Math.max(Or.sizer.clientWidth,Or.lineSpace.clientWidth);(ir=="above"||me.bottom+ze.offsetHeight>Si)&&me.top>ze.offsetHeight?Bn=me.top-ze.offsetHeight:me.bottom+ze.offsetHeight<=Si&&(Bn=me.bottom),ti+ze.offsetWidth>Oi&&(ti=Oi-ze.offsetWidth)}ze.style.top=Bn+"px",ze.style.left=ze.style.right="",wr=="right"?(ti=Or.sizer.clientWidth-ze.offsetWidth,ze.style.right="0px"):(wr=="left"?ti=0:wr=="middle"&&(ti=(Or.sizer.clientWidth-ze.offsetWidth)/2),ze.style.left=ti+"px"),It&&za(this,{left:ti,top:Bn,right:ti+ze.offsetWidth,bottom:Bn+ze.offsetHeight})},triggerOnKeyDown:ks(_e),triggerOnKeyPress:ks(ht),triggerOnKeyUp:ut,triggerOnMouseDown:ks(Pn),execCommand:function(me){if(ou.hasOwnProperty(me))return ou[me].call(null,this)},triggerElectric:ks(function(se){tr(this,se)}),findPosH:function(me,ze,It,ir){var wr=1;ze<0&&(wr=-1,ze=-ze);for(var Or=Mt(this.doc,me),Bn=0;Bn<ze&&!(Or=jr(this.doc,Or,wr,It,ir),Or.hitSide);++Bn);return Or},moveH:ks(function(se,me){var ze=this;this.extendSelectionsBy(function(It){return ze.display.shift||ze.doc.extend||It.empty()?jr(ze.doc,It.head,se,me,ze.options.rtlMoveVisually):se<0?It.from():It.to()},Se)}),deleteH:ks(function(se,me){var ze=this.doc.sel,It=this.doc;ze.somethingSelected()?It.replaceSelection("",null,"+delete"):Ol(this,function(ir){var wr=jr(It,ir.head,se,me,!1);return se<0?{from:wr,to:ir.head}:{from:ir.head,to:wr}})}),findPosV:function(me,ze,It,ir){var wr=1,Or=ir;ze<0&&(wr=-1,ze=-ze);for(var Bn=Mt(this.doc,me),ti=0;ti<ze;++ti){var Si=mo(this,Bn,"div");if(Or==null?Or=Si.left:Si.left=Or,Bn=sn(this,Si,wr,It),Bn.hitSide)break}return Bn},moveV:ks(function(se,me){var ze=this,It=this.doc,ir=[],wr=!this.display.shift&&!It.extend&&It.sel.somethingSelected();if(It.extendSelectionsBy(function(Bn){if(wr)return se<0?Bn.from():Bn.to();var ti=mo(ze,Bn.head,"div");Bn.goalColumn!=null&&(ti.left=Bn.goalColumn),ir.push(ti.left);var Si=sn(ze,ti,se,me);return me=="page"&&Bn==It.sel.primary()&&xa(ze,$i(ze,Si,"div").top-ti.top),Si},Se),ir.length)for(var Or=0;Or<It.sel.ranges.length;Or++)It.sel.ranges[Or].goalColumn=ir[Or]}),findWordAt:function(me){var ze=this.doc,It=Be(ze,me.line).text,ir=me.ch,wr=me.ch;if(It){var Or=this.getHelper(me,"wordChars");(me.sticky=="before"||wr==It.length)&&ir?--ir:++wr;for(var Bn=It.charAt(ir),ti=Y(Bn,Or)?function(Si){return Y(Si,Or)}:/\s/.test(Bn)?function(Si){return/\s/.test(Si)}:function(Si){return!/\s/.test(Si)&&!Y(Si)};ir>0&&ti(It.charAt(ir-1));)--ir;for(;wr<It.length&&ti(It.charAt(wr));)++wr}return new ce(Gt(me.line,ir),Gt(me.line,wr))},toggleOverwrite:function(me){if(me!=null&&me==this.state.overwrite)return;(this.state.overwrite=!this.state.overwrite)?X(this.display.cursorDiv,"CodeMirror-overwrite"):E(this.display.cursorDiv,"CodeMirror-overwrite"),wt(this,"overwriteToggle",this,this.state.overwrite)},hasFocus:function(){return this.display.input.getField()==M()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:ks(function(se,me){Pa(this,se,me)}),getScrollInfo:function(){var me=this.display.scroller;return{left:me.scrollLeft,top:me.scrollTop,height:me.scrollHeight-vi(this)-this.display.barHeight,width:me.scrollWidth-vi(this)-this.display.barWidth,clientHeight:Gi(this),clientWidth:Bi(this)}},scrollIntoView:ks(function(se,me){se==null?(se={from:this.doc.sel.primary().head,to:null},me==null&&(me=this.options.cursorScrollMargin)):typeof se=="number"?se={from:Gt(se,0),to:null}:se.from==null&&(se={from:se,to:null}),se.to||(se.to=se.from),se.margin=me||0,se.from.line!=null?Wo(this,se):pa(this,se.from,se.to,se.margin)}),setSize:ks(function(se,me){var ze=this,It=function(Or){return typeof Or=="number"||/^\d+$/.test(String(Or))?Or+"px":Or};se!=null&&(this.display.wrapper.style.width=It(se)),me!=null&&(this.display.wrapper.style.height=It(me)),this.options.lineWrapping&&ya(this);var ir=this.display.viewFrom;this.doc.iter(ir,this.display.viewTo,function(wr){if(wr.widgets){for(var Or=0;Or<wr.widgets.length;Or++)if(wr.widgets[Or].noHScroll){mt(ze,ir,"widget");break}}++ir}),this.curOp.forceUpdate=!0,wt(this,"refresh",this)}),operation:function(me){return zo(this,me)},startOperation:function(){return ns(this)},endOperation:function(){return co(this)},refresh:ks(function(){var se=this.display.cachedTextHeight;ja(this),this.curOp.forceUpdate=!0,Ga(this),Pa(this,this.doc.scrollLeft,this.doc.scrollTop),Es(this.display),(se==null||Math.abs(se-Io(this.display))>.5||this.options.lineWrapping)&&Vo(this),wt(this,"refresh",this)}),swapDoc:ks(function(se){var me=this.doc;return me.cm=null,this.state.selectingText&&this.state.selectingText(),ua(this,se),Ga(this),this.display.input.reset(),Pa(this,se.scrollLeft,se.scrollTop),this.curOp.forceScroll=!0,kr(this,"swapDoc",this,me),me}),phrase:function(me){var ze=this.options.phrases;return ze&&Object.prototype.hasOwnProperty.call(ze,me)?ze[me]:me},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}},Bt(N),N.registerHelper=function(se,me,ze){ie.hasOwnProperty(se)||(ie[se]=N[se]={_global:[]}),ie[se][me]=ze},N.registerGlobalHelper=function(se,me,ze,It){N.registerHelper(se,me,It),ie[se]._global.push({pred:ze,val:It})}}function jr(N,j,ie,se,me){var ze=j,It=ie,ir=Be(N,j.line),wr=me&&N.direction=="rtl"?-ie:ie;function Or(){var Na=j.line+wr;return Na<N.first||Na>=N.first+N.size?!1:(j=new Gt(Na,j.ch,j.sticky),ir=Be(N,Na))}function Bn(Na){var $a;if(se=="codepoint"){var fo=ir.text.charCodeAt(j.ch+(se>0?0:-1));isNaN(fo)?$a=null:$a=new Gt(j.line,Math.max(0,Math.min(ir.text.length,j.ch+ie*(fo>=55296&&fo<56320?2:1))),-ie)}else me?$a=cu(N.cm,ir,j,ie):$a=Du(ir,j,ie);if($a==null)if(!Na&&Or())j=Su(me,N.cm,ir,j.line,wr);else return!1;else j=$a;return!0}if(se=="char"||se=="codepoint")Bn();else if(se=="column")Bn(!0);else if(se=="word"||se=="group")for(var ti=null,Si=se=="group",Oi=N.cm&&N.cm.getHelper(j,"wordChars"),oa=!0;!(ie<0&&!Bn(!oa));oa=!1){var Ta=ir.text.charAt(j.ch)||`
`,Ha=Y(Ta,Oi)?"w":Si&&Ta==`
`?"n":!Si||/\s/.test(Ta)?null:"p";if(Si&&!oa&&!Ha&&(Ha="s"),ti&&ti!=Ha){ie<0&&(ie=1,Bn(),j.sticky="after");break}if(Ha&&(ti=Ha),ie>0&&!Bn(!oa))break}var Ba=$o(N,j,ze,It,!0);return bt(ze,Ba)&&(Ba.hitSide=!0),Ba}function sn(N,j,ie,se){var me=N.doc,ze=j.left,It;if(se=="page"){var ir=Math.min(N.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),wr=Math.max(ir-.5*Io(N.display),3);It=(ie>0?j.bottom:j.top)+ie*wr}else se=="line"&&(It=ie>0?j.bottom+3:j.top-3);for(var Or;!(Or=Co(N,ze,It),!Or.outside);){if(ie<0?It<=0:It>=me.height){Or.hitSide=!0;break}It+=ie*5}return Or}var vn=function(j){this.cm=j,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Q,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};vn.prototype.init=function(N){var j=this,ie=this,se=ie.cm,me=ie.div=N.lineDiv;Wr(me,se.options.spellcheck,se.options.autocorrect,se.options.autocapitalize);function ze(ir){for(var wr=ir.target;wr;wr=wr.parentNode){if(wr==me)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(wr.className))break}return!1}Fe(me,"paste",function(ir){if(!ze(ir)||Ht(se,ir)||Xt(ir,se))return;l<=11&&setTimeout(Jo(se,function(){return j.updateFromDOM()}),20)}),Fe(me,"compositionstart",function(ir){j.composing={data:ir.data,done:!1}}),Fe(me,"compositionupdate",function(ir){j.composing||(j.composing={data:ir.data,done:!1})}),Fe(me,"compositionend",function(ir){j.composing&&(ir.data!=j.composing.data&&j.readFromDOMSoon(),j.composing.done=!0)}),Fe(me,"touchstart",function(){return ie.forceCompositionEnd()}),Fe(me,"input",function(){j.composing||j.readFromDOMSoon()});function It(ir){if(!ze(ir)||Ht(se,ir))return;if(se.somethingSelected())Ze({lineWise:!1,text:se.getSelections()}),ir.type=="cut"&&se.replaceSelection("",null,"cut");else if(se.options.lineWiseCopyCut){var wr=or(se);Ze({lineWise:!0,text:wr.text}),ir.type=="cut"&&se.operation(function(){se.setSelections(wr.ranges,0,le),se.replaceSelection("",null,"cut")})}else return;if(ir.clipboardData){ir.clipboardData.clearData();var Or=Oe.text.join(`
`);if(ir.clipboardData.setData("Text",Or),ir.clipboardData.getData("Text")==Or){ir.preventDefault();return}}var Bn=un(),ti=Bn.firstChild;se.display.lineSpace.insertBefore(Bn,se.display.lineSpace.firstChild),ti.value=Oe.text.join(`
`);var Si=document.activeElement;z(ti),setTimeout(function(){se.display.lineSpace.removeChild(Bn),Si.focus(),Si==me&&ie.showPrimarySelection()},50)}Fe(me,"copy",It),Fe(me,"cut",It)},vn.prototype.screenReaderLabelChanged=function(N){N?this.div.setAttribute("aria-label",N):this.div.removeAttribute("aria-label")},vn.prototype.prepareSelection=function(){var N=Xr(this.cm,!1);return N.focus=document.activeElement==this.div,N},vn.prototype.showSelection=function(N,j){if(!N||!this.cm.display.view.length)return;(N.focus||j)&&this.showPrimarySelection(),this.showMultipleSelections(N)},vn.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},vn.prototype.showPrimarySelection=function(){var N=this.getSelection(),j=this.cm,ie=j.doc.sel.primary(),se=ie.from(),me=ie.to();if(j.display.viewTo==j.display.viewFrom||se.line>=j.display.viewTo||me.line<j.display.viewFrom){N.removeAllRanges();return}var ze=Zi(j,N.anchorNode,N.anchorOffset),It=Zi(j,N.focusNode,N.focusOffset);if(ze&&!ze.bad&&It&&!It.bad&&vt(Ut(ze,It),se)==0&&vt(Jt(ze,It),me)==0)return;var ir=j.display.view,wr=se.line>=j.display.viewFrom&&Un(j,se)||{node:ir[0].measure.map[2],offset:0},Or=me.line<j.display.viewTo&&Un(j,me);if(!Or){var Bn=ir[ir.length-1].measure,ti=Bn.maps?Bn.maps[Bn.maps.length-1]:Bn.map;Or={node:ti[ti.length-1],offset:ti[ti.length-2]-ti[ti.length-3]}}if(!wr||!Or){N.removeAllRanges();return}var Si=N.rangeCount&&N.getRangeAt(0),Oi;try{Oi=R(wr.node,wr.offset,Or.offset,Or.node)}catch(oa){}Oi&&(!S&&j.state.focused?(N.collapse(wr.node,wr.offset),Oi.collapsed||(N.removeAllRanges(),N.addRange(Oi))):(N.removeAllRanges(),N.addRange(Oi)),Si&&N.anchorNode==null?N.addRange(Si):S&&this.startGracePeriod()),this.rememberSelection()},vn.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)},vn.prototype.showMultipleSelections=function(N){I(this.cm.display.cursorDiv,N.cursors),I(this.cm.display.selectionDiv,N.selection)},vn.prototype.rememberSelection=function(){var N=this.getSelection();this.lastAnchorNode=N.anchorNode,this.lastAnchorOffset=N.anchorOffset,this.lastFocusNode=N.focusNode,this.lastFocusOffset=N.focusOffset},vn.prototype.selectionInEditor=function(){var N=this.getSelection();if(!N.rangeCount)return!1;var j=N.getRangeAt(0).commonAncestorContainer;return B(this.div,j)},vn.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},vn.prototype.blur=function(){this.div.blur()},vn.prototype.getField=function(){return this.div},vn.prototype.supportsTouch=function(){return!0},vn.prototype.receivedFocus=function(){var N=this;this.selectionInEditor()?this.pollSelection():zo(this.cm,function(){return N.cm.curOp.selectionChanged=!0});function j(){N.cm.state.focused&&(N.pollSelection(),N.polling.set(N.cm.options.pollInterval,j))}this.polling.set(this.cm.options.pollInterval,j)},vn.prototype.selectionChanged=function(){var N=this.getSelection();return N.anchorNode!=this.lastAnchorNode||N.anchorOffset!=this.lastAnchorOffset||N.focusNode!=this.lastFocusNode||N.focusOffset!=this.lastFocusOffset},vn.prototype.pollSelection=function(){if(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())return;var N=this.getSelection(),j=this.cm;if(c&&t&&this.cm.display.gutterSpecs.length&&Ii(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=Zi(j,N.anchorNode,N.anchorOffset),se=Zi(j,N.focusNode,N.focusOffset);ie&&se&&zo(j,function(){Os(j.doc,Le(ie,se),le),(ie.bad||se.bad)&&(j.curOp.selectionChanged=!0)})},vn.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var N=this.cm,j=N.display,ie=N.doc.sel.primary(),se=ie.from(),me=ie.to();if(se.ch==0&&se.line>N.firstLine()&&(se=Gt(se.line-1,Be(N.doc,se.line-1).length)),me.ch==Be(N.doc,me.line).text.length&&me.line<N.lastLine()&&(me=Gt(me.line+1,0)),se.line<j.viewFrom||me.line>j.viewTo-1)return!1;var ze,It,ir;se.line==j.viewFrom||(ze=ho(N,se.line))==0?(It=Yt(j.view[0].line),ir=j.view[0].node):(It=Yt(j.view[ze].line),ir=j.view[ze-1].node.nextSibling);var wr=ho(N,me.line),Or,Bn;if(wr==j.view.length-1?(Or=j.viewTo-1,Bn=j.lineDiv.lastChild):(Or=Yt(j.view[wr+1].line)-1,Bn=j.view[wr+1].node.previousSibling),!ir)return!1;for(var ti=N.doc.splitLines(la(N,ir,Bn,It,Or)),Si=at(N.doc,Gt(It,0),Gt(Or,Be(N.doc,Or).text.length));ti.length>1&&Si.length>1;)if(Ve(ti)==Ve(Si))ti.pop(),Si.pop(),Or--;else if(ti[0]==Si[0])ti.shift(),Si.shift(),It++;else break;for(var Oi=0,oa=0,Ta=ti[0],Ha=Si[0],Ba=Math.min(Ta.length,Ha.length);Oi<Ba&&Ta.charCodeAt(Oi)==Ha.charCodeAt(Oi);)++Oi;for(var Na=Ve(ti),$a=Ve(Si),fo=Math.min(Na.length-(ti.length==1?Oi:0),$a.length-(Si.length==1?Oi:0));oa<fo&&Na.charCodeAt(Na.length-oa-1)==$a.charCodeAt($a.length-oa-1);)++oa;if(ti.length==1&&Si.length==1&&It==se.line)for(;Oi&&Oi>se.ch&&Na.charCodeAt(Na.length-oa-1)==$a.charCodeAt($a.length-oa-1);)Oi--,oa++;ti[ti.length-1]=Na.slice(0,Na.length-oa).replace(/^\u200b+/,""),ti[0]=ti[0].slice(Oi).replace(/\u200b+$/,"");var es=Gt(It,Oi),Bo=Gt(Or,Si.length?Ve(Si).length-oa:0);if(ti.length>1||ti[0]||vt(es,Bo))return Dl(N.doc,ti,es,Bo,"+input"),!0},vn.prototype.ensurePolled=function(){this.forceCompositionEnd()},vn.prototype.reset=function(){this.forceCompositionEnd()},vn.prototype.forceCompositionEnd=function(){if(!this.composing)return;clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus()},vn.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)},vn.prototype.updateFromDOM=function(){var N=this;(this.cm.isReadOnly()||!this.pollContent())&&zo(this.cm,function(){return ja(N.cm)})},vn.prototype.setUneditable=function(N){N.contentEditable="false"},vn.prototype.onKeyPress=function(N){if(N.charCode==0||this.composing)return;N.preventDefault(),this.cm.isReadOnly()||Jo(this.cm,yt)(this.cm,String.fromCharCode(N.charCode==null?N.keyCode:N.charCode),0)},vn.prototype.readOnlyChanged=function(N){this.div.contentEditable=String(N!="nocursor")},vn.prototype.onContextMenu=function(){},vn.prototype.resetPosition=function(){},vn.prototype.needsContentAttribute=!0;function Un(N,j){var ie=Qi(N,j.line);if(!ie||ie.hidden)return null;var se=Be(N.doc,j.line),me=Pi(ie,se,j.line),ze=pt(se,N.doc.direction),It="left";if(ze){var ir=Ie(ze,j.ch);It=ir%2?"right":"left"}var wr=Da(me.map,j.ch,It);return wr.offset=wr.collapse=="right"?wr.end:wr.start,wr}function Ii(N){for(var j=N;j;j=j.parentNode)if(/CodeMirror-gutter-wrapper/.test(j.className))return!0;return!1}function ki(N,j){return j&&(N.bad=!0),N}function la(N,j,ie,se,me){var ze="",It=!1,ir=N.doc.lineSeparator(),wr=!1;function Or(Oi){return function(oa){return oa.id==Oi}}function Bn(){It&&(ze+=ir,wr&&(ze+=ir),It=wr=!1)}function ti(Oi){Oi&&(Bn(),ze+=Oi)}function Si(Oi){if(Oi.nodeType==1){var oa=Oi.getAttribute("cm-text");if(oa){ti(oa);return}var Ta=Oi.getAttribute("cm-marker"),Ha;if(Ta){var Ba=N.findMarks(Gt(se,0),Gt(me+1,0),Or(+Ta));Ba.length&&(Ha=Ba[0].find(0))&&ti(at(N.doc,Ha.from,Ha.to).join(ir));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&&Bn();for(var $a=0;$a<Oi.childNodes.length;$a++)Si(Oi.childNodes[$a]);/^(pre|p)$/i.test(Oi.nodeName)&&(wr=!0),Na&&(It=!0)}else Oi.nodeType==3&&ti(Oi.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;!(Si(j),j==ie);)j=j.nextSibling,wr=!1;return ze}function Zi(N,j,ie){var se;if(j==N.display.lineDiv){if(se=N.display.lineDiv.childNodes[ie],!se)return ki(N.clipPos(Gt(N.display.viewTo-1)),!0);j=null,ie=0}else for(se=j;;se=se.parentNode){if(!se||se==N.display.lineDiv)return null;if(se.parentNode&&se.parentNode==N.display.lineDiv)break}for(var me=0;me<N.display.view.length;me++){var ze=N.display.view[me];if(ze.node==se)return Ya(ze,j,ie)}}function Ya(N,j,ie){var se=N.text.firstChild,me=!1;if(!j||!B(se,j))return ki(Gt(Yt(N.line),0),!0);if(j==se&&(me=!0,j=se.childNodes[ie],ie=0,!j)){var ze=N.rest?Ve(N.rest):N.line;return ki(Gt(Yt(ze),ze.text.length),me)}var It=j.nodeType==3?j:null,ir=j;for(!It&&j.childNodes.length==1&&j.firstChild.nodeType==3&&(It=j.firstChild,ie&&(ie=It.nodeValue.length));ir.parentNode!=se;)ir=ir.parentNode;var wr=N.measure,Or=wr.maps;function Bn(Ha,Ba,Na){for(var $a=-1;$a<(Or?Or.length:0);$a++)for(var fo=$a<0?wr.map:Or[$a],es=0;es<fo.length;es+=3){var Bo=fo[es+2];if(Bo==Ha||Bo==Ba){var Ss=Yt($a<0?N.line:N.rest[$a]),Qs=fo[es]+Na;return(Na<0||Bo!=Ha)&&(Qs=fo[es+(Na?1:0)]),Gt(Ss,Qs)}}}var ti=Bn(It,ir,ie);if(ti)return ki(ti,me);for(var Si=ir.nextSibling,Oi=It?It.nodeValue.length-ie:0;Si;Si=Si.nextSibling){if(ti=Bn(Si,Si.firstChild,0),ti)return ki(Gt(ti.line,ti.ch-Oi),me);Oi+=Si.textContent.length}for(var oa=ir.previousSibling,Ta=ie;oa;oa=oa.previousSibling){if(ti=Bn(oa,oa.firstChild,-1),ti)return ki(Gt(ti.line,ti.ch+Ta),me);Ta+=oa.textContent.length}}var wa=function(j){this.cm=j,this.prevInput="",this.pollingFast=!1,this.polling=new Q,this.hasSelection=!1,this.composing=null};wa.prototype.init=function(N){var j=this,ie=this,se=this.cm;this.createField(N);var me=this.textarea;N.wrapper.insertBefore(this.wrapper,N.wrapper.firstChild),s&&(me.style.width="0px"),Fe(me,"input",function(){d&&l>=9&&j.hasSelection&&(j.hasSelection=null),ie.poll()}),Fe(me,"paste",function(It){if(Ht(se,It)||Xt(It,se))return;se.state.pasteIncoming=+new Date,ie.fastPoll()});function ze(It){if(Ht(se,It))return;if(se.somethingSelected())Ze({lineWise:!1,text:se.getSelections()});else if(se.options.lineWiseCopyCut){var ir=or(se);Ze({lineWise:!0,text:ir.text}),It.type=="cut"?se.setSelections(ir.ranges,null,le):(ie.prevInput="",me.value=ir.text.join(`
`),z(me))}else return;It.type=="cut"&&(se.state.cutIncoming=+new Date)}Fe(me,"cut",ze),Fe(me,"copy",ze),Fe(N.scroller,"paste",function(It){if($n(N,It)||Ht(se,It))return;if(!me.dispatchEvent){se.state.pasteIncoming=+new Date,ie.focus();return}var ir=new Event("paste");ir.clipboardData=It.clipboardData,me.dispatchEvent(ir)}),Fe(N.lineSpace,"selectstart",function(It){$n(N,It)||Ke(It)}),Fe(me,"compositionstart",function(){var It=se.getCursor("from");ie.composing&&ie.composing.range.clear(),ie.composing={start:It,range:se.markText(It,se.getCursor("to"),{className:"CodeMirror-composing"})}}),Fe(me,"compositionend",function(){ie.composing&&(ie.poll(),ie.composing.range.clear(),ie.composing=null)})},wa.prototype.createField=function(N){this.wrapper=un(),this.textarea=this.wrapper.firstChild},wa.prototype.screenReaderLabelChanged=function(N){N?this.textarea.setAttribute("aria-label",N):this.textarea.removeAttribute("aria-label")},wa.prototype.prepareSelection=function(){var N=this.cm,j=N.display,ie=N.doc,se=Xr(N);if(N.options.moveInputWithCursor){var me=mo(N,ie.sel.primary().head,"div"),ze=j.wrapper.getBoundingClientRect(),It=j.lineDiv.getBoundingClientRect();se.teTop=Math.max(0,Math.min(j.wrapper.clientHeight-10,me.top+It.top-ze.top)),se.teLeft=Math.max(0,Math.min(j.wrapper.clientWidth-10,me.left+It.left-ze.left))}return se},wa.prototype.showSelection=function(N){var j=this.cm,ie=j.display;I(ie.cursorDiv,N.cursors),I(ie.selectionDiv,N.selection),N.teTop!=null&&(this.wrapper.style.top=N.teTop+"px",this.wrapper.style.left=N.teLeft+"px")},wa.prototype.reset=function(N){if(this.contextMenuPending||this.composing)return;var j=this.cm;if(j.somethingSelected()){this.prevInput="";var ie=j.getSelection();this.textarea.value=ie,j.state.focused&&z(this.textarea),d&&l>=9&&(this.hasSelection=ie)}else N||(this.prevInput=this.textarea.value="",d&&l>=9&&(this.hasSelection=null))},wa.prototype.getField=function(){return this.textarea},wa.prototype.supportsTouch=function(){return!1},wa.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!h||M()!=this.textarea))try{this.textarea.focus()}catch(N){}},wa.prototype.blur=function(){this.textarea.blur()},wa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},wa.prototype.receivedFocus=function(){this.slowPoll()},wa.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()})},wa.prototype.fastPoll=function(){var N=!1,j=this;j.pollingFast=!0;function ie(){var se=j.poll();!se&&!N?(N=!0,j.polling.set(60,ie)):(j.pollingFast=!1,j.slowPoll())}j.polling.set(20,ie)},wa.prototype.poll=function(){var N=this,j=this.cm,ie=this.textarea,se=this.prevInput;if(this.contextMenuPending||!j.state.focused||Ar(ie)&&!se&&!this.composing||j.isReadOnly()||j.options.disableInput||j.state.keySeq)return!1;var me=ie.value;if(me==se&&!j.somethingSelected())return!1;if(d&&l>=9&&this.hasSelection===me||g&&/[\uf700-\uf7ff]/.test(me))return j.display.input.reset(),!1;if(j.doc.sel==j.display.selForContextMenu){var ze=me.charCodeAt(0);if(ze==8203&&!se&&(se="\u200B"),ze==8666)return this.reset(),this.cm.execCommand("undo")}for(var It=0,ir=Math.min(se.length,me.length);It<ir&&se.charCodeAt(It)==me.charCodeAt(It);)++It;return zo(j,function(){yt(j,me.slice(It),se.length-It,null,N.composing?"*compose":null),me.length>1e3||me.indexOf(`
`)>-1?ie.value=N.prevInput="":N.prevInput=me,N.composing&&(N.composing.range.clear(),N.composing.range=j.markText(N.composing.start,j.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},wa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},wa.prototype.onKeyPress=function(){d&&l>=9&&(this.hasSelection=null),this.fastPoll()},wa.prototype.onContextMenu=function(N){var j=this,ie=j.cm,se=ie.display,me=j.textarea;j.contextMenuPending&&j.contextMenuPending();var ze=Lo(ie,N),It=se.scroller.scrollTop;if(!ze||a)return;var ir=ie.options.resetSelectionOnContextMenu;ir&&ie.doc.sel.contains(ze)==-1&&Jo(ie,Os)(ie.doc,Le(ze),le);var wr=me.style.cssText,Or=j.wrapper.style.cssText,Bn=j.wrapper.offsetParent.getBoundingClientRect();j.wrapper.style.cssText="position: static",me.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(N.clientY-Bn.top-5)+"px; left: "+(N.clientX-Bn.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 ti;o&&(ti=window.scrollY),se.input.focus(),o&&window.scrollTo(null,ti),se.input.reset(),ie.somethingSelected()||(me.value=j.prevInput=" "),j.contextMenuPending=Oi,se.selForContextMenu=ie.doc.sel,clearTimeout(se.detectingSelectAll);function Si(){if(me.selectionStart!=null){var Ta=ie.somethingSelected(),Ha="\u200B"+(Ta?me.value:"");me.value="\u21DA",me.value=Ha,j.prevInput=Ta?"":"\u200B",me.selectionStart=1,me.selectionEnd=Ha.length,se.selForContextMenu=ie.doc.sel}}function Oi(){if(j.contextMenuPending!=Oi)return;if(j.contextMenuPending=!1,j.wrapper.style.cssText=Or,me.style.cssText=wr,d&&l<9&&se.scrollbars.setScrollTop(se.scroller.scrollTop=It),me.selectionStart!=null){(!d||d&&l<9)&&Si();var Ta=0,Ha=function Ba(){se.selForContextMenu==ie.doc.sel&&me.selectionStart==0&&me.selectionEnd>0&&j.prevInput=="\u200B"?Jo(ie,_s)(ie):Ta++<10?se.detectingSelectAll=setTimeout(Ba,500):(se.selForContextMenu=null,se.input.reset())};se.detectingSelectAll=setTimeout(Ha,200)}}if(d&&l>=9&&Si(),T){lt(N);var oa=function Ta(){et(window,"mouseup",Ta),setTimeout(Oi,20)};Fe(window,"mouseup",oa)}else setTimeout(Oi,50)},wa.prototype.readOnlyChanged=function(N){N||this.reset(),this.textarea.disabled=N=="nocursor",this.textarea.readOnly=!!N},wa.prototype.setUneditable=function(){},wa.prototype.needsContentAttribute=!1;function po(N,j){if(j=j?U(j):{},j.value=N.value,!j.tabindex&&N.tabIndex&&(j.tabindex=N.tabIndex),!j.placeholder&&N.placeholder&&(j.placeholder=N.placeholder),j.autofocus==null){var ie=M();j.autofocus=ie==N||N.getAttribute("autofocus")!=null&&ie==document.body}function se(){N.value=ir.getValue()}var me;if(N.form&&(Fe(N.form,"submit",se),!j.leaveSubmitMethodAlone)){var ze=N.form;me=ze.submit;try{var It=ze.submit=function(){se(),ze.submit=me,ze.submit(),ze.submit=It}}catch(wr){}}j.finishInit=function(wr){wr.save=se,wr.getTextArea=function(){return N},wr.toTextArea=function(){wr.toTextArea=isNaN,se(),N.parentNode.removeChild(wr.getWrapperElement()),N.style.display="",N.form&&(et(N.form,"submit",se),!j.leaveSubmitMethodAlone&&typeof N.form.submit=="function"&&(N.form.submit=me))}},N.style.display="none";var ir=Br(function(wr){return N.parentNode.insertBefore(wr,N.nextSibling)},j);return ir}function Za(N){N.off=et,N.on=Fe,N.wheelEventPixels=_n,N.Doc=Sl,N.splitLines=cn,N.countColumn=V,N.findColumn=Re,N.isWordChar=Z,N.Pass=$,N.signal=wt,N.Line=di,N.changeEnd=Qe,N.scrollbarModel=hs,N.Pos=Gt,N.cmpPos=vt,N.modes=Et,N.mimeModes=en,N.resolveMode=ci,N.getMode=Vi,N.modeExtensions=jn,N.extendMode=Qn,N.copyState=$t,N.startState=ke,N.innerMode=Ot,N.commands=ou,N.keyMap=Ql,N.keyName=vu,N.isModifierKey=gu,N.lookupKey=Jl,N.normalizeKeyMap=Nu,N.StringStream=Me,N.SharedTextMarker=tu,N.TextMarker=wl,N.LineWidget=bl,N.e_preventDefault=Ke,N.e_stopPropagation=de,N.e_stop=lt,N.addClass=X,N.contains=B,N.rmClass=E,N.keyNames=Kl}Ye(Br),zr(Br);var Xo="iter insert remove copy getEditor constructor".split(" ");for(var ls in Sl.prototype)Sl.prototype.hasOwnProperty(ls)&&G(Xo,ls)<0&&(Br.prototype[ls]=function(N){return function(){return N.apply(this.doc,arguments)}}(Sl.prototype[ls]));return Bt(Sl),Br.inputStyles={textarea:wa,contenteditable:vn},Br.defineMode=function(N){!Br.defaults.mode&&N!="null"&&(Br.defaults.mode=N),Mn.apply(this,arguments)},Br.defineMIME=Yn,Br.defineMode("null",function(){return{token:function(j){return j.skipToEnd()}}}),Br.defineMIME("text/plain","null"),Br.defineExtension=function(N,j){Br.prototype[N]=j},Br.defineDocExtension=function(N,j){Sl.prototype[N]=j},Br.fromTextArea=po,Za(Br),Br.version="5.58.2",Br})},Vy0f:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("iYpf"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},W2nI:function(k,D,i){var y=i("IwbS"),p=i("ProS"),S=i("bYtY"),A=["itemStyle","opacity"],m=["emphasis","itemStyle","opacity"],f=["lineStyle","opacity"],d=["emphasis","lineStyle","opacity"];function l(u,r){return u.getVisual("opacity")||u.getModel().get(r)}function o(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(g){g.type!=="group"&&g.setStyle("opacity",h)})}function n(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")}}),a=p.extendChartView({type:"sankey",_model:null,_focusAdjacencyDisabled:!1,render:function(u,r,s){var c=this,h=u.getGraph(),g=this.group,v=u.layoutInfo,b=v.width,w=v.height,x=u.getData(),T=u.getData("edge"),O=u.get("orient");this._model=u,g.removeAll(),g.attr("position",[v.x,v.y]),h.eachEdge(function(E){var C=new t;C.dataIndex=E.dataIndex,C.seriesIndex=u.seriesIndex,C.dataType="edge";var I=E.getModel("lineStyle"),_=I.get("curveness"),F=E.node1.getLayout(),R=E.node1.getModel(),B=R.get("localX"),M=R.get("localY"),X=E.node2.getLayout(),P=E.node2.getModel(),z=P.get("localX"),W=P.get("localY"),U=E.getLayout(),V,Q,G,te,$,le,re,Se;C.shape.extent=Math.max(1,U.dy),C.shape.orient=O,O==="vertical"?(V=(B!=null?B*b:F.x)+U.sy,Q=(M!=null?M*w:F.y)+F.dy,G=(z!=null?z*b:X.x)+U.ty,te=W!=null?W*w:X.y,$=V,le=Q*(1-_)+te*_,re=G,Se=Q*_+te*(1-_)):(V=(B!=null?B*b:F.x)+F.dx,Q=(M!=null?M*w:F.y)+U.sy,G=z!=null?z*b:X.x,te=(W!=null?W*w:X.y)+U.ty,$=V*(1-_)+G*_,le=Q,re=V*_+G*(1-_),Se=te),C.setShape({x1:V,y1:Q,x2:G,y2:te,cpx1:$,cpy1:le,cpx2:re,cpy2:Se}),C.setStyle(I.getItemStyle());switch(C.style.fill){case"source":C.style.fill=E.node1.getVisual("color");break;case"target":C.style.fill=E.node2.getVisual("color");break}y.setHoverStyle(C,E.getModel("emphasis.lineStyle").getItemStyle()),g.add(C),T.setItemGraphicEl(E.dataIndex,C)}),h.eachNode(function(E){var C=E.getLayout(),I=E.getModel(),_=I.get("localX"),F=I.get("localY"),R=I.getModel("label"),B=I.getModel("emphasis.label"),M=new y.Rect({shape:{x:_!=null?_*b:C.x,y:F!=null?F*w:C.y,width:C.dx,height:C.dy},style:I.getModel("itemStyle").getItemStyle()}),X=E.getModel("emphasis.itemStyle").getItemStyle();y.setLabelStyle(M.style,X,R,B,{labelFetcher:u,labelDataIndex:E.dataIndex,defaultText:E.id,isRectText:!0}),M.setStyle("fill",E.getVisual("color")),y.setHoverStyle(M,X),g.add(M),x.setItemGraphicEl(E.dataIndex,M),M.dataType="node"}),x.eachItemGraphicEl(function(E,C){var I=x.getItemModel(C);I.get("draggable")&&(E.drift=function(_,F){c._focusAdjacencyDisabled=!0,this.shape.x+=_,this.shape.y+=F,this.dirty(),s.dispatchAction({type:"dragNode",seriesId:u.id,dataIndex:x.getRawIndex(C),localX:this.shape.x/b,localY:this.shape.y/w})},E.ondragend=function(){c._focusAdjacencyDisabled=!1},E.draggable=!0,E.cursor="move"),E.highlight=function(){this.trigger("emphasis")},E.downplay=function(){this.trigger("normal")},E.focusNodeAdjHandler&&E.off("mouseover",E.focusNodeAdjHandler),E.unfocusNodeAdjHandler&&E.off("mouseout",E.unfocusNodeAdjHandler),I.get("focusNodeAdjacency")&&(E.on("mouseover",E.focusNodeAdjHandler=function(){c._focusAdjacencyDisabled||(c._clearTimer(),s.dispatchAction({type:"focusNodeAdjacency",seriesId:u.id,dataIndex:E.dataIndex}))}),E.on("mouseout",E.unfocusNodeAdjHandler=function(){c._focusAdjacencyDisabled||c._dispatchUnfocus(s)}))}),T.eachItemGraphicEl(function(E,C){var I=T.getItemModel(C);E.focusNodeAdjHandler&&E.off("mouseover",E.focusNodeAdjHandler),E.unfocusNodeAdjHandler&&E.off("mouseout",E.unfocusNodeAdjHandler),I.get("focusNodeAdjacency")&&(E.on("mouseover",E.focusNodeAdjHandler=function(){c._focusAdjacencyDisabled||(c._clearTimer(),s.dispatchAction({type:"focusNodeAdjacency",seriesId:u.id,edgeDataIndex:E.dataIndex}))}),E.on("mouseout",E.unfocusNodeAdjHandler=function(){c._focusAdjacencyDisabled||c._dispatchUnfocus(s)}))}),!this._data&&u.get("animation")&&g.setClipPath(e(g.getBoundingRect(),u,function(){g.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(),g=h.graph,v=c.dataIndex,b=h.getItemModel(v),w=c.edgeDataIndex;if(v==null&&w==null)return;var x=g.getNodeByIndex(v),T=g.getEdgeByIndex(w);if(g.eachNode(function(E){o(E,A,.1)}),g.eachEdge(function(E){o(E,f,.1)}),x){n(x,m);var O=b.get("focusNodeAdjacency");O==="outEdges"?S.each(x.outEdges,function(E){if(E.dataIndex<0)return;n(E,d),n(E.node2,m)}):O==="inEdges"?S.each(x.inEdges,function(E){if(E.dataIndex<0)return;n(E,d),n(E.node1,m)}):O==="allEdges"&&S.each(x.edges,function(E){if(E.dataIndex<0)return;n(E,d),E.node1!==x&&n(E.node1,m),E.node2!==x&&n(E.node2,m)})}T&&(n(T,d),n(T.node1,m),n(T.node2,m))},unfocusNodeAdjacency:function(u,r,s,c){var h=u.getGraph();h.eachNode(function(g){o(g,A)}),h.eachEdge(function(g){o(g,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}k.exports=a},W4dC:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),A=S.each,m=S.createHashMap,f=i("7DRL"),d=i("TIY9"),l=i("yS9w"),o=i("mFDi"),n={geoJSON:d,svg:l},t={load:function(r,s,c){var h=[],g=m(),v=m(),b,w=u(r);return A(w,function(x){var T=n[x.type].load(r,x,c);A(T.regions,function(E){var C=E.name;s&&s.hasOwnProperty(C)&&(E=E.cloneShallow(C=s[C])),h.push(E),g.set(C,E),v.set(C,E.center)});var O=T.boundingRect;O&&(b?b.union(O):b=O.clone())}),{regions:h,regionsMap:g,nameCoordMap:v,boundingRect:b||new o(0,0,0,0)}},makeGraphic:a("makeGraphic"),removeGraphic:a("removeGraphic")};function a(r){return function(s,c){var h=u(s),g=[];return A(h,function(v){var b=n[v.type][r];b&&g.push(b(s,v,c))}),g}}function e(r){}function u(r){var s=f.retrieveMap(r)||[];return s}k.exports=t},WGYa:function(k,D,i){var y=i("7yuC"),p=y.forceLayout,S=i("HF/U"),A=S.simpleLayout,m=i("lOQZ"),f=m.circularLayout,d=i("OELB"),l=d.linearMap,o=i("QBsz"),n=i("bYtY");function t(a){a.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,g=e.getModel("force"),v=g.get("initLayout");e.preservedPoints?c.each(function(R){var B=c.getId(R);c.setItemLayout(R,r[B]||[NaN,NaN])}):!v||v==="none"?A(e):v==="circular"&&f(e,"value");var b=c.getDataExtent("value"),w=h.getDataExtent("value"),x=g.get("repulsion"),T=g.get("edgeLength");n.isArray(x)||(x=[x,x]),n.isArray(T)||(T=[T,T]),T=[T[1],T[0]];var O=c.mapArray("value",function(R,B){var M=c.getItemLayout(B),X=l(R,b,x);return isNaN(X)&&(X=(x[0]+x[1])/2),{w:X,rep:X,fixed:c.getItemModel(B).get("fixed"),p:!M||isNaN(M[0])||isNaN(M[1])?null:M}}),E=h.mapArray("value",function(R,B){var M=s.getEdgeByIndex(B),X=l(R,w,T);isNaN(X)&&(X=(T[0]+T[1])/2);var P=M.getModel();return{n1:O[M.node1.dataIndex],n2:O[M.node2.dataIndex],d:X,curveness:P.get("lineStyle.curveness")||0,ignoreForceLayout:P.get("ignoreForceLayout")}}),u=e.coordinateSystem,C=u.getBoundingRect(),I=p(O,E,{rect:C,gravity:g.get("gravity"),friction:g.get("friction")}),_=I.step;I.step=function(R){for(var B=0,M=O.length;B<M;B++)O[B].fixed&&o.copy(O[B].p,s.getNodeByIndex(B).getLayout());_(function(X,P,z){for(var W=0,U=X.length;W<U;W++)X[W].fixed||s.getNodeByIndex(W).setLayout(X[W].p),r[c.getId(W)]=X[W].p;for(var W=0,U=P.length;W<U;W++){var V=P[W],Q=s.getEdgeByIndex(W),G=V.n1.p,te=V.n2.p,$=Q.getLayout();$=$?$.slice():[],$[0]=$[0]||[],$[1]=$[1]||[],o.copy($[0],G),o.copy($[1],te),+V.curveness&&($[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($)}R&&R(z)})},e.forceLayout=I,e.preservedPoints=r,I.step()}else e.forceLayout=null})}k.exports=t},"WN+l":function(k,D,i){var y=i("bYtY"),p=i("IwbS");function S(m,f,d,l){var o=d.axis;if(o.scale.isBlank())return;var n=d.getModel("splitArea"),t=n.getModel("areaStyle"),a=t.get("color"),e=l.coordinateSystem.getRect(),u=o.getTicksCoords({tickModel:n,clamp:!0});if(!u.length)return;var r=a.length,s=m.__splitAreaColors,c=y.createHashMap(),h=0;if(s)for(var g=0;g<u.length;g++){var v=s.get(u[g].tickValue);if(v!=null){h=(v+(r-1)*g)%r;break}}var b=o.toGlobalCoord(u[0].coord),w=t.getAreaStyle();a=y.isArray(a)?a:[a];for(var g=1;g<u.length;g++){var x=o.toGlobalCoord(u[g].coord),T,O,E,C;o.isHorizontal()?(T=b,O=e.y,E=x-T,C=e.height,b=T+E):(T=e.x,O=b,E=e.width,C=x-O,b=O+C);var I=u[g-1].tickValue;I!=null&&c.set(I,h),f.add(new p.Rect({anid:I!=null?"area_"+I:null,shape:{x:T,y:O,width:E,height:C},style:y.defaults({fill:a[h]},w),silent:!0})),h=(h+1)%r}m.__splitAreaColors=c}function A(m){m.__splitAreaColors=null}D.rectCoordAxisBuildSplitArea=S,D.rectCoordAxisHandleRemove=A},WXVj:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("Bqw1")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="MinusSquareOutlined";var n=A.forwardRef(o);D.default=n},WYAk:function(k,D,i){(function(y,p){k.exports=D=p(i("Ib8C"))})(this,function(y){(function(){var p=y,S=p.lib,A=S.Base,m=p.enc,f=m.Utf8,d=p.algo,l=d.HMAC=A.extend({init:function(n,t){n=this._hasher=new n.init,typeof t=="string"&&(t=f.parse(t));var a=n.blockSize,e=a*4;t.sigBytes>e&&(t=n.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<a;h++)s[h]^=1549556828,c[h]^=909522486;u.sigBytes=r.sigBytes=e,this.reset()},reset:function(){var n=this._hasher;n.reset(),n.update(this._iKey)},update:function(n){return this._hasher.update(n),this},finalize:function(n){var t=this._hasher,a=t.finalize(n);t.reset();var e=t.finalize(this._oKey.clone().concat(a));return e}})})()})},Wqna:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),A=S.isObject,m=S.each,f=S.map,d=S.indexOf,l=S.retrieve,o=i("+TT/"),n=o.getLayoutRect,t=i("aX7z"),a=t.createScaleByModel,e=t.ifAxisCrossZero,u=t.niceScaleExtent,r=t.estimateLabelUnionRect,s=i("y+lR"),c=i("7AJT"),h=i("IDmD"),g=i("7hqr"),v=g.getStackedDimension;i("jtI2");function b(R,B,M){return R.getCoordSysModel()===B}function w(R,B,M){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(R,B,M),this.model=R}var x=w.prototype;x.type="grid",x.axisPointerEnabled=!0,x.getRect=function(){return this._rect},x.update=function(R,B){var M=this._axesMap;this._updateScale(R,this.model),m(M.x,function(P){u(P.scale,P.model)}),m(M.y,function(P){u(P.scale,P.model)});var X={};m(M.x,function(P){T(M,"y",P,X)}),m(M.y,function(P){T(M,"x",P,X)}),this.resize(this.model,B)};function T(R,B,M,X){M.getAxesOnZeroOf=function(){return z?[z]:[]};var P=R[B],z,W=M.model,U=W.get("axisLine.onZero"),V=W.get("axisLine.onZeroAxisIndex");if(!U)return;if(V!=null)O(P[V])&&(z=P[V]);else for(var Q in P)if(P.hasOwnProperty(Q)&&O(P[Q])&&!X[G(P[Q])]){z=P[Q];break}z&&(X[G(z)]=!0);function G(te){return te.dim+"_"+te.index}}function O(R){return R&&R.type!=="category"&&R.type!=="time"&&e(R)}x.resize=function(R,B,M){var X=n(R.getBoxLayoutParams(),{width:B.getWidth(),height:B.getHeight()});this._rect=X;var P=this._axesList;z(),!M&&R.get("containLabel")&&(m(P,function(W){if(!W.model.get("axisLabel.inside")){var U=r(W);if(U){var V=W.isHorizontal()?"height":"width",Q=W.model.get("axisLabel.margin");X[V]-=U[V]+Q,W.position==="top"?X.y+=U.height+Q:W.position==="left"&&(X.x+=U.width+Q)}}}),z());function z(){m(P,function(W){var U=W.isHorizontal(),V=U?[0,X.width]:[0,X.height],Q=W.inverse?1:0;W.setExtent(V[Q],V[1-Q]),E(W,U?X.x:X.y)})}},x.getAxis=function(R,B){var M=this._axesMap[R];if(M!=null){if(B==null){for(var X in M)if(M.hasOwnProperty(X))return M[X]}return M[B]}},x.getAxes=function(){return this._axesList.slice()},x.getCartesian=function(R,B){if(R!=null&&B!=null){var M="x"+R+"y"+B;return this._coordsMap[M]}A(R)&&(B=R.yAxisIndex,R=R.xAxisIndex);for(var X=0,P=this._coordsList;X<P.length;X++)if(P[X].getAxis("x").index===R||P[X].getAxis("y").index===B)return P[X]},x.getCartesians=function(){return this._coordsList.slice()},x.convertToPixel=function(R,B,M){var X=this._findConvertTarget(R,B);return X.cartesian?X.cartesian.dataToPoint(M):X.axis?X.axis.toGlobalCoord(X.axis.dataToCoord(M)):null},x.convertFromPixel=function(R,B,M){var X=this._findConvertTarget(R,B);return X.cartesian?X.cartesian.pointToData(M):X.axis?X.axis.coordToData(X.axis.toLocalCoord(M)):null},x._findConvertTarget=function(R,B){var M=B.seriesModel,X=B.xAxisModel||M&&M.getReferringComponents("xAxis")[0],P=B.yAxisModel||M&&M.getReferringComponents("yAxis")[0],z=B.gridModel,W=this._coordsList,U,V;if(M)U=M.coordinateSystem,d(W,U)<0&&(U=null);else if(X&&P)U=this.getCartesian(X.componentIndex,P.componentIndex);else if(X)V=this.getAxis("x",X.componentIndex);else if(P)V=this.getAxis("y",P.componentIndex);else if(z){var Q=z.coordinateSystem;Q===this&&(U=this._coordsList[0])}return{cartesian:U,axis:V}},x.containPoint=function(R){var B=this._coordsList[0];if(B)return B.containPoint(R)},x._initCartesian=function(R,B,M){var X={left:!1,right:!1,top:!1,bottom:!1},P={x:{},y:{}},z={x:0,y:0};if(B.eachComponent("xAxis",W("x"),this),B.eachComponent("yAxis",W("y"),this),!z.x||!z.y){this._axesMap={},this._axesList=[];return}this._axesMap=P,m(P.x,function(U,V){m(P.y,function(Q,G){var te="x"+V+"y"+G,$=new s(te);$.grid=this,$.model=R,this._coordsMap[te]=$,this._coordsList.push($),$.addAxis(U),$.addAxis(Q)},this)},this);function W(U){return function(V,Q){if(!b(V,R,B))return;var G=V.get("position");U==="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(U,a(V),[0,0],V.get("type"),G),$=te.type==="category";te.onBand=$&&V.get("boundaryGap"),te.inverse=V.get("inverse"),V.axis=te,te.model=V,te.grid=this,te.index=Q,this._axesList.push(te),P[U][Q]=te,z[U]++}}},x._updateScale=function(R,B){m(this._axesList,function(X){X.scale.setExtent(Infinity,-Infinity)}),R.eachSeries(function(X){if(_(X)){var P=I(X,R),z=P[0],W=P[1];if(!b(z,B,R)||!b(W,B,R))return;var U=this.getCartesian(z.componentIndex,W.componentIndex),V=X.getData(),Q=U.getAxis("x"),G=U.getAxis("y");V.type==="list"&&(M(V,Q,X),M(V,G,X))}},this);function M(X,P,z){m(X.mapDimension(P.dim,!0),function(W){P.scale.unionExtentFromData(X,v(X,W))})}},x.getTooltipAxes=function(R){var B=[],M=[];return m(this.getCartesians(),function(X){var P=R!=null&&R!=="auto"?X.getAxis(R):X.getBaseAxis(),z=X.getOtherAxis(P);d(B,P)<0&&B.push(P),d(M,z)<0&&M.push(z)}),{baseAxes:B,otherAxes:M}};function E(R,B){var M=R.getExtent(),X=M[0]+M[1];R.toGlobalCoord=R.dim==="x"?function(P){return P+B}:function(P){return X-P+B},R.toLocalCoord=R.dim==="x"?function(P){return P-B}:function(P){return X-P+B}}var C=["xAxis","yAxis"];function I(R,B){return f(C,function(M){var X=R.getReferringComponents(M)[0];return X})}function _(R){return R.get("coordinateSystem")==="cartesian2d"}w.create=function(R,B){var M=[];return R.eachComponent("grid",function(X,P){var z=new w(X,R,B);z.name="grid_"+P,z.resize(X,B,!0),X.coordinateSystem=z,M.push(z)}),R.eachSeries(function(X){if(!_(X))return;var P=I(X,R),z=P[0],W=P[1],U=z.getCoordSysModel(),V=U.coordinateSystem;X.coordinateSystem=V.getCartesian(z.componentIndex,W.componentIndex)}),M},w.dimensions=w.prototype.dimensions=s.prototype.dimensions,h.register("cartesian2d",w);var F=w;k.exports=F},"X+im":function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("KQeH")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="DownloadOutlined";var n=A.forwardRef(o);D.default=n},"X2/X":function(k,D,i){"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(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("hwYd"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},XOKv:function(k,D,i){i("OXB0"),i("SA4+")},Xi7e:function(k,D,i){var y=i("KMkd"),p=i("adU4"),S=i("tMB7"),A=i("+6XX"),m=i("Z8oC");function f(d){var l=-1,o=d==null?0:d.length;for(this.clear();++l<o;){var n=d[l];this.set(n[0],n[1])}}f.prototype.clear=y,f.prototype.delete=p,f.prototype.get=S,f.prototype.has=A,f.prototype.set=m,k.exports=f},Xmg4:function(k,D,i){var y=i("bYtY"),p=i("LPTA"),S=p.devicePixelRatio,A=i("K2GJ"),m=i("3C/r");function f(){return!1}function d(n,t,a){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",n)),e.width=u*a,e.height=r*a,e}var l=function(t,a,e){var u;e=e||S,typeof t=="string"?u=d(t,a,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=a,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,a){var e=this.dpr,u=this.dom,r=u.style,s=this.domBack;r&&(r.width=t+"px",r.height=a+"px"),u.width=t*e,u.height=a*e,s&&(s.width=t*e,s.height=a*e,e!==1&&this.ctxBack.scale(e,e))},clear:function(t,a){var e=this.dom,u=this.ctx,r=e.width,s=e.height,a=a||this.clearColor,c=this.motionBlur&&!t,h=this.lastFrameAlpha,g=this.dpr;if(c&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,r/g,s/g)),u.clearRect(0,0,r,s),a&&a!=="transparent"){var v;a.colorStops?(v=a.__canvasGradient||A.getGradient(u,a,{x:0,y:0,width:r,height:s}),a.__canvasGradient=v):a.image&&(v=m.prototype.getCanvasPattern.call(a,u)),u.save(),u.fillStyle=v||a,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 o=l;k.exports=o},Xnb7:function(k,D,i){var y=i("1RvN"),p=new y(50);function S(d){if(typeof d=="string"){var l=p.get(d);return l&&l.image}else return d}function A(d,l,o,n,t){if(d)if(typeof d=="string"){if(l&&l.__zrImageSrc===d||!o)return l;var a=p.get(d),e={hostEl:o,cb:n,cbPayload:t};return a?(l=a.image,!f(l)&&a.pending.push(e)):(l=new Image,l.onload=l.onerror=m,p.put(d,l.__cachedImgObj={image:l,pending:[e]}),l.src=l.__zrImageSrc=d),l}else return d;else return l}function m(){var d=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var l=0;l<d.pending.length;l++){var o=d.pending[l],n=o.cb;n&&n(this,o.cbPayload),o.hostEl.dirty()}d.pending.length=0}function f(d){return d&&d.width&&d.height}D.findExistImage=S,D.createOrUpdateImage=A,D.isImageReady=f},XpcN:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("ProS"),A=i("bYtY"),m=i("oVpE"),f=m.createSymbol,d=i("IwbS"),l=i("eRkO"),o=l.makeBackground,n=i("+TT/"),t=A.curry,a=A.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(g,v,b){var w=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!g.get("show",!0))return;var x=g.get("align"),T=g.get("orient");(!x||x==="auto")&&(x=g.get("left")==="right"&&T==="vertical"?"right":"left");var O=g.get("selector",!0),E=g.get("selectorPosition",!0);O&&(!E||E==="auto")&&(E=T==="horizontal"?"end":"start"),this.renderInner(x,g,v,b,O,T,E);var C=g.getBoxLayoutParams(),I={width:b.getWidth(),height:b.getHeight()},_=g.get("padding"),F=n.getLayoutRect(C,I,_),R=this.layoutInner(g,x,F,w,O,E),B=n.getLayoutRect(A.defaults({width:R.width,height:R.height},C),I,_);this.group.attr("position",[B.x-R.x,B.y-R.y]),this.group.add(this._backgroundEl=o(R,g))},resetInner:function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},renderInner:function(g,v,b,w,x,T,O){var E=this.getContentGroup(),C=A.createHashMap(),I=v.get("selectedMode"),_=[];b.eachRawSeries(function(F){!F.get("legendHoverLink")&&_.push(F.id)}),a(v.getData(),function(F,R){var B=F.get("name");if(!this.newlineDisabled&&(B===""||B===`
`)){E.add(new e({newline:!0}));return}var M=b.getSeriesByName(B)[0];if(C.get(B))return;if(M){var X=M.getData(),P=X.getVisual("color"),z=X.getVisual("borderColor");typeof P=="function"&&(P=P(M.getDataParams(0))),typeof z=="function"&&(z=z(M.getDataParams(0)));var W=X.getVisual("legendSymbol")||"roundRect",U=X.getVisual("symbol"),V=this._createItem(B,R,F,v,W,U,g,P,z,I);V.on("click",t(s,B,null,w,_)).on("mouseover",t(c,M.name,null,w,_)).on("mouseout",t(h,M.name,null,w,_)),C.set(B,!0)}else b.eachRawSeries(function(Q){if(C.get(B))return;if(Q.legendVisualProvider){var G=Q.legendVisualProvider;if(!G.containName(B))return;var te=G.indexOfName(B),$=G.getItemVisual(te,"color"),le=G.getItemVisual(te,"borderColor"),re="roundRect",Se=this._createItem(B,R,F,v,re,null,g,$,le,I);Se.on("click",t(s,null,B,w,_)).on("mouseover",t(c,null,B,w,_)).on("mouseout",t(h,null,B,w,_)),C.set(B,!0)}},this)},this),x&&this._createSelector(x,v,w,T,O)},_createSelector:function(g,v,b,w,x){var T=this.getSelectorGroup();a(g,function(E){O(E)});function O(E){var C=E.type,I=new d.Text({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){b.dispatchAction({type:C==="all"?"legendAllSelect":"legendInverseSelect"})}});T.add(I);var _=v.getModel("selectorLabel"),F=v.getModel("emphasis.selectorLabel");d.setLabelStyle(I.style,I.hoverStyle={},_,F,{defaultText:E.title,isRectText:!1}),d.setHoverStyle(I)}},_createItem:function(g,v,b,w,x,T,O,E,C,I){var _=w.get("itemWidth"),F=w.get("itemHeight"),R=w.get("inactiveColor"),B=w.get("inactiveBorderColor"),M=w.get("symbolKeepAspect"),X=w.getModel("itemStyle"),P=w.isSelected(g),z=new e,W=b.getModel("textStyle"),U=b.get("icon"),V=b.getModel("tooltip"),Q=V.parentModel;x=U||x;var G=f(x,0,0,_,F,P?E:R,M==null?!0:M);if(z.add(r(G,x,X,C,B,P)),!U&&T&&(T!==x||T==="none")){var te=F*.8;T==="none"&&(T="circle");var $=f(T,(_-te)/2,(F-te)/2,te,te,P?E:R,M==null?!0:M);z.add(r($,T,X,C,B,P))}var le=O==="left"?_+5:-5,re=O,Se=w.get("formatter"),Re=g;typeof Se=="string"&&Se?Re=Se.replace("{name}",g!=null?g:""):typeof Se=="function"&&(Re=Se(g)),z.add(new d.Text({style:d.setTextStyle({},W,{text:Re,x:le,y:F/2,textFill:P?W.getTextColor():R,textAlign:re,textVerticalAlign:"middle"})}));var Pe=new d.Rect({shape:z.getBoundingRect(),invisible:!0,tooltip:V.get("show")?A.extend({content:g,formatter:Q.get("formatter",!0)||function(){return g},formatterParams:{componentType:"legend",legendIndex:w.componentIndex,name:g,$vars:["name"]}},V.option):null});return z.add(Pe),z.eachChild(function(Je){Je.silent=!0}),Pe.silent=!I,this.getContentGroup().add(z),d.setHoverStyle(z),z.__legendDataIndex=v,z},layoutInner:function(g,v,b,w,x,T){var O=this.getContentGroup(),E=this.getSelectorGroup();n.box(g.get("orient"),O,g.get("itemGap"),b.width,b.height);var C=O.getBoundingRect(),I=[-C.x,-C.y];if(x){n.box("horizontal",E,g.get("selectorItemGap",!0));var _=E.getBoundingRect(),F=[-_.x,-_.y],R=g.get("selectorButtonGap",!0),B=g.getOrient().index,M=B===0?"width":"height",X=B===0?"height":"width",P=B===0?"y":"x";T==="end"?F[B]+=C[M]+R:I[B]+=_[M]+R,F[1-B]+=C[X]/2-_[X]/2,E.attr("position",F),O.attr("position",I);var z={x:0,y:0};return z[M]=C[M]+R+_[M],z[X]=Math.max(C[X],_[X]),z[P]=Math.min(0,_[P]+F[1-B]),z}else return O.attr("position",I),this.group.getBoundingRect()},remove:function(){this.getContentGroup().removeAll(),this._isFirstRender=!0}});function r(g,v,b,w,x,T){var O;return v!=="line"&&v.indexOf("empty")<0?(O=b.getItemStyle(),g.style.stroke=w,T||(O.stroke=x)):O=b.getItemStyle(["borderWidth","borderColor"]),g.setStyle(O)}function s(g,v,b,w){h(g,v,b,w),b.dispatchAction({type:"legendToggleSelect",name:g!=null?g:v}),c(g,v,b,w)}function c(g,v,b,w){var x=b.getZr().storage.getDisplayList()[0];x&&x.useHoverLayer||b.dispatchAction({type:"highlight",seriesName:g,name:v,excludeSeriesId:w})}function h(g,v,b,w){var x=b.getZr().storage.getDisplayList()[0];x&&x.useHoverLayer||b.dispatchAction({type:"downplay",seriesName:g,name:v,excludeSeriesId:w})}k.exports=u},XuBP:function(k,D,i){"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(k,D,i){var y=i("bYtY"),p=i("Qe9p"),S=i("OELB"),A=S.linearMap,m=y.each,f=y.isObject,d=-1,l=function(T){var O=T.mappingMethod,E=T.type,C=this.option=y.clone(T);this.type=E,this.mappingMethod=O,this._normalizeData=b[O];var I=o[E];this.applyVisual=I.applyVisual,this.getColorMapper=I.getColorMapper,this._doMap=I._doMap[O],O==="piecewise"?(a(C),n(C)):O==="category"?C.categories?t(C):a(C,!0):(y.assert(O!=="linear"||C.dataExtent),a(C))};l.prototype={constructor:l,mapValueToVisual:function(T){var O=this._normalizeData(T);return this._doMap(O,T)},getNormalizer:function(){return y.bind(this._normalizeData,this)}};var o=l.visualHandlers={color:{applyVisual:r("color"),getColorMapper:function(){var T=this.option;return y.bind(T.mappingMethod==="category"?function(O,E){return!E&&(O=this._normalizeData(O)),s.call(this,O)}:function(O,E,C){var I=!!C;return!E&&(O=this._normalizeData(O)),C=p.fastLerp(O,T.parsedVisual,C),I?C:p.stringify(C,"rgba")},this)},_doMap:{linear:function(T){return p.stringify(p.fastLerp(T,this.option.parsedVisual),"rgba")},category:s,piecewise:function(T,O){var E=g.call(this,O);return E==null&&(E=p.stringify(p.fastLerp(T,this.option.parsedVisual),"rgba")),E},fixed:c}},colorHue:e(function(T,O){return p.modifyHSL(T,O)}),colorSaturation:e(function(T,O){return p.modifyHSL(T,null,O)}),colorLightness:e(function(T,O){return p.modifyHSL(T,null,null,O)}),colorAlpha:e(function(T,O){return p.modifyAlpha(T,O)}),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,O,E){var C=this.mapValueToVisual(T);if(y.isString(C))E("symbol",C);else if(f(C))for(var I in C)C.hasOwnProperty(I)&&E(I,C[I])},_doMap:{linear:u,category:s,piecewise:function(T,O){var E=g.call(this,O);return E==null&&(E=u.call(this,T)),E},fixed:c}},symbolSize:{applyVisual:r("symbolSize"),_doMap:h([0,1])}};function n(T){var O=T.pieceList;T.hasSpecialVisual=!1,y.each(O,function(E,C){E.originIndex=C,E.visual!=null&&(T.hasSpecialVisual=!0)})}function t(T){var O=T.categories,E=T.visual,C=T.categoryMap={};if(m(O,function(F,R){C[F]=R}),!y.isArray(E)){var I=[];y.isObject(E)?m(E,function(F,R){var B=C[R];I[B!=null?B:d]=F}):I[d]=E,E=v(T,I)}for(var _=O.length-1;_>=0;_--)E[_]==null&&(delete C[O[_]],O.pop())}function a(T,O){var E=T.visual,C=[];y.isObject(E)?m(E,function(_){C.push(_)}):E!=null&&C.push(E);var I={color:1,symbol:1};!O&&C.length===1&&!I.hasOwnProperty(T.type)&&(C[1]=C[0]),v(T,C)}function e(T){return{applyVisual:function(O,E,C){O=this.mapValueToVisual(O),C("color",T(E("color"),O))},_doMap:h([0,1])}}function u(T){var O=this.option.visual;return O[Math.round(A(T,[0,1],[0,O.length-1],!0))]||{}}function r(T){return function(O,E,C){C(T,this.mapValueToVisual(O))}}function s(T){var O=this.option.visual;return O[this.option.loop&&T!==d?T%O.length:T]}function c(){return this.option.visual[0]}function h(T){return{linear:function(O){return A(O,T,this.option.visual,!0)},category:s,piecewise:function(O,E){var C=g.call(this,E);return C==null&&(C=A(O,T,this.option.visual,!0)),C},fixed:c}}function g(T){var O=this.option,E=O.pieceList;if(O.hasSpecialVisual){var C=l.findPieceIndex(T,E),I=E[C];if(I&&I.visual)return I.visual[this.type]}}function v(T,O){return T.visual=O,T.type==="color"&&(T.parsedVisual=y.map(O,function(E){return p.parse(E)})),O}var b={linear:function(T){return A(T,this.option.dataExtent,[0,1],!0)},piecewise:function(T){var O=this.option.pieceList,E=l.findPieceIndex(T,O,!0);if(E!=null)return A(E,[0,O.length-1],[0,1],!0)},category:function(T){var O=this.option.categories?this.option.categoryMap[T]:T;return O==null?d:O},fixed:y.noop};l.listVisualTypes=function(){var T=[];return y.each(o,function(O,E){T.push(E)}),T},l.addVisualHandler=function(T,O){o[T]=O},l.isValidType=function(T){return o.hasOwnProperty(T)},l.eachVisual=function(T,O,E){y.isObject(T)?y.each(T,O,E):O.call(E,T)},l.mapVisual=function(T,O,E){var C,I=y.isArray(T)?[]:y.isObject(T)?{}:(C=!0,null);return l.eachVisual(T,function(_,F){var R=O.call(E,_,F);C?I=R:I[F]=R}),I},l.retrieveVisuals=function(T){var O={},E;return T&&m(o,function(C,I){T.hasOwnProperty(I)&&(O[I]=T[I],E=!0)}),E?O:null},l.prepareVisualTypes=function(T){if(f(T)){var O=[];m(T,function(E,C){O.push(C)}),T=O}else if(y.isArray(T))T=T.slice();else return[];return T.sort(function(E,C){return C==="color"&&E!=="color"&&E.indexOf("color")===0?1:-1}),T},l.dependsOn=function(T,O){return O==="color"?!!(T&&T.indexOf(O)===0):T===O},l.findPieceIndex=function(T,O,E){for(var C,I=Infinity,_=0,F=O.length;_<F;_++){var R=O[_].value;if(R!=null){if(R===T||typeof R=="string"&&R===T+"")return _;E&&P(R,_)}}for(var _=0,F=O.length;_<F;_++){var B=O[_],M=B.interval,X=B.close;if(M){if(M[0]===-Infinity){if(w(X[1],T,M[1]))return _}else if(M[1]===Infinity){if(w(X[0],M[0],T))return _}else if(w(X[0],M[0],T)&&w(X[1],T,M[1]))return _;E&&P(M[0],_),E&&P(M[1],_)}}if(E)return T===Infinity?O.length-1:T===-Infinity?0:C;function P(z,W){var U=Math.abs(z-T);U<I&&(I=U,C=W)}};function w(T,O,E){return T?O<=E:O<E}var x=l;k.exports=x},XzQk:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("KpQ+"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},"Y+p1":function(k,D,i){var y=i("wF/u");function p(S,A){return y(S,A)}k.exports=p},Y1PL:function(k,D,i){"use strict";i.r(D),i.d(D,"ResizableTextArea",function(){return x});var y=i("wx14"),p=i("1OyB"),S=i("vuIU"),A=i("Ji7U"),m=i("LK+K"),f=i("q1tI"),d=i("VTBJ"),l=i("rePB"),o=i("t23M"),n=i("bT9E"),t=i("TSYQ"),a=i.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(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,I=E.getAttribute("id")||E.getAttribute("data-reactid")||E.getAttribute("name");if(C&&r[I])return r[I];var _=window.getComputedStyle(E),F=_.getPropertyValue("box-sizing")||_.getPropertyValue("-moz-box-sizing")||_.getPropertyValue("-webkit-box-sizing"),R=parseFloat(_.getPropertyValue("padding-bottom"))+parseFloat(_.getPropertyValue("padding-top")),B=parseFloat(_.getPropertyValue("border-bottom-width"))+parseFloat(_.getPropertyValue("border-top-width")),M=u.map(function(P){return"".concat(P,":").concat(_.getPropertyValue(P))}).join(";"),X={sizingStyle:M,paddingSize:R,borderSize:B,boxSizing:F};return C&&I&&(r[I]=X),X}function h(E){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,_=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)),E.getAttribute("wrap")?s.setAttribute("wrap",E.getAttribute("wrap")):s.removeAttribute("wrap");var F=c(E,C),R=F.paddingSize,B=F.borderSize,M=F.boxSizing,X=F.sizingStyle;s.setAttribute("style","".concat(X,";").concat(e)),s.value=E.value||E.placeholder||"";var P=Number.MIN_SAFE_INTEGER,z=Number.MAX_SAFE_INTEGER,W=s.scrollHeight,U;if(M==="border-box"?W+=B:M==="content-box"&&(W-=R),I!==null||_!==null){s.value=" ";var V=s.scrollHeight-R;I!==null&&(P=V*I,M==="border-box"&&(P=P+R+B),W=Math.max(P,W)),_!==null&&(z=V*_,M==="border-box"&&(z=z+R+B),U=W>z?"":"hidden",W=Math.min(z,W))}return{height:W,minHeight:P,maxHeight:z,overflowY:U,resize:"none"}}var g=i("Gytx"),v=i.n(g),b;(function(E){E[E.NONE=0]="NONE",E[E.RESIZING=1]="RESIZING",E[E.RESIZED=2]="RESIZED"})(b||(b={}));var w=function(E){Object(A.a)(I,E);var C=Object(m.a)(I);function I(_){var F;return Object(p.a)(this,I),F=C.call(this,_),F.nextFrameActionId=void 0,F.resizeFrameId=void 0,F.textArea=void 0,F.saveTextArea=function(R){F.textArea=R},F.handleResize=function(R){var B=F.state.resizeStatus,M=F.props,X=M.autoSize,P=M.onResize;if(B!==b.NONE)return;typeof P=="function"&&P(R),X&&F.resizeOnNextFrame()},F.resizeOnNextFrame=function(){cancelAnimationFrame(F.nextFrameActionId),F.nextFrameActionId=requestAnimationFrame(F.resizeTextarea)},F.resizeTextarea=function(){var R=F.props.autoSize;if(!R||!F.textArea)return;var B=R.minRows,M=R.maxRows,X=h(F.textArea,!1,B,M);F.setState({textareaStyles:X,resizeStatus:b.RESIZING},function(){cancelAnimationFrame(F.resizeFrameId),F.resizeFrameId=requestAnimationFrame(function(){F.setState({resizeStatus:b.RESIZED},function(){F.resizeFrameId=requestAnimationFrame(function(){F.setState({resizeStatus:b.NONE}),F.fixFirefoxAutoScroll()})})})})},F.renderTextArea=function(){var R=F.props,B=R.prefixCls,M=B===void 0?"rc-textarea":B,X=R.autoSize,P=R.onResize,z=R.className,W=R.disabled,U=F.state,V=U.textareaStyles,Q=U.resizeStatus,G=Object(n.a)(F.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),te=a()(M,z,Object(l.a)({},"".concat(M,"-disabled"),W));"value"in G&&(G.value=G.value||"");var $=Object(d.a)(Object(d.a)(Object(d.a)({},F.props.style),V),Q===b.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return f.createElement(o.a,{onResize:F.handleResize,disabled:!(X||P)},f.createElement("textarea",Object(y.a)({},G,{className:te,style:$,ref:F.saveTextArea})))},F.state={textareaStyles:{},resizeStatus:b.NONE},F}return Object(S.a)(I,[{key:"componentDidUpdate",value:function(F){(F.value!==this.props.value||!v()(F.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 F=this.textArea.selectionStart,R=this.textArea.selectionEnd;this.textArea.setSelectionRange(F,R)}}catch(B){}}},{key:"render",value:function(){return this.renderTextArea()}}]),I}(f.Component),x=w,T=function(E){Object(A.a)(I,E);var C=Object(m.a)(I);function I(_){var F;Object(p.a)(this,I),F=C.call(this,_),F.resizableTextArea=void 0,F.focus=function(){F.resizableTextArea.textArea.focus()},F.saveTextArea=function(B){F.resizableTextArea=B},F.handleChange=function(B){var M=F.props.onChange;F.setValue(B.target.value,function(){F.resizableTextArea.resizeTextarea()}),M&&M(B)},F.handleKeyDown=function(B){var M=F.props,X=M.onPressEnter,P=M.onKeyDown;B.keyCode===13&&X&&X(B),P&&P(B)};var R=typeof _.value=="undefined"||_.value===null?_.defaultValue:_.value;return F.state={value:R},F}return Object(S.a)(I,[{key:"setValue",value:function(F,R){"value"in this.props||this.setState({value:F},R)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return f.createElement(x,Object(y.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(F){return"value"in F?{value:F.value}:null}}]),I}(f.Component),O=D.default=T},YESw:function(k,D,i){var y=i("Cwc5"),p=y(Object,"create");k.exports=p},YH21:function(k,D,i){var y=i("H6uX");D.Dispatcher=y;var p=i("ItGF"),S=i("Ze12"),A=S.isCanvasEl,m=S.transformCoordWithViewport,f=typeof window!="undefined"&&!!window.addEventListener,d=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,l=[];function o(h,g,v,b){return v=v||{},b||!p.canvasSupported?n(h,g,v):p.browser.firefox&&g.layerX!=null&&g.layerX!==g.offsetX?(v.zrX=g.layerX,v.zrY=g.layerY):g.offsetX!=null?(v.zrX=g.offsetX,v.zrY=g.offsetY):n(h,g,v),v}function n(h,g,v){if(p.domSupported&&h.getBoundingClientRect){var b=g.clientX,w=g.clientY;if(A(h)){var x=h.getBoundingClientRect();v.zrX=b-x.left,v.zrY=w-x.top;return}else if(m(l,h,b,w)){v.zrX=l[0],v.zrY=l[1];return}}v.zrX=v.zrY=0}function t(h){return h||window.event}function a(h,g,v){if(g=t(g),g.zrX!=null)return g;var b=g.type,w=b&&b.indexOf("touch")>=0;if(!w)o(h,g,g,v),g.zrDelta=g.wheelDelta?g.wheelDelta/120:-(g.detail||0)/3;else{var x=b!=="touchend"?g.targetTouches[0]:g.changedTouches[0];x&&o(h,x,g,v)}var T=g.button;return g.which==null&&T!==void 0&&d.test(g.type)&&(g.which=T&1?1:T&2?3:T&4?2:0),g}function e(h,g,v,b){f?h.addEventListener(g,v,b):h.attachEvent("on"+g,v)}function u(h,g,v,b){f?h.removeEventListener(g,v,b):h.detachEvent("on"+g,v)}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=o,D.getNativeEvent=t,D.normalizeEvent=a,D.addEventListener=e,D.removeEventListener=u,D.stop=r,D.isMiddleOrRightButtonOnMouseUpDown=s,D.notLeftMouse=c},YJ9k:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(m,f){if(!(m instanceof f))throw new TypeError("Cannot call a class as a function")}function p(m,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(m,l.key,l)}}function S(m,f,d){return f&&p(m.prototype,f),d&&p(m,d),m}var A=function(){function m(){y(this,m),this._listeners=new Map}return S(m,[{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(o){return o.call(l,d)}),!d.defaultPrevented):!0}}]),m}();D.default=A},YJCA:function(k,D,i){"use strict";i.d(D,"a",function(){return ee}),i.d(D,"b",function(){return Ce});var y=i("wx14"),p=i("ODXe"),S=i("vpQ4"),A=i("1OyB"),m=i("vuIU"),f=i("md7G"),d=i("foSv"),l=i("Ji7U"),o=i("JX7q"),n=i("rePB"),t=i("q1tI"),a=i.n(t),e=i("17x9"),u=i.n(e),r=i("i8i4"),s=i.n(r),c=i("QLaP"),h=i.n(c),g=i("KQm4"),v=function(){function Te(){Object(A.a)(this,Te),Object(n.a)(this,"refs",{})}return Object(m.a)(Te,[{key:"add",value:function(ye,Ie){this.refs[ye]||(this.refs[ye]=[]),this.refs[ye].push(Ie)}},{key:"remove",value:function(ye,Ie){var tt=this.getIndex(ye,Ie);tt!==-1&&this.refs[ye].splice(tt,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var ye=this;return this.refs[this.active.collection].find(function(Ie){var tt=Ie.node;return tt.sortableInfo.index==ye.active.index})}},{key:"getIndex",value:function(ye,Ie){return this.refs[ye].indexOf(Ie)}},{key:"getOrderedRefs",value:function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.active.collection;return this.refs[ye].sort(b)}}]),Te}();function b(Te,he){var ye=Te.node.sortableInfo.index,Ie=he.node.sortableInfo.index;return ye-Ie}function w(Te,he,ye){return Te=Te.slice(),Te.splice(ye<0?Te.length+ye:ye,0,Te.splice(he,1)[0]),Te}function x(Te,he){return Object.keys(Te).reduce(function(ye,Ie){return he.indexOf(Ie)===-1&&(ye[Ie]=Te[Ie]),ye},{})}var T={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},O=function(){if(typeof window=="undefined"||typeof document=="undefined")return"";var Te=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],he=(Array.prototype.slice.call(Te).join("").match(/-(moz|webkit|ms)-/)||Te.OLink===""&&["","o"])[1];switch(he){case"ms":return"ms";default:return he&&he.length?he[0].toUpperCase()+he.substr(1):""}}();function E(Te,he){Object.keys(he).forEach(function(ye){Te.style[ye]=he[ye]})}function C(Te,he){Te.style["".concat(O,"Transform")]=he==null?"":"translate3d(".concat(he.x,"px,").concat(he.y,"px,0)")}function I(Te,he){Te.style["".concat(O,"TransitionDuration")]=he==null?"":"".concat(he,"ms")}function _(Te,he){for(;Te;){if(he(Te))return Te;Te=Te.parentNode}return null}function F(Te,he,ye){return Math.max(Te,Math.min(ye,he))}function R(Te){return Te.substr(-2)==="px"?parseFloat(Te):0}function B(Te){var he=window.getComputedStyle(Te);return{bottom:R(he.marginBottom),left:R(he.marginLeft),right:R(he.marginRight),top:R(he.marginTop)}}function M(Te,he){var ye=he.displayName||he.name;return ye?"".concat(Te,"(").concat(ye,")"):Te}function X(Te,he){var ye=Te.getBoundingClientRect();return{top:ye.top+he.top,left:ye.left+he.left}}function P(Te){return Te.touches&&Te.touches.length?{x:Te.touches[0].pageX,y:Te.touches[0].pageY}:Te.changedTouches&&Te.changedTouches.length?{x:Te.changedTouches[0].pageX,y:Te.changedTouches[0].pageY}:{x:Te.pageX,y:Te.pageY}}function z(Te){return Te.touches&&Te.touches.length||Te.changedTouches&&Te.changedTouches.length}function W(Te,he){var ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{left:0,top:0};if(!Te)return;var Ie={left:ye.left+Te.offsetLeft,top:ye.top+Te.offsetTop};return Te.parentNode===he?Ie:W(Te.parentNode,he,Ie)}function U(Te,he,ye){return Te<ye&&Te>he?Te-1:Te>ye&&Te<he?Te+1:Te}function V(Te){var he=Te.lockOffset,ye=Te.width,Ie=Te.height,tt=he,pt=he,st="px";if(typeof he=="string"){var Fe=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(he);h()(Fe!==null,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',he),tt=parseFloat(he),pt=parseFloat(he),st=Fe[1]}return h()(isFinite(tt)&&isFinite(pt),"lockOffset value should be a finite. Given %s",he),st==="%"&&(tt=tt*ye/100,pt=pt*Ie/100),{x:tt,y:pt}}function Q(Te){var he=Te.height,ye=Te.width,Ie=Te.lockOffset,tt=Array.isArray(Ie)?Ie:[Ie,Ie];h()(tt.length===2,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",Ie);var pt=Object(p.a)(tt,2),st=pt[0],Fe=pt[1];return[V({height:he,lockOffset:st,width:ye}),V({height:he,lockOffset:Fe,width:ye})]}function G(Te){var he=window.getComputedStyle(Te),ye=/(auto|scroll)/,Ie=["overflow","overflowX","overflowY"];return Ie.find(function(tt){return ye.test(he[tt])})}function te(Te){return Te instanceof HTMLElement?G(Te)?Te:te(Te.parentNode):null}function $(Te){var he=window.getComputedStyle(Te);return he.display==="grid"?{x:R(he.gridColumnGap),y:R(he.gridRowGap)}:{x:0,y:0}}var le={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 Se(Te){var he="input, textarea, select, canvas, [contenteditable]",ye=Te.querySelectorAll(he),Ie=Te.cloneNode(!0),tt=Object(g.a)(Ie.querySelectorAll(he));return tt.forEach(function(pt,st){if(pt.type!=="file"&&(pt.value=ye[st].value),pt.type==="radio"&&pt.name&&(pt.name="__sortableClone__".concat(pt.name)),pt.tagName===re.Canvas&&ye[st].width>0&&ye[st].height>0){var Fe=pt.getContext("2d");Fe.drawImage(ye[st],0,0)}}),Ie}function Re(Te){var he,ye,Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return ye=he=function(tt){Object(l.a)(pt,tt);function pt(){return Object(A.a)(this,pt),Object(f.a)(this,Object(d.a)(pt).apply(this,arguments))}return Object(m.a)(pt,[{key:"componentDidMount",value:function(){var Fe=Object(r.findDOMNode)(this);Fe.sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return h()(Ie.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 Fe=Ie.withRef?"wrappedInstance":null;return Object(t.createElement)(Te,Object(y.a)({ref:Fe},this.props))}}]),pt}(t.Component),Object(n.a)(he,"displayName",M("sortableHandle",Te)),ye}function Pe(Te){return Te.sortableHandle!=null}var Je=function(){function Te(he,ye){Object(A.a)(this,Te),this.container=he,this.onScrollCallback=ye}return Object(m.a)(Te,[{key:"clear",value:function(){if(this.interval==null)return;clearInterval(this.interval),this.interval=null}},{key:"update",value:function(ye){var Ie=this,tt=ye.translate,pt=ye.minTranslate,st=ye.maxTranslate,Fe=ye.width,ft=ye.height,et={x:0,y:0},wt={x:1,y:1},Ht={x:10,y:10},Dt=this.container,Tt=Dt.scrollTop,Bt=Dt.scrollLeft,Ke=Dt.scrollHeight,de=Dt.scrollWidth,oe=Dt.clientHeight,lt=Dt.clientWidth,qe=Tt===0,pe=Ke-Tt-oe===0,Kt=Bt===0,hr=de-Bt-lt===0;tt.y>=st.y-ft/2&&!pe?(et.y=1,wt.y=Ht.y*Math.abs((st.y-ft/2-tt.y)/ft)):tt.x>=st.x-Fe/2&&!hr?(et.x=1,wt.x=Ht.x*Math.abs((st.x-Fe/2-tt.x)/Fe)):tt.y<=pt.y+ft/2&&!qe?(et.y=-1,wt.y=Ht.y*Math.abs((tt.y-ft/2-pt.y)/ft)):tt.x<=pt.x+Fe/2&&!Kt&&(et.x=-1,wt.x=Ht.x*Math.abs((tt.x-Fe/2-pt.x)/Fe)),this.interval&&(this.clear(),this.isAutoScrolling=!1),(et.x!==0||et.y!==0)&&(this.interval=setInterval(function(){Ie.isAutoScrolling=!0;var gt={left:wt.x*et.x,top:wt.y*et.y};Ie.container.scrollTop+=gt.top,Ie.container.scrollLeft+=gt.left,Ie.onScrollCallback(gt)},5))}}]),Te}();function Ve(Te){var he=Te.node;return{height:he.offsetHeight,width:he.offsetWidth}}function ct(Te){var he=[re.Input,re.Textarea,re.Select,re.Option,re.Button];return he.indexOf(Te.target.tagName)!==-1?!0:!!_(Te.target,function(ye){return ye.contentEditable==="true"})}var Ue={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:[le.SPACE],drop:[le.SPACE],cancel:[le.ESC],up:[le.UP,le.LEFT],down:[le.DOWN,le.RIGHT]},rt={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:Ve,hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:ue,shouldCancelStart:ct,transitionDuration:300,useWindowAsScrollContainer:!1},ge=Object.keys(Ue);function Z(Te){h()(!(Te.distance&&Te.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(Te,he){try{var ye=Te()}catch(Ie){return he(!0,Ie)}return ye&&ye.then?ye.then(he.bind(null,!1),he.bind(null,!0)):he(!1,value)}function ee(Te){var he,ye,Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return ye=he=function(tt){Object(l.a)(pt,tt);function pt(st){var Fe;return Object(A.a)(this,pt),Fe=Object(f.a)(this,Object(d.a)(pt).call(this,st)),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"state",{}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"handleStart",function(ft){var et=Fe.props,wt=et.distance,Ht=et.shouldCancelStart;if(ft.button===2||Ht(ft))return;Fe.touched=!0,Fe.position=P(ft);var Dt=_(ft.target,function(lt){return lt.sortableInfo!=null});if(Dt&&Dt.sortableInfo&&Fe.nodeIsChild(Dt)&&!Fe.state.sorting){var Tt=Fe.props.useDragHandle,Bt=Dt.sortableInfo,Ke=Bt.index,de=Bt.collection,oe=Bt.disabled;if(oe)return;if(Tt&&!_(ft.target,Pe))return;Fe.manager.active={collection:de,index:Ke},!z(ft)&&ft.target.tagName===re.Anchor&&ft.preventDefault(),wt||(Fe.props.pressDelay===0?Fe.handlePress(ft):Fe.pressTimer=setTimeout(function(){return Fe.handlePress(ft)},Fe.props.pressDelay))}}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"nodeIsChild",function(ft){return ft.sortableInfo.manager===Fe.manager}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"handleMove",function(ft){var et=Fe.props,wt=et.distance,Ht=et.pressThreshold;if(!Fe.state.sorting&&Fe.touched&&!Fe._awaitingUpdateBeforeSortStart){var Dt=P(ft),Tt={x:Fe.position.x-Dt.x,y:Fe.position.y-Dt.y},Bt=Math.abs(Tt.x)+Math.abs(Tt.y);Fe.delta=Tt,!wt&&(!Ht||Bt>=Ht)?(clearTimeout(Fe.cancelTimer),Fe.cancelTimer=setTimeout(Fe.cancel,0)):wt&&Bt>=wt&&Fe.manager.isActive()&&Fe.handlePress(ft)}}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"handleEnd",function(){Fe.touched=!1,Fe.cancel()}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"cancel",function(){var ft=Fe.props.distance,et=Fe.state.sorting;et||(ft||clearTimeout(Fe.pressTimer),Fe.manager.active=null)}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"handlePress",function(ft){try{var et=Fe.manager.getActive(),wt=function(){if(et){var Ht=function(){var mr=pe.sortableInfo.index,cn=B(pe),Ar=$(Fe.container),xr=Fe.scrollContainer.getBoundingClientRect(),qt=Bt({index:mr,node:pe,collection:Kt});if(Fe.node=pe,Fe.margin=cn,Fe.gridGap=Ar,Fe.width=qt.width,Fe.height=qt.height,Fe.marginOffset={x:Fe.margin.left+Fe.margin.right+Fe.gridGap.x,y:Math.max(Fe.margin.top,Fe.margin.bottom,Fe.gridGap.y)},Fe.boundingClientRect=pe.getBoundingClientRect(),Fe.containerBoundingRect=xr,Fe.index=mr,Fe.newIndex=mr,Fe.axis={x:Tt.indexOf("x")>=0,y:Tt.indexOf("y")>=0},Fe.offsetEdge=W(pe,Fe.container),hr?Fe.initialOffset=P(Object(S.a)({},ft,{pageX:Fe.boundingClientRect.left,pageY:Fe.boundingClientRect.top})):Fe.initialOffset=P(ft),Fe.initialScroll={left:Fe.scrollContainer.scrollLeft,top:Fe.scrollContainer.scrollTop},Fe.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},Fe.helper=Fe.helperContainer.appendChild(Se(pe)),E(Fe.helper,{boxSizing:"border-box",height:"".concat(Fe.height,"px"),left:"".concat(Fe.boundingClientRect.left-cn.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(Fe.boundingClientRect.top-cn.top,"px"),width:"".concat(Fe.width,"px")}),hr&&Fe.helper.focus(),de&&(Fe.sortableGhost=pe,E(pe,{opacity:0,visibility:"hidden"})),Fe.minTranslate={},Fe.maxTranslate={},hr){var ar=qe?{top:0,left:0,width:Fe.contentWindow.innerWidth,height:Fe.contentWindow.innerHeight}:Fe.containerBoundingRect,Et=ar.top,en=ar.left,Mn=ar.width,Yn=ar.height,ci=Et+Yn,Vi=en+Mn;Fe.axis.x&&(Fe.minTranslate.x=en-Fe.boundingClientRect.left,Fe.maxTranslate.x=Vi-(Fe.boundingClientRect.left+Fe.width)),Fe.axis.y&&(Fe.minTranslate.y=Et-Fe.boundingClientRect.top,Fe.maxTranslate.y=ci-(Fe.boundingClientRect.top+Fe.height))}else Fe.axis.x&&(Fe.minTranslate.x=(qe?0:xr.left)-Fe.boundingClientRect.left-Fe.width/2,Fe.maxTranslate.x=(qe?Fe.contentWindow.innerWidth:xr.left+xr.width)-Fe.boundingClientRect.left-Fe.width/2),Fe.axis.y&&(Fe.minTranslate.y=(qe?0:xr.top)-Fe.boundingClientRect.top-Fe.height/2,Fe.maxTranslate.y=(qe?Fe.contentWindow.innerHeight:xr.top+xr.height)-Fe.boundingClientRect.top-Fe.height/2);Ke&&Ke.split(" ").forEach(function(jn){return Fe.helper.classList.add(jn)}),Fe.listenerNode=ft.touches?pe:Fe.contentWindow,hr?(Fe.listenerNode.addEventListener("wheel",Fe.handleKeyEnd,!0),Fe.listenerNode.addEventListener("mousedown",Fe.handleKeyEnd,!0),Fe.listenerNode.addEventListener("keydown",Fe.handleKeyDown)):(T.move.forEach(function(jn){return Fe.listenerNode.addEventListener(jn,Fe.handleSortMove,!1)}),T.end.forEach(function(jn){return Fe.listenerNode.addEventListener(jn,Fe.handleSortEnd,!1)})),Fe.setState({sorting:!0,sortingIndex:mr}),lt&&lt({node:pe,index:mr,collection:Kt,isKeySorting:hr,nodes:Fe.manager.getOrderedRefs(),helper:Fe.helper},ft),hr&&Fe.keyMove(0)},Dt=Fe.props,Tt=Dt.axis,Bt=Dt.getHelperDimensions,Ke=Dt.helperClass,de=Dt.hideSortableGhost,oe=Dt.updateBeforeSortStart,lt=Dt.onSortStart,qe=Dt.useWindowAsScrollContainer,pe=et.node,Kt=et.collection,hr=Fe.manager.isKeySorting,gt=function(){if(typeof oe=="function"){Fe._awaitingUpdateBeforeSortStart=!0;var nr=Y(function(){var mr=pe.sortableInfo.index;return Promise.resolve(oe({collection:Kt,index:mr,node:pe,isKeySorting:hr},ft)).then(function(){})},function(mr,cn){if(Fe._awaitingUpdateBeforeSortStart=!1,mr)throw cn;return cn});if(nr&&nr.then)return nr.then(function(){})}}();return gt&&gt.then?gt.then(Ht):Ht(gt)}}();return Promise.resolve(wt&&wt.then?wt.then(function(){}):void 0)}catch(Ht){return Promise.reject(Ht)}}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"handleSortMove",function(ft){var et=Fe.props.onSortMove;typeof ft.preventDefault=="function"&&ft.preventDefault(),Fe.updateHelperPosition(ft),Fe.animateNodes(),Fe.autoscroll(),et&&et(ft)}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"handleSortEnd",function(ft){var et=Fe.props,wt=et.hideSortableGhost,Ht=et.onSortEnd,Dt=Fe.manager,Tt=Dt.active.collection,Bt=Dt.isKeySorting,Ke=Fe.manager.getOrderedRefs();Fe.listenerNode&&(Bt?(Fe.listenerNode.removeEventListener("wheel",Fe.handleKeyEnd,!0),Fe.listenerNode.removeEventListener("mousedown",Fe.handleKeyEnd,!0),Fe.listenerNode.removeEventListener("keydown",Fe.handleKeyDown)):(T.move.forEach(function(pe){return Fe.listenerNode.removeEventListener(pe,Fe.handleSortMove)}),T.end.forEach(function(pe){return Fe.listenerNode.removeEventListener(pe,Fe.handleSortEnd)}))),Fe.helper.parentNode.removeChild(Fe.helper),wt&&Fe.sortableGhost&&E(Fe.sortableGhost,{opacity:"",visibility:""});for(var de=0,oe=Ke.length;de<oe;de++){var lt=Ke[de],qe=lt.node;lt.edgeOffset=null,lt.boundingClientRect=null,C(qe,null),I(qe,null),lt.translate=null}Fe.autoScroller.clear(),Fe.manager.active=null,Fe.manager.isKeySorting=!1,Fe.setState({sorting:!1,sortingIndex:null}),typeof Ht=="function"&&Ht({collection:Tt,newIndex:Fe.newIndex,oldIndex:Fe.index,isKeySorting:Bt,nodes:Ke},ft),Fe.touched=!1}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"autoscroll",function(){var ft=Fe.props.disableAutoscroll,et=Fe.manager.isKeySorting;if(ft){Fe.autoScroller.clear();return}if(et){var wt=Object(S.a)({},Fe.translate),Ht=0,Dt=0;Fe.axis.x&&(wt.x=Math.min(Fe.maxTranslate.x,Math.max(Fe.minTranslate.x,Fe.translate.x)),Ht=Fe.translate.x-wt.x),Fe.axis.y&&(wt.y=Math.min(Fe.maxTranslate.y,Math.max(Fe.minTranslate.y,Fe.translate.y)),Dt=Fe.translate.y-wt.y),Fe.translate=wt,C(Fe.helper,Fe.translate),Fe.scrollContainer.scrollLeft+=Ht,Fe.scrollContainer.scrollTop+=Dt;return}Fe.autoScroller.update({height:Fe.height,maxTranslate:Fe.maxTranslate,minTranslate:Fe.minTranslate,translate:Fe.translate,width:Fe.width})}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"onAutoScroll",function(ft){Fe.translate.x+=ft.left,Fe.translate.y+=ft.top,Fe.animateNodes()}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"handleKeyDown",function(ft){var et=ft.keyCode,wt=Fe.props,Ht=wt.shouldCancelStart,Dt=wt.keyCodes,Tt=Dt===void 0?{}:Dt,Bt=Object(S.a)({},ue,Tt);if(Fe.manager.active&&!Fe.manager.isKeySorting||!Fe.manager.active&&(!Bt.lift.includes(et)||Ht(ft)||!Fe.isValidSortingTarget(ft)))return;ft.stopPropagation(),ft.preventDefault(),Bt.lift.includes(et)&&!Fe.manager.active?Fe.keyLift(ft):Bt.drop.includes(et)&&Fe.manager.active?Fe.keyDrop(ft):Bt.cancel.includes(et)?(Fe.newIndex=Fe.manager.active.index,Fe.keyDrop(ft)):Bt.up.includes(et)?Fe.keyMove(-1):Bt.down.includes(et)&&Fe.keyMove(1)}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"keyLift",function(ft){var et=ft.target,wt=_(et,function(Bt){return Bt.sortableInfo!=null}),Ht=wt.sortableInfo,Dt=Ht.index,Tt=Ht.collection;Fe.initialFocusedNode=et,Fe.manager.isKeySorting=!0,Fe.manager.active={index:Dt,collection:Tt},Fe.handlePress(ft)}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"keyMove",function(ft){var et=Fe.manager.getOrderedRefs(),wt=et[et.length-1].node.sortableInfo.index,Ht=Fe.newIndex+ft,Dt=Fe.newIndex;if(Ht<0||Ht>wt)return;Fe.prevIndex=Dt,Fe.newIndex=Ht;var Tt=U(Fe.newIndex,Fe.prevIndex,Fe.index),Bt=et.find(function(hr){var gt=hr.node;return gt.sortableInfo.index===Tt}),Ke=Bt.node,de=Fe.containerScrollDelta,oe=Bt.boundingClientRect||X(Ke,de),lt=Bt.translate||{x:0,y:0},qe={top:oe.top+lt.y-de.top,left:oe.left+lt.x-de.left},pe=Dt<Ht,Kt={x:pe&&Fe.axis.x?Ke.offsetWidth-Fe.width:0,y:pe&&Fe.axis.y?Ke.offsetHeight-Fe.height:0};Fe.handleSortMove({pageX:qe.left+Kt.x,pageY:qe.top+Kt.y,ignoreTransition:ft===0})}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"keyDrop",function(ft){Fe.handleSortEnd(ft),Fe.initialFocusedNode&&Fe.initialFocusedNode.focus()}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"handleKeyEnd",function(ft){Fe.manager.active&&Fe.keyDrop(ft)}),Object(n.a)(Object(o.a)(Object(o.a)(Fe)),"isValidSortingTarget",function(ft){var et=Fe.props.useDragHandle,wt=ft.target,Ht=_(wt,function(Dt){return Dt.sortableInfo!=null});return Ht&&Ht.sortableInfo&&!Ht.sortableInfo.disabled&&(et?Pe(wt):wt.sortableInfo)}),Z(st),Fe.manager=new v,Fe.events={end:Fe.handleEnd,move:Fe.handleMove,start:Fe.handleStart},Fe}return Object(m.a)(pt,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var Fe=this,ft=this.props.useWindowAsScrollContainer,et=this.getContainer();Promise.resolve(et).then(function(wt){Fe.container=wt,Fe.document=Fe.container.ownerDocument||document;var Ht=Fe.props.contentWindow||Fe.document.defaultView||window;Fe.contentWindow=typeof Ht=="function"?Ht():Ht,Fe.scrollContainer=ft?Fe.document.scrollingElement||Fe.document.documentElement:te(Fe.container)||Fe.container,Fe.autoScroller=new Je(Fe.scrollContainer,Fe.onAutoScroll),Object.keys(Fe.events).forEach(function(Dt){return T[Dt].forEach(function(Tt){return Fe.container.addEventListener(Tt,Fe.events[Dt],!1)})}),Fe.container.addEventListener("keydown",Fe.handleKeyDown)})}},{key:"componentWillUnmount",value:function(){var Fe=this;if(this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),!this.container)return;Object.keys(this.events).forEach(function(ft){return T[ft].forEach(function(et){return Fe.container.removeEventListener(et,Fe.events[ft])})}),this.container.removeEventListener("keydown",this.handleKeyDown)}},{key:"updateHelperPosition",value:function(Fe){var ft=this.props,et=ft.lockAxis,wt=ft.lockOffset,Ht=ft.lockToContainerEdges,Dt=ft.transitionDuration,Tt=ft.keyboardSortingTransitionDuration,Bt=Tt===void 0?Dt:Tt,Ke=this.manager.isKeySorting,de=Fe.ignoreTransition,oe=P(Fe),lt={x:oe.x-this.initialOffset.x,y:oe.y-this.initialOffset.y};if(lt.y-=window.pageYOffset-this.initialWindowScroll.top,lt.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=lt,Ht){var qe=Q({height:this.height,lockOffset:wt,width:this.width}),pe=Object(p.a)(qe,2),Kt=pe[0],hr=pe[1],gt={x:this.width/2-Kt.x,y:this.height/2-Kt.y},nr={x:this.width/2-hr.x,y:this.height/2-hr.y};lt.x=F(this.minTranslate.x+gt.x,this.maxTranslate.x-nr.x,lt.x),lt.y=F(this.minTranslate.y+gt.y,this.maxTranslate.y-nr.y,lt.y)}et==="x"?lt.y=0:et==="y"&&(lt.x=0),Ke&&Bt&&!de&&I(this.helper,Bt),C(this.helper,lt)}},{key:"animateNodes",value:function(){var Fe=this.props,ft=Fe.transitionDuration,et=Fe.hideSortableGhost,wt=Fe.onSortOver,Ht=this.containerScrollDelta,Dt=this.windowScrollDelta,Tt=this.manager.getOrderedRefs(),Bt={left:this.offsetEdge.left+this.translate.x+Ht.left,top:this.offsetEdge.top+this.translate.y+Ht.top},Ke=this.manager.isKeySorting,de=this.newIndex;this.newIndex=null;for(var oe=0,lt=Tt.length;oe<lt;oe++){var qe=Tt[oe].node,pe=qe.sortableInfo.index,Kt=qe.offsetWidth,hr=qe.offsetHeight,gt={height:this.height>hr?hr/2:this.height/2,width:this.width>Kt?Kt/2:this.width/2},nr=Ke&&pe>this.index&&pe<=de,mr=Ke&&pe<this.index&&pe>=de,cn={x:0,y:0},Ar=Tt[oe].edgeOffset;Ar||(Ar=W(qe,this.container),Tt[oe].edgeOffset=Ar,Ke&&(Tt[oe].boundingClientRect=X(qe,Ht)));var xr=oe<Tt.length-1&&Tt[oe+1],qt=oe>0&&Tt[oe-1];if(xr&&!xr.edgeOffset&&(xr.edgeOffset=W(xr.node,this.container),Ke&&(xr.boundingClientRect=X(xr.node,Ht))),pe===this.index){et&&(this.sortableGhost=qe,E(qe,{opacity:0,visibility:"hidden"}));continue}ft&&I(qe,ft),this.axis.x?this.axis.y?mr||pe<this.index&&(Bt.left+Dt.left-gt.width<=Ar.left&&Bt.top+Dt.top<=Ar.top+gt.height||Bt.top+Dt.top+gt.height<=Ar.top)?(cn.x=this.width+this.marginOffset.x,Ar.left+cn.x>this.containerBoundingRect.width-gt.width&&(xr&&(cn.x=xr.edgeOffset.left-Ar.left,cn.y=xr.edgeOffset.top-Ar.top)),this.newIndex===null&&(this.newIndex=pe)):(nr||pe>this.index&&(Bt.left+Dt.left+gt.width>=Ar.left&&Bt.top+Dt.top+gt.height>=Ar.top||Bt.top+Dt.top+gt.height>=Ar.top+hr))&&(cn.x=-(this.width+this.marginOffset.x),Ar.left+cn.x<this.containerBoundingRect.left+gt.width&&(qt&&(cn.x=qt.edgeOffset.left-Ar.left,cn.y=qt.edgeOffset.top-Ar.top)),this.newIndex=pe):nr||pe>this.index&&Bt.left+Dt.left+gt.width>=Ar.left?(cn.x=-(this.width+this.marginOffset.x),this.newIndex=pe):(mr||pe<this.index&&Bt.left+Dt.left<=Ar.left+gt.width)&&(cn.x=this.width+this.marginOffset.x,this.newIndex==null&&(this.newIndex=pe)):this.axis.y&&(nr||pe>this.index&&Bt.top+Dt.top+gt.height>=Ar.top?(cn.y=-(this.height+this.marginOffset.y),this.newIndex=pe):(mr||pe<this.index&&Bt.top+Dt.top<=Ar.top+gt.height)&&(cn.y=this.height+this.marginOffset.y,this.newIndex==null&&(this.newIndex=pe))),C(qe,cn),Tt[oe].translate=cn}this.newIndex==null&&(this.newIndex=this.index),Ke&&(this.newIndex=de);var ar=Ke?this.prevIndex:de;wt&&this.newIndex!==ar&&wt({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:ar,isKeySorting:Ke,nodes:Tt,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return h()(Ie.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 Fe=this.props.getContainer;return typeof Fe!="function"?Object(r.findDOMNode)(this):Fe(Ie.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var Fe=Ie.withRef?"wrappedInstance":null;return Object(t.createElement)(Te,Object(y.a)({ref:Fe},x(this.props,ge)))}},{key:"helperContainer",get:function(){var Fe=this.props.helperContainer;return typeof Fe=="function"?Fe():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){var Fe=this.props.useWindowAsScrollContainer;return Fe?{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}}}]),pt}(t.Component),Object(n.a)(he,"displayName",M("sortableList",Te)),Object(n.a)(he,"defaultProps",rt),Object(n.a)(he,"propTypes",Ue),Object(n.a)(he,"childContextTypes",{manager:u.a.object.isRequired}),ye}var fe={index:u.a.number.isRequired,collection:u.a.oneOfType([u.a.number,u.a.string]),disabled:u.a.bool},be=Object.keys(fe);function Ce(Te){var he,ye,Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{withRef:!1};return ye=he=function(tt){Object(l.a)(pt,tt);function pt(){return Object(A.a)(this,pt),Object(f.a)(this,Object(d.a)(pt).apply(this,arguments))}return Object(m.a)(pt,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(Fe){this.node&&(Fe.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),Fe.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),Fe.collection!==this.props.collection&&(this.unregister(Fe.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var Fe=this.props,ft=Fe.collection,et=Fe.disabled,wt=Fe.index,Ht=Object(r.findDOMNode)(this);Ht.sortableInfo={collection:ft,disabled:et,index:wt,manager:this.context.manager},this.node=Ht,this.ref={node:Ht},this.context.manager.add(ft,this.ref)}},{key:"unregister",value:function(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.collection;this.context.manager.remove(Fe,this.ref)}},{key:"getWrappedInstance",value:function(){return h()(Ie.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 Fe=Ie.withRef?"wrappedInstance":null;return Object(t.createElement)(Te,Object(y.a)({ref:Fe},x(this.props,be)))}}]),pt}(t.Component),Object(n.a)(he,"displayName",M("sortableElement",Te)),Object(n.a)(he,"contextTypes",{manager:u.a.object.isRequired}),Object(n.a)(he,"propTypes",fe),Object(n.a)(he,"defaultProps",{collection:0}),ye}},YNAk:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("QyFq")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="CaretDownFilled";var n=A.forwardRef(o);D.default=n},YNf1:function(k,D,i){var y=i("IwbS"),p=i("6Ic6"),S=.3,A=p.extend({type:"parallel",init:function(){this._dataGroup=new y.Group,this.group.add(this._dataGroup),this._data,this._initialized},render:function(a,e,u,r){var s=this._dataGroup,c=a.getData(),h=this._data,g=a.coordinateSystem,v=g.dimensions,b=l(a);c.diff(h).add(w).update(x).remove(T).execute();function w(E){var C=d(c,s,E,v,g);o(C,c,E,b)}function x(E,C){var I=h.getItemGraphicEl(C),_=f(c,E,v,g);c.setItemGraphicEl(E,I);var F=r&&r.animation===!1?null:a;y.updateProps(I,{shape:{points:_}},F,E),o(I,c,E,b)}function T(E){var C=h.getItemGraphicEl(E);s.remove(C)}if(!this._initialized){this._initialized=!0;var O=m(g,a,function(){setTimeout(function(){s.removeClipPath()})});s.setClipPath(O)}this._data=c},incrementalPrepareRender:function(a,e,u){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},incrementalRender:function(a,e,u){for(var r=e.getData(),s=e.coordinateSystem,c=s.dimensions,h=l(e),g=a.start;g<a.end;g++){var v=d(r,this._dataGroup,g,c,s);v.incremental=!0,o(v,r,g,h)}},dispose:function(){},remove:function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null}});function m(a,e,u){var r=a.model,s=a.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(a,e,u,r){for(var s=[],c=0;c<u.length;c++){var h=u[c],g=a.get(a.mapDimension(h),e);n(g,r.getAxis(h).type)||s.push(r.dataToPoint(g,h))}return s}function d(a,e,u,r,s){var c=f(a,u,r,s),h=new y.Polyline({shape:{points:c},silent:!0,z2:10});return e.add(h),a.setItemGraphicEl(u,h),h}function l(a){var e=a.get("smooth",!0);return e===!0&&(e=S),{lineStyle:a.getModel("lineStyle").getLineStyle(),smooth:e!=null?e:S}}function o(a,e,u,r){var s=r.lineStyle;if(e.hasItemOption){var c=e.getItemModel(u).getModel("lineStyle");s=c.getLineStyle()}a.useStyle(s);var h=a.style;h.fill=null,h.stroke=e.getItemVisual(u,"color"),h.opacity=e.getItemVisual(u,"opacity"),r.smooth&&(a.shape.smooth=r.smooth)}function n(a,e){return e==="category"?a==null:a==null||isNaN(a)}var t=A;k.exports=t},YOMW:function(k,D,i){var y=i("bYtY"),p={get:function(m,f,d){var l=y.clone((S[m]||{})[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]}},A=p;k.exports=A},YXkt:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),A=i("Qxkt"),m=i("gPAo"),f=i("7G+c"),d=i("KxfA"),l=d.defaultDimValueGetters,o=d.DefaultDataProvider,n=i("L0Ub"),t=n.summarizeDimensions,a=i("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,g=typeof Int32Array===u?Array:Int32Array,v=typeof Uint16Array===u?Array:Uint16Array;function b(G){return G._rawCount>65535?h:v}function w(G){var te=G.constructor;return te===Array?G.slice():new te(G)}var x=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_rawData","_chunkSize","_chunkCount","_dimValueGetter","_count","_rawCount","_nameDimIdx","_idDimIdx"],T=["_extent","_approximateExtent","_rawExtent"];function O(G,te){S.each(x.concat(te.__wrappedMethods||[]),function($){te.hasOwnProperty($)&&(G[$]=te[$])}),G.__wrappedMethods=te.__wrappedMethods,S.each(T,function($){G[$]=S.clone(te[$])}),G._calculationInfo=S.extend(te._calculationInfo)}var E=function(G,te){G=G||["x","y"];for(var $={},le=[],re={},Se=0;Se<G.length;Se++){var Re=G[Se];S.isString(Re)?Re=new a({name:Re}):Re instanceof a||(Re=new a(Re));var Pe=Re.name;Re.type=Re.type||"float",Re.coordDim||(Re.coordDim=Pe,Re.coordDimIndex=0),Re.otherDims=Re.otherDims||{},le.push(Pe),$[Pe]=Re,Re.index=Se,Re.createInvertedIndices&&(re[Pe]=[])}this.dimensions=le,this._dimensionInfos=$,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},C=E.prototype;C.type="list",C.hasItemOption=!0,C.getDimension=function(G){return(typeof G=="number"||!isNaN(G)&&!this._dimensionInfos.hasOwnProperty(G))&&(G=this.dimensions[G]),G},C.getDimensionInfo=function(G){return this._dimensionInfos[this.getDimension(G)]},C.getDimensionsOnCoord=function(){return this._dimensionsSummary.dataDimsOnCoord.slice()},C.mapDimension=function(G,te){var $=this._dimensionsSummary;if(te==null)return $.encodeFirstDimNotExtra[G];var le=$.encode[G];return te===!0?(le||[]).slice():le&&le[te]},C.initData=function(G,te,$){var le=f.isInstance(G)||S.isArrayLike(G);le&&(G=new o(G,this.dimensions.length)),this._rawData=G,this._storage={},this._indices=null,this._nameList=te||[],this._idList=[],this._nameRepeatCount={},$||(this.hasItemOption=!1),this.defaultDimValueGetter=l[this._rawData.getSource().sourceFormat],this._dimValueGetter=$=$||this.defaultDimValueGetter,this._dimValueGetterArrayRows=l.arrayRows,this._rawExtent={},this._initDataFromProvider(0,G.count()),G.pure&&(this.hasItemOption=!1)},C.getProvider=function(){return this._rawData},C.appendData=function(G){var te=this._rawData,$=this.count();te.appendData(G);var le=te.count();te.persistent||(le+=$),this._initDataFromProvider($,le)},C.appendValues=function(G,te){for(var $=this._chunkSize,le=this._storage,re=this.dimensions,Se=re.length,Re=this._rawExtent,Pe=this.count(),Je=Pe+Math.max(G.length,te?te.length:0),Ve=this._chunkCount,ct=0;ct<Se;ct++){var Ue=re[ct];Re[Ue]||(Re[Ue]=U()),le[Ue]||(le[Ue]=[]),I(le,this._dimensionInfos[Ue],$,Ve,Je),this._chunkCount=le[Ue].length}for(var ue=new Array(Se),rt=Pe;rt<Je;rt++){for(var ge=rt-Pe,Z=Math.floor(rt/$),Y=rt%$,ee=0;ee<Se;ee++){var Ue=re[ee],fe=this._dimValueGetterArrayRows(G[ge]||ue,Ue,ge,ee);le[Ue][Z][Y]=fe;var be=Re[Ue];fe<be[0]&&(be[0]=fe),fe>be[1]&&(be[1]=fe)}te&&(this._nameList[rt]=te[ge])}this._rawCount=this._count=Je,this._extent={},_(this)},C._initDataFromProvider=function(G,te){if(G>=te)return;for(var $=this._chunkSize,le=this._rawData,re=this._storage,Se=this.dimensions,Re=Se.length,Pe=this._dimensionInfos,Je=this._nameList,Ve=this._idList,ct=this._rawExtent,Ue=this._nameRepeatCount={},ue,rt=this._chunkCount,ge=0;ge<Re;ge++){var Z=Se[ge];ct[Z]||(ct[Z]=U());var Y=Pe[Z];Y.otherDims.itemName===0&&(ue=this._nameDimIdx=ge),Y.otherDims.itemId===0&&(this._idDimIdx=ge),re[Z]||(re[Z]=[]),I(re,Y,$,rt,te),this._chunkCount=re[Z].length}for(var ee=new Array(Re),fe=G;fe<te;fe++){ee=le.getItem(fe,ee);for(var be=Math.floor(fe/$),Ce=fe%$,Te=0;Te<Re;Te++){var Z=Se[Te],he=re[Z][be],ye=this._dimValueGetter(ee,Z,fe,Te);he[Ce]=ye;var Ie=ct[Z];ye<Ie[0]&&(Ie[0]=ye),ye>Ie[1]&&(Ie[1]=ye)}if(!le.pure){var tt=Je[fe];if(ee&&tt==null){if(ee.name!=null)Je[fe]=tt=ee.name;else if(ue!=null){var pt=Se[ue],st=re[pt][be];if(st){tt=st[Ce];var Fe=Pe[pt].ordinalMeta;Fe&&Fe.categories.length&&(tt=Fe.categories[tt])}}}var ft=ee==null?null:ee.id;ft==null&&tt!=null&&(Ue[tt]=Ue[tt]||0,ft=tt,Ue[tt]>0&&(ft+="__ec__"+Ue[tt]),Ue[tt]++),ft!=null&&(Ve[fe]=ft)}}!le.persistent&&le.clean&&le.clean(),this._rawCount=this._count=te,this._extent={},_(this)};function I(G,te,$,le,re){var Se=c[te.type],Re=le-1,Pe=te.name,Je=G[Pe][Re];if(Je&&Je.length<$){for(var Ve=new Se(Math.min(re-Re*$,$)),ct=0;ct<Je.length;ct++)Ve[ct]=Je[ct];G[Pe][Re]=Ve}for(var Ue=le*$;Ue<re;Ue+=$)G[Pe].push(new Se(Math.min(re-Ue,$)))}function _(G){var te=G._invertedIndicesMap;S.each(te,function($,le){var re=G._dimensionInfos[le],Se=re.ordinalMeta;if(Se){$=te[le]=new g(Se.categories.length);for(var Re=0;Re<$.length;Re++)$[Re]=r;for(var Re=0;Re<G._count;Re++)$[G.get(le,Re)]=Re}})}function F(G,te,$){var le;if(te!=null){var re=G._chunkSize,Se=Math.floor($/re),Re=$%re,Pe=G.dimensions[te],Je=G._storage[Pe][Se];if(Je){le=Je[Re];var Ve=G._dimensionInfos[Pe].ordinalMeta;Ve&&Ve.categories.length&&(le=Ve.categories[le])}}return le}C.count=function(){return this._count},C.getIndices=function(){var G,te=this._indices;if(te){var $=te.constructor,le=this._count;if($===Array){G=new $(le);for(var re=0;re<le;re++)G[re]=te[re]}else G=new $(te.buffer,0,le)}else for(var $=b(this),G=new $(this.count()),re=0;re<G.length;re++)G[re]=re;return G},C.get=function(G,te){if(!(te>=0&&te<this._count))return NaN;var $=this._storage;if(!$[G])return NaN;te=this.getRawIndex(te);var le=Math.floor(te/this._chunkSize),re=te%this._chunkSize,Se=$[G][le],Re=Se[re];return Re},C.getByRawIndex=function(G,te){if(!(te>=0&&te<this._rawCount))return NaN;var $=this._storage[G];if(!$)return NaN;var le=Math.floor(te/this._chunkSize),re=te%this._chunkSize,Se=$[le];return Se[re]},C._getFast=function(G,te){var $=Math.floor(te/this._chunkSize),le=te%this._chunkSize,re=this._storage[G][$];return re[le]},C.getValues=function(G,te){var $=[];S.isArray(G)||(te=G,G=this.dimensions);for(var le=0,re=G.length;le<re;le++)$.push(this.get(G[le],te));return $},C.hasValue=function(G){for(var te=this._dimensionsSummary.dataDimsOnCoord,$=0,le=te.length;$<le;$++)if(isNaN(this.get(te[$],G)))return!1;return!0},C.getDataExtent=function(G){G=this.getDimension(G);var te=this._storage[G],$=U();if(!te)return $;var le=this.count(),re=!this._indices,Se;if(re)return this._rawExtent[G].slice();if(Se=this._extent[G],Se)return Se.slice();Se=$;for(var Re=Se[0],Pe=Se[1],Je=0;Je<le;Je++){var Ve=this._getFast(G,this.getRawIndex(Je));Ve<Re&&(Re=Ve),Ve>Pe&&(Pe=Ve)}return Se=[Re,Pe],this._extent[G]=Se,Se},C.getApproximateExtent=function(G){return G=this.getDimension(G),this._approximateExtent[G]||this.getDataExtent(G)},C.setApproximateExtent=function(G,te){te=this.getDimension(te),this._approximateExtent[te]=G.slice()},C.getCalculationInfo=function(G){return this._calculationInfo[G]},C.setCalculationInfo=function(G,te){e(G)?S.extend(this._calculationInfo,G):this._calculationInfo[G]=te},C.getSum=function(G){var te=this._storage[G],$=0;if(te)for(var le=0,re=this.count();le<re;le++){var Se=this.get(G,le);isNaN(Se)||($+=Se)}return $},C.getMedian=function(G){var te=[];this.each(G,function(re,Se){isNaN(re)||te.push(re)});var $=[].concat(te).sort(function(re,Se){return re-Se}),le=this.count();return le===0?0:le%2===1?$[(le-1)/2]:($[le/2]+$[le/2-1])/2},C.rawIndexOf=function(G,te){var $=G&&this._invertedIndicesMap[G],le=$[te];return le==null||isNaN(le)?r:le},C.indexOfName=function(G){for(var te=0,$=this.count();te<$;te++)if(this.getName(te)===G)return te;return-1},C.indexOfRawIndex=function(G){if(G>=this._rawCount||G<0)return-1;if(!this._indices)return G;var te=this._indices,$=te[G];if($!=null&&$<this._count&&$===G)return G;for(var le=0,re=this._count-1;le<=re;){var Se=(le+re)/2|0;if(te[Se]<G)le=Se+1;else if(te[Se]>G)re=Se-1;else return Se}return-1},C.indicesOfNearest=function(G,te,$){var le=this._storage,re=le[G],Se=[];if(!re)return Se;$==null&&($=Infinity);for(var Re=Infinity,Pe=-1,Je=0,Ve=0,ct=this.count();Ve<ct;Ve++){var Ue=te-this.get(G,Ve),ue=Math.abs(Ue);ue<=$&&((ue<Re||ue===Re&&Ue>=0&&Pe<0)&&(Re=ue,Pe=Ue,Je=0),Ue===Pe&&(Se[Je++]=Ve))}return Se.length=Je,Se},C.getRawIndex=R;function R(G){return G}function B(G){return G<this._count&&G>=0?this._indices[G]:-1}C.getRawDataItem=function(G){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(G));for(var te=[],$=0;$<this.dimensions.length;$++){var le=this.dimensions[$];te.push(this.get(le,G))}return te},C.getName=function(G){var te=this.getRawIndex(G);return this._nameList[te]||F(this,this._nameDimIdx,te)||""},C.getId=function(G){return M(this,this.getRawIndex(G))};function M(G,te){var $=G._idList[te];return $==null&&($=F(G,G._idDimIdx,te)),$==null&&($=s+te),$}function X(G){return S.isArray(G)||(G=[G]),G}function P(G,te){for(var $=0;$<te.length;$++)G._dimensionInfos[te[$]]||console.error("Unkown dimension "+te[$])}C.each=function(G,te,$,le){"use strict";if(!this._count)return;typeof G=="function"&&(le=$,$=te,te=G,G=[]),$=$||le||this,G=S.map(X(G),this.getDimension,this);for(var re=G.length,Se=0;Se<this.count();Se++)switch(re){case 0:te.call($,Se);break;case 1:te.call($,this.get(G[0],Se),Se);break;case 2:te.call($,this.get(G[0],Se),this.get(G[1],Se),Se);break;default:for(var Re=0,Pe=[];Re<re;Re++)Pe[Re]=this.get(G[Re],Se);Pe[Re]=Se,te.apply($,Pe)}},C.filterSelf=function(G,te,$,le){"use strict";if(!this._count)return;typeof G=="function"&&(le=$,$=te,te=G,G=[]),$=$||le||this,G=S.map(X(G),this.getDimension,this);for(var re=this.count(),Se=b(this),Re=new Se(re),Pe=[],Je=G.length,Ve=0,ct=G[0],Ue=0;Ue<re;Ue++){var ue,rt=this.getRawIndex(Ue);if(Je===0)ue=te.call($,Ue);else if(Je===1){var ge=this._getFast(ct,rt);ue=te.call($,ge,Ue)}else{for(var Z=0;Z<Je;Z++)Pe[Z]=this._getFast(ct,rt);Pe[Z]=Ue,ue=te.apply($,Pe)}ue&&(Re[Ve++]=rt)}return Ve<re&&(this._indices=Re),this._count=Ve,this._extent={},this.getRawIndex=this._indices?B:R,this},C.selectRange=function(G){"use strict";if(!this._count)return;var te=[];for(var $ in G)G.hasOwnProperty($)&&te.push($);var le=te.length;if(!le)return;var re=this.count(),Se=b(this),Re=new Se(re),Pe=0,Je=te[0],Ve=G[Je][0],ct=G[Je][1],Ue=!1;if(!this._indices){var ue=0;if(le===1){for(var rt=this._storage[te[0]],ge=0;ge<this._chunkCount;ge++)for(var Z=rt[ge],Y=Math.min(this._count-ge*this._chunkSize,this._chunkSize),ee=0;ee<Y;ee++){var fe=Z[ee];(fe>=Ve&&fe<=ct||isNaN(fe))&&(Re[Pe++]=ue),ue++}Ue=!0}else if(le===2){for(var rt=this._storage[Je],be=this._storage[te[1]],Ce=G[te[1]][0],Te=G[te[1]][1],ge=0;ge<this._chunkCount;ge++)for(var Z=rt[ge],he=be[ge],Y=Math.min(this._count-ge*this._chunkSize,this._chunkSize),ee=0;ee<Y;ee++){var fe=Z[ee],ye=he[ee];(fe>=Ve&&fe<=ct||isNaN(fe))&&(ye>=Ce&&ye<=Te||isNaN(ye))&&(Re[Pe++]=ue),ue++}Ue=!0}}if(!Ue)if(le===1)for(var ee=0;ee<re;ee++){var Ie=this.getRawIndex(ee),fe=this._getFast(Je,Ie);(fe>=Ve&&fe<=ct||isNaN(fe))&&(Re[Pe++]=Ie)}else for(var ee=0;ee<re;ee++){for(var tt=!0,Ie=this.getRawIndex(ee),ge=0;ge<le;ge++){var pt=te[ge],fe=this._getFast($,Ie);(fe<G[pt][0]||fe>G[pt][1])&&(tt=!1)}tt&&(Re[Pe++]=this.getRawIndex(ee))}return Pe<re&&(this._indices=Re),this._count=Pe,this._extent={},this.getRawIndex=this._indices?B:R,this},C.mapArray=function(G,te,$,le){"use strict";typeof G=="function"&&(le=$,$=te,te=G,G=[]),$=$||le||this;var re=[];return this.each(G,function(){re.push(te&&te.apply(this,arguments))},$),re};function z(G,te){var $=G.dimensions,le=new E(S.map($,G.getDimensionInfo,G),G.hostModel);O(le,G);for(var re=le._storage={},Se=G._storage,Re=0;Re<$.length;Re++){var Pe=$[Re];Se[Pe]&&(S.indexOf(te,Pe)>=0?(re[Pe]=W(Se[Pe]),le._rawExtent[Pe]=U(),le._extent[Pe]=null):re[Pe]=Se[Pe])}return le}function W(G){for(var te=new Array(G.length),$=0;$<G.length;$++)te[$]=w(G[$]);return te}function U(){return[Infinity,-Infinity]}C.map=function(G,te,$,le){"use strict";$=$||le||this,G=S.map(X(G),this.getDimension,this);var re=z(this,G);re._indices=this._indices,re.getRawIndex=re._indices?B:R;for(var Se=re._storage,Re=[],Pe=this._chunkSize,Je=G.length,Ve=this.count(),ct=[],Ue=re._rawExtent,ue=0;ue<Ve;ue++){for(var rt=0;rt<Je;rt++)ct[rt]=this.get(G[rt],ue);ct[Je]=ue;var ge=te&&te.apply($,ct);if(ge!=null){typeof ge!="object"&&(Re[0]=ge,ge=Re);for(var Z=this.getRawIndex(ue),Y=Math.floor(Z/Pe),ee=Z%Pe,fe=0;fe<ge.length;fe++){var be=G[fe],Ce=ge[fe],Te=Ue[be],he=Se[be];he&&(he[Y][ee]=Ce),Ce<Te[0]&&(Te[0]=Ce),Ce>Te[1]&&(Te[1]=Ce)}}}return re},C.downSample=function(G,te,$,le){for(var re=z(this,[G]),Se=re._storage,Re=[],Pe=Math.floor(1/te),Je=Se[G],Ve=this.count(),ct=this._chunkSize,Ue=re._rawExtent[G],ue=new(b(this))(Ve),rt=0,ge=0;ge<Ve;ge+=Pe){Pe>Ve-ge&&(Pe=Ve-ge,Re.length=Pe);for(var Z=0;Z<Pe;Z++){var Y=this.getRawIndex(ge+Z),ee=Math.floor(Y/ct),fe=Y%ct;Re[Z]=Je[ee][fe]}var be=$(Re),Ce=this.getRawIndex(Math.min(ge+le(Re,be)||0,Ve-1)),Te=Math.floor(Ce/ct),he=Ce%ct;Je[Te][he]=be,be<Ue[0]&&(Ue[0]=be),be>Ue[1]&&(Ue[1]=be),ue[rt++]=Ce}return re._count=rt,re._indices=ue,re.getRawIndex=B,re},C.getItemModel=function(G){var te=this.hostModel;return new A(this.getRawDataItem(G),te,te&&te.ecModel)},C.diff=function(G){var te=this;return new m(G?G.getIndices():[],this.getIndices(),function($){return M(G,$)},function($){return M(te,$)})},C.getVisual=function(G){var te=this._visual;return te&&te[G]},C.setVisual=function(G,te){if(e(G)){for(var $ in G)G.hasOwnProperty($)&&this.setVisual($,G[$]);return}this._visual=this._visual||{},this._visual[G]=te},C.setLayout=function(G,te){if(e(G)){for(var $ in G)G.hasOwnProperty($)&&this.setLayout($,G[$]);return}this._layout[G]=te},C.getLayout=function(G){return this._layout[G]},C.getItemLayout=function(G){return this._itemLayouts[G]},C.setItemLayout=function(G,te,$){this._itemLayouts[G]=$?S.extend(this._itemLayouts[G]||{},te):te},C.clearItemLayouts=function(){this._itemLayouts.length=0},C.getItemVisual=function(G,te,$){var le=this._itemVisuals[G],re=le&&le[te];return re==null&&!$?this.getVisual(te):re},C.setItemVisual=function(G,te,$){var le=this._itemVisuals[G]||{},re=this.hasItemVisual;if(this._itemVisuals[G]=le,e(te)){for(var Se in te)te.hasOwnProperty(Se)&&(le[Se]=te[Se],re[Se]=!0);return}le[te]=$,re[te]=!0},C.clearAllVisual=function(){this._visual={},this._itemVisuals=[],this.hasItemVisual={}};var V=function(G){G.seriesIndex=this.seriesIndex,G.dataIndex=this.dataIndex,G.dataType=this.dataType};C.setItemGraphicEl=function(G,te){var $=this.hostModel;te&&(te.dataIndex=G,te.dataType=this.dataType,te.seriesIndex=$&&$.seriesIndex,te.type==="group"&&te.traverse(V,te)),this._graphicEls[G]=te},C.getItemGraphicEl=function(G){return this._graphicEls[G]},C.eachItemGraphicEl=function(G,te){S.each(this._graphicEls,function($,le){$&&(G&&G.call(te,$,le))})},C.cloneShallow=function(G){if(!G){var te=S.map(this.dimensions,this.getDimensionInfo,this);G=new E(te,this.hostModel)}if(G._storage=this._storage,O(G,this),this._indices){var $=this._indices.constructor;G._indices=new $(this._indices)}else G._indices=null;return G.getRawIndex=G._indices?B:R,G},C.wrapMethod=function(G,te){var $=this[G];if(typeof $!="function")return;this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(G),this[G]=function(){var le=$.apply(this,arguments);return te.apply(this,[le].concat(S.slice(arguments)))}},C.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],C.CHANGABLE_METHODS=["filterSelf","selectRange"];var Q=E;k.exports=Q},YgsL:function(k,D,i){var y=i("QBsz"),p=y.distance;function S(m,f,d,l,o,n,t){var a=(d-m)*.5,e=(l-f)*.5;return(2*(f-d)+a+e)*t+(-3*(f-d)-2*a-e)*n+a*o+f}function A(m,f){for(var d=m.length,l=[],o=0,n=1;n<d;n++)o+=p(m[n-1],m[n]);var t=o/2;t=t<d?d:t;for(var n=0;n<t;n++){var a=n/(t-1)*(f?d:d-1),e=Math.floor(a),u=a-e,r,s=m[e%d],c,h;f?(r=m[(e-1+d)%d],c=m[(e+1)%d],h=m[(e+2)%d]):(r=m[e===0?e:e-1],c=m[e>d-2?d-1:e+1],h=m[e>d-3?d-1:e+2]);var g=u*u,v=u*g;l.push([S(r[0],s[0],c[0],h[0],u,g,v),S(r[1],s[1],c[1],h[1],u,g,v)])}return l}k.exports=A},Yl7c:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),A=".",m="___EC__COMPONENT__CONTAINER___";function f(r){var s={main:"",sub:""};return r&&(r=r.split(A),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,g=function(){c.$constructor?c.$constructor.apply(this,arguments):h.apply(this,arguments)};return S.extend(g.prototype,c),g.extend=this.extend,g.superCall=t,g.superApply=a,S.inherits(g,this),g.superClass=h,g}}var o=0;function n(r){var s=["__\0is_clz",o++,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 a(r,s,c){return this.superClass.prototype[s].apply(r,c)}function e(r,s){s=s||{};var c={};r.registerClass=function(v,b){if(b){if(d(b),b=f(b),!b.sub)c[b.main]=v;else if(b.sub!==m){var w=h(b);w[b.sub]=v}}return v},r.getClass=function(v,b,w){var x=c[v];if(x&&x[m]&&(x=b?x[b]:null),w&&!x)throw new Error(b?"Component "+v+"."+(b||"")+" not exists. Load it first.":v+".type should be specified.");return x},r.getClassesByMainType=function(v){v=f(v);var b=[],w=c[v.main];return w&&w[m]?S.each(w,function(x,T){T!==m&&b.push(x)}):b.push(w),b},r.hasClass=function(v){return v=f(v),!!c[v.main]},r.getAllClassMainTypes=function(){var v=[];return S.each(c,function(b,w){v.push(w)}),v},r.hasSubTypes=function(v){v=f(v);var b=c[v.main];return b&&b[m]},r.parseClassType=f;function h(v){var b=c[v.main];return(!b||!b[m])&&(b=c[v.main]={},b[m]=!0),b}if(s.registerWhenExtend){var g=r.extend;g&&(r.extend=function(v){var b=g.call(this,v);return r.registerClass(b,v.type)})}return r}function u(r,s){}D.parseClassType=f,D.enableClassExtend=l,D.enableClassCheck=n,D.enableClassManagement=e,D.setReadOnly=u},Ynxi:function(k,D,i){var y=i("bYtY"),p=i("ProS"),S=i("IwbS"),A=i("+TT/"),m=A.getLayoutRect,f=i("7aKB"),d=f.windowOpen;p.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"}}}),p.extendComponentView({type:"title",render:function(l,o,n){if(this.group.removeAll(),!l.get("show"))return;var t=this.group,a=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({},a,{text:l.get("text"),textFill:a.getTextColor()},{disableBox:!0}),z2:10}),c=s.getBoundingRect(),h=l.get("subtext"),g=new S.Text({style:S.setTextStyle({},e,{text:h,textFill:e.getTextColor(),y:c.height+l.get("itemGap"),textVerticalAlign:"top"},{disableBox:!0}),z2:10}),v=l.get("link"),b=l.get("sublink"),w=l.get("triggerEvent",!0);s.silent=!v&&!w,g.silent=!b&&!w,v&&s.on("click",function(){d(v,"_"+l.get("target"))}),b&&g.on("click",function(){d(v,"_"+l.get("subtarget"))}),s.eventData=g.eventData=w?{componentType:"title",componentIndex:l.componentIndex}:null,t.add(s),h&&t.add(g);var x=t.getBoundingRect(),T=l.getBoxLayoutParams();T.width=x.width,T.height=x.height;var O=m(T,{width:n.getWidth(),height:n.getHeight()},l.get("padding"));u||(u=l.get("left")||l.get("right"),u==="middle"&&(u="center"),u==="right"?O.x+=O.width:u==="center"&&(O.x+=O.width/2)),r||(r=l.get("top")||l.get("bottom"),r==="center"&&(r="middle"),r==="bottom"?O.y+=O.height:r==="middle"&&(O.y+=O.height/2),r=r||"top"),t.attr("position",[O.x,O.y]);var E={textAlign:u,textVerticalAlign:r};s.setStyle(E),g.setStyle(E),x=t.getBoundingRect();var C=O.margin,I=l.getItemStyle(["color","opacity"]);I.fill=l.get("backgroundColor");var _=new S.Rect({shape:{x:x.x-C[3],y:x.y-C[0],width:x.width+C[1]+C[3],height:x.height+C[0]+C[2],r:l.get("borderRadius")},style:I,subPixelOptimize:!0,silent:!0});t.add(_)}})},Ywus:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("DO2E")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="DeleteOutlined";var n=A.forwardRef(o);D.default=n},Z0Lh:function(k,D,i){"use strict";var y=i("TqRt");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var p=y(i("pVnL")),S=y(i("HjOm")),A=y(i("Z6rY")),m={lang:(0,p.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,p.default)({},A.default)};m.lang.ok="\u786E \u5B9A";var f=m;D.default=f},Z1HP:function(k,D,i){var y=i("ycre"),p=i("quyA"),S=i("q4HE");function A(m){return p(m)?S(m):y(m)}k.exports=A},Z1r0:function(k,D){function i(y){var p=y.findComponents({mainType:"legend"});if(!p||!p.length)return;y.eachSeriesByType("graph",function(S){var A=S.getCategoriesData(),m=S.getGraph(),f=m.data,d=A.mapArray(A.getName);f.filterSelf(function(l){var o=f.getItemModel(l),n=o.getShallow("category");if(n!=null){typeof n=="number"&&(n=d[n]);for(var t=0;t<p.length;t++)if(!p[t].isSelected(n))return!1}return!0})},this)}k.exports=i},Z1wy:function(k,D,i){var y=i("ProS");i("ThAp"),i("pmaE"),i("SehX"),i("7uqq");var p=i("zuHt"),S=i("VPsl"),A=i("9u0u"),m=i("lELe"),f=i("d4KN");y.registerLayout(p),y.registerVisual(S),y.registerProcessor(y.PRIORITY.PROCESSOR.STATISTIC,A),y.registerPreprocessor(m),f("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},Z6js:function(k,D,i){var y=i("MwEJ"),p=i("T4UG"),S=p.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(A,m){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}});k.exports=S},Z6rY:function(k,D,i){"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"]},p=y;D.default=p},Z8oC:function(k,D,i){var y=i("y1pI");function p(S,A){var m=this.__data__,f=y(m,S);return f<0?(++this.size,m.push([S,A])):m[f][1]=A,this}k.exports=p},Z8zF:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("ProS"),A=i("bYtY"),m=i("IwbS"),f=i("56rv"),d=f.setLabel,l=i("Qxkt"),o=i("tceW"),n=i("y+Vt"),t=i("4fz+"),a=i("iLNv"),e=a.throttle,u=i("sK/D"),r=u.createClipPath,s=i("wr5s"),c=["itemStyle","barBorderWidth"],h=[0,0];A.extend(l.prototype,o);function g(V,Q){var G=V.getArea&&V.getArea();if(V.type==="cartesian2d"){var te=V.getBaseAxis();if(te.type!=="category"||!te.onBand){var $=Q.getLayout("bandWidth");te.isHorizontal()?(G.x-=$,G.width+=$*2):(G.y-=$,G.height+=$*2)}}return G}var v=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,$=V.getData(),le=this._data,re=V.coordinateSystem,Se=re.getBaseAxis(),Re;re.type==="cartesian2d"?Re=Se.isHorizontal():re.type==="polar"&&(Re=Se.dim==="angle");var Pe=V.isAnimationEnabled()?V:null,Je=V.get("clip",!0),Ve=g(re,$);te.removeClipPath();var ct=V.get("roundCap",!0),Ue=V.get("showBackground",!0),ue=V.getModel("backgroundStyle"),rt=ue.get("barBorderRadius")||0,ge=[],Z=this._backgroundEls||[];$.diff(le).add(function(fe){var be=$.getItemModel(fe),Ce=C[re.type]($,fe,be);if(Ue){var Te=C[re.type]($,fe),he=U(re,Re,Te);he.useStyle(ue.getBarItemStyle()),re.type==="cartesian2d"&&he.setShape("r",rt),ge[fe]=he}if(!$.hasValue(fe))return;if(Je){var ye=x[re.type](Ve,Ce);if(ye){te.remove(Ie);return}}var Ie=T[re.type](fe,Ce,Re,Pe,!1,ct);$.setItemGraphicEl(fe,Ie),te.add(Ie),_(Ie,$,fe,be,Ce,V,Re,re.type==="polar")}).update(function(fe,be){var Ce=$.getItemModel(fe),Te=C[re.type]($,fe,Ce);if(Ue){var he=Z[be];he.useStyle(ue.getBarItemStyle()),re.type==="cartesian2d"&&he.setShape("r",rt),ge[fe]=he;var ye=C[re.type]($,fe),Ie=W(Re,ye,re);m.updateProps(he,{shape:Ie},Pe,fe)}var tt=le.getItemGraphicEl(be);if(!$.hasValue(fe)){te.remove(tt);return}if(Je){var pt=x[re.type](Ve,Te);if(pt){te.remove(tt);return}}tt?m.updateProps(tt,{shape:Te},Pe,fe):tt=T[re.type](fe,Te,Re,Pe,!0,ct),$.setItemGraphicEl(fe,tt),te.add(tt),_(tt,$,fe,Ce,Te,V,Re,re.type==="polar")}).remove(function(fe){var be=le.getItemGraphicEl(fe);re.type==="cartesian2d"?be&&O(fe,Pe,be):be&&E(fe,Pe,be)}).execute();var Y=this._backgroundGroup||(this._backgroundGroup=new t);Y.removeAll();for(var ee=0;ee<ge.length;++ee)Y.add(ge[ee]);te.add(Y),this._backgroundEls=ge,this._data=$},_renderLarge:function(V,Q,G){this._clear(),B(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(),B(Q,this.group,!0)},dispose:A.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"?E(te.dataIndex,V,te):O(te.dataIndex,V,te)})):Q.removeAll(),this._data=null},_removeBackground:function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null}}),b=Math.max,w=Math.min,x={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 $=b(Q.x,V.x),le=w(Q.x+Q.width,V.x+V.width),re=b(Q.y,V.y),Se=w(Q.y+Q.height,V.y+V.height);Q.x=$,Q.y=re,Q.width=le-$,Q.height=Se-re;var Re=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),Re},polar:function(V){return!1}},T={cartesian2d:function(V,Q,G,te,$){var le=new m.Rect({shape:A.extend({},Q),z2:1});if(le.name="item",te){var re=le.shape,Se=G?"height":"width",Re={};re[Se]=0,Re[Se]=Q[Se],m[$?"updateProps":"initProps"](le,{shape:Re},te,V)}return le},polar:function(V,Q,G,te,$,le){var re=Q.startAngle<Q.endAngle,Se=!G&&le?s:m.Sector,Re=new Se({shape:A.defaults({clockwise:re},Q),z2:1});if(Re.name="item",te){var Pe=Re.shape,Je=G?"r":"endAngle",Ve={};Pe[Je]=G?0:Q.startAngle,Ve[Je]=Q[Je],m[$?"updateProps":"initProps"](Re,{shape:Ve},te,V)}return Re}};function O(V,Q,G){G.style.text=null,m.updateProps(G,{shape:{width:0}},Q,V,function(){G.parent&&G.parent.remove(G)})}function E(V,Q,G){G.style.text=null,m.updateProps(G,{shape:{r:G.shape.r0}},Q,V,function(){G.parent&&G.parent.remove(G)})}var C={cartesian2d:function(V,Q,G){var te=V.getItemLayout(Q),$=G?F(G,te):0,le=te.width>0?1:-1,re=te.height>0?1:-1;return{x:te.x+le*$/2,y:te.y+re*$/2,width:te.width-le*$,height:te.height-re*$}},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 I(V){return V.startAngle!=null&&V.endAngle!=null&&V.startAngle===V.endAngle}function _(V,Q,G,te,$,le,re,Se){var Re=Q.getItemVisual(G,"color"),Pe=Q.getItemVisual(G,"opacity"),Je=Q.getVisual("borderColor"),Ve=te.getModel("itemStyle"),ct=te.getModel("emphasis.itemStyle").getBarItemStyle();Se||V.setShape("r",Ve.get("barBorderRadius")||0),V.useStyle(A.defaults({stroke:I($)?"none":Je,fill:I($)?"none":Re,opacity:Pe},Ve.getBarItemStyle()));var Ue=te.getShallow("cursor");Ue&&V.attr("cursor",Ue);var ue=re?$.height>0?"bottom":"top":$.width>0?"left":"right";Se||d(V.style,ct,te,Re,le,G,ue),I($)&&(ct.fill=ct.stroke="none"),m.setHoverStyle(V,ct)}function F(V,Q){var G=V.get(c)||0,te=isNaN(Q.width)?Number.MAX_VALUE:Math.abs(Q.width),$=isNaN(Q.height)?Number.MAX_VALUE:Math.abs(Q.height);return Math.min(G,te,$)}var R=n.extend({type:"largeBar",shape:{points:[]},buildPath:function(V,Q){for(var G=Q.points,te=this.__startPoint,$=this.__baseDimIdx,le=0;le<G.length;le+=2)te[$]=G[le+$],V.moveTo(te[0],te[1]),V.lineTo(G[le],G[le+1])}});function B(V,Q,G){var te=V.getData(),$=[],le=te.getLayout("valueAxisHorizontal")?1:0;$[1-le]=te.getLayout("valueAxisStart");var re=te.getLayout("largeDataIndices"),Se=te.getLayout("barWidth"),Re=V.getModel("backgroundStyle"),Pe=V.get("showBackground",!0);if(Pe){var Je=te.getLayout("largeBackgroundPoints"),Ve=[];Ve[1-le]=te.getLayout("backgroundStart");var ct=new R({shape:{points:Je},incremental:!!G,__startPoint:Ve,__baseDimIdx:le,__largeDataIndices:re,__barWidth:Se,silent:!0,z2:0});z(ct,Re,te),Q.add(ct)}var Ue=new R({shape:{points:te.getLayout("largePoints")},incremental:!!G,__startPoint:$,__baseDimIdx:le,__largeDataIndices:re,__barWidth:Se});Q.add(Ue),P(Ue,V,te),Ue.seriesIndex=V.seriesIndex,V.get("silent")||(Ue.on("mousedown",M),Ue.on("mousemove",M))}var M=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,$=1-te,le=V.shape.points,re=V.__largeDataIndices,Se=Math.abs(V.__barWidth/2),Re=V.__startPoint[$];h[0]=Q,h[1]=G;for(var Pe=h[te],Je=h[1-te],Ve=Pe-Se,ct=Pe+Se,Ue=0,ue=le.length/2;Ue<ue;Ue++){var rt=Ue*2,ge=le[rt+te],Z=le[rt+$];if(ge>=Ve&&ge<=ct&&(Re<=Z?Je>=Re&&Je<=Z:Je>=Z&&Je<=Re))return re[Ue]}return-1}function P(V,Q,G){var te=G.getVisual("borderColor")||G.getVisual("color"),$=Q.getModel("itemStyle").getItemStyle(["color","borderColor"]);V.useStyle($),V.style.fill=null,V.style.stroke=te,V.style.lineWidth=G.getLayout("barWidth")}function z(V,Q,G){var te=Q.get("borderColor")||Q.get("color"),$=Q.getItemStyle(["color","borderColor"]);V.useStyle($),V.style.fill=null,V.style.stroke=te,V.style.lineWidth=G.getLayout("barWidth")}function W(V,Q,G){var te,$=G.type==="polar";return $?te=G.getArea():te=G.grid.getRect(),$?{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 U(V,Q,G){var te=V.type==="polar"?m.Sector:m.Rect;return new te({shape:W(Q,G,V),silent:!0,z2:0})}k.exports=v},ZCgT:function(k,D,i){var y=i("tLB3"),p=1/0,S=17976931348623157e292;function A(m){if(!m)return m===0?m:0;if(m=y(m),m===p||m===-p){var f=m<0?-1:1;return f*S}return m===m?m:0}k.exports=A},ZLWo:function(k,D,i){"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(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("2oIt")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="UpOutlined";var n=A.forwardRef(o);D.default=n},ZTPi:function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("lSNA"),A=i.n(S),m=i("q1tI"),f=i("rePB"),d=i("ODXe"),l=i("Ff2n"),o=i("VTBJ"),n=i("TSYQ"),t=i.n(n),a=i("Zm9Q"),e=i("6cGi"),u=i("KQm4"),r=i("xEkU"),s=i.n(r),c=i("1OyB"),h=i("vuIU"),g=i("Ji7U"),v=i("LK+K"),b=i("m+aA"),w=i("Kwbf"),x=i("c+Xe"),T=i("bdgK"),O="rc-observer-key",E=function($r){Object(g.a)(Hn,$r);var En=Object(v.a)(Hn);function Hn(){var zt;return Object(c.a)(this,Hn),zt=En.apply(this,arguments),zt.resizeObserver=null,zt.childNode=null,zt.currentElement=null,zt.state={width:0,height:0,offsetHeight:0,offsetWidth:0},zt.onResize=function(_t){var Ft=zt.props.onResize,Wt=_t[0].target,Vt=Wt.getBoundingClientRect(),Lt=Vt.width,cr=Vt.height,vr=Wt.offsetWidth,yr=Wt.offsetHeight,Dr=Math.floor(Lt),Kn=Math.floor(cr);if(zt.state.width!==Dr||zt.state.height!==Kn||zt.state.offsetWidth!==vr||zt.state.offsetHeight!==yr){var Dn={width:Dr,height:Kn,offsetWidth:vr,offsetHeight:yr};zt.setState(Dn),Ft&&Promise.resolve().then(function(){Ft(Object(o.a)(Object(o.a)({},Dn),{},{offsetWidth:vr,offsetHeight:yr}))})}},zt.setChildNode=function(_t){zt.childNode=_t},zt}return Object(h.a)(Hn,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var _t=this.props.disabled;if(_t){this.destroyObserver();return}var Ft=Object(b.a)(this.childNode||this),Wt=Ft!==this.currentElement;Wt&&(this.destroyObserver(),this.currentElement=Ft),!this.resizeObserver&&Ft&&(this.resizeObserver=new T.default(this.onResize),this.resizeObserver.observe(Ft))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var _t=this.props.children,Ft=Object(a.a)(_t);if(Ft.length>1)Object(w.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(Ft.length===0)return Object(w.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var Wt=Ft[0];if(m.isValidElement(Wt)&&Object(x.c)(Wt)){var Vt=Wt.ref;Ft[0]=m.cloneElement(Wt,{ref:Object(x.a)(Vt,this.setChildNode)})}return Ft.length===1?Ft[0]:Ft.map(function(Lt,cr){return!m.isValidElement(Lt)||"key"in Lt&&Lt.key!==null?Lt:m.cloneElement(Lt,{key:"".concat(O,"-").concat(cr)})})}}]),Hn}(m.Component);E.displayName="ResizeObserver";var C=E;function I($r){var En=Object(m.useRef)(),Hn=Object(m.useRef)(!1);function zt(){for(var _t=arguments.length,Ft=new Array(_t),Wt=0;Wt<_t;Wt++)Ft[Wt]=arguments[Wt];Hn.current||(s.a.cancel(En.current),En.current=s()(function(){$r.apply(void 0,Ft)}))}return Object(m.useEffect)(function(){return function(){Hn.current=!0,s.a.cancel(En.current)}},[]),zt}function _($r){var En=Object(m.useRef)([]),Hn=Object(m.useState)({}),zt=Object(d.a)(Hn,2),_t=zt[1],Ft=Object(m.useRef)(typeof $r=="function"?$r():$r),Wt=I(function(){var Lt=Ft.current;En.current.forEach(function(cr){Lt=cr(Lt)}),En.current=[],Ft.current=Lt,_t({})});function Vt(Lt){En.current.push(Lt),Wt()}return[Ft.current,Vt]}var F=i("4IlW");function R($r,En){var Hn,zt=$r.prefixCls,_t=$r.id,Ft=$r.active,Wt=$r.rtl,Vt=$r.tab,Lt=Vt.key,cr=Vt.tab,vr=Vt.disabled,yr=Vt.closeIcon,Dr=$r.tabBarGutter,Kn=$r.tabPosition,Dn=$r.closable,di=$r.renderWrapper,mn=$r.removeAriaLabel,Ur=$r.editable,On=$r.onClick,zn=$r.onRemove,qn=$r.onFocus,oi="".concat(zt,"-tab");m.useEffect(function(){return zn},[]);var xi={};Kn==="top"||Kn==="bottom"?xi[Wt?"marginLeft":"marginRight"]=Dr:xi.marginBottom=Dr;var Di=Ur&&Dn!==!1&&!vr;function Li(na){if(vr)return;On(na)}function aa(na){na.preventDefault(),na.stopPropagation(),Ur.onEdit("remove",{key:Lt,event:na})}var ma=m.createElement("div",{key:Lt,ref:En,className:t()(oi,(Hn={},Object(f.a)(Hn,"".concat(oi,"-with-remove"),Di),Object(f.a)(Hn,"".concat(oi,"-active"),Ft),Object(f.a)(Hn,"".concat(oi,"-disabled"),vr),Hn)),style:xi,onClick:Li},m.createElement("div",{role:"tab","aria-selected":Ft,id:_t&&"".concat(_t,"-tab-").concat(Lt),className:"".concat(oi,"-btn"),"aria-controls":_t&&"".concat(_t,"-panel-").concat(Lt),"aria-disabled":vr,tabIndex:vr?null:0,onClick:function(Aa){Aa.stopPropagation(),Li(Aa)},onKeyDown:function(Aa){[F.a.SPACE,F.a.ENTER].includes(Aa.which)&&(Aa.preventDefault(),Li(Aa))},onFocus:qn},cr),Di&&m.createElement("button",{type:"button","aria-label":mn||"remove",tabIndex:0,className:"".concat(oi,"-remove"),onClick:function(Aa){Aa.stopPropagation(),aa(Aa)}},yr||Ur.removeIcon||"\xD7"));return di&&(ma=di(ma)),ma}var B=m.forwardRef(R),M={width:0,height:0,left:0,top:0};function X($r,En,Hn){return Object(m.useMemo)(function(){for(var zt,_t=new Map,Ft=En.get((zt=$r[0])===null||zt===void 0?void 0:zt.key)||M,Wt=Ft.left+Ft.width,Vt=0;Vt<$r.length;Vt+=1){var Lt=$r[Vt].key,cr=En.get(Lt);if(!cr){var vr;cr=En.get((vr=$r[Vt-1])===null||vr===void 0?void 0:vr.key)||M}var yr=_t.get(Lt)||Object(o.a)({},cr);yr.right=Wt-yr.left-yr.width,_t.set(Lt,yr)}return _t},[$r.map(function(zt){return zt.key}).join("_"),En,Hn])}var P={width:0,height:0,left:0,top:0,right:0};function z($r,En,Hn,zt,_t){var Ft=_t.tabs,Wt=_t.tabPosition,Vt=_t.rtl,Lt,cr,vr;["top","bottom"].includes(Wt)?(Lt="width",cr=Vt?"right":"left",vr=Math.abs(En.left)):(Lt="height",cr="top",vr=-En.top);var yr=En[Lt],Dr=Hn[Lt],Kn=zt[Lt],Dn=yr;return Dr+Kn>yr&&(Dn=yr-Kn),Object(m.useMemo)(function(){if(!Ft.length)return[0,0];for(var di=Ft.length,mn=di,Ur=0;Ur<di;Ur+=1){var On=$r.get(Ft[Ur].key)||P;if(On[cr]+On[Lt]>vr+Dn){mn=Ur-1;break}}for(var zn=0,qn=di-1;qn>=0;qn-=1){var oi=$r.get(Ft[qn].key)||P;if(oi[cr]<vr){zn=qn+1;break}}return[zn,mn]},[$r,vr,Dn,Wt,Ft.map(function(di){return di.key}).join("_"),Vt])}var W=i("wx14"),U=i("JX7q"),V=i("I8Z2"),Q=i("bT9E"),G=i("2GS6"),te=i("Gytx"),$=i.n(te),le=i("U8pU"),re=/iPhone/i,Se=/iPod/i,Re=/iPad/i,Pe=/\bAndroid(?:.+)Mobile\b/i,Je=/Android/i,Ve=/\bAndroid(?:.+)SD4930UR\b/i,ct=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,Ue=/Windows Phone/i,ue=/\bWindows(?:.+)ARM\b/i,rt=/BlackBerry/i,ge=/BB10/i,Z=/Opera Mini/i,Y=/\b(CriOS|Chrome)(?:.+)Mobile/i,ee=/Mobile(?:.+)Firefox\b/i;function fe($r,En){return $r.test(En)}function be($r){var En=$r||(typeof navigator!="undefined"?navigator.userAgent:""),Hn=(En||"").split("[FBAN");if(typeof Hn[1]!="undefined"){var zt=Hn,_t=Object(d.a)(zt,1);En=_t[0]}if(Hn=En.split("Twitter"),typeof Hn[1]!="undefined"){var Ft=Hn,Wt=Object(d.a)(Ft,1);En=Wt[0]}var Vt={apple:{phone:fe(re,En)&&!fe(Ue,En),ipod:fe(Se,En),tablet:!fe(re,En)&&fe(Re,En)&&!fe(Ue,En),device:(fe(re,En)||fe(Se,En)||fe(Re,En))&&!fe(Ue,En)},amazon:{phone:fe(Ve,En),tablet:!fe(Ve,En)&&fe(ct,En),device:fe(Ve,En)||fe(ct,En)},android:{phone:!fe(Ue,En)&&fe(Ve,En)||!fe(Ue,En)&&fe(Pe,En),tablet:!fe(Ue,En)&&!fe(Ve,En)&&!fe(Pe,En)&&(fe(ct,En)||fe(Je,En)),device:!fe(Ue,En)&&(fe(Ve,En)||fe(ct,En)||fe(Pe,En)||fe(Je,En))||fe(/\bokhttp\b/i,En)},windows:{phone:fe(Ue,En),tablet:fe(ue,En),device:fe(Ue,En)||fe(ue,En)},other:{blackberry:fe(rt,En),blackberry10:fe(ge,En),opera:fe(Z,En),firefox:fe(ee,En),chrome:fe(Y,En),device:fe(rt,En)||fe(ge,En)||fe(Z,En)||fe(ee,En)||fe(Y,En)},any:null,phone:null,tablet:null};return Vt.any=Vt.apple.device||Vt.android.device||Vt.windows.device||Vt.other.device,Vt.phone=Vt.apple.phone||Vt.android.phone||Vt.windows.phone,Vt.tablet=Vt.apple.tablet||Vt.android.tablet||Vt.windows.tablet,Vt}var Ce=Object(o.a)(Object(o.a)({},be()),{},{isMobile:be}),Te=Ce;function he(){}function ye($r,En,Hn){var zt=En||"";return $r.key||"".concat(zt,"item_").concat(Hn)}function Ie($r){return"".concat($r,"-menu-")}function tt($r,En){var Hn=-1;m.Children.forEach($r,function(zt){Hn+=1,zt&&zt.type&&zt.type.isMenuItemGroup?m.Children.forEach(zt.props.children,function(_t){Hn+=1,En(_t,Hn)}):En(zt,Hn)})}function pt($r,En,Hn){if(!$r||Hn.find)return;m.Children.forEach($r,function(zt){if(zt){var _t=zt.type;if(!_t||!(_t.isSubMenu||_t.isMenuItem||_t.isMenuItemGroup))return;En.indexOf(zt.key)!==-1?Hn.find=!0:zt.props.children&&pt(zt.props.children,En,Hn)}})}var st=["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"],Fe=function(En){var Hn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,zt=En&&typeof En.getBoundingClientRect=="function"&&En.getBoundingClientRect().width;if(zt){if(Hn){var _t=getComputedStyle(En),Ft=_t.marginLeft,Wt=_t.marginRight;zt+=+Ft.replace("px","")+ +Wt.replace("px","")}zt=+zt.toFixed(6)}return zt||0},ft=function(En,Hn,zt){En&&Object(le.a)(En.style)==="object"&&(En.style[Hn]=zt)},et=function(){return Te.any},wt=i("i8i4"),Ht=i("uciX"),Dt=i("wgJM"),Tt=i("8XRh"),Bt={adjustX:1,adjustY:1},Ke={topLeft:{points:["bl","tl"],overflow:Bt,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Bt,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:Bt,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:Bt,offset:[4,0]}},de={topLeft:{points:["bl","tl"],overflow:Bt,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:Bt,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:Bt,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:Bt,offset:[4,0]}},oe=Ke,lt=0,qe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},pe=function(En,Hn,zt){var _t=Ie(Hn),Ft=En.getState();En.setState({defaultActiveFirst:Object(o.a)(Object(o.a)({},Ft.defaultActiveFirst),{},Object(f.a)({},_t,zt))})},Kt=function($r){Object(g.a)(Hn,$r);var En=Object(v.a)(Hn);function Hn(zt){var _t;Object(c.a)(this,Hn),_t=En.call(this,zt),_t.onDestroy=function(vr){_t.props.onDestroy(vr)},_t.onKeyDown=function(vr){var yr=vr.keyCode,Dr=_t.menuInstance,Kn=_t.props.store,Dn=_t.getVisible();if(yr===F.a.ENTER)return _t.onTitleClick(vr),pe(Kn,_t.props.eventKey,!0),!0;if(yr===F.a.RIGHT)return Dn?Dr.onKeyDown(vr):(_t.triggerOpenChange(!0),pe(Kn,_t.props.eventKey,!0)),!0;if(yr===F.a.LEFT){var di;if(Dn)di=Dr.onKeyDown(vr);else return;return di||(_t.triggerOpenChange(!1),di=!0),di}return Dn&&(yr===F.a.UP||yr===F.a.DOWN)?Dr.onKeyDown(vr):void 0},_t.onOpenChange=function(vr){_t.props.onOpenChange(vr)},_t.onPopupVisibleChange=function(vr){_t.triggerOpenChange(vr,vr?"mouseenter":"mouseleave")},_t.onMouseEnter=function(vr){var yr=_t.props,Dr=yr.eventKey,Kn=yr.onMouseEnter,Dn=yr.store;pe(Dn,_t.props.eventKey,!1),Kn({key:Dr,domEvent:vr})},_t.onMouseLeave=function(vr){var yr=_t.props,Dr=yr.parentMenu,Kn=yr.eventKey,Dn=yr.onMouseLeave;Dr.subMenuInstance=Object(U.a)(_t),Dn({key:Kn,domEvent:vr})},_t.onTitleMouseEnter=function(vr){var yr=_t.props,Dr=yr.eventKey,Kn=yr.onItemHover,Dn=yr.onTitleMouseEnter;Kn({key:Dr,hover:!0}),Dn({key:Dr,domEvent:vr})},_t.onTitleMouseLeave=function(vr){var yr=_t.props,Dr=yr.parentMenu,Kn=yr.eventKey,Dn=yr.onItemHover,di=yr.onTitleMouseLeave;Dr.subMenuInstance=Object(U.a)(_t),Dn({key:Kn,hover:!1}),di({key:Kn,domEvent:vr})},_t.onTitleClick=function(vr){var yr=Object(U.a)(_t),Dr=yr.props;if(Dr.onTitleClick({key:Dr.eventKey,domEvent:vr}),Dr.triggerSubMenuAction==="hover")return;_t.triggerOpenChange(!_t.getVisible(),"click"),pe(Dr.store,_t.props.eventKey,!1)},_t.onSubMenuClick=function(vr){typeof _t.props.onClick=="function"&&_t.props.onClick(_t.addKeyPath(vr))},_t.onSelect=function(vr){_t.props.onSelect(vr)},_t.onDeselect=function(vr){_t.props.onDeselect(vr)},_t.getPrefixCls=function(){return"".concat(_t.props.rootPrefixCls,"-submenu")},_t.getActiveClassName=function(){return"".concat(_t.getPrefixCls(),"-active")},_t.getDisabledClassName=function(){return"".concat(_t.getPrefixCls(),"-disabled")},_t.getSelectedClassName=function(){return"".concat(_t.getPrefixCls(),"-selected")},_t.getOpenClassName=function(){return"".concat(_t.props.rootPrefixCls,"-submenu-open")},_t.getVisible=function(){return _t.state.isOpen},_t.getMode=function(){return _t.state.mode},_t.saveMenuInstance=function(vr){_t.menuInstance=vr},_t.addKeyPath=function(vr){return Object(o.a)(Object(o.a)({},vr),{},{keyPath:(vr.keyPath||[]).concat(_t.props.eventKey)})},_t.triggerOpenChange=function(vr,yr){var Dr=_t.props.eventKey,Kn=function(){_t.onOpenChange({key:Dr,item:Object(U.a)(_t),trigger:yr,open:vr})};yr==="mouseenter"?_t.mouseenterTimeout=setTimeout(function(){Kn()},0):Kn()},_t.isChildrenSelected=function(){var vr={find:!1};return pt(_t.props.children,_t.props.selectedKeys,vr),vr.find},_t.isInlineMode=function(){return _t.getMode()==="inline"},_t.adjustWidth=function(){if(!_t.subMenuTitle||!_t.menuInstance)return;var vr=wt.findDOMNode(_t.menuInstance);if(vr.offsetWidth>=_t.subMenuTitle.offsetWidth)return;vr.style.minWidth="".concat(_t.subMenuTitle.offsetWidth,"px")},_t.saveSubMenuTitle=function(vr){_t.subMenuTitle=vr},_t.getBaseProps=function(){var vr=Object(U.a)(_t),yr=vr.props,Dr=_t.getMode();return{mode:Dr==="horizontal"?"vertical":Dr,visible:_t.getVisible(),level:yr.level+1,inlineIndent:yr.inlineIndent,focusable:!1,onClick:_t.onSubMenuClick,onSelect:_t.onSelect,onDeselect:_t.onDeselect,onDestroy:_t.onDestroy,selectedKeys:yr.selectedKeys,eventKey:"".concat(yr.eventKey,"-menu-"),openKeys:yr.openKeys,motion:yr.motion,onOpenChange:_t.onOpenChange,subMenuOpenDelay:yr.subMenuOpenDelay,parentMenu:Object(U.a)(_t),subMenuCloseDelay:yr.subMenuCloseDelay,forceSubMenuRender:yr.forceSubMenuRender,triggerSubMenuAction:yr.triggerSubMenuAction,builtinPlacements:yr.builtinPlacements,defaultActiveFirst:yr.store.getState().defaultActiveFirst[Ie(yr.eventKey)],multiple:yr.multiple,prefixCls:yr.rootPrefixCls,id:_t.internalMenuId,manualRef:_t.saveMenuInstance,itemIcon:yr.itemIcon,expandIcon:yr.expandIcon,direction:yr.direction}},_t.getMotion=function(vr,yr){var Dr=Object(U.a)(_t),Kn=Dr.haveRendered,Dn=_t.props,di=Dn.motion,mn=Dn.rootPrefixCls,Ur=Object(o.a)(Object(o.a)({},di),{},{leavedClassName:"".concat(mn,"-hidden"),removeOnLeave:!1,motionAppear:Kn||!yr||vr!=="inline"});return Ur};var Ft=zt.store,Wt=zt.eventKey,Vt=Ft.getState(),Lt=Vt.defaultActiveFirst;_t.isRootMenu=!1;var cr=!1;return Lt&&(cr=Lt[Wt]),pe(Ft,Wt,cr),_t.state={mode:zt.mode,isOpen:zt.isOpen},_t}return Object(h.a)(Hn,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var _t=this,Ft=this.props,Wt=Ft.mode,Vt=Ft.parentMenu,Lt=Ft.manualRef,cr=Ft.isOpen,vr=function(){_t.setState({mode:Wt,isOpen:cr})},yr=cr!==this.state.isOpen,Dr=Wt!==this.state.mode;if((Dr||yr)&&(Dt.a.cancel(this.updateStateRaf),Dr?this.updateStateRaf=Object(Dt.a)(vr):vr()),Lt&&Lt(this),Wt!=="horizontal"||!(Vt==null?void 0:Vt.isRootMenu)||!cr)return;this.minWidthTimeout=setTimeout(function(){return _t.adjustWidth()},0)}},{key:"componentWillUnmount",value:function(){var _t=this.props,Ft=_t.onDestroy,Wt=_t.eventKey;Ft&&Ft(Wt),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),Dt.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(_t,Ft){var Wt=this.getBaseProps();return m.createElement(ci,Object(W.a)({},Wt,{id:this.internalMenuId,className:_t,style:Ft}),this.props.children)}},{key:"renderChildren",value:function(){var _t=this,Ft=this.getBaseProps(),Wt=Ft.mode,Vt=Ft.visible,Lt=Ft.forceSubMenuRender,cr=Ft.direction,vr=this.getMotion(Wt,Vt);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||Vt||Lt,!this.haveOpened)return m.createElement("div",null);var yr=t()("".concat(Ft.prefixCls,"-sub"),Object(f.a)({},"".concat(Ft.prefixCls,"-rtl"),cr==="rtl"));return this.isInlineMode()?m.createElement(Tt.b,Object(W.a)({visible:Ft.visible,forceRender:Lt},vr),function(Dr){var Kn=Dr.className,Dn=Dr.style,di=t()(yr,Kn);return _t.renderPopupMenu(di,Dn)}):this.renderPopupMenu(yr)}},{key:"render",value:function(){var _t,Ft,Wt,Vt=Object(o.a)({},this.props),Lt=this.getVisible(),cr=this.getPrefixCls(),vr=this.isInlineMode(),yr=this.getMode(),Dr=t()(cr,"".concat(cr,"-").concat(yr),(_t={},Object(f.a)(_t,Vt.className,!!Vt.className),Object(f.a)(_t,this.getOpenClassName(),Lt),Object(f.a)(_t,this.getActiveClassName(),Vt.active||Lt&&!vr),Object(f.a)(_t,this.getDisabledClassName(),Vt.disabled),Object(f.a)(_t,this.getSelectedClassName(),this.isChildrenSelected()),_t));this.internalMenuId||(Vt.eventKey?this.internalMenuId="".concat(Vt.eventKey,"$Menu"):(lt+=1,this.internalMenuId="$__$".concat(lt,"$Menu")));var Kn={},Dn={},di={};Vt.disabled||(Kn={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},Dn={onClick:this.onTitleClick},di={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var mn={},Ur=Vt.direction,On=Ur==="rtl";vr&&(On?mn.paddingRight=Vt.inlineIndent*Vt.level:mn.paddingLeft=Vt.inlineIndent*Vt.level);var zn={};this.getVisible()&&(zn={"aria-owns":this.internalMenuId});var qn=null;yr!=="horizontal"&&(qn=this.props.expandIcon,typeof this.props.expandIcon=="function"&&(qn=m.createElement(this.props.expandIcon,Object(o.a)({},this.props))));var oi=m.createElement("div",Object(W.a)({ref:this.saveSubMenuTitle,style:mn,className:"".concat(cr,"-title"),role:"button"},di,Dn,{"aria-expanded":Lt},zn,{"aria-haspopup":"true",title:typeof Vt.title=="string"?Vt.title:void 0}),Vt.title,qn||m.createElement("i",{className:"".concat(cr,"-arrow")})),xi=this.renderChildren(),Di=((Ft=Vt.parentMenu)===null||Ft===void 0?void 0:Ft.isRootMenu)?Vt.parentMenu.props.getPopupContainer:function(Sr){return Sr.parentNode},Li=qe[yr],aa=Vt.popupOffset?{offset:Vt.popupOffset}:{},ma=t()((Wt={},Object(f.a)(Wt,Vt.popupClassName,Vt.popupClassName&&!vr),Object(f.a)(Wt,"".concat(cr,"-rtl"),On),Wt)),na=Vt.disabled,Aa=Vt.triggerSubMenuAction,yi=Vt.subMenuOpenDelay,Ln=Vt.forceSubMenuRender,ji=Vt.subMenuCloseDelay,ha=Vt.builtinPlacements;st.forEach(function(Sr){return delete Vt[Sr]}),delete Vt.onClick;var ea=On?Object(o.a)(Object(o.a)({},de),ha):Object(o.a)(Object(o.a)({},Ke),ha);delete Vt.direction;var ca=this.getBaseProps(),kr=vr?null:this.getMotion(ca.mode,ca.visible);return m.createElement("li",Object(W.a)({},Vt,Kn,{className:Dr,role:"menuitem"}),m.createElement(Ht.a,{prefixCls:cr,popupClassName:t()("".concat(cr,"-popup"),ma),getPopupContainer:Di,builtinPlacements:ea,popupPlacement:Li,popupVisible:vr?!1:Lt,popupAlign:aa,popup:vr?null:xi,action:na||vr?[]:[Aa],mouseEnterDelay:yi,mouseLeaveDelay:ji,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:Ln,popupMotion:kr},oi),vr?xi:null)}}]),Hn}(m.Component);Kt.defaultProps={onMouseEnter:he,onMouseLeave:he,onTitleMouseEnter:he,onTitleMouseLeave:he,onTitleClick:he,manualRef:he,mode:"vertical",title:""};var hr=Object(V.b)(function($r,En){var Hn=$r.openKeys,zt=$r.activeKey,_t=$r.selectedKeys,Ft=En.eventKey,Wt=En.subMenuKey;return{isOpen:Hn.indexOf(Ft)>-1,active:zt[Wt]===Ft,selectedKeys:_t}})(Kt);hr.isSubMenu=!0;var gt=hr,nr="menuitem-overflowed",mr=.5,cn=function($r){Object(g.a)(Hn,$r);var En=Object(v.a)(Hn);function Hn(){var zt;return Object(c.a)(this,Hn),zt=En.apply(this,arguments),zt.resizeObserver=null,zt.mutationObserver=null,zt.originalTotalWidth=0,zt.overflowedItems=[],zt.menuItemSizes=[],zt.cancelFrameId=null,zt.state={lastVisibleIndex:void 0},zt.childRef=m.createRef(),zt.getMenuItemNodes=function(){var _t=zt.props.prefixCls,Ft=zt.childRef.current;return Ft?[].slice.call(Ft.children).filter(function(Wt){return Wt.className.split(" ").indexOf("".concat(_t,"-overflowed-submenu"))<0}):[]},zt.getOverflowedSubMenuItem=function(_t,Ft,Wt){var Vt=zt.props,Lt=Vt.overflowedIndicator,cr=Vt.level,vr=Vt.mode,yr=Vt.prefixCls,Dr=Vt.theme;if(cr!==1||vr!=="horizontal")return null;var Kn=zt.props.children[0],Dn=Kn.props,di=Dn.children,mn=Dn.title,Ur=Dn.style,On=Object(l.a)(Dn,["children","title","style"]),zn=Object(o.a)({},Ur),qn="".concat(_t,"-overflowed-indicator"),oi="".concat(_t,"-overflowed-indicator");Ft.length===0&&Wt!==!0?zn=Object(o.a)(Object(o.a)({},zn),{},{display:"none"}):Wt&&(zn=Object(o.a)(Object(o.a)({},zn),{},{visibility:"hidden",position:"absolute"}),qn="".concat(qn,"-placeholder"),oi="".concat(oi,"-placeholder"));var xi=Dr?"".concat(yr,"-").concat(Dr):"",Di={};return st.forEach(function(Li){On[Li]!==void 0&&(Di[Li]=On[Li])}),m.createElement(gt,Object(W.a)({title:Lt,className:"".concat(yr,"-overflowed-submenu"),popupClassName:xi},Di,{key:qn,eventKey:oi,disabled:!1,style:zn}),Ft)},zt.setChildrenWidthAndResize=function(){if(zt.props.mode!=="horizontal")return;var _t=zt.childRef.current;if(!_t)return;var Ft=_t.children;if(!Ft||Ft.length===0)return;var Wt=_t.children[Ft.length-1];ft(Wt,"display","inline-block");var Vt=zt.getMenuItemNodes(),Lt=Vt.filter(function(cr){return cr.className.split(" ").indexOf(nr)>=0});Lt.forEach(function(cr){ft(cr,"display","inline-block")}),zt.menuItemSizes=Vt.map(function(cr){return Fe(cr,!0)}),Lt.forEach(function(cr){ft(cr,"display","none")}),zt.overflowedIndicatorWidth=Fe(_t.children[_t.children.length-1],!0),zt.originalTotalWidth=zt.menuItemSizes.reduce(function(cr,vr){return cr+vr},0),zt.handleResize(),ft(Wt,"display","none")},zt.handleResize=function(){if(zt.props.mode!=="horizontal")return;var _t=zt.childRef.current;if(!_t)return;var Ft=Fe(_t);zt.overflowedItems=[];var Wt=0,Vt;zt.originalTotalWidth>Ft+mr&&(Vt=-1,zt.menuItemSizes.forEach(function(Lt){Wt+=Lt,Wt+zt.overflowedIndicatorWidth<=Ft&&(Vt+=1)})),zt.setState({lastVisibleIndex:Vt})},zt}return Object(h.a)(Hn,[{key:"componentDidMount",value:function(){var _t=this;if(this.setChildrenWidthAndResize(),this.props.level===1&&this.props.mode==="horizontal"){var Ft=this.childRef.current;if(!Ft)return;this.resizeObserver=new T.default(function(Wt){Wt.forEach(function(){var Vt=_t.cancelFrameId;cancelAnimationFrame(Vt),_t.cancelFrameId=requestAnimationFrame(_t.setChildrenWidthAndResize)})}),[].slice.call(Ft.children).concat(Ft).forEach(function(Wt){_t.resizeObserver.observe(Wt)}),typeof MutationObserver!="undefined"&&(this.mutationObserver=new MutationObserver(function(){_t.resizeObserver.disconnect(),[].slice.call(Ft.children).concat(Ft).forEach(function(Wt){_t.resizeObserver.observe(Wt)}),_t.setChildrenWidthAndResize()}),this.mutationObserver.observe(Ft,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(_t){var Ft=this,Wt=this.state.lastVisibleIndex;return(_t||[]).reduce(function(Vt,Lt,cr){var vr=Lt;if(Ft.props.mode==="horizontal"){var yr=Ft.getOverflowedSubMenuItem(Lt.props.eventKey,[]);Wt!==void 0&&Ft.props.className.indexOf("".concat(Ft.props.prefixCls,"-root"))!==-1&&(cr>Wt&&(vr=m.cloneElement(Lt,{style:{display:"none"},eventKey:"".concat(Lt.props.eventKey,"-hidden"),className:"".concat(nr)})),cr===Wt+1&&(Ft.overflowedItems=_t.slice(Wt+1).map(function(Kn){return m.cloneElement(Kn,{key:Kn.props.eventKey,mode:"vertical-left"})}),yr=Ft.getOverflowedSubMenuItem(Lt.props.eventKey,Ft.overflowedItems)));var Dr=[].concat(Object(u.a)(Vt),[yr,vr]);return cr===_t.length-1&&Dr.push(Ft.getOverflowedSubMenuItem(Lt.props.eventKey,[],!0)),Dr}return[].concat(Object(u.a)(Vt),[vr])},[])}},{key:"render",value:function(){var _t=this.props,Ft=_t.visible,Wt=_t.prefixCls,Vt=_t.overflowedIndicator,Lt=_t.mode,cr=_t.level,vr=_t.tag,yr=_t.children,Dr=_t.theme,Kn=Object(l.a)(_t,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"]),Dn=vr;return m.createElement(Dn,Object(W.a)({ref:this.childRef},Kn),this.renderChildren(yr))}}]),Hn}(m.Component);cn.defaultProps={tag:"div",className:""};var Ar=cn;function xr($r){return $r.length?$r.every(function(En){return!!En.props.disabled}):!0}function qt($r,En,Hn){var zt=$r.getState();$r.setState({activeKey:Object(o.a)(Object(o.a)({},zt.activeKey),{},Object(f.a)({},En,Hn))})}function ar($r){return $r.eventKey||"0-menu-"}function Et($r,En){var Hn=En,zt=$r.children,_t=$r.eventKey;if(Hn){var Ft;if(tt(zt,function(Wt,Vt){Wt&&Wt.props&&!Wt.props.disabled&&Hn===ye(Wt,_t,Vt)&&(Ft=!0)}),Ft)return Hn}return Hn=null,$r.defaultActiveFirst&&tt(zt,function(Wt,Vt){!Hn&&Wt&&!Wt.props.disabled&&(Hn=ye(Wt,_t,Vt))}),Hn}function en($r){if(!$r)return;var En=this.instanceArray.indexOf($r);En!==-1?this.instanceArray[En]=$r:this.instanceArray.push($r)}var Mn=function($r){Object(g.a)(Hn,$r);var En=Object(v.a)(Hn);function Hn(zt){var _t;return Object(c.a)(this,Hn),_t=En.call(this,zt),_t.onKeyDown=function(Ft,Wt){var Vt=Ft.keyCode,Lt;if(_t.getFlatInstanceArray().forEach(function(vr){vr&&vr.props.active&&vr.onKeyDown&&(Lt=vr.onKeyDown(Ft))}),Lt)return 1;var cr=null;return(Vt===F.a.UP||Vt===F.a.DOWN)&&(cr=_t.step(Vt===F.a.UP?-1:1)),cr?(Ft.preventDefault(),qt(_t.props.store,ar(_t.props),cr.props.eventKey),typeof Wt=="function"&&Wt(cr),1):void 0},_t.onItemHover=function(Ft){var Wt=Ft.key,Vt=Ft.hover;qt(_t.props.store,ar(_t.props),Vt?Wt:null)},_t.onDeselect=function(Ft){_t.props.onDeselect(Ft)},_t.onSelect=function(Ft){_t.props.onSelect(Ft)},_t.onClick=function(Ft){_t.props.onClick(Ft)},_t.onOpenChange=function(Ft){_t.props.onOpenChange(Ft)},_t.onDestroy=function(Ft){_t.props.onDestroy(Ft)},_t.getFlatInstanceArray=function(){return _t.instanceArray},_t.step=function(Ft){var Wt=_t.getFlatInstanceArray(),Vt=_t.props.store.getState().activeKey[ar(_t.props)],Lt=Wt.length;if(!Lt)return null;Ft<0&&(Wt=Wt.concat().reverse());var cr=-1;if(Wt.every(function(Kn,Dn){return Kn&&Kn.props.eventKey===Vt?(cr=Dn,!1):!0}),!_t.props.defaultActiveFirst&&cr!==-1&&xr(Wt.slice(cr,Lt-1)))return;var vr=(cr+1)%Lt,yr=vr;do{var Dr=Wt[yr];if(!Dr||Dr.props.disabled)yr=(yr+1)%Lt;else return Dr}while(yr!==vr);return null},_t.renderCommonMenuItem=function(Ft,Wt,Vt){var Lt=_t.props.store.getState(),cr=Object(U.a)(_t),vr=cr.props,yr=ye(Ft,vr.eventKey,Wt),Dr=Ft.props;if(!Dr||typeof Ft.type=="string")return Ft;var Kn=yr===Lt.activeKey,Dn=Object(o.a)(Object(o.a)({mode:Dr.mode||vr.mode,level:vr.level,inlineIndent:vr.inlineIndent,renderMenuItem:_t.renderMenuItem,rootPrefixCls:vr.prefixCls,index:Wt,parentMenu:vr.parentMenu,manualRef:Dr.disabled?void 0:Object(G.a)(Ft.ref,en.bind(Object(U.a)(_t))),eventKey:yr,active:!Dr.disabled&&Kn,multiple:vr.multiple,onClick:function(mn){(Dr.onClick||he)(mn),_t.onClick(mn)},onItemHover:_t.onItemHover,motion:vr.motion,subMenuOpenDelay:vr.subMenuOpenDelay,subMenuCloseDelay:vr.subMenuCloseDelay,forceSubMenuRender:vr.forceSubMenuRender,onOpenChange:_t.onOpenChange,onDeselect:_t.onDeselect,onSelect:_t.onSelect,builtinPlacements:vr.builtinPlacements,itemIcon:Dr.itemIcon||_t.props.itemIcon,expandIcon:Dr.expandIcon||_t.props.expandIcon},Vt),{},{direction:vr.direction});return(vr.mode==="inline"||et())&&(Dn.triggerSubMenuAction="click"),m.cloneElement(Ft,Object(o.a)(Object(o.a)({},Dn),{},{key:yr||Wt}))},_t.renderMenuItem=function(Ft,Wt,Vt){if(!Ft)return null;var Lt=_t.props.store.getState(),cr={openKeys:Lt.openKeys,selectedKeys:Lt.selectedKeys,triggerSubMenuAction:_t.props.triggerSubMenuAction,subMenuKey:Vt};return _t.renderCommonMenuItem(Ft,Wt,cr)},zt.store.setState({activeKey:Object(o.a)(Object(o.a)({},zt.store.getState().activeKey),{},Object(f.a)({},zt.eventKey,Et(zt,zt.activeKey)))}),_t.instanceArray=[],_t}return Object(h.a)(Hn,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(_t){return this.props.visible||_t.visible||this.props.className!==_t.className||!$()(this.props.style,_t.style)}},{key:"componentDidUpdate",value:function(_t){var Ft=this.props,Wt="activeKey"in Ft?Ft.activeKey:Ft.store.getState().activeKey[ar(Ft)],Vt=Et(Ft,Wt);if(Vt!==Wt)qt(Ft.store,ar(Ft),Vt);else if("activeKey"in _t){var Lt=Et(_t,_t.activeKey);Vt!==Lt&&qt(Ft.store,ar(Ft),Vt)}}},{key:"render",value:function(){var _t=this,Ft=Object(W.a)({},this.props);this.instanceArray=[];var Wt=t()(Ft.prefixCls,Ft.className,"".concat(Ft.prefixCls,"-").concat(Ft.mode)),Vt={className:Wt,role:Ft.role||"menu"};Ft.id&&(Vt.id=Ft.id),Ft.focusable&&(Vt.tabIndex=0,Vt.onKeyDown=this.onKeyDown);var Lt=Ft.prefixCls,cr=Ft.eventKey,vr=Ft.visible,yr=Ft.level,Dr=Ft.mode,Kn=Ft.overflowedIndicator,Dn=Ft.theme;return st.forEach(function(di){return delete Ft[di]}),delete Ft.onClick,m.createElement(Ar,Object(W.a)({},Ft,{prefixCls:Lt,mode:Dr,tag:"ul",level:yr,theme:Dn,visible:vr,overflowedIndicator:Kn},Vt),Object(a.a)(Ft.children).map(function(di,mn){return _t.renderMenuItem(di,mn,cr||"0-menu-")}))}}]),Hn}(m.Component);Mn.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:he};var Yn=Object(V.b)()(Mn),ci=Yn;function Vi($r,En,Hn){var zt=$r.prefixCls,_t=$r.motion,Ft=$r.defaultMotions,Wt=Ft===void 0?{}:Ft,Vt=$r.openAnimation,Lt=$r.openTransitionName,cr=En.switchingModeFromInline;if(_t)return _t;if(Object(le.a)(Vt)==="object"&&Vt)Object(w.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if(typeof Vt=="string")return{motionName:"".concat(zt,"-open-").concat(Vt)};if(Lt)return{motionName:Lt};var vr=Wt[Hn];return vr||(cr?null:Wt.other)}var jn=function($r){Object(g.a)(Hn,$r);var En=Object(v.a)(Hn);function Hn(zt){var _t;Object(c.a)(this,Hn),_t=En.call(this,zt),_t.onSelect=function(Vt){var Lt=Object(U.a)(_t),cr=Lt.props;if(cr.selectable){var vr=_t.store.getState(),yr=vr.selectedKeys,Dr=Vt.key;cr.multiple?yr=yr.concat([Dr]):yr=[Dr],"selectedKeys"in cr||_t.store.setState({selectedKeys:yr}),cr.onSelect(Object(o.a)(Object(o.a)({},Vt),{},{selectedKeys:yr}))}},_t.onClick=function(Vt){var Lt=_t.getRealMenuMode(),cr=Object(U.a)(_t),vr=cr.store,yr=cr.props.onOpenChange;Lt!=="inline"&&!("openKeys"in _t.props)&&(vr.setState({openKeys:[]}),yr([])),_t.props.onClick(Vt)},_t.onKeyDown=function(Vt,Lt){_t.innerMenu.getWrappedInstance().onKeyDown(Vt,Lt)},_t.onOpenChange=function(Vt){var Lt=Object(U.a)(_t),cr=Lt.props,vr=_t.store.getState().openKeys.concat(),yr=!1,Dr=function(Dn){var di=!1;if(Dn.open)di=vr.indexOf(Dn.key)===-1,di&&vr.push(Dn.key);else{var mn=vr.indexOf(Dn.key);di=mn!==-1,di&&vr.splice(mn,1)}yr=yr||di};Array.isArray(Vt)?Vt.forEach(Dr):Dr(Vt),yr&&("openKeys"in _t.props||_t.store.setState({openKeys:vr}),cr.onOpenChange(vr))},_t.onDeselect=function(Vt){var Lt=Object(U.a)(_t),cr=Lt.props;if(cr.selectable){var vr=_t.store.getState().selectedKeys.concat(),yr=Vt.key,Dr=vr.indexOf(yr);Dr!==-1&&vr.splice(Dr,1),"selectedKeys"in cr||_t.store.setState({selectedKeys:vr}),cr.onDeselect(Object(o.a)(Object(o.a)({},Vt),{},{selectedKeys:vr}))}},_t.onMouseEnter=function(Vt){_t.restoreModeVerticalFromInline();var Lt=_t.props.onMouseEnter;Lt&&Lt(Vt)},_t.onTransitionEnd=function(Vt){var Lt=Vt.propertyName==="width"&&Vt.target===Vt.currentTarget,cr=Vt.target.className,vr=Object.prototype.toString.call(cr)==="[object SVGAnimatedString]"?cr.animVal:cr,yr=Vt.propertyName==="font-size"&&vr.indexOf("anticon")>=0;(Lt||yr)&&_t.restoreModeVerticalFromInline()},_t.setInnerMenu=function(Vt){_t.innerMenu=Vt},_t.isRootMenu=!0;var Ft=zt.defaultSelectedKeys,Wt=zt.defaultOpenKeys;return"selectedKeys"in zt&&(Ft=zt.selectedKeys||[]),"openKeys"in zt&&(Wt=zt.openKeys||[]),_t.store=Object(V.c)({selectedKeys:Ft,openKeys:Wt,activeKey:{"0-menu-":Et(zt,zt.activeKey)}}),_t.state={switchingModeFromInline:!1,prevProps:zt,inlineOpenKeys:[],store:_t.store},_t}return Object(h.a)(Hn,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(_t){var Ft=this.props,Wt=Ft.siderCollapsed,Vt=Ft.inlineCollapsed,Lt=Ft.onOpenChange;(!_t.inlineCollapsed&&Vt||!_t.siderCollapsed&&Wt)&&Lt([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var _t=this.props.collapsedWidth,Ft=this.store,Wt=this.prevOpenKeys,Vt=this.getInlineCollapsed()&&(_t===0||_t==="0"||_t==="0px");Vt?(this.prevOpenKeys=Ft.getState().openKeys.concat(),this.store.setState({openKeys:[]})):Wt&&(this.store.setState({openKeys:Wt}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var _t=this.props.mode,Ft=this.state.switchingModeFromInline,Wt=this.getInlineCollapsed();return Ft&&Wt?"inline":Wt?"vertical":_t}},{key:"getInlineCollapsed",value:function(){var _t=this.props,Ft=_t.inlineCollapsed,Wt=_t.siderCollapsed;return Wt!==void 0?Wt:Ft}},{key:"restoreModeVerticalFromInline",value:function(){var _t=this.state.switchingModeFromInline;_t&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var _t=Object(o.a)({},Object(Q.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),Ft=this.getRealMenuMode();return _t.className+=" ".concat(_t.prefixCls,"-root"),_t.direction==="rtl"&&(_t.className+=" ".concat(_t.prefixCls,"-rtl")),_t=Object(o.a)(Object(o.a)({},_t),{},{mode:Ft,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:Vi(this.props,this.state,Ft)}),delete _t.openAnimation,delete _t.openTransitionName,m.createElement(V.a,{store:this.store},m.createElement(ci,Object(W.a)({},_t,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(_t,Ft){var Wt=Ft.prevProps,Vt=Ft.store,Lt=Vt.getState(),cr={},vr={prevProps:_t};return Wt.mode==="inline"&&_t.mode!=="inline"&&(vr.switchingModeFromInline=!0),"openKeys"in _t?cr.openKeys=_t.openKeys||[]:((_t.inlineCollapsed&&!Wt.inlineCollapsed||_t.siderCollapsed&&!Wt.siderCollapsed)&&(vr.switchingModeFromInline=!0,vr.inlineOpenKeys=Lt.openKeys,cr.openKeys=[]),(!_t.inlineCollapsed&&Wt.inlineCollapsed||!_t.siderCollapsed&&Wt.siderCollapsed)&&(cr.openKeys=Ft.inlineOpenKeys,vr.inlineOpenKeys=[])),Object.keys(cr).length&&Vt.setState(cr),vr}}]),Hn}(m.Component);jn.defaultProps={selectable:!0,onClick:he,onSelect:he,onOpenChange:he,onDeselect:he,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:m.createElement("span",null,"\xB7\xB7\xB7")};var Qn=jn,$t=function($r){Object(g.a)(Hn,$r);var En=Object(v.a)(Hn);function Hn(){var zt;return Object(c.a)(this,Hn),zt=En.apply(this,arguments),zt.onKeyDown=function(_t){var Ft=_t.keyCode;return Ft===F.a.ENTER?(zt.onClick(_t),!0):void 0},zt.onMouseLeave=function(_t){var Ft=zt.props,Wt=Ft.eventKey,Vt=Ft.onItemHover,Lt=Ft.onMouseLeave;Vt({key:Wt,hover:!1}),Lt({key:Wt,domEvent:_t})},zt.onMouseEnter=function(_t){var Ft=zt.props,Wt=Ft.eventKey,Vt=Ft.onItemHover,Lt=Ft.onMouseEnter;Vt({key:Wt,hover:!0}),Lt({key:Wt,domEvent:_t})},zt.onClick=function(_t){var Ft=zt.props,Wt=Ft.eventKey,Vt=Ft.multiple,Lt=Ft.onClick,cr=Ft.onSelect,vr=Ft.onDeselect,yr=Ft.isSelected,Dr={key:Wt,keyPath:[Wt],item:Object(U.a)(zt),domEvent:_t};Lt(Dr),Vt?yr?vr(Dr):cr(Dr):yr||cr(Dr)},zt.saveNode=function(_t){zt.node=_t},zt}return Object(h.a)(Hn,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var _t=this.props;_t.onDestroy&&_t.onDestroy(_t.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var _t,Ft=Object(o.a)({},this.props),Wt=t()(this.getPrefixCls(),Ft.className,(_t={},Object(f.a)(_t,this.getActiveClassName(),!Ft.disabled&&Ft.active),Object(f.a)(_t,this.getSelectedClassName(),Ft.isSelected),Object(f.a)(_t,this.getDisabledClassName(),Ft.disabled),_t)),Vt=Object(o.a)(Object(o.a)({},Ft.attribute),{},{title:typeof Ft.title=="string"?Ft.title:void 0,className:Wt,role:Ft.role||"menuitem","aria-disabled":Ft.disabled});Ft.role==="option"?Vt=Object(o.a)(Object(o.a)({},Vt),{},{role:"option","aria-selected":Ft.isSelected}):(Ft.role===null||Ft.role==="none")&&(Vt.role="none");var Lt={onClick:Ft.disabled?null:this.onClick,onMouseLeave:Ft.disabled?null:this.onMouseLeave,onMouseEnter:Ft.disabled?null:this.onMouseEnter},cr=Object(o.a)({},Ft.style);Ft.mode==="inline"&&(Ft.direction==="rtl"?cr.paddingRight=Ft.inlineIndent*Ft.level:cr.paddingLeft=Ft.inlineIndent*Ft.level),st.forEach(function(yr){return delete Ft[yr]}),delete Ft.direction;var vr=this.props.itemIcon;return typeof this.props.itemIcon=="function"&&(vr=m.createElement(this.props.itemIcon,this.props)),m.createElement("li",Object(W.a)({},Object(Q.a)(Ft,["onClick","onMouseEnter","onMouseLeave","onSelect"]),Vt,Lt,{style:cr,ref:this.saveNode}),Ft.children,vr)}}]),Hn}(m.Component);$t.isMenuItem=!0,$t.defaultProps={onSelect:he,onMouseEnter:he,onMouseLeave:he,manualRef:he};var Ot=Object(V.b)(function($r,En){var Hn=$r.activeKey,zt=$r.selectedKeys,_t=En.eventKey,Ft=En.subMenuKey;return{active:Hn[Ft]===_t,isSelected:Array.isArray(zt)?zt.indexOf(_t)!==-1:zt===_t}})($t),ke=Ot,Me=function($r){Object(g.a)(Hn,$r);var En=Object(v.a)(Hn);function Hn(){var zt;return Object(c.a)(this,Hn),zt=En.apply(this,arguments),zt.renderInnerMenuItem=function(_t){var Ft=zt.props,Wt=Ft.renderMenuItem,Vt=Ft.index;return Wt(_t,Vt,zt.props.subMenuKey)},zt}return Object(h.a)(Hn,[{key:"render",value:function(){var _t=Object(W.a)({},this.props),Ft=_t.className,Wt=Ft===void 0?"":Ft,Vt=_t.rootPrefixCls,Lt="".concat(Vt,"-item-group-title"),cr="".concat(Vt,"-item-group-list"),vr=_t.title,yr=_t.children;return st.forEach(function(Dr){return delete _t[Dr]}),delete _t.direction,m.createElement("li",Object(W.a)({},_t,{onClick:function(Kn){return Kn.stopPropagation()},className:"".concat(Wt," ").concat(Vt,"-item-group")}),m.createElement("div",{className:Lt,title:typeof vr=="string"?vr:void 0},vr),m.createElement("ul",{className:cr},m.Children.map(yr,this.renderInnerMenuItem)))}}]),Hn}(m.Component);Me.isMenuItemGroup=!0,Me.defaultProps={disabled:!0};var Be=Me,at=function(En){var Hn=En.className,zt=En.rootPrefixCls,_t=En.style;return m.createElement("li",{className:"".concat(Hn," ").concat(zt,"-item-divider"),style:_t})};at.defaultProps={disabled:!0,className:"",style:{}};var At=at,Ct=Qn,Yt={adjustX:1,adjustY:1},Pr=[0,0],qr={topLeft:{points:["bl","tl"],overflow:Yt,offset:[0,-4],targetOffset:Pr},topCenter:{points:["bc","tc"],overflow:Yt,offset:[0,-4],targetOffset:Pr},topRight:{points:["br","tr"],overflow:Yt,offset:[0,-4],targetOffset:Pr},bottomLeft:{points:["tl","bl"],overflow:Yt,offset:[0,4],targetOffset:Pr},bottomCenter:{points:["tc","bc"],overflow:Yt,offset:[0,4],targetOffset:Pr},bottomRight:{points:["tr","br"],overflow:Yt,offset:[0,4],targetOffset:Pr}},An=qr,Gt=F.a.ESC,vt=F.a.TAB;function bt($r){var En=$r.visible,Hn=$r.setTriggerVisible,zt=$r.triggerRef,_t=$r.menuRef,Ft=$r.onVisibleChange,Wt=$r.autoFocus,Vt=m.useRef(!1),Lt=function(){if(En&&zt.current){var Dr,Kn,Dn,di;(Dr=zt.current)===null||Dr===void 0||((Kn=Dr.triggerRef)===null||Kn===void 0||((Dn=Kn.current)===null||Dn===void 0||((di=Dn.focus)===null||di===void 0)))||di.call(Dn),Hn(!1),typeof Ft=="function"&&Ft(!1)}},cr=function(){var Dr,Kn;(Dr=_t.current)===null||Dr===void 0||((Kn=Dr.focus)===null||Kn===void 0)||Kn.call(Dr),Vt.current=!0},vr=function(Dr){var Kn;switch(Dr.keyCode){case Gt:Lt();break;case vt:!Vt.current&&((Kn=_t.current)===null||Kn===void 0?void 0:Kn.focus)?(Dr.preventDefault(),cr()):Lt();break}};m.useEffect(function(){return En?(window.addEventListener("keydown",vr),Wt&&Object(Dt.a)(cr,3),function(){window.removeEventListener("keydown",vr),Vt.current=!1}):function(){Vt.current=!1}},[En])}var fr=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function Jt($r,En){var Hn=$r.arrow,zt=Hn===void 0?!1:Hn,_t=$r.prefixCls,Ft=_t===void 0?"rc-dropdown":_t,Wt=$r.transitionName,Vt=$r.animation,Lt=$r.align,cr=$r.placement,vr=cr===void 0?"bottomLeft":cr,yr=$r.placements,Dr=yr===void 0?An:yr,Kn=$r.getPopupContainer,Dn=$r.showAction,di=$r.hideAction,mn=$r.overlayClassName,Ur=$r.overlayStyle,On=$r.visible,zn=$r.trigger,qn=zn===void 0?["hover"]:zn,oi=$r.autoFocus,xi=Object(l.a)($r,fr),Di=m.useState(),Li=Object(d.a)(Di,2),aa=Li[0],ma=Li[1],na="visible"in $r?On:aa,Aa=m.useRef(null);m.useImperativeHandle(En,function(){return Aa.current});var yi=m.useRef(null),Ln="".concat(Ft,"-menu");bt({visible:na,setTriggerVisible:ma,triggerRef:Aa,menuRef:yi,onVisibleChange:$r.onVisibleChange,autoFocus:oi});var ji=function(){var ln=$r.overlay,kn;return typeof ln=="function"?kn=ln():kn=ln,kn},ha=function(ln){var kn=$r.onOverlayClick,kt=ji().props;ma(!1),kn&&kn(ln),kt.onClick&&kt.onClick(ln)},ea=function(ln){var kn=$r.onVisibleChange;ma(ln),typeof kn=="function"&&kn(ln)},ca=function(){var ln,kn=ji(),kt=Object(x.a)(yi,kn.ref),_r=(ln={prefixCls:Ln},Object(f.a)(ln,"data-dropdown-inject",!0),Object(f.a)(ln,"onClick",ha),Object(f.a)(ln,"ref",Object(x.c)(kn)?kt:void 0),ln);return typeof kn.type=="string"&&(delete _r.prefixCls,delete _r["data-dropdown-inject"]),m.createElement(m.Fragment,null,zt&&m.createElement("div",{className:"".concat(Ft,"-arrow")}),m.cloneElement(kn,_r))},kr=function(){var ln=$r.overlay;return typeof ln=="function"?ca:ca()},Sr=function(){var ln=$r.minOverlayWidthMatchTrigger,kn=$r.alignPoint;return"minOverlayWidthMatchTrigger"in $r?ln:!kn},yn=function(){var ln=$r.openClassName;return ln!==void 0?ln:"".concat(Ft,"-open")},dr=function(){var ln=$r.children,kn=ln.props?ln.props:{},kt=t()(kn.className,yn());return na&&ln?m.cloneElement(ln,{className:kt}):ln},Rr=di;return!Rr&&qn.indexOf("contextMenu")!==-1&&(Rr=["click"]),m.createElement(Ht.a,Object(o.a)(Object(o.a)({builtinPlacements:Dr},xi),{},{prefixCls:Ft,ref:Aa,popupClassName:t()(mn,Object(f.a)({},"".concat(Ft,"-show-arrow"),zt)),popupStyle:Ur,action:qn,showAction:Dn,hideAction:Rr||[],popupPlacement:vr,popupAlign:Lt,popupTransitionName:Wt,popupAnimation:Vt,popupVisible:na,stretch:Sr()?"minWidth":"",popup:kr(),onPopupVisibleChange:ea,getPopupContainer:Kn}),dr())}var Ut=m.forwardRef(Jt),er=Ut;function Mt($r,En){var Hn=$r.prefixCls,zt=$r.editable,_t=$r.locale,Ft=$r.style;return!zt||zt.showAdd===!1?null:m.createElement("button",{ref:En,type:"button",className:"".concat(Hn,"-nav-add"),style:Ft,"aria-label":(_t==null?void 0:_t.addAriaLabel)||"Add tab",onClick:function(Vt){zt.onEdit("add",{event:Vt})}},zt.addIcon||"+")}var Zt=m.forwardRef(Mt);function Hr($r,En){var Hn=$r.prefixCls,zt=$r.id,_t=$r.tabs,Ft=$r.locale,Wt=$r.mobile,Vt=$r.moreIcon,Lt=Vt===void 0?"More":Vt,cr=$r.moreTransitionName,vr=$r.style,yr=$r.className,Dr=$r.editable,Kn=$r.tabBarGutter,Dn=$r.rtl,di=$r.onTabClick,mn=Object(m.useState)(!1),Ur=Object(d.a)(mn,2),On=Ur[0],zn=Ur[1],qn=Object(m.useState)(null),oi=Object(d.a)(qn,2),xi=oi[0],Di=oi[1],Li="".concat(zt,"-more-popup"),aa="".concat(Hn,"-dropdown"),ma=xi!==null?"".concat(Li,"-").concat(xi):null,na=Ft==null?void 0:Ft.dropdownAriaLabel,Aa=m.createElement(Ct,{onClick:function(kr){var Sr=kr.key,yn=kr.domEvent;di(Sr,yn),zn(!1)},id:Li,tabIndex:-1,role:"listbox","aria-activedescendant":ma,selectedKeys:[xi],"aria-label":na!==void 0?na:"expanded dropdown"},_t.map(function(ca){return m.createElement(ke,{key:ca.key,id:"".concat(Li,"-").concat(ca.key),role:"option","aria-controls":zt&&"".concat(zt,"-panel-").concat(ca.key),disabled:ca.disabled},ca.tab)}));function yi(ca){for(var kr=_t.filter(function(Gr){return!Gr.disabled}),Sr=kr.findIndex(function(Gr){return Gr.key===xi})||0,yn=kr.length,dr=0;dr<yn;dr+=1){Sr=(Sr+ca+yn)%yn;var Rr=kr[Sr];if(!Rr.disabled){Di(Rr.key);return}}}function Ln(ca){var kr=ca.which;if(!On){[F.a.DOWN,F.a.SPACE,F.a.ENTER].includes(kr)&&(zn(!0),ca.preventDefault());return}switch(kr){case F.a.UP:yi(-1),ca.preventDefault();break;case F.a.DOWN:yi(1),ca.preventDefault();break;case F.a.ESC:zn(!1);break;case F.a.SPACE:case F.a.ENTER:xi!==null&&di(xi,ca);break}}Object(m.useEffect)(function(){var ca=document.getElementById(ma);ca&&ca.scrollIntoView&&ca.scrollIntoView(!1)},[xi]),Object(m.useEffect)(function(){On||Di(null)},[On]);var ji=Object(f.a)({},Dn?"marginLeft":"marginRight",Kn);_t.length||(ji.visibility="hidden",ji.order=1);var ha=t()(Object(f.a)({},"".concat(aa,"-rtl"),Dn)),ea=Wt?null:m.createElement(er,{prefixCls:aa,overlay:Aa,trigger:["hover"],visible:On,transitionName:cr,onVisibleChange:zn,overlayClassName:ha,mouseEnterDelay:.1,mouseLeaveDelay:.1},m.createElement("button",{type:"button",className:"".concat(Hn,"-nav-more"),style:ji,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Li,id:"".concat(zt,"-more"),"aria-expanded":On,onKeyDown:Ln},Lt));return m.createElement("div",{className:t()("".concat(Hn,"-nav-operations"),yr),style:vr,ref:En},ea,m.createElement(Zt,{prefixCls:Hn,locale:Ft,editable:Dr}))}var Ir=m.forwardRef(Hr),Lr=Object(m.createContext)(null),dn=.1,gn=.01,ri=20,Zn=Math.pow(.995,ri);function pi(){var $r=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($r)||/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($r.substr(0,4)))}function Ci($r,En){var Hn=Object(m.useState)(),zt=Object(d.a)(Hn,2),_t=zt[0],Ft=zt[1],Wt=Object(m.useState)(0),Vt=Object(d.a)(Wt,2),Lt=Vt[0],cr=Vt[1],vr=Object(m.useState)(0),yr=Object(d.a)(vr,2),Dr=yr[0],Kn=yr[1],Dn=Object(m.useState)(),di=Object(d.a)(Dn,2),mn=di[0],Ur=di[1],On=Object(m.useRef)();function zn(na){var Aa=na.touches[0],yi=Aa.screenX,Ln=Aa.screenY;Ft({x:yi,y:Ln}),window.clearInterval(On.current)}function qn(na){if(!_t)return;na.preventDefault();var Aa=na.touches[0],yi=Aa.screenX,Ln=Aa.screenY;Ft({x:yi,y:Ln});var ji=yi-_t.x,ha=Ln-_t.y;En(ji,ha);var ea=Date.now();cr(ea),Kn(ea-Lt),Ur({x:ji,y:ha})}function oi(){if(!_t)return;if(Ft(null),Ur(null),mn){var na=mn.x/Dr,Aa=mn.y/Dr,yi=Math.abs(na),Ln=Math.abs(Aa);if(Math.max(yi,Ln)<dn)return;var ji=na,ha=Aa;On.current=window.setInterval(function(){if(Math.abs(ji)<gn&&Math.abs(ha)<gn){window.clearInterval(On.current);return}ji*=Zn,ha*=Zn,En(ji*ri,ha*ri)},ri)}}var xi=Object(m.useRef)(0),Di=Object(m.useRef)(!1),Li=Object(m.useRef)();function aa(na){var Aa=na.deltaX,yi=na.deltaY,Ln=0,ji=Math.abs(Aa),ha=Math.abs(yi);ji===ha?Ln=Li.current==="x"?Aa:yi:ji>ha?(Ln=Aa,Li.current="x"):(Ln=yi,Li.current="y");var ea=Date.now();ea-xi.current>100&&(Di.current=!1),(En(-Ln,-Ln)||Di.current)&&(na.preventDefault(),Di.current=!0),xi.current=ea}var ma=Object(m.useRef)(null);ma.current={onTouchStart:zn,onTouchMove:qn,onTouchEnd:oi,onWheel:aa},m.useEffect(function(){function na(ji){ma.current.onTouchStart(ji)}function Aa(ji){ma.current.onTouchMove(ji)}function yi(ji){ma.current.onTouchEnd(ji)}function Ln(ji){ma.current.onWheel(ji)}return document.addEventListener("touchmove",Aa,{passive:!1}),document.addEventListener("touchend",yi,{passive:!1}),$r.current.addEventListener("touchstart",na,{passive:!1}),$r.current.addEventListener("wheel",Ln),function(){document.removeEventListener("touchmove",Aa),document.removeEventListener("touchend",yi)}},[])}function Ni(){var $r=Object(m.useRef)(new Map);function En(zt){return $r.current.has(zt)||$r.current.set(zt,m.createRef()),$r.current.get(zt)}function Hn(zt){$r.current.delete(zt)}return[En,Hn]}function zi($r,En){var Hn=m.useRef($r),zt=m.useState({}),_t=Object(d.a)(zt,2),Ft=_t[1];function Wt(Vt){var Lt=typeof Vt=="function"?Vt(Hn.current):Vt;Lt!==Hn.current&&En(Lt,Hn.current),Hn.current=Lt,Ft({})}return[Hn.current,Wt]}var it=function(En){var Hn=En.position,zt=En.prefixCls,_t=En.extra;if(!_t)return null;var Ft,Wt=_t;return Hn==="right"&&(Ft=Wt.right||!Wt.left&&Wt||null),Hn==="left"&&(Ft=Wt.left||null),Ft?m.createElement("div",{className:"".concat(zt,"-extra-content")},Ft):null};function Ne($r,En){var Hn,zt=m.useContext(Lr),_t=zt.prefixCls,Ft=zt.tabs,Wt=$r.className,Vt=$r.style,Lt=$r.id,cr=$r.animated,vr=$r.activeKey,yr=$r.rtl,Dr=$r.extra,Kn=$r.editable,Dn=$r.locale,di=$r.tabPosition,mn=$r.tabBarGutter,Ur=$r.children,On=$r.onTabClick,zn=$r.onTabScroll,qn=Object(m.useRef)(),oi=Object(m.useRef)(),xi=Object(m.useRef)(),Di=Object(m.useRef)(),Li=Ni(),aa=Object(d.a)(Li,2),ma=aa[0],na=aa[1],Aa=di==="top"||di==="bottom",yi=zi(0,function(si,ui){Aa&&zn&&zn({direction:si>ui?"left":"right"})}),Ln=Object(d.a)(yi,2),ji=Ln[0],ha=Ln[1],ea=zi(0,function(si,ui){!Aa&&zn&&zn({direction:si>ui?"top":"bottom"})}),ca=Object(d.a)(ea,2),kr=ca[0],Sr=ca[1],yn=Object(m.useState)(0),dr=Object(d.a)(yn,2),Rr=dr[0],Gr=dr[1],ln=Object(m.useState)(0),kn=Object(d.a)(ln,2),kt=kn[0],_r=kn[1],Nr=Object(m.useState)(0),Jr=Object(d.a)(Nr,2),xn=Jr[0],Tn=Jr[1],wn=Object(m.useState)(0),$n=Object(d.a)(wn,2),Vn=$n[0],mi=$n[1],Ri=Object(m.useState)(null),vi=Object(d.a)(Ri,2),Bi=vi[0],Gi=vi[1],ta=Object(m.useState)(null),Pi=Object(d.a)(ta,2),Ki=Pi[0],Hi=Pi[1],Qi=Object(m.useState)(0),da=Object(d.a)(Qi,2),Oa=da[0],ra=da[1],Da=Object(m.useState)(0),Ra=Object(d.a)(Da,2),va=Ra[0],ga=Ra[1],_a=_(new Map),ya=Object(d.a)(_a,2),Ga=ya[0],Ia=ya[1],Wa=X(Ft,Ga,Rr),no="".concat(_t,"-nav-operations-hidden"),io=0,uo=0;Aa?yr?(io=0,uo=Math.max(0,Rr-Bi)):(io=Math.min(0,Bi-Rr),uo=0):(io=Math.min(0,Ki-kt),uo=0);function $i(si){return si<io?[io,!1]:si>uo?[uo,!1]:[si,!0]}var mo=Object(m.useRef)(),Eo=Object(m.useState)(),ao=Object(d.a)(Eo,2),Co=ao[0],Ko=ao[1];function to(){Ko(Date.now())}function Qo(){window.clearTimeout(mo.current)}Ci(qn,function(si,ui){var ai=!1;function Ei(gi,Ti){gi(function(_i){var ia=$i(_i+Ti),Fi=Object(d.a)(ia,2),fa=Fi[0],za=Fi[1];return ai=za,fa})}if(Aa){if(Bi>=Rr)return ai;Ei(ha,si)}else{if(Ki>=kt)return ai;Ei(Sr,ui)}return Qo(),to(),ai}),Object(m.useEffect)(function(){return Qo(),Co&&(mo.current=window.setTimeout(function(){Ko(0)},100)),Qo},[Co]);function bo(){var si=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vr,ui=Wa.get(si);if(!ui)return;if(Aa){var ai=ji;yr?ui.right<ji?ai=ui.right:ui.right+ui.width>ji+Bi&&(ai=ui.right+ui.width-Bi):ui.left<-ji?ai=-ui.left:ui.left+ui.width>-ji+Bi&&(ai=-(ui.left+ui.width-Bi)),Sr(0),ha($i(ai)[0])}else{var Ei=kr;ui.top<-kr?Ei=-ui.top:ui.top+ui.height>-kr+Ki&&(Ei=-(ui.top+ui.height-Ki)),ha(0),Sr($i(Ei)[0])}}var xo=z(Wa,{width:Bi,height:Ki,left:ji,top:kr},{width:xn,height:Vn},{width:Oa,height:va},Object(o.a)(Object(o.a)({},$r),{},{tabs:Ft})),ts=Object(d.a)(xo,2),ka=ts[0],Io=ts[1],Mo=Ft.map(function(si){var ui=si.key;return m.createElement(B,{id:Lt,prefixCls:_t,key:ui,rtl:yr,tab:si,closable:si.closable,editable:Kn,active:ui===vr,tabPosition:di,tabBarGutter:mn,renderWrapper:Ur,removeAriaLabel:Dn==null?void 0:Dn.removeAriaLabel,ref:ma(ui),onClick:function(Ei){On(ui,Ei)},onRemove:function(){na(ui)},onFocus:function(){bo(ui),to(),yr||(qn.current.scrollLeft=0),qn.current.scrollTop=0}})}),is=I(function(){var si,ui,ai,Ei,gi,Ti,_i,ia,Fi,fa=((si=qn.current)===null||si===void 0?void 0:si.offsetWidth)||0,za=((ui=qn.current)===null||ui===void 0?void 0:ui.offsetHeight)||0,Ca=((ai=Di.current)===null||ai===void 0?void 0:ai.offsetWidth)||0,xa=((Ei=Di.current)===null||Ei===void 0?void 0:Ei.offsetHeight)||0,Ma=((gi=xi.current)===null||gi===void 0?void 0:gi.offsetWidth)||0,Pa=((Ti=xi.current)===null||Ti===void 0?void 0:Ti.offsetHeight)||0;Gi(fa),Hi(za),ra(Ca),ga(xa);var Wo=(((_i=oi.current)===null||_i===void 0?void 0:_i.offsetWidth)||0)-Ca,Oo=(((ia=oi.current)===null||ia===void 0?void 0:ia.offsetHeight)||0)-xa;Gr(Wo),_r(Oo);var pa=(Fi=xi.current)===null||Fi===void 0?void 0:Fi.className.includes(no);Tn(Wo-(pa?0:Ma)),mi(Oo-(pa?0:Pa)),Ia(function(){var Sa=new Map;return Ft.forEach(function(Ea){var Ka=Ea.key,so=ma(Ka).current;so&&Sa.set(Ka,{width:so.offsetWidth,height:so.offsetHeight,left:so.offsetLeft,top:so.offsetTop})}),Sa})}),To=Ft.slice(0,ka),Zo=Ft.slice(Io+1),Vo=[].concat(Object(u.a)(To),Object(u.a)(Zo)),Lo=Object(m.useState)(),ho=Object(d.a)(Lo,2),ja=ho[0],mt=ho[1],Cr=Wa.get(vr),tn=Object(m.useRef)();function Yr(){s.a.cancel(tn.current)}Object(m.useEffect)(function(){var si={};return Cr&&(Aa?(yr?si.right=Cr.right:si.left=Cr.left,si.width=Cr.width):(si.top=Cr.top,si.height=Cr.height)),Yr(),tn.current=s()(function(){mt(si)}),Yr},[Cr,Aa,yr]),Object(m.useEffect)(function(){bo()},[vr,Cr,Wa,Aa]),Object(m.useEffect)(function(){is()},[yr,mn,vr,Ft.map(function(si){return si.key}).join("_")]);var Xn=!!Vo.length,hn="".concat(_t,"-nav-wrap"),Xr,ni,nn,Wn;return Aa?yr?(ni=ji>0,Xr=ji+Bi<Rr):(Xr=ji<0,ni=-ji+Bi<Rr):(nn=kr<0,Wn=-kr+Ki<kt),m.createElement("div",{ref:En,role:"tablist",className:t()("".concat(_t,"-nav"),Wt),style:Vt,onKeyDown:function(){to()}},m.createElement(it,{position:"left",extra:Dr,prefixCls:_t}),m.createElement(C,{onResize:is},m.createElement("div",{className:t()(hn,(Hn={},Object(f.a)(Hn,"".concat(hn,"-ping-left"),Xr),Object(f.a)(Hn,"".concat(hn,"-ping-right"),ni),Object(f.a)(Hn,"".concat(hn,"-ping-top"),nn),Object(f.a)(Hn,"".concat(hn,"-ping-bottom"),Wn),Hn)),ref:qn},m.createElement(C,{onResize:is},m.createElement("div",{ref:oi,className:"".concat(_t,"-nav-list"),style:{transform:"translate(".concat(ji,"px, ").concat(kr,"px)"),transition:Co?"none":void 0}},Mo,m.createElement(Zt,{ref:Di,prefixCls:_t,locale:Dn,editable:Kn,style:{visibility:Xn?"hidden":null}}),m.createElement("div",{className:t()("".concat(_t,"-ink-bar"),Object(f.a)({},"".concat(_t,"-ink-bar-animated"),cr.inkBar)),style:ja}))))),m.createElement(Ir,Object.assign({},$r,{ref:xi,prefixCls:_t,tabs:Vo,className:!Xn&&no})),m.createElement(it,{position:"right",extra:Dr,prefixCls:_t}))}var He=m.forwardRef(Ne);function Ge($r){var En=$r.id,Hn=$r.activeKey,zt=$r.animated,_t=$r.tabPosition,Ft=$r.rtl,Wt=$r.destroyInactiveTabPane,Vt=m.useContext(Lr),Lt=Vt.prefixCls,cr=Vt.tabs,vr=zt.tabPane,yr=cr.findIndex(function(Dr){return Dr.key===Hn});return m.createElement("div",{className:t()("".concat(Lt,"-content-holder"))},m.createElement("div",{className:t()("".concat(Lt,"-content"),"".concat(Lt,"-content-").concat(_t),Object(f.a)({},"".concat(Lt,"-content-animated"),vr)),style:yr&&vr?Object(f.a)({},Ft?"marginRight":"marginLeft","-".concat(yr,"00%")):null},cr.map(function(Dr){return m.cloneElement(Dr.node,{key:Dr.key,prefixCls:Lt,tabKey:Dr.key,id:En,animated:vr,active:Dr.key===Hn,destroyInactiveTabPane:Wt})})))}function nt($r){var En=$r.prefixCls,Hn=$r.forceRender,zt=$r.className,_t=$r.style,Ft=$r.id,Wt=$r.active,Vt=$r.animated,Lt=$r.destroyInactiveTabPane,cr=$r.tabKey,vr=$r.children,yr=m.useState(Hn),Dr=Object(d.a)(yr,2),Kn=Dr[0],Dn=Dr[1];m.useEffect(function(){Wt?Dn(!0):Lt&&Dn(!1)},[Wt,Lt]);var di={};return Wt||(Vt?(di.visibility="hidden",di.height=0,di.overflowY="hidden"):di.display="none"),m.createElement("div",{id:Ft&&"".concat(Ft,"-panel-").concat(cr),role:"tabpanel",tabIndex:Wt?0:-1,"aria-labelledby":Ft&&"".concat(Ft,"-tab-").concat(cr),"aria-hidden":!Wt,style:Object(o.a)(Object(o.a)({},di),_t),className:t()("".concat(En,"-tabpane"),Wt&&"".concat(En,"-tabpane-active"),zt)},(Wt||Kn||Hn)&&vr)}var $e=0;function ot($r){return Object(a.a)($r).map(function(En){if(m.isValidElement(En)){var Hn=En.key!==void 0?String(En.key):void 0;return Object(o.a)(Object(o.a)({key:Hn},En.props),{},{node:En})}return null}).filter(function(En){return En})}function Pt($r,En){var Hn,zt=$r.id,_t=$r.prefixCls,Ft=_t===void 0?"rc-tabs":_t,Wt=$r.className,Vt=$r.children,Lt=$r.direction,cr=$r.activeKey,vr=$r.defaultActiveKey,yr=$r.editable,Dr=$r.animated,Kn=$r.tabPosition,Dn=Kn===void 0?"top":Kn,di=$r.tabBarGutter,mn=$r.tabBarStyle,Ur=$r.tabBarExtraContent,On=$r.locale,zn=$r.moreIcon,qn=$r.moreTransitionName,oi=$r.destroyInactiveTabPane,xi=$r.renderTabBar,Di=$r.onChange,Li=$r.onTabClick,aa=$r.onTabScroll,ma=Object(l.a)($r,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),na=ot(Vt),Aa=Lt==="rtl",yi;Dr===!1?yi={inkBar:!1,tabPane:!1}:yi=Object(o.a)({inkBar:!0,tabPane:!1},Dr!==!0?Dr:null);var Ln=Object(m.useState)(!1),ji=Object(d.a)(Ln,2),ha=ji[0],ea=ji[1];Object(m.useEffect)(function(){ea(pi())},[]);var ca=Object(e.a)(function(){var Vn;return(Vn=na[0])===null||Vn===void 0?void 0:Vn.key},{value:cr,defaultValue:vr}),kr=Object(d.a)(ca,2),Sr=kr[0],yn=kr[1],dr=Object(m.useState)(function(){return na.findIndex(function(Vn){return Vn.key===Sr})}),Rr=Object(d.a)(dr,2),Gr=Rr[0],ln=Rr[1];Object(m.useEffect)(function(){var Vn=na.findIndex(function(Ri){return Ri.key===Sr});if(Vn===-1){var mi;Vn=Math.max(0,Math.min(Gr,na.length-1)),yn((mi=na[Vn])===null||mi===void 0?void 0:mi.key)}ln(Vn)},[na.map(function(Vn){return Vn.key}).join("_"),Sr,Gr]);var kn=Object(e.a)(null,{value:zt}),kt=Object(d.a)(kn,2),_r=kt[0],Nr=kt[1],Jr=Dn;ha&&!["left","right"].includes(Dn)&&(Jr="top"),Object(m.useEffect)(function(){zt||(Nr("rc-tabs-".concat($e)),$e+=1)},[]);function xn(Vn,mi){Li==null||Li(Vn,mi),yn(Vn),Di==null||Di(Vn)}var Tn={id:_r,activeKey:Sr,animated:yi,tabPosition:Jr,rtl:Aa,mobile:ha},wn,$n=Object(o.a)(Object(o.a)({},Tn),{},{editable:yr,locale:On,moreIcon:zn,moreTransitionName:qn,tabBarGutter:di,onTabClick:xn,onTabScroll:aa,extra:Ur,style:mn,panes:Vt});return xi?wn=xi($n,He):wn=m.createElement(He,Object.assign({},$n)),m.createElement(Lr.Provider,{value:{tabs:na,prefixCls:Ft}},m.createElement("div",Object.assign({ref:En,id:zt,className:t()(Ft,"".concat(Ft,"-").concat(Jr),(Hn={},Object(f.a)(Hn,"".concat(Ft,"-mobile"),ha),Object(f.a)(Hn,"".concat(Ft,"-editable"),yr),Object(f.a)(Hn,"".concat(Ft,"-rtl"),Aa),Hn),Wt)},ma),wn,m.createElement(Ge,Object.assign({destroyInactiveTabPane:oi},Tn,{animated:yi}))))}var xt=m.forwardRef(Pt);xt.TabPane=nt;var rr=xt,Fr=rr,Vr=i("cCPh"),fn=i.n(Vr),gr=i("fNCr"),Gn=i.n(gr),Mr=i("V/uB"),Rn=i.n(Mr),bn=i("uaoM"),rn=i("H84U"),ei=function($r,En){var Hn={};for(var zt in $r)Object.prototype.hasOwnProperty.call($r,zt)&&En.indexOf(zt)<0&&(Hn[zt]=$r[zt]);if($r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _t=0,zt=Object.getOwnPropertySymbols($r);_t<zt.length;_t++)En.indexOf(zt[_t])<0&&Object.prototype.propertyIsEnumerable.call($r,zt[_t])&&(Hn[zt[_t]]=$r[zt[_t]]);return Hn};function fi($r){var En,Hn=$r.type,zt=$r.className,_t=$r.size,Ft=$r.onEdit,Wt=$r.hideAdd,Vt=$r.centered,Lt=$r.addIcon,cr=ei($r,["type","className","size","onEdit","hideAdd","centered","addIcon"]),vr=cr.prefixCls,yr=m.useContext(rn.b),Dr=yr.getPrefixCls,Kn=yr.direction,Dn=Dr("tabs",vr),di;return Hn==="editable-card"&&(di={onEdit:function(Ur,On){var zn=On.key,qn=On.event;Ft==null||Ft(Ur==="add"?qn:zn,Ur)},removeIcon:m.createElement(Rn.a,null),addIcon:Lt||m.createElement(Gn.a,null),showAdd:Wt!==!0}),Object(bn.a)(!("onPrevClick"in cr)&&!("onNextClick"in cr),"Tabs","`onPrevClick` and `onNextClick` has been removed. Please use `onTabScroll` instead."),m.createElement(Fr,p()({direction:Kn},cr,{moreTransitionName:"slide-up",className:t()(zt,(En={},A()(En,"".concat(Dn,"-").concat(_t),_t),A()(En,"".concat(Dn,"-card"),["card","editable-card"].includes(Hn)),A()(En,"".concat(Dn,"-editable-card"),Hn==="editable-card"),A()(En,"".concat(Dn,"-centered"),Vt),En)),editable:di,moreIcon:m.createElement(fn.a,null),prefixCls:Dn}))}fi.TabPane=nt;var Mi=D.a=fi},ZTW2:function(k,D,i){},ZWlE:function(k,D,i){var y=i("bYtY"),p=i("4NO4");function S(f){A(f),m(f)}function A(f){if(f.parallel)return;var d=!1;y.each(f.series,function(l){l&&l.type==="parallel"&&(d=!0)}),d&&(f.parallel=[{}])}function m(f){var d=p.normalizeToArray(f.parallelAxis);y.each(d,function(l){if(!y.isObject(l))return;var o=l.parallelIndex||0,n=p.normalizeToArray(f.parallel)[o];n&&n.parallelAxisDefault&&y.merge(l,n.parallelAxisDefault,!1)})}k.exports=S},ZX9x:function(k,D,i){"use strict";i.d(D,"a",function(){return _}),i.d(D,"b",function(){return B});var y=i("lSNA"),p=i.n(y),S=i("pVnL"),A=i.n(S),m=i("lwsE"),f=i.n(m),d=i("W8MJ"),l=i.n(d),o=i("7W2i"),n=i.n(o),t=i("LQ03"),a=i.n(t),e=i("q1tI"),u=i("TSYQ"),r=i.n(u),s=i("BGR+"),c=i("T1rO"),h=i.n(c),g=i("fEPi"),v=i.n(g),b=i("DFhj"),w=i.n(b),x=i("PKem"),T=i("H84U"),O=function(X){return!isNaN(parseFloat(X))&&isFinite(X)},E=O,C=function(M,X){var P={};for(var z in M)Object.prototype.hasOwnProperty.call(M,z)&&X.indexOf(z)<0&&(P[z]=M[z]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,z=Object.getOwnPropertySymbols(M);W<z.length;W++)X.indexOf(z[W])<0&&Object.prototype.propertyIsEnumerable.call(M,z[W])&&(P[z[W]]=M[z[W]]);return P},I={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},_=e.createContext({}),F=function(){var M=0;return function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return M+=1,"".concat(X).concat(M)}}(),R=function(M){n()(P,M);var X=a()(P);function P(z){var W;f()(this,P),W=X.call(this,z),W.responsiveHandler=function(Q){W.setState({below:Q.matches});var G=W.props.onBreakpoint,te=W.state.collapsed;G&&G(Q.matches),te!==Q.matches&&W.setCollapsed(Q.matches,"responsive")},W.setCollapsed=function(Q,G){"collapsed"in W.props||W.setState({collapsed:Q});var te=W.props.onCollapse;te&&te(Q,G)},W.toggle=function(){var Q=!W.state.collapsed;W.setCollapsed(Q,"clickTrigger")},W.renderSider=function(Q){var G,te=Q.getPrefixCls,$=W.props,le=$.prefixCls,re=$.className,Se=$.theme,Re=$.collapsible,Pe=$.reverseArrow,Je=$.trigger,Ve=$.style,ct=$.width,Ue=$.collapsedWidth,ue=$.zeroWidthTriggerStyle,rt=$.children,ge=C($,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle","children"]),Z=W.state,Y=Z.collapsed,ee=Z.below,fe=te("layout-sider",le),be=Object(s.default)(ge,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),Ce=Y?Ue:ct,Te=E(Ce)?"".concat(Ce,"px"):String(Ce),he=parseFloat(String(Ue||0))===0?e.createElement("span",{onClick:W.toggle,className:r()("".concat(fe,"-zero-width-trigger"),"".concat(fe,"-zero-width-trigger-").concat(Pe?"right":"left")),style:ue},Je||e.createElement(h.a,null)):null,ye={expanded:Pe?e.createElement(v.a,null):e.createElement(w.a,null),collapsed:Pe?e.createElement(w.a,null):e.createElement(v.a,null)},Ie=Y?"collapsed":"expanded",tt=ye[Ie],pt=Je!==null?he||e.createElement("div",{className:"".concat(fe,"-trigger"),onClick:W.toggle,style:{width:Te}},Je||tt):null,st=A()(A()({},Ve),{flex:"0 0 ".concat(Te),maxWidth:Te,minWidth:Te,width:Te}),Fe=r()(re,fe,"".concat(fe,"-").concat(Se),(G={},p()(G,"".concat(fe,"-collapsed"),!!Y),p()(G,"".concat(fe,"-has-trigger"),Re&&Je!==null&&!he),p()(G,"".concat(fe,"-below"),!!ee),p()(G,"".concat(fe,"-zero-width"),parseFloat(Te)===0),G));return e.createElement("aside",A()({className:Fe},be,{style:st}),e.createElement("div",{className:"".concat(fe,"-children")},rt),Re||ee&&he?pt:null)},W.uniqueId=F("ant-sider-");var U;typeof window!="undefined"&&(U=window.matchMedia),U&&z.breakpoint&&z.breakpoint in I&&(W.mql=U("(max-width: ".concat(I[z.breakpoint],")")));var V;return"collapsed"in z?V=z.collapsed:V=z.defaultCollapsed,W.state={collapsed:V,below:!1},W}return l()(P,[{key:"componentDidMount",value:function(){var W;this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),(W=this.props)===null||W===void 0||W.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){var W,U;(W=this===null||this===void 0?void 0:this.mql)===null||W===void 0||W.removeListener(this.responsiveHandler),(U=this.props)===null||U===void 0||U.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var W=this.state.collapsed,U=this.props.collapsedWidth;return e.createElement(_.Provider,{value:{siderCollapsed:W,collapsedWidth:U}},e.createElement(T.a,null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(W){return"collapsed"in W?{collapsed:W.collapsed}:null}}]),P}(e.Component);R.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"};var B=function(M){n()(P,M);var X=a()(P);function P(){return f()(this,P),X.apply(this,arguments)}return l()(P,[{key:"render",value:function(){var W=this;return e.createElement(x.a.Consumer,null,function(U){return e.createElement(R,A()({},U,W.props))})}}]),P}(e.Component)},ZYIC:function(k,D,i){var y=i("zM3Q"),p={seriesType:"lines",plan:y(),reset:function(S){var A=S.coordinateSystem,m=S.get("polyline"),f=S.pipelineContext.large;function d(l,o){var n=[];if(f){var t,a=l.end-l.start;if(m){for(var e=0,u=l.start;u<l.end;u++)e+=S.getLineCoordsCount(u);t=new Float32Array(a+e*2)}else t=new Float32Array(a*4);for(var r=0,s=[],u=l.start;u<l.end;u++){var c=S.getLineCoords(u,n);m&&(t[r++]=c);for(var h=0;h<c;h++)s=A.dataToPoint(n[h],!1,s),t[r++]=s[0],t[r++]=s[1]}o.setLayout("linesPoints",t)}else for(var u=l.start;u<l.end;u++){var g=o.getItemModel(u),c=S.getLineCoords(u,n),v=[];if(m)for(var b=0;b<c;b++)v.push(A.dataToPoint(n[b]));else{v[0]=A.dataToPoint(n[0]),v[1]=A.dataToPoint(n[1]);var w=g.get("lineStyle.curveness");+w&&(v[2]=[(v[0][0]+v[1][0])/2-(v[0][1]-v[1][1])*w,(v[0][1]+v[1][1])/2-(v[1][0]-v[0][0])*w])}o.setItemLayout(u,v)}}return{progress:d}}};k.exports=p},Ze12:function(k,D,i){var y=i("ItGF"),p=i("hOwI"),S=p.buildTransformer,A="___zrEVENTSAVED",m=[];function f(t,a,e,u,r){return d(m,a,u,r,!0)&&d(t,e,m[0],m[1])}function d(t,a,e,u,r){if(a.getBoundingClientRect&&y.domSupported&&!n(a)){var s=a[A]||(a[A]={}),c=l(a,s),h=o(c,s,r);if(h)return h(t,e,u),!0}return!1}function l(t,a){var e=a.markers;if(e)return e;e=a.markers=[];for(var u=["left","right"],r=["top","bottom"],s=0;s<4;s++){var c=document.createElement("div"),h=c.style,g=s%2,v=(s>>1)%2;h.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",u[g]+":0",r[v]+":0",u[1-g]+":auto",r[1-v]+":auto",""].join("!important;"),t.appendChild(c),e.push(c)}return e}function o(t,a,e){for(var u=e?"invTrans":"trans",r=a[u],s=a.srcCoords,c=!0,h=[],g=[],v=0;v<4;v++){var b=t[v].getBoundingClientRect(),w=2*v,x=b.left,T=b.top;h.push(x,T),c=c&&s&&x===s[w]&&T===s[w+1],g.push(t[v].offsetLeft,t[v].offsetTop)}return c&&r?r:(a.srcCoords=h,a[u]=e?S(g,h):S(h,g))}function n(t){return t.nodeName.toUpperCase()==="CANVAS"}D.transformLocalCoord=f,D.transformCoordWithViewport=d,D.isCanvasEl=n},Znkb:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("ProS"),A=i("zTMp"),m=S.extendComponentView({type:"axis",_axisPointer:null,axisPointerClass:null,render:function(n,t,a,e){this.axisPointerClass&&A.fixValue(n),m.superApply(this,"render",arguments),f(this,n,t,a,e,!0)},updateAxisPointer:function(n,t,a,e,u){f(this,n,t,a,e,!1)},remove:function(n,t){var a=this._axisPointer;a&&a.remove(t),m.superApply(this,"remove",arguments)},dispose:function(n,t){d(this,t),m.superApply(this,"dispose",arguments)}});function f(n,t,a,e,u,r){var s=m.getAxisPointerClass(n.axisPointerClass);if(!s)return;var c=A.getAxisPointerModel(t);c?(n._axisPointer||(n._axisPointer=new s)).render(t,c,e,r):d(n,e)}function d(n,t,a){var e=n._axisPointer;e&&e.dispose(t,a),n._axisPointer=null}var l=[];m.registerAxisPointerClass=function(n,t){l[n]=t},m.getAxisPointerClass=function(n){return n&&l[n]};var o=m;k.exports=o},"Znn+":function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("9ama"),A=i.n(S)},ZqQs:function(k,D,i){var y=i("bYtY");function p(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),A(f),m(f,"controlPosition")){var o=f.controlStyle||(f.controlStyle={});m(o,"position")||(o.position=f.controlPosition),o.position==="none"&&!m(o,"show")&&(o.show=!1,delete o.position),delete f.controlPosition}y.each(f.data||[],function(n){y.isObject(n)&&!y.isArray(n)&&(!m(n,"value")&&m(n,"name")&&(n.value=n.name),A(n))})}function A(f){var d=f.itemStyle||(f.itemStyle={}),l=d.emphasis||(d.emphasis={}),o=f.label||f.label||{},n=o.normal||(o.normal={}),t={normal:1,emphasis:1};y.each(o,function(a,e){!t[e]&&!m(n,e)&&(n[e]=a)}),l.label&&!m(o,"emphasis")&&(o.emphasis=l.label,delete l.label)}function m(f,d){return f.hasOwnProperty(d)}k.exports=p},Zvw2:function(k,D,i){var y=i("bYtY"),p=i("hM6l"),S=function(m,f,d,l,o){p.call(this,m,f,d),this.type=l||"value",this.position=o||"bottom",this.orient=null};S.prototype={constructor:S,model:null,isHorizontal:function(){var m=this.position;return m==="top"||m==="bottom"},pointToData:function(m,f){return this.coordinateSystem.pointToData(m,f)[0]},toGlobalCoord:null,toLocalCoord:null},y.inherits(S,p);var A=S;k.exports=A},a7Wl:function(k,D,i){"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(k,D){var i={Russia:[100,60],"United States":[-99,38],"United States of America":[-99,38]};function y(p,S){if(p==="world"){var A=i[S.name];if(A){var m=S.center;m[0]=A[0],m[1]=A[1]}}}k.exports=y},aHsQ:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("6D9b"),A=i.n(S)},aKvl:function(k,D,i){var y=i("Sj9i"),p=y.quadraticProjectPoint;function S(A,m,f,d,l,o,n,t,a){if(n===0)return!1;var e=n;if(a>m+e&&a>d+e&&a>o+e||a<m-e&&a<d-e&&a<o-e||t>A+e&&t>f+e&&t>l+e||t<A-e&&t<f-e&&t<l-e)return!1;var u=p(A,m,f,d,l,o,t,a,null);return u<=e/2}D.containStroke=S},aRTE:function(k,D){k.exports={L:1,M:0,Q:3,H:2}},aTJb:function(k,D,i){var y=i("bLfw");y.registerSubTypeDefaulter("dataZoom",function(){return"slider"})},aX58:function(k,D,i){var y=i("3gBT"),p=i("ItGF"),S=i("bYtY"),A=i("0s+r"),m=i("r6Bn"),f=i("7SHv"),d=i("MKOG"),l=i("zarK");/*!
* ZRender, a high performance 2d drawing library.
*
* Copyright (c) 2013, Baidu Inc.
* All rights reserved.
*
* LICENSE
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
*/var o=!p.canvasSupported,n={canvas:f},t={},a="4.3.1";function e(g,v){var b=new h(y(),g,v);return t[b.id]=b,b}function u(g){if(g)g.dispose();else{for(var v in t)t.hasOwnProperty(v)&&t[v].dispose();t={}}return this}function r(g){return t[g]}function s(g,v){n[g]=v}function c(g){delete t[g]}var h=function(v,b,w){w=w||{},this.dom=b,this.id=v;var x=this,T=new m,O=w.renderer;if(o){if(!n.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");O="vml"}else(!O||!n[O])&&(O="canvas");var E=new n[O](b,T,w,v);this.storage=T,this.painter=E;var C=!p.node&&!p.worker?new l(E.getViewportRoot(),E.root):null;this.handler=new A(T,E,C,E.root),this.animation=new d({stage:{update:S.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var I=T.delFromStorage,_=T.addToStorage;T.delFromStorage=function(F){I.call(T,F),F&&F.removeSelfFromZr(x)},T.addToStorage=function(F){_.call(T,F),F.addSelfToZr(x)}};h.prototype={constructor:h,getId:function(){return this.id},add:function(v){this.storage.addRoot(v),this._needsRefresh=!0},remove:function(v){this.storage.delRoot(v),this._needsRefresh=!0},configLayer:function(v,b){this.painter.configLayer&&this.painter.configLayer(v,b),this._needsRefresh=!0},setBackgroundColor:function(v){this.painter.setBackgroundColor&&this.painter.setBackgroundColor(v),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 v;this._needsRefresh&&(v=!0,this.refreshImmediately()),this._needsRefreshHover&&(v=!0,this.refreshHoverImmediately()),v&&this.trigger("rendered")},addHover:function(v,b){if(this.painter.addHover){var w=this.painter.addHover(v,b);return this.refreshHover(),w}},removeHover:function(v){this.painter.removeHover&&(this.painter.removeHover(v),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(v){v=v||{},this.painter.resize(v.width,v.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(v,b){return this.painter.pathToImage(v,b)},setCursorStyle:function(v){this.handler.setCursorStyle(v)},findHover:function(v,b){return this.handler.findHover(v,b)},on:function(v,b,w){this.handler.on(v,b,w)},off:function(v,b){this.handler.off(v,b)},trigger:function(v,b){this.handler.trigger(v,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=a,D.init=e,D.dispose=u,D.getInstance=r,D.registerPainter=s},aX7z:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),A=i("GMDS"),m=i("ieMj"),f=i("4NgU"),d=i("OELB"),l=i("nVfU"),o=l.prepareLayoutBarSeries,n=l.makeColumnLayout,t=l.retrieveColumnLayout,a=i("mFDi");i("IWp7"),i("jCoz");function e(T,O){var E=T.type,C=O.getMin(),I=O.getMax(),_=T.getExtent(),F,R,B;E==="ordinal"?F=O.getCategories().length:(R=O.get("boundaryGap"),S.isArray(R)||(R=[R||0,R||0]),typeof R[0]=="boolean"&&(R=[0,0]),R[0]=d.parsePercent(R[0],1),R[1]=d.parsePercent(R[1],1),B=_[1]-_[0]||Math.abs(_[0])),C==="dataMin"?C=_[0]:typeof C=="function"&&(C=C({min:_[0],max:_[1]})),I==="dataMax"?I=_[1]:typeof I=="function"&&(I=I({min:_[0],max:_[1]}));var M=C!=null,X=I!=null;C==null&&(C=E==="ordinal"?F?0:NaN:_[0]-R[0]*B),I==null&&(I=E==="ordinal"?F?F-1:NaN:_[1]+R[1]*B),(C==null||!isFinite(C))&&(C=NaN),(I==null||!isFinite(I))&&(I=NaN),T.setBlank(S.eqNaN(C)||S.eqNaN(I)||E==="ordinal"&&!T.getOrdinalMeta().categories.length),O.getNeedCrossZero()&&(C>0&&I>0&&!M&&(C=0),C<0&&I<0&&!X&&(I=0));var P=O.ecModel;if(P&&E==="time"){var z=o("bar",P),W;if(S.each(z,function(Q){W|=Q.getBaseAxis()===O.axis}),W){var U=n(z),V=u(C,I,O,U);C=V.min,I=V.max}}return{extent:[C,I],fixMin:M,fixMax:X}}function u(T,O,E,C){var I=E.axis.getExtent(),_=I[1]-I[0],F=t(C,E.axis);if(F===void 0)return{min:T,max:O};var R=Infinity;S.each(F,function(W){R=Math.min(W.offset,R)});var B=-Infinity;S.each(F,function(W){B=Math.max(W.offset+W.width,B)}),R=Math.abs(R),B=Math.abs(B);var M=R+B,X=O-T,P=1-(R+B)/_,z=X/P-X;return O+=z*(B/M),T-=z*(R/M),{min:T,max:O}}function r(T,O){var E=e(T,O),C=E.extent,I=O.get("splitNumber");T.type==="log"&&(T.base=O.get("logBase"));var _=T.type;T.setExtent(C[0],C[1]),T.niceExtent({splitNumber:I,fixMin:E.fixMin,fixMax:E.fixMax,minInterval:_==="interval"||_==="time"?O.get("minInterval"):null,maxInterval:_==="interval"||_==="time"?O.get("maxInterval"):null});var F=O.get("interval");F!=null&&(T.setInterval&&T.setInterval(F))}function s(T,O){if(O=O||T.get("type"),O)switch(O){case"category":return new A(T.getOrdinalMeta?T.getOrdinalMeta():T.getCategories(),[Infinity,-Infinity]);case"value":return new m;default:return(f.getClass(O)||m).create(T)}}function c(T){var O=T.scale.getExtent(),E=O[0],C=O[1];return!(E>0&&C>0||E<0&&C<0)}function h(T){var O=T.getLabelModel().get("formatter"),E=T.type==="category"?T.scale.getExtent()[0]:null;return typeof O=="string"?(O=function(C){return function(I){return I=T.scale.getLabel(I),C.replace("{value}",I!=null?I:"")}}(O),O):typeof O=="function"?function(C,I){return E!=null&&(I=C-E),O(g(T,C),I)}:function(C){return T.scale.getLabel(C)}}function g(T,O){return T.type==="category"?T.scale.getLabel(O):O}function v(T){var O=T.model,E=T.scale;if(!O.get("axisLabel.show")||E.isBlank())return;var C=T.type==="category",I,_,F=E.getExtent();C?_=E.count():(I=E.getTicks(),_=I.length);var R=T.getLabelModel(),B=h(T),M,X=1;_>40&&(X=Math.ceil(_/40));for(var P=0;P<_;P+=X){var z=I?I[P]:F[0]+P,W=B(z),U=R.getTextRect(W),V=b(U,R.get("rotate")||0);M?M.union(V):M=V}return M}function b(T,O){var E=O*Math.PI/180,C=T.plain(),I=C.width,_=C.height,F=I*Math.cos(E)+_*Math.sin(E),R=I*Math.sin(E)+_*Math.cos(E),B=new a(C.x,C.y,F,R);return B}function w(T){var O=T.get("interval");return O==null?"auto":O}function x(T){return T.type==="category"&&w(T.getLabelModel())===0}D.getScaleExtent=e,D.niceScaleExtent=r,D.createScaleByModel=s,D.ifAxisCrossZero=c,D.makeLabelFormatter=h,D.getAxisRawValue=g,D.estimateLabelUnionRect=v,D.getOptionCategoryInterval=w,D.shouldShowAllLabels=x},adU4:function(k,D,i){var y=i("y1pI"),p=Array.prototype,S=p.splice;function A(m){var f=this.__data__,d=y(f,m);if(d<0)return!1;var l=f.length-1;return d==l?f.pop():S.call(f,d,1),--this.size,!0}k.exports=A},"af/B":function(k,D,i){var y=i("bYtY"),p=y.each,S=y.map,A=y.isFunction,m=y.createHashMap,f=y.noop,d=i("9H2F"),l=d.createTask,o=i("iRjW"),n=o.getUID,t=i("fmMI"),a=i("hD7B"),e=i("4NO4"),u=e.normalizeToArray;function r(W,U,V,Q){this.ecInstance=W,this.api=U,this.unfinished;var V=this._dataProcessorHandlers=V.slice(),Q=this._visualHandlers=Q.slice();this._allHandlers=V.concat(Q),this._stageTaskMap=m()}var s=r.prototype;s.restoreData=function(W,U){W.restoreData(U),this._stageTaskMap.each(function(V){var Q=V.overallTask;Q&&Q.dirty()})},s.getPerformArgs=function(W,U){if(!W.__pipeline)return;var V=this._pipelineMap.get(W.__pipeline.id),Q=V.context,G=!U&&V.progressiveEnabled&&(!Q||Q.progressiveRender)&&W.__idxInPipeline>V.blockIndex,te=G?V.step:null,$=Q&&Q.modDataCount,le=$!=null?Math.ceil($/te):null;return{step:te,modBy:le,modDataCount:$}},s.getPipeline=function(W){return this._pipelineMap.get(W)},s.updateStreamModes=function(W,U){var V=this._pipelineMap.get(W.uid),Q=W.getData(),G=Q.count(),te=V.progressiveEnabled&&U.incrementalPrepareRender&&G>=V.threshold,$=W.get("large")&&G>=W.get("largeThreshold"),le=W.get("progressiveChunkMode")==="mod"?G:null;W.pipelineContext=V.context={progressiveRender:te,modDataCount:le,large:$}},s.restorePipelines=function(W){var U=this,V=U._pipelineMap=m();W.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}),F(U,Q,Q.dataTask)})},s.prepareStageTasks=function(){var W=this._stageTaskMap,U=this.ecInstance.getModel(),V=this.api;p(this._allHandlers,function(Q){var G=W.get(Q.uid)||W.set(Q.uid,[]);Q.reset&&g(this,Q,G,U,V),Q.overallReset&&v(this,Q,G,U,V)},this)},s.prepareView=function(W,U,V,Q){var G=W.renderTask,te=G.context;te.model=U,te.ecModel=V,te.api=Q,G.__block=!W.incrementalPrepareRender,F(this,U,G)},s.performDataProcessorTasks=function(W,U){c(this,this._dataProcessorHandlers,W,U,{block:!0})},s.performVisualTasks=function(W,U,V){c(this,this._visualHandlers,W,U,V)};function c(W,U,V,Q,G){G=G||{};var te;p(U,function(le,re){if(G.visualType&&G.visualType!==le.visualType)return;var Se=W._stageTaskMap.get(le.uid),Re=Se.seriesTaskMap,Pe=Se.overallTask;if(Pe){var Je,Ve=Pe.agentStubMap;Ve.each(function(Ue){$(G,Ue)&&(Ue.dirty(),Je=!0)}),Je&&Pe.dirty(),h(Pe,Q);var ct=W.getPerformArgs(Pe,G.block);Ve.each(function(Ue){Ue.perform(ct)}),te|=Pe.perform(ct)}else Re&&Re.each(function(Ue,ue){$(G,Ue)&&Ue.dirty();var rt=W.getPerformArgs(Ue,G.block);rt.skip=!le.performRawSeries&&V.isSeriesFiltered(Ue.context.model),h(Ue,Q),te|=Ue.perform(rt)})});function $(le,re){return le.setDirty&&(!le.dirtyMap||le.dirtyMap.get(re.__pipeline.id))}W.unfinished|=te}s.performSeriesTasks=function(W){var U;W.eachSeries(function(V){U|=V.dataTask.perform()}),this.unfinished|=U},s.plan=function(){this._pipelineMap.each(function(W){var U=W.tail;do{if(U.__block){W.blockIndex=U.__idxInPipeline;break}U=U.getUpstream()}while(U)})};var h=s.updatePayload=function(W,U){U!=="remain"&&(W.context.payload=U)};function g(W,U,V,Q,G){var te=V.seriesTaskMap||(V.seriesTaskMap=m()),$=U.seriesType,le=U.getTargetSeries;U.createOnAllSeries?Q.eachRawSeries(re):$?Q.eachRawSeriesByType($,re):le&&le(Q,G).each(re);function re(Re){var Pe=Re.uid,Je=te.get(Pe)||te.set(Pe,l({plan:O,reset:E,count:_}));Je.context={model:Re,ecModel:Q,api:G,useClearVisual:U.isVisual&&!U.isLayout,plan:U.plan,reset:U.reset,scheduler:W},F(W,Re,Je)}var Se=W._pipelineMap;te.each(function(Re,Pe){Se.get(Pe)||(Re.dispose(),te.removeKey(Pe))})}function v(W,U,V,Q,G){var te=V.overallTask=V.overallTask||l({reset:b});te.context={ecModel:Q,api:G,overallReset:U.overallReset,scheduler:W};var $=te.agentStubMap=te.agentStubMap||m(),le=U.seriesType,re=U.getTargetSeries,Se=!0,Re=U.modifyOutputEnd;le?Q.eachRawSeriesByType(le,Pe):re?re(Q,G).each(Pe):(Se=!1,p(Q.getSeries(),Pe));function Pe(Ve){var ct=Ve.uid,Ue=$.get(ct);Ue||(Ue=$.set(ct,l({reset:w,onDirty:T})),te.dirty()),Ue.context={model:Ve,overallProgress:Se,modifyOutputEnd:Re},Ue.agent=te,Ue.__block=Se,F(W,Ve,Ue)}var Je=W._pipelineMap;$.each(function(Ve,ct){Je.get(ct)||(Ve.dispose(),te.dirty(),$.removeKey(ct))})}function b(W){W.overallReset(W.ecModel,W.api,W.payload)}function w(W,U){return W.overallProgress&&x}function x(){this.agent.dirty(),this.getDownstream().dirty()}function T(){this.agent&&this.agent.dirty()}function O(W){return W.plan&&W.plan(W.model,W.ecModel,W.api,W.payload)}function E(W){W.useClearVisual&&W.data.clearAllVisual();var U=W.resetDefines=u(W.reset(W.model,W.ecModel,W.api,W.payload));return U.length>1?S(U,function(V,Q){return I(Q)}):C}var C=I(0);function I(W){return function(U,V){var Q=V.data,G=V.resetDefines[W];if(G&&G.dataEach)for(var te=U.start;te<U.end;te++)G.dataEach(Q,te);else G&&G.progress&&G.progress(U,Q)}}function _(W){return W.data.count()}function F(W,U,V){var Q=U.uid,G=W._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(W,U){return A(W)&&(W={overallReset:W,seriesType:R(W)}),W.uid=n("stageHandler"),U&&(W.visualType=U),W};function R(W){X=null;try{W(B,M)}catch(U){}return X}var B={},M={},X;P(B,t),P(M,a),B.eachSeriesByType=B.eachRawSeriesByType=function(W){X=W},B.eachComponent=function(W){W.mainType==="series"&&W.subType&&(X=W.subType)};function P(W,U){for(var V in U.prototype)W[V]=f}var z=r;k.exports=z},akwb:function(k,D,i){var y=i("RSch"),p=i("bYtY"),S=i("D9ME"),A=i("QBsz");function m(l,o,n){S.call(this,l,o,n),this._lastFrame=0,this._lastFramePercent=0}var f=m.prototype;f.createLine=function(l,o,n){return new y(l,o,n)},f.updateAnimationPoints=function(l,o){this._points=o;for(var n=[0],t=0,a=1;a<o.length;a++){var e=o[a-1],u=o[a];t+=A.dist(e,u),n.push(t)}if(t===0)return;for(var a=0;a<n.length;a++)n[a]/=t;this._offsets=n,this._length=t},f.getLineLength=function(l){return this._length},f.updateSymbolPosition=function(l){var o=l.__t,n=this._points,t=this._offsets,a=n.length;if(!t)return;var e=this._lastFrame,u;if(o<this._lastFramePercent){var r=Math.min(e+1,a-1);for(u=r;u>=0&&!(t[u]<=o);u--);u=Math.min(u,a-2)}else{for(var u=e;u<a&&!(t[u]>o);u++);u=Math.min(u-1,a-2)}A.lerp(l.position,n[u],n[u+1],(o-t[u])/(t[u+1]-t[u]));var s=n[u+1][0]-n[u][0],c=n[u+1][1]-n[u][1];l.rotation=-Math.atan2(c,s)-Math.PI/2,this._lastFrame=u,this._lastFramePercent=o,l.ignore=!1},p.inherits(m,S);var d=m;k.exports=d},apAg:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("bsht")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="SearchOutlined";var n=A.forwardRef(o);D.default=n},as94:function(k,D,i){var y=i("7aKB"),p=i("3LNs"),S=i("IwbS"),A=i("/y7N"),m=i("Fofx"),f=i("+rIm"),d=i("Znkb"),l=p.extend({makeElOption:function(a,e,u,r,s){var c=u.axis;c.dim==="angle"&&(this.animationThreshold=Math.PI/18);var h=c.polar,g=h.getOtherAxis(c),v=g.getExtent(),b;b=c["dataTo"+y.capitalFirst(c.dim)](e);var w=r.get("type");if(w&&w!=="none"){var x=A.buildElStyle(r),T=n[w](c,h,b,v,x);T.style=x,a.graphicKey=T.type,a.pointer=T}var O=r.get("label.margin"),E=o(e,u,r,h,O);A.buildLabelElOption(a,u,r,s,E)}});function o(a,e,u,r,s){var c=e.axis,h=c.dataToCoord(a),g=r.getAngleAxis().getExtent()[0];g=g/180*Math.PI;var v=r.getRadiusAxis().getExtent(),b,w,x;if(c.dim==="radius"){var T=m.create();m.rotate(T,T,g),m.translate(T,T,[r.cx,r.cy]),b=S.applyTransform([h,-s],T);var O=e.getModel("axisLabel").get("rotate")||0,E=f.innerTextLayout(g,O*Math.PI/180,-1);w=E.textAlign,x=E.textVerticalAlign}else{var C=v[1];b=r.coordToPoint([C+s,h]);var I=r.cx,_=r.cy;w=Math.abs(b[0]-I)/C<.3?"center":b[0]>I?"left":"right",x=Math.abs(b[1]-_)/C<.3?"middle":b[1]>_?"top":"bottom"}return{position:b,align:w,verticalAlign:x}}var n={line:function(a,e,u,r,s){return a.dim==="angle"?{type:"Line",shape:A.makeLineShape(e.coordToPoint([r[0],u]),e.coordToPoint([r[1],u]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:u}}},shadow:function(a,e,u,r,s){var c=Math.max(1,a.getBandWidth()),h=Math.PI/180;return a.dim==="angle"?{type:"Sector",shape:A.makeSectorShape(e.cx,e.cy,r[0],r[1],(-u-c/2)*h,(-u+c/2)*h)}:{type:"Sector",shape:A.makeSectorShape(e.cx,e.cy,u-c/2,u+c/2,0,Math.PI*2)}}};d.registerAxisPointerClass("PolarAxisPointer",l);var t=l;k.exports=t},b56q:function(k,D,i){},b80T:function(k,D,i){var y=i("UNi/"),p=i("03A+"),S=i("Z0cm"),A=i("DSRE"),m=i("wJg7"),f=i("c6wG"),d=Object.prototype,l=d.hasOwnProperty;function o(n,t){var a=S(n),e=!a&&p(n),u=!a&&!e&&A(n),r=!a&&!e&&!u&&f(n),s=a||e||u||r,c=s?y(n.length,String):[],h=c.length;for(var g in n)(t||l.call(n,g))&&!(s&&(g=="length"||u&&(g=="offset"||g=="parent")||r&&(g=="buffer"||g=="byteLength"||g=="byteOffset")||m(g,h)))&&c.push(g);return c}k.exports=o},b80e:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("gKaM")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="DoubleLeftOutlined";var n=A.forwardRef(o);D.default=n},b9oc:function(k,D,i){var y=i("bYtY"),p=y.each,S="\0_ec_hist_store";function A(o,n){var t=l(o);p(n,function(a,e){for(var u=t.length-1;u>=0;u--){var r=t[u];if(r[e])break}if(u<0){var s=o.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(n)}function m(o){var n=l(o),t=n[n.length-1];n.length>1&&n.pop();var a={};return p(t,function(e,u){for(var r=n.length-1;r>=0;r--){var e=n[r][u];if(e){a[u]=e;break}}}),a}function f(o){o[S]=null}function d(o){return l(o).length}function l(o){var n=o[S];return n||(n=o[S]=[{}]),n}D.push=A,D.pop=m,D.clear=f,D.count=d},bBKM:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("ProS"),A=i("bYtY"),m=i("+rIm"),f=i("IwbS"),d=["axisLine","axisTickLabel","axisName"],l=S.extendComponentView({type:"radar",render:function(o,n,t){var a=this.group;a.removeAll(),this._buildAxes(o),this._buildSplitLineAndArea(o)},_buildAxes:function(o){var n=o.coordinateSystem,t=n.getIndicatorAxes(),a=A.map(t,function(e){var u=new m(e.model,{position:[n.cx,n.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});A.each(a,function(e){A.each(d,e.add,e),this.group.add(e.getGroup())},this)},_buildSplitLineAndArea:function(o){var n=o.coordinateSystem,t=n.getIndicatorAxes();if(!t.length)return;var a=o.get("shape"),e=o.getModel("splitLine"),u=o.getModel("splitArea"),r=e.getModel("lineStyle"),s=u.getModel("areaStyle"),c=e.get("show"),h=u.get("show"),g=r.get("color"),v=s.get("color");g=A.isArray(g)?g:[g],v=A.isArray(v)?v:[v];var b=[],w=[];function x(z,W,U){var V=U%W.length;return z[V]=z[V]||[],V}if(a==="circle")for(var T=t[0].getTicksCoords(),O=n.cx,E=n.cy,C=0;C<T.length;C++){if(c){var I=x(b,g,C);b[I].push(new f.Circle({shape:{cx:O,cy:E,r:T[C].coord}}))}if(h&&C<T.length-1){var I=x(w,v,C);w[I].push(new f.Ring({shape:{cx:O,cy:E,r0:T[C].coord,r:T[C+1].coord}}))}}else for(var _,F=A.map(t,function(z,W){var U=z.getTicksCoords();return _=_==null?U.length-1:Math.min(U.length-1,_),A.map(U,function(V){return n.coordToPoint(V.coord,W)})}),R=[],C=0;C<=_;C++){for(var B=[],M=0;M<t.length;M++)B.push(F[M][C]);if(B[0]&&B.push(B[0].slice()),c){var I=x(b,g,C);b[I].push(new f.Polyline({shape:{points:B}}))}if(h&&R){var I=x(w,v,C-1);w[I].push(new f.Polygon({shape:{points:B.concat(R)}}))}R=B.slice().reverse()}var X=r.getLineStyle(),P=s.getAreaStyle();A.each(w,function(z,W){this.group.add(f.mergePath(z,{style:A.defaults({stroke:"none",fill:v[W%v.length]},P),silent:!0}))},this),A.each(b,function(z,W){this.group.add(f.mergePath(z,{style:A.defaults({fill:"none",stroke:g[W%g.length]},X),silent:!0}))},this)}});k.exports=l},bBL8:function(k,D,i){var y=i("ProS");i("LPzL"),i("rfSb"),i("JVwQ");var p=i("UnoB"),S=i("cbJ4"),A=i("0/Rx");y.registerLayout(p),y.registerVisual(S),y.registerProcessor(A("themeRiver"))},bE4E:function(k,D,i){},bE4q:function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("lSNA"),A=i.n(S),m=i("RIqP"),f=i.n(m),d=i("q1tI"),l=i("TSYQ"),o=i.n(l),n=i("Zm9Q"),t=i("HQEm"),a=i.n(t),e=i("XBQK"),u=i("H84U"),r=function(R,B){var M={};for(var X in R)Object.prototype.hasOwnProperty.call(R,X)&&B.indexOf(X)<0&&(M[X]=R[X]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,X=Object.getOwnPropertySymbols(R);P<X.length;P++)B.indexOf(X[P])<0&&Object.prototype.propertyIsEnumerable.call(R,X[P])&&(M[X[P]]=R[X[P]]);return M},s=function(B){var M=B.prefixCls,X=B.separator,P=X===void 0?"/":X,z=B.children,W=B.overlay,U=B.dropdownProps,V=r(B,["prefixCls","separator","children","overlay","dropdownProps"]),Q=d.useContext(u.b),G=Q.getPrefixCls,te=G("breadcrumb",M),$=function(Se){return W?d.createElement(e.a,p()({overlay:W,placement:"bottomCenter"},U),d.createElement("span",{className:"".concat(te,"-overlay-link")},Se,d.createElement(a.a,null))):Se},le;return"href"in V?le=d.createElement("a",p()({className:"".concat(te,"-link")},V),z):le=d.createElement("span",p()({className:"".concat(te,"-link")},V),z),le=$(le),z?d.createElement("span",null,le,P&&P!==""&&d.createElement("span",{className:"".concat(te,"-separator")},P)):null};s.__ANT_BREADCRUMB_ITEM=!0;var c=s,h=function(B){var M=B.children,X=d.useContext(u.b),P=X.getPrefixCls,z=P("breadcrumb");return d.createElement("span",{className:"".concat(z,"-separator")},M||"/")};h.__ANT_BREADCRUMB_SEPARATOR=!0;var g=h,v=i("BvKs"),b=i("uaoM"),w=i("0n0R"),x=function(R,B){var M={};for(var X in R)Object.prototype.hasOwnProperty.call(R,X)&&B.indexOf(X)<0&&(M[X]=R[X]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var P=0,X=Object.getOwnPropertySymbols(R);P<X.length;P++)B.indexOf(X[P])<0&&Object.prototype.propertyIsEnumerable.call(R,X[P])&&(M[X[P]]=R[X[P]]);return M};function T(R,B){if(!R.breadcrumbName)return null;var M=Object.keys(B).join("|"),X=R.breadcrumbName.replace(new RegExp(":(".concat(M,")"),"g"),function(P,z){return B[z]||P});return X}function O(R,B,M,X){var P=M.indexOf(R)===M.length-1,z=T(R,B);return P?d.createElement("span",null,z):d.createElement("a",{href:"#/".concat(X.join("/"))},z)}var E=function(B,M){return B=(B||"").replace(/^\//,""),Object.keys(M).forEach(function(X){B=B.replace(":".concat(X),M[X])}),B},C=function(B){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",X=arguments.length>2?arguments[2]:void 0,P=f()(B),z=E(M,X);return z&&P.push(z),P},I=function(B){var M=B.prefixCls,X=B.separator,P=X===void 0?"/":X,z=B.style,W=B.className,U=B.routes,V=B.children,Q=B.itemRender,G=Q===void 0?O:Q,te=B.params,$=te===void 0?{}:te,le=x(B,["prefixCls","separator","style","className","routes","children","itemRender","params"]),re=d.useContext(u.b),Se=re.getPrefixCls,Re=re.direction,Pe,Je=Se("breadcrumb",M);if(U&&U.length>0){var Ve=[];Pe=U.map(function(Ue){var ue=E(Ue.path,$);ue&&Ve.push(ue);var rt;return Ue.children&&Ue.children.length&&(rt=d.createElement(v.a,null,Ue.children.map(function(ge){return d.createElement(v.a.Item,{key:ge.path||ge.breadcrumbName},G(ge,$,U,C(Ve,ge.path,$)))}))),d.createElement(c,{overlay:rt,separator:P,key:ue||Ue.breadcrumbName},G(Ue,$,U,Ve))})}else V&&(Pe=Object(n.a)(V).map(function(Ue,ue){return Ue&&(Object(b.a)(Ue.type&&(Ue.type.__ANT_BREADCRUMB_ITEM===!0||Ue.type.__ANT_BREADCRUMB_SEPARATOR===!0),"Breadcrumb","Only accepts Breadcrumb.Item and Breadcrumb.Separator as it's children"),Object(w.a)(Ue,{separator:P,key:ue}))}));var ct=o()(W,Je,A()({},"".concat(Je,"-rtl"),Re==="rtl"));return d.createElement("div",p()({className:ct,style:z},le),Pe)};I.Item=c,I.Separator=g;var _=I,F=D.a=_},bKJz:function(k,D,i){},bLfw:function(k,D,i){var y=i("bYtY"),p=i("Qxkt"),S=i("iRjW"),A=i("Yl7c"),m=A.enableClassManagement,f=A.parseClassType,d=i("4NO4"),l=d.makeInner,o=i("+TT/"),n=i("3hzK"),t=l(),a=p.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(r,s,c,h){p.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?o.getLayoutParams(r):{},g=s.getTheme();y.merge(r,g.get(this.mainType)),y.merge(r,this.getDefaultOption()),c&&o.mergeLayoutParam(r,h,c)},mergeOption:function(r,s){y.merge(this.option,r,!0);var c=this.layoutMode;c&&o.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 g={},v=s.length-1;v>=0;v--)g=y.merge(g,s[v],!0);r.defaultOption=g}return r.defaultOption},getReferringComponents:function(r){return this.ecModel.queryComponents({mainType:r,index:this.get(r+"Index",!0),id:this.get(r+"Id",!0)})}});m(a,{registerWhenExtend:!0}),S.enableSubTypeDefaulter(a),S.enableTopologicalTravel(a,e);function e(r){var s=[];return y.each(a.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(a,n);var u=a;k.exports=u},bMXI:function(k,D,i){var y=i("bYtY"),p=i("QBsz"),S=i("Fofx"),A=i("mFDi"),m=i("DN4a"),f=p.applyTransform;function d(){m.call(this)}y.mixin(d,m);function l(t){this.name=t,this.zoomLimit,m.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,a,e,u){return this._rect=new A(t,a,e,u),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(t,a,e,u){this.transformTo(t,a,e,u),this._viewRect=new A(t,a,e,u)},transformTo:function(t,a,e,u){var r=this.getBoundingRect(),s=this._rawTransformable;s.transform=r.calculateTransform(new A(t,a,e,u)),s.decomposeTransform(),this._updateTransform()},setCenter:function(t){if(!t)return;this._center=t,this._updateCenterAndZoom()},setZoom:function(t){t=t||1;var a=this.zoomLimit;a&&(a.max!=null&&(t=Math.min(a.max,t)),a.min!=null&&(t=Math.max(a.min,t))),this._zoom=t,this._updateCenterAndZoom()},getDefaultCenter:function(){var t=this.getBoundingRect(),a=t.x+t.width/2,e=t.y+t.height/2;return[a,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(),a=this._roamTransformable,e=this.getDefaultCenter(),u=this.getCenter(),r=this.getZoom();u=p.applyTransform([],u,t),e=p.applyTransform([],e,t),a.origin=u,a.position=[e[0]-u[0],e[1]-u[1]],a.scale=[r,r],this._updateTransform()},_updateTransform:function(){var t=this._roamTransformable,a=this._rawTransformable;a.parent=t,t.updateTransform(),a.updateTransform(),S.copy(this.transform||(this.transform=[]),a.transform||S.create()),this._rawTransform=a.getLocalTransform(),this.invTransform=this.invTransform||[],S.invert(this.invTransform,this.transform),this.decomposeTransform()},getTransformInfo:function(){var t=this._roamTransformable.transform,a=this._rawTransformable;return{roamTransform:t?y.slice(t):S.create(),rawScale:y.slice(a.scale),rawPosition:y.slice(a.position)}},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var t=this.getBoundingRect().clone();return t.applyTransform(this.transform),t},dataToPoint:function(t,a,e){var u=a?this._rawTransform:this.transform;return e=e||[],u?f(e,t,u):p.copy(e,t)},pointToData:function(t){var a=this.invTransform;return a?f([],t,a):[t[0],t[1]]},convertToPixel:y.curry(o,"dataToPoint"),convertFromPixel:y.curry(o,"pointToData"),containPoint:function(t){return this.getViewRectAfterRoam().contain(t[0],t[1])}},y.mixin(l,m);function o(t,a,e,u){var r=e.seriesModel,s=r?r.coordinateSystem:null;return s===this?s[t](u):null}var n=l;k.exports=n},bNin:function(k,D,i){var y=i("bYtY"),p=i("IwbS"),S=i("FBjb"),A=i("Itpr"),m=A.radialCoordinate,f=i("ProS"),d=i("4mN7"),l=i("bMXI"),o=i("Ae+d"),n=i("SgGq"),t=i("xSat"),a=t.onIrrelevantElement,e=i("Tghj"),u=e.__DEV__,r=i("OELB"),s=r.parsePercent,c=p.extendShape({shape:{parentPoint:[],childPoints:[],orient:"",forkPosition:""},style:{stroke:"#000",fill:null},buildPath:function(O,E){var C=E.childPoints,I=C.length,_=E.parentPoint,F=C[0],R=C[I-1];if(I===1){O.moveTo(_[0],_[1]),O.lineTo(F[0],F[1]);return}var B=E.orient,M=B==="TB"||B==="BT"?0:1,X=1-M,P=s(E.forkPosition,1),z=[];z[M]=_[M],z[X]=_[X]+(R[X]-_[X])*P,O.moveTo(_[0],_[1]),O.lineTo(z[0],z[1]),O.moveTo(F[0],F[1]),z[M]=F[M],O.lineTo(z[0],z[1]),z[M]=R[M],O.lineTo(z[0],z[1]),O.lineTo(R[0],R[1]);for(var W=1;W<I-1;W++){var U=C[W];O.moveTo(U[0],U[1]),z[M]=U[M],O.lineTo(z[0],z[1])}}}),h=f.extendChartView({type:"tree",init:function(O,E){this._oldTree,this._mainGroup=new p.Group,this._controller=new n(E.getZr()),this._controllerHost={target:this.group},this.group.add(this._mainGroup)},render:function(O,E,C,I){var _=O.getData(),F=O.layoutInfo,R=this._mainGroup,B=O.get("layout");B==="radial"?R.attr("position",[F.x+F.width/2,F.y+F.height/2]):R.attr("position",[F.x,F.y]),this._updateViewCoordSys(O,F,B),this._updateController(O,E,C);var M=this._data,X={expandAndCollapse:O.get("expandAndCollapse"),layout:B,edgeShape:O.get("edgeShape"),edgeForkPosition:O.get("edgeForkPosition"),orient:O.getOrient(),curvature:O.get("lineStyle.curveness"),symbolRotate:O.get("symbolRotate"),symbolOffset:O.get("symbolOffset"),hoverAnimation:O.get("hoverAnimation"),useNameLabel:!0,fadeIn:!0};_.diff(M).add(function(P){g(_,P)&&b(_,P,null,R,O,X)}).update(function(P,z){var W=M.getItemGraphicEl(z);if(!g(_,P)){W&&x(M,z,W,R,O,X);return}b(_,P,W,R,O,X)}).remove(function(P){var z=M.getItemGraphicEl(P);z&&x(M,P,z,R,O,X)}).execute(),this._nodeScaleRatio=O.get("nodeScaleRatio"),this._updateNodeAndLinkScale(O),X.expandAndCollapse===!0&&_.eachItemGraphicEl(function(P,z){P.off("click").on("click",function(){C.dispatchAction({type:"treeExpandAndCollapse",seriesId:O.id,dataIndex:z})})}),this._data=_},_updateViewCoordSys:function(O){var E=O.getData(),C=[];E.each(function(M){var X=E.getItemLayout(M);X&&!isNaN(X.x)&&!isNaN(X.y)&&C.push([+X.x,+X.y])});var I=[],_=[];d.fromPoints(C,I,_);var F=this._min,R=this._max;_[0]-I[0]===0&&(I[0]=F?F[0]:I[0]-1,_[0]=R?R[0]:_[0]+1),_[1]-I[1]===0&&(I[1]=F?F[1]:I[1]-1,_[1]=R?R[1]:_[1]+1);var B=O.coordinateSystem=new l;B.zoomLimit=O.get("scaleLimit"),B.setBoundingRect(I[0],I[1],_[0]-I[0],_[1]-I[1]),B.setCenter(O.get("center")),B.setZoom(O.get("zoom")),this.group.attr({position:B.position,scale:B.scale}),this._viewCoordSys=B,this._min=I,this._max=_},_updateController:function(O,E,C){var I=this._controller,_=this._controllerHost,F=this.group;I.setPointerChecker(function(R,B,M){var X=F.getBoundingRect();return X.applyTransform(F.transform),X.contain(B,M)&&!a(R,C,O)}),I.enable(O.get("roam")),_.zoomLimit=O.get("scaleLimit"),_.zoom=O.coordinateSystem.getZoom(),I.off("pan").off("zoom").on("pan",function(R){o.updateViewOnPan(_,R.dx,R.dy),C.dispatchAction({seriesId:O.id,type:"treeRoam",dx:R.dx,dy:R.dy})},this).on("zoom",function(R){o.updateViewOnZoom(_,R.scale,R.originX,R.originY),C.dispatchAction({seriesId:O.id,type:"treeRoam",zoom:R.scale,originX:R.originX,originY:R.originY}),this._updateNodeAndLinkScale(O)},this)},_updateNodeAndLinkScale:function(O){var E=O.getData(),C=this._getNodeGlobalScale(O),I=[C,C];E.eachItemGraphicEl(function(_,F){_.attr("scale",I)})},_getNodeGlobalScale:function(O){var E=O.coordinateSystem;if(E.type!=="view")return 1;var C=this._nodeScaleRatio,I=E.scale,_=I&&I[0]||1,F=E.getZoom(),R=(F-1)*C+1;return R/_},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={}},remove:function(){this._mainGroup.removeAll(),this._data=null}});function g(O,E){var C=O.getItemLayout(E);return C&&!isNaN(C.x)&&!isNaN(C.y)&&O.getItemVisual(E,"symbol")!=="none"}function v(O,E,C){return C.itemModel=E,C.itemStyle=E.getModel("itemStyle").getItemStyle(),C.hoverItemStyle=E.getModel("emphasis.itemStyle").getItemStyle(),C.lineStyle=E.getModel("lineStyle").getLineStyle(),C.labelModel=E.getModel("label"),C.hoverLabelModel=E.getModel("emphasis.label"),O.isExpand===!1&&O.children.length!==0?C.symbolInnerColor=C.itemStyle.fill:C.symbolInnerColor="#fff",C}function b(O,E,C,I,_,F){var R=!C,B=O.tree.getNodeByDataIndex(E),M=B.getModel(),F=v(B,M,F),X=O.tree.root,P=B.parentNode===X?B:B.parentNode||B,z=O.getItemGraphicEl(P.dataIndex),W=P.getLayout(),U=z?{x:z.position[0],y:z.position[1],rawX:z.__radialOldRawX,rawY:z.__radialOldRawY}:W,V=B.getLayout();R?(C=new S(O,E,F),C.attr("position",[U.x,U.y])):C.updateData(O,E,F),C.__radialOldRawX=C.__radialRawX,C.__radialOldRawY=C.__radialRawY,C.__radialRawX=V.rawX,C.__radialRawY=V.rawY,I.add(C),O.setItemGraphicEl(E,C),p.updateProps(C,{position:[V.x,V.y]},_);var Q=C.getSymbolPath();if(F.layout==="radial"){var G=X.children[0],te=G.getLayout(),$=G.children.length,le,re;if(V.x===te.x&&B.isExpand===!0){var Se={};Se.x=(G.children[0].getLayout().x+G.children[$-1].getLayout().x)/2,Se.y=(G.children[0].getLayout().y+G.children[$-1].getLayout().y)/2,le=Math.atan2(Se.y-te.y,Se.x-te.x),le<0&&(le=Math.PI*2+le),re=Se.x<te.x,re&&(le=le-Math.PI)}else le=Math.atan2(V.y-te.y,V.x-te.x),le<0&&(le=Math.PI*2+le),B.children.length===0||B.children.length!==0&&B.isExpand===!1?(re=V.x<te.x,re&&(le=le-Math.PI)):(re=V.x>te.x,re||(le=le-Math.PI));var Re=re?"left":"right",Pe=F.labelModel.get("rotate"),Je=Pe*(Math.PI/180);Q.setStyle({textPosition:F.labelModel.get("position")||Re,textRotation:Pe==null?-le:Je,textOrigin:"center",verticalAlign:"middle"})}w(_,B,X,C,U,W,V,I,F)}function w(O,E,C,I,_,F,R,B,M){var X=M.edgeShape,P=I.__edge;if(X==="curve")E.parentNode&&E.parentNode!==C&&(P||(P=I.__edge=new p.BezierCurve({shape:T(M,_,_),style:y.defaults({opacity:0,strokeNoScale:!0},M.lineStyle)})),p.updateProps(P,{shape:T(M,F,R),style:{opacity:1}},O));else if(X==="polyline"&&(M.layout==="orthogonal"&&(E!==C&&E.children&&E.children.length!==0&&E.isExpand===!0))){for(var z=E.children,W=[],U=0;U<z.length;U++){var V=z[U].getLayout();W.push([V.x,V.y])}P||(P=I.__edge=new c({shape:{parentPoint:[R.x,R.y],childPoints:[[R.x,R.y]],orient:M.orient,forkPosition:M.edgeForkPosition},style:y.defaults({opacity:0,strokeNoScale:!0},M.lineStyle)})),p.updateProps(P,{shape:{parentPoint:[R.x,R.y],childPoints:W},style:{opacity:1}},O)}B.add(P)}function x(O,E,C,I,_,F){for(var R=O.tree.getNodeByDataIndex(E),B=O.tree.root,M=R.getModel(),F=v(R,M,F),X=R.parentNode===B?R:R.parentNode||R,P=F.edgeShape,z;z=X.getLayout(),z==null;)X=X.parentNode===B?X:X.parentNode||X;p.updateProps(C,{position:[z.x+1,z.y+1]},_,function(){I.remove(C),O.setItemGraphicEl(E,null)}),C.fadeOut(null,{keepLabel:!0});var W=O.getItemGraphicEl(X.dataIndex),U=W.__edge,V=C.__edge||(X.isExpand===!1||X.children.length===1?U:void 0),P=F.edgeShape;V&&(P==="curve"?p.updateProps(V,{shape:T(F,z,z),style:{opacity:0}},_,function(){I.remove(V)}):P==="polyline"&&F.layout==="orthogonal"&&p.updateProps(V,{shape:{parentPoint:[z.x,z.y],childPoints:[[z.x,z.y]]},style:{opacity:0}},_,function(){I.remove(V)}))}function T(O,E,C){var I,_,F,R,B=O.orient,M,X,P,z;if(O.layout==="radial"){M=E.rawX,P=E.rawY,X=C.rawX,z=C.rawY;var W=m(M,P),U=m(M,P+(z-P)*O.curvature),V=m(X,z+(P-z)*O.curvature),Q=m(X,z);return{x1:W.x,y1:W.y,x2:Q.x,y2:Q.y,cpx1:U.x,cpy1:U.y,cpx2:V.x,cpy2:V.y}}else M=E.x,P=E.y,X=C.x,z=C.y,(B==="LR"||B==="RL")&&(I=M+(X-M)*O.curvature,_=P,F=X+(M-X)*O.curvature,R=z),(B==="TB"||B==="BT")&&(I=M,_=P+(z-P)*O.curvature,F=X,R=z+(P-z)*O.curvature);return{x1:M,y1:P,x2:X,y2:z,cpx1:I,cpy1:_,cpx2:F,cpy2:R}}k.exports=h},bQjk:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return function(p){var S=y,A=S.lib,m=A.CipherParams,f=S.enc,d=f.Hex,l=S.format,o=l.Hex={stringify:function(t){return t.ciphertext.toString(d)},parse:function(t){var a=d.parse(t);return m.create({ciphertext:a})}}}(),y.format.Hex})},bT9E:function(k,D,i){"use strict";i.d(D,"a",function(){return p});var y=i("VTBJ");function p(S,A){var m=Object(y.a)({},S);return Array.isArray(A)&&A.forEach(function(f){delete m[f]}),m}},bX4T:function(k,D,i){"use strict";i.d(D,"a",function(){return l});var y=i("VTBJ"),p=`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`,A="".concat(p," ").concat(S).split(/[\s\n]+/),m="aria-",f="data-";function d(o,n){return o.indexOf(n)===0}function l(o){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t;n===!1?t={aria:!0,data:!0,attr:!0}:n===!0?t={aria:!0}:t=Object(y.a)({},n);var a={};return Object.keys(o).forEach(function(e){(t.aria&&(e==="role"||d(e,m))||t.data&&d(e,f)||t.attr&&A.includes(e))&&(a[e]=o[e])}),a}},bYtY:function(k,D){var i={"[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},p=Object.prototype.toString,S=Array.prototype,A=S.forEach,m=S.filter,f=S.slice,d=S.map,l=S.reduce,o={};function n(Ue,ue){Ue==="createCanvas"&&(c=null),o[Ue]=ue}function t(Ue){if(Ue==null||typeof Ue!="object")return Ue;var ue=Ue,rt=p.call(Ue);if(rt==="[object Array]"){if(!Re(Ue)){ue=[];for(var ge=0,Z=Ue.length;ge<Z;ge++)ue[ge]=t(Ue[ge])}}else if(y[rt]){if(!Re(Ue)){var Y=Ue.constructor;if(Ue.constructor.from)ue=Y.from(Ue);else{ue=new Y(Ue.length);for(var ge=0,Z=Ue.length;ge<Z;ge++)ue[ge]=t(Ue[ge])}}}else if(!i[rt]&&!Re(Ue)&&!z(Ue)){ue={};for(var ee in Ue)Ue.hasOwnProperty(ee)&&(ue[ee]=t(Ue[ee]))}return ue}function a(Ue,ue,rt){if(!M(ue)||!M(Ue))return rt?t(ue):Ue;for(var ge in ue)if(ue.hasOwnProperty(ge)){var Z=Ue[ge],Y=ue[ge];M(Y)&&M(Z)&&!F(Y)&&!F(Z)&&!z(Y)&&!z(Z)&&!X(Y)&&!X(Z)&&!Re(Y)&&!Re(Z)?a(Z,Y,rt):(rt||!(ge in Ue))&&(Ue[ge]=t(ue[ge],!0))}return Ue}function e(Ue,ue){for(var rt=Ue[0],ge=1,Z=Ue.length;ge<Z;ge++)rt=a(rt,Ue[ge],ue);return rt}function u(Ue,ue){for(var rt in ue)ue.hasOwnProperty(rt)&&(Ue[rt]=ue[rt]);return Ue}function r(Ue,ue,rt){for(var ge in ue)ue.hasOwnProperty(ge)&&(rt?ue[ge]!=null:Ue[ge]==null)&&(Ue[ge]=ue[ge]);return Ue}var s=function(){return o.createCanvas()};o.createCanvas=function(){return document.createElement("canvas")};var c;function h(){return c||(c=s().getContext("2d")),c}function g(Ue,ue){if(Ue){if(Ue.indexOf)return Ue.indexOf(ue);for(var rt=0,ge=Ue.length;rt<ge;rt++)if(Ue[rt]===ue)return rt}return-1}function v(Ue,ue){var rt=Ue.prototype;function ge(){}ge.prototype=ue.prototype,Ue.prototype=new ge;for(var Z in rt)rt.hasOwnProperty(Z)&&(Ue.prototype[Z]=rt[Z]);Ue.prototype.constructor=Ue,Ue.superClass=ue}function b(Ue,ue,rt){Ue="prototype"in Ue?Ue.prototype:Ue,ue="prototype"in ue?ue.prototype:ue,r(Ue,ue,rt)}function w(Ue){return Ue?typeof Ue=="string"?!1:typeof Ue.length=="number":void 0}function x(Ue,ue,rt){if(!(Ue&&ue))return;if(Ue.forEach&&Ue.forEach===A)Ue.forEach(ue,rt);else if(Ue.length===+Ue.length)for(var ge=0,Z=Ue.length;ge<Z;ge++)ue.call(rt,Ue[ge],ge,Ue);else for(var Y in Ue)Ue.hasOwnProperty(Y)&&ue.call(rt,Ue[Y],Y,Ue)}function T(Ue,ue,rt){if(!(Ue&&ue))return;if(Ue.map&&Ue.map===d)return Ue.map(ue,rt);for(var ge=[],Z=0,Y=Ue.length;Z<Y;Z++)ge.push(ue.call(rt,Ue[Z],Z,Ue));return ge}function O(Ue,ue,rt,ge){if(!(Ue&&ue))return;if(Ue.reduce&&Ue.reduce===l)return Ue.reduce(ue,rt,ge);for(var Z=0,Y=Ue.length;Z<Y;Z++)rt=ue.call(ge,rt,Ue[Z],Z,Ue);return rt}function E(Ue,ue,rt){if(!(Ue&&ue))return;if(Ue.filter&&Ue.filter===m)return Ue.filter(ue,rt);for(var ge=[],Z=0,Y=Ue.length;Z<Y;Z++)ue.call(rt,Ue[Z],Z,Ue)&&ge.push(Ue[Z]);return ge}function C(Ue,ue,rt){if(!(Ue&&ue))return;for(var ge=0,Z=Ue.length;ge<Z;ge++)if(ue.call(rt,Ue[ge],ge,Ue))return Ue[ge]}function I(Ue,ue){var rt=f.call(arguments,2);return function(){return Ue.apply(ue,rt.concat(f.call(arguments)))}}function _(Ue){var ue=f.call(arguments,1);return function(){return Ue.apply(this,ue.concat(f.call(arguments)))}}function F(Ue){return p.call(Ue)==="[object Array]"}function R(Ue){return typeof Ue=="function"}function B(Ue){return p.call(Ue)==="[object String]"}function M(Ue){var ue=typeof Ue;return ue==="function"||!!Ue&&ue==="object"}function X(Ue){return!!i[p.call(Ue)]}function P(Ue){return!!y[p.call(Ue)]}function z(Ue){return typeof Ue=="object"&&typeof Ue.nodeType=="number"&&typeof Ue.ownerDocument=="object"}function W(Ue){return Ue!==Ue}function U(Ue){for(var ue=0,rt=arguments.length;ue<rt;ue++)if(arguments[ue]!=null)return arguments[ue]}function V(Ue,ue){return Ue!=null?Ue:ue}function Q(Ue,ue,rt){return Ue!=null?Ue:ue!=null?ue:rt}function G(){return Function.call.apply(f,arguments)}function te(Ue){if(typeof Ue=="number")return[Ue,Ue,Ue,Ue];var ue=Ue.length;return ue===2?[Ue[0],Ue[1],Ue[0],Ue[1]]:ue===3?[Ue[0],Ue[1],Ue[2],Ue[1]]:Ue}function $(Ue,ue){if(!Ue)throw new Error(ue)}function le(Ue){return Ue==null?null:typeof Ue.trim=="function"?Ue.trim():Ue.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var re="__ec_primitive__";function Se(Ue){Ue[re]=!0}function Re(Ue){return Ue[re]}function Pe(Ue){var ue=F(Ue);this.data={};var rt=this;Ue instanceof Pe?Ue.each(ge):Ue&&x(Ue,ge);function ge(Z,Y){ue?rt.set(Z,Y):rt.set(Y,Z)}}Pe.prototype={constructor:Pe,get:function(ue){return this.data.hasOwnProperty(ue)?this.data[ue]:null},set:function(ue,rt){return this.data[ue]=rt},each:function(ue,rt){rt!==void 0&&(ue=I(ue,rt));for(var ge in this.data)this.data.hasOwnProperty(ge)&&ue(this.data[ge],ge)},removeKey:function(ue){delete this.data[ue]}};function Je(Ue){return new Pe(Ue)}function Ve(Ue,ue){for(var rt=new Ue.constructor(Ue.length+ue.length),ge=0;ge<Ue.length;ge++)rt[ge]=Ue[ge];var Z=Ue.length;for(ge=0;ge<ue.length;ge++)rt[ge+Z]=ue[ge];return rt}function ct(){}D.$override=n,D.clone=t,D.merge=a,D.mergeAll=e,D.extend=u,D.defaults=r,D.createCanvas=s,D.getContext=h,D.indexOf=g,D.inherits=v,D.mixin=b,D.isArrayLike=w,D.each=x,D.map=T,D.reduce=O,D.filter=E,D.find=C,D.bind=I,D.curry=_,D.isArray=F,D.isFunction=R,D.isString=B,D.isObject=M,D.isBuiltInObject=X,D.isTypedArray=P,D.isDom=z,D.eqNaN=W,D.retrieve=U,D.retrieve2=V,D.retrieve3=Q,D.slice=G,D.normalizeCssArray=te,D.assert=$,D.trim=le,D.setAsPrimitive=Se,D.isPrimitive=Re,D.createHashMap=Je,D.concatArray=Ve,D.noop=ct},bZqE:function(k,D){function i(p,S,A){for(var m=[p],f=[],d;d=m.pop();)if(f.push(d),d.isExpand){var l=d.children;if(l.length)for(var o=0;o<l.length;o++)m.push(l[o])}for(;d=f.pop();)S(d,A)}function y(p,S){for(var A=[p],m;m=A.pop();)if(S(m),m.isExpand){var f=m.children;if(f.length)for(var d=f.length-1;d>=0;d--)A.push(f[d])}}D.eachAfter=i,D.eachBefore=y},bbsP:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("CWI+"),A=i.n(S)},bogI:function(k,D,i){"use strict";i.d(D,"a",function(){return y});var y=function(S){if(!S)return null;var A=typeof S=="function";return A?S():S}},bsht:function(k,D,i){"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(k,D,i){"use strict";var y=i("lSNA"),p=i.n(y),S=i("pVnL"),A=i.n(S),m=i("q1tI"),f=i("TSYQ"),d=i.n(f),l=i("BGR+"),o=i("H84U"),n=function(T,O){var E={};for(var C in T)Object.prototype.hasOwnProperty.call(T,C)&&O.indexOf(C)<0&&(E[C]=T[C]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,C=Object.getOwnPropertySymbols(T);I<C.length;I++)O.indexOf(C[I])<0&&Object.prototype.propertyIsEnumerable.call(T,C[I])&&(E[C[I]]=T[C[I]]);return E},t=function(O){return m.createElement(o.a,null,function(E){var C=E.getPrefixCls,I=O.prefixCls,_=O.className,F=O.hoverable,R=F===void 0?!0:F,B=n(O,["prefixCls","className","hoverable"]),M=C("card",I),X=d()("".concat(M,"-grid"),_,p()({},"".concat(M,"-grid-hoverable"),R));return m.createElement("div",A()({},B,{className:X}))})},a=t,e=function(T,O){var E={};for(var C in T)Object.prototype.hasOwnProperty.call(T,C)&&O.indexOf(C)<0&&(E[C]=T[C]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,C=Object.getOwnPropertySymbols(T);I<C.length;I++)O.indexOf(C[I])<0&&Object.prototype.propertyIsEnumerable.call(T,C[I])&&(E[C[I]]=T[C[I]]);return E},u=function(O){return m.createElement(o.a,null,function(E){var C=E.getPrefixCls,I=O.prefixCls,_=O.className,F=O.avatar,R=O.title,B=O.description,M=e(O,["prefixCls","className","avatar","title","description"]),X=C("card",I),P=d()("".concat(X,"-meta"),_),z=F?m.createElement("div",{className:"".concat(X,"-meta-avatar")},F):null,W=R?m.createElement("div",{className:"".concat(X,"-meta-title")},R):null,U=B?m.createElement("div",{className:"".concat(X,"-meta-description")},B):null,V=W||U?m.createElement("div",{className:"".concat(X,"-meta-detail")},W,U):null;return m.createElement("div",A()({},M,{className:P}),z,V)})},r=u,s=i("ZTPi"),c=i("BMrR"),h=i("kPKH"),g=i("3Nzz"),v=function(T,O){var E={};for(var C in T)Object.prototype.hasOwnProperty.call(T,C)&&O.indexOf(C)<0&&(E[C]=T[C]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var I=0,C=Object.getOwnPropertySymbols(T);I<C.length;I++)O.indexOf(C[I])<0&&Object.prototype.propertyIsEnumerable.call(T,C[I])&&(E[C[I]]=T[C[I]]);return E};function b(T){var O=T.map(function(E,C){return m.createElement("li",{style:{width:"".concat(100/T.length,"%")},key:"action-".concat(C)},m.createElement("span",null,E))});return O}var w=function(O){var E,C,I=m.useContext(o.b),_=I.getPrefixCls,F=I.direction,R=m.useContext(g.b),B=function(Ht){O.onTabChange&&O.onTabChange(Ht)},M=function(){var Ht;return m.Children.forEach(O.children,function(Dt){Dt&&Dt.type&&Dt.type===a&&(Ht=!0)}),Ht},X=O.prefixCls,P=O.className,z=O.extra,W=O.headStyle,U=W===void 0?{}:W,V=O.bodyStyle,Q=V===void 0?{}:V,G=O.title,te=O.loading,$=O.bordered,le=$===void 0?!0:$,re=O.size,Se=O.type,Re=O.cover,Pe=O.actions,Je=O.tabList,Ve=O.children,ct=O.activeTabKey,Ue=O.defaultActiveTabKey,ue=O.tabBarExtraContent,rt=O.hoverable,ge=O.tabProps,Z=ge===void 0?{}:ge,Y=v(O,["prefixCls","className","extra","headStyle","bodyStyle","title","loading","bordered","size","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey","tabBarExtraContent","hoverable","tabProps"]),ee=_("card",X),fe=Q.padding===0||Q.padding==="0px"?{padding:24}:void 0,be=m.createElement("div",{className:"".concat(ee,"-loading-block")}),Ce=m.createElement("div",{className:"".concat(ee,"-loading-content"),style:fe},m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:22},be)),m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:8},be),m.createElement(h.a,{span:15},be)),m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:6},be),m.createElement(h.a,{span:18},be)),m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:13},be),m.createElement(h.a,{span:9},be)),m.createElement(c.a,{gutter:8},m.createElement(h.a,{span:4},be),m.createElement(h.a,{span:3},be),m.createElement(h.a,{span:16},be))),Te=ct!==void 0,he=A()(A()({},Z),(E={},p()(E,Te?"activeKey":"defaultActiveKey",Te?ct:Ue),p()(E,"tabBarExtraContent",ue),E)),ye,Ie=Je&&Je.length?m.createElement(s.a,A()({size:"large"},he,{className:"".concat(ee,"-head-tabs"),onChange:B}),Je.map(function(wt){return m.createElement(s.a.TabPane,{tab:wt.tab,disabled:wt.disabled,key:wt.key})})):null;(G||z||Ie)&&(ye=m.createElement("div",{className:"".concat(ee,"-head"),style:U},m.createElement("div",{className:"".concat(ee,"-head-wrapper")},G&&m.createElement("div",{className:"".concat(ee,"-head-title")},G),z&&m.createElement("div",{className:"".concat(ee,"-extra")},z)),Ie));var tt=Re?m.createElement("div",{className:"".concat(ee,"-cover")},Re):null,pt=m.createElement("div",{className:"".concat(ee,"-body"),style:Q},te?Ce:Ve),st=Pe&&Pe.length?m.createElement("ul",{className:"".concat(ee,"-actions")},b(Pe)):null,Fe=Object(l.default)(Y,["onTabChange"]),ft=re||R,et=d()(ee,P,(C={},p()(C,"".concat(ee,"-loading"),te),p()(C,"".concat(ee,"-bordered"),le),p()(C,"".concat(ee,"-hoverable"),rt),p()(C,"".concat(ee,"-contain-grid"),M()),p()(C,"".concat(ee,"-contain-tabs"),Je&&Je.length),p()(C,"".concat(ee,"-").concat(ft),ft),p()(C,"".concat(ee,"-type-").concat(Se),!!Se),p()(C,"".concat(ee,"-rtl"),F==="rtl"),C));return m.createElement("div",A()({},Fe,{className:et}),ye,tt,pt,st)};w.Grid=a,w.Meta=r;var x=D.a=w},c2i1:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),A=i("Yl7c"),m=A.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 o(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]),o.isInstance(e)||(e=s[f(e)]),o.isInstance(u)||(u=s[f(u)]),!e||!u)return;var h=e.id+"-"+u.id;if(c[h])return;var g=new n(e,u,r);return g.hostGraph=this,this._directed&&(e.outEdges.push(g),u.inEdges.push(g)),e.edges.push(g),e!==u&&u.edges.push(g),this.edges.push(g),c[h]=g,g},l.getEdgeByIndex=function(e){var u=this.edgeData.getRawIndex(e);return this.edges[u]},l.getEdge=function(e,u){o.isInstance(e)&&(e=e.id),o.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(o.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 g=[u];g.length;)for(var v=g.shift(),b=v[c],h=0;h<b.length;h++){var w=b[h],x=w.node1===v?w.node2:w.node1;if(!x.__visited){if(e.call(s,x,v))return;g.push(x),x.__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(g){var v=s[u.getRawIndex(g)];return v.node1.dataIndex>=0&&v.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 o(e,u){this.id=e==null?"":e,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=u==null?-1:u}o.prototype={constructor:o,degree:function(){return this.edges.length},inDegree:function(){return this.inEdges.length},outDegree:function(){return this.outEdges.length},getModel:function(e){if(this.dataIndex<0)return;var u=this.hostGraph,r=u.data.getItemModel(this.dataIndex);return r.getModel(e)}};function n(e,u,r){this.node1=e,this.node2=u,this.dataIndex=r==null?-1:r}n.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(o,t("hostGraph","data")),S.mixin(n,t("hostGraph","edgeData")),d.Node=o,d.Edge=n,m(o),m(n);var a=d;k.exports=a},c3jg:function(k,D,i){"use strict";i.d(D,"e",function(){return d}),i.d(D,"c",function(){return o}),i.d(D,"d",function(){return n}),i.d(D,"a",function(){return a}),i.d(D,"f",function(){return e}),i.d(D,"b",function(){return u});var y=i("KQm4"),p=i("VTBJ"),S=i("Ff2n"),A=i("Zm9Q"),m=i("Kwbf"),f=i("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 g=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(h||[]).forEach(function(v){var b=v.key,w=v.children;Object(m.a)(b!=null,"Tree node must have a certain key: [".concat(g).concat(b,"]"));var x=String(b);Object(m.a)(!s.has(x)||b===null||b===void 0,"Same 'key' exist in the Tree: ".concat(x)),s.set(x,!0),c(w,"".concat(g).concat(x," > "))})}c(r)}function o(r){function s(c){var h=Object(A.a)(c);return h.map(function(g){if(!Object(f.i)(g))return Object(m.a)(!g,"Tree/TreeNode can only accept TreeNode as children."),null;var v=g.key,b=g.props,w=b.children,x=Object(S.a)(b,["children"]),T=Object(p.a)({key:v},x),O=s(w);return O.length&&(T.children=O),T}).filter(function(g){return g})}return s(r)}function n(){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 g(v){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return v.map(function(w,x){var T=Object(f.h)(b?b.pos:"0",x),O=d(w.key,T),E=Object(p.a)(Object(p.a)({},w),{},{parent:b,pos:T,children:null,data:w,isStart:[].concat(Object(y.a)(b?b.isStart:[]),[x===0]),isEnd:[].concat(Object(y.a)(b?b.isEnd:[]),[x===v.length-1])});return h.push(E),s===!0||c.has(O)?E.children=g(w.children||[],E):E.children=[],E})}return g(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,w){return d(b.key,w)};function g(v,b,w){var x=v?v.children:r,T=v?Object(f.h)(w.pos,b):"0";if(v){var O=h(v,T),E={node:v,index:b,pos:T,key:O,parentPos:w.node?w.pos:null,level:w.level+1};s(E)}x&&x.forEach(function(C,I){g(C,I,{node:v,pos:T,level:w?w.level+1:-1})})}g(null)}function a(r){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=s.initWrapper,h=s.processEntity,g=s.onProcessFinished,v=arguments.length>2?arguments[2]:void 0,b={},w={},x={posEntities:b,keyEntities:w};return c&&(x=c(x)||x),t(r,function(T){var O=T.node,E=T.index,C=T.pos,I=T.key,_=T.parentPos,F=T.level,R={node:O,index:E,key:I,pos:C,level:F},B=d(I,C);b[C]=R,w[B]=R,R.parent=b[_],R.parent&&(R.parent.children=R.parent.children||[],R.parent.children.push(R)),h&&h(R,x)},v),g&&g(x),x}function e(r,s){var c=s.expandedKeys,h=s.selectedKeys,g=s.loadedKeys,v=s.loadingKeys,b=s.checkedKeys,w=s.halfCheckedKeys,x=s.dragOverNodeKey,T=s.dropPosition,O=s.keyEntities,E=O[r],C={eventKey:r,expanded:c.indexOf(r)!==-1,selected:h.indexOf(r)!==-1,loaded:g.indexOf(r)!==-1,loading:v.indexOf(r)!==-1,checked:b.indexOf(r)!==-1,halfChecked:w.indexOf(r)!==-1,pos:String(E?E.pos:""),dragOver:x===r&&T===0,dragOverGapTop:x===r&&T===-1,dragOverGapBottom:x===r&&T===1};return C}function u(r){var s=r.data,c=r.expanded,h=r.selected,g=r.checked,v=r.loaded,b=r.loading,w=r.halfChecked,x=r.dragOver,T=r.dragOverGapTop,O=r.dragOverGapBottom,E=r.pos,C=r.active,I=Object(p.a)(Object(p.a)({},s),{},{expanded:c,selected:h,checked:g,loaded:v,loading:b,halfChecked:w,dragOver:x,dragOverGapTop:T,dragOverGapBottom:O,pos:E,active:C});return"props"in I||Object.defineProperty(I,"props",{get:function(){return Object(m.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),r}}),I}},c5Ni:function(k,D,i){},c5fP:function(k,D,i){"use strict";function y(et){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(Ht){return typeof Ht}:y=function(Ht){return Ht&&typeof Symbol=="function"&&Ht.constructor===Symbol&&Ht!==Symbol.prototype?"symbol":typeof Ht},y(et)}Object.defineProperty(D,"__esModule",{value:!0}),D._tr_init=tt,D._tr_stored_block=pt,D._tr_flush_block=Fe,D._tr_tally=ft,D._tr_align=st;var p=A(i("6BzB"));function S(){if(typeof WeakMap!="function")return null;var et=new WeakMap;return S=function(){return et},et}function A(et){if(et&&et.__esModule)return et;if(et===null||y(et)!=="object"&&typeof et!="function")return{default:et};var wt=S();if(wt&&wt.has(et))return wt.get(et);var Ht={},Dt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var Tt in et)if(Object.prototype.hasOwnProperty.call(et,Tt)){var Bt=Dt?Object.getOwnPropertyDescriptor(et,Tt):null;Bt&&(Bt.get||Bt.set)?Object.defineProperty(Ht,Tt,Bt):Ht[Tt]=et[Tt]}return Ht.default=et,wt&&wt.set(et,Ht),Ht}var m=4,f=0,d=1,l=2;function o(et){for(var wt=et.length;--wt>=0;)et[wt]=0}var n=0,t=1,a=2,e=3,u=258,r=29,s=256,c=s+1+r,h=30,g=19,v=2*c+1,b=15,w=16,x=7,T=256,O=16,E=17,C=18,I=[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,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],F=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],R=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],B=512,M=new Array((c+2)*2);o(M);var X=new Array(h*2);o(X);var P=new Array(B);o(P);var z=new Array(u-e+1);o(z);var W=new Array(r);o(W);var U=new Array(h);o(U);function V(et,wt,Ht,Dt,Tt){this.static_tree=et,this.extra_bits=wt,this.extra_base=Ht,this.elems=Dt,this.max_length=Tt,this.has_stree=et&&et.length}var Q,G,te;function $(et,wt){this.dyn_tree=et,this.max_code=0,this.stat_desc=wt}function le(et){return et<256?P[et]:P[256+(et>>>7)]}function re(et,wt){et.pending_buf[et.pending++]=wt&255,et.pending_buf[et.pending++]=wt>>>8&255}function Se(et,wt,Ht){et.bi_valid>w-Ht?(et.bi_buf|=wt<<et.bi_valid&65535,re(et,et.bi_buf),et.bi_buf=wt>>w-et.bi_valid,et.bi_valid+=Ht-w):(et.bi_buf|=wt<<et.bi_valid&65535,et.bi_valid+=Ht)}function Re(et,wt,Ht){Se(et,Ht[wt*2],Ht[wt*2+1])}function Pe(et,wt){var Ht=0;do Ht|=et&1,et>>>=1,Ht<<=1;while(--wt>0);return Ht>>>1}function Je(et){et.bi_valid===16?(re(et,et.bi_buf),et.bi_buf=0,et.bi_valid=0):et.bi_valid>=8&&(et.pending_buf[et.pending++]=et.bi_buf&255,et.bi_buf>>=8,et.bi_valid-=8)}function Ve(et,wt){var Ht=wt.dyn_tree,Dt=wt.max_code,Tt=wt.stat_desc.static_tree,Bt=wt.stat_desc.has_stree,Ke=wt.stat_desc.extra_bits,de=wt.stat_desc.extra_base,oe=wt.stat_desc.max_length,lt,qe,pe,Kt,hr,gt,nr=0;for(Kt=0;Kt<=b;Kt++)et.bl_count[Kt]=0;for(Ht[et.heap[et.heap_max]*2+1]=0,lt=et.heap_max+1;lt<v;lt++){if(qe=et.heap[lt],Kt=Ht[Ht[qe*2+1]*2+1]+1,Kt>oe&&(Kt=oe,nr++),Ht[qe*2+1]=Kt,qe>Dt)continue;et.bl_count[Kt]++,hr=0,qe>=de&&(hr=Ke[qe-de]),gt=Ht[qe*2],et.opt_len+=gt*(Kt+hr),Bt&&(et.static_len+=gt*(Tt[qe*2+1]+hr))}if(nr===0)return;do{for(Kt=oe-1;et.bl_count[Kt]===0;)Kt--;et.bl_count[Kt]--,et.bl_count[Kt+1]+=2,et.bl_count[oe]--,nr-=2}while(nr>0);for(Kt=oe;Kt!==0;Kt--)for(qe=et.bl_count[Kt];qe!==0;){if(pe=et.heap[--lt],pe>Dt)continue;Ht[pe*2+1]!==Kt&&(et.opt_len+=(Kt-Ht[pe*2+1])*Ht[pe*2],Ht[pe*2+1]=Kt),qe--}}function ct(et,wt,Ht){var Dt=new Array(b+1),Tt=0,Bt,Ke;for(Bt=1;Bt<=b;Bt++)Dt[Bt]=Tt=Tt+Ht[Bt-1]<<1;for(Ke=0;Ke<=wt;Ke++){var de=et[Ke*2+1];if(de===0)continue;et[Ke*2]=Pe(Dt[de]++,de)}}function Ue(){var et,wt,Ht,Dt,Tt,Bt=new Array(b+1);for(Ht=0,Dt=0;Dt<r-1;Dt++)for(W[Dt]=Ht,et=0;et<1<<I[Dt];et++)z[Ht++]=Dt;for(z[Ht-1]=Dt,Tt=0,Dt=0;Dt<16;Dt++)for(U[Dt]=Tt,et=0;et<1<<_[Dt];et++)P[Tt++]=Dt;for(Tt>>=7;Dt<h;Dt++)for(U[Dt]=Tt<<7,et=0;et<1<<_[Dt]-7;et++)P[256+Tt++]=Dt;for(wt=0;wt<=b;wt++)Bt[wt]=0;for(et=0;et<=143;)M[et*2+1]=8,et++,Bt[8]++;for(;et<=255;)M[et*2+1]=9,et++,Bt[9]++;for(;et<=279;)M[et*2+1]=7,et++,Bt[7]++;for(;et<=287;)M[et*2+1]=8,et++,Bt[8]++;for(ct(M,c+1,Bt),et=0;et<h;et++)X[et*2+1]=5,X[et*2]=Pe(et,5);Q=new V(M,I,s+1,c,b),G=new V(X,_,0,h,b),te=new V(new Array(0),F,0,g,x)}function ue(et){var wt;for(wt=0;wt<c;wt++)et.dyn_ltree[wt*2]=0;for(wt=0;wt<h;wt++)et.dyn_dtree[wt*2]=0;for(wt=0;wt<g;wt++)et.bl_tree[wt*2]=0;et.dyn_ltree[T*2]=1,et.opt_len=et.static_len=0,et.last_lit=et.matches=0}function rt(et){et.bi_valid>8?re(et,et.bi_buf):et.bi_valid>0&&(et.pending_buf[et.pending++]=et.bi_buf),et.bi_buf=0,et.bi_valid=0}function ge(et,wt,Ht,Dt){rt(et),Dt&&(re(et,Ht),re(et,~Ht)),p.arraySet(et.pending_buf,et.window,wt,Ht,et.pending),et.pending+=Ht}function Z(et,wt,Ht,Dt){var Tt=wt*2,Bt=Ht*2;return et[Tt]<et[Bt]||et[Tt]===et[Bt]&&Dt[wt]<=Dt[Ht]}function Y(et,wt,Ht){for(var Dt=et.heap[Ht],Tt=Ht<<1;Tt<=et.heap_len&&!(Tt<et.heap_len&&Z(wt,et.heap[Tt+1],et.heap[Tt],et.depth)&&Tt++,Z(wt,Dt,et.heap[Tt],et.depth));)et.heap[Ht]=et.heap[Tt],Ht=Tt,Tt<<=1;et.heap[Ht]=Dt}function ee(et,wt,Ht){var Dt,Tt,Bt=0,Ke,de;if(et.last_lit!==0)do Dt=et.pending_buf[et.d_buf+Bt*2]<<8|et.pending_buf[et.d_buf+Bt*2+1],Tt=et.pending_buf[et.l_buf+Bt],Bt++,Dt===0?Re(et,Tt,wt):(Ke=z[Tt],Re(et,Ke+s+1,wt),de=I[Ke],de!==0&&(Tt-=W[Ke],Se(et,Tt,de)),Dt--,Ke=le(Dt),Re(et,Ke,Ht),de=_[Ke],de!==0&&(Dt-=U[Ke],Se(et,Dt,de)));while(Bt<et.last_lit);Re(et,T,wt)}function fe(et,wt){var Ht=wt.dyn_tree,Dt=wt.stat_desc.static_tree,Tt=wt.stat_desc.has_stree,Bt=wt.stat_desc.elems,Ke,de,oe=-1,lt;for(et.heap_len=0,et.heap_max=v,Ke=0;Ke<Bt;Ke++)Ht[Ke*2]!==0?(et.heap[++et.heap_len]=oe=Ke,et.depth[Ke]=0):Ht[Ke*2+1]=0;for(;et.heap_len<2;)lt=et.heap[++et.heap_len]=oe<2?++oe:0,Ht[lt*2]=1,et.depth[lt]=0,et.opt_len--,Tt&&(et.static_len-=Dt[lt*2+1]);for(wt.max_code=oe,Ke=et.heap_len>>1;Ke>=1;Ke--)Y(et,Ht,Ke);lt=Bt;do Ke=et.heap[1],et.heap[1]=et.heap[et.heap_len--],Y(et,Ht,1),de=et.heap[1],et.heap[--et.heap_max]=Ke,et.heap[--et.heap_max]=de,Ht[lt*2]=Ht[Ke*2]+Ht[de*2],et.depth[lt]=(et.depth[Ke]>=et.depth[de]?et.depth[Ke]:et.depth[de])+1,Ht[Ke*2+1]=Ht[de*2+1]=lt,et.heap[1]=lt++,Y(et,Ht,1);while(et.heap_len>=2);et.heap[--et.heap_max]=et.heap[1],Ve(et,wt),ct(Ht,oe,et.bl_count)}function be(et,wt,Ht){var Dt,Tt=-1,Bt,Ke=wt[0*2+1],de=0,oe=7,lt=4;for(Ke===0&&(oe=138,lt=3),wt[(Ht+1)*2+1]=65535,Dt=0;Dt<=Ht;Dt++){if(Bt=Ke,Ke=wt[(Dt+1)*2+1],++de<oe&&Bt===Ke)continue;de<lt?et.bl_tree[Bt*2]+=de:Bt!==0?(Bt!==Tt&&et.bl_tree[Bt*2]++,et.bl_tree[O*2]++):de<=10?et.bl_tree[E*2]++:et.bl_tree[C*2]++,de=0,Tt=Bt,Ke===0?(oe=138,lt=3):Bt===Ke?(oe=6,lt=3):(oe=7,lt=4)}}function Ce(et,wt,Ht){var Dt,Tt=-1,Bt,Ke=wt[0*2+1],de=0,oe=7,lt=4;for(Ke===0&&(oe=138,lt=3),Dt=0;Dt<=Ht;Dt++){if(Bt=Ke,Ke=wt[(Dt+1)*2+1],++de<oe&&Bt===Ke)continue;if(de<lt)do Re(et,Bt,et.bl_tree);while(--de!==0);else Bt!==0?(Bt!==Tt&&(Re(et,Bt,et.bl_tree),de--),Re(et,O,et.bl_tree),Se(et,de-3,2)):de<=10?(Re(et,E,et.bl_tree),Se(et,de-3,3)):(Re(et,C,et.bl_tree),Se(et,de-11,7));de=0,Tt=Bt,Ke===0?(oe=138,lt=3):Bt===Ke?(oe=6,lt=3):(oe=7,lt=4)}}function Te(et){var wt;for(be(et,et.dyn_ltree,et.l_desc.max_code),be(et,et.dyn_dtree,et.d_desc.max_code),fe(et,et.bl_desc),wt=g-1;wt>=3&&!(et.bl_tree[R[wt]*2+1]!==0);wt--);return et.opt_len+=3*(wt+1)+5+5+4,wt}function he(et,wt,Ht,Dt){var Tt;for(Se(et,wt-257,5),Se(et,Ht-1,5),Se(et,Dt-4,4),Tt=0;Tt<Dt;Tt++)Se(et,et.bl_tree[R[Tt]*2+1],3);Ce(et,et.dyn_ltree,wt-1),Ce(et,et.dyn_dtree,Ht-1)}function ye(et){var wt=4093624447,Ht;for(Ht=0;Ht<=31;Ht++,wt>>>=1)if(wt&1&&et.dyn_ltree[Ht*2]!==0)return f;if(et.dyn_ltree[9*2]!==0||et.dyn_ltree[10*2]!==0||et.dyn_ltree[13*2]!==0)return d;for(Ht=32;Ht<s;Ht++)if(et.dyn_ltree[Ht*2]!==0)return d;return f}var Ie=!1;function tt(et){Ie||(Ue(),Ie=!0),et.l_desc=new $(et.dyn_ltree,Q),et.d_desc=new $(et.dyn_dtree,G),et.bl_desc=new $(et.bl_tree,te),et.bi_buf=0,et.bi_valid=0,ue(et)}function pt(et,wt,Ht,Dt){Se(et,(n<<1)+(Dt?1:0),3),ge(et,wt,Ht,!0)}function st(et){Se(et,t<<1,3),Re(et,T,M),Je(et)}function Fe(et,wt,Ht,Dt){var Tt,Bt,Ke=0;et.level>0?(et.strm.data_type===l&&(et.strm.data_type=ye(et)),fe(et,et.l_desc),fe(et,et.d_desc),Ke=Te(et),Tt=et.opt_len+3+7>>>3,Bt=et.static_len+3+7>>>3,Bt<=Tt&&(Tt=Bt)):Tt=Bt=Ht+5,Ht+4<=Tt&&wt!==-1?pt(et,wt,Ht,Dt):et.strategy===m||Bt===Tt?(Se(et,(t<<1)+(Dt?1:0),3),ee(et,M,X)):(Se(et,(a<<1)+(Dt?1:0),3),he(et,et.l_desc.max_code+1,et.d_desc.max_code+1,Ke+1),ee(et,et.dyn_ltree,et.dyn_dtree)),ue(et),Dt&&rt(et)}function ft(et,wt,Ht){return et.pending_buf[et.d_buf+et.last_lit*2]=wt>>>8&255,et.pending_buf[et.d_buf+et.last_lit*2+1]=wt&255,et.pending_buf[et.l_buf+et.last_lit]=Ht&255,et.last_lit++,wt===0?et.dyn_ltree[Ht*2]++:(et.matches++,wt--,et.dyn_ltree[(z[Ht]+s+1)*2]++,et.dyn_dtree[le(wt)*2]++),et.last_lit===et.lit_bufsize-1}},c6wG:function(k,D,i){var y=i("dD9F"),p=i("sEf8"),S=i("mdPL"),A=S&&S.isTypedArray,m=A?p(A):y;k.exports=m},c8qY:function(k,D,i){var y=i("IwbS"),p=i("fls0");function S(a){this._ctor=a||p,this.group=new y.Group}var A=S.prototype;A.isPersistent=function(){return!0},A.updateData=function(a){var e=this,u=e.group,r=e._lineData;e._lineData=a,r||u.removeAll();var s=l(a);a.diff(r).add(function(c){m(e,a,c,s)}).update(function(c,h){f(e,r,a,h,c,s)}).remove(function(c){u.remove(r.getItemGraphicEl(c))}).execute()};function m(a,e,u,r){var s=e.getItemLayout(u);if(!n(s))return;var c=new a._ctor(e,u,r);e.setItemGraphicEl(u,c),a.group.add(c)}function f(a,e,u,r,s,c){var h=e.getItemGraphicEl(r);if(!n(u.getItemLayout(s))){a.group.remove(h);return}h?h.updateData(u,s,c):h=new a._ctor(u,s,c),u.setItemGraphicEl(s,h),a.group.add(h)}A.updateLayout=function(){var a=this._lineData;if(!a)return;a.eachItemGraphicEl(function(e,u){e.updateLayout(a,u)},this)},A.incrementalPrepareUpdate=function(a){this._seriesScope=l(a),this._lineData=null,this.group.removeAll()};function d(a){return a.animators&&a.animators.length>0}A.incrementalUpdate=function(a,e){function u(h){!h.isGroup&&!d(h)&&(h.incremental=h.useHoverLayer=!0)}for(var r=a.start;r<a.end;r++){var s=e.getItemLayout(r);if(n(s)){var c=new this._ctor(e,r,this._seriesScope);c.traverse(u),this.group.add(c),e.setItemGraphicEl(r,c)}}};function l(a){var e=a.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),hoverLineStyle:e.getModel("emphasis.lineStyle").getLineStyle(),labelModel:e.getModel("label"),hoverLabelModel:e.getModel("emphasis.label")}}A.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},A._clearIncremental=function(){var a=this._incremental;a&&a.clearDisplaybles()};function o(a){return isNaN(a[0])||isNaN(a[1])}function n(a){return!o(a[0])&&!o(a[1])}var t=S;k.exports=t},cCMj:function(k,D,i){var y=i("bYtY"),p={updateSelectedMap:function(S){this._targetList=y.isArray(S)?S.slice():[],this._selectTargetMap=y.reduce(S||[],function(A,m){return A.set(m.name,m),A},y.createHashMap())},select:function(S,A){var m=A!=null?this._targetList[A]:this._selectTargetMap.get(S),f=this.get("selectedMode");f==="single"&&this._selectTargetMap.each(function(d){d.selected=!1}),m&&(m.selected=!0)},unSelect:function(S,A){var m=A!=null?this._targetList[A]:this._selectTargetMap.get(S);m&&(m.selected=!1)},toggleSelected:function(S,A){var m=A!=null?this._targetList[A]:this._selectTargetMap.get(S);if(m!=null)return this[m.selected?"unSelect":"select"](S,A),m.selected},isSelected:function(S,A){var m=A!=null?this._targetList[A]:this._selectTargetMap.get(S);return m&&m.selected}};k.exports=p},cVA7:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=i("MT78"),p=m(y),S=i("t3Fx"),A=m(S);function m(n){return n&&n.__esModule?n:{default:n}}function f(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}function d(n,t){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&(typeof t=="object"||typeof t=="function")?t:n}function l(n,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof t);n.prototype=Object.create(t&&t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(n,t):n.__proto__=t)}var o=function(n){l(t,n);function t(a){f(this,t);var e=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,a));return e.echartsLib=p.default,e}return t}(A.default);D.default=o},cWXX:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("oIFs"),A=i.n(S)},ca2m:function(k,D,i){var y=i("bYtY"),p={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"}},p),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}}},p),S.timeAxis=y.defaults({scale:!0,min:"dataMin",max:"dataMax"},S.valueAxis),S.logAxis=y.defaults({scale:!0,logBase:10},S.valueAxis);var A=S;k.exports=A},cbJ4:function(k,D,i){var y=i("bYtY"),p=y.createHashMap;function S(A){A.eachSeriesByType("themeRiver",function(m){var f=m.getData(),d=m.getRawData(),l=m.get("color"),o=p();f.each(function(n){o.set(f.getRawIndex(n),n)}),d.each(function(n){var t=d.getName(n),a=l[(m.nameMap.get(t)-1)%l.length];d.setItemVisual(n,"color",a);var e=o.get(n);e!=null&&f.setItemVisual(e,"color",a)})})}k.exports=S},chpo:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=1,p=function(){return"".concat(y++)};D.default=p},cpOr:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("T4UG"),A=i("YXkt"),m=i("bYtY"),f=m.concatArray,d=m.mergeAll,l=m.map,o=i("7aKB"),n=o.encodeHTML,t=i("IDmD"),a=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(g){var v=[g[0].coord,g[1].coord],b={coords:v};return g[0].name&&(b.fromName=g[0].name),g[1].name&&(b.toName=g[1].name),d([b,g[0],g[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),g=h.option instanceof Array?h.option:h.getShallow("coords");return g},getLineCoordsCount:function(c){return this._flatCoordsOffset?this._flatCoordsOffset[c*2+1]:this._getCoordsFromItemModel(c).length},getLineCoords:function(c,h){if(this._flatCoordsOffset){for(var g=this._flatCoordsOffset[c*2],v=this._flatCoordsOffset[c*2+1],b=0;b<v;b++)h[b]=h[b]||[],h[b][0]=this._flatCoords[g+b*2],h[b][1]=this._flatCoords[g+b*2+1];return v}else{for(var w=this._getCoordsFromItemModel(c),b=0;b<w.length;b++)h[b]=h[b]||[],h[b][0]=w[b][0],h[b][1]=w[b][1];return w.length}},_processFlatCoordsArray:function(c){var h=0;if(this._flatCoords&&(h=this._flatCoords.length),typeof c[0]=="number"){for(var g=c.length,v=new a(g),b=new e(g),w=0,x=0,T=0,O=0;O<g;){T++;var E=c[O++];v[x++]=w+h,v[x++]=E;for(var C=0;C<E;C++){var I=c[O++],_=c[O++];b[w++]=I,b[w++]=_,O>g}}return{flatCoordsOffset:new Uint32Array(v.buffer,0,x),flatCoords:b,count:T}}return{flatCoordsOffset:null,flatCoords:null,count:c.length}},getInitialData:function(c,h){var g=new A(["value"],this);return g.hasItemOption=!1,g.initData(c.data,[],function(v,b,w,x){if(v instanceof Array)return NaN;g.hasItemOption=!0;var T=v.value;if(T!=null)return T instanceof Array?T[x]:T}),g},formatTooltip:function(c){var h=this.getData(),g=h.getItemModel(c),v=g.get("name");if(v)return v;var b=g.get("fromName"),w=g.get("toName"),x=[];return b!=null&&x.push(b),w!=null&&x.push(w),n(x.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;k.exports=s},crZl:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("IwbS"),A=i("7aKB"),m=i("+TT/"),f=i("XxSj"),d=y.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(l,o){this.ecModel=l,this.api=o,this.visualMapModel},render:function(l,o,n,t){if(this.visualMapModel=l,l.get("show")===!1){this.group.removeAll();return}this.doRender.apply(this,arguments)},renderBackground:function(l){var o=this.visualMapModel,n=A.normalizeCssArray(o.get("padding")||0),t=l.getBoundingRect();l.add(new S.Rect({z2:-1,silent:!0,shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[3]+n[1],height:t.height+n[0]+n[2]},style:{fill:o.get("backgroundColor"),stroke:o.get("borderColor"),lineWidth:o.get("borderWidth")}}))},getControllerVisual:function(l,o,n){n=n||{};var t=n.forceState,a=this.visualMapModel,e={};if(o==="symbol"&&(e.symbol=a.get("itemSymbol")),o==="color"){var u=a.get("contentColor");e.color=u}function r(g){return e[g]}function s(g,v){e[g]=v}var c=a.controllerVisuals[t||a.getValueState(l)],h=f.prepareVisualTypes(c);return p.each(h,function(g){var v=c[g];n.convertOpacityToAlpha&&g==="opacity"&&(g="colorAlpha",v=c.__alphaForOpacity),f.dependsOn(g,o)&&(v&&v.applyVisual(l,r,s))}),e[o]},positionGroup:function(l){var o=this.visualMapModel,n=this.api;m.positionElement(l,o.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},doRender:p.noop});k.exports=d},crp1:function(k,D,i){"use strict";i.d(D,"b",function(){return ar}),i.d(D,"a",function(){return Yn});var y={},p=function(vt,bt,fr,Jt,Ut){var er=y[bt]||(y[bt]=URL.createObjectURL(new Blob([vt],{type:"text/javascript"}))),Mt=new Worker(er);return Mt.onerror=function(Zt){return Ut(Zt.error,null)},Mt.onmessage=function(Zt){return Ut(null,Zt.data)},Mt.postMessage(fr,Jt),Mt},S=Uint8Array,A=Uint16Array,m=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]),o=function(vt,bt){for(var fr=new A(31),Jt=0;Jt<31;++Jt)fr[Jt]=bt+=1<<vt[Jt-1];for(var Ut=new m(fr[30]),Jt=1;Jt<30;++Jt)for(var er=fr[Jt];er<fr[Jt+1];++er)Ut[er]=er-fr[Jt]<<5|Jt;return[fr,Ut]},n=o(f,2),t=n[0],a=n[1];t[28]=258,a[258]=28;for(var e=o(d,0),u=e[0],r=e[1],s=new A(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 g=function(vt,bt,fr){for(var Jt=vt.length,Ut=0,er=new A(bt);Ut<Jt;++Ut)++er[vt[Ut]-1];var Mt=new A(bt);for(Ut=0;Ut<bt;++Ut)Mt[Ut]=Mt[Ut-1]+er[Ut-1]<<1;var Zt;if(fr){Zt=new A(1<<bt);var Hr=15-bt;for(Ut=0;Ut<Jt;++Ut)if(vt[Ut])for(var Ir=Ut<<4|vt[Ut],Lr=bt-vt[Ut],dn=Mt[vt[Ut]-1]++<<Lr,gn=dn|(1<<Lr)-1;dn<=gn;++dn)Zt[s[dn]>>>Hr]=Ir}else for(Zt=new A(Jt),Ut=0;Ut<Jt;++Ut)Zt[Ut]=s[Mt[vt[Ut]-1]++]>>>15-vt[Ut];return Zt},v=new S(288),c=0;c<144;++c)v[c]=8;for(var c=144;c<256;++c)v[c]=9;for(var c=256;c<280;++c)v[c]=7;for(var c=280;c<288;++c)v[c]=8;for(var b=new S(32),c=0;c<32;++c)b[c]=5;var w=g(v,9,0),x=g(v,9,1),T=g(b,5,0),O=g(b,5,1),E=function(vt){for(var bt=vt[0],fr=1;fr<vt.length;++fr)vt[fr]>bt&&(bt=vt[fr]);return bt},C=function(vt,bt,fr){var Jt=bt/8>>0;return(vt[Jt]|vt[Jt+1]<<8)>>>(bt&7)&fr},I=function(vt,bt){var fr=bt/8>>0;return(vt[fr]|vt[fr+1]<<8|vt[fr+2]<<16)>>>(bt&7)},_=function(vt){return(vt/8>>0)+(vt&7&&1)},F=function(vt,bt,fr){(bt==null||bt<0)&&(bt=0),(fr==null||fr>vt.length)&&(fr=vt.length);var Jt=new(vt instanceof A?A:vt instanceof m?m:S)(fr-bt);return Jt.set(vt.subarray(bt,fr)),Jt},R=function(vt,bt,fr){var Jt=vt.length,Ut=!bt||fr,er=!fr||fr.i;fr||(fr={}),bt||(bt=new S(Jt*3));var Mt=function(Hn){var zt=bt.length;if(Hn>zt){var _t=new S(Math.max(zt*2,Hn));_t.set(bt),bt=_t}},Zt=fr.f||0,Hr=fr.p||0,Ir=fr.b||0,Lr=fr.l,dn=fr.d,gn=fr.m,ri=fr.n,Zn=Jt*8;do{if(!Lr){fr.f=Zt=C(vt,Hr,1);var pi=C(vt,Hr+1,3);if(Hr+=3,pi)if(pi==1)Lr=x,dn=O,gn=9,ri=5;else if(pi==2){var it=C(vt,Hr,31)+257,Ne=C(vt,Hr+10,15)+4,He=it+C(vt,Hr+5,31)+1;Hr+=14;for(var Ge=new S(He),nt=new S(19),$e=0;$e<Ne;++$e)nt[l[$e]]=C(vt,Hr+$e*3,7);Hr+=Ne*3;var ot=E(nt),Pt=(1<<ot)-1;if(!er&&Hr+He*(ot+7)>Zn)break;for(var xt=g(nt,ot,1),$e=0;$e<He;){var rr=xt[C(vt,Hr,Pt)];Hr+=rr&15;var Ci=rr>>>4;if(Ci<16)Ge[$e++]=Ci;else{var Fr=0,Vr=0;for(Ci==16?(Vr=3+C(vt,Hr,3),Hr+=2,Fr=Ge[$e-1]):Ci==17?(Vr=3+C(vt,Hr,7),Hr+=3):Ci==18&&(Vr=11+C(vt,Hr,127),Hr+=7);Vr--;)Ge[$e++]=Fr}}var fn=Ge.subarray(0,it),gr=Ge.subarray(it);gn=E(fn),ri=E(gr),Lr=g(fn,gn,1),dn=g(gr,ri,1)}else throw"invalid block type";else{var Ci=_(Hr)+4,Ni=vt[Ci-4]|vt[Ci-3]<<8,zi=Ci+Ni;if(zi>Jt){if(er)throw"unexpected EOF";break}Ut&&Mt(Ir+Ni),bt.set(vt.subarray(Ci,zi),Ir),fr.b=Ir+=Ni,fr.p=Hr=zi*8;continue}if(Hr>Zn)throw"unexpected EOF"}Ut&&Mt(Ir+131072);for(var Gn=(1<<gn)-1,Mr=(1<<ri)-1,Rn=gn+ri+18;er||Hr+Rn<Zn;){var Fr=Lr[I(vt,Hr)&Gn],bn=Fr>>>4;if(Hr+=Fr&15,Hr>Zn)throw"unexpected EOF";if(!Fr)throw"invalid length/literal";if(bn<256)bt[Ir++]=bn;else if(bn==256){Lr=null;break}else{var rn=bn-254;if(bn>264){var $e=bn-257,ei=f[$e];rn=C(vt,Hr,(1<<ei)-1)+t[$e],Hr+=ei}var fi=dn[I(vt,Hr)&Mr],Mi=fi>>>4;if(!fi)throw"invalid distance";Hr+=fi&15;var gr=u[Mi];if(Mi>3){var ei=d[Mi];gr+=I(vt,Hr)&(1<<ei)-1,Hr+=ei}if(Hr>Zn)throw"unexpected EOF";Ut&&Mt(Ir+131072);for(var $r=Ir+rn;Ir<$r;Ir+=4)bt[Ir]=bt[Ir-gr],bt[Ir+1]=bt[Ir+1-gr],bt[Ir+2]=bt[Ir+2-gr],bt[Ir+3]=bt[Ir+3-gr];Ir=$r}}fr.l=Lr,fr.p=Hr,fr.b=Ir,Lr&&(Zt=1,fr.m=gn,fr.d=dn,fr.n=ri)}while(!Zt);return Ir==bt.length?bt:F(bt,0,Ir)},B=function(vt,bt,fr){fr<<=bt&7;var Jt=bt/8>>0;vt[Jt]|=fr,vt[Jt+1]|=fr>>>8},M=function(vt,bt,fr){fr<<=bt&7;var Jt=bt/8>>0;vt[Jt]|=fr,vt[Jt+1]|=fr>>>8,vt[Jt+2]|=fr>>>16},X=function(vt,bt){for(var fr=[],Jt=0;Jt<vt.length;++Jt)vt[Jt]&&fr.push({s:Jt,f:vt[Jt]});var Ut=fr.length,er=fr.slice();if(!Ut)return[new S(0),0];if(Ut==1){var Mt=new S(fr[0].s+1);return Mt[fr[0].s]=1,[Mt,1]}fr.sort(function(He,Ge){return He.f-Ge.f}),fr.push({s:-1,f:25001});var Zt=fr[0],Hr=fr[1],Ir=0,Lr=1,dn=2;for(fr[0]={s:-1,f:Zt.f+Hr.f,l:Zt,r:Hr};Lr!=Ut-1;)Zt=fr[fr[Ir].f<fr[dn].f?Ir++:dn++],Hr=fr[Ir!=Lr&&fr[Ir].f<fr[dn].f?Ir++:dn++],fr[Lr++]={s:-1,f:Zt.f+Hr.f,l:Zt,r:Hr};for(var gn=er[0].s,Jt=1;Jt<Ut;++Jt)er[Jt].s>gn&&(gn=er[Jt].s);var ri=new A(gn+1),Zn=P(fr[Lr-1],ri,0);if(Zn>bt){var Jt=0,pi=0,Ci=Zn-bt,Ni=1<<Ci;for(er.sort(function(Ge,nt){return ri[nt.s]-ri[Ge.s]||Ge.f-nt.f});Jt<Ut;++Jt){var zi=er[Jt].s;if(ri[zi]>bt)pi+=Ni-(1<<Zn-ri[zi]),ri[zi]=bt;else break}for(pi>>>=Ci;pi>0;){var it=er[Jt].s;ri[it]<bt?pi-=1<<bt-ri[it]++-1:++Jt}for(;Jt>=0&&pi;--Jt){var Ne=er[Jt].s;ri[Ne]==bt&&(--ri[Ne],++pi)}Zn=bt}return[new S(ri),Zn]},P=function Gt(vt,bt,fr){return vt.s==-1?Math.max(Gt(vt.l,bt,fr+1),Gt(vt.r,bt,fr+1)):bt[vt.s]=fr},z=function(vt){for(var bt=vt.length;bt&&!vt[--bt];);for(var fr=new A(++bt),Jt=0,Ut=vt[0],er=1,Mt=function(Ir){fr[Jt++]=Ir},Zt=1;Zt<=bt;++Zt)if(vt[Zt]==Ut&&Zt!=bt)++er;else{if(!Ut&&er>2){for(;er>138;er-=138)Mt(32754);er>2&&(Mt(er>10?er-11<<5|28690:er-3<<5|12305),er=0)}else if(er>3){for(Mt(Ut),--er;er>6;er-=6)Mt(8304);er>2&&(Mt(er-3<<5|8208),er=0)}for(;er--;)Mt(Ut);er=1,Ut=vt[Zt]}return[fr.subarray(0,Jt),bt]},W=function(vt,bt){for(var fr=0,Jt=0;Jt<bt.length;++Jt)fr+=vt[Jt]*bt[Jt];return fr},U=function(vt,bt,fr){var Jt=fr.length,Ut=_(bt+2);vt[Ut]=Jt&255,vt[Ut+1]=Jt>>>8,vt[Ut+2]=vt[Ut]^255,vt[Ut+3]=vt[Ut+1]^255;for(var er=0;er<Jt;++er)vt[Ut+er+4]=fr[er];return(Ut+4+Jt)*8},V=function(vt,bt,fr,Jt,Ut,er,Mt,Zt,Hr,Ir,Lr){B(bt,Lr++,fr),++Ut[256];for(var dn=X(Ut,15),gn=dn[0],ri=dn[1],Zn=X(er,15),pi=Zn[0],Ci=Zn[1],Ni=z(gn),zi=Ni[0],it=Ni[1],Ne=z(pi),He=Ne[0],Ge=Ne[1],nt=new A(19),$e=0;$e<zi.length;++$e)nt[zi[$e]&31]++;for(var $e=0;$e<He.length;++$e)nt[He[$e]&31]++;for(var ot=X(nt,7),Pt=ot[0],xt=ot[1],rr=19;rr>4&&!Pt[l[rr-1]];--rr);var Fr=Ir+5<<3,Vr=W(Ut,v)+W(er,b)+Mt,fn=W(Ut,gn)+W(er,pi)+Mt+14+3*rr+W(nt,Pt)+(2*nt[16]+3*nt[17]+7*nt[18]);if(Fr<=Vr&&Fr<=fn)return U(bt,Lr,vt.subarray(Hr,Hr+Ir));var gr,Gn,Mr,Rn;if(B(bt,Lr,1+(fn<Vr)),Lr+=2,fn<Vr){gr=g(gn,ri,0),Gn=gn,Mr=g(pi,Ci,0),Rn=pi;var bn=g(Pt,xt,0);B(bt,Lr,it-257),B(bt,Lr+5,Ge-1),B(bt,Lr+10,rr-4),Lr+=14;for(var $e=0;$e<rr;++$e)B(bt,Lr+3*$e,Pt[l[$e]]);Lr+=3*rr;for(var rn=[zi,He],ei=0;ei<2;++ei)for(var fi=rn[ei],$e=0;$e<fi.length;++$e){var Mi=fi[$e]&31;B(bt,Lr,bn[Mi]),Lr+=Pt[Mi],Mi>15&&(B(bt,Lr,fi[$e]>>>5&127),Lr+=fi[$e]>>>12)}}else gr=w,Gn=v,Mr=T,Rn=b;for(var $e=0;$e<Zt;++$e)if(Jt[$e]>255){var Mi=Jt[$e]>>>18&31;M(bt,Lr,gr[Mi+257]),Lr+=Gn[Mi+257],Mi>7&&(B(bt,Lr,Jt[$e]>>>23&31),Lr+=f[Mi]);var $r=Jt[$e]&31;M(bt,Lr,Mr[$r]),Lr+=Rn[$r],$r>3&&(M(bt,Lr,Jt[$e]>>>5&8191),Lr+=d[$r])}else M(bt,Lr,gr[Jt[$e]]),Lr+=Gn[Jt[$e]];return M(bt,Lr,gr[256]),Lr+Gn[256]},Q=new m([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),G=new S(0),te=function(vt,bt,fr,Jt,Ut,er){var Mt=vt.length,Zt=new S(Jt+Mt+5*(1+Math.floor(Mt/7e3))+Ut),Hr=Zt.subarray(Jt,Zt.length-Ut),Ir=0;if(!bt||Mt<8)for(var Lr=0;Lr<=Mt;Lr+=65535){var dn=Lr+65535;dn<Mt?Ir=U(Hr,Ir,vt.subarray(Lr,dn)):(Hr[Lr]=er,Ir=U(Hr,Ir,vt.subarray(Lr,Mt)))}else{for(var gn=Q[bt-1],ri=gn>>>13,Zn=gn&8191,pi=(1<<fr)-1,Ci=new A(32768),Ni=new A(pi+1),zi=Math.ceil(fr/3),it=2*zi,Ne=function(vr){return(vt[vr]^vt[vr+1]<<zi^vt[vr+2]<<it)&pi},He=new m(25e3),Ge=new A(288),nt=new A(32),$e=0,ot=0,Lr=0,Pt=0,xt=0,rr=0;Lr<Mt;++Lr){var Fr=Ne(Lr),Vr=Lr&32767,fn=Ni[Fr];if(Ci[Vr]=fn,Ni[Fr]=Vr,xt<=Lr){var gr=Mt-Lr;if(($e>7e3||Pt>24576)&&gr>423){Ir=V(vt,Hr,0,He,Ge,nt,ot,Pt,rr,Lr-rr,Ir),Pt=$e=ot=0,rr=Lr;for(var Gn=0;Gn<286;++Gn)Ge[Gn]=0;for(var Gn=0;Gn<30;++Gn)nt[Gn]=0}var Mr=2,Rn=0,bn=Zn,rn=Vr-fn&32767;if(gr>2&&Fr==Ne(Lr-rn))for(var ei=Math.min(ri,gr)-1,fi=Math.min(32767,Lr),Mi=Math.min(258,gr);rn<=fi&&--bn&&Vr!=fn;){if(vt[Lr+Mr]==vt[Lr+Mr-rn]){for(var $r=0;$r<Mi&&vt[Lr+$r]==vt[Lr+$r-rn];++$r);if($r>Mr){if(Mr=$r,Rn=rn,$r>ei)break;for(var En=Math.min(rn,$r-2),Hn=0,Gn=0;Gn<En;++Gn){var zt=Lr-rn+Gn+32768&32767,_t=Ci[zt],Ft=zt-_t+32768&32767;Ft>Hn&&(Hn=Ft,fn=zt)}}}Vr=fn,fn=Ci[Vr],rn+=Vr-fn+32768&32767}if(Rn){He[Pt++]=268435456|a[Mr]<<18|r[Rn];var Wt=a[Mr]&31,Vt=r[Rn]&31;ot+=f[Wt]+d[Vt],++Ge[257+Wt],++nt[Vt],xt=Lr+Mr,++$e}else He[Pt++]=vt[Lr],++Ge[vt[Lr]]}}Ir=V(vt,Hr,er,He,Ge,nt,ot,Pt,rr,Lr-rr,Ir),er||(Ir=U(Hr,Ir,G))}return F(Zt,0,Jt+_(Ir)+Ut)},$=function(){for(var Gt=new m(256),vt=0;vt<256;++vt){for(var bt=vt,fr=9;--fr;)bt=(bt&1&&3988292384)^bt>>>1;Gt[vt]=bt}return Gt}(),le=function(){var vt=4294967295;return{p:function(fr){for(var Jt=vt,Ut=0;Ut<fr.length;++Ut)Jt=$[Jt&255^fr[Ut]]^Jt>>>8;vt=Jt},d:function(){return vt^4294967295}}},re=function(){var vt=1,bt=0;return{p:function(Jt){for(var Ut=vt,er=bt,Mt=Jt.length,Zt=0;Zt!=Mt;){for(var Hr=Math.min(Zt+5552,Mt);Zt<Hr;++Zt)Ut+=Jt[Zt],er+=Ut;Ut%=65521,er%=65521}vt=Ut,bt=er},d:function(){return(vt>>>8<<16|(bt&255)<<8|bt>>>8)+((vt&255)<<23)*2}}},Se=function(vt,bt,fr,Jt,Ut){return te(vt,bt.level==null?6:bt.level,bt.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(vt.length)))*1.5):12+bt.mem,fr,Jt,!Ut)},Re=function(vt,bt){var fr={};for(var Jt in vt)fr[Jt]=vt[Jt];for(var Jt in bt)fr[Jt]=bt[Jt];return fr},Pe=function(vt,bt,fr){for(var Jt=vt(),Ut=vt.toString(),er=Ut.slice(Ut.indexOf("[")+1,Ut.lastIndexOf("]")).replace(/ /g,"").split(","),Mt=0;Mt<Jt.length;++Mt){var Zt=Jt[Mt],Hr=er[Mt];if(typeof Zt=="function"){bt+=";"+Hr+"=";var Ir=Zt.toString();if(Zt.prototype)if(Ir.indexOf("[native code]")!=-1){var Lr=Ir.indexOf(" ",8)+1;bt+=Ir.slice(Lr,Ir.indexOf("(",Lr))}else{bt+=Ir;for(var dn in Zt.prototype)bt+=";"+Hr+".prototype."+dn+"="+Zt.prototype[dn].toString()}else bt+=Ir}else fr[Hr]=Zt}return[bt,fr]},Je=[],Ve=function(vt){var bt=[];for(var fr in vt)(vt[fr]instanceof S||vt[fr]instanceof A||vt[fr]instanceof m)&&bt.push((vt[fr]=new vt[fr].constructor(vt[fr])).buffer);return bt},ct=function(vt,bt,fr,Jt){var Ut;if(!Je[fr]){for(var er="",Mt={},Zt=vt.length-1,Hr=0;Hr<Zt;++Hr)Ut=Pe(vt[Hr],er,Mt),er=Ut[0],Mt=Ut[1];Je[fr]=Pe(vt[Zt],er,Mt)}var Ir=Re({},Je[fr][1]);return p(Je[fr][0]+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+bt.toString()+"}",fr,Ir,Ve(Ir),Jt)},Ue=function(){return[S,A,m,f,d,l,t,u,x,O,s,g,E,C,I,_,F,R,lt,ee,fe]},ue=function(){return[S,A,m,f,d,l,a,r,w,v,T,b,s,Q,G,g,B,M,X,P,z,W,U,V,_,F,te,Se,Bt,ee]},rt=function(){return[tt,Fe,Ie,le,$]},ge=function(){return[pt,st]},Z=function(){return[ft,Ie,re]},Y=function(){return[et]},ee=function(vt){return postMessage(vt,[vt.buffer])},fe=function(vt){return vt&&vt.size&&new S(vt.size)},be=function(vt,bt,fr,Jt,Ut,er){var Mt=ct(fr,Jt,Ut,function(Zt,Hr){Mt.terminate(),er(Zt,Hr)});return bt.consume||(vt=new S(vt)),Mt.postMessage([vt,bt],[vt.buffer]),function(){Mt.terminate()}},Ce=function(vt){return vt.ondata=function(bt,fr){return postMessage([bt,fr],[bt.buffer])},function(bt){return vt.push(bt.data[0],bt.data[1])}},Te=function(vt,bt,fr,Jt,Ut){var er,Mt=ct(vt,Jt,Ut,function(Zt,Hr){Zt?(Mt.terminate(),bt.ondata.call(bt,Zt)):(Hr[1]&&Mt.terminate(),bt.ondata.call(bt,Zt,Hr[0],Hr[1]))});Mt.postMessage(fr),bt.push=function(Zt,Hr){if(er)throw"stream finished";if(!bt.ondata)throw"no stream handler";Mt.postMessage([Zt,er=Hr],[Zt.buffer])},bt.terminate=function(){Mt.terminate()}},he=function(vt,bt){return vt[bt]|vt[bt+1]<<8},ye=function(vt,bt){return(vt[bt]|vt[bt+1]<<8|vt[bt+2]<<16)+(vt[bt+3]<<23)*2},Ie=function(vt,bt,fr){for(;fr;++bt)vt[bt]=fr,fr>>>=8},tt=function(vt,bt){var fr=bt.filename;if(vt[0]=31,vt[1]=139,vt[2]=8,vt[8]=bt.level<2?4:bt.level==9?2:0,vt[9]=3,bt.mtime!=0&&Ie(vt,4,Math.floor(new Date(bt.mtime||Date.now())/1e3)),fr){vt[3]=8;for(var Jt=0;Jt<=fr.length;++Jt)vt[Jt+10]=fr.charCodeAt(Jt)}},pt=function(vt){if(vt[0]!=31||vt[1]!=139||vt[2]!=8)throw"invalid gzip data";var bt=vt[3],fr=10;bt&4&&(fr+=vt[10]|(vt[11]<<8)+2);for(var Jt=(bt>>3&1)+(bt>>4&1);Jt>0;Jt-=!vt[fr++]);return fr+(bt&2)},st=function(vt){var bt=vt.length;return(vt[bt-4]|vt[bt-3]<<8|vt[bt-2]<<16)+2*(vt[bt-1]<<23)},Fe=function(vt){return 10+(vt.filename&&vt.filename.length+1||0)},ft=function(vt,bt){var fr=bt.level,Jt=fr==0?0:fr<6?1:fr==9?3:2;vt[0]=120,vt[1]=Jt<<6|(Jt?32-2*Jt:1)},et=function(vt){if((vt[0]&15)!=8||vt[0]>>>4>7||(vt[0]<<8|vt[1])%31)throw"invalid zlib data";if(vt[1]&32)throw"invalid zlib data: preset dictionaries not supported"};function wt(Gt,vt){return!vt&&typeof Gt=="function"&&(vt=Gt,Gt={}),this.ondata=vt,Gt}var Ht=function(){function Gt(vt,bt){!bt&&typeof vt=="function"&&(bt=vt,vt={}),this.ondata=bt,this.o=vt||{}}return Gt.prototype.p=function(vt,bt){this.ondata(Se(vt,this.o,0,0,!bt),bt)},Gt.prototype.push=function(vt,bt){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";this.d=bt,this.p(vt,bt||!1)},Gt}(),Dt=function(){function Gt(vt,bt){Te([ue,function(){return[Ce,Ht]}],this,wt.call(this,vt,bt),function(fr){var Jt=new Ht(fr.data);onmessage=Ce(Jt)},6)}return Gt}();function Tt(Gt,vt,bt){if(bt||(bt=vt,vt={}),typeof bt!="function")throw"no callback";return be(Gt,vt,[ue],function(fr){return ee(Bt(fr.data[0],fr.data[1]))},0,bt)}function Bt(Gt,vt){return vt===void 0&&(vt={}),Se(Gt,vt,0,0)}var Ke=function(){function Gt(vt){this.s={},this.p=new S(0),this.ondata=vt}return Gt.prototype.e=function(vt){if(this.d)throw"stream finished";if(!this.ondata)throw"no stream handler";var bt=this.p.length,fr=new S(bt+vt.length);fr.set(this.p),fr.set(vt,bt),this.p=fr},Gt.prototype.c=function(vt){this.d=this.s.i=vt||!1;var bt=this.s.b,fr=R(this.p,this.o,this.s);this.ondata(F(fr,bt,this.s.b),this.d),this.o=F(fr,this.s.b-32768),this.s.b=this.o.length,this.p=F(this.p,this.s.p/8>>0),this.s.p&=7},Gt.prototype.push=function(vt,bt){this.e(vt),this.c(bt)},Gt}(),de=function(){function Gt(vt){this.ondata=vt,Te([Ue,function(){return[Ce,Ke]}],this,0,function(){var bt=new Ke;onmessage=Ce(bt)},7)}return Gt}();function oe(Gt,vt,bt){if(bt||(bt=vt,vt={}),typeof bt!="function")throw"no callback";return be(Gt,vt,[Ue],function(fr){return ee(lt(fr.data[0],fe(fr.data[1])))},1,bt)}function lt(Gt,vt){return R(Gt,vt)}var qe=function(){function Gt(vt,bt){this.c=le(),this.l=0,this.v=1,Ht.call(this,vt,bt)}return Gt.prototype.push=function(vt,bt){Ht.prototype.push.call(this,vt,bt)},Gt.prototype.p=function(vt,bt){this.c.p(vt),this.l+=vt.length;var fr=Se(vt,this.o,this.v&&Fe(this.o),bt&&8,!bt);this.v&&(tt(fr,this.o),this.v=0),bt&&(Ie(fr,fr.length-8,this.c.d()),Ie(fr,fr.length-4,this.l)),this.ondata(fr,bt)},Gt}(),pe=function(){function Gt(vt,bt){Te([ue,rt,function(){return[Ce,Ht,qe]}],this,wt.call(this,vt,bt),function(fr){var Jt=new qe(fr.data);onmessage=Ce(Jt)},8)}return Gt}();function Kt(Gt,vt,bt){if(bt||(bt=vt,vt={}),typeof bt!="function")throw"no callback";return be(Gt,vt,[ue,rt,function(){return[hr]}],function(fr){return ee(hr(fr.data[0],fr.data[1]))},2,bt)}function hr(Gt,vt){vt===void 0&&(vt={});var bt=le(),fr=Gt.length;bt.p(Gt);var Jt=Se(Gt,vt,Fe(vt),8),Ut=Jt.length;return tt(Jt,vt),Ie(Jt,Ut-8,bt.d()),Ie(Jt,Ut-4,fr),Jt}var gt=function(){function Gt(vt){this.v=1,Ke.call(this,vt)}return Gt.prototype.push=function(vt,bt){if(Ke.prototype.e.call(this,vt),this.v){var fr=pt(this.p);if(fr>=this.p.length&&!bt)return;this.p=this.p.subarray(fr),this.v=0}if(bt){if(this.p.length<8)throw"invalid gzip stream";this.p=this.p.subarray(0,-8)}Ke.prototype.c.call(this,bt)},Gt}(),nr=function(){function Gt(vt){this.ondata=vt,Te([Ue,ge,function(){return[Ce,Ke,gt]}],this,0,function(){var bt=new gt;onmessage=Ce(bt)},9)}return Gt}();function mr(Gt,vt,bt){if(bt||(bt=vt,vt={}),typeof bt!="function")throw"no callback";return be(Gt,vt,[Ue,ge,function(){return[cn]}],function(fr){return ee(cn(fr.data[0]))},3,bt)}function cn(Gt,vt){return R(Gt.subarray(pt(Gt),-8),vt||new S(st(Gt)))}var Ar=function(){function Gt(vt,bt){this.c=re(),this.v=1,Ht.call(this,vt,bt)}return Gt.prototype.push=function(vt,bt){Ht.prototype.push.call(this,vt,bt)},Gt.prototype.p=function(vt,bt){this.c.p(vt);var fr=Se(vt,this.o,this.v&&2,bt&&4,!bt);this.v&&(ft(fr,this.o),this.v=0),bt&&Ie(fr,fr.length-4,this.c.d()),this.ondata(fr,bt)},Gt}(),xr=function(){function Gt(vt,bt){Te([ue,Z,function(){return[Ce,Ht,Ar]}],this,wt.call(this,vt,bt),function(fr){var Jt=new Ar(fr.data);onmessage=Ce(Jt)},10)}return Gt}();function qt(Gt,vt,bt){if(bt||(bt=vt,vt={}),typeof bt!="function")throw"no callback";return be(Gt,vt,[ue,Z,function(){return[ar]}],function(fr){return ee(ar(fr.data[0],fr.data[1]))},4,bt)}function ar(Gt,vt){vt===void 0&&(vt={});var bt=re();bt.p(Gt);var fr=Se(Gt,vt,2,4);return ft(fr,vt),Ie(fr,fr.length-4,bt.d()),fr}var Et=function(){function Gt(vt){this.v=1,Ke.call(this,vt)}return Gt.prototype.push=function(vt,bt){if(Ke.prototype.e.call(this,vt),this.v){if(this.p.length<2&&!bt)return;this.p=this.p.subarray(2),this.v=0}if(bt){if(this.p.length<4)throw"invalid zlib stream";this.p=this.p.subarray(0,-4)}Ke.prototype.c.call(this,bt)},Gt}(),en=function(){function Gt(vt){this.ondata=vt,Te([Ue,Y,function(){return[Ce,Ke,Et]}],this,0,function(){var bt=new Et;onmessage=Ce(bt)},11)}return Gt}();function Mn(Gt,vt,bt){if(bt||(bt=vt,vt={}),typeof bt!="function")throw"no callback";return be(Gt,vt,[Ue,Y,function(){return[Yn]}],function(fr){return ee(Yn(fr.data[0],fe(fr.data[1])))},5,bt)}function Yn(Gt,vt){return R((et(Gt),Gt.subarray(2,-4)),vt)}var ci=function(){function Gt(vt){this.G=gt,this.I=Ke,this.Z=Et,this.ondata=vt}return Gt.prototype.push=function(vt,bt){if(!this.ondata)throw"no stream handler";if(this.s)this.s.push(vt,bt);else{if(this.p&&this.p.length){var fr=new S(this.p.length+vt.length);fr.set(this.p),fr.set(vt,this.p.length)}else this.p=vt;if(this.p.length>2){var Jt=this,Ut=function(){Jt.ondata.apply(Jt,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,bt),this.p=null}}},Gt}(),Vi=function(){function Gt(vt){this.G=nr,this.I=de,this.Z=en,this.ondata=vt}return Gt.prototype.push=function(vt,bt){ci.prototype.push.call(this,vt,bt)},Gt}();function jn(Gt,vt,bt){if(bt||(bt=vt,vt={}),typeof bt!="function")throw"no callback";return Gt[0]==31&&Gt[1]==139&&Gt[2]==8?mr(Gt,vt,bt):(Gt[0]&15)!=8||Gt[0]>>4>7||(Gt[0]<<8|Gt[1])%31?oe(Gt,vt,bt):Mn(Gt,vt,bt)}function Qn(Gt,vt){return Gt[0]==31&&Gt[1]==139&&Gt[2]==8?cn(Gt,vt):(Gt[0]&15)!=8||Gt[0]>>4>7||(Gt[0]<<8|Gt[1])%31?lt(Gt,vt):Yn(Gt,vt)}var $t=function Gt(vt,bt,fr,Jt){for(var Ut in vt){var er=vt[Ut],Mt=bt+Ut;er instanceof S?fr[Mt]=[er,Jt]:Array.isArray(er)?fr[Mt]=[er[0],Re(Jt,er[1])]:Gt(er,Mt+"/",fr,Jt)}};function Ot(Gt,vt){var bt=Gt.length;if(!vt&&typeof TextEncoder!="undefined")return new TextEncoder().encode(Gt);for(var fr=new S(Gt.length+(Gt.length>>>1)),Jt=0,Ut=function(Ir){fr[Jt++]=Ir},er=0;er<bt;++er){if(Jt+5>fr.length){var Mt=new S(Jt+8+(bt-er<<1));Mt.set(fr),fr=Mt}var Zt=Gt.charCodeAt(er);Zt<128||vt?Ut(Zt):Zt<2048?(Ut(192|Zt>>>6),Ut(128|Zt&63)):Zt>55295&&Zt<57344?(Zt=65536+(Zt&1023<<10)|Gt.charCodeAt(++er)&1023,Ut(240|Zt>>>18),Ut(128|Zt>>>12&63),Ut(128|Zt>>>6&63),Ut(128|Zt&63)):(Ut(224|Zt>>>12),Ut(128|Zt>>>6&63),Ut(128|Zt&63))}return F(fr,0,Jt)}function ke(Gt,vt){var bt="";if(!vt&&typeof TextDecoder!="undefined")return new TextDecoder().decode(Gt);for(var fr=0;fr<Gt.length;){var Jt=Gt[fr++];Jt<128||vt?bt+=String.fromCharCode(Jt):Jt<224?bt+=String.fromCharCode((Jt&31)<<6|Gt[fr++]&63):Jt<240?bt+=String.fromCharCode((Jt&15)<<12|(Gt[fr++]&63)<<6|Gt[fr++]&63):(Jt=((Jt&15)<<18|(Gt[fr++]&63)<<12|(Gt[fr++]&63)<<6|Gt[fr++]&63)-65536,bt+=String.fromCharCode(55296|Jt>>10,56320|Jt&1023))}return bt}var Me=function(vt,bt){return bt+30+he(vt,bt+26)+he(vt,bt+28)},Be=function(vt,bt,fr){var Jt=he(vt,bt+28),Ut=ke(vt.subarray(bt+46,bt+46+Jt),!(he(vt,bt+8)&2048)),er=bt+46+Jt,Mt=fr?at(vt,er):[ye(vt,bt+20),ye(vt,bt+24),ye(vt,bt+42)],Zt=Mt[0],Hr=Mt[1],Ir=Mt[2];return[he(vt,bt+10),Zt,Hr,Ut,er+he(vt,bt+30)+he(vt,bt+32),Ir]},at=function(vt,bt){for(;he(vt,bt)!=1;bt+=4+he(vt,bt+2));return[ye(vt,bt+12),ye(vt,bt+4),ye(vt,bt+20)]},At=function(vt,bt,fr,Jt,Ut,er,Mt,Zt,Hr,Ir){var Lr=er.length,dn=Jt.length;Ie(vt,bt,Hr!=null?33639248:67324752),bt+=4,Hr!=null&&(vt[bt]=20,bt+=2),vt[bt]=20,bt+=2,vt[bt++]=Ir==8&&(Zt.level==1?6:Zt.level<6?4:Zt.level==9?2:0),vt[bt++]=Mt&&8,vt[bt]=Ir,bt+=2;var gn=new Date(Zt.mtime||Date.now()),ri=gn.getFullYear()-1980;if(ri<0||ri>119)throw"date not in range 1980-2099";Ie(vt,bt,(ri<<24)*2|gn.getMonth()+1<<21|gn.getDate()<<16|gn.getHours()<<11|gn.getMinutes()<<5|gn.getSeconds()>>>1),bt+=4,Ie(vt,bt,fr),Ie(vt,bt+4,dn),Ie(vt,bt+8,Ut),Ie(vt,bt+12,Lr),bt+=16,Hr!=null&&(Ie(vt,bt+=10,Hr),bt+=4),vt.set(er,bt),bt+=Lr,Hr==null&&vt.set(Jt,bt)},Ct=function(vt,bt,fr,Jt,Ut){Ie(vt,bt,101010256),Ie(vt,bt+8,fr),Ie(vt,bt+10,fr),Ie(vt,bt+12,Jt),Ie(vt,bt+16,Ut)};function Yt(Gt,vt,bt){if(bt||(bt=vt,vt={}),typeof bt!="function")throw"no callback";var fr={};$t(Gt,"",fr,vt);var Jt=Object.keys(fr),Ut=Jt.length,er=0,Mt=0,Zt=Ut,Hr=new Array(Ut),Ir=[],Lr=function(){for(var pi=0;pi<Ir.length;++pi)Ir[pi]()},dn=function(){var pi=new S(Mt+22),Ci=er,Ni=Mt-er;Mt=0;for(var zi=0;zi<Zt;++zi){var it=Hr[zi];try{At(pi,Mt,it.c,it.d,it.m,it.n,it.u,it.p,null,it.t),At(pi,er,it.c,it.d,it.m,it.n,it.u,it.p,Mt,it.t),er+=46+it.n.length,Mt+=30+it.n.length+it.d.length}catch(Ne){return bt(Ne,null)}}Ct(pi,er,Hr.length,Ni,Ci),bt(null,pi)};Ut||dn();for(var gn=function(pi){var Ci=Jt[pi],Ni=fr[Ci],zi=Ni[0],it=Ni[1],Ne=le(),He=zi.length;Ne.p(zi);var Ge=Ot(Ci),nt=Ge.length,$e=it.level==0?0:8,ot=function(xt,rr){if(xt)Lr(),bt(xt,null);else{var Fr=rr.length;Hr[pi]={t:$e,d:rr,m:He,c:Ne.d(),u:Ci.length!=Fr,n:Ge,p:it},er+=30+nt+Fr,Mt+=76+2*nt+Fr,--Ut||dn()}};if(Ge.length>65535&&ot("filename too long",null),!$e)ot(null,zi);else if(He<16e4)try{ot(null,Bt(zi,it))}catch(Pt){ot(Pt,null)}else Ir.push(Tt(zi,it,ot))},ri=0;ri<Zt;++ri)gn(ri);return Lr}function Pr(Gt,vt){vt===void 0&&(vt={});var bt={},fr=[];$t(Gt,"",bt,vt);var Jt=0,Ut=0;for(var er in bt){var Mt=bt[er],Zt=Mt[0],Hr=Mt[1],Ir=Hr.level==0?0:8,Lr=Ot(er),dn=Lr.length;if(Lr.length>65535)throw"filename too long";var gn=Ir?Bt(Zt,Hr):Zt,ri=gn.length,Zn=le();Zn.p(Zt),fr.push({t:Ir,d:gn,m:Zt.length,c:Zn.d(),u:er.length!=dn,n:Lr,o:Jt,p:Hr}),Jt+=30+dn+ri,Ut+=76+2*dn+ri}for(var pi=new S(Ut+22),Ci=Jt,Ni=Ut-Jt,zi=0;zi<fr.length;++zi){var it=fr[zi];At(pi,it.o,it.c,it.d,it.m,it.n,it.u,it.p,null,it.t),At(pi,Jt,it.c,it.d,it.m,it.n,it.u,it.p,it.o,it.t),Jt+=46+it.n.length}return Ct(pi,Jt,fr.length,Ni,Ci),pi}function qr(Gt,vt){if(typeof vt!="function")throw"no callback";for(var bt=[],fr=function(){for(var gn=0;gn<bt.length;++gn)bt[gn]()},Jt={},Ut=Gt.length-22;ye(Gt,Ut)!=101010256;--Ut)if(!Ut||Gt.length-Ut>65558){vt("invalid zip file",null);return}var er=he(Gt,Ut+8);er||vt(null,{});var Mt=er,Zt=ye(Gt,Ut+16),Hr=Zt==4294967295;if(Hr){if(Ut=ye(Gt,Ut-12),ye(Gt,Ut)!=101075792)throw"invalid zip file";Mt=er=ye(Gt,Ut+32),Zt=ye(Gt,Ut+48)}for(var Ir=function(gn){var ri=Be(Gt,Zt,Hr),Zn=ri[0],pi=ri[1],Ci=ri[2],Ni=ri[3],zi=ri[4],it=ri[5],Ne=Me(Gt,it);Zt=zi;var He=function($e,ot){$e?(fr(),vt($e,null)):(Jt[Ni]=ot,--er||vt(null,Jt))};if(!Zn)He(null,F(Gt,Ne,Ne+pi));else if(Zn==8){var Ge=Gt.subarray(Ne,Ne+pi);if(pi<32e4)try{He(null,lt(Ge,new S(Ci)))}catch(nt){He(nt,null)}else bt.push(oe(Ge,{size:Ci},He))}else He("unknown compression type "+Zn,null)},Lr=0;Lr<Mt;++Lr)Ir(Lr);return fr}function An(Gt){for(var vt={},bt=Gt.length-22;ye(Gt,bt)!=101010256;--bt)if(!bt||Gt.length-bt>65558)throw"invalid zip file";var fr=he(Gt,bt+8);if(!fr)return{};var Jt=ye(Gt,bt+16),Ut=Jt==4294967295;if(Ut){if(bt=ye(Gt,bt-12),ye(Gt,bt)!=101075792)throw"invalid zip file";fr=ye(Gt,bt+32),Jt=ye(Gt,bt+48)}for(var er=0;er<fr;++er){var Mt=Be(Gt,Jt,Ut),Zt=Mt[0],Hr=Mt[1],Ir=Mt[2],Lr=Mt[3],dn=Mt[4],gn=Mt[5],ri=Me(Gt,gn);if(Jt=dn,!Zt)vt[Lr]=F(Gt,ri,ri+Hr);else if(Zt==8)vt[Lr]=lt(Gt.subarray(ri,ri+Hr),new S(Ir));else throw"unknown compression type "+Zt}return vt}},cv67:function(k,D,i){(function(y,p){k.exports=D=p(i("Ib8C"))})(this,function(y){return function(p){var S=y,A=S.lib,m=A.WordArray,f=A.Hasher,d=S.algo,l=[];(function(){for(var u=0;u<64;u++)l[u]=p.abs(p.sin(u+1))*4294967296|0})();var o=d.MD5=f.extend({_doReset:function(){this._hash=new m.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(r,s){for(var c=0;c<16;c++){var h=s+c,g=r[h];r[h]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360}var v=this._hash.words,b=r[s+0],w=r[s+1],x=r[s+2],T=r[s+3],O=r[s+4],E=r[s+5],C=r[s+6],I=r[s+7],_=r[s+8],F=r[s+9],R=r[s+10],B=r[s+11],M=r[s+12],X=r[s+13],P=r[s+14],z=r[s+15],W=v[0],U=v[1],V=v[2],Q=v[3];W=n(W,U,V,Q,b,7,l[0]),Q=n(Q,W,U,V,w,12,l[1]),V=n(V,Q,W,U,x,17,l[2]),U=n(U,V,Q,W,T,22,l[3]),W=n(W,U,V,Q,O,7,l[4]),Q=n(Q,W,U,V,E,12,l[5]),V=n(V,Q,W,U,C,17,l[6]),U=n(U,V,Q,W,I,22,l[7]),W=n(W,U,V,Q,_,7,l[8]),Q=n(Q,W,U,V,F,12,l[9]),V=n(V,Q,W,U,R,17,l[10]),U=n(U,V,Q,W,B,22,l[11]),W=n(W,U,V,Q,M,7,l[12]),Q=n(Q,W,U,V,X,12,l[13]),V=n(V,Q,W,U,P,17,l[14]),U=n(U,V,Q,W,z,22,l[15]),W=t(W,U,V,Q,w,5,l[16]),Q=t(Q,W,U,V,C,9,l[17]),V=t(V,Q,W,U,B,14,l[18]),U=t(U,V,Q,W,b,20,l[19]),W=t(W,U,V,Q,E,5,l[20]),Q=t(Q,W,U,V,R,9,l[21]),V=t(V,Q,W,U,z,14,l[22]),U=t(U,V,Q,W,O,20,l[23]),W=t(W,U,V,Q,F,5,l[24]),Q=t(Q,W,U,V,P,9,l[25]),V=t(V,Q,W,U,T,14,l[26]),U=t(U,V,Q,W,_,20,l[27]),W=t(W,U,V,Q,X,5,l[28]),Q=t(Q,W,U,V,x,9,l[29]),V=t(V,Q,W,U,I,14,l[30]),U=t(U,V,Q,W,M,20,l[31]),W=a(W,U,V,Q,E,4,l[32]),Q=a(Q,W,U,V,_,11,l[33]),V=a(V,Q,W,U,B,16,l[34]),U=a(U,V,Q,W,P,23,l[35]),W=a(W,U,V,Q,w,4,l[36]),Q=a(Q,W,U,V,O,11,l[37]),V=a(V,Q,W,U,I,16,l[38]),U=a(U,V,Q,W,R,23,l[39]),W=a(W,U,V,Q,X,4,l[40]),Q=a(Q,W,U,V,b,11,l[41]),V=a(V,Q,W,U,T,16,l[42]),U=a(U,V,Q,W,C,23,l[43]),W=a(W,U,V,Q,F,4,l[44]),Q=a(Q,W,U,V,M,11,l[45]),V=a(V,Q,W,U,z,16,l[46]),U=a(U,V,Q,W,x,23,l[47]),W=e(W,U,V,Q,b,6,l[48]),Q=e(Q,W,U,V,I,10,l[49]),V=e(V,Q,W,U,P,15,l[50]),U=e(U,V,Q,W,E,21,l[51]),W=e(W,U,V,Q,M,6,l[52]),Q=e(Q,W,U,V,T,10,l[53]),V=e(V,Q,W,U,R,15,l[54]),U=e(U,V,Q,W,w,21,l[55]),W=e(W,U,V,Q,_,6,l[56]),Q=e(Q,W,U,V,z,10,l[57]),V=e(V,Q,W,U,C,15,l[58]),U=e(U,V,Q,W,X,21,l[59]),W=e(W,U,V,Q,O,6,l[60]),Q=e(Q,W,U,V,B,10,l[61]),V=e(V,Q,W,U,x,15,l[62]),U=e(U,V,Q,W,F,21,l[63]),v[0]=v[0]+W|0,v[1]=v[1]+U|0,v[2]=v[2]+V|0,v[3]=v[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 g=p.floor(c/4294967296),v=c;s[(h+64>>>9<<4)+15]=(g<<8|g>>>24)&16711935|(g<<24|g>>>8)&4278255360,s[(h+64>>>9<<4)+14]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,r.sigBytes=(s.length+1)*4,this._process();for(var b=this._hash,w=b.words,x=0;x<4;x++){var T=w[x];w[x]=(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 n(u,r,s,c,h,g,v){var b=u+(r&s|~r&c)+h+v;return(b<<g|b>>>32-g)+r}function t(u,r,s,c,h,g,v){var b=u+(r&c|s&~c)+h+v;return(b<<g|b>>>32-g)+r}function a(u,r,s,c,h,g,v){var b=u+(r^s^c)+h+v;return(b<<g|b>>>32-g)+r}function e(u,r,s,c,h,g,v){var b=u+(s^(r|~c))+h+v;return(b<<g|b>>>32-g)+r}S.MD5=f._createHelper(o),S.HmacMD5=f._createHmacHelper(o)}(Math),y.MD5})},czTT:function(k,D,i){},d4KN:function(k,D,i){var y=i("ProS"),p=i("bYtY");function S(A,m){p.each(m,function(f){f.update="updateView",y.registerAction(f,function(d,l){var o={};return l.eachComponent({mainType:"series",subType:A,query:d},function(n){n[f.method]&&n[f.method](d.name,d.dataIndex);var t=n.getData();t.each(function(a){var e=t.getName(a);o[e]=n.isSelected(e)||!1})}),{name:d.name,selected:o,seriesId:d.seriesId}})})}k.exports=S},dBmv:function(k,D,i){var y=i("ProS"),p=i("szbU");i("vF/C"),i("qwVE"),i("MHoB"),i("PNag"),i("1u/T"),y.registerPreprocessor(p)},dD9F:function(k,D,i){var y=i("NykK"),p=i("shjB"),S=i("ExA7"),A="[object Arguments]",m="[object Array]",f="[object Boolean]",d="[object Date]",l="[object Error]",o="[object Function]",n="[object Map]",t="[object Number]",a="[object Object]",e="[object RegExp]",u="[object Set]",r="[object String]",s="[object WeakMap]",c="[object ArrayBuffer]",h="[object DataView]",g="[object Float32Array]",v="[object Float64Array]",b="[object Int8Array]",w="[object Int16Array]",x="[object Int32Array]",T="[object Uint8Array]",O="[object Uint8ClampedArray]",E="[object Uint16Array]",C="[object Uint32Array]",I={};I[g]=I[v]=I[b]=I[w]=I[x]=I[T]=I[O]=I[E]=I[C]=!0,I[A]=I[m]=I[c]=I[f]=I[h]=I[d]=I[l]=I[o]=I[n]=I[t]=I[a]=I[e]=I[u]=I[r]=I[s]=!1;function _(F){return S(F)&&p(F.length)&&!!I[y(F)]}k.exports=_},"dF/Y":function(k,D,i){"use strict";var y=i("VTBJ"),p=i("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"},A=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:A}))};f.displayName="DownloadOutlined";var d=D.a=p.forwardRef(f)},dMvE:function(k,D){var i={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 A,m=.1,f=.4;return S===0?0:S===1?1:(!m||m<1?(m=1,A=f/4):A=f*Math.asin(1/m)/(2*Math.PI),-(m*Math.pow(2,10*(S-=1))*Math.sin((S-A)*(2*Math.PI)/f)))},elasticOut:function(S){var A,m=.1,f=.4;return S===0?0:S===1?1:(!m||m<1?(m=1,A=f/4):A=f*Math.asin(1/m)/(2*Math.PI),m*Math.pow(2,-10*S)*Math.sin((S-A)*(2*Math.PI)/f)+1)},elasticInOut:function(S){var A,m=.1,f=.4;return S===0?0:S===1?1:(!m||m<1?(m=1,A=f/4):A=f*Math.asin(1/m)/(2*Math.PI),(S*=2)<1?-.5*(m*Math.pow(2,10*(S-=1))*Math.sin((S-A)*(2*Math.PI)/f)):m*Math.pow(2,-10*(S-=1))*Math.sin((S-A)*(2*Math.PI)/f)*.5+1)},backIn:function(S){var A=1.70158;return S*S*((A+1)*S-A)},backOut:function(S){var A=1.70158;return--S*S*((A+1)*S+A)+1},backInOut:function(S){var A=1.70158*1.525;return(S*=2)<1?.5*(S*S*((A+1)*S-A)):.5*((S-=2)*S*((A+1)*S+A)+2)},bounceIn:function(S){return 1-i.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?i.bounceIn(S*2)*.5:i.bounceOut(S*2-1)*.5+.5}},y=i;k.exports=y},dQei:function(k,D){for(var i={glog:function(S){if(S<1)throw new Error("glog("+S+")");return i.LOG_TABLE[S]},gexp:function(S){for(;S<0;)S+=255;for(;S>=256;)S-=255;return i.EXP_TABLE[S]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},y=0;y<8;y++)i.EXP_TABLE[y]=1<<y;for(var y=8;y<256;y++)i.EXP_TABLE[y]=i.EXP_TABLE[y-4]^i.EXP_TABLE[y-5]^i.EXP_TABLE[y-6]^i.EXP_TABLE[y-8];for(var y=0;y<255;y++)i.LOG_TABLE[i.EXP_TABLE[y]]=y;k.exports=i},dWSS:function(k,D,i){var y=i("dQei");function p(S,A){if(S.length==null)throw new Error(S.length+"/"+A);for(var m=0;m<S.length&&S[m]==0;)m++;this.num=new Array(S.length-m+A);for(var f=0;f<S.length-m;f++)this.num[f]=S[f+m]}p.prototype={get:function(A){return this.num[A]},getLength:function(){return this.num.length},multiply:function(A){for(var m=new Array(this.getLength()+A.getLength()-1),f=0;f<this.getLength();f++)for(var d=0;d<A.getLength();d++)m[f+d]^=y.gexp(y.glog(this.get(f))+y.glog(A.get(d)));return new p(m,0)},mod:function(A){if(this.getLength()-A.getLength()<0)return this;for(var m=y.glog(this.get(0))-y.glog(A.get(0)),f=new Array(this.getLength()),d=0;d<this.getLength();d++)f[d]=this.get(d);for(var d=0;d<A.getLength();d++)f[d]^=y.gexp(y.glog(A.get(d))+m);return new p(f,0).mod(A)}},k.exports=p},diRs:function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("q1tI"),A=i.n(S),m=i("3S7+"),f=i("H84U"),d=i("bogI"),l=function(n,t){var a={};for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&t.indexOf(e)<0&&(a[e]=n[e]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,e=Object.getOwnPropertySymbols(n);u<e.length;u++)t.indexOf(e[u])<0&&Object.prototype.propertyIsEnumerable.call(n,e[u])&&(a[e[u]]=n[e[u]]);return a},o=S.forwardRef(function(n,t){var a=n.prefixCls,e=n.title,u=n.content,r=l(n,["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)))},g=c("popover",a);return S.createElement(m.a,p()({},r,{prefixCls:g,ref:t,overlay:h(g)}))});o.displayName="Popover",o.defaultProps={placement:"top",transitionName:"zoom-big",trigger:"hover",mouseEnterDelay:.1,mouseLeaveDelay:.1,overlayStyle:{}},D.a=o},digP:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y={icon:function(S,A){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:A}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:S}}]}},name:"file",theme:"twotone"};D.default=y},dm2S:function(k,D,i){"use strict";i.d(D,"a",function(){return A});var y=i("ODXe"),p=i("q1tI"),S=i.n(p);function A(m){var f=p.useRef(!1),d=p.useState(m),l=Object(y.a)(d,2),o=l[0],n=l[1];p.useEffect(function(){return f.current=!1,function(){f.current=!0}},[]);function t(a,e){if(e&&f.current)return;n(a)}return[o,t]}},dmGj:function(k,D,i){var y=i("DEFe"),p=i("ProS"),S=p.extendComponentView({type:"geo",init:function(A,m){var f=new y(m,!0);this._mapDraw=f,this.group.add(f.group)},render:function(A,m,f,d){if(d&&d.type==="geoToggleSelect"&&d.from===this.uid)return;var l=this._mapDraw;A.get("show")?l.draw(A,m,f,this,d):this._mapDraw.group.removeAll(),this.group.silent=A.get("silent")},dispose:function(){this._mapDraw&&this._mapDraw.remove()}});k.exports=S},dnwI:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("YH21"),A=i("Kagy"),m=i("IUWy"),f=A.toolbox.dataView,d=new Array(60).join("-"),l=" ";function o(w){var x={},T=[],O=[];return w.eachRawSeries(function(E){var C=E.coordinateSystem;if(C&&(C.type==="cartesian2d"||C.type==="polar")){var I=C.getBaseAxis();if(I.type==="category"){var _=I.dim+"_"+I.index;x[_]||(x[_]={categoryAxis:I,valueAxis:C.getOtherAxis(I),series:[]},O.push({axisDim:I.dim,axisIndex:I.index})),x[_].series.push(E)}else T.push(E)}else T.push(E)}),{seriesGroupByCategoryAxis:x,other:T,meta:O}}function n(w){var x=[];return p.each(w,function(T,O){var E=T.categoryAxis,C=T.valueAxis,I=C.dim,_=[" "].concat(p.map(T.series,function(P){return P.name})),F=[E.model.getCategories()];p.each(T.series,function(P){F.push(P.getRawData().mapArray(I,function(z){return z}))});for(var R=[_.join(l)],B=0;B<F[0].length;B++){for(var M=[],X=0;X<F.length;X++)M.push(F[X][B]);R.push(M.join(l))}x.push(R.join(`
`))}),x.join(`
`+d+`
`)}function t(w){return p.map(w,function(x){var T=x.getRawData(),O=[x.name],E=[];return T.each(T.dimensions,function(){for(var C=arguments.length,I=arguments[C-1],_=T.getName(I),F=0;F<C-1;F++)E[F]=arguments[F];O.push((_?_+l:"")+E.join(l))}),O.join(`
`)}).join(`
`+d+`
`)}function a(w){var x=o(w);return{value:p.filter([n(x.seriesGroupByCategoryAxis),t(x.other)],function(T){return T.replace(/[\n\t\s]/g,"")}).join(`
`+d+`
`),meta:x.meta}}function e(w){return w.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function u(w){var x=w.slice(0,w.indexOf(`
`));if(x.indexOf(l)>=0)return!0}var r=new RegExp("["+l+"]+","g");function s(w){for(var x=w.split(/\n+/g),T=e(x.shift()).split(r),O=[],E=p.map(T,function(F){return{name:F,data:[]}}),C=0;C<x.length;C++){var I=e(x[C]).split(r);O.push(I.shift());for(var _=0;_<I.length;_++)E[_]&&(E[_].data[C]=I[_])}return{series:E,categories:O}}function c(w){for(var x=w.split(/\n+/g),T=e(x.shift()),O=[],E=0;E<x.length;E++){var C=e(x[E]).split(r),I="",_,F=!1;isNaN(C[0])?(F=!0,I=C[0],C=C.slice(1),O[E]={name:I,value:[]},_=O[E].value):_=O[E]=[];for(var R=0;R<C.length;R++)_.push(+C[R]);_.length===1&&(F?O[E].value=_[0]:O[E]=_[0])}return{name:T,data:O}}function h(w,x){var T=w.split(new RegExp(`
*`+d+`
*`,"g")),O={series:[]};return p.each(T,function(E,C){if(u(E)){var I=s(E),_=x[C],F=_.axisDim+"Axis";_&&(O[F]=O[F]||[],O[F][_.axisIndex]={data:I.categories},O.series=O.series.concat(I.series))}else{var I=c(E);O.series.push(I)}}),O}function g(w){this._dom=null,this.model=w}g.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:p.clone(f.title),lang:p.clone(f.lang),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"},g.prototype.onclick=function(w,x){var T=x.getDom(),O=this.model;this._dom&&T.removeChild(this._dom);var E=document.createElement("div");E.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",E.style.backgroundColor=O.get("backgroundColor")||"#fff";var C=document.createElement("h4"),I=O.get("lang")||[];C.innerHTML=I[0]||O.get("title"),C.style.cssText="margin: 10px 20px;",C.style.color=O.get("textColor");var _=document.createElement("div"),F=document.createElement("textarea");_.style.cssText="display:block;width:100%;overflow:auto;";var R=O.get("optionToContent"),B=O.get("contentToOption"),M=a(w);if(typeof R=="function"){var X=R(x.getOption());typeof X=="string"?_.innerHTML=X:p.isDom(X)&&_.appendChild(X)}else _.appendChild(F),F.readOnly=O.get("readOnly"),F.style.cssText="width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;",F.style.color=O.get("textColor"),F.style.borderColor=O.get("textareaBorderColor"),F.style.backgroundColor=O.get("textareaColor"),F.value=M.value;var P=M.meta,z=document.createElement("div");z.style.cssText="position:absolute;bottom:0;left:0;right:0;";var W="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",U=document.createElement("div"),V=document.createElement("div");W+=";background-color:"+O.get("buttonColor"),W+=";color:"+O.get("buttonTextColor");var Q=this;function G(){T.removeChild(E),Q._dom=null}S.addEventListener(U,"click",G),S.addEventListener(V,"click",function(){var te;try{typeof B=="function"?te=B(_,x.getOption()):te=h(F.value,P)}catch($){throw G(),new Error("Data view format error "+$)}te&&x.dispatchAction({type:"changeDataView",newOption:te}),G()}),U.innerHTML=I[1],V.innerHTML=I[2],V.style.cssText=W,U.style.cssText=W,!O.get("readOnly")&&z.appendChild(V),z.appendChild(U),E.appendChild(C),E.appendChild(_),E.appendChild(z),_.style.height=T.clientHeight-80+"px",T.appendChild(E),this._dom=E},g.prototype.remove=function(w,x){this._dom&&x.getDom().removeChild(this._dom)},g.prototype.dispose=function(w,x){this.remove(w,x)};function v(w,x){return p.map(w,function(T,O){var E=x&&x[O];return p.isObject(E)&&!p.isArray(E)?(p.isObject(T)&&!p.isArray(T)&&(T=T.value),p.defaults({value:T},E)):T})}m.register("dataView",g),y.registerAction({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(w,x){var T=[];p.each(w.newOption.series,function(O){var E=x.getSeriesByName(O.name)[0];if(!E)T.push(p.extend({type:"scatter"},O));else{var C=E.get("data");T.push({name:O.name,data:v(O.data,C)})}}),x.mergeOption(p.defaults({series:T},w.newOption))});var b=g;k.exports=b},dqUG:function(k,D,i){var y=i("Gev7"),p=i("bYtY"),S=i("6GrX"),A=i("pzxd"),m=i("gut8"),f=m.ContextCachedBy,d=function(n){y.call(this,n)};d.prototype={constructor:d,type:"text",brush:function(n,t){var a=this.style;this.__dirty&&A.normalizeTextStyle(a,!0),a.fill=a.stroke=a.shadowBlur=a.shadowColor=a.shadowOffsetX=a.shadowOffsetY=null;var e=a.text;if(e!=null&&(e+=""),!A.needDrawText(e,a)){n.__attrCachedBy=f.NONE;return}this.setTransform(n),A.renderText(this,n,e,a,null,t),this.restoreTransform(n)},getBoundingRect:function(){var n=this.style;if(this.__dirty&&A.normalizeTextStyle(n,!0),!this._rect){var t=n.text;t!=null?t+="":t="";var a=S.getBoundingRect(n.text+"",n.font,n.textAlign,n.textVerticalAlign,n.textPadding,n.textLineHeight,n.rich);if(a.x+=n.x||0,a.y+=n.y||0,A.getStroke(n.textStroke,n.textStrokeWidth)){var e=n.textStrokeWidth;a.x-=e/2,a.y-=e/2,a.width+=e,a.height+=e}this._rect=a}return this._rect}},p.inherits(d,y);var l=d;k.exports=l},dtIV:function(k,D,i){"use strict";i.r(D),function(y){i.d(D,"AcroForm",function(){return qe}),i.d(D,"AcroFormAppearance",function(){return oe}),i.d(D,"AcroFormButton",function(){return wt}),i.d(D,"AcroFormCheckBox",function(){return Bt}),i.d(D,"AcroFormChoiceField",function(){return st}),i.d(D,"AcroFormComboBox",function(){return ft}),i.d(D,"AcroFormEditBox",function(){return et}),i.d(D,"AcroFormListBox",function(){return Fe}),i.d(D,"AcroFormPasswordField",function(){return de}),i.d(D,"AcroFormPushButton",function(){return Ht}),i.d(D,"AcroFormRadioButton",function(){return Dt}),i.d(D,"AcroFormTextField",function(){return Ke}),i.d(D,"GState",function(){return X}),i.d(D,"ShadingPattern",function(){return z}),i.d(D,"TilingPattern",function(){return W}),i.d(D,"jsPDF",function(){return U});var p=i("cDf5"),S=i.n(p),A=i("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 m=function(){return typeof window!="undefined"?window:typeof y!="undefined"?y:typeof self!="undefined"?self:this}();function f(){m.console&&typeof m.console.log=="function"&&m.console.log.apply(m.console,arguments)}var d={log:f,warn:function(Ne){m.console&&(typeof m.console.warn=="function"?m.console.warn.apply(m.console,arguments):f.call(null,arguments))},error:function(Ne){m.console&&(typeof m.console.error=="function"?m.console.error.apply(m.console,arguments):f(Ne))}};function l(it,Ne,He){var Ge=new XMLHttpRequest;Ge.open("GET",it),Ge.responseType="blob",Ge.onload=function(){e(Ge.response,Ne,He)},Ge.onerror=function(){d.error("could not download file")},Ge.send()}function o(it){var Ne=new XMLHttpRequest;Ne.open("HEAD",it,!1);try{Ne.send()}catch(He){}return Ne.status>=200&&Ne.status<=299}function n(it){try{it.dispatchEvent(new MouseEvent("click"))}catch(He){var Ne=document.createEvent("MouseEvents");Ne.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),it.dispatchEvent(Ne)}}var t,a,e=m.saveAs||((typeof window=="undefined"?"undefined":S()(window))!=="object"||window!==m?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(it,Ne,He){var Ge=m.URL||m.webkitURL,nt=document.createElement("a");Ne=Ne||it.name||"download",nt.download=Ne,nt.rel="noopener",typeof it=="string"?(nt.href=it,nt.origin!==location.origin?o(nt.href)?l(it,Ne,He):n(nt,nt.target="_blank"):n(nt)):(nt.href=Ge.createObjectURL(it),setTimeout(function(){Ge.revokeObjectURL(nt.href)},4e4),setTimeout(function(){n(nt)},0))}:"msSaveOrOpenBlob"in navigator?function(it,Ne,He){if(Ne=Ne||it.name||"download",typeof it=="string")if(o(it))l(it,Ne,He);else{var Ge=document.createElement("a");Ge.href=it,Ge.target="_blank",setTimeout(function(){n(Ge)})}else navigator.msSaveOrOpenBlob(function(nt,$e){return $e===void 0?$e={autoBom:!1}:S()($e)!=="object"&&(d.warn("Deprecated: Expected third argument to be a object"),$e={autoBom:!$e}),$e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(nt.type)?new Blob([String.fromCharCode(65279),nt],{type:nt.type}):nt}(it,He),Ne)}:function(it,Ne,He,Ge){if((Ge=Ge||open("","_blank"))&&(Ge.document.title=Ge.document.body.innerText="downloading..."),typeof it=="string")return l(it,Ne,He);var nt=it.type==="application/octet-stream",$e=/constructor/i.test(m.HTMLElement)||m.safari,ot=/CriOS\/[\d]+/.test(navigator.userAgent);if((ot||nt&&$e)&&(typeof FileReader=="undefined"?"undefined":S()(FileReader))==="object"){var Pt=new FileReader;Pt.onloadend=function(){var Fr=Pt.result;Fr=ot?Fr:Fr.replace(/^data:[^;]*;/,"data:attachment/file;"),Ge?Ge.location.href=Fr:location=Fr,Ge=null},Pt.readAsDataURL(it)}else{var xt=m.URL||m.webkitURL,rr=xt.createObjectURL(it);Ge?Ge.location=rr:location.href=rr,Ge=null,setTimeout(function(){xt.revokeObjectURL(rr)},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(it){var Ne;it=it||"",this.ok=!1,it.charAt(0)=="#"&&(it=it.substr(1,6)),it={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"}[it=(it=it.replace(/ /g,"")).toLowerCase()]||it;for(var He=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(xt){return[parseInt(xt[1]),parseInt(xt[2]),parseInt(xt[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(xt){return[parseInt(xt[1],16),parseInt(xt[2],16),parseInt(xt[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(xt){return[parseInt(xt[1]+xt[1],16),parseInt(xt[2]+xt[2],16),parseInt(xt[3]+xt[3],16)]}}],Ge=0;Ge<He.length;Ge++){var nt=He[Ge].re,$e=He[Ge].process,ot=nt.exec(it);ot&&(Ne=$e(ot),this.r=Ne[0],this.g=Ne[1],this.b=Ne[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 Pt=this.r.toString(16),xt=this.g.toString(16),rr=this.b.toString(16);return Pt.length==1&&(Pt="0"+Pt),xt.length==1&&(xt="0"+xt),rr.length==1&&(rr="0"+rr),"#"+Pt+xt+rr}}/**
* @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(it,Ne){var He=it[0],Ge=it[1],nt=it[2],$e=it[3];He=c(He,Ge,nt,$e,Ne[0],7,-680876936),$e=c($e,He,Ge,nt,Ne[1],12,-389564586),nt=c(nt,$e,He,Ge,Ne[2],17,606105819),Ge=c(Ge,nt,$e,He,Ne[3],22,-1044525330),He=c(He,Ge,nt,$e,Ne[4],7,-176418897),$e=c($e,He,Ge,nt,Ne[5],12,1200080426),nt=c(nt,$e,He,Ge,Ne[6],17,-1473231341),Ge=c(Ge,nt,$e,He,Ne[7],22,-45705983),He=c(He,Ge,nt,$e,Ne[8],7,1770035416),$e=c($e,He,Ge,nt,Ne[9],12,-1958414417),nt=c(nt,$e,He,Ge,Ne[10],17,-42063),Ge=c(Ge,nt,$e,He,Ne[11],22,-1990404162),He=c(He,Ge,nt,$e,Ne[12],7,1804603682),$e=c($e,He,Ge,nt,Ne[13],12,-40341101),nt=c(nt,$e,He,Ge,Ne[14],17,-1502002290),He=h(He,Ge=c(Ge,nt,$e,He,Ne[15],22,1236535329),nt,$e,Ne[1],5,-165796510),$e=h($e,He,Ge,nt,Ne[6],9,-1069501632),nt=h(nt,$e,He,Ge,Ne[11],14,643717713),Ge=h(Ge,nt,$e,He,Ne[0],20,-373897302),He=h(He,Ge,nt,$e,Ne[5],5,-701558691),$e=h($e,He,Ge,nt,Ne[10],9,38016083),nt=h(nt,$e,He,Ge,Ne[15],14,-660478335),Ge=h(Ge,nt,$e,He,Ne[4],20,-405537848),He=h(He,Ge,nt,$e,Ne[9],5,568446438),$e=h($e,He,Ge,nt,Ne[14],9,-1019803690),nt=h(nt,$e,He,Ge,Ne[3],14,-187363961),Ge=h(Ge,nt,$e,He,Ne[8],20,1163531501),He=h(He,Ge,nt,$e,Ne[13],5,-1444681467),$e=h($e,He,Ge,nt,Ne[2],9,-51403784),nt=h(nt,$e,He,Ge,Ne[7],14,1735328473),He=g(He,Ge=h(Ge,nt,$e,He,Ne[12],20,-1926607734),nt,$e,Ne[5],4,-378558),$e=g($e,He,Ge,nt,Ne[8],11,-2022574463),nt=g(nt,$e,He,Ge,Ne[11],16,1839030562),Ge=g(Ge,nt,$e,He,Ne[14],23,-35309556),He=g(He,Ge,nt,$e,Ne[1],4,-1530992060),$e=g($e,He,Ge,nt,Ne[4],11,1272893353),nt=g(nt,$e,He,Ge,Ne[7],16,-155497632),Ge=g(Ge,nt,$e,He,Ne[10],23,-1094730640),He=g(He,Ge,nt,$e,Ne[13],4,681279174),$e=g($e,He,Ge,nt,Ne[0],11,-358537222),nt=g(nt,$e,He,Ge,Ne[3],16,-722521979),Ge=g(Ge,nt,$e,He,Ne[6],23,76029189),He=g(He,Ge,nt,$e,Ne[9],4,-640364487),$e=g($e,He,Ge,nt,Ne[12],11,-421815835),nt=g(nt,$e,He,Ge,Ne[15],16,530742520),He=v(He,Ge=g(Ge,nt,$e,He,Ne[2],23,-995338651),nt,$e,Ne[0],6,-198630844),$e=v($e,He,Ge,nt,Ne[7],10,1126891415),nt=v(nt,$e,He,Ge,Ne[14],15,-1416354905),Ge=v(Ge,nt,$e,He,Ne[5],21,-57434055),He=v(He,Ge,nt,$e,Ne[12],6,1700485571),$e=v($e,He,Ge,nt,Ne[3],10,-1894986606),nt=v(nt,$e,He,Ge,Ne[10],15,-1051523),Ge=v(Ge,nt,$e,He,Ne[1],21,-2054922799),He=v(He,Ge,nt,$e,Ne[8],6,1873313359),$e=v($e,He,Ge,nt,Ne[15],10,-30611744),nt=v(nt,$e,He,Ge,Ne[6],15,-1560198380),Ge=v(Ge,nt,$e,He,Ne[13],21,1309151649),He=v(He,Ge,nt,$e,Ne[4],6,-145523070),$e=v($e,He,Ge,nt,Ne[11],10,-1120210379),nt=v(nt,$e,He,Ge,Ne[2],15,718787259),Ge=v(Ge,nt,$e,He,Ne[9],21,-343485551),it[0]=I(He,it[0]),it[1]=I(Ge,it[1]),it[2]=I(nt,it[2]),it[3]=I($e,it[3])}function s(it,Ne,He,Ge,nt,$e){return Ne=I(I(Ne,it),I(Ge,$e)),I(Ne<<nt|Ne>>>32-nt,He)}function c(it,Ne,He,Ge,nt,$e,ot){return s(Ne&He|~Ne&Ge,it,Ne,nt,$e,ot)}function h(it,Ne,He,Ge,nt,$e,ot){return s(Ne&Ge|He&~Ge,it,Ne,nt,$e,ot)}function g(it,Ne,He,Ge,nt,$e,ot){return s(Ne^He^Ge,it,Ne,nt,$e,ot)}function v(it,Ne,He,Ge,nt,$e,ot){return s(He^(Ne|~Ge),it,Ne,nt,$e,ot)}function b(it){var Ne,He=it.length,Ge=[1732584193,-271733879,-1732584194,271733878];for(Ne=64;Ne<=it.length;Ne+=64)r(Ge,w(it.substring(Ne-64,Ne)));it=it.substring(Ne-64);var nt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(Ne=0;Ne<it.length;Ne++)nt[Ne>>2]|=it.charCodeAt(Ne)<<(Ne%4<<3);if(nt[Ne>>2]|=128<<(Ne%4<<3),Ne>55)for(r(Ge,nt),Ne=0;Ne<16;Ne++)nt[Ne]=0;return nt[14]=8*He,r(Ge,nt),Ge}function w(it){var Ne,He=[];for(Ne=0;Ne<64;Ne+=4)He[Ne>>2]=it.charCodeAt(Ne)+(it.charCodeAt(Ne+1)<<8)+(it.charCodeAt(Ne+2)<<16)+(it.charCodeAt(Ne+3)<<24);return He}t=m.atob.bind(m),a=m.btoa.bind(m);var x="0123456789abcdef".split("");function T(it){for(var Ne="",He=0;He<4;He++)Ne+=x[it>>8*He+4&15]+x[it>>8*He&15];return Ne}function O(it){return String.fromCharCode((255&it)>>0,(65280&it)>>8,(16711680&it)>>16,(4278190080&it)>>24)}function E(it){return b(it).map(O).join("")}var C=function(it){for(var Ne=0;Ne<it.length;Ne++)it[Ne]=T(it[Ne]);return it.join("")}(b("hello"))!="5d41402abc4b2a76b9719d911017c592";function I(it,Ne){if(C){var He=(65535&it)+(65535&Ne);return(it>>16)+(Ne>>16)+(He>>16)<<16|65535&He}return it+Ne&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 _(it,Ne){var He,Ge,nt,$e;if(it!==He){for(var ot=(nt=it,$e=1+(256/it.length>>0),new Array($e+1).join(nt)),Pt=[],xt=0;xt<256;xt++)Pt[xt]=xt;var rr=0;for(xt=0;xt<256;xt++){var Fr=Pt[xt];rr=(rr+Fr+ot.charCodeAt(xt))%256,Pt[xt]=Pt[rr],Pt[rr]=Fr}He=it,Ge=Pt}else Pt=Ge;var Vr=Ne.length,fn=0,gr=0,Gn="";for(xt=0;xt<Vr;xt++)gr=(gr+(Fr=Pt[fn=(fn+1)%256]))%256,Pt[fn]=Pt[gr],Pt[gr]=Fr,ot=Pt[(Pt[fn]+Pt[gr])%256],Gn+=String.fromCharCode(Ne.charCodeAt(xt)^ot);return Gn}/**
* @license
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
* Author: Owen Leong (@owenl131)
* Date: 15 Oct 2020
* References:
* https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
* https://github.com/foliojs/pdfkit/blob/master/lib/security.js
* http://www.fpdf.org/en/script/script37.php
*/var F={print:4,modify:8,copy:16,"annot-forms":32};function R(it,Ne,He,Ge){this.v=1,this.r=2;var nt=192;it.forEach(function(Pt){if(F.perm!==void 0)throw new Error("Invalid permission: "+Pt);nt+=F[Pt]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var $e=(Ne+this.padding).substr(0,32),ot=(He+this.padding).substr(0,32);this.O=this.processOwnerPassword($e,ot),this.P=-(1+(255^nt)),this.encryptionKey=E($e+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(Ge)).substr(0,5),this.U=_(this.encryptionKey,this.padding)}function B(it){if(/[^\u0000-\u00ff]/.test(it))throw new Error("Invalid PDF Name Object: "+it+", Only accept ASCII characters.");for(var Ne="",He=it.length,Ge=0;Ge<He;Ge++){var nt=it.charCodeAt(Ge);nt<33||nt===35||nt===37||nt===40||nt===41||nt===47||nt===60||nt===62||nt===91||nt===93||nt===123||nt===125||nt>126?Ne+="#"+("0"+nt.toString(16)).slice(-2):Ne+=it[Ge]}return Ne}function M(it){if(S()(it)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var Ne={};this.subscribe=function(He,Ge,nt){if(nt=nt||!1,typeof He!="string"||typeof Ge!="function"||typeof nt!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");Ne.hasOwnProperty(He)||(Ne[He]={});var $e=Math.random().toString(35);return Ne[He][$e]=[Ge,!!nt],$e},this.unsubscribe=function(He){for(var Ge in Ne)if(Ne[Ge][He])return delete Ne[Ge][He],Object.keys(Ne[Ge]).length===0&&delete Ne[Ge],!0;return!1},this.publish=function(He){if(Ne.hasOwnProperty(He)){var Ge=Array.prototype.slice.call(arguments,1),nt=[];for(var $e in Ne[He]){var ot=Ne[He][$e];try{ot[0].apply(it,Ge)}catch(Pt){m.console&&d.error("jsPDF PubSub Error",Pt.message,Pt)}ot[1]&&nt.push($e)}nt.length&&nt.forEach(this.unsubscribe)}},this.getTopics=function(){return Ne}}function X(it){if(!(this instanceof X))return new X(it);var Ne="opacity,stroke-opacity".split(",");for(var He in it)it.hasOwnProperty(He)&&Ne.indexOf(He)>=0&&(this[He]=it[He]);this.id="",this.objectNumber=-1}function P(it,Ne){this.gState=it,this.matrix=Ne,this.id="",this.objectNumber=-1}function z(it,Ne,He,Ge,nt){if(!(this instanceof z))return new z(it,Ne,He,Ge,nt);this.type=it==="axial"?2:3,this.coords=Ne,this.colors=He,P.call(this,Ge,nt)}function W(it,Ne,He,Ge,nt){if(!(this instanceof W))return new W(it,Ne,He,Ge,nt);this.boundingBox=it,this.xStep=Ne,this.yStep=He,this.stream="",this.cloneIndex=0,P.call(this,Ge,nt)}function U(it){var Ne,He=typeof arguments[0]=="string"?arguments[0]:"p",Ge=arguments[1],nt=arguments[2],$e=arguments[3],ot=[],Pt=1,xt=16,rr="S",Fr=null;S()(it=it||{})==="object"&&(He=it.orientation,Ge=it.unit||Ge,nt=it.format||nt,$e=it.compress||it.compressPdf||$e,(Fr=it.encryption||null)!==null&&(Fr.userPassword=Fr.userPassword||"",Fr.ownerPassword=Fr.ownerPassword||"",Fr.userPermissions=Fr.userPermissions||[]),Pt=typeof it.userUnit=="number"?Math.abs(it.userUnit):1,it.precision!==void 0&&(Ne=it.precision),it.floatPrecision!==void 0&&(xt=it.floatPrecision),rr=it.defaultPathOperation||"S"),ot=it.filters||($e===!0?["FlateEncode"]:ot),Ge=Ge||"mm",He=(""+(He||"P")).toLowerCase();var Vr=it.putOnlyUsedFonts||!1,fn={},gr={internal:{},__private__:{}};gr.__private__.PubSub=M;var Gn="1.3",Mr=gr.__private__.getPdfVersion=function(){return Gn};gr.__private__.setPdfVersion=function(jt){Gn=jt};var Rn={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]};gr.__private__.getPageFormats=function(){return Rn};var bn=gr.__private__.getPageFormat=function(jt){return Rn[jt]};nt=nt||"a4";var rn={COMPAT:"compat",ADVANCED:"advanced"},ei=rn.COMPAT;function fi(){this.saveGraphicsState(),Ln(new ra(Nr,0,0,-Nr,0,Ns()*Nr).toString()+" cm"),this.setFontSize(this.getFontSize()/Nr),rr="n",ei=rn.ADVANCED}function Mi(){this.restoreGraphicsState(),rr="S",ei=rn.COMPAT}var $r=gr.__private__.combineFontStyleAndFontWeight=function(jt,sr){if(jt=="bold"&&sr=="normal"||jt=="bold"&&sr==400||jt=="normal"&&sr=="italic"||jt=="bold"&&sr=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return sr&&(jt=sr==400||sr==="normal"?jt==="italic"?"italic":"normal":sr!=700&&sr!=="bold"||jt!=="normal"?(sr==700?"bold":sr)+""+jt:"bold"),jt};gr.advancedAPI=function(jt){var sr=ei===rn.COMPAT;return sr&&fi.call(this),typeof jt!="function"||(jt(this),sr&&Mi.call(this)),this},gr.compatAPI=function(jt){var sr=ei===rn.ADVANCED;return sr&&Mi.call(this),typeof jt!="function"||(jt(this),sr&&fi.call(this)),this},gr.isAdvancedAPI=function(){return ei===rn.ADVANCED};var En,Hn=function(sr){if(ei!==rn.ADVANCED)throw new Error(sr+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},zt=gr.roundToPrecision=gr.__private__.roundToPrecision=function(jt,sr){var _n=Ne||sr;if(isNaN(jt)||isNaN(_n))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return jt.toFixed(_n).replace(/0+$/,"")};En=gr.hpf=gr.__private__.hpf=typeof xt=="number"?function(jt){if(isNaN(jt))throw new Error("Invalid argument passed to jsPDF.hpf");return zt(jt,xt)}:xt==="smart"?function(jt){if(isNaN(jt))throw new Error("Invalid argument passed to jsPDF.hpf");return zt(jt,jt>-1&&jt<1?16:5)}:function(jt){if(isNaN(jt))throw new Error("Invalid argument passed to jsPDF.hpf");return zt(jt,16)};var _t=gr.f2=gr.__private__.f2=function(jt){if(isNaN(jt))throw new Error("Invalid argument passed to jsPDF.f2");return zt(jt,2)},Ft=gr.__private__.f3=function(jt){if(isNaN(jt))throw new Error("Invalid argument passed to jsPDF.f3");return zt(jt,3)},Wt=gr.scale=gr.__private__.scale=function(jt){if(isNaN(jt))throw new Error("Invalid argument passed to jsPDF.scale");return ei===rn.COMPAT?jt*Nr:ei===rn.ADVANCED?jt:void 0},Vt=function(sr){return ei===rn.COMPAT?Ns()-sr:ei===rn.ADVANCED?sr:void 0},Lt=function(sr){return Wt(Vt(sr))};gr.__private__.setPrecision=gr.setPrecision=function(jt){typeof parseInt(jt,10)=="number"&&(Ne=parseInt(jt,10))};var cr,vr="00000000000000000000000000000000",yr=gr.__private__.getFileId=function(){return vr},Dr=gr.__private__.setFileId=function(jt){return vr=jt!==void 0&&/^[a-fA-F0-9]{32}$/.test(jt)?jt.toUpperCase():vr.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),Fr!==null&&(xa=new R(Fr.userPermissions,Fr.userPassword,Fr.ownerPassword,vr)),vr};gr.setFileId=function(jt){return Dr(jt),this},gr.getFileId=function(){return yr()};var Kn=gr.__private__.convertDateToPDFDate=function(jt){var sr=jt.getTimezoneOffset(),_n=sr<0?"+":"-",hi=Math.floor(Math.abs(sr/60)),Nt=Math.abs(sr%60),ce=[_n,On(hi),"'",On(Nt),"'"].join("");return["D:",jt.getFullYear(),On(jt.getMonth()+1),On(jt.getDate()),On(jt.getHours()),On(jt.getMinutes()),On(jt.getSeconds()),ce].join("")},Dn=gr.__private__.convertPDFDateToDate=function(jt){var sr=parseInt(jt.substr(2,4),10),_n=parseInt(jt.substr(6,2),10)-1,hi=parseInt(jt.substr(8,2),10),Nt=parseInt(jt.substr(10,2),10),ce=parseInt(jt.substr(12,2),10),Ee=parseInt(jt.substr(14,2),10);return new Date(sr,_n,hi,Nt,ce,Ee,0)},di=gr.__private__.setCreationDate=function(jt){var sr;if(jt===void 0&&(jt=new Date),jt instanceof Date)sr=Kn(jt);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(jt))throw new Error("Invalid argument passed to jsPDF.setCreationDate");sr=jt}return cr=sr},mn=gr.__private__.getCreationDate=function(jt){var sr=cr;return jt==="jsDate"&&(sr=Dn(cr)),sr};gr.setCreationDate=function(jt){return di(jt),this},gr.getCreationDate=function(jt){return mn(jt)};var Ur,On=gr.__private__.padd2=function(jt){return("0"+parseInt(jt)).slice(-2)},zn=gr.__private__.padd2Hex=function(jt){return("00"+(jt=jt.toString())).substr(jt.length)},qn=0,oi=[],xi=[],Di=0,Li=[],aa=[],ma=!1,na=xi,Aa=function(){qn=0,Di=0,xi=[],oi=[],Li=[],Ia=_a(),Wa=_a()};gr.__private__.setCustomOutputDestination=function(jt){ma=!0,na=jt};var yi=function(sr){ma||(na=sr)};gr.__private__.resetCustomOutputDestination=function(){ma=!1,na=xi};var Ln=gr.__private__.out=function(jt){return jt=jt.toString(),Di+=jt.length+1,na.push(jt),na},ji=gr.__private__.write=function(jt){return Ln(arguments.length===1?jt.toString():Array.prototype.join.call(arguments," "))},ha=gr.__private__.getArrayBuffer=function(jt){for(var sr=jt.length,_n=new ArrayBuffer(sr),hi=new Uint8Array(_n);sr--;)hi[sr]=jt.charCodeAt(sr);return _n},ea=[["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]];gr.__private__.getStandardFonts=function(){return ea};var ca=it.fontSize||16;gr.__private__.setFontSize=gr.setFontSize=function(jt){return ca=ei===rn.ADVANCED?jt/Nr:jt,this};var kr,Sr=gr.__private__.getFontSize=gr.getFontSize=function(){return ei===rn.COMPAT?ca:ca*Nr},yn=it.R2L||!1;gr.__private__.setR2L=gr.setR2L=function(jt){return yn=jt,this},gr.__private__.getR2L=gr.getR2L=function(){return yn};var dr,Rr=gr.__private__.setZoomMode=function(jt){var sr=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(jt))kr=jt;else if(isNaN(jt)){if(sr.indexOf(jt)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+jt+'" is not recognized.');kr=jt}else kr=parseInt(jt,10)};gr.__private__.getZoomMode=function(){return kr};var Gr,ln=gr.__private__.setPageMode=function(jt){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(jt)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+jt+'" is not recognized.');dr=jt};gr.__private__.getPageMode=function(){return dr};var kn=gr.__private__.setLayoutMode=function(jt){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(jt)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+jt+'" is not recognized.');Gr=jt};gr.__private__.getLayoutMode=function(){return Gr},gr.__private__.setDisplayMode=gr.setDisplayMode=function(jt,sr,_n){return Rr(jt),kn(sr),ln(_n),this};var kt={title:"",subject:"",author:"",keywords:"",creator:""};gr.__private__.getDocumentProperty=function(jt){if(Object.keys(kt).indexOf(jt)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return kt[jt]},gr.__private__.getDocumentProperties=function(){return kt},gr.__private__.setDocumentProperties=gr.setProperties=gr.setDocumentProperties=function(jt){for(var sr in kt)kt.hasOwnProperty(sr)&&jt[sr]&&(kt[sr]=jt[sr]);return this},gr.__private__.setDocumentProperty=function(jt,sr){if(Object.keys(kt).indexOf(jt)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return kt[jt]=sr};var _r,Nr,Jr,xn,Tn,wn={},$n={},Vn=[],mi={},Ri={},vi={},Bi={},Gi=null,ta=0,Pi=[],Ki=new M(gr),Hi=it.hotfixes||[],Qi={},da={},Oa=[],ra=function jt(sr,_n,hi,Nt,ce,Ee){if(!(this instanceof jt))return new jt(sr,_n,hi,Nt,ce,Ee);isNaN(sr)&&(sr=1),isNaN(_n)&&(_n=0),isNaN(hi)&&(hi=0),isNaN(Nt)&&(Nt=1),isNaN(ce)&&(ce=0),isNaN(Ee)&&(Ee=0),this._matrix=[sr,_n,hi,Nt,ce,Ee]};Object.defineProperty(ra.prototype,"sx",{get:function(){return this._matrix[0]},set:function(sr){this._matrix[0]=sr}}),Object.defineProperty(ra.prototype,"shy",{get:function(){return this._matrix[1]},set:function(sr){this._matrix[1]=sr}}),Object.defineProperty(ra.prototype,"shx",{get:function(){return this._matrix[2]},set:function(sr){this._matrix[2]=sr}}),Object.defineProperty(ra.prototype,"sy",{get:function(){return this._matrix[3]},set:function(sr){this._matrix[3]=sr}}),Object.defineProperty(ra.prototype,"tx",{get:function(){return this._matrix[4]},set:function(sr){this._matrix[4]=sr}}),Object.defineProperty(ra.prototype,"ty",{get:function(){return this._matrix[5]},set:function(sr){this._matrix[5]=sr}}),Object.defineProperty(ra.prototype,"a",{get:function(){return this._matrix[0]},set:function(sr){this._matrix[0]=sr}}),Object.defineProperty(ra.prototype,"b",{get:function(){return this._matrix[1]},set:function(sr){this._matrix[1]=sr}}),Object.defineProperty(ra.prototype,"c",{get:function(){return this._matrix[2]},set:function(sr){this._matrix[2]=sr}}),Object.defineProperty(ra.prototype,"d",{get:function(){return this._matrix[3]},set:function(sr){this._matrix[3]=sr}}),Object.defineProperty(ra.prototype,"e",{get:function(){return this._matrix[4]},set:function(sr){this._matrix[4]=sr}}),Object.defineProperty(ra.prototype,"f",{get:function(){return this._matrix[5]},set:function(sr){this._matrix[5]=sr}}),Object.defineProperty(ra.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(ra.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(ra.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(ra.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),ra.prototype.join=function(jt){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(En).join(jt)},ra.prototype.multiply=function(jt){var sr=jt.sx*this.sx+jt.shy*this.shx,_n=jt.sx*this.shy+jt.shy*this.sy,hi=jt.shx*this.sx+jt.sy*this.shx,Nt=jt.shx*this.shy+jt.sy*this.sy,ce=jt.tx*this.sx+jt.ty*this.shx+this.tx,Ee=jt.tx*this.shy+jt.ty*this.sy+this.ty;return new ra(sr,_n,hi,Nt,ce,Ee)},ra.prototype.decompose=function(){var jt=this.sx,sr=this.shy,_n=this.shx,hi=this.sy,Nt=this.tx,ce=this.ty,Ee=Math.sqrt(jt*jt+sr*sr),Le=(jt/=Ee)*_n+(sr/=Ee)*hi;_n-=jt*Le,hi-=sr*Le;var Qe=Math.sqrt(_n*_n+hi*hi);return Le/=Qe,jt*(hi/=Qe)<sr*(_n/=Qe)&&(jt=-jt,sr=-sr,Le=-Le,Ee=-Ee),{scale:new ra(Ee,0,0,Qe,0,0),translate:new ra(1,0,0,1,Nt,ce),rotate:new ra(jt,sr,-sr,jt,0,0),skew:new ra(1,0,Le,1,0,0)}},ra.prototype.toString=function(jt){return this.join(" ")},ra.prototype.inversed=function(){var jt=this.sx,sr=this.shy,_n=this.shx,hi=this.sy,Nt=this.tx,ce=this.ty,Ee=1/(jt*hi-sr*_n),Le=hi*Ee,Qe=-sr*Ee,Rt=-_n*Ee,lr=jt*Ee;return new ra(Le,Qe,Rt,lr,-Le*Nt-Rt*ce,-Qe*Nt-lr*ce)},ra.prototype.applyToPoint=function(jt){var sr=jt.x*this.sx+jt.y*this.shx+this.tx,_n=jt.x*this.shy+jt.y*this.sy+this.ty;return new zs(sr,_n)},ra.prototype.applyToRectangle=function(jt){var sr=this.applyToPoint(jt),_n=this.applyToPoint(new zs(jt.x+jt.w,jt.y+jt.h));return new Es(sr.x,sr.y,_n.x-sr.x,_n.y-sr.y)},ra.prototype.clone=function(){var jt=this.sx,sr=this.shy,_n=this.shx,hi=this.sy,Nt=this.tx,ce=this.ty;return new ra(jt,sr,_n,hi,Nt,ce)},gr.Matrix=ra;var Da=gr.matrixMult=function(jt,sr){return sr.multiply(jt)},Ra=new ra(1,0,0,1,0,0);gr.unitMatrix=gr.identityMatrix=Ra;var va=function(sr,_n){if(!Ri[sr]){var hi=(_n instanceof z?"Sh":"P")+(Object.keys(mi).length+1).toString(10);_n.id=hi,Ri[sr]=hi,mi[hi]=_n,Ki.publish("addPattern",_n)}};gr.ShadingPattern=z,gr.TilingPattern=W,gr.addShadingPattern=function(jt,sr){return Hn("addShadingPattern()"),va(jt,sr),this},gr.beginTilingPattern=function(jt){Hn("beginTilingPattern()"),tl(jt.boundingBox[0],jt.boundingBox[1],jt.boundingBox[2]-jt.boundingBox[0],jt.boundingBox[3]-jt.boundingBox[1],jt.matrix)},gr.endTilingPattern=function(jt,sr){Hn("endTilingPattern()"),sr.stream=aa[Ur].join(`
`),va(jt,sr),Ki.publish("endTilingPattern",sr),Oa.pop().restore()};var ga=gr.__private__.newObject=function(){var jt=_a();return ya(jt,!0),jt},_a=gr.__private__.newObjectDeferred=function(){return qn++,oi[qn]=function(){return Di},qn},ya=function(sr,_n){return _n=typeof _n=="boolean"&&_n,oi[sr]=Di,_n&&Ln(sr+" 0 obj"),sr},Ga=gr.__private__.newAdditionalObject=function(){var jt={objId:_a(),content:""};return Li.push(jt),jt},Ia=_a(),Wa=_a(),no=gr.__private__.decodeColorString=function(jt){var sr=jt.split(" ");if(sr.length!==2||sr[1]!=="g"&&sr[1]!=="G")sr.length===5&&(sr[4]==="k"||sr[4]==="K")&&(sr=[(1-sr[0])*(1-sr[3]),(1-sr[1])*(1-sr[3]),(1-sr[2])*(1-sr[3]),"r"]);else{var _n=parseFloat(sr[0]);sr=[_n,_n,_n,"r"]}for(var hi="#",Nt=0;Nt<3;Nt++)hi+=("0"+Math.floor(255*parseFloat(sr[Nt])).toString(16)).slice(-2);return hi},io=gr.__private__.encodeColorString=function(jt){var sr;typeof jt=="string"&&(jt={ch1:jt});var _n=jt.ch1,hi=jt.ch2,Nt=jt.ch3,ce=jt.ch4,Ee=jt.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof _n=="string"&&_n.charAt(0)!=="#"){var Le=new u(_n);if(Le.ok)_n=Le.toHex();else if(!/^\d*\.?\d*$/.test(_n))throw new Error('Invalid color "'+_n+'" passed to jsPDF.encodeColorString.')}if(typeof _n=="string"&&/^#[0-9A-Fa-f]{3}$/.test(_n)&&(_n="#"+_n[1]+_n[1]+_n[2]+_n[2]+_n[3]+_n[3]),typeof _n=="string"&&/^#[0-9A-Fa-f]{6}$/.test(_n)){var Qe=parseInt(_n.substr(1),16);_n=Qe>>16&255,hi=Qe>>8&255,Nt=255&Qe}if(hi===void 0||ce===void 0&&_n===hi&&hi===Nt)if(typeof _n=="string")sr=_n+" "+Ee[0];else switch(jt.precision){case 2:sr=_t(_n/255)+" "+Ee[0];break;case 3:default:sr=Ft(_n/255)+" "+Ee[0]}else if(ce===void 0||S()(ce)==="object"){if(ce&&!isNaN(ce.a)&&ce.a===0)return sr=["1.","1.","1.",Ee[1]].join(" ");if(typeof _n=="string")sr=[_n,hi,Nt,Ee[1]].join(" ");else switch(jt.precision){case 2:sr=[_t(_n/255),_t(hi/255),_t(Nt/255),Ee[1]].join(" ");break;default:case 3:sr=[Ft(_n/255),Ft(hi/255),Ft(Nt/255),Ee[1]].join(" ")}}else if(typeof _n=="string")sr=[_n,hi,Nt,ce,Ee[2]].join(" ");else switch(jt.precision){case 2:sr=[_t(_n),_t(hi),_t(Nt),_t(ce),Ee[2]].join(" ");break;case 3:default:sr=[Ft(_n),Ft(hi),Ft(Nt),Ft(ce),Ee[2]].join(" ")}return sr},uo=gr.__private__.getFilters=function(){return ot},$i=gr.__private__.putStream=function(jt){var sr=(jt=jt||{}).data||"",_n=jt.filters||uo(),hi=jt.alreadyAppliedFilters||[],Nt=jt.addLength1||!1,ce=sr.length,Ee=jt.objectId,Le=function(Ai){return Ai};if(Fr!==null&&Ee===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");Fr!==null&&(Le=xa.encryptor(Ee,0));var Qe={};_n===!0&&(_n=["FlateEncode"]);var Rt=jt.additionalKeyValues||[],lr=(Qe=U.API.processDataByFilters!==void 0?U.API.processDataByFilters(sr,_n):{data:sr,reverseChain:[]}).reverseChain+(Array.isArray(hi)?hi.join(" "):hi.toString());if(Qe.data.length!==0&&(Rt.push({key:"Length",value:Qe.data.length}),Nt===!0&&Rt.push({key:"Length1",value:ce})),lr.length!=0)if(lr.split("/").length-1==1)Rt.push({key:"Filter",value:lr});else{Rt.push({key:"Filter",value:"["+lr+"]"});for(var Qr=0;Qr<Rt.length;Qr+=1)if(Rt[Qr].key==="DecodeParms"){for(var pn=[],In=0;In<Qe.reverseChain.split("/").length-1;In+=1)pn.push("null");pn.push(Rt[Qr].value),Rt[Qr].value="["+pn.join(" ")+"]"}}Ln("<<");for(var li=0;li<Rt.length;li++)Ln("/"+Rt[li].key+" "+Rt[li].value);Ln(">>"),Qe.data.length!==0&&(Ln("stream"),Ln(Le(Qe.data)),Ln("endstream"))},mo=gr.__private__.putPage=function(jt){var sr=jt.number,_n=jt.data,hi=jt.objId,Nt=jt.contentsObjId;ya(hi,!0),Ln("<</Type /Page"),Ln("/Parent "+jt.rootDictionaryObjId+" 0 R"),Ln("/Resources "+jt.resourceDictionaryObjId+" 0 R"),Ln("/MediaBox ["+parseFloat(En(jt.mediaBox.bottomLeftX))+" "+parseFloat(En(jt.mediaBox.bottomLeftY))+" "+En(jt.mediaBox.topRightX)+" "+En(jt.mediaBox.topRightY)+"]"),jt.cropBox!==null&&Ln("/CropBox ["+En(jt.cropBox.bottomLeftX)+" "+En(jt.cropBox.bottomLeftY)+" "+En(jt.cropBox.topRightX)+" "+En(jt.cropBox.topRightY)+"]"),jt.bleedBox!==null&&Ln("/BleedBox ["+En(jt.bleedBox.bottomLeftX)+" "+En(jt.bleedBox.bottomLeftY)+" "+En(jt.bleedBox.topRightX)+" "+En(jt.bleedBox.topRightY)+"]"),jt.trimBox!==null&&Ln("/TrimBox ["+En(jt.trimBox.bottomLeftX)+" "+En(jt.trimBox.bottomLeftY)+" "+En(jt.trimBox.topRightX)+" "+En(jt.trimBox.topRightY)+"]"),jt.artBox!==null&&Ln("/ArtBox ["+En(jt.artBox.bottomLeftX)+" "+En(jt.artBox.bottomLeftY)+" "+En(jt.artBox.topRightX)+" "+En(jt.artBox.topRightY)+"]"),typeof jt.userUnit=="number"&&jt.userUnit!==1&&Ln("/UserUnit "+jt.userUnit),Ki.publish("putPage",{objId:hi,pageContext:Pi[sr],pageNumber:sr,page:_n}),Ln("/Contents "+Nt+" 0 R"),Ln(">>"),Ln("endobj");var ce=_n.join(`
`);return ei===rn.ADVANCED&&(ce+=`
Q`),ya(Nt,!0),$i({data:ce,filters:uo(),objectId:Nt}),Ln("endobj"),hi},Eo=gr.__private__.putPages=function(){var jt,sr,_n=[];for(jt=1;jt<=ta;jt++)Pi[jt].objId=_a(),Pi[jt].contentsObjId=_a();for(jt=1;jt<=ta;jt++)_n.push(mo({number:jt,data:aa[jt],objId:Pi[jt].objId,contentsObjId:Pi[jt].contentsObjId,mediaBox:Pi[jt].mediaBox,cropBox:Pi[jt].cropBox,bleedBox:Pi[jt].bleedBox,trimBox:Pi[jt].trimBox,artBox:Pi[jt].artBox,userUnit:Pi[jt].userUnit,rootDictionaryObjId:Ia,resourceDictionaryObjId:Wa}));ya(Ia,!0),Ln("<</Type /Pages");var hi="/Kids [";for(sr=0;sr<ta;sr++)hi+=_n[sr]+" 0 R ";Ln(hi+"]"),Ln("/Count "+ta),Ln(">>"),Ln("endobj"),Ki.publish("postPutPages")},ao=function(sr){Ki.publish("putFont",{font:sr,out:Ln,newObject:ga,putStream:$i}),sr.isAlreadyPutted!==!0&&(sr.objectNumber=ga(),Ln("<<"),Ln("/Type /Font"),Ln("/BaseFont /"+B(sr.postScriptName)),Ln("/Subtype /Type1"),typeof sr.encoding=="string"&&Ln("/Encoding /"+sr.encoding),Ln("/FirstChar 32"),Ln("/LastChar 255"),Ln(">>"),Ln("endobj"))},Co=function(){for(var sr in wn)wn.hasOwnProperty(sr)&&(Vr===!1||Vr===!0&&fn.hasOwnProperty(sr))&&ao(wn[sr])},Ko=function(sr){sr.objectNumber=ga();var _n=[];_n.push({key:"Type",value:"/XObject"}),_n.push({key:"Subtype",value:"/Form"}),_n.push({key:"BBox",value:"["+[En(sr.x),En(sr.y),En(sr.x+sr.width),En(sr.y+sr.height)].join(" ")+"]"}),_n.push({key:"Matrix",value:"["+sr.matrix.toString()+"]"});var hi=sr.pages[1].join(`
`);$i({data:hi,additionalKeyValues:_n,objectId:sr.objectNumber}),Ln("endobj")},to=function(){for(var sr in Qi)Qi.hasOwnProperty(sr)&&Ko(Qi[sr])},Qo=function(sr,_n){var hi,Nt=[],ce=1/(_n-1);for(hi=0;hi<1;hi+=ce)Nt.push(hi);if(Nt.push(1),sr[0].offset!=0){var Ee={offset:0,color:sr[0].color};sr.unshift(Ee)}if(sr[sr.length-1].offset!=1){var Le={offset:1,color:sr[sr.length-1].color};sr.push(Le)}for(var Qe="",Rt=0,lr=0;lr<Nt.length;lr++){for(hi=Nt[lr];hi>sr[Rt+1].offset;)Rt++;var Qr=sr[Rt].offset,pn=(hi-Qr)/(sr[Rt+1].offset-Qr),In=sr[Rt].color,li=sr[Rt+1].color;Qe+=zn(Math.round((1-pn)*In[0]+pn*li[0]).toString(16))+zn(Math.round((1-pn)*In[1]+pn*li[1]).toString(16))+zn(Math.round((1-pn)*In[2]+pn*li[2]).toString(16))}return Qe.trim()},bo=function(sr,_n){_n||(_n=21);var hi=ga(),Nt=Qo(sr.colors,_n),ce=[];ce.push({key:"FunctionType",value:"0"}),ce.push({key:"Domain",value:"[0.0 1.0]"}),ce.push({key:"Size",value:"["+_n+"]"}),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]"}),$i({data:Nt,additionalKeyValues:ce,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:hi}),Ln("endobj"),sr.objectNumber=ga(),Ln("<< /ShadingType "+sr.type),Ln("/ColorSpace /DeviceRGB");var Ee="/Coords ["+En(parseFloat(sr.coords[0]))+" "+En(parseFloat(sr.coords[1]))+" ";sr.type===2?Ee+=En(parseFloat(sr.coords[2]))+" "+En(parseFloat(sr.coords[3])):Ee+=En(parseFloat(sr.coords[2]))+" "+En(parseFloat(sr.coords[3]))+" "+En(parseFloat(sr.coords[4]))+" "+En(parseFloat(sr.coords[5])),Ln(Ee+="]"),sr.matrix&&Ln("/Matrix ["+sr.matrix.toString()+"]"),Ln("/Function "+hi+" 0 R"),Ln("/Extend [true true]"),Ln(">>"),Ln("endobj")},xo=function(sr,_n){var hi=_a(),Nt=ga();_n.push({resourcesOid:hi,objectOid:Nt}),sr.objectNumber=Nt;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:"["+sr.boundingBox.map(En).join(" ")+"]"}),ce.push({key:"XStep",value:En(sr.xStep)}),ce.push({key:"YStep",value:En(sr.yStep)}),ce.push({key:"Resources",value:hi+" 0 R"}),sr.matrix&&ce.push({key:"Matrix",value:"["+sr.matrix.toString()+"]"}),$i({data:sr.stream,additionalKeyValues:ce,objectId:sr.objectNumber}),Ln("endobj")},ts=function(sr){var _n;for(_n in mi)mi.hasOwnProperty(_n)&&(mi[_n]instanceof z?bo(mi[_n]):mi[_n]instanceof W&&xo(mi[_n],sr))},ka=function(sr){for(var _n in sr.objectNumber=ga(),Ln("<<"),sr)switch(_n){case"opacity":Ln("/ca "+_t(sr[_n]));break;case"stroke-opacity":Ln("/CA "+_t(sr[_n]))}Ln(">>"),Ln("endobj")},Io=function(){var sr;for(sr in vi)vi.hasOwnProperty(sr)&&ka(vi[sr])},Mo=function(){for(var sr in Ln("/XObject <<"),Qi)Qi.hasOwnProperty(sr)&&Qi[sr].objectNumber>=0&&Ln("/"+sr+" "+Qi[sr].objectNumber+" 0 R");Ki.publish("putXobjectDict"),Ln(">>")},is=function(){xa.oid=ga(),Ln("<<"),Ln("/Filter /Standard"),Ln("/V "+xa.v),Ln("/R "+xa.r),Ln("/U <"+xa.toHexString(xa.U)+">"),Ln("/O <"+xa.toHexString(xa.O)+">"),Ln("/P "+xa.P),Ln(">>"),Ln("endobj")},To=function(){for(var sr in Ln("/Font <<"),wn)wn.hasOwnProperty(sr)&&(Vr===!1||Vr===!0&&fn.hasOwnProperty(sr))&&Ln("/"+sr+" "+wn[sr].objectNumber+" 0 R");Ln(">>")},Zo=function(){if(Object.keys(mi).length>0){for(var sr in Ln("/Shading <<"),mi)mi.hasOwnProperty(sr)&&mi[sr]instanceof z&&mi[sr].objectNumber>=0&&Ln("/"+sr+" "+mi[sr].objectNumber+" 0 R");Ki.publish("putShadingPatternDict"),Ln(">>")}},Vo=function(sr){if(Object.keys(mi).length>0){for(var _n in Ln("/Pattern <<"),mi)mi.hasOwnProperty(_n)&&mi[_n]instanceof gr.TilingPattern&&mi[_n].objectNumber>=0&&mi[_n].objectNumber<sr&&Ln("/"+_n+" "+mi[_n].objectNumber+" 0 R");Ki.publish("putTilingPatternDict"),Ln(">>")}},Lo=function(){if(Object.keys(vi).length>0){var sr;for(sr in Ln("/ExtGState <<"),vi)vi.hasOwnProperty(sr)&&vi[sr].objectNumber>=0&&Ln("/"+sr+" "+vi[sr].objectNumber+" 0 R");Ki.publish("putGStateDict"),Ln(">>")}},ho=function(sr){ya(sr.resourcesOid,!0),Ln("<<"),Ln("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),To(),Zo(),Vo(sr.objectOid),Lo(),Mo(),Ln(">>"),Ln("endobj")},ja=function(){var sr=[];Co(),Io(),to(),ts(sr),Ki.publish("putResources"),sr.forEach(ho),ho({resourcesOid:Wa,objectOid:Number.MAX_SAFE_INTEGER}),Ki.publish("postPutResources")},mt=function(){Ki.publish("putAdditionalObjects");for(var sr=0;sr<Li.length;sr++){var _n=Li[sr];ya(_n.objId,!0),Ln(_n.content),Ln("endobj")}Ki.publish("postPutAdditionalObjects")},Cr=function(sr){$n[sr.fontName]=$n[sr.fontName]||{},$n[sr.fontName][sr.fontStyle]=sr.id},tn=function(sr,_n,hi,Nt,ce){var Ee={id:"F"+(Object.keys(wn).length+1).toString(10),postScriptName:sr,fontName:_n,fontStyle:hi,encoding:Nt,isStandardFont:ce||!1,metadata:{}};return Ki.publish("addFont",{font:Ee,instance:this}),wn[Ee.id]=Ee,Cr(Ee),Ee.id},Yr=function(sr){for(var _n=0,hi=ea.length;_n<hi;_n++){var Nt=tn.call(this,sr[_n][0],sr[_n][1],sr[_n][2],ea[_n][3],!0);Vr===!1&&(fn[Nt]=!0);var ce=sr[_n][0].split("-");Cr({id:Nt,fontName:ce[0],fontStyle:ce[1]||""})}Ki.publish("addFonts",{fonts:wn,dictionary:$n})},Xn=function(sr){return sr.foo=function(){try{return sr.apply(this,arguments)}catch(Nt){var _n=Nt.stack||"";~_n.indexOf(" at ")&&(_n=_n.split(" at ")[1]);var hi="Error in function "+_n.split(`
`)[0].split("<")[0]+": "+Nt.message;if(!m.console)throw new Error(hi);m.console.error(hi,Nt),m.alert&&alert(hi)}},sr.foo.bar=sr,sr.foo},hn=function(sr,_n){var hi,Nt,ce,Ee,Le,Qe,Rt,lr,Qr;if(ce=(_n=_n||{}).sourceEncoding||"Unicode",Le=_n.outputEncoding,(_n.autoencode||Le)&&wn[_r].metadata&&wn[_r].metadata[ce]&&wn[_r].metadata[ce].encoding&&(Ee=wn[_r].metadata[ce].encoding,!Le&&wn[_r].encoding&&(Le=wn[_r].encoding),!Le&&Ee.codePages&&(Le=Ee.codePages[0]),typeof Le=="string"&&(Le=Ee[Le]),Le)){for(Rt=!1,Qe=[],hi=0,Nt=sr.length;hi<Nt;hi++)(lr=Le[sr.charCodeAt(hi)])?Qe.push(String.fromCharCode(lr)):Qe.push(sr[hi]),Qe[hi].charCodeAt(0)>>8&&(Rt=!0);sr=Qe.join("")}for(hi=sr.length;Rt===void 0&&hi!==0;)sr.charCodeAt(hi-1)>>8&&(Rt=!0),hi--;if(!Rt)return sr;for(Qe=_n.noBOM?[]:[254,255],hi=0,Nt=sr.length;hi<Nt;hi++){if((Qr=(lr=sr.charCodeAt(hi))>>8)>>8)throw new Error("Character at position "+hi+" of string '"+sr+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Qe.push(Qr),Qe.push(lr-(Qr<<8))}return String.fromCharCode.apply(void 0,Qe)},Xr=gr.__private__.pdfEscape=gr.pdfEscape=function(jt,sr){return hn(jt,sr).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},ni=gr.__private__.beginPage=function(jt){aa[++ta]=[],Pi[ta]={objId:0,contentsObjId:0,userUnit:Number(Pt),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(jt[0]),topRightY:Number(jt[1])}},si(ta),yi(aa[Ur])},nn=function(sr,_n){var hi,Nt,ce;switch(He=_n||He,typeof sr=="string"&&(hi=bn(sr.toLowerCase()),Array.isArray(hi)&&(Nt=hi[0],ce=hi[1])),Array.isArray(sr)&&(Nt=sr[0]*Nr,ce=sr[1]*Nr),isNaN(Nt)&&(Nt=nt[0],ce=nt[1]),(Nt>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"),Nt=Math.min(14400,Nt),ce=Math.min(14400,ce)),nt=[Nt,ce],He.substr(0,1)){case"l":ce>Nt&&(nt=[ce,Nt]);break;case"p":Nt>ce&&(nt=[ce,Nt])}ni(nt),ss(oo),Ln(fs),ps!==0&&Ln(ps+" J"),Ms!==0&&Ln(Ms+" j"),Ki.publish("addPage",{pageNumber:ta})},Wn=function(sr){sr>0&&sr<=ta&&(aa.splice(sr,1),Pi.splice(sr,1),ta--,Ur>ta&&(Ur=ta),this.setPage(Ur))},si=function(sr){sr>0&&sr<=ta&&(Ur=sr)},ui=gr.__private__.getNumberOfPages=gr.getNumberOfPages=function(){return aa.length-1},ai=function(sr,_n,hi){var Nt,ce=void 0;return hi=hi||{},sr=sr!==void 0?sr:wn[_r].fontName,_n=_n!==void 0?_n:wn[_r].fontStyle,Nt=sr.toLowerCase(),$n[Nt]!==void 0&&$n[Nt][_n]!==void 0?ce=$n[Nt][_n]:$n[sr]!==void 0&&$n[sr][_n]!==void 0?ce=$n[sr][_n]:hi.disableWarning===!1&&d.warn("Unable to look up font label for font '"+sr+"', '"+_n+"'. Refer to getFontList() for available fonts."),ce||hi.noFallback||(ce=$n.times[_n])==null&&(ce=$n.times.normal),ce},Ei=gr.__private__.putInfo=function(){var jt=ga(),sr=function(Nt){return Nt};for(var _n in Fr!==null&&(sr=xa.encryptor(jt,0)),Ln("<<"),Ln("/Producer ("+Xr(sr("jsPDF "+U.version))+")"),kt)kt.hasOwnProperty(_n)&&kt[_n]&&Ln("/"+_n.substr(0,1).toUpperCase()+_n.substr(1)+" ("+Xr(sr(kt[_n]))+")");Ln("/CreationDate ("+Xr(sr(cr))+")"),Ln(">>"),Ln("endobj")},gi=gr.__private__.putCatalog=function(jt){var sr=(jt=jt||{}).rootDictionaryObjId||Ia;switch(ga(),Ln("<<"),Ln("/Type /Catalog"),Ln("/Pages "+sr+" 0 R"),kr||(kr="fullwidth"),kr){case"fullwidth":Ln("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Ln("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Ln("/OpenAction [3 0 R /Fit]");break;case"original":Ln("/OpenAction [3 0 R /XYZ null null 1]");break;default:var _n=""+kr;_n.substr(_n.length-1)==="%"&&(kr=parseInt(kr)/100),typeof kr=="number"&&Ln("/OpenAction [3 0 R /XYZ null null "+_t(kr)+"]")}switch(Gr||(Gr="continuous"),Gr){case"continuous":Ln("/PageLayout /OneColumn");break;case"single":Ln("/PageLayout /SinglePage");break;case"two":case"twoleft":Ln("/PageLayout /TwoColumnLeft");break;case"tworight":Ln("/PageLayout /TwoColumnRight")}dr&&Ln("/PageMode /"+dr),Ki.publish("putCatalog"),Ln(">>"),Ln("endobj")},Ti=gr.__private__.putTrailer=function(){Ln("trailer"),Ln("<<"),Ln("/Size "+(qn+1)),Ln("/Root "+qn+" 0 R"),Ln("/Info "+(qn-1)+" 0 R"),Fr!==null&&Ln("/Encrypt "+xa.oid+" 0 R"),Ln("/ID [ <"+vr+"> <"+vr+"> ]"),Ln(">>")},_i=gr.__private__.putHeader=function(){Ln("%PDF-"+Gn),Ln("%\xBA\xDF\xAC\xE0")},ia=gr.__private__.putXRef=function(){var jt="0000000000";Ln("xref"),Ln("0 "+(qn+1)),Ln("0000000000 65535 f ");for(var sr=1;sr<=qn;sr++)typeof oi[sr]=="function"?Ln((jt+oi[sr]()).slice(-10)+" 00000 n "):oi[sr]!==void 0?Ln((jt+oi[sr]).slice(-10)+" 00000 n "):Ln("0000000000 00000 n ")},Fi=gr.__private__.buildDocument=function(){Aa(),yi(xi),Ki.publish("buildDocument"),_i(),Eo(),mt(),ja(),Fr!==null&&is(),Ei(),gi();var jt=Di;return ia(),Ti(),Ln("startxref"),Ln(""+jt),Ln("%%EOF"),yi(aa[Ur]),xi.join(`
`)},fa=gr.__private__.getBlob=function(jt){return new Blob([ha(jt)],{type:"application/pdf"})},za=gr.output=gr.__private__.output=Xn(function(jt,sr){switch(typeof(sr=sr||{})=="string"?sr={filename:sr}:sr.filename=sr.filename||"generated.pdf",jt){case void 0:return Fi();case"save":gr.save(sr.filename);break;case"arraybuffer":return ha(Fi());case"blob":return fa(Fi());case"bloburi":case"bloburl":if(m.URL!==void 0&&typeof m.URL.createObjectURL=="function")return m.URL&&m.URL.createObjectURL(fa(Fi()))||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 _n="",hi=Fi();try{_n=a(hi)}catch(In){_n=a(unescape(encodeURIComponent(hi)))}return"data:application/pdf;filename="+sr.filename+";base64,"+_n;case"pdfobjectnewwindow":if(Object.prototype.toString.call(m)==="[object Window]"){var Nt="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"';sr.pdfObjectUrl&&(Nt=sr.pdfObjectUrl,ce="");var Ee='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+Nt+'"'+ce+'></script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(sr)+");</script></body></html>",Le=m.open();return Le!==null&&Le.document.write(Ee),Le}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(m)==="[object Window]"){var Qe='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(sr.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+sr.filename+'" width="500px" height="400px" /></body></html>',Rt=m.open();if(Rt!==null){Rt.document.write(Qe);var lr=this;Rt.document.documentElement.querySelector("#pdfViewer").onload=function(){Rt.document.title=sr.filename,Rt.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(lr.output("bloburl"))}}return Rt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(m)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Qr='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",sr)+'"></iframe></body></html>',pn=m.open();if(pn!==null&&(pn.document.write(Qr),pn.document.title=sr.filename),pn||typeof safari=="undefined")return pn;break;case"datauri":case"dataurl":return m.document.location.href=this.output("datauristring",sr);default:return null}}),Ca=function(sr){return Array.isArray(Hi)===!0&&Hi.indexOf(sr)>-1};switch(Ge){case"pt":Nr=1;break;case"mm":Nr=72/25.4;break;case"cm":Nr=72/2.54;break;case"in":Nr=72;break;case"px":Nr=Ca("px_scaling")==1?.75:96/72;break;case"pc":case"em":Nr=12;break;case"ex":Nr=6;break;default:if(typeof Ge!="number")throw new Error("Invalid unit: "+Ge);Nr=Ge}var xa=null;di(),Dr();var Ma=function(sr){return Fr!==null?xa.encryptor(sr,0):function(_n){return _n}},Pa=gr.__private__.getPageInfo=gr.getPageInfo=function(jt){if(isNaN(jt)||jt%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Pi[jt].objId,pageNumber:jt,pageContext:Pi[jt]}},Wo=gr.__private__.getPageInfoByObjId=function(jt){if(isNaN(jt)||jt%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var sr in Pi)if(Pi[sr].objId===jt)break;return Pa(sr)},Oo=gr.__private__.getCurrentPageInfo=gr.getCurrentPageInfo=function(){return{objId:Pi[Ur].objId,pageNumber:Ur,pageContext:Pi[Ur]}};gr.addPage=function(){return nn.apply(this,arguments),this},gr.setPage=function(){return si.apply(this,arguments),yi.call(this,aa[Ur]),this},gr.insertPage=function(jt){return this.addPage(),this.movePage(Ur,jt),this},gr.movePage=function(jt,sr){var _n,hi;if(jt>sr){_n=aa[jt],hi=Pi[jt];for(var Nt=jt;Nt>sr;Nt--)aa[Nt]=aa[Nt-1],Pi[Nt]=Pi[Nt-1];aa[sr]=_n,Pi[sr]=hi,this.setPage(sr)}else if(jt<sr){_n=aa[jt],hi=Pi[jt];for(var ce=jt;ce<sr;ce++)aa[ce]=aa[ce+1],Pi[ce]=Pi[ce+1];aa[sr]=_n,Pi[sr]=hi,this.setPage(sr)}return this},gr.deletePage=function(){return Wn.apply(this,arguments),this},gr.__private__.text=gr.text=function(jt,sr,_n,hi,Nt){var ce,Ee,Le,Qe,Rt,lr,Qr,pn,In,li=(hi=hi||{}).scope||this;if(typeof jt=="number"&&typeof sr=="number"&&(typeof _n=="string"||Array.isArray(_n))){var bi=_n;_n=sr,sr=jt,jt=bi}if(arguments[3]instanceof ra==!1?(Le=arguments[4],Qe=arguments[5],S()(Qr=arguments[3])==="object"&&Qr!==null||(typeof Le=="string"&&(Qe=Le,Le=null),typeof Qr=="string"&&(Qe=Qr,Qr=null),typeof Qr=="number"&&(Le=Qr,Qr=null),hi={flags:Qr,angle:Le,align:Qe})):(Hn("The transform parameter of text() with a Matrix value"),In=Nt),isNaN(sr)||isNaN(_n)||jt==null)throw new Error("Invalid arguments passed to jsPDF.text");if(jt.length===0)return li;var Ai="",Yi=!1,ua=typeof hi.lineHeightFactor=="number"?hi.lineHeightFactor:co,Va=li.internal.scaleFactor;function ro(sl){return sl=sl.split(" ").join(Array(hi.TabLen||9).join(" ")),Xr(sl,Qr)}function So(sl){for(var Gs,ll=sl.concat(),Xs=[],bl=ll.length;bl--;)typeof(Gs=ll.shift())=="string"?Xs.push(Gs):Array.isArray(sl)&&(Gs.length===1||Gs[1]===void 0&&Gs[2]===void 0)?Xs.push(Gs[0]):Xs.push([Gs[0],Gs[1],Gs[2]]);return Xs}function Ro(sl,Gs){var ll;if(typeof sl=="string")ll=Gs(sl)[0];else if(Array.isArray(sl)){for(var Xs,bl,kl=sl.concat(),Yl=[],Zl=kl.length;Zl--;)typeof(Xs=kl.shift())=="string"?Yl.push(Gs(Xs)[0]):Array.isArray(Xs)&&typeof Xs[0]=="string"&&(bl=Gs(Xs[0],Xs[1],Xs[2]),Yl.push([bl[0],bl[1],bl[2]]));ll=Yl}return ll}var jo=!1,Cs=!0;if(typeof jt=="string")jo=!0;else if(Array.isArray(jt)){var vs=jt.concat();Ee=[];for(var os,Fo=vs.length;Fo--;)(typeof(os=vs.shift())!="string"||Array.isArray(os)&&typeof os[0]!="string")&&(Cs=!1);jo=Cs}if(jo===!1)throw new Error('Type of text must be string or Array. "'+jt+'" is not recognized.');typeof jt=="string"&&(jt=jt.match(/[\r?\n]/)?jt.split(/\r\n|\r|\n/g):[jt]);var yo=ca/li.internal.scaleFactor,As=yo*(ua-1);switch(hi.baseline){case"bottom":_n-=As;break;case"top":_n+=yo-As;break;case"hanging":_n+=yo-2*As;break;case"middle":_n+=yo/2-As}if((lr=hi.maxWidth||0)>0&&(typeof jt=="string"?jt=li.splitTextToSize(jt,lr):Object.prototype.toString.call(jt)==="[object Array]"&&(jt=jt.reduce(function(sl,Gs){return sl.concat(li.splitTextToSize(Gs,lr))},[]))),ce={text:jt,x:sr,y:_n,options:hi,mutex:{pdfEscape:Xr,activeFontKey:_r,fonts:wn,activeFontSize:ca}},Ki.publish("preProcessText",ce),jt=ce.text,Le=(hi=ce.options).angle,In instanceof ra==!1&&Le&&typeof Le=="number"){Le*=Math.PI/180,hi.rotationDirection===0&&(Le=-Le),ei===rn.ADVANCED&&(Le=-Le);var $s=Math.cos(Le),ys=Math.sin(Le);In=new ra($s,ys,-ys,$s,0,0)}else Le&&Le instanceof ra&&(In=Le);ei!==rn.ADVANCED||In||(In=Ra),(Rt=hi.charSpace||Ks)!==void 0&&(Ai+=En(Wt(Rt))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(pn=hi.horizontalScale)!==void 0&&(Ai+=En(100*pn)+` Tz
`),hi.lang;var Fa=-1,ml=hi.renderingMode!==void 0?hi.renderingMode:hi.stroke,cl=li.internal.getCurrentPageInfo().pageContext;switch(ml){case 0:case!1:case"fill":Fa=0;break;case 1:case!0:case"stroke":Fa=1;break;case 2:case"fillThenStroke":Fa=2;break;case 3:case"invisible":Fa=3;break;case 4:case"fillAndAddForClipping":Fa=4;break;case 5:case"strokeAndAddPathForClipping":Fa=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Fa=6;break;case 7:case"addToPathForClipping":Fa=7}var Ps=cl.usedRenderingMode!==void 0?cl.usedRenderingMode:-1;Fa!==-1?Ai+=Fa+` Tr
`:Ps!==-1&&(Ai+=`0 Tr
`),Fa!==-1&&(cl.usedRenderingMode=Fa),Qe=hi.align||"left";var ws,Ys=ca*ua,Vl=li.internal.pageSize.getWidth(),Nl=wn[_r];Rt=hi.charSpace||Ks,lr=hi.maxWidth||0,Qr=Object.assign({autoencode:!0,noBOM:!0},hi.flags);var hl=[];if(Object.prototype.toString.call(jt)==="[object Array]"){var Os;Ee=So(jt),Qe!=="left"&&(ws=Ee.map(function(sl){return li.getStringUnitWidth(sl,{font:Nl,charSpace:Rt,fontSize:ca,doKerning:!1})*ca/Va}));var Vs,_l=0;if(Qe==="right"){sr-=ws[0],jt=[],Fo=Ee.length;for(var ol=0;ol<Fo;ol++)ol===0?(Vs=zo(sr),Os=Jo(_n)):(Vs=Wt(_l-ws[ol]),Os=-Ys),jt.push([Ee[ol],Vs,Os]),_l=ws[ol]}else if(Qe==="center"){sr-=ws[0]/2,jt=[],Fo=Ee.length;for(var Ho=0;Ho<Fo;Ho++)Ho===0?(Vs=zo(sr),Os=Jo(_n)):(Vs=Wt((_l-ws[Ho])/2),Os=-Ys),jt.push([Ee[Ho],Vs,Os]),_l=ws[Ho]}else if(Qe==="left"){jt=[],Fo=Ee.length;for(var vo=0;vo<Fo;vo++)jt.push(Ee[vo])}else{if(Qe!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');jt=[],Fo=Ee.length,lr=lr!==0?lr:Vl;for(var $o=0;$o<Fo;$o++)Os=$o===0?Jo(_n):-Ys,Vs=$o===0?zo(sr):0,$o<Fo-1?hl.push(En(Wt((lr-ws[$o])/(Ee[$o].split(" ").length-1)))):hl.push(0),jt.push([Ee[$o],Vs,Os])}}var ms=typeof hi.R2L=="boolean"?hi.R2L:yn;ms===!0&&(jt=Ro(jt,function(sl,Gs,ll){return[sl.split("").reverse().join(""),Gs,ll]})),ce={text:jt,x:sr,y:_n,options:hi,mutex:{pdfEscape:Xr,activeFontKey:_r,fonts:wn,activeFontSize:ca}},Ki.publish("postProcessText",ce),jt=ce.text,Yi=ce.mutex.isHex||!1;var _s=wn[_r].encoding;_s!=="WinAnsiEncoding"&&_s!=="StandardEncoding"||(jt=Ro(jt,function(sl,Gs,ll){return[ro(sl),Gs,ll]})),Ee=So(jt),jt=[];for(var qo,Is,Rs,nl=0,Il=1,Tl=Array.isArray(Ee[0])?Il:nl,Ul="",Dl=function(Gs,ll,Xs){var bl="";return Xs instanceof ra?(Xs=typeof hi.angle=="number"?Da(Xs,new ra(1,0,0,1,Gs,ll)):Da(new ra(1,0,0,1,Gs,ll),Xs),ei===rn.ADVANCED&&(Xs=Da(new ra(1,0,0,-1,0,0),Xs)),bl=Xs.join(" ")+` Tm
`):bl=En(Gs)+" "+En(ll)+` Td
`,bl},Rl=0;Rl<Ee.length;Rl++){switch(Ul="",Tl){case Il:Rs=(Yi?"<":"(")+Ee[Rl][0]+(Yi?">":")"),qo=parseFloat(Ee[Rl][1]),Is=parseFloat(Ee[Rl][2]);break;case nl:Rs=(Yi?"<":"(")+Ee[Rl]+(Yi?">":")"),qo=zo(sr),Is=Jo(_n)}hl!==void 0&&hl[Rl]!==void 0&&(Ul=hl[Rl]+` Tw
`),Rl===0?jt.push(Ul+Dl(qo,Is,In)+Rs):Tl===nl?jt.push(Ul+Rs):Tl===Il&&jt.push(Ul+Dl(qo,Is,In)+Rs)}jt=Tl===nl?jt.join(` Tj
T* `):jt.join(` Tj
`),jt+=` Tj
`;var Hl=`BT
/`;return Hl+=_r+" "+ca+` Tf
`,Hl+=En(ca*ua)+` TL
`,Hl+=Ls+`
`,Hl+=Ai,Hl+=jt,Ln(Hl+="ET"),fn[_r]=!0,li};var pa=gr.__private__.clip=gr.clip=function(jt){return Ln(jt==="evenodd"?"W*":"W"),this};gr.clipEvenOdd=function(){return pa("evenodd")},gr.__private__.discardPath=gr.discardPath=function(){return Ln("n"),this};var Sa=gr.__private__.isValidStyle=function(jt){var sr=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(jt)!==-1&&(sr=!0),sr};gr.__private__.setDefaultPathOperation=gr.setDefaultPathOperation=function(jt){return Sa(jt)&&(rr=jt),this};var Ea=gr.__private__.getStyle=gr.getStyle=function(jt){var sr=rr;switch(jt){case"D":case"S":sr="S";break;case"F":sr="f";break;case"FD":case"DF":sr="B";break;case"f":case"f*":case"B":case"B*":sr=jt}return sr},Ka=gr.close=function(){return Ln("h"),this};gr.stroke=function(){return Ln("S"),this},gr.fill=function(jt){return so("f",jt),this},gr.fillEvenOdd=function(jt){return so("f*",jt),this},gr.fillStroke=function(jt){return so("B",jt),this},gr.fillStrokeEvenOdd=function(jt){return so("B*",jt),this};var so=function(sr,_n){S()(_n)==="object"?No(_n,sr):Ln(sr)},lo=function(sr){sr===null||ei===rn.ADVANCED&&sr===void 0||(sr=Ea(sr),Ln(sr))};function wo(jt,sr,_n,hi,Nt){var ce=new W(sr||this.boundingBox,_n||this.xStep,hi||this.yStep,this.gState,Nt||this.matrix);ce.stream=this.stream;var Ee=jt+"$$"+this.cloneIndex+++"$$";return va(Ee,ce),ce}var No=function(sr,_n){var hi=Ri[sr.key],Nt=mi[hi];if(Nt instanceof z)Ln("q"),Ln(cs(_n)),Nt.gState&&gr.setGState(Nt.gState),Ln(sr.matrix.toString()+" cm"),Ln("/"+hi+" sh"),Ln("Q");else if(Nt instanceof W){var ce=new ra(1,0,0,-1,0,Ns());sr.matrix&&(ce=ce.multiply(sr.matrix||Ra),hi=wo.call(Nt,sr.key,sr.boundingBox,sr.xStep,sr.yStep,ce).id),Ln("q"),Ln("/Pattern cs"),Ln("/"+hi+" scn"),Nt.gState&&gr.setGState(Nt.gState),Ln(_n),Ln("Q")}},cs=function(sr){switch(sr){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"}},hs=gr.moveTo=function(jt,sr){return Ln(En(Wt(jt))+" "+En(Lt(sr))+" m"),this},Bs=gr.lineTo=function(jt,sr){return Ln(En(Wt(jt))+" "+En(Lt(sr))+" l"),this},rs=gr.curveTo=function(jt,sr,_n,hi,Nt,ce){return Ln([En(Wt(jt)),En(Lt(sr)),En(Wt(_n)),En(Lt(hi)),En(Wt(Nt)),En(Lt(ce)),"c"].join(" ")),this};gr.__private__.line=gr.line=function(jt,sr,_n,hi,Nt){if(isNaN(jt)||isNaN(sr)||isNaN(_n)||isNaN(hi)||!Sa(Nt))throw new Error("Invalid arguments passed to jsPDF.line");return ei===rn.COMPAT?this.lines([[_n-jt,hi-sr]],jt,sr,[1,1],Nt||"S"):this.lines([[_n-jt,hi-sr]],jt,sr,[1,1]).stroke()},gr.__private__.lines=gr.lines=function(jt,sr,_n,hi,Nt,ce){var Ee,Le,Qe,Rt,lr,Qr,pn,In,li,bi,Ai,Yi;if(typeof jt=="number"&&(Yi=_n,_n=sr,sr=jt,jt=Yi),hi=hi||[1,1],ce=ce||!1,isNaN(sr)||isNaN(_n)||!Array.isArray(jt)||!Array.isArray(hi)||!Sa(Nt)||typeof ce!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(hs(sr,_n),Ee=hi[0],Le=hi[1],Rt=jt.length,bi=sr,Ai=_n,Qe=0;Qe<Rt;Qe++)(lr=jt[Qe]).length===2?(bi=lr[0]*Ee+bi,Ai=lr[1]*Le+Ai,Bs(bi,Ai)):(Qr=lr[0]*Ee+bi,pn=lr[1]*Le+Ai,In=lr[2]*Ee+bi,li=lr[3]*Le+Ai,bi=lr[4]*Ee+bi,Ai=lr[5]*Le+Ai,rs(Qr,pn,In,li,bi,Ai));return ce&&Ka(),lo(Nt),this},gr.path=function(jt){for(var sr=0;sr<jt.length;sr++){var _n=jt[sr],hi=_n.c;switch(_n.op){case"m":hs(hi[0],hi[1]);break;case"l":Bs(hi[0],hi[1]);break;case"c":rs.apply(this,hi);break;case"h":Ka()}}return this},gr.__private__.rect=gr.rect=function(jt,sr,_n,hi,Nt){if(isNaN(jt)||isNaN(sr)||isNaN(_n)||isNaN(hi)||!Sa(Nt))throw new Error("Invalid arguments passed to jsPDF.rect");return ei===rn.COMPAT&&(hi=-hi),Ln([En(Wt(jt)),En(Lt(sr)),En(Wt(_n)),En(Wt(hi)),"re"].join(" ")),lo(Nt),this},gr.__private__.triangle=gr.triangle=function(jt,sr,_n,hi,Nt,ce,Ee){if(isNaN(jt)||isNaN(sr)||isNaN(_n)||isNaN(hi)||isNaN(Nt)||isNaN(ce)||!Sa(Ee))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[_n-jt,hi-sr],[Nt-_n,ce-hi],[jt-Nt,sr-ce]],jt,sr,[1,1],Ee,!0),this},gr.__private__.roundedRect=gr.roundedRect=function(jt,sr,_n,hi,Nt,ce,Ee){if(isNaN(jt)||isNaN(sr)||isNaN(_n)||isNaN(hi)||isNaN(Nt)||isNaN(ce)||!Sa(Ee))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var Le=4/3*(Math.SQRT2-1);return Nt=Math.min(Nt,.5*_n),ce=Math.min(ce,.5*hi),this.lines([[_n-2*Nt,0],[Nt*Le,0,Nt,ce-ce*Le,Nt,ce],[0,hi-2*ce],[0,ce*Le,-Nt*Le,ce,-Nt,ce],[2*Nt-_n,0],[-Nt*Le,0,-Nt,-ce*Le,-Nt,-ce],[0,2*ce-hi],[0,-ce*Le,Nt*Le,-ce,Nt,-ce]],jt+Nt,sr,[1,1],Ee,!0),this},gr.__private__.ellipse=gr.ellipse=function(jt,sr,_n,hi,Nt){if(isNaN(jt)||isNaN(sr)||isNaN(_n)||isNaN(hi)||!Sa(Nt))throw new Error("Invalid arguments passed to jsPDF.ellipse");var ce=4/3*(Math.SQRT2-1)*_n,Ee=4/3*(Math.SQRT2-1)*hi;return hs(jt+_n,sr),rs(jt+_n,sr-Ee,jt+ce,sr-hi,jt,sr-hi),rs(jt-ce,sr-hi,jt-_n,sr-Ee,jt-_n,sr),rs(jt-_n,sr+Ee,jt-ce,sr+hi,jt,sr+hi),rs(jt+ce,sr+hi,jt+_n,sr+Ee,jt+_n,sr),lo(Nt),this},gr.__private__.circle=gr.circle=function(jt,sr,_n,hi){if(isNaN(jt)||isNaN(sr)||isNaN(_n)||!Sa(hi))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(jt,sr,_n,_n,hi)},gr.setFont=function(jt,sr,_n){return _n&&(sr=$r(sr,_n)),_r=ai(jt,sr,{disableWarning:!1}),this};var ns=gr.__private__.getFont=gr.getFont=function(){return wn[ai.apply(gr,arguments)]};gr.__private__.getFontList=gr.getFontList=function(){var jt,sr,_n={};for(jt in $n)if($n.hasOwnProperty(jt))for(sr in _n[jt]=[],$n[jt])$n[jt].hasOwnProperty(sr)&&_n[jt].push(sr);return _n},gr.addFont=function(jt,sr,_n,hi,Nt){var ce=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&ce.indexOf(arguments[3])!==-1?Nt=arguments[3]:arguments[3]&&ce.indexOf(arguments[3])==-1&&(_n=$r(_n,hi)),Nt=Nt||"Identity-H",tn.call(this,jt,sr,_n,Nt)};var co,oo=it.lineWidth||.200025,eo=gr.__private__.getLineWidth=gr.getLineWidth=function(){return oo},ss=gr.__private__.setLineWidth=gr.setLineWidth=function(jt){return oo=jt,Ln(En(Wt(jt))+" w"),this};gr.__private__.setLineDash=U.API.setLineDash=U.API.setLineDashPattern=function(jt,sr){if(jt=jt||[],sr=sr||0,isNaN(sr)||!Array.isArray(jt))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return jt=jt.map(function(_n){return En(Wt(_n))}).join(" "),sr=En(Wt(sr)),Ln("["+jt+"] "+sr+" d"),this};var xs=gr.__private__.getLineHeight=gr.getLineHeight=function(){return ca*co};gr.__private__.getLineHeight=gr.getLineHeight=function(){return ca*co};var Po=gr.__private__.setLineHeightFactor=gr.setLineHeightFactor=function(jt){return typeof(jt=jt||1.15)=="number"&&(co=jt),this},el=gr.__private__.getLineHeightFactor=gr.getLineHeightFactor=function(){return co};Po(it.lineHeight);var zo=gr.__private__.getHorizontalCoordinate=function(jt){return Wt(jt)},Jo=gr.__private__.getVerticalCoordinate=function(jt){return ei===rn.ADVANCED?jt:Pi[Ur].mediaBox.topRightY-Pi[Ur].mediaBox.bottomLeftY-Wt(jt)},ks=gr.__private__.getHorizontalCoordinateString=gr.getHorizontalCoordinateString=function(jt){return En(zo(jt))},as=gr.__private__.getVerticalCoordinateString=gr.getVerticalCoordinateString=function(jt){return En(Jo(jt))},fs=it.strokeColor||"0 G";gr.__private__.getStrokeColor=gr.getDrawColor=function(){return no(fs)},gr.__private__.setStrokeColor=gr.setDrawColor=function(jt,sr,_n,hi){return fs=io({ch1:jt,ch2:sr,ch3:_n,ch4:hi,pdfColorType:"draw",precision:2}),Ln(fs),this};var Sn=it.fillColor||"0 g";gr.__private__.getFillColor=gr.getFillColor=function(){return no(Sn)},gr.__private__.setFillColor=gr.setFillColor=function(jt,sr,_n,hi){return Sn=io({ch1:jt,ch2:sr,ch3:_n,ch4:hi,pdfColorType:"fill",precision:2}),Ln(Sn),this};var Ls=it.textColor||"0 g",yl=gr.__private__.getTextColor=gr.getTextColor=function(){return no(Ls)};gr.__private__.setTextColor=gr.setTextColor=function(jt,sr,_n,hi){return Ls=io({ch1:jt,ch2:sr,ch3:_n,ch4:hi,pdfColorType:"text",precision:3}),this};var Ks=it.charSpace,Ws=gr.__private__.getCharSpace=gr.getCharSpace=function(){return parseFloat(Ks||0)};gr.__private__.setCharSpace=gr.setCharSpace=function(jt){if(isNaN(jt))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Ks=jt,this};var ps=0;gr.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},gr.__private__.setLineCap=gr.setLineCap=function(jt){var sr=gr.CapJoinStyles[jt];if(sr===void 0)throw new Error("Line cap style of '"+jt+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ps=sr,Ln(sr+" J"),this};var Ms=0;gr.__private__.setLineJoin=gr.setLineJoin=function(jt){var sr=gr.CapJoinStyles[jt];if(sr===void 0)throw new Error("Line join style of '"+jt+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Ms=sr,Ln(sr+" j"),this},gr.__private__.setLineMiterLimit=gr.__private__.setMiterLimit=gr.setLineMiterLimit=gr.setMiterLimit=function(jt){if(jt=jt||0,isNaN(jt))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Ln(En(Wt(jt))+" M"),this},gr.GState=X,gr.setGState=function(jt){(jt=typeof jt=="string"?vi[Bi[jt]]:Zs(null,jt)).equals(Gi)||(Ln("/"+jt.id+" gs"),Gi=jt)};var Zs=function(sr,_n){if(!sr||!Bi[sr]){var hi=!1;for(var Nt in vi)if(vi.hasOwnProperty(Nt)&&vi[Nt].equals(_n)){hi=!0;break}if(hi)_n=vi[Nt];else{var ce="GS"+(Object.keys(vi).length+1).toString(10);vi[ce]=_n,_n.id=ce}return sr&&(Bi[sr]=_n.id),Ki.publish("addGState",_n),_n}};gr.addGState=function(jt,sr){return Zs(jt,sr),this},gr.saveGraphicsState=function(){return Ln("q"),Vn.push({key:_r,size:ca,color:Ls}),this},gr.restoreGraphicsState=function(){Ln("Q");var jt=Vn.pop();return _r=jt.key,ca=jt.size,Ls=jt.color,Gi=null,this},gr.setCurrentTransformationMatrix=function(jt){return Ln(jt.toString()+" cm"),this},gr.comment=function(jt){return Ln("#"+jt),this};var zs=function(sr,_n){var hi=sr||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return hi},set:function(Le){isNaN(Le)||(hi=parseFloat(Le))}});var Nt=_n||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Nt},set:function(Le){isNaN(Le)||(Nt=parseFloat(Le))}});var ce="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return ce},set:function(Le){ce=Le.toString()}}),this},Es=function(sr,_n,hi,Nt){zs.call(this,sr,_n),this.type="rect";var ce=hi||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return ce},set:function(Qe){isNaN(Qe)||(ce=parseFloat(Qe))}});var Ee=Nt||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return Ee},set:function(Qe){isNaN(Qe)||(Ee=parseFloat(Qe))}}),this},Ds=function(){this.page=ta,this.currentPage=Ur,this.pages=aa.slice(0),this.pagesContext=Pi.slice(0),this.x=Jr,this.y=xn,this.matrix=Tn,this.width=Do(Ur),this.height=Ns(Ur),this.outputDestination=na,this.id="",this.objectNumber=-1};Ds.prototype.restore=function(){ta=this.page,Ur=this.currentPage,Pi=this.pagesContext,aa=this.pages,Jr=this.x,xn=this.y,Tn=this.matrix,Ts(Ur,this.width),Ao(Ur,this.height),na=this.outputDestination};var tl=function(sr,_n,hi,Nt,ce){Oa.push(new Ds),ta=Ur=0,aa=[],Jr=sr,xn=_n,Tn=ce,ni([hi,Nt])},Us=function(sr){if(da[sr])Oa.pop().restore();else{var _n=new Ds,hi="Xo"+(Object.keys(Qi).length+1).toString(10);_n.id=hi,da[sr]=hi,Qi[hi]=_n,Ki.publish("addFormObject",_n),Oa.pop().restore()}};for(var Go in gr.beginFormObject=function(jt,sr,_n,hi,Nt){return tl(jt,sr,_n,hi,Nt),this},gr.endFormObject=function(jt){return Us(jt),this},gr.doFormObject=function(jt,sr){var _n=Qi[da[jt]];return Ln("q"),Ln(sr.toString()+" cm"),Ln("/"+_n.id+" Do"),Ln("Q"),this},gr.getFormObject=function(jt){var sr=Qi[da[jt]];return{x:sr.x,y:sr.y,width:sr.width,height:sr.height,matrix:sr.matrix}},gr.save=function(jt,sr){return jt=jt||"generated.pdf",(sr=sr||{}).returnPromise=sr.returnPromise||!1,sr.returnPromise===!1?(e(fa(Fi()),jt),typeof e.unload=="function"&&m.setTimeout&&setTimeout(e.unload,911),this):new Promise(function(_n,hi){try{var Nt=e(fa(Fi()),jt);typeof e.unload=="function"&&m.setTimeout&&setTimeout(e.unload,911),_n(Nt)}catch(ce){hi(ce.message)}})},U.API)U.API.hasOwnProperty(Go)&&(Go==="events"&&U.API.events.length?function(jt,sr){var _n,hi,Nt;for(Nt=sr.length-1;Nt!==-1;Nt--)_n=sr[Nt][0],hi=sr[Nt][1],jt.subscribe.apply(jt,[_n].concat(typeof hi=="function"?[hi]:hi))}(Ki,U.API.events):gr[Go]=U.API[Go]);var Do=gr.getPageWidth=function(jt){return(Pi[jt=jt||Ur].mediaBox.topRightX-Pi[jt].mediaBox.bottomLeftX)/Nr},Ts=gr.setPageWidth=function(jt,sr){Pi[jt].mediaBox.topRightX=sr*Nr+Pi[jt].mediaBox.bottomLeftX},Ns=gr.getPageHeight=function(jt){return(Pi[jt=jt||Ur].mediaBox.topRightY-Pi[jt].mediaBox.bottomLeftY)/Nr},Ao=gr.setPageHeight=function(jt,sr){Pi[jt].mediaBox.topRightY=sr*Nr+Pi[jt].mediaBox.bottomLeftY};return gr.internal={pdfEscape:Xr,getStyle:Ea,getFont:ns,getFontSize:Sr,getCharSpace:Ws,getTextColor:yl,getLineHeight:xs,getLineHeightFactor:el,getLineWidth:eo,write:ji,getHorizontalCoordinate:zo,getVerticalCoordinate:Jo,getCoordinateString:ks,getVerticalCoordinateString:as,collections:{},newObject:ga,newAdditionalObject:Ga,newObjectDeferred:_a,newObjectDeferredBegin:ya,getFilters:uo,putStream:$i,events:Ki,scaleFactor:Nr,pageSize:{getWidth:function(){return Do(Ur)},setWidth:function(sr){Ts(Ur,sr)},getHeight:function(){return Ns(Ur)},setHeight:function(sr){Ao(Ur,sr)}},encryptionOptions:Fr,encryption:xa,getEncryptor:Ma,output:za,getNumberOfPages:ui,pages:aa,out:Ln,f2:_t,f3:Ft,getPageInfo:Pa,getPageInfoByObjId:Wo,getCurrentPageInfo:Oo,getPDFVersion:Mr,Point:zs,Rectangle:Es,Matrix:ra,hasHotfix:Ca},Object.defineProperty(gr.internal.pageSize,"width",{get:function(){return Do(Ur)},set:function(sr){Ts(Ur,sr)},enumerable:!0,configurable:!0}),Object.defineProperty(gr.internal.pageSize,"height",{get:function(){return Ns(Ur)},set:function(sr){Ao(Ur,sr)},enumerable:!0,configurable:!0}),Yr.call(gr,ea),_r="F1",nn(nt,He),Ki.publish("initialized"),gr}R.prototype.lsbFirstWord=function(it){return String.fromCharCode(it>>0&255,it>>8&255,it>>16&255,it>>24&255)},R.prototype.toHexString=function(it){return it.split("").map(function(Ne){return("0"+(255&Ne.charCodeAt(0)).toString(16)).slice(-2)}).join("")},R.prototype.hexToBytes=function(it){for(var Ne=[],He=0;He<it.length;He+=2)Ne.push(String.fromCharCode(parseInt(it.substr(He,2),16)));return Ne.join("")},R.prototype.processOwnerPassword=function(it,Ne){return _(E(Ne).substr(0,5),it)},R.prototype.encryptor=function(it,Ne){var He=E(this.encryptionKey+String.fromCharCode(255&it,it>>8&255,it>>16&255,255&Ne,Ne>>8&255)).substr(0,10);return function(Ge){return _(He,Ge)}},X.prototype.equals=function(it){var Ne,He="id,objectNumber,equals";if(!it||S()(it)!==S()(this))return!1;var Ge=0;for(Ne in this)if(!(He.indexOf(Ne)>=0)){if(this.hasOwnProperty(Ne)&&!it.hasOwnProperty(Ne))return!1;if(this[Ne]!==it[Ne])return!1;Ge++}for(Ne in it)it.hasOwnProperty(Ne)&&He.indexOf(Ne)<0&&Ge--;return Ge===0},U.API={events:[]},U.version="2.5.1";var V=U.API,Q=1,G=function(Ne){return Ne.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},te=function(Ne){return Ne.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},$=function(Ne){return Ne.toFixed(2)},le=function(Ne){return Ne.toFixed(5)};V.__acroform__={};var re=function(Ne,He){Ne.prototype=Object.create(He.prototype),Ne.prototype.constructor=Ne},Se=function(Ne){return Ne*Q},Re=function(Ne){var He=new Ie,Ge=oe.internal.getHeight(Ne)||0,nt=oe.internal.getWidth(Ne)||0;return He.BBox=[0,0,Number($(nt)),Number($(Ge))],He},Pe=V.__acroform__.setBit=function(it,Ne){if(it=it||0,Ne=Ne||0,isNaN(it)||isNaN(Ne))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return it|=1<<Ne},Je=V.__acroform__.clearBit=function(it,Ne){if(it=it||0,Ne=Ne||0,isNaN(it)||isNaN(Ne))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return it&=~(1<<Ne)},Ve=V.__acroform__.getBit=function(it,Ne){if(isNaN(it)||isNaN(Ne))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(it&1<<Ne)==0?0:1},ct=V.__acroform__.getBitForPdf=function(it,Ne){if(isNaN(it)||isNaN(Ne))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Ve(it,Ne-1)},Ue=V.__acroform__.setBitForPdf=function(it,Ne){if(isNaN(it)||isNaN(Ne))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Pe(it,Ne-1)},ue=V.__acroform__.clearBitForPdf=function(it,Ne){if(isNaN(it)||isNaN(Ne))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Je(it,Ne-1)},rt=V.__acroform__.calculateCoordinates=function(it,Ne){var He=Ne.internal.getHorizontalCoordinate,Ge=Ne.internal.getVerticalCoordinate,nt=it[0],$e=it[1],ot=it[2],Pt=it[3],xt={};return xt.lowerLeft_X=He(nt)||0,xt.lowerLeft_Y=Ge($e+Pt)||0,xt.upperRight_X=He(nt+ot)||0,xt.upperRight_Y=Ge($e)||0,[Number($(xt.lowerLeft_X)),Number($(xt.lowerLeft_Y)),Number($(xt.upperRight_X)),Number($(xt.upperRight_Y))]},ge=function(Ne){if(Ne.appearanceStreamContent)return Ne.appearanceStreamContent;if(Ne.V||Ne.DV){var He=[],Ge=Ne._V||Ne.DV,nt=Z(Ne,Ge),$e=Ne.scope.internal.getFont(Ne.fontName,Ne.fontStyle).id;He.push("/Tx BMC"),He.push("q"),He.push("BT"),He.push(Ne.scope.__private__.encodeColorString(Ne.color)),He.push("/"+$e+" "+$(nt.fontSize)+" Tf"),He.push("1 0 0 1 0 0 Tm"),He.push(nt.text),He.push("ET"),He.push("Q"),He.push("EMC");var ot=Re(Ne);return ot.scope=Ne.scope,ot.stream=He.join(`
`),ot}},Z=function(Ne,He){var Ge=Ne.fontSize===0?Ne.maxFontSize:Ne.fontSize,nt={text:"",fontSize:""},$e=(He=(He=He.substr(0,1)=="("?He.substr(1):He).substr(He.length-1)==")"?He.substr(0,He.length-1):He).split(" ");$e=Ne.multiline?$e.map(function(Wt){return Wt.split(`
`)}):$e.map(function(Wt){return[Wt]});var ot=Ge,Pt=oe.internal.getHeight(Ne)||0;Pt=Pt<0?-Pt:Pt;var xt=oe.internal.getWidth(Ne)||0;xt=xt<0?-xt:xt;var rr=function(Vt,Lt,cr){if(Vt+1<$e.length){var vr=Lt+" "+$e[Vt+1][0];return Y(vr,Ne,cr).width<=xt-4}return!1};ot++;e:for(;ot>0;){He="",ot--;var Fr,Vr,fn=Y("3",Ne,ot).height,gr=Ne.multiline?Pt-ot:(Pt-fn)/2,Gn=gr+=2,Mr=0,Rn=0,bn=0;if(ot<=0){He=`(...) Tj
`,He+="% Width of Text: "+Y(He,Ne,ot=12).width+", FieldWidth:"+xt+`
`;break}for(var rn="",ei=0,fi=0;fi<$e.length;fi++)if($e.hasOwnProperty(fi)){var Mi=!1;if($e[fi].length!==1&&bn!==$e[fi].length-1){if((fn+2)*(ei+2)+2>Pt)continue e;rn+=$e[fi][bn],Mi=!0,Rn=fi,fi--}else{rn=(rn+=$e[fi][bn]+" ").substr(rn.length-1)==" "?rn.substr(0,rn.length-1):rn;var $r=parseInt(fi),En=rr($r,rn,ot),Hn=fi>=$e.length-1;if(En&&!Hn){rn+=" ",bn=0;continue}if(En||Hn){if(Hn)Rn=$r;else if(Ne.multiline&&(fn+2)*(ei+2)+2>Pt)continue e}else{if(!Ne.multiline)continue e;if((fn+2)*(ei+2)+2>Pt)continue e;Rn=$r}}for(var zt="",_t=Mr;_t<=Rn;_t++){var Ft=$e[_t];if(Ne.multiline){if(_t===Rn){zt+=Ft[bn]+" ",bn=(bn+1)%Ft.length;continue}if(_t===Mr){zt+=Ft[Ft.length-1]+" ";continue}}zt+=Ft[0]+" "}switch(zt=zt.substr(zt.length-1)==" "?zt.substr(0,zt.length-1):zt,Vr=Y(zt,Ne,ot).width,Ne.textAlign){case"right":Fr=xt-Vr-2;break;case"center":Fr=(xt-Vr)/2;break;case"left":default:Fr=2}He+=$(Fr)+" "+$(Gn)+` Td
`,He+="("+G(zt)+`) Tj
`,He+=-$(Fr)+` 0 Td
`,Gn=-(ot+2),Vr=0,Mr=Mi?Rn:Rn+1,ei++,rn=""}break}return nt.text=He,nt.fontSize=ot,nt},Y=function(Ne,He,Ge){var nt=He.scope.internal.getFont(He.fontName,He.fontStyle),$e=He.scope.getStringUnitWidth(Ne,{font:nt,fontSize:parseFloat(Ge),charSpace:0})*parseFloat(Ge);return{height:He.scope.getStringUnitWidth("3",{font:nt,fontSize:parseFloat(Ge),charSpace:0})*parseFloat(Ge)*1.5,width:$e}},ee={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},fe=function(Ne,He){var Ge={type:"reference",object:Ne};He.internal.getPageInfo(Ne.page).pageContext.annotations.find(function(nt){return nt.type===Ge.type&&nt.object===Ge.object})===void 0&&He.internal.getPageInfo(Ne.page).pageContext.annotations.push(Ge)},be=function(Ne,He){for(var Ge in Ne)if(Ne.hasOwnProperty(Ge)){var nt=Ge,$e=Ne[Ge];He.internal.newObjectDeferredBegin($e.objId,!0),S()($e)==="object"&&typeof $e.putStream=="function"&&$e.putStream(),delete Ne[nt]}},Ce=function(Ne,He){if(He.scope=Ne,Ne.internal!==void 0&&(Ne.internal.acroformPlugin===void 0||Ne.internal.acroformPlugin.isInitialized===!1)){if(pt.FieldNum=0,Ne.internal.acroformPlugin=JSON.parse(JSON.stringify(ee)),Ne.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Q=Ne.internal.scaleFactor,Ne.internal.acroformPlugin.acroFormDictionaryRoot=new tt,Ne.internal.acroformPlugin.acroFormDictionaryRoot.scope=Ne,Ne.internal.acroformPlugin.acroFormDictionaryRoot._eventID=Ne.internal.events.subscribe("postPutResources",function(){!function(Ge){Ge.internal.events.unsubscribe(Ge.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete Ge.internal.acroformPlugin.acroFormDictionaryRoot._eventID,Ge.internal.acroformPlugin.printedOut=!0}(Ne)}),Ne.internal.events.subscribe("buildDocument",function(){!function(Ge){Ge.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var nt=Ge.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var $e in nt)if(nt.hasOwnProperty($e)){var ot=nt[$e];ot.objId=void 0,ot.hasAnnotation&&fe(ot,Ge)}}(Ne)}),Ne.internal.events.subscribe("putCatalog",function(){!function(Ge){if(Ge.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");Ge.internal.write("/AcroForm "+Ge.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(Ne)}),Ne.internal.events.subscribe("postPutPages",function(Ge){!function(nt,$e){var ot=!nt;for(var Pt in nt||($e.internal.newObjectDeferredBegin($e.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),$e.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),nt=nt||$e.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(nt.hasOwnProperty(Pt)){var xt=nt[Pt],rr=[],Fr=xt.Rect;if(xt.Rect&&(xt.Rect=rt(xt.Rect,$e)),$e.internal.newObjectDeferredBegin(xt.objId,!0),xt.DA=oe.createDefaultAppearanceStream(xt),S()(xt)==="object"&&typeof xt.getKeyValueListForStream=="function"&&(rr=xt.getKeyValueListForStream()),xt.Rect=Fr,xt.hasAppearanceStream&&!xt.appearanceStreamContent){var Vr=ge(xt);rr.push({key:"AP",value:"<</N "+Vr+">>"}),$e.internal.acroformPlugin.xForms.push(Vr)}if(xt.appearanceStreamContent){var fn="";for(var gr in xt.appearanceStreamContent)if(xt.appearanceStreamContent.hasOwnProperty(gr)){var Gn=xt.appearanceStreamContent[gr];if(fn+="/"+gr+" ",fn+="<<",Object.keys(Gn).length>=1||Array.isArray(Gn)){for(var Pt in Gn)if(Gn.hasOwnProperty(Pt)){var Mr=Gn[Pt];typeof Mr=="function"&&(Mr=Mr.call($e,xt)),fn+="/"+Pt+" "+Mr+" ",$e.internal.acroformPlugin.xForms.indexOf(Mr)>=0||$e.internal.acroformPlugin.xForms.push(Mr)}}else typeof(Mr=Gn)=="function"&&(Mr=Mr.call($e,xt)),fn+="/"+Pt+" "+Mr,$e.internal.acroformPlugin.xForms.indexOf(Mr)>=0||$e.internal.acroformPlugin.xForms.push(Mr);fn+=">>"}rr.push({key:"AP",value:`<<
`+fn+">>"})}$e.internal.putStream({additionalKeyValues:rr,objectId:xt.objId}),$e.internal.out("endobj")}ot&&be($e.internal.acroformPlugin.xForms,$e)}(Ge,Ne)}),Ne.internal.acroformPlugin.isInitialized=!0}},Te=V.__acroform__.arrayToPdfArray=function(it,Ne,He){var Ge=function(Pt){return Pt};if(Array.isArray(it)){for(var nt="[",$e=0;$e<it.length;$e++)switch($e!==0&&(nt+=" "),S()(it[$e])){case"boolean":case"number":case"object":nt+=it[$e].toString();break;case"string":it[$e].substr(0,1)!=="/"?(Ne!==void 0&&He&&(Ge=He.internal.getEncryptor(Ne)),nt+="("+G(Ge(it[$e].toString()))+")"):nt+=it[$e].toString()}return nt+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},he=function(Ne,He,Ge){var nt=function(ot){return ot};return He!==void 0&&Ge&&(nt=Ge.internal.getEncryptor(He)),(Ne=Ne||"").toString(),Ne="("+G(nt(Ne))+")"},ye=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(He){this._objId=He}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};ye.prototype.toString=function(){return this.objId+" 0 R"},ye.prototype.putStream=function(){var it=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:it,objectId:this.objId}),this.scope.internal.out("endobj")},ye.prototype.getKeyValueListForStream=function(){var it=[],Ne=Object.getOwnPropertyNames(this).filter(function($e){return $e!="content"&&$e!="appearanceStreamContent"&&$e!="scope"&&$e!="objId"&&$e.substring(0,1)!="_"});for(var He in Ne)if(Object.getOwnPropertyDescriptor(this,Ne[He]).configurable===!1){var Ge=Ne[He],nt=this[Ge];nt&&(Array.isArray(nt)?it.push({key:Ge,value:Te(nt,this.objId,this.scope)}):nt instanceof ye?(nt.scope=this.scope,it.push({key:Ge,value:nt.objId+" 0 R"})):typeof nt!="function"&&it.push({key:Ge,value:nt}))}return it};var Ie=function(){ye.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 Ne,He=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return He},set:function(nt){He=nt}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(nt){Ne=nt.trim()},get:function(){return Ne||null}})};re(Ie,ye);var tt=function(){ye.call(this);var Ne,He=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return He.length>0?He:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return He}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(Ne){var nt=function(ot){return ot};return this.scope&&(nt=this.scope.internal.getEncryptor(this.objId)),"("+G(nt(Ne))+")"}},set:function(nt){Ne=nt}})};re(tt,ye);var pt=function it(){ye.call(this);var Ne=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return Ne},set:function(rn){if(isNaN(rn))throw new Error('Invalid value "'+rn+'" for attribute F supplied.');Ne=rn}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(Ne,3))},set:function(rn){Boolean(rn)===!0?this.F=Ue(Ne,3):this.F=ue(Ne,3)}});var He=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return He},set:function(rn){if(isNaN(rn))throw new Error('Invalid value "'+rn+'" for attribute Ff supplied.');He=rn}});var Ge=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(Ge.length!==0)return Ge},set:function(rn){Ge=rn!==void 0?rn:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!Ge||isNaN(Ge[0])?0:Ge[0]},set:function(rn){Ge[0]=rn}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!Ge||isNaN(Ge[1])?0:Ge[1]},set:function(rn){Ge[1]=rn}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!Ge||isNaN(Ge[2])?0:Ge[2]},set:function(rn){Ge[2]=rn}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!Ge||isNaN(Ge[3])?0:Ge[3]},set:function(rn){Ge[3]=rn}});var nt="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return nt},set:function(rn){switch(rn){case"/Btn":case"/Tx":case"/Ch":case"/Sig":nt=rn;break;default:throw new Error('Invalid value "'+rn+'" for attribute FT supplied.')}}});var $e=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!$e||$e.length<1){if(this instanceof Tt)return;$e="FieldObject"+it.FieldNum++}var rn=function(fi){return fi};return this.scope&&(rn=this.scope.internal.getEncryptor(this.objId)),"("+G(rn($e))+")"},set:function(rn){$e=rn.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return $e},set:function(rn){$e=rn}});var ot="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return ot},set:function(rn){ot=rn}});var Pt="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return Pt},set:function(rn){Pt=rn}});var xt=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return xt},set:function(rn){xt=rn}});var rr=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return rr===void 0?50/Q:rr},set:function(rn){rr=rn}});var Fr="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return Fr},set:function(rn){Fr=rn}});var Vr="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Vr||this instanceof Tt||this instanceof Ke))return he(Vr,this.objId,this.scope)},set:function(rn){rn=rn.toString(),Vr=rn}});var fn=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(fn)return this instanceof wt==!1?he(fn,this.objId,this.scope):fn},set:function(rn){rn=rn.toString(),fn=this instanceof wt==!1?rn.substr(0,1)==="("?te(rn.substr(1,rn.length-2)):te(rn):rn}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof wt==!0?te(fn.substr(1,fn.length-1)):fn},set:function(rn){rn=rn.toString(),fn=this instanceof wt==!0?"/"+rn:rn}});var gr=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(gr)return gr},set:function(rn){this.V=rn}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(gr)return this instanceof wt==!1?he(gr,this.objId,this.scope):gr},set:function(rn){rn=rn.toString(),gr=this instanceof wt==!1?rn.substr(0,1)==="("?te(rn.substr(1,rn.length-2)):te(rn):rn}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof wt==!0?te(gr.substr(1,gr.length-1)):gr},set:function(rn){rn=rn.toString(),gr=this instanceof wt==!0?"/"+rn:rn}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var Gn,Mr=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return Mr},set:function(rn){rn=Boolean(rn),Mr=rn}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(Gn)return Gn},set:function(rn){Gn=rn}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,1))},set:function(rn){Boolean(rn)===!0?this.Ff=Ue(this.Ff,1):this.Ff=ue(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,2))},set:function(rn){Boolean(rn)===!0?this.Ff=Ue(this.Ff,2):this.Ff=ue(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,3))},set:function(rn){Boolean(rn)===!0?this.Ff=Ue(this.Ff,3):this.Ff=ue(this.Ff,3)}});var Rn=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(Rn!==null)return Rn},set:function(rn){if([0,1,2].indexOf(rn)===-1)throw new Error('Invalid value "'+rn+'" for attribute Q supplied.');Rn=rn}}),Object.defineProperty(this,"textAlign",{get:function(){var rn;switch(Rn){case 0:default:rn="left";break;case 1:rn="center";break;case 2:rn="right"}return rn},configurable:!0,enumerable:!0,set:function(rn){switch(rn){case"right":case 2:Rn=2;break;case"center":case 1:Rn=1;break;case"left":case 0:default:Rn=0}}})};re(pt,ye);var st=function(){pt.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var Ne=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return Ne},set:function(nt){Ne=nt}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return Ne},set:function(nt){Ne=nt}});var He=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Te(He,this.objId,this.scope)},set:function(nt){var $e,ot;ot=[],typeof($e=nt)=="string"&&(ot=function(Pt,xt,rr){rr||(rr=1);for(var Fr,Vr=[];Fr=xt.exec(Pt);)Vr.push(Fr[rr]);return Vr}($e,/\((.*?)\)/g)),He=ot}}),this.getOptions=function(){return He},this.setOptions=function(Ge){He=Ge,this.sort&&He.sort()},this.addOption=function(Ge){Ge=(Ge=Ge||"").toString(),He.push(Ge),this.sort&&He.sort()},this.removeOption=function(Ge,nt){for(nt=nt||!1,Ge=(Ge=Ge||"").toString();He.indexOf(Ge)!==-1&&(He.splice(He.indexOf(Ge),1),nt!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,18))},set:function(nt){Boolean(nt)===!0?this.Ff=Ue(this.Ff,18):this.Ff=ue(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,19))},set:function(nt){this.combo===!0&&(Boolean(nt)===!0?this.Ff=Ue(this.Ff,19):this.Ff=ue(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,20))},set:function(nt){Boolean(nt)===!0?(this.Ff=Ue(this.Ff,20),He.sort()):this.Ff=ue(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,22))},set:function(nt){Boolean(nt)===!0?this.Ff=Ue(this.Ff,22):this.Ff=ue(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,23))},set:function(nt){Boolean(nt)===!0?this.Ff=Ue(this.Ff,23):this.Ff=ue(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,27))},set:function(nt){Boolean(nt)===!0?this.Ff=Ue(this.Ff,27):this.Ff=ue(this.Ff,27)}}),this.hasAppearanceStream=!1};re(st,pt);var Fe=function(){st.call(this),this.fontName="helvetica",this.combo=!1};re(Fe,st);var ft=function(){Fe.call(this),this.combo=!0};re(ft,Fe);var et=function(){ft.call(this),this.edit=!0};re(et,ft);var wt=function(){pt.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,15))},set:function(nt){Boolean(nt)===!0?this.Ff=Ue(this.Ff,15):this.Ff=ue(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,16))},set:function(nt){Boolean(nt)===!0?this.Ff=Ue(this.Ff,16):this.Ff=ue(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,17))},set:function(nt){Boolean(nt)===!0?this.Ff=Ue(this.Ff,17):this.Ff=ue(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,26))},set:function(nt){Boolean(nt)===!0?this.Ff=Ue(this.Ff,26):this.Ff=ue(this.Ff,26)}});var Ne,He={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var nt=function(xt){return xt};if(this.scope&&(nt=this.scope.internal.getEncryptor(this.objId)),Object.keys(He).length!==0){var $e,ot=[];for($e in ot.push("<<"),He)ot.push("/"+$e+" ("+G(nt(He[$e]))+")");return ot.push(">>"),ot.join(`
`)}},set:function(nt){S()(nt)==="object"&&(He=nt)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return He.CA||""},set:function(nt){typeof nt=="string"&&(He.CA=nt)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Ne},set:function(nt){Ne=nt}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Ne.substr(1,Ne.length-1)},set:function(nt){Ne="/"+nt}})};re(wt,pt);var Ht=function(){wt.call(this),this.pushButton=!0};re(Ht,wt);var Dt=function(){wt.call(this),this.radio=!0,this.pushButton=!1;var Ne=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return Ne},set:function(Ge){Ne=Ge!==void 0?Ge:[]}})};re(Dt,wt);var Tt=function(){var Ne,He;pt.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return Ne},set:function(ot){Ne=ot}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return He},set:function(ot){He=ot}});var Ge,nt={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var ot=function(Fr){return Fr};this.scope&&(ot=this.scope.internal.getEncryptor(this.objId));var Pt,xt=[];for(Pt in xt.push("<<"),nt)xt.push("/"+Pt+" ("+G(ot(nt[Pt]))+")");return xt.push(">>"),xt.join(`
`)},set:function(ot){S()(ot)==="object"&&(nt=ot)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return nt.CA||""},set:function(ot){typeof ot=="string"&&(nt.CA=ot)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return Ge},set:function(ot){Ge=ot}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return Ge.substr(1,Ge.length-1)},set:function(ot){Ge="/"+ot}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=oe.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};re(Tt,pt),Dt.prototype.setAppearance=function(it){if(!("createAppearanceStream"in it)||!("getCA"in it))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var Ne in this.Kids)if(this.Kids.hasOwnProperty(Ne)){var He=this.Kids[Ne];He.appearanceStreamContent=it.createAppearanceStream(He.optionName),He.caption=it.getCA()}},Dt.prototype.createOption=function(it){var Ne=new Tt;return Ne.Parent=this,Ne.optionName=it,this.Kids.push(Ne),lt.call(this.scope,Ne),Ne};var Bt=function(){wt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=oe.CheckBox.createAppearanceStream()};re(Bt,wt);var Ke=function(){pt.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,13))},set:function(Ge){Boolean(Ge)===!0?this.Ff=Ue(this.Ff,13):this.Ff=ue(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,21))},set:function(Ge){Boolean(Ge)===!0?this.Ff=Ue(this.Ff,21):this.Ff=ue(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,23))},set:function(Ge){Boolean(Ge)===!0?this.Ff=Ue(this.Ff,23):this.Ff=ue(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,24))},set:function(Ge){Boolean(Ge)===!0?this.Ff=Ue(this.Ff,24):this.Ff=ue(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,25))},set:function(Ge){Boolean(Ge)===!0?this.Ff=Ue(this.Ff,25):this.Ff=ue(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,26))},set:function(Ge){Boolean(Ge)===!0?this.Ff=Ue(this.Ff,26):this.Ff=ue(this.Ff,26)}});var Ne=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return Ne},set:function(Ge){Ne=Ge}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return Ne},set:function(Ge){Number.isInteger(Ge)&&(Ne=Ge)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};re(Ke,pt);var de=function(){Ke.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(ct(this.Ff,14))},set:function(He){Boolean(He)===!0?this.Ff=Ue(this.Ff,14):this.Ff=ue(this.Ff,14)}}),this.password=!0};re(de,Ke);var oe={CheckBox:{createAppearanceStream:function(){return{N:{On:oe.CheckBox.YesNormal},D:{On:oe.CheckBox.YesPushDown,Off:oe.CheckBox.OffPushDown}}},YesPushDown:function(Ne){var He=Re(Ne);He.scope=Ne.scope;var Ge=[],nt=Ne.scope.internal.getFont(Ne.fontName,Ne.fontStyle).id,$e=Ne.scope.__private__.encodeColorString(Ne.color),ot=Z(Ne,Ne.caption);return Ge.push("0.749023 g"),Ge.push("0 0 "+$(oe.internal.getWidth(Ne))+" "+$(oe.internal.getHeight(Ne))+" re"),Ge.push("f"),Ge.push("BMC"),Ge.push("q"),Ge.push("0 0 1 rg"),Ge.push("/"+nt+" "+$(ot.fontSize)+" Tf "+$e),Ge.push("BT"),Ge.push(ot.text),Ge.push("ET"),Ge.push("Q"),Ge.push("EMC"),He.stream=Ge.join(`
`),He},YesNormal:function(Ne){var He=Re(Ne);He.scope=Ne.scope;var Ge=Ne.scope.internal.getFont(Ne.fontName,Ne.fontStyle).id,nt=Ne.scope.__private__.encodeColorString(Ne.color),$e=[],ot=oe.internal.getHeight(Ne),Pt=oe.internal.getWidth(Ne),xt=Z(Ne,Ne.caption);return $e.push("1 g"),$e.push("0 0 "+$(Pt)+" "+$(ot)+" re"),$e.push("f"),$e.push("q"),$e.push("0 0 1 rg"),$e.push("0 0 "+$(Pt-1)+" "+$(ot-1)+" re"),$e.push("W"),$e.push("n"),$e.push("0 g"),$e.push("BT"),$e.push("/"+Ge+" "+$(xt.fontSize)+" Tf "+nt),$e.push(xt.text),$e.push("ET"),$e.push("Q"),He.stream=$e.join(`
`),He},OffPushDown:function(Ne){var He=Re(Ne);He.scope=Ne.scope;var Ge=[];return Ge.push("0.749023 g"),Ge.push("0 0 "+$(oe.internal.getWidth(Ne))+" "+$(oe.internal.getHeight(Ne))+" re"),Ge.push("f"),He.stream=Ge.join(`
`),He}},RadioButton:{Circle:{createAppearanceStream:function(Ne){var He={D:{Off:oe.RadioButton.Circle.OffPushDown},N:{}};return He.N[Ne]=oe.RadioButton.Circle.YesNormal,He.D[Ne]=oe.RadioButton.Circle.YesPushDown,He},getCA:function(){return"l"},YesNormal:function(Ne){var He=Re(Ne);He.scope=Ne.scope;var Ge=[],nt=oe.internal.getWidth(Ne)<=oe.internal.getHeight(Ne)?oe.internal.getWidth(Ne)/4:oe.internal.getHeight(Ne)/4;nt=Number((.9*nt).toFixed(5));var $e=oe.internal.Bezier_C,ot=Number((nt*$e).toFixed(5));return Ge.push("q"),Ge.push("1 0 0 1 "+le(oe.internal.getWidth(Ne)/2)+" "+le(oe.internal.getHeight(Ne)/2)+" cm"),Ge.push(nt+" 0 m"),Ge.push(nt+" "+ot+" "+ot+" "+nt+" 0 "+nt+" c"),Ge.push("-"+ot+" "+nt+" -"+nt+" "+ot+" -"+nt+" 0 c"),Ge.push("-"+nt+" -"+ot+" -"+ot+" -"+nt+" 0 -"+nt+" c"),Ge.push(ot+" -"+nt+" "+nt+" -"+ot+" "+nt+" 0 c"),Ge.push("f"),Ge.push("Q"),He.stream=Ge.join(`
`),He},YesPushDown:function(Ne){var He=Re(Ne);He.scope=Ne.scope;var Ge=[],nt=oe.internal.getWidth(Ne)<=oe.internal.getHeight(Ne)?oe.internal.getWidth(Ne)/4:oe.internal.getHeight(Ne)/4;nt=Number((.9*nt).toFixed(5));var $e=Number((2*nt).toFixed(5)),ot=Number(($e*oe.internal.Bezier_C).toFixed(5)),Pt=Number((nt*oe.internal.Bezier_C).toFixed(5));return Ge.push("0.749023 g"),Ge.push("q"),Ge.push("1 0 0 1 "+le(oe.internal.getWidth(Ne)/2)+" "+le(oe.internal.getHeight(Ne)/2)+" cm"),Ge.push($e+" 0 m"),Ge.push($e+" "+ot+" "+ot+" "+$e+" 0 "+$e+" c"),Ge.push("-"+ot+" "+$e+" -"+$e+" "+ot+" -"+$e+" 0 c"),Ge.push("-"+$e+" -"+ot+" -"+ot+" -"+$e+" 0 -"+$e+" c"),Ge.push(ot+" -"+$e+" "+$e+" -"+ot+" "+$e+" 0 c"),Ge.push("f"),Ge.push("Q"),Ge.push("0 g"),Ge.push("q"),Ge.push("1 0 0 1 "+le(oe.internal.getWidth(Ne)/2)+" "+le(oe.internal.getHeight(Ne)/2)+" cm"),Ge.push(nt+" 0 m"),Ge.push(nt+" "+Pt+" "+Pt+" "+nt+" 0 "+nt+" c"),Ge.push("-"+Pt+" "+nt+" -"+nt+" "+Pt+" -"+nt+" 0 c"),Ge.push("-"+nt+" -"+Pt+" -"+Pt+" -"+nt+" 0 -"+nt+" c"),Ge.push(Pt+" -"+nt+" "+nt+" -"+Pt+" "+nt+" 0 c"),Ge.push("f"),Ge.push("Q"),He.stream=Ge.join(`
`),He},OffPushDown:function(Ne){var He=Re(Ne);He.scope=Ne.scope;var Ge=[],nt=oe.internal.getWidth(Ne)<=oe.internal.getHeight(Ne)?oe.internal.getWidth(Ne)/4:oe.internal.getHeight(Ne)/4;nt=Number((.9*nt).toFixed(5));var $e=Number((2*nt).toFixed(5)),ot=Number(($e*oe.internal.Bezier_C).toFixed(5));return Ge.push("0.749023 g"),Ge.push("q"),Ge.push("1 0 0 1 "+le(oe.internal.getWidth(Ne)/2)+" "+le(oe.internal.getHeight(Ne)/2)+" cm"),Ge.push($e+" 0 m"),Ge.push($e+" "+ot+" "+ot+" "+$e+" 0 "+$e+" c"),Ge.push("-"+ot+" "+$e+" -"+$e+" "+ot+" -"+$e+" 0 c"),Ge.push("-"+$e+" -"+ot+" -"+ot+" -"+$e+" 0 -"+$e+" c"),Ge.push(ot+" -"+$e+" "+$e+" -"+ot+" "+$e+" 0 c"),Ge.push("f"),Ge.push("Q"),He.stream=Ge.join(`
`),He}},Cross:{createAppearanceStream:function(Ne){var He={D:{Off:oe.RadioButton.Cross.OffPushDown},N:{}};return He.N[Ne]=oe.RadioButton.Cross.YesNormal,He.D[Ne]=oe.RadioButton.Cross.YesPushDown,He},getCA:function(){return"8"},YesNormal:function(Ne){var He=Re(Ne);He.scope=Ne.scope;var Ge=[],nt=oe.internal.calculateCross(Ne);return Ge.push("q"),Ge.push("1 1 "+$(oe.internal.getWidth(Ne)-2)+" "+$(oe.internal.getHeight(Ne)-2)+" re"),Ge.push("W"),Ge.push("n"),Ge.push($(nt.x1.x)+" "+$(nt.x1.y)+" m"),Ge.push($(nt.x2.x)+" "+$(nt.x2.y)+" l"),Ge.push($(nt.x4.x)+" "+$(nt.x4.y)+" m"),Ge.push($(nt.x3.x)+" "+$(nt.x3.y)+" l"),Ge.push("s"),Ge.push("Q"),He.stream=Ge.join(`
`),He},YesPushDown:function(Ne){var He=Re(Ne);He.scope=Ne.scope;var Ge=oe.internal.calculateCross(Ne),nt=[];return nt.push("0.749023 g"),nt.push("0 0 "+$(oe.internal.getWidth(Ne))+" "+$(oe.internal.getHeight(Ne))+" re"),nt.push("f"),nt.push("q"),nt.push("1 1 "+$(oe.internal.getWidth(Ne)-2)+" "+$(oe.internal.getHeight(Ne)-2)+" re"),nt.push("W"),nt.push("n"),nt.push($(Ge.x1.x)+" "+$(Ge.x1.y)+" m"),nt.push($(Ge.x2.x)+" "+$(Ge.x2.y)+" l"),nt.push($(Ge.x4.x)+" "+$(Ge.x4.y)+" m"),nt.push($(Ge.x3.x)+" "+$(Ge.x3.y)+" l"),nt.push("s"),nt.push("Q"),He.stream=nt.join(`
`),He},OffPushDown:function(Ne){var He=Re(Ne);He.scope=Ne.scope;var Ge=[];return Ge.push("0.749023 g"),Ge.push("0 0 "+$(oe.internal.getWidth(Ne))+" "+$(oe.internal.getHeight(Ne))+" re"),Ge.push("f"),He.stream=Ge.join(`
`),He}}},createDefaultAppearanceStream:function(Ne){var He=Ne.scope.internal.getFont(Ne.fontName,Ne.fontStyle).id,Ge=Ne.scope.__private__.encodeColorString(Ne.color);return"/"+He+" "+Ne.fontSize+" Tf "+Ge}};oe.internal={Bezier_C:.551915024494,calculateCross:function(Ne){var He=oe.internal.getWidth(Ne),Ge=oe.internal.getHeight(Ne),nt=Math.min(He,Ge);return{x1:{x:(He-nt)/2,y:(Ge-nt)/2+nt},x2:{x:(He-nt)/2+nt,y:(Ge-nt)/2},x3:{x:(He-nt)/2,y:(Ge-nt)/2},x4:{x:(He-nt)/2+nt,y:(Ge-nt)/2+nt}}}},oe.internal.getWidth=function(it){var Ne=0;return S()(it)==="object"&&(Ne=Se(it.Rect[2])),Ne},oe.internal.getHeight=function(it){var Ne=0;return S()(it)==="object"&&(Ne=Se(it.Rect[3])),Ne};var lt=V.addField=function(it){if(Ce(this,it),!(it instanceof pt))throw new Error("Invalid argument passed to jsPDF.addField.");var Ne;return(Ne=it).scope.internal.acroformPlugin.printedOut&&(Ne.scope.internal.acroformPlugin.printedOut=!1,Ne.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),Ne.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(Ne),it.page=it.scope.internal.getCurrentPageInfo().pageNumber,this};V.AcroFormChoiceField=st,V.AcroFormListBox=Fe,V.AcroFormComboBox=ft,V.AcroFormEditBox=et,V.AcroFormButton=wt,V.AcroFormPushButton=Ht,V.AcroFormRadioButton=Dt,V.AcroFormCheckBox=Bt,V.AcroFormTextField=Ke,V.AcroFormPasswordField=de,V.AcroFormAppearance=oe,V.AcroForm={ChoiceField:st,ListBox:Fe,ComboBox:ft,EditBox:et,Button:wt,PushButton:Ht,RadioButton:Dt,CheckBox:Bt,TextField:Ke,PasswordField:de,Appearance:oe},U.AcroForm={ChoiceField:st,ListBox:Fe,ComboBox:ft,EditBox:et,Button:wt,PushButton:Ht,RadioButton:Dt,CheckBox:Bt,TextField:Ke,PasswordField:de,Appearance:oe};var qe=U.AcroForm;function pe(it){return it.reduce(function(Ne,He,Ge){return Ne[He]=Ge,Ne},{})}!function(it){it.__addimage__={};var Ne="UNKNOWN",He={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]]},Ge=it.__addimage__.getImageFileTypeByImageData=function(Ft,Wt){var Vt,Lt,cr,vr,yr,Dr=Ne;if((Wt=Wt||Ne)==="RGBA"||Ft.data!==void 0&&Ft.data instanceof Uint8ClampedArray&&"height"in Ft&&"width"in Ft)return"RGBA";if($r(Ft))for(yr in He)for(cr=He[yr],Vt=0;Vt<cr.length;Vt+=1){for(vr=!0,Lt=0;Lt<cr[Vt].length;Lt+=1)if(cr[Vt][Lt]!==void 0&&cr[Vt][Lt]!==Ft[Lt]){vr=!1;break}if(vr===!0){Dr=yr;break}}else for(yr in He)for(cr=He[yr],Vt=0;Vt<cr.length;Vt+=1){for(vr=!0,Lt=0;Lt<cr[Vt].length;Lt+=1)if(cr[Vt][Lt]!==void 0&&cr[Vt][Lt]!==Ft.charCodeAt(Lt)){vr=!1;break}if(vr===!0){Dr=yr;break}}return Dr===Ne&&Wt!==Ne&&(Dr=Wt),Dr},nt=function Ft(Wt){for(var Vt=this.internal.write,Lt=this.internal.putStream,cr=(0,this.internal.getFilters)();cr.indexOf("FlateEncode")!==-1;)cr.splice(cr.indexOf("FlateEncode"),1);Wt.objectId=this.internal.newObject();var vr=[];if(vr.push({key:"Type",value:"/XObject"}),vr.push({key:"Subtype",value:"/Image"}),vr.push({key:"Width",value:Wt.width}),vr.push({key:"Height",value:Wt.height}),Wt.colorSpace===Rn.INDEXED?vr.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]"}):(vr.push({key:"ColorSpace",value:"/"+Wt.colorSpace}),Wt.colorSpace===Rn.DEVICE_CMYK&&vr.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),vr.push({key:"BitsPerComponent",value:Wt.bitsPerComponent}),"decodeParameters"in Wt&&Wt.decodeParameters!==void 0&&vr.push({key:"DecodeParms",value:"<<"+Wt.decodeParameters+">>"}),"transparency"in Wt&&Array.isArray(Wt.transparency)){for(var yr="",Dr=0,Kn=Wt.transparency.length;Dr<Kn;Dr++)yr+=Wt.transparency[Dr]+" "+Wt.transparency[Dr]+" ";vr.push({key:"Mask",value:"["+yr+"]"})}Wt.sMask!==void 0&&vr.push({key:"SMask",value:Wt.objectId+1+" 0 R"});var Dn=Wt.filter!==void 0?["/"+Wt.filter]:void 0;if(Lt({data:Wt.data,additionalKeyValues:vr,alreadyAppliedFilters:Dn,objectId:Wt.objectId}),Vt("endobj"),"sMask"in Wt&&Wt.sMask!==void 0){var di="/Predictor "+Wt.predictor+" /Colors 1 /BitsPerComponent "+Wt.bitsPerComponent+" /Columns "+Wt.width,mn={width:Wt.width,height:Wt.height,colorSpace:"DeviceGray",bitsPerComponent:Wt.bitsPerComponent,decodeParameters:di,data:Wt.sMask};"filter"in Wt&&(mn.filter=Wt.filter),Ft.call(this,mn)}if(Wt.colorSpace===Rn.INDEXED){var Ur=this.internal.newObject();Lt({data:Hn(new Uint8Array(Wt.palette)),objectId:Ur}),Vt("endobj")}},$e=function(){var Wt=this.internal.collections.addImage_images;for(var Vt in Wt)nt.call(this,Wt[Vt])},ot=function(){var Wt,Vt=this.internal.collections.addImage_images,Lt=this.internal.write;for(var cr in Vt)Lt("/I"+(Wt=Vt[cr]).index,Wt.objectId,"0","R")},Pt=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",$e),this.internal.events.subscribe("putXobjectDict",ot))},xt=function(){var Wt=this.internal.collections.addImage_images;return Pt.call(this),Wt},rr=function(){return Object.keys(this.internal.collections.addImage_images).length},Fr=function(Wt){return typeof it["process"+Wt.toUpperCase()]=="function"},Vr=function(Wt){return S()(Wt)==="object"&&Wt.nodeType===1},fn=function(Wt,Vt){if(Wt.nodeName==="IMG"&&Wt.hasAttribute("src")){var Lt=""+Wt.getAttribute("src");if(Lt.indexOf("data:image/")===0)return t(unescape(Lt).split("base64,").pop());var cr=it.loadFile(Lt,!0);if(cr!==void 0)return cr}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 vr;switch(Vt){case"PNG":vr="image/png";break;case"WEBP":vr="image/webp";break;case"JPEG":case"JPG":default:vr="image/jpeg"}return t(Wt.toDataURL(vr,1).split("base64,").pop())}},gr=function(Wt){var Vt=this.internal.collections.addImage_images;if(Vt){for(var Lt in Vt)if(Wt===Vt[Lt].alias)return Vt[Lt]}},Gn=function(Wt,Vt,Lt){return Wt||Vt||(Wt=-96,Vt=-96),Wt<0&&(Wt=-1*Lt.width*72/Wt/this.internal.scaleFactor),Vt<0&&(Vt=-1*Lt.height*72/Vt/this.internal.scaleFactor),Wt===0&&(Wt=Vt*Lt.width/Lt.height),Vt===0&&(Vt=Wt*Lt.height/Lt.width),[Wt,Vt]},Mr=function(Wt,Vt,Lt,cr,vr,yr){var Dr=Gn.call(this,Lt,cr,vr),Kn=this.internal.getCoordinateString,Dn=this.internal.getVerticalCoordinateString,di=xt.call(this);if(Lt=Dr[0],cr=Dr[1],di[vr.index]=vr,yr){yr*=Math.PI/180;var mn=Math.cos(yr),Ur=Math.sin(yr),On=function(oi){return oi.toFixed(4)},zn=[On(mn),On(Ur),On(-1*Ur),On(mn),0,0,"cm"]}this.internal.write("q"),yr?(this.internal.write([1,"0","0",1,Kn(Wt),Dn(Vt+cr),"cm"].join(" ")),this.internal.write(zn.join(" ")),this.internal.write([Kn(Lt),"0","0",Kn(cr),"0","0","cm"].join(" "))):this.internal.write([Kn(Lt),"0","0",Kn(cr),Kn(Wt),Dn(Vt+cr),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+vr.index+" Do"),this.internal.write("Q")},Rn=it.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"};it.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 bn=it.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},rn=it.__addimage__.sHashCode=function(Ft){var Wt,Vt,Lt=0;if(typeof Ft=="string")for(Vt=Ft.length,Wt=0;Wt<Vt;Wt++)Lt=(Lt<<5)-Lt+Ft.charCodeAt(Wt),Lt|=0;else if($r(Ft))for(Vt=Ft.byteLength/2,Wt=0;Wt<Vt;Wt++)Lt=(Lt<<5)-Lt+Ft[Wt],Lt|=0;return Lt},ei=it.__addimage__.validateStringAsBase64=function(Ft){(Ft=Ft||"").toString().trim();var Wt=!0;return Ft.length===0&&(Wt=!1),Ft.length%4!=0&&(Wt=!1),/^[A-Za-z0-9+/]+$/.test(Ft.substr(0,Ft.length-2))===!1&&(Wt=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(Ft.substr(-2))===!1&&(Wt=!1),Wt},fi=it.__addimage__.extractImageFromDataUrl=function(Ft){var Wt=(Ft=Ft||"").split("base64,"),Vt=null;if(Wt.length===2){var Lt=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(Wt[0]);Array.isArray(Lt)&&(Vt={mimeType:Lt[1],charset:Lt[2],data:Wt[1]})}return Vt},Mi=it.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"};it.__addimage__.isArrayBuffer=function(Ft){return Mi()&&Ft instanceof ArrayBuffer};var $r=it.__addimage__.isArrayBufferView=function(Ft){return Mi()&&typeof Uint32Array!="undefined"&&(Ft instanceof Int8Array||Ft instanceof Uint8Array||typeof Uint8ClampedArray!="undefined"&&Ft instanceof Uint8ClampedArray||Ft instanceof Int16Array||Ft instanceof Uint16Array||Ft instanceof Int32Array||Ft instanceof Uint32Array||Ft instanceof Float32Array||Ft instanceof Float64Array)},En=it.__addimage__.binaryStringToUint8Array=function(Ft){for(var Wt=Ft.length,Vt=new Uint8Array(Wt),Lt=0;Lt<Wt;Lt++)Vt[Lt]=Ft.charCodeAt(Lt);return Vt},Hn=it.__addimage__.arrayBufferToBinaryString=function(Ft){for(var Wt="",Vt=$r(Ft)?Ft:new Uint8Array(Ft),Lt=0;Lt<Vt.length;Lt+=8192)Wt+=String.fromCharCode.apply(null,Vt.subarray(Lt,Lt+8192));return Wt};it.addImage=function(){var Ft,Wt,Vt,Lt,cr,vr,yr,Dr,Kn;if(typeof arguments[1]=="number"?(Wt=Ne,Vt=arguments[1],Lt=arguments[2],cr=arguments[3],vr=arguments[4],yr=arguments[5],Dr=arguments[6],Kn=arguments[7]):(Wt=arguments[1],Vt=arguments[2],Lt=arguments[3],cr=arguments[4],vr=arguments[5],yr=arguments[6],Dr=arguments[7],Kn=arguments[8]),S()(Ft=arguments[0])==="object"&&!Vr(Ft)&&"imageData"in Ft){var Dn=Ft;Ft=Dn.imageData,Wt=Dn.format||Wt||Ne,Vt=Dn.x||Vt||0,Lt=Dn.y||Lt||0,cr=Dn.w||Dn.width||cr,vr=Dn.h||Dn.height||vr,yr=Dn.alias||yr,Dr=Dn.compression||Dr,Kn=Dn.rotation||Dn.angle||Kn}var di=this.internal.getFilters();if(Dr===void 0&&di.indexOf("FlateEncode")!==-1&&(Dr="SLOW"),isNaN(Vt)||isNaN(Lt))throw new Error("Invalid coordinates passed to jsPDF.addImage");Pt.call(this);var mn=zt.call(this,Ft,Wt,yr,Dr);return Mr.call(this,Vt,Lt,cr,vr,mn,Kn),this};var zt=function(Wt,Vt,Lt,cr){var vr,yr,Dr;if(typeof Wt=="string"&&Ge(Wt)===Ne){Wt=unescape(Wt);var Kn=_t(Wt,!1);(Kn!==""||(Kn=it.loadFile(Wt,!0))!==void 0)&&(Wt=Kn)}if(Vr(Wt)&&(Wt=fn(Wt,Vt)),Vt=Ge(Wt,Vt),!Fr(Vt))throw new Error("addImage does not support files of type '"+Vt+"', please ensure that a plugin for '"+Vt+"' support is added.");if(((Dr=Lt)==null||Dr.length===0)&&(Lt=function(Dn){return typeof Dn=="string"||$r(Dn)?rn(Dn):$r(Dn.data)?rn(Dn.data):null}(Wt)),(vr=gr.call(this,Lt))||(Mi()&&(Wt instanceof Uint8Array||Vt==="RGBA"||(yr=Wt,Wt=En(Wt))),vr=this["process"+Vt.toUpperCase()](Wt,rr.call(this),Lt,function(Dn){return Dn&&typeof Dn=="string"&&(Dn=Dn.toUpperCase()),Dn in it.image_compression?Dn:bn.NONE}(cr),yr)),!vr)throw new Error("An unknown error occurred whilst processing the image.");return vr},_t=it.__addimage__.convertBase64ToBinaryString=function(Ft,Wt){var Vt;Wt=typeof Wt!="boolean"||Wt;var Lt,cr="";if(typeof Ft=="string"){Lt=(Vt=fi(Ft))!==null?Vt.data:Ft;try{cr=t(Lt)}catch(vr){if(Wt)throw ei(Lt)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+vr.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return cr};it.getImageProperties=function(Ft){var Wt,Vt,Lt="";if(Vr(Ft)&&(Ft=fn(Ft)),typeof Ft=="string"&&Ge(Ft)===Ne&&((Lt=_t(Ft,!1))===""&&(Lt=it.loadFile(Ft)||""),Ft=Lt),Vt=Ge(Ft),!Fr(Vt))throw new Error("addImage does not support files of type '"+Vt+"', please ensure that a plugin for '"+Vt+"' support is added.");if(!Mi()||Ft instanceof Uint8Array||(Ft=En(Ft)),!(Wt=this["process"+Vt.toUpperCase()](Ft)))throw new Error("An unknown error occurred whilst processing the image");return Wt.fileType=Vt,Wt}}(U.API),function(it){var Ne=function(Ge){if(Ge!==void 0&&Ge!="")return!0};U.API.events.push(["addPage",function(He){this.internal.getPageInfo(He.pageNumber).pageContext.annotations=[]}]),it.events.push(["putPage",function(He){for(var Ge,nt,$e,ot=this.internal.getCoordinateString,Pt=this.internal.getVerticalCoordinateString,xt=this.internal.getPageInfoByObjId(He.objId),rr=He.pageContext.annotations,Fr=!1,Vr=0;Vr<rr.length&&!Fr;Vr++)switch((Ge=rr[Vr]).type){case"link":(Ne(Ge.options.url)||Ne(Ge.options.pageNumber))&&(Fr=!0);break;case"reference":case"text":case"freetext":Fr=!0}if(Fr!=0){this.internal.write("/Annots [");for(var fn=0;fn<rr.length;fn++){Ge=rr[fn];var gr=this.internal.pdfEscape,Gn=this.internal.getEncryptor(He.objId);switch(Ge.type){case"reference":this.internal.write(" "+Ge.object.objId+" 0 R ");break;case"text":var Mr=this.internal.newAdditionalObject(),Rn=this.internal.newAdditionalObject(),bn=this.internal.getEncryptor(Mr.objId),rn=Ge.title||"Note";$e="<</Type /Annot /Subtype /Text "+(nt="/Rect ["+ot(Ge.bounds.x)+" "+Pt(Ge.bounds.y+Ge.bounds.h)+" "+ot(Ge.bounds.x+Ge.bounds.w)+" "+Pt(Ge.bounds.y)+"] ")+"/Contents ("+gr(bn(Ge.contents))+")",$e+=" /Popup "+Rn.objId+" 0 R",$e+=" /P "+xt.objId+" 0 R",$e+=" /T ("+gr(bn(rn))+") >>",Mr.content=$e;var ei=Mr.objId+" 0 R";$e="<</Type /Annot /Subtype /Popup "+(nt="/Rect ["+ot(Ge.bounds.x+30)+" "+Pt(Ge.bounds.y+Ge.bounds.h)+" "+ot(Ge.bounds.x+Ge.bounds.w+30)+" "+Pt(Ge.bounds.y)+"] ")+" /Parent "+ei,Ge.open&&($e+=" /Open true"),$e+=" >>",Rn.content=$e,this.internal.write(Mr.objId,"0 R",Rn.objId,"0 R");break;case"freetext":nt="/Rect ["+ot(Ge.bounds.x)+" "+Pt(Ge.bounds.y)+" "+ot(Ge.bounds.x+Ge.bounds.w)+" "+Pt(Ge.bounds.y+Ge.bounds.h)+"] ";var fi=Ge.color||"#000000";$e="<</Type /Annot /Subtype /FreeText "+nt+"/Contents ("+gr(Gn(Ge.contents))+")",$e+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+fi+")",$e+=" /Border [0 0 0]",$e+=" >>",this.internal.write($e);break;case"link":if(Ge.options.name){var Mi=this.annotations._nameMap[Ge.options.name];Ge.options.pageNumber=Mi.page,Ge.options.top=Mi.y}else Ge.options.top||(Ge.options.top=0);if(nt="/Rect ["+Ge.finalBounds.x+" "+Ge.finalBounds.y+" "+Ge.finalBounds.w+" "+Ge.finalBounds.h+"] ",$e="",Ge.options.url)$e="<</Type /Annot /Subtype /Link "+nt+"/Border [0 0 0] /A <</S /URI /URI ("+gr(Gn(Ge.options.url))+") >>";else if(Ge.options.pageNumber)switch($e="<</Type /Annot /Subtype /Link "+nt+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(Ge.options.pageNumber).objId+" 0 R",Ge.options.magFactor=Ge.options.magFactor||"XYZ",Ge.options.magFactor){case"Fit":$e+=" /Fit]";break;case"FitH":$e+=" /FitH "+Ge.options.top+"]";break;case"FitV":Ge.options.left=Ge.options.left||0,$e+=" /FitV "+Ge.options.left+"]";break;case"XYZ":default:var $r=Pt(Ge.options.top);Ge.options.left=Ge.options.left||0,Ge.options.zoom===void 0&&(Ge.options.zoom=0),$e+=" /XYZ "+Ge.options.left+" "+$r+" "+Ge.options.zoom+"]"}$e!=""&&($e+=" >>",this.internal.write($e))}}this.internal.write("]")}}]),it.createAnnotation=function(He){var Ge=this.internal.getCurrentPageInfo();switch(He.type){case"link":this.link(He.bounds.x,He.bounds.y,He.bounds.w,He.bounds.h,He);break;case"text":case"freetext":Ge.pageContext.annotations.push(He)}},it.link=function(He,Ge,nt,$e,ot){var Pt=this.internal.getCurrentPageInfo(),xt=this.internal.getCoordinateString,rr=this.internal.getVerticalCoordinateString;Pt.pageContext.annotations.push({finalBounds:{x:xt(He),y:rr(Ge),w:xt(He+nt),h:rr(Ge+$e)},options:ot,type:"link"})},it.textWithLink=function(He,Ge,nt,$e){var ot,Pt,xt=this.getTextWidth(He),rr=this.internal.getLineHeight()/this.internal.scaleFactor;if($e.maxWidth!==void 0){Pt=$e.maxWidth;var Fr=this.splitTextToSize(He,Pt).length;ot=Math.ceil(rr*Fr)}else Pt=xt,ot=rr;return this.text(He,Ge,nt,$e),nt+=.2*rr,$e.align==="center"&&(Ge-=xt/2),$e.align==="right"&&(Ge-=xt),this.link(Ge,nt-rr,Pt,ot,$e),xt},it.getTextWidth=function(He){var Ge=this.internal.getFontSize();return this.getStringUnitWidth(He)*Ge/this.internal.scaleFactor}}(U.API),function(it){var Ne={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]},He={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}},Ge={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},nt=[1570,1571,1573,1575];it.__arabicParser__={};var $e=it.__arabicParser__.isInArabicSubstitutionA=function(Mr){return Ne[Mr.charCodeAt(0)]!==void 0},ot=it.__arabicParser__.isArabicLetter=function(Mr){return typeof Mr=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(Mr)},Pt=it.__arabicParser__.isArabicEndLetter=function(Mr){return ot(Mr)&&$e(Mr)&&Ne[Mr.charCodeAt(0)].length<=2},xt=it.__arabicParser__.isArabicAlfLetter=function(Mr){return ot(Mr)&&nt.indexOf(Mr.charCodeAt(0))>=0};it.__arabicParser__.arabicLetterHasIsolatedForm=function(Mr){return ot(Mr)&&$e(Mr)&&Ne[Mr.charCodeAt(0)].length>=1};var rr=it.__arabicParser__.arabicLetterHasFinalForm=function(Mr){return ot(Mr)&&$e(Mr)&&Ne[Mr.charCodeAt(0)].length>=2};it.__arabicParser__.arabicLetterHasInitialForm=function(Mr){return ot(Mr)&&$e(Mr)&&Ne[Mr.charCodeAt(0)].length>=3};var Fr=it.__arabicParser__.arabicLetterHasMedialForm=function(Mr){return ot(Mr)&&$e(Mr)&&Ne[Mr.charCodeAt(0)].length==4},Vr=it.__arabicParser__.resolveLigatures=function(Mr){var Rn=0,bn=He,rn="",ei=0;for(Rn=0;Rn<Mr.length;Rn+=1)bn[Mr.charCodeAt(Rn)]!==void 0?(ei++,typeof(bn=bn[Mr.charCodeAt(Rn)])=="number"&&(rn+=String.fromCharCode(bn),bn=He,ei=0),Rn===Mr.length-1&&(bn=He,rn+=Mr.charAt(Rn-(ei-1)),Rn-=ei-1,ei=0)):(bn=He,rn+=Mr.charAt(Rn-ei),Rn-=ei,ei=0);return rn};it.__arabicParser__.isArabicDiacritic=function(Mr){return Mr!==void 0&&Ge[Mr.charCodeAt(0)]!==void 0};var fn=it.__arabicParser__.getCorrectForm=function(Mr,Rn,bn){return ot(Mr)?$e(Mr)===!1?-1:!rr(Mr)||!ot(Rn)&&!ot(bn)||!ot(bn)&&Pt(Rn)||Pt(Mr)&&!ot(Rn)||Pt(Mr)&&xt(Rn)||Pt(Mr)&&Pt(Rn)?0:Fr(Mr)&&ot(Rn)&&!Pt(Rn)&&ot(bn)&&rr(bn)?3:Pt(Mr)||!ot(bn)?1:2:-1},gr=function(Rn){var bn=0,rn=0,ei=0,fi="",Mi="",$r="",En=(Rn=Rn||"").split("\\s+"),Hn=[];for(bn=0;bn<En.length;bn+=1){for(Hn.push(""),rn=0;rn<En[bn].length;rn+=1)fi=En[bn][rn],Mi=En[bn][rn-1],$r=En[bn][rn+1],ot(fi)?(ei=fn(fi,Mi,$r),Hn[bn]+=ei!==-1?String.fromCharCode(Ne[fi.charCodeAt(0)][ei]):fi):Hn[bn]+=fi;Hn[bn]=Vr(Hn[bn])}return Hn.join(" ")},Gn=it.__arabicParser__.processArabic=it.processArabic=function(){var Mr,Rn=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,bn=[];if(Array.isArray(Rn)){var rn=0;for(bn=[],rn=0;rn<Rn.length;rn+=1)Array.isArray(Rn[rn])?bn.push([gr(Rn[rn][0]),Rn[rn][1],Rn[rn][2]]):bn.push([gr(Rn[rn])]);Mr=bn}else Mr=gr(Rn);return typeof arguments[0]=="string"?Mr:(arguments[0].text=Mr,arguments[0])};it.events.push(["preProcessText",Gn])}(U.API),U.API.autoPrint=function(it){var Ne;switch((it=it||{}).variant=it.variant||"non-conform",it.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){Ne=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 "+Ne+" 0 R")})}return this},function(it){var Ne=function(){var Ge=void 0;Object.defineProperty(this,"pdf",{get:function(){return Ge},set:function(rr){Ge=rr}});var nt=150;Object.defineProperty(this,"width",{get:function(){return nt},set:function(rr){nt=isNaN(rr)||Number.isInteger(rr)===!1||rr<0?150:rr,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=nt+1)}});var $e=300;Object.defineProperty(this,"height",{get:function(){return $e},set:function(rr){$e=isNaN(rr)||Number.isInteger(rr)===!1||rr<0?300:rr,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=$e+1)}});var ot=[];Object.defineProperty(this,"childNodes",{get:function(){return ot},set:function(rr){ot=rr}});var Pt={};Object.defineProperty(this,"style",{get:function(){return Pt},set:function(rr){Pt=rr}}),Object.defineProperty(this,"parentNode",{})};Ne.prototype.getContext=function(He,Ge){var nt;if((He=He||"2d")!=="2d")return null;for(nt in Ge)this.pdf.context2d.hasOwnProperty(nt)&&(this.pdf.context2d[nt]=Ge[nt]);return this.pdf.context2d._canvas=this,this.pdf.context2d},Ne.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},it.events.push(["initialized",function(){this.canvas=new Ne,this.canvas.pdf=this}])}(U.API),function(it){var Ne={left:0,top:0,bottom:0,right:0},He=!1,Ge=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({},Ne),this.internal.__cell__.margins.width=this.getPageWidth(),nt.call(this))},nt=function(){this.internal.__cell__.lastCell=new $e,this.internal.__cell__.pages=1},$e=function(){var rr=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return rr},set:function(bn){rr=bn}});var Fr=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Fr},set:function(bn){Fr=bn}});var Vr=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return Vr},set:function(bn){Vr=bn}});var fn=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return fn},set:function(bn){fn=bn}});var gr=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return gr},set:function(bn){gr=bn}});var Gn=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return Gn},set:function(bn){Gn=bn}});var Mr=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return Mr},set:function(bn){Mr=bn}}),this};$e.prototype.clone=function(){return new $e(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},$e.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},it.setHeaderFunction=function(xt){return Ge.call(this),this.internal.__cell__.headerFunction=typeof xt=="function"?xt:void 0,this},it.getTextDimensions=function(xt,rr){Ge.call(this);var Fr=(rr=rr||{}).fontSize||this.getFontSize(),Vr=rr.font||this.getFont(),fn=rr.scaleFactor||this.internal.scaleFactor,gr=0,Gn=0,Mr=0,Rn=this;if(!Array.isArray(xt)&&typeof xt!="string"){if(typeof xt!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");xt=String(xt)}var bn=rr.maxWidth;bn>0?typeof xt=="string"?xt=this.splitTextToSize(xt,bn):Object.prototype.toString.call(xt)==="[object Array]"&&(xt=xt.reduce(function(ei,fi){return ei.concat(Rn.splitTextToSize(fi,bn))},[])):xt=Array.isArray(xt)?xt:[xt];for(var rn=0;rn<xt.length;rn++)gr<(Mr=this.getStringUnitWidth(xt[rn],{font:Vr})*Fr)&&(gr=Mr);return gr!==0&&(Gn=xt.length),{w:gr/=fn,h:Math.max((Gn*Fr*this.getLineHeightFactor()-Fr*(this.getLineHeightFactor()-1))/fn,0)}},it.cellAddPage=function(){Ge.call(this),this.addPage();var xt=this.internal.__cell__.margins||Ne;return this.internal.__cell__.lastCell=new $e(xt.left,xt.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var ot=it.cell=function(){var xt;xt=arguments[0]instanceof $e?arguments[0]:new $e(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),Ge.call(this);var rr=this.internal.__cell__.lastCell,Fr=this.internal.__cell__.padding,Vr=this.internal.__cell__.margins||Ne,fn=this.internal.__cell__.tableHeaderRow,gr=this.internal.__cell__.printHeaders;return rr.lineNumber!==void 0&&(rr.lineNumber===xt.lineNumber?(xt.x=(rr.x||0)+(rr.width||0),xt.y=rr.y||0):rr.y+rr.height+xt.height+Vr.bottom>this.getPageHeight()?(this.cellAddPage(),xt.y=Vr.top,gr&&fn&&(this.printHeaderRow(xt.lineNumber,!0),xt.y+=fn[0].height)):xt.y=rr.y+rr.height||xt.y),xt.text[0]!==void 0&&(this.rect(xt.x,xt.y,xt.width,xt.height,He===!0?"FD":void 0),xt.align==="right"?this.text(xt.text,xt.x+xt.width-Fr,xt.y+Fr,{align:"right",baseline:"top"}):xt.align==="center"?this.text(xt.text,xt.x+xt.width/2,xt.y+Fr,{align:"center",baseline:"top",maxWidth:xt.width-Fr-Fr}):this.text(xt.text,xt.x+Fr,xt.y+Fr,{align:"left",baseline:"top",maxWidth:xt.width-Fr-Fr})),this.internal.__cell__.lastCell=xt,this};it.table=function(xt,rr,Fr,Vr,fn){if(Ge.call(this),!Fr)throw new Error("No data for PDF table.");var gr,Gn,Mr,Rn,bn=[],rn=[],ei=[],fi={},Mi={},$r=[],En=[],Hn=(fn=fn||{}).autoSize||!1,zt=fn.printHeaders!==!1,_t=fn.css&&fn.css["font-size"]!==void 0?16*fn.css["font-size"]:fn.fontSize||12,Ft=fn.margins||Object.assign({width:this.getPageWidth()},Ne),Wt=typeof fn.padding=="number"?fn.padding:3,Vt=fn.headerBackgroundColor||"#c8c8c8",Lt=fn.headerTextColor||"#000";if(nt.call(this),this.internal.__cell__.printHeaders=zt,this.internal.__cell__.margins=Ft,this.internal.__cell__.table_font_size=_t,this.internal.__cell__.padding=Wt,this.internal.__cell__.headerBackgroundColor=Vt,this.internal.__cell__.headerTextColor=Lt,this.setFontSize(_t),Vr==null)rn=bn=Object.keys(Fr[0]),ei=bn.map(function(){return"left"});else if(Array.isArray(Vr)&&S()(Vr[0])==="object")for(bn=Vr.map(function(Dn){return Dn.name}),rn=Vr.map(function(Dn){return Dn.prompt||Dn.name||""}),ei=Vr.map(function(Dn){return Dn.align||"left"}),gr=0;gr<Vr.length;gr+=1)Mi[Vr[gr].name]=Vr[gr].width*(19.049976/25.4);else Array.isArray(Vr)&&typeof Vr[0]=="string"&&(rn=bn=Vr,ei=bn.map(function(){return"left"}));if(Hn||Array.isArray(Vr)&&typeof Vr[0]=="string")for(gr=0;gr<bn.length;gr+=1){for(fi[Rn=bn[gr]]=Fr.map(function(Dn){return Dn[Rn]}),this.setFont(void 0,"bold"),$r.push(this.getTextDimensions(rn[gr],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),Gn=fi[Rn],this.setFont(void 0,"normal"),Mr=0;Mr<Gn.length;Mr+=1)$r.push(this.getTextDimensions(Gn[Mr],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Mi[Rn]=Math.max.apply(null,$r)+Wt+Wt,$r=[]}if(zt){var cr={};for(gr=0;gr<bn.length;gr+=1)cr[bn[gr]]={},cr[bn[gr]].text=rn[gr],cr[bn[gr]].align=ei[gr];var vr=Pt.call(this,cr,Mi);En=bn.map(function(Dn){return new $e(xt,rr,Mi[Dn],vr,cr[Dn].text,void 0,cr[Dn].align)}),this.setTableHeaderRow(En),this.printHeaderRow(1,!1)}var yr=Vr.reduce(function(Dn,di){return Dn[di.name]=di.align,Dn},{});for(gr=0;gr<Fr.length;gr+=1){"rowStart"in fn&&fn.rowStart instanceof Function&&fn.rowStart({row:gr,data:Fr[gr]},this);var Dr=Pt.call(this,Fr[gr],Mi);for(Mr=0;Mr<bn.length;Mr+=1){var Kn=Fr[gr][bn[Mr]];"cellStart"in fn&&fn.cellStart instanceof Function&&fn.cellStart({row:gr,col:Mr,data:Kn},this),ot.call(this,new $e(xt,rr,Mi[bn[Mr]],Dr,Kn,gr+2,yr[bn[Mr]]))}}return this.internal.__cell__.table_x=xt,this.internal.__cell__.table_y=rr,this};var Pt=function(rr,Fr){var Vr=this.internal.__cell__.padding,fn=this.internal.__cell__.table_font_size,gr=this.internal.scaleFactor;return Object.keys(rr).map(function(Gn){var Mr=rr[Gn];return this.splitTextToSize(Mr.hasOwnProperty("text")?Mr.text:Mr,Fr[Gn]-Vr-Vr)},this).map(function(Gn){return this.getLineHeightFactor()*Gn.length*fn/gr+Vr+Vr},this).reduce(function(Gn,Mr){return Math.max(Gn,Mr)},0)};it.setTableHeaderRow=function(xt){Ge.call(this),this.internal.__cell__.tableHeaderRow=xt},it.printHeaderRow=function(xt,rr){if(Ge.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var Fr;if(He=!0,typeof this.internal.__cell__.headerFunction=="function"){var Vr=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new $e(Vr[0],Vr[1],Vr[2],Vr[3],void 0,-1)}this.setFont(void 0,"bold");for(var fn=[],gr=0;gr<this.internal.__cell__.tableHeaderRow.length;gr+=1){Fr=this.internal.__cell__.tableHeaderRow[gr].clone(),rr&&(Fr.y=this.internal.__cell__.margins.top||0,fn.push(Fr)),Fr.lineNumber=xt;var Gn=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),ot.call(this,Fr),this.setTextColor(Gn)}fn.length>0&&this.setTableHeaderRow(fn),this.setFont(void 0,"normal"),He=!1}}(U.API);var Kt={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},hr=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],gt=pe(hr),nr=[100,200,300,400,500,600,700,800,900],mr=pe(nr);function cn(it){var Ne=it.family.replace(/"|'/g,"").toLowerCase(),He=function($e){return Kt[$e=$e||"normal"]?$e:"normal"}(it.style),Ge=function($e){if(!$e)return 400;if(typeof $e=="number")return $e>=100&&$e<=900&&$e%100==0?$e:400;if(/^\d00$/.test($e))return parseInt($e);switch($e){case"bold":return 700;case"normal":default:return 400}}(it.weight),nt=function($e){return typeof gt[$e=$e||"normal"]=="number"?$e:"normal"}(it.stretch);return{family:Ne,style:He,weight:Ge,stretch:nt,src:it.src||[],ref:it.ref||{name:Ne,style:[nt,He,Ge].join(" ")}}}function Ar(it,Ne,He,Ge){var nt;for(nt=He;nt>=0&&nt<Ne.length;nt+=Ge)if(it[Ne[nt]])return it[Ne[nt]];for(nt=He;nt>=0&&nt<Ne.length;nt-=Ge)if(it[Ne[nt]])return it[Ne[nt]]}var xr={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},qt={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function ar(it){return[it.stretch,it.style,it.weight,it.family].join(" ")}function Et(it,Ne,He){for(var Ge=(He=He||{}).defaultFontFamily||"times",nt=Object.assign({},xr,He.genericFontFamilies||{}),$e=null,ot=null,Pt=0;Pt<Ne.length;++Pt)if(nt[($e=cn(Ne[Pt])).family]&&($e.family=nt[$e.family]),it.hasOwnProperty($e.family)){ot=it[$e.family];break}if(!(ot=ot||it[Ge]))throw new Error("Could not find a font-family for the rule '"+ar($e)+"' and default family '"+Ge+"'.");if(ot=function(xt,rr){if(rr[xt])return rr[xt];var Fr=gt[xt],Vr=Fr<=gt.normal?-1:1,fn=Ar(rr,hr,Fr,Vr);if(!fn)throw new Error("Could not find a matching font-stretch value for "+xt);return fn}($e.stretch,ot),ot=function(xt,rr){if(rr[xt])return rr[xt];for(var Fr=Kt[xt],Vr=0;Vr<Fr.length;++Vr)if(rr[Fr[Vr]])return rr[Fr[Vr]];throw new Error("Could not find a matching font-style for "+xt)}($e.style,ot),!(ot=function(xt,rr){if(rr[xt])return rr[xt];if(xt===400&&rr[500])return rr[500];if(xt===500&&rr[400])return rr[400];var Fr=mr[xt],Vr=Ar(rr,nr,Fr,xt<400?-1:1);if(!Vr)throw new Error("Could not find a matching font-weight for value "+xt);return Vr}($e.weight,ot)))throw new Error("Failed to resolve a font for the rule '"+ar($e)+"'.");return ot}function en(it){return it.trimLeft()}function Mn(it,Ne){for(var He=0;He<it.length;){if(it.charAt(He)===Ne)return[it.substring(0,He),it.substring(He+1)];He+=1}return null}function Yn(it){var Ne=it.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return Ne===null?null:[Ne[0],it.substring(Ne[0].length)]}var ci,Vi,jn,Qn=["times"];!function(it){var Ne,He,Ge,nt,$e,ot,Pt,xt,rr,Fr=function(Ur){return Ur=Ur||{},this.isStrokeTransparent=Ur.isStrokeTransparent||!1,this.strokeOpacity=Ur.strokeOpacity||1,this.strokeStyle=Ur.strokeStyle||"#000000",this.fillStyle=Ur.fillStyle||"#000000",this.isFillTransparent=Ur.isFillTransparent||!1,this.fillOpacity=Ur.fillOpacity||1,this.font=Ur.font||"10px sans-serif",this.textBaseline=Ur.textBaseline||"alphabetic",this.textAlign=Ur.textAlign||"left",this.lineWidth=Ur.lineWidth||1,this.lineJoin=Ur.lineJoin||"miter",this.lineCap=Ur.lineCap||"butt",this.path=Ur.path||[],this.transform=Ur.transform!==void 0?Ur.transform.clone():new xt,this.globalCompositeOperation=Ur.globalCompositeOperation||"normal",this.globalAlpha=Ur.globalAlpha||1,this.clip_path=Ur.clip_path||[],this.currentPoint=Ur.currentPoint||new ot,this.miterLimit=Ur.miterLimit||10,this.lastPoint=Ur.lastPoint||new ot,this.lineDashOffset=Ur.lineDashOffset||0,this.lineDash=Ur.lineDash||[],this.margin=Ur.margin||[0,0,0,0],this.prevPageLastElemOffset=Ur.prevPageLastElemOffset||0,this.ignoreClearRect=typeof Ur.ignoreClearRect!="boolean"||Ur.ignoreClearRect,this};it.events.push(["initialized",function(){this.context2d=new Vr(this),Ne=this.internal.f2,He=this.internal.getCoordinateString,Ge=this.internal.getVerticalCoordinateString,nt=this.internal.getHorizontalCoordinate,$e=this.internal.getVerticalCoordinate,ot=this.internal.Point,Pt=this.internal.Rectangle,xt=this.internal.Matrix,rr=new Fr}]);var Vr=function(Ur){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var On=Ur;Object.defineProperty(this,"pdf",{get:function(){return On}});var zn=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return zn},set:function(ji){zn=Boolean(ji)}});var qn=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return qn},set:function(ji){qn=Boolean(ji)}});var oi=0;Object.defineProperty(this,"posX",{get:function(){return oi},set:function(ji){isNaN(ji)||(oi=ji)}});var xi=0;Object.defineProperty(this,"posY",{get:function(){return xi},set:function(ji){isNaN(ji)||(xi=ji)}}),Object.defineProperty(this,"margin",{get:function(){return rr.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]),rr.margin=ha}});var Di=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Di},set:function(ji){Di=ji}});var Li=0;Object.defineProperty(this,"lastBreak",{get:function(){return Li},set:function(ji){Li=ji}});var aa=[];Object.defineProperty(this,"pageBreaks",{get:function(){return aa},set:function(ji){aa=ji}}),Object.defineProperty(this,"ctx",{get:function(){return rr},set:function(ji){ji instanceof Fr&&(rr=ji)}}),Object.defineProperty(this,"path",{get:function(){return rr.path},set:function(ji){rr.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=fn(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=fn(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 na=null;function Aa(Ln,ji){if(na===null){var ha=function(ea){var ca=[];return Object.keys(ea).forEach(function(kr){ea[kr].forEach(function(Sr){var yn=null;switch(Sr){case"bold":yn={family:kr,weight:"bold"};break;case"italic":yn={family:kr,style:"italic"};break;case"bolditalic":yn={family:kr,weight:"bold",style:"italic"};break;case"":case"normal":yn={family:kr}}yn!==null&&(yn.ref={name:kr,style:Sr},ca.push(yn))})}),ca}(Ln.getFontList());na=function(ea){for(var ca={},kr=0;kr<ea.length;++kr){var Sr=cn(ea[kr]),yn=Sr.family,dr=Sr.stretch,Rr=Sr.style,Gr=Sr.weight;ca[yn]=ca[yn]||{},ca[yn][dr]=ca[yn][dr]||{},ca[yn][dr][Rr]=ca[yn][dr][Rr]||{},ca[yn][dr][Rr][Gr]=Sr}return ca}(ha.concat(ji))}return na}var yi=null;Object.defineProperty(this,"fontFaces",{get:function(){return yi},set:function(ji){na=null,yi=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 ea=ha[1],ca=(ha[2],ha[3]),kr=ha[4],Sr=(ha[5],ha[6]),yn=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(kr)[2];kr=yn==="px"?Math.floor(parseFloat(kr)*this.pdf.internal.scaleFactor):yn==="em"?Math.floor(parseFloat(kr)*this.pdf.getFontSize()):Math.floor(parseFloat(kr)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(kr);var dr=function(Nr){var Jr,xn,Tn=[],wn=Nr.trim();if(wn==="")return Qn;if(wn in qt)return[qt[wn]];for(;wn!=="";){switch(xn=null,Jr=(wn=en(wn)).charAt(0)){case'"':case"'":xn=Mn(wn.substring(1),Jr);break;default:xn=Yn(wn)}if(xn===null)return Qn;if(Tn.push(xn[0]),(wn=en(xn[1]))!==""&&wn.charAt(0)!==",")return Qn;wn=wn.replace(/^,/,"")}return Tn}(Sr);if(this.fontFaces){var Rr=Et(Aa(this.pdf,this.fontFaces),dr.map(function(Nr){return{family:Nr,stretch:"normal",weight:ca,style:ea}}));this.pdf.setFont(Rr.ref.name,Rr.ref.style)}else{var Gr="";(ca==="bold"||parseInt(ca,10)>=700||ea==="bold")&&(Gr="bold"),ea==="italic"&&(Gr+="italic"),Gr.length===0&&(Gr="normal");for(var ln="",kn={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"},kt=0;kt<dr.length;kt++){if(this.pdf.internal.getFont(dr[kt],Gr,{noFallback:!0,disableWarning:!0})!==void 0){ln=dr[kt];break}if(Gr==="bolditalic"&&this.pdf.internal.getFont(dr[kt],"bold",{noFallback:!0,disableWarning:!0})!==void 0)ln=dr[kt],Gr="bold";else if(this.pdf.internal.getFont(dr[kt],"normal",{noFallback:!0,disableWarning:!0})!==void 0){ln=dr[kt],Gr="normal";break}}if(ln===""){for(var _r=0;_r<dr.length;_r++)if(kn[dr[_r]]){ln=kn[dr[_r]];break}}ln=ln===""?"Times":ln,this.pdf.setFont(ln,Gr)}}}}),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,di.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(ji){this.ctx.lineDash=ji,di.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(ji){this.ctx.ignoreClearRect=Boolean(ji)}})};Vr.prototype.setLineDash=function(mn){this.lineDash=mn},Vr.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Vr.prototype.fill=function(){fi.call(this,"fill",!1)},Vr.prototype.stroke=function(){fi.call(this,"stroke",!1)},Vr.prototype.beginPath=function(){this.path=[{type:"begin"}]},Vr.prototype.moveTo=function(mn,Ur){if(isNaN(mn)||isNaN(Ur))throw d.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var On=this.ctx.transform.applyToPoint(new ot(mn,Ur));this.path.push({type:"mt",x:On.x,y:On.y}),this.ctx.lastPoint=new ot(mn,Ur)},Vr.prototype.closePath=function(){var mn=new ot(0,0),Ur=0;for(Ur=this.path.length-1;Ur!==-1;Ur--)if(this.path[Ur].type==="begin"&&S()(this.path[Ur+1])==="object"&&typeof this.path[Ur+1].x=="number"){mn=new ot(this.path[Ur+1].x,this.path[Ur+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new ot(mn.x,mn.y)},Vr.prototype.lineTo=function(mn,Ur){if(isNaN(mn)||isNaN(Ur))throw d.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var On=this.ctx.transform.applyToPoint(new ot(mn,Ur));this.path.push({type:"lt",x:On.x,y:On.y}),this.ctx.lastPoint=new ot(On.x,On.y)},Vr.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),fi.call(this,null,!0)},Vr.prototype.quadraticCurveTo=function(mn,Ur,On,zn){if(isNaN(On)||isNaN(zn)||isNaN(mn)||isNaN(Ur))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(On,zn)),oi=this.ctx.transform.applyToPoint(new ot(mn,Ur));this.path.push({type:"qct",x1:oi.x,y1:oi.y,x:qn.x,y:qn.y}),this.ctx.lastPoint=new ot(qn.x,qn.y)},Vr.prototype.bezierCurveTo=function(mn,Ur,On,zn,qn,oi){if(isNaN(qn)||isNaN(oi)||isNaN(mn)||isNaN(Ur)||isNaN(On)||isNaN(zn))throw d.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var xi=this.ctx.transform.applyToPoint(new ot(qn,oi)),Di=this.ctx.transform.applyToPoint(new ot(mn,Ur)),Li=this.ctx.transform.applyToPoint(new ot(On,zn));this.path.push({type:"bct",x1:Di.x,y1:Di.y,x2:Li.x,y2:Li.y,x:xi.x,y:xi.y}),this.ctx.lastPoint=new ot(xi.x,xi.y)},Vr.prototype.arc=function(mn,Ur,On,zn,qn,oi){if(isNaN(mn)||isNaN(Ur)||isNaN(On)||isNaN(zn)||isNaN(qn))throw d.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(oi=Boolean(oi),!this.ctx.transform.isIdentity){var xi=this.ctx.transform.applyToPoint(new ot(mn,Ur));mn=xi.x,Ur=xi.y;var Di=this.ctx.transform.applyToPoint(new ot(0,On)),Li=this.ctx.transform.applyToPoint(new ot(0,0));On=Math.sqrt(Math.pow(Di.x-Li.x,2)+Math.pow(Di.y-Li.y,2))}Math.abs(qn-zn)>=2*Math.PI&&(zn=0,qn=2*Math.PI),this.path.push({type:"arc",x:mn,y:Ur,radius:On,startAngle:zn,endAngle:qn,counterclockwise:oi})},Vr.prototype.arcTo=function(mn,Ur,On,zn,qn){throw new Error("arcTo not implemented.")},Vr.prototype.rect=function(mn,Ur,On,zn){if(isNaN(mn)||isNaN(Ur)||isNaN(On)||isNaN(zn))throw d.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(mn,Ur),this.lineTo(mn+On,Ur),this.lineTo(mn+On,Ur+zn),this.lineTo(mn,Ur+zn),this.lineTo(mn,Ur),this.lineTo(mn+On,Ur),this.lineTo(mn,Ur)},Vr.prototype.fillRect=function(mn,Ur,On,zn){if(isNaN(mn)||isNaN(Ur)||isNaN(On)||isNaN(zn))throw d.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!gr.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(mn,Ur,On,zn),this.fill(),qn.hasOwnProperty("lineCap")&&(this.lineCap=qn.lineCap),qn.hasOwnProperty("lineJoin")&&(this.lineJoin=qn.lineJoin)}},Vr.prototype.strokeRect=function(mn,Ur,On,zn){if(isNaN(mn)||isNaN(Ur)||isNaN(On)||isNaN(zn))throw d.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");Gn.call(this)||(this.beginPath(),this.rect(mn,Ur,On,zn),this.stroke())},Vr.prototype.clearRect=function(mn,Ur,On,zn){if(isNaN(mn)||isNaN(Ur)||isNaN(On)||isNaN(zn))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(mn,Ur,On,zn))},Vr.prototype.save=function(mn){mn=typeof mn!="boolean"||mn;for(var Ur=this.pdf.internal.getCurrentPageInfo().pageNumber,On=0;On<this.pdf.internal.getNumberOfPages();On++)this.pdf.setPage(On+1),this.pdf.internal.out("q");if(this.pdf.setPage(Ur),mn){this.ctx.fontSize=this.pdf.internal.getFontSize();var zn=new Fr(this.ctx);this.ctxStack.push(this.ctx),this.ctx=zn}},Vr.prototype.restore=function(mn){mn=typeof mn!="boolean"||mn;for(var Ur=this.pdf.internal.getCurrentPageInfo().pageNumber,On=0;On<this.pdf.internal.getNumberOfPages();On++)this.pdf.setPage(On+1),this.pdf.internal.out("Q");this.pdf.setPage(Ur),mn&&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)},Vr.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var fn=function(Ur){var On,zn,qn,oi;if(Ur.isCanvasGradient===!0&&(Ur=Ur.getColor()),!Ur)return{r:0,g:0,b:0,a:0,style:Ur};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(Ur))On=0,zn=0,qn=0,oi=0;else{var xi=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Ur);if(xi!==null)On=parseInt(xi[1]),zn=parseInt(xi[2]),qn=parseInt(xi[3]),oi=1;else if((xi=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Ur))!==null)On=parseInt(xi[1]),zn=parseInt(xi[2]),qn=parseInt(xi[3]),oi=parseFloat(xi[4]);else{if(oi=1,typeof Ur=="string"&&Ur.charAt(0)!=="#"){var Di=new u(Ur);Ur=Di.ok?Di.toHex():"#000000"}Ur.length===4?(On=Ur.substring(1,2),On+=On,zn=Ur.substring(2,3),zn+=zn,qn=Ur.substring(3,4),qn+=qn):(On=Ur.substring(1,3),zn=Ur.substring(3,5),qn=Ur.substring(5,7)),On=parseInt(On,16),zn=parseInt(zn,16),qn=parseInt(qn,16)}}return{r:On,g:zn,b:qn,a:oi,style:Ur}},gr=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},Gn=function(){return Boolean(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Vr.prototype.fillText=function(mn,Ur,On,zn){if(isNaN(Ur)||isNaN(On)||typeof mn!="string")throw d.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(zn=isNaN(zn)?void 0:zn,!gr.call(this)){var qn=Dr(this.ctx.transform.rotation),oi=this.ctx.transform.scaleX;Wt.call(this,{text:mn,x:Ur,y:On,scale:oi,angle:qn,align:this.textAlign,maxWidth:zn})}},Vr.prototype.strokeText=function(mn,Ur,On,zn){if(isNaN(Ur)||isNaN(On)||typeof mn!="string")throw d.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!Gn.call(this)){zn=isNaN(zn)?void 0:zn;var qn=Dr(this.ctx.transform.rotation),oi=this.ctx.transform.scaleX;Wt.call(this,{text:mn,x:Ur,y:On,scale:oi,renderingMode:"stroke",angle:qn,align:this.textAlign,maxWidth:zn})}},Vr.prototype.measureText=function(mn){if(typeof mn!="string")throw d.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Ur=this.pdf,On=this.pdf.internal.scaleFactor,zn=Ur.internal.getFontSize(),qn=Ur.getStringUnitWidth(mn)*zn/Ur.internal.scaleFactor,oi=function(Di){var Li=(Di=Di||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Li}}),this};return new oi({width:qn*=Math.round(96*On/72*1e4)/1e4})},Vr.prototype.scale=function(mn,Ur){if(isNaN(mn)||isNaN(Ur))throw d.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var On=new xt(mn,0,0,Ur,0,0);this.ctx.transform=this.ctx.transform.multiply(On)},Vr.prototype.rotate=function(mn){if(isNaN(mn))throw d.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Ur=new xt(Math.cos(mn),Math.sin(mn),-Math.sin(mn),Math.cos(mn),0,0);this.ctx.transform=this.ctx.transform.multiply(Ur)},Vr.prototype.translate=function(mn,Ur){if(isNaN(mn)||isNaN(Ur))throw d.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var On=new xt(1,0,0,1,mn,Ur);this.ctx.transform=this.ctx.transform.multiply(On)},Vr.prototype.transform=function(mn,Ur,On,zn,qn,oi){if(isNaN(mn)||isNaN(Ur)||isNaN(On)||isNaN(zn)||isNaN(qn)||isNaN(oi))throw d.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var xi=new xt(mn,Ur,On,zn,qn,oi);this.ctx.transform=this.ctx.transform.multiply(xi)},Vr.prototype.setTransform=function(mn,Ur,On,zn,qn,oi){mn=isNaN(mn)?1:mn,Ur=isNaN(Ur)?0:Ur,On=isNaN(On)?0:On,zn=isNaN(zn)?1:zn,qn=isNaN(qn)?0:qn,oi=isNaN(oi)?0:oi,this.ctx.transform=new xt(mn,Ur,On,zn,qn,oi)};var Mr=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Vr.prototype.drawImage=function(mn,Ur,On,zn,qn,oi,xi,Di,Li){var aa=this.pdf.getImageProperties(mn),ma=1,na=1,Aa=1,yi=1;zn!==void 0&&Di!==void 0&&(Aa=Di/zn,yi=Li/qn,ma=aa.width/zn*Di/zn,na=aa.height/qn*Li/qn),oi===void 0&&(oi=Ur,xi=On,Ur=0,On=0),zn!==void 0&&Di===void 0&&(Di=zn,Li=qn),zn===void 0&&Di===void 0&&(Di=aa.width,Li=aa.height);for(var Ln,ji=this.ctx.transform.decompose(),ha=Dr(ji.rotate.shx),ea=new xt,ca=(ea=(ea=(ea=ea.multiply(ji.translate)).multiply(ji.skew)).multiply(ji.scale)).applyToRectangle(new Pt(oi-Ur*Aa,xi-On*yi,zn*ma,qn*na)),kr=Rn.call(this,ca),Sr=[],yn=0;yn<kr.length;yn+=1)Sr.indexOf(kr[yn])===-1&&Sr.push(kr[yn]);if(ei(Sr),this.autoPaging)for(var dr=Sr[0],Rr=Sr[Sr.length-1],Gr=dr;Gr<Rr+1;Gr++){this.pdf.setPage(Gr);var ln=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],kn=Gr===1?this.posY+this.margin[0]:this.margin[0],kt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],_r=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Nr=Gr===1?0:kt+(Gr-2)*_r;if(this.ctx.clip_path.length!==0){var Jr=this.path;Ln=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=rn(Ln,this.posX+this.margin[3],-Nr+kn+this.ctx.prevPageLastElemOffset),Mi.call(this,"fill",!0),this.path=Jr}var xn=JSON.parse(JSON.stringify(ca));xn=rn([xn],this.posX+this.margin[3],-Nr+kn+this.ctx.prevPageLastElemOffset)[0];var Tn=(Gr>dr||Gr<Rr)&&Mr.call(this);Tn&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ln,_r,null).clip().discardPath()),this.pdf.addImage(mn,"JPEG",xn.x,xn.y,xn.w,xn.h,null,null,ha),Tn&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(mn,"JPEG",ca.x,ca.y,ca.w,ca.h,null,null,ha)};var Rn=function(Ur,On,zn){var qn=[];On=On||this.pdf.internal.pageSize.width,zn=zn||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var oi=this.posY+this.ctx.prevPageLastElemOffset;switch(Ur.type){default:case"mt":case"lt":qn.push(Math.floor((Ur.y+oi)/zn)+1);break;case"arc":qn.push(Math.floor((Ur.y+oi-Ur.radius)/zn)+1),qn.push(Math.floor((Ur.y+oi+Ur.radius)/zn)+1);break;case"qct":var xi=Kn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Ur.x1,Ur.y1,Ur.x,Ur.y);qn.push(Math.floor((xi.y+oi)/zn)+1),qn.push(Math.floor((xi.y+xi.h+oi)/zn)+1);break;case"bct":var Di=Dn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Ur.x1,Ur.y1,Ur.x2,Ur.y2,Ur.x,Ur.y);qn.push(Math.floor((Di.y+oi)/zn)+1),qn.push(Math.floor((Di.y+Di.h+oi)/zn)+1);break;case"rect":qn.push(Math.floor((Ur.y+oi)/zn)+1),qn.push(Math.floor((Ur.y+Ur.h+oi)/zn)+1)}for(var Li=0;Li<qn.length;Li+=1)for(;this.pdf.internal.getNumberOfPages()<qn[Li];)bn.call(this);return qn},bn=function(){var Ur=this.fillStyle,On=this.strokeStyle,zn=this.font,qn=this.lineCap,oi=this.lineWidth,xi=this.lineJoin;this.pdf.addPage(),this.fillStyle=Ur,this.strokeStyle=On,this.font=zn,this.lineCap=qn,this.lineWidth=oi,this.lineJoin=xi},rn=function(Ur,On,zn){for(var qn=0;qn<Ur.length;qn++)switch(Ur[qn].type){case"bct":Ur[qn].x2+=On,Ur[qn].y2+=zn;case"qct":Ur[qn].x1+=On,Ur[qn].y1+=zn;case"mt":case"lt":case"arc":default:Ur[qn].x+=On,Ur[qn].y+=zn}return Ur},ei=function(Ur){return Ur.sort(function(On,zn){return On-zn})},fi=function(Ur,On){for(var zn,qn,oi=this.fillStyle,xi=this.strokeStyle,Di=this.lineCap,Li=this.lineWidth,aa=Math.abs(Li*this.ctx.transform.scaleX),ma=this.lineJoin,na=JSON.parse(JSON.stringify(this.path)),Aa=JSON.parse(JSON.stringify(this.path)),yi=[],Ln=0;Ln<Aa.length;Ln++)if(Aa[Ln].x!==void 0)for(var ji=Rn.call(this,Aa[Ln]),ha=0;ha<ji.length;ha+=1)yi.indexOf(ji[ha])===-1&&yi.push(ji[ha]);for(var ea=0;ea<yi.length;ea++)for(;this.pdf.internal.getNumberOfPages()<yi[ea];)bn.call(this);if(ei(yi),this.autoPaging)for(var ca=yi[0],kr=yi[yi.length-1],Sr=ca;Sr<kr+1;Sr++){this.pdf.setPage(Sr),this.fillStyle=oi,this.strokeStyle=xi,this.lineCap=Di,this.lineWidth=aa,this.lineJoin=ma;var yn=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],dr=Sr===1?this.posY+this.margin[0]:this.margin[0],Rr=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Gr=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],ln=Sr===1?0:Rr+(Sr-2)*Gr;if(this.ctx.clip_path.length!==0){var kn=this.path;zn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=rn(zn,this.posX+this.margin[3],-ln+dr+this.ctx.prevPageLastElemOffset),Mi.call(this,Ur,!0),this.path=kn}if(qn=JSON.parse(JSON.stringify(na)),this.path=rn(qn,this.posX+this.margin[3],-ln+dr+this.ctx.prevPageLastElemOffset),On===!1||Sr===0){var kt=(Sr>ca||Sr<kr)&&Mr.call(this);kt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],yn,Gr,null).clip().discardPath()),Mi.call(this,Ur,On),kt&&this.pdf.restoreGraphicsState()}this.lineWidth=Li}else this.lineWidth=aa,Mi.call(this,Ur,On),this.lineWidth=Li;this.path=na},Mi=function(Ur,On){if((Ur!=="stroke"||On||!Gn.call(this))&&(Ur==="stroke"||On||!gr.call(this))){for(var zn,qn,oi=[],xi=this.path,Di=0;Di<xi.length;Di++){var Li=xi[Di];switch(Li.type){case"begin":oi.push({begin:!0});break;case"close":oi.push({close:!0});break;case"mt":oi.push({start:Li,deltas:[],abs:[]});break;case"lt":var aa=oi.length;if(xi[Di-1]&&!isNaN(xi[Di-1].x)&&(zn=[Li.x-xi[Di-1].x,Li.y-xi[Di-1].y],aa>0)){for(;aa>=0;aa--)if(oi[aa-1].close!==!0&&oi[aa-1].begin!==!0){oi[aa-1].deltas.push(zn),oi[aa-1].abs.push(Li);break}}break;case"bct":zn=[Li.x1-xi[Di-1].x,Li.y1-xi[Di-1].y,Li.x2-xi[Di-1].x,Li.y2-xi[Di-1].y,Li.x-xi[Di-1].x,Li.y-xi[Di-1].y],oi[oi.length-1].deltas.push(zn);break;case"qct":var ma=xi[Di-1].x+2/3*(Li.x1-xi[Di-1].x),na=xi[Di-1].y+2/3*(Li.y1-xi[Di-1].y),Aa=Li.x+2/3*(Li.x1-Li.x),yi=Li.y+2/3*(Li.y1-Li.y),Ln=Li.x,ji=Li.y;zn=[ma-xi[Di-1].x,na-xi[Di-1].y,Aa-xi[Di-1].x,yi-xi[Di-1].y,Ln-xi[Di-1].x,ji-xi[Di-1].y],oi[oi.length-1].deltas.push(zn);break;case"arc":oi.push({deltas:[],abs:[],arc:!0}),Array.isArray(oi[oi.length-1].abs)&&oi[oi.length-1].abs.push(Li)}}qn=On?null:Ur==="stroke"?"stroke":"fill";for(var ha=!1,ea=0;ea<oi.length;ea++)if(oi[ea].arc)for(var ca=oi[ea].abs,kr=0;kr<ca.length;kr++){var Sr=ca[kr];Sr.type==="arc"?Hn.call(this,Sr.x,Sr.y,Sr.radius,Sr.startAngle,Sr.endAngle,Sr.counterclockwise,void 0,On,!ha):Vt.call(this,Sr.x,Sr.y),ha=!0}else if(oi[ea].close===!0)this.pdf.internal.out("h"),ha=!1;else if(oi[ea].begin!==!0){var yn=oi[ea].start.x,dr=oi[ea].start.y;Lt.call(this,oi[ea].deltas,yn,dr),ha=!0}qn&&zt.call(this,qn),On&&_t.call(this)}},$r=function(Ur){var On=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,zn=On*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Ur-zn;case"top":return Ur+On-zn;case"hanging":return Ur+On-2*zn;case"middle":return Ur+On/2-zn;case"ideographic":return Ur;case"alphabetic":default:return Ur}},En=function(Ur){return Ur+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Vr.prototype.createLinearGradient=function(){var mn=function(){};return mn.colorStops=[],mn.addColorStop=function(Ur,On){this.colorStops.push([Ur,On])},mn.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},mn.isCanvasGradient=!0,mn},Vr.prototype.createPattern=function(){return this.createLinearGradient()},Vr.prototype.createRadialGradient=function(){return this.createLinearGradient()};var Hn=function(Ur,On,zn,qn,oi,xi,Di,Li,aa){for(var ma=vr.call(this,zn,qn,oi,xi),na=0;na<ma.length;na++){var Aa=ma[na];na===0&&(aa?Ft.call(this,Aa.x1+Ur,Aa.y1+On):Vt.call(this,Aa.x1+Ur,Aa.y1+On)),cr.call(this,Ur,On,Aa.x2,Aa.y2,Aa.x3,Aa.y3,Aa.x4,Aa.y4)}Li?_t.call(this):zt.call(this,Di)},zt=function(Ur){switch(Ur){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},_t=function(){this.pdf.clip(),this.pdf.discardPath()},Ft=function(Ur,On){this.pdf.internal.out(He(Ur)+" "+Ge(On)+" m")},Wt=function(Ur){var On;switch(Ur.align){case"right":case"end":On="right";break;case"center":On="center";break;case"left":case"start":default:On="left"}var zn=this.pdf.getTextDimensions(Ur.text),qn=$r.call(this,Ur.y),oi=En.call(this,qn)-zn.h,xi=this.ctx.transform.applyToPoint(new ot(Ur.x,qn)),Di=this.ctx.transform.decompose(),Li=new xt;Li=(Li=(Li=Li.multiply(Di.translate)).multiply(Di.skew)).multiply(Di.scale);for(var aa,ma,na,Aa=this.ctx.transform.applyToRectangle(new Pt(Ur.x,qn,zn.w,zn.h)),yi=Li.applyToRectangle(new Pt(Ur.x,oi,zn.w,zn.h)),Ln=Rn.call(this,yi),ji=[],ha=0;ha<Ln.length;ha+=1)ji.indexOf(Ln[ha])===-1&&ji.push(Ln[ha]);if(ei(ji),this.autoPaging)for(var ea=ji[0],ca=ji[ji.length-1],kr=ea;kr<ca+1;kr++){this.pdf.setPage(kr);var Sr=kr===1?this.posY+this.margin[0]:this.margin[0],yn=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],dr=this.pdf.internal.pageSize.height-this.margin[2],Rr=dr-this.margin[0],Gr=this.pdf.internal.pageSize.width-this.margin[1],ln=Gr-this.margin[3],kn=kr===1?0:yn+(kr-2)*Rr;if(this.ctx.clip_path.length!==0){var kt=this.path;aa=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=rn(aa,this.posX+this.margin[3],-1*kn+Sr),Mi.call(this,"fill",!0),this.path=kt}var _r=rn([JSON.parse(JSON.stringify(yi))],this.posX+this.margin[3],-kn+Sr+this.ctx.prevPageLastElemOffset)[0];Ur.scale>=.01&&(ma=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ma*Ur.scale),na=this.lineWidth,this.lineWidth=na*Ur.scale);var Nr=this.autoPaging!=="text";if(Nr||_r.y+_r.h<=dr){if(Nr||_r.y>=Sr&&_r.x<=Gr){var Jr=Nr?Ur.text:this.pdf.splitTextToSize(Ur.text,Ur.maxWidth||Gr-_r.x)[0],xn=rn([JSON.parse(JSON.stringify(Aa))],this.posX+this.margin[3],-kn+Sr+this.ctx.prevPageLastElemOffset)[0],Tn=Nr&&(kr>ea||kr<ca)&&Mr.call(this);Tn&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],ln,Rr,null).clip().discardPath()),this.pdf.text(Jr,xn.x,xn.y,{angle:Ur.angle,align:On,renderingMode:Ur.renderingMode}),Tn&&this.pdf.restoreGraphicsState()}}else _r.y<dr&&(this.ctx.prevPageLastElemOffset+=dr-_r.y);Ur.scale>=.01&&(this.pdf.setFontSize(ma),this.lineWidth=na)}else Ur.scale>=.01&&(ma=this.pdf.internal.getFontSize(),this.pdf.setFontSize(ma*Ur.scale),na=this.lineWidth,this.lineWidth=na*Ur.scale),this.pdf.text(Ur.text,xi.x+this.posX,xi.y+this.posY,{angle:Ur.angle,align:On,renderingMode:Ur.renderingMode,maxWidth:Ur.maxWidth}),Ur.scale>=.01&&(this.pdf.setFontSize(ma),this.lineWidth=na)},Vt=function(Ur,On,zn,qn){zn=zn||0,qn=qn||0,this.pdf.internal.out(He(Ur+zn)+" "+Ge(On+qn)+" l")},Lt=function(Ur,On,zn){return this.pdf.lines(Ur,On,zn,null,null)},cr=function(Ur,On,zn,qn,oi,xi,Di,Li){this.pdf.internal.out([Ne(nt(zn+Ur)),Ne($e(qn+On)),Ne(nt(oi+Ur)),Ne($e(xi+On)),Ne(nt(Di+Ur)),Ne($e(Li+On)),"c"].join(" "))},vr=function(Ur,On,zn,qn){for(var oi=2*Math.PI,xi=Math.PI/2;On>zn;)On-=oi;var Di=Math.abs(zn-On);Di<oi&&qn&&(Di=oi-Di);for(var Li=[],aa=qn?-1:1,ma=On;Di>1e-5;){var na=ma+aa*Math.min(Di,xi);Li.push(yr.call(this,Ur,ma,na)),Di-=Math.abs(na-ma),ma=na}return Li},yr=function(Ur,On,zn){var qn=(zn-On)/2,oi=Ur*Math.cos(qn),xi=Ur*Math.sin(qn),Di=oi,Li=-xi,aa=Di*Di+Li*Li,ma=aa+Di*oi+Li*xi,na=4/3*(Math.sqrt(2*aa*ma)-ma)/(Di*xi-Li*oi),Aa=Di-na*Li,yi=Li+na*Di,Ln=Aa,ji=-yi,ha=qn+On,ea=Math.cos(ha),ca=Math.sin(ha);return{x1:Ur*Math.cos(On),y1:Ur*Math.sin(On),x2:Aa*ea-yi*ca,y2:Aa*ca+yi*ea,x3:Ln*ea-ji*ca,y3:Ln*ca+ji*ea,x4:Ur*Math.cos(zn),y4:Ur*Math.sin(zn)}},Dr=function(Ur){return 180*Ur/Math.PI},Kn=function(Ur,On,zn,qn,oi,xi){var Di=Ur+.5*(zn-Ur),Li=On+.5*(qn-On),aa=oi+.5*(zn-oi),ma=xi+.5*(qn-xi),na=Math.min(Ur,oi,Di,aa),Aa=Math.max(Ur,oi,Di,aa),yi=Math.min(On,xi,Li,ma),Ln=Math.max(On,xi,Li,ma);return new Pt(na,yi,Aa-na,Ln-yi)},Dn=function(Ur,On,zn,qn,oi,xi,Di,Li){var aa,ma,na,Aa,yi,Ln,ji,ha,ea,ca,kr,Sr,yn,dr,Rr=zn-Ur,Gr=qn-On,ln=oi-zn,kn=xi-qn,kt=Di-oi,_r=Li-xi;for(ma=0;ma<41;ma++)ea=(ji=(na=Ur+(aa=ma/40)*Rr)+aa*((yi=zn+aa*ln)-na))+aa*(yi+aa*(oi+aa*kt-yi)-ji),ca=(ha=(Aa=On+aa*Gr)+aa*((Ln=qn+aa*kn)-Aa))+aa*(Ln+aa*(xi+aa*_r-Ln)-ha),ma==0?(kr=ea,Sr=ca,yn=ea,dr=ca):(kr=Math.min(kr,ea),Sr=Math.min(Sr,ca),yn=Math.max(yn,ea),dr=Math.max(dr,ca));return new Pt(Math.round(kr),Math.round(Sr),Math.round(yn-kr),Math.round(dr-Sr))},di=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var Ur,On,zn=(Ur=this.ctx.lineDash,On=this.ctx.lineDashOffset,JSON.stringify({lineDash:Ur,lineDashOffset:On}));this.prevLineDash!==zn&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=zn)}}}(U.API),function(it){var Ne=function(ot){var Pt,xt,rr,Fr,Vr,fn,gr,Gn,Mr,Rn;for(/[^\x00-\xFF]/.test(ot),xt=[],rr=0,Fr=(ot+=Pt="\0\0\0\0".slice(ot.length%4||4)).length;Fr>rr;rr+=4)(Vr=(ot.charCodeAt(rr)<<24)+(ot.charCodeAt(rr+1)<<16)+(ot.charCodeAt(rr+2)<<8)+ot.charCodeAt(rr+3))!==0?(fn=(Vr=((Vr=((Vr=((Vr=(Vr-(Rn=Vr%85))/85)-(Mr=Vr%85))/85)-(Gn=Vr%85))/85)-(gr=Vr%85))/85)%85,xt.push(fn+33,gr+33,Gn+33,Mr+33,Rn+33)):xt.push(122);return function(bn,rn){for(var ei=rn;ei>0;ei--)bn.pop()}(xt,Pt.length),String.fromCharCode.apply(String,xt)+"~>"},He=function(ot){var Pt,xt,rr,Fr,Vr,fn=String,gr="length",Gn=255,Mr="charCodeAt",Rn="slice",bn="replace";for(ot[Rn](-2),ot=ot[Rn](0,-2)[bn](/\s/g,"")[bn]("z","!!!!!"),rr=[],Fr=0,Vr=(ot+=Pt="uuuuu"[Rn](ot[gr]%5||5))[gr];Vr>Fr;Fr+=5)xt=52200625*(ot[Mr](Fr)-33)+614125*(ot[Mr](Fr+1)-33)+7225*(ot[Mr](Fr+2)-33)+85*(ot[Mr](Fr+3)-33)+(ot[Mr](Fr+4)-33),rr.push(Gn&xt>>24,Gn&xt>>16,Gn&xt>>8,Gn&xt);return function(rn,ei){for(var fi=ei;fi>0;fi--)rn.pop()}(rr,Pt[gr]),fn.fromCharCode.apply(fn,rr)},Ge=function(ot){var Pt=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"),Pt.test(ot)===!1)return"";for(var xt="",rr=0;rr<ot.length;rr+=2)xt+=String.fromCharCode("0x"+(ot[rr]+ot[rr+1]));return xt},nt=function(ot){for(var Pt=new Uint8Array(ot.length),xt=ot.length;xt--;)Pt[xt]=ot.charCodeAt(xt);return ot=(Pt=Object(A.b)(Pt)).reduce(function(rr,Fr){return rr+String.fromCharCode(Fr)},"")};it.processDataByFilters=function($e,ot){var Pt=0,xt=$e||"",rr=[];for(typeof(ot=ot||[])=="string"&&(ot=[ot]),Pt=0;Pt<ot.length;Pt+=1)switch(ot[Pt]){case"ASCII85Decode":case"/ASCII85Decode":xt=He(xt),rr.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":xt=Ne(xt),rr.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":xt=Ge(xt),rr.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":xt=xt.split("").map(function(Fr){return("0"+Fr.charCodeAt().toString(16)).slice(-2)}).join("")+">",rr.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":xt=nt(xt),rr.push("/FlateDecode");break;default:throw new Error('The filter: "'+ot[Pt]+'" is not implemented')}return{data:xt,reverseChain:rr.reverse().join(" ")}}}(U.API),function(it){it.loadFile=function(Ne,He,Ge){return function(nt,$e,ot){$e=$e!==!1,ot=typeof ot=="function"?ot:function(){};var Pt=void 0;try{Pt=function(xt,rr,Fr){var Vr=new XMLHttpRequest,fn=0,gr=function(Mr){var Rn=Mr.length,bn=[],rn=String.fromCharCode;for(fn=0;fn<Rn;fn+=1)bn.push(rn(255&Mr.charCodeAt(fn)));return bn.join("")};if(Vr.open("GET",xt,!rr),Vr.overrideMimeType("text/plain; charset=x-user-defined"),rr===!1&&(Vr.onload=function(){Vr.status===200?Fr(gr(this.responseText)):Fr(void 0)}),Vr.send(null),rr&&Vr.status===200)return gr(Vr.responseText)}(nt,$e,ot)}catch(xt){}return Pt}(Ne,He,Ge)},it.loadImageFile=it.loadFile}(U.API),function(it){function Ne(){return(m.html2canvas?Promise.resolve(m.html2canvas):Promise.resolve().then(i.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 He(){return(m.DOMPurify?Promise.resolve(m.DOMPurify):i.e(240).then(i.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 Ge=function(Pt){var xt=S()(Pt);return xt==="undefined"?"undefined":xt==="string"||Pt instanceof String?"string":xt==="number"||Pt instanceof Number?"number":xt==="function"||Pt instanceof Function?"function":Pt&&Pt.constructor===Array?"array":Pt&&Pt.nodeType===1?"element":xt==="object"?"object":"unknown"},nt=function(Pt,xt){var rr=document.createElement(Pt);for(var Fr in xt.className&&(rr.className=xt.className),xt.innerHTML&&xt.dompurify&&(rr.innerHTML=xt.dompurify.sanitize(xt.innerHTML)),xt.style)rr.style[Fr]=xt.style[Fr];return rr},$e=function ot(Pt){var xt=Object.assign(ot.convert(Promise.resolve()),JSON.parse(JSON.stringify(ot.template))),rr=ot.convert(Promise.resolve(),xt);return rr=(rr=rr.setProgress(1,ot,1,[ot])).set(Pt)};($e.prototype=Object.create(Promise.prototype)).constructor=$e,$e.convert=function(ot,Pt){return ot.__proto__=Pt||$e.prototype,ot},$e.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"}},$e.prototype.from=function(ot,Pt){return this.then(function(){switch(Pt=Pt||function(xt){switch(Ge(xt)){case"string":return"string";case"element":return xt.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(ot)){case"string":return this.then(He).then(function(xt){return this.set({src:nt("div",{innerHTML:ot,dompurify:xt})})});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.")}})},$e.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.")}},$e.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},Pt=function xt(rr,Fr){for(var Vr=rr.nodeType===3?document.createTextNode(rr.nodeValue):rr.cloneNode(!1),fn=rr.firstChild;fn;fn=fn.nextSibling)Fr!==!0&&fn.nodeType===1&&fn.nodeName==="SCRIPT"||Vr.appendChild(xt(fn,Fr));return rr.nodeType===1&&(rr.nodeName==="CANVAS"?(Vr.width=rr.width,Vr.height=rr.height,Vr.getContext("2d").drawImage(rr,0,0)):rr.nodeName!=="TEXTAREA"&&rr.nodeName!=="SELECT"||(Vr.value=rr.value),Vr.addEventListener("load",function(){Vr.scrollTop=rr.scrollTop,Vr.scrollLeft=rr.scrollLeft},!0)),Vr}(this.prop.src,this.opt.html2canvas.javascriptEnabled);Pt.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=nt("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=nt("div",{className:"html2pdf__container",style:ot}),this.prop.container.appendChild(Pt),this.prop.container.firstChild.appendChild(nt("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"})},$e.prototype.toCanvas=function(){var ot=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ot).then(Ne).then(function(Pt){var xt=Object.assign({},this.opt.html2canvas);return delete xt.onrendered,Pt(this.prop.container,xt)}).then(function(Pt){(this.opt.html2canvas.onrendered||function(){})(Pt),this.prop.canvas=Pt,document.body.removeChild(this.prop.overlay)})},$e.prototype.toContext2d=function(){var ot=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ot).then(Ne).then(function(Pt){var xt=this.opt.jsPDF,rr=this.opt.fontFaces,Fr=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,Vr=Object.assign({async:!0,allowTaint:!0,scale:Fr,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 Vr.onrendered,xt.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,xt.context2d.posX=this.opt.x,xt.context2d.posY=this.opt.y,xt.context2d.margin=this.opt.margin,xt.context2d.fontFaces=rr,rr)for(var fn=0;fn<rr.length;++fn){var gr=rr[fn],Gn=gr.src.find(function(Mr){return Mr.format==="truetype"});Gn&&xt.addFont(Gn.url,gr.ref.name,gr.ref.style)}return Vr.windowHeight=Vr.windowHeight||0,Vr.windowHeight=Vr.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):Vr.windowHeight,xt.context2d.save(!0),Pt(this.prop.container,Vr)}).then(function(Pt){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(Pt),this.prop.canvas=Pt,document.body.removeChild(this.prop.overlay)})},$e.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})},$e.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},$e.prototype.output=function(ot,Pt,xt){return(xt=xt||"pdf").toLowerCase()==="img"||xt.toLowerCase()==="image"?this.outputImg(ot,Pt):this.outputPdf(ot,Pt)},$e.prototype.outputPdf=function(ot,Pt){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(ot,Pt)})},$e.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.'}})},$e.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)})},$e.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},$e.prototype.set=function(ot){if(Ge(ot)!=="object")return this;var Pt=Object.keys(ot||{}).map(function(xt){if(xt in $e.template.prop)return function(){this.prop[xt]=ot[xt]};switch(xt){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[xt]=ot[xt]}}},this);return this.then(function(){return this.thenList(Pt)})},$e.prototype.get=function(ot,Pt){return this.then(function(){var xt=ot in $e.template.prop?this.prop[ot]:this.opt[ot];return Pt?Pt(xt):xt})},$e.prototype.setMargin=function(ot){return this.then(function(){switch(Ge(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)},$e.prototype.setPageSize=function(ot){function Pt(xt,rr){return Math.floor(xt*rr/72*96)}return this.then(function(){(ot=ot||U.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:Pt(ot.inner.width,ot.k),height:Pt(ot.inner.height,ot.k)},ot.inner.ratio=ot.inner.height/ot.inner.width),this.prop.pageSize=ot})},$e.prototype.setProgress=function(ot,Pt,xt,rr){return ot!=null&&(this.progress.val=ot),Pt!=null&&(this.progress.state=Pt),xt!=null&&(this.progress.n=xt),rr!=null&&(this.progress.stack=rr),this.progress.ratio=this.progress.val/this.progress.state,this},$e.prototype.updateProgress=function(ot,Pt,xt,rr){return this.setProgress(ot?this.progress.val+ot:null,Pt||null,xt?this.progress.n+xt:null,rr?this.progress.stack.concat(rr):null)},$e.prototype.then=function(ot,Pt){var xt=this;return this.thenCore(ot,Pt,function(rr,Fr){return xt.updateProgress(null,null,1,[rr]),Promise.prototype.then.call(this,function(Vr){return xt.updateProgress(null,rr),Vr}).then(rr,Fr).then(function(Vr){return xt.updateProgress(1),Vr})})},$e.prototype.thenCore=function(ot,Pt,xt){xt=xt||Promise.prototype.then,ot&&(ot=ot.bind(this)),Pt&&(Pt=Pt.bind(this));var rr=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:$e.convert(Object.assign({},this),Promise.prototype),Fr=xt.call(rr,ot,Pt);return $e.convert(Fr,this.__proto__)},$e.prototype.thenExternal=function(ot,Pt){return Promise.prototype.then.call(this,ot,Pt)},$e.prototype.thenList=function(ot){var Pt=this;return ot.forEach(function(xt){Pt=Pt.thenCore(xt)}),Pt},$e.prototype.catch=function(ot){ot&&(ot=ot.bind(this));var Pt=Promise.prototype.catch.call(this,ot);return $e.convert(Pt,this)},$e.prototype.catchExternal=function(ot){return Promise.prototype.catch.call(this,ot)},$e.prototype.error=function(ot){return this.then(function(){throw new Error(ot)})},$e.prototype.using=$e.prototype.set,$e.prototype.saveAs=$e.prototype.save,$e.prototype.export=$e.prototype.output,$e.prototype.run=$e.prototype.then,U.getPageSize=function(ot,Pt,xt){if(S()(ot)==="object"){var rr=ot;ot=rr.orientation,Pt=rr.unit||Pt,xt=rr.format||xt}Pt=Pt||"mm",xt=xt||"a4",ot=(""+(ot||"P")).toLowerCase();var Fr,Vr=(""+xt).toLowerCase(),fn={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(Pt){case"pt":Fr=1;break;case"mm":Fr=72/25.4;break;case"cm":Fr=72/2.54;break;case"in":Fr=72;break;case"px":Fr=.75;break;case"pc":case"em":Fr=12;break;case"ex":Fr=6;break;default:throw"Invalid unit: "+Pt}var gr,Gn=0,Mr=0;if(fn.hasOwnProperty(Vr))Gn=fn[Vr][1]/Fr,Mr=fn[Vr][0]/Fr;else try{Gn=xt[1],Mr=xt[0]}catch(Rn){throw new Error("Invalid format: "+xt)}if(ot==="p"||ot==="portrait")ot="p",Mr>Gn&&(gr=Mr,Mr=Gn,Gn=gr);else{if(ot!=="l"&&ot!=="landscape")throw"Invalid orientation: "+ot;ot="l",Gn>Mr&&(gr=Mr,Mr=Gn,Gn=gr)}return{width:Mr,height:Gn,unit:Pt,k:Fr,orientation:ot}},it.html=function(ot,Pt){(Pt=Pt||{}).callback=Pt.callback||function(){},Pt.html2canvas=Pt.html2canvas||{},Pt.html2canvas.canvas=Pt.html2canvas.canvas||this.canvas,Pt.jsPDF=Pt.jsPDF||this,Pt.fontFaces=Pt.fontFaces?Pt.fontFaces.map(cn):null;var xt=new $e(Pt);return Pt.worker?xt:xt.from(ot).doCallback()}}(U.API),U.API.addJS=function(it){return jn=it,this.internal.events.subscribe("postPutResources",function(){ci=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(ci+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Vi=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+jn+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){ci!==void 0&&Vi!==void 0&&this.internal.out("/Names <</JavaScript "+ci+" 0 R>>")}),this},function(it){var Ne;it.events.push(["postPutResources",function(){var He=this,Ge=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var nt=He.outline.render().split(/\r\n/),$e=0;$e<nt.length;$e++){var ot=nt[$e],Pt=Ge.exec(ot);if(Pt!=null){var xt=Pt[1];He.internal.newObjectDeferredBegin(xt,!1)}He.internal.write(ot)}if(this.outline.createNamedDestinations){var rr=this.internal.pages.length,Fr=[];for($e=0;$e<rr;$e++){var Vr=He.internal.newObject();Fr.push(Vr);var fn=He.internal.getPageInfo($e+1);He.internal.write("<< /D["+fn.objId+" 0 R /XYZ null null null]>> endobj")}var gr=He.internal.newObject();for(He.internal.write("<< /Names [ "),$e=0;$e<Fr.length;$e++)He.internal.write("(page_"+($e+1)+")"+Fr[$e]+" 0 R");He.internal.write(" ] >>","endobj"),Ne=He.internal.newObject(),He.internal.write("<< /Dests "+gr+" 0 R"),He.internal.write(">>","endobj")}}]),it.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 "+Ne+" 0 R"))}]),it.events.push(["initialized",function(){var He=this;He.outline={createNamedDestinations:!1,root:{children:[]}},He.outline.add=function(Ge,nt,$e){var ot={title:nt,options:$e,children:[]};return Ge==null&&(Ge=this.root),Ge.children.push(ot),ot},He.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=He,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},He.outline.genIds_r=function(Ge){Ge.id=He.internal.newObjectDeferred();for(var nt=0;nt<Ge.children.length;nt++)this.genIds_r(Ge.children[nt])},He.outline.renderRoot=function(Ge){this.objStart(Ge),this.line("/Type /Outlines"),Ge.children.length>0&&(this.line("/First "+this.makeRef(Ge.children[0])),this.line("/Last "+this.makeRef(Ge.children[Ge.children.length-1]))),this.line("/Count "+this.count_r({count:0},Ge)),this.objEnd()},He.outline.renderItems=function(Ge){for(var nt=this.ctx.pdf.internal.getVerticalCoordinateString,$e=0;$e<Ge.children.length;$e++){var ot=Ge.children[$e];this.objStart(ot),this.line("/Title "+this.makeString(ot.title)),this.line("/Parent "+this.makeRef(Ge)),$e>0&&this.line("/Prev "+this.makeRef(Ge.children[$e-1])),$e<Ge.children.length-1&&this.line("/Next "+this.makeRef(Ge.children[$e+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 Pt=this.count=this.count_r({count:0},ot);if(Pt>0&&this.line("/Count "+Pt),ot.options&&ot.options.pageNumber){var xt=He.internal.getPageInfo(ot.options.pageNumber);this.line("/Dest ["+xt.objId+" 0 R /XYZ 0 "+nt(0)+" 0]")}this.objEnd()}for(var rr=0;rr<Ge.children.length;rr++)this.renderItems(Ge.children[rr])},He.outline.line=function(Ge){this.ctx.val+=Ge+`\r
`},He.outline.makeRef=function(Ge){return Ge.id+" 0 R"},He.outline.makeString=function(Ge){return"("+He.internal.pdfEscape(Ge)+")"},He.outline.objStart=function(Ge){this.ctx.val+=`\r
`+Ge.id+` 0 obj\r
<<\r
`},He.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},He.outline.count_r=function(Ge,nt){for(var $e=0;$e<nt.children.length;$e++)Ge.count++,this.count_r(Ge,nt.children[$e]);return Ge.count}}])}(U.API),function(it){var Ne=[192,193,194,195,196,197,198,199];it.processJPEG=function(He,Ge,nt,$e,ot,Pt){var xt,rr=this.decode.DCT_DECODE,Fr=null;if(typeof He=="string"||this.__addimage__.isArrayBuffer(He)||this.__addimage__.isArrayBufferView(He)){switch(He=ot||He,He=this.__addimage__.isArrayBuffer(He)?new Uint8Array(He):He,(xt=function(Vr){for(var fn,gr=256*Vr.charCodeAt(4)+Vr.charCodeAt(5),Gn=Vr.length,Mr={width:0,height:0,numcomponents:1},Rn=4;Rn<Gn;Rn+=2){if(Rn+=gr,Ne.indexOf(Vr.charCodeAt(Rn+1))!==-1){fn=256*Vr.charCodeAt(Rn+5)+Vr.charCodeAt(Rn+6),Mr={width:256*Vr.charCodeAt(Rn+7)+Vr.charCodeAt(Rn+8),height:fn,numcomponents:Vr.charCodeAt(Rn+9)};break}gr=256*Vr.charCodeAt(Rn+2)+Vr.charCodeAt(Rn+3)}return Mr}(He=this.__addimage__.isArrayBufferView(He)?this.__addimage__.arrayBufferToBinaryString(He):He)).numcomponents){case 1:Pt=this.color_spaces.DEVICE_GRAY;break;case 4:Pt=this.color_spaces.DEVICE_CMYK;break;case 3:Pt=this.color_spaces.DEVICE_RGB}Fr={data:He,width:xt.width,height:xt.height,colorSpace:Pt,bitsPerComponent:8,filter:rr,index:Ge,alias:nt}}return Fr}}(U.API);var $t,Ot,ke,Me,Be,at=function(){var it,Ne,He;function Ge($e){var ot,Pt,xt,rr,Fr,Vr,fn,gr,Gn,Mr,Rn,bn,rn,ei;for(this.data=$e,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},Vr=null;;){switch(ot=this.readUInt32(),Gn=function(){var fi,Mi;for(Mi=[],fi=0;fi<4;++fi)Mi.push(String.fromCharCode(this.data[this.pos++]));return Mi}.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":Vr&&this.animation.frames.push(Vr),this.pos+=4,Vr={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},Fr=this.readUInt16(),rr=this.readUInt16()||100,Vr.delay=1e3*Fr/rr,Vr.disposeOp=this.data[this.pos++],Vr.blendOp=this.data[this.pos++],Vr.data=[];break;case"IDAT":case"fdAT":for(Gn==="fdAT"&&(this.pos+=4,ot-=4),$e=(Vr!=null?Vr.data:void 0)||this.imgData,bn=0;0<=ot?bn<ot:bn>ot;0<=ot?++bn:--bn)$e.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(xt=this.palette.length/3,this.transparency.indexed=this.read(ot),this.transparency.indexed.length>xt)throw new Error("More transparent colors than palette size");if((Mr=xt-this.transparency.indexed.length)>0)for(rn=0;0<=Mr?rn<Mr:rn>Mr;0<=Mr?++rn:--rn)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":fn=(Rn=this.read(ot)).indexOf(0),gr=String.fromCharCode.apply(String,Rn.slice(0,fn)),this.text[gr]=String.fromCharCode.apply(String,Rn.slice(fn+1));break;case"IEND":return Vr&&this.animation.frames.push(Vr),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(ei=this.colorType)===4||ei===6,Pt=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*Pt,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")}}Ge.prototype.read=function($e){var ot,Pt;for(Pt=[],ot=0;0<=$e?ot<$e:ot>$e;0<=$e?++ot:--ot)Pt.push(this.data[this.pos++]);return Pt},Ge.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},Ge.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},Ge.prototype.decodePixels=function($e){var ot=this.pixelBitlength/8,Pt=new Uint8Array(this.width*this.height*ot),xt=0,rr=this;if($e==null&&($e=this.imgData),$e.length===0)return new Uint8Array(0);function Fr(Vr,fn,gr,Gn){var Mr,Rn,bn,rn,ei,fi,Mi,$r,En,Hn,zt,_t,Ft,Wt,Vt,Lt,cr,vr,yr,Dr,Kn,Dn=Math.ceil((rr.width-Vr)/gr),di=Math.ceil((rr.height-fn)/Gn),mn=rr.width==Dn&&rr.height==di;for(Wt=ot*Dn,_t=mn?Pt:new Uint8Array(Wt*di),fi=$e.length,Ft=0,Rn=0;Ft<di&&xt<fi;){switch($e[xt++]){case 0:for(rn=cr=0;cr<Wt;rn=cr+=1)_t[Rn++]=$e[xt++];break;case 1:for(rn=vr=0;vr<Wt;rn=vr+=1)Mr=$e[xt++],ei=rn<ot?0:_t[Rn-ot],_t[Rn++]=(Mr+ei)%256;break;case 2:for(rn=yr=0;yr<Wt;rn=yr+=1)Mr=$e[xt++],bn=(rn-rn%ot)/ot,Vt=Ft&&_t[(Ft-1)*Wt+bn*ot+rn%ot],_t[Rn++]=(Vt+Mr)%256;break;case 3:for(rn=Dr=0;Dr<Wt;rn=Dr+=1)Mr=$e[xt++],bn=(rn-rn%ot)/ot,ei=rn<ot?0:_t[Rn-ot],Vt=Ft&&_t[(Ft-1)*Wt+bn*ot+rn%ot],_t[Rn++]=(Mr+Math.floor((ei+Vt)/2))%256;break;case 4:for(rn=Kn=0;Kn<Wt;rn=Kn+=1)Mr=$e[xt++],bn=(rn-rn%ot)/ot,ei=rn<ot?0:_t[Rn-ot],Ft===0?Vt=Lt=0:(Vt=_t[(Ft-1)*Wt+bn*ot+rn%ot],Lt=bn&&_t[(Ft-1)*Wt+(bn-1)*ot+rn%ot]),Mi=ei+Vt-Lt,$r=Math.abs(Mi-ei),Hn=Math.abs(Mi-Vt),zt=Math.abs(Mi-Lt),En=$r<=Hn&&$r<=zt?ei:Hn<=zt?Vt:Lt,_t[Rn++]=(Mr+En)%256;break;default:throw new Error("Invalid filter algorithm: "+$e[xt-1])}if(!mn){var Ur=((fn+Ft*Gn)*rr.width+Vr)*ot,On=Ft*Wt;for(rn=0;rn<Dn;rn+=1){for(var zn=0;zn<ot;zn+=1)Pt[Ur++]=_t[On++];Ur+=(gr-1)*ot}}Ft++}}return $e=Object(A.a)($e),rr.interlaceMethod==1?(Fr(0,0,8,8),Fr(4,0,8,8),Fr(0,4,4,8),Fr(2,0,4,4),Fr(0,2,2,4),Fr(1,0,2,2),Fr(0,1,1,2)):Fr(0,0,1,1),Pt},Ge.prototype.decodePalette=function(){var $e,ot,Pt,xt,rr,Fr,Vr,fn,gr;for(Pt=this.palette,Fr=this.transparency.indexed||[],rr=new Uint8Array((Fr.length||0)+Pt.length),xt=0,$e=0,ot=Vr=0,fn=Pt.length;Vr<fn;ot=Vr+=3)rr[xt++]=Pt[ot],rr[xt++]=Pt[ot+1],rr[xt++]=Pt[ot+2],rr[xt++]=(gr=Fr[$e++])!=null?gr:255;return rr},Ge.prototype.copyToImageData=function($e,ot){var Pt,xt,rr,Fr,Vr,fn,gr,Gn,Mr,Rn,bn;if(xt=this.colors,Mr=null,Pt=this.hasAlphaChannel,this.palette.length&&(Mr=(bn=this._decodedPalette)!=null?bn:this._decodedPalette=this.decodePalette(),xt=4,Pt=!0),Gn=(rr=$e.data||$e).length,Vr=Mr||ot,Fr=fn=0,xt===1)for(;Fr<Gn;)gr=Mr?4*ot[Fr/4]:fn,Rn=Vr[gr++],rr[Fr++]=Rn,rr[Fr++]=Rn,rr[Fr++]=Rn,rr[Fr++]=Pt?Vr[gr++]:255,fn=gr;else for(;Fr<Gn;)gr=Mr?4*ot[Fr/4]:fn,rr[Fr++]=Vr[gr++],rr[Fr++]=Vr[gr++],rr[Fr++]=Vr[gr++],rr[Fr++]=Pt?Vr[gr++]:255,fn=gr},Ge.prototype.decode=function(){var $e;return $e=new Uint8Array(this.width*this.height*4),this.copyToImageData($e,this.decodePixels()),$e};var nt=function(){if(Object.prototype.toString.call(m)==="[object Window]"){try{Ne=m.document.createElement("canvas"),He=Ne.getContext("2d")}catch(ot){return!1}return!0}return!1};return nt(),it=function(ot){var Pt;if(nt()===!0)return He.width=ot.width,He.height=ot.height,He.clearRect(0,0,ot.width,ot.height),He.putImageData(ot,0,0),(Pt=new Image).src=Ne.toDataURL(),Pt;throw new Error("This method requires a Browser with Canvas-capability.")},Ge.prototype.decodeFrames=function($e){var ot,Pt,xt,rr,Fr,Vr,fn,gr;if(this.animation){for(gr=[],Pt=Fr=0,Vr=(fn=this.animation.frames).length;Fr<Vr;Pt=++Fr)ot=fn[Pt],xt=$e.createImageData(ot.width,ot.height),rr=this.decodePixels(new Uint8Array(ot.data)),this.copyToImageData(xt,rr),ot.imageData=xt,gr.push(ot.image=it(xt));return gr}},Ge.prototype.renderFrame=function($e,ot){var Pt,xt,rr;return Pt=(xt=this.animation.frames)[ot],rr=xt[ot-1],ot===0&&$e.clearRect(0,0,this.width,this.height),(rr!=null?rr.disposeOp:void 0)===1?$e.clearRect(rr.xOffset,rr.yOffset,rr.width,rr.height):(rr!=null?rr.disposeOp:void 0)===2&&$e.putImageData(rr.imageData,rr.xOffset,rr.yOffset),Pt.blendOp===0&&$e.clearRect(Pt.xOffset,Pt.yOffset,Pt.width,Pt.height),$e.drawImage(Pt.image,Pt.xOffset,Pt.yOffset)},Ge.prototype.animate=function($e){var ot,Pt,xt,rr,Fr,Vr,fn=this;return Pt=0,Vr=this.animation,rr=Vr.numFrames,xt=Vr.frames,Fr=Vr.numPlays,(ot=function(){var Gn,Mr;if(Gn=Pt++%rr,Mr=xt[Gn],fn.renderFrame($e,Gn),rr>1&&Pt/rr<Fr)return fn.animation._timeout=setTimeout(ot,Mr.delay)})()},Ge.prototype.stopAnimation=function(){var $e;return clearTimeout(($e=this.animation)!=null?$e._timeout:void 0)},Ge.prototype.render=function($e){var ot,Pt;return $e._png&&$e._png.stopAnimation(),$e._png=this,$e.width=this.width,$e.height=this.height,ot=$e.getContext("2d"),this.animation?(this.decodeFrames(ot),this.animate(ot)):(Pt=ot.createImageData(this.width,this.height),this.copyToImageData(Pt,this.decodePixels()),ot.putImageData(Pt,0,0))},Ge}();/**
* @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 At(it){var Ne=0;if(it[Ne++]!==71||it[Ne++]!==73||it[Ne++]!==70||it[Ne++]!==56||(it[Ne++]+1&253)!=56||it[Ne++]!==97)throw new Error("Invalid GIF 87a/89a header.");var He=it[Ne++]|it[Ne++]<<8,Ge=it[Ne++]|it[Ne++]<<8,nt=it[Ne++],$e=nt>>7,ot=1<<(7&nt)+1;it[Ne++],it[Ne++];var Pt=null,xt=null;$e&&(Pt=Ne,xt=ot,Ne+=3*ot);var rr=!0,Fr=[],Vr=0,fn=null,gr=0,Gn=null;for(this.width=He,this.height=Ge;rr&&Ne<it.length;)switch(it[Ne++]){case 33:switch(it[Ne++]){case 255:if(it[Ne]!==11||it[Ne+1]==78&&it[Ne+2]==69&&it[Ne+3]==84&&it[Ne+4]==83&&it[Ne+5]==67&&it[Ne+6]==65&&it[Ne+7]==80&&it[Ne+8]==69&&it[Ne+9]==50&&it[Ne+10]==46&&it[Ne+11]==48&&it[Ne+12]==3&&it[Ne+13]==1&&it[Ne+16]==0)Ne+=14,Gn=it[Ne++]|it[Ne++]<<8,Ne++;else for(Ne+=12;;){if(!((Ft=it[Ne++])>=0))throw Error("Invalid block size");if(Ft===0)break;Ne+=Ft}break;case 249:if(it[Ne++]!==4||it[Ne+4]!==0)throw new Error("Invalid graphics extension block.");var Mr=it[Ne++];Vr=it[Ne++]|it[Ne++]<<8,fn=it[Ne++],(1&Mr)==0&&(fn=null),gr=Mr>>2&7,Ne++;break;case 254:for(;;){if(!((Ft=it[Ne++])>=0))throw Error("Invalid block size");if(Ft===0)break;Ne+=Ft}break;default:throw new Error("Unknown graphic control label: 0x"+it[Ne-1].toString(16))}break;case 44:var Rn=it[Ne++]|it[Ne++]<<8,bn=it[Ne++]|it[Ne++]<<8,rn=it[Ne++]|it[Ne++]<<8,ei=it[Ne++]|it[Ne++]<<8,fi=it[Ne++],Mi=fi>>6&1,$r=1<<(7&fi)+1,En=Pt,Hn=xt,zt=!1;fi>>7&&(zt=!0,En=Ne,Hn=$r,Ne+=3*$r);var _t=Ne;for(Ne++;;){var Ft;if(!((Ft=it[Ne++])>=0))throw Error("Invalid block size");if(Ft===0)break;Ne+=Ft}Fr.push({x:Rn,y:bn,width:rn,height:ei,has_local_palette:zt,palette_offset:En,palette_size:Hn,data_offset:_t,data_length:Ne-_t,transparent_index:fn,interlaced:!!Mi,delay:Vr,disposal:gr});break;case 59:rr=!1;break;default:throw new Error("Unknown gif block: 0x"+it[Ne-1].toString(16))}this.numFrames=function(){return Fr.length},this.loopCount=function(){return Gn},this.frameInfo=function(Wt){if(Wt<0||Wt>=Fr.length)throw new Error("Frame index out of range.");return Fr[Wt]},this.decodeAndBlitFrameBGRA=function(Wt,Vt){var Lt=this.frameInfo(Wt),cr=Lt.width*Lt.height,vr=new Uint8Array(cr);Ct(it,Lt.data_offset,vr,cr);var yr=Lt.palette_offset,Dr=Lt.transparent_index;Dr===null&&(Dr=256);var Kn=Lt.width,Dn=He-Kn,di=Kn,mn=4*(Lt.y*He+Lt.x),Ur=4*((Lt.y+Lt.height)*He+Lt.x),On=mn,zn=4*Dn;Lt.interlaced===!0&&(zn+=4*He*7);for(var qn=8,oi=0,xi=vr.length;oi<xi;++oi){var Di=vr[oi];if(di===0&&(di=Kn,(On+=zn)>=Ur&&(zn=4*Dn+4*He*(qn-1),On=mn+(Kn+Dn)*(qn<<1),qn>>=1)),Di===Dr)On+=4;else{var Li=it[yr+3*Di],aa=it[yr+3*Di+1],ma=it[yr+3*Di+2];Vt[On++]=ma,Vt[On++]=aa,Vt[On++]=Li,Vt[On++]=255}--di}},this.decodeAndBlitFrameRGBA=function(Wt,Vt){var Lt=this.frameInfo(Wt),cr=Lt.width*Lt.height,vr=new Uint8Array(cr);Ct(it,Lt.data_offset,vr,cr);var yr=Lt.palette_offset,Dr=Lt.transparent_index;Dr===null&&(Dr=256);var Kn=Lt.width,Dn=He-Kn,di=Kn,mn=4*(Lt.y*He+Lt.x),Ur=4*((Lt.y+Lt.height)*He+Lt.x),On=mn,zn=4*Dn;Lt.interlaced===!0&&(zn+=4*He*7);for(var qn=8,oi=0,xi=vr.length;oi<xi;++oi){var Di=vr[oi];if(di===0&&(di=Kn,(On+=zn)>=Ur&&(zn=4*Dn+4*He*(qn-1),On=mn+(Kn+Dn)*(qn<<1),qn>>=1)),Di===Dr)On+=4;else{var Li=it[yr+3*Di],aa=it[yr+3*Di+1],ma=it[yr+3*Di+2];Vt[On++]=Li,Vt[On++]=aa,Vt[On++]=ma,Vt[On++]=255}--di}}}function Ct(it,Ne,He,Ge){for(var nt=it[Ne++],$e=1<<nt,ot=$e+1,Pt=ot+1,xt=nt+1,rr=(1<<xt)-1,Fr=0,Vr=0,fn=0,gr=it[Ne++],Gn=new Int32Array(4096),Mr=null;;){for(;Fr<16&&gr!==0;)Vr|=it[Ne++]<<Fr,Fr+=8,gr===1?gr=it[Ne++]:--gr;if(Fr<xt)break;var Rn=Vr&rr;if(Vr>>=xt,Fr-=xt,Rn!==$e){if(Rn===ot)break;for(var bn=Rn<Pt?Rn:Mr,rn=0,ei=bn;ei>$e;)ei=Gn[ei]>>8,++rn;var fi=ei;if(fn+rn+(bn!==Rn?1:0)>Ge)return void d.log("Warning, gif stream longer than expected.");He[fn++]=fi;var Mi=fn+=rn;for(bn!==Rn&&(He[fn++]=fi),ei=bn;rn--;)ei=Gn[ei],He[--Mi]=255&ei,ei>>=8;Mr!==null&&Pt<4096&&(Gn[Pt++]=Mr<<8|fi,Pt>=rr+1&&xt<12&&(++xt,rr=rr<<1|1)),Mr=Rn}else Pt=ot+1,rr=(1<<(xt=nt+1))-1,Mr=null}return fn!==Ge&&d.log("Warning, gif stream shorter than expected."),He}/**
* @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 Yt(it){var Ne,He,Ge,nt,$e,ot=Math.floor,Pt=new Array(64),xt=new Array(64),rr=new Array(64),Fr=new Array(64),Vr=new Array(65535),fn=new Array(65535),gr=new Array(64),Gn=new Array(64),Mr=[],Rn=0,bn=7,rn=new Array(64),ei=new Array(64),fi=new Array(64),Mi=new Array(256),$r=new Array(2048),En=[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],Hn=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],zt=[0,1,2,3,4,5,6,7,8,9,10,11],_t=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],Ft=[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],Vt=[0,1,2,3,4,5,6,7,8,9,10,11],Lt=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],cr=[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 vr(mn,Ur){for(var On=0,zn=0,qn=new Array,oi=1;oi<=16;oi++){for(var xi=1;xi<=mn[oi];xi++)qn[Ur[zn]]=[],qn[Ur[zn]][0]=On,qn[Ur[zn]][1]=oi,zn++,On++;On*=2}return qn}function yr(mn){for(var Ur=mn[0],On=mn[1]-1;On>=0;)Ur&1<<On&&(Rn|=1<<bn),On--,--bn<0&&(Rn==255?(Dr(255),Dr(0)):Dr(Rn),bn=7,Rn=0)}function Dr(mn){Mr.push(mn)}function Kn(mn){Dr(mn>>8&255),Dr(255&mn)}function Dn(mn,Ur,On,zn,qn){for(var oi,xi=qn[0],Di=qn[240],Li=function(ea,ca){var kr,Sr,yn,dr,Rr,Gr,ln,kn,kt,_r,Nr=0;for(kt=0;kt<8;++kt){kr=ea[Nr],Sr=ea[Nr+1],yn=ea[Nr+2],dr=ea[Nr+3],Rr=ea[Nr+4],Gr=ea[Nr+5],ln=ea[Nr+6];var Jr=kr+(kn=ea[Nr+7]),xn=kr-kn,Tn=Sr+ln,wn=Sr-ln,$n=yn+Gr,Vn=yn-Gr,mi=dr+Rr,Ri=dr-Rr,vi=Jr+mi,Bi=Jr-mi,Gi=Tn+$n,ta=Tn-$n;ea[Nr]=vi+Gi,ea[Nr+4]=vi-Gi;var Pi=.707106781*(ta+Bi);ea[Nr+2]=Bi+Pi,ea[Nr+6]=Bi-Pi;var Ki=.382683433*((vi=Ri+Vn)-(ta=wn+xn)),Hi=.5411961*vi+Ki,Qi=1.306562965*ta+Ki,da=.707106781*(Gi=Vn+wn),Oa=xn+da,ra=xn-da;ea[Nr+5]=ra+Hi,ea[Nr+3]=ra-Hi,ea[Nr+1]=Oa+Qi,ea[Nr+7]=Oa-Qi,Nr+=8}for(Nr=0,kt=0;kt<8;++kt){kr=ea[Nr],Sr=ea[Nr+8],yn=ea[Nr+16],dr=ea[Nr+24],Rr=ea[Nr+32],Gr=ea[Nr+40],ln=ea[Nr+48];var Da=kr+(kn=ea[Nr+56]),Ra=kr-kn,va=Sr+ln,ga=Sr-ln,_a=yn+Gr,ya=yn-Gr,Ga=dr+Rr,Ia=dr-Rr,Wa=Da+Ga,no=Da-Ga,io=va+_a,uo=va-_a;ea[Nr]=Wa+io,ea[Nr+32]=Wa-io;var $i=.707106781*(uo+no);ea[Nr+16]=no+$i,ea[Nr+48]=no-$i;var mo=.382683433*((Wa=Ia+ya)-(uo=ga+Ra)),Eo=.5411961*Wa+mo,ao=1.306562965*uo+mo,Co=.707106781*(io=ya+ga),Ko=Ra+Co,to=Ra-Co;ea[Nr+40]=to+Eo,ea[Nr+24]=to-Eo,ea[Nr+8]=Ko+ao,ea[Nr+56]=Ko-ao,Nr++}for(kt=0;kt<64;++kt)_r=ea[kt]*ca[kt],gr[kt]=_r>0?_r+.5|0:_r-.5|0;return gr}(mn,Ur),aa=0;aa<64;++aa)Gn[En[aa]]=Li[aa];var ma=Gn[0]-On;On=Gn[0],ma==0?yr(zn[0]):(yr(zn[fn[oi=32767+ma]]),yr(Vr[oi]));for(var na=63;na>0&&Gn[na]==0;)na--;if(na==0)return yr(xi),On;for(var Aa,yi=1;yi<=na;){for(var Ln=yi;Gn[yi]==0&&yi<=na;)++yi;var ji=yi-Ln;if(ji>=16){Aa=ji>>4;for(var ha=1;ha<=Aa;++ha)yr(Di);ji&=15}oi=32767+Gn[yi],yr(qn[(ji<<4)+fn[oi]]),yr(Vr[oi]),yi++}return na!=63&&yr(xi),On}function di(mn){(mn=Math.min(Math.max(mn,1),100),$e!=mn)&&(!function(Ur){for(var On=[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],zn=0;zn<64;zn++){var qn=ot((On[zn]*Ur+50)/100);qn=Math.min(Math.max(qn,1),255),Pt[En[zn]]=qn}for(var oi=[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],xi=0;xi<64;xi++){var Di=ot((oi[xi]*Ur+50)/100);Di=Math.min(Math.max(Di,1),255),xt[En[xi]]=Di}for(var Li=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],aa=0,ma=0;ma<8;ma++)for(var na=0;na<8;na++)rr[aa]=1/(Pt[En[aa]]*Li[ma]*Li[na]*8),Fr[aa]=1/(xt[En[aa]]*Li[ma]*Li[na]*8),aa++}(mn<50?Math.floor(5e3/mn):Math.floor(200-2*mn)),$e=mn)}this.encode=function(mn,Ur){Ur&&di(Ur),Mr=new Array,Rn=0,bn=7,Kn(65496),Kn(65504),Kn(16),Dr(74),Dr(70),Dr(73),Dr(70),Dr(0),Dr(1),Dr(1),Dr(0),Kn(1),Kn(1),Dr(0),Dr(0),function(){Kn(65499),Kn(132),Dr(0);for(var Sr=0;Sr<64;Sr++)Dr(Pt[Sr]);Dr(1);for(var yn=0;yn<64;yn++)Dr(xt[yn])}(),function(Sr,yn){Kn(65472),Kn(17),Dr(8),Kn(yn),Kn(Sr),Dr(3),Dr(1),Dr(17),Dr(0),Dr(2),Dr(17),Dr(1),Dr(3),Dr(17),Dr(1)}(mn.width,mn.height),function(){Kn(65476),Kn(418),Dr(0);for(var Sr=0;Sr<16;Sr++)Dr(Hn[Sr+1]);for(var yn=0;yn<=11;yn++)Dr(zt[yn]);Dr(16);for(var dr=0;dr<16;dr++)Dr(_t[dr+1]);for(var Rr=0;Rr<=161;Rr++)Dr(Ft[Rr]);Dr(1);for(var Gr=0;Gr<16;Gr++)Dr(Wt[Gr+1]);for(var ln=0;ln<=11;ln++)Dr(Vt[ln]);Dr(17);for(var kn=0;kn<16;kn++)Dr(Lt[kn+1]);for(var kt=0;kt<=161;kt++)Dr(cr[kt])}(),Kn(65498),Kn(12),Dr(3),Dr(1),Dr(0),Dr(2),Dr(17),Dr(3),Dr(17),Dr(0),Dr(63),Dr(0);var On=0,zn=0,qn=0;Rn=0,bn=7,this.encode.displayName="_encode_";for(var oi,xi,Di,Li,aa,ma,na,Aa,yi,Ln=mn.data,ji=mn.width,ha=mn.height,ea=4*ji,ca=0;ca<ha;){for(oi=0;oi<ea;){for(aa=ea*ca+oi,na=-1,Aa=0,yi=0;yi<64;yi++)ma=aa+(Aa=yi>>3)*ea+(na=4*(7&yi)),ca+Aa>=ha&&(ma-=ea*(ca+1+Aa-ha)),oi+na>=ea&&(ma-=oi+na-ea+4),xi=Ln[ma++],Di=Ln[ma++],Li=Ln[ma++],rn[yi]=($r[xi]+$r[Di+256>>0]+$r[Li+512>>0]>>16)-128,ei[yi]=($r[xi+768>>0]+$r[Di+1024>>0]+$r[Li+1280>>0]>>16)-128,fi[yi]=($r[xi+1280>>0]+$r[Di+1536>>0]+$r[Li+1792>>0]>>16)-128;On=Dn(rn,rr,On,Ne,Ge),zn=Dn(ei,Fr,zn,He,nt),qn=Dn(fi,Fr,qn,He,nt),oi+=32}ca+=8}if(bn>=0){var kr=[];kr[1]=bn+1,kr[0]=(1<<bn+1)-1,yr(kr)}return Kn(65497),new Uint8Array(Mr)},it=it||50,function(){for(var mn=String.fromCharCode,Ur=0;Ur<256;Ur++)Mi[Ur]=mn(Ur)}(),Ne=vr(Hn,zt),He=vr(Wt,Vt),Ge=vr(_t,Ft),nt=vr(Lt,cr),function(){for(var mn=1,Ur=2,On=1;On<=15;On++){for(var zn=mn;zn<Ur;zn++)fn[32767+zn]=On,Vr[32767+zn]=[],Vr[32767+zn][1]=On,Vr[32767+zn][0]=zn;for(var qn=-(Ur-1);qn<=-mn;qn++)fn[32767+qn]=On,Vr[32767+qn]=[],Vr[32767+qn][1]=On,Vr[32767+qn][0]=Ur-1+qn;mn<<=1,Ur<<=1}}(),function(){for(var mn=0;mn<256;mn++)$r[mn]=19595*mn,$r[mn+256>>0]=38470*mn,$r[mn+512>>0]=7471*mn+32768,$r[mn+768>>0]=-11059*mn,$r[mn+1024>>0]=-21709*mn,$r[mn+1280>>0]=32768*mn+8421375,$r[mn+1536>>0]=-27439*mn,$r[mn+1792>>0]=-5329*mn}(),di(it)}/**
* @license
* Copyright (c) 2017 Aras Abbasi
*
* Licensed under the MIT License.
* http://opensource.org/licenses/mit-license
*/function Pr(it,Ne){if(this.pos=0,this.buffer=it,this.datav=new DataView(it.buffer),this.is_with_alpha=!!Ne,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 qr(it){function Ne(Hn){if(!Hn)throw Error("assert :P")}function He(Hn,zt,_t){for(var Ft=0;4>Ft;Ft++)if(Hn[zt+Ft]!=_t.charCodeAt(Ft))return!0;return!1}function Ge(Hn,zt,_t,Ft,Wt){for(var Vt=0;Vt<Wt;Vt++)Hn[zt+Vt]=_t[Ft+Vt]}function nt(Hn,zt,_t,Ft){for(var Wt=0;Wt<Ft;Wt++)Hn[zt+Wt]=_t}function $e(Hn){return new Int32Array(Hn)}function ot(Hn,zt){for(var _t=[],Ft=0;Ft<Hn;Ft++)_t.push(new zt);return _t}function Pt(Hn,zt){var _t=[];return function Ft(Wt,Vt,Lt){for(var cr=Lt[Vt],vr=0;vr<cr&&(Wt.push(Lt.length>Vt+1?[]:new zt),!(Lt.length<Vt+1));vr++)Ft(Wt[vr],Vt+1,Lt)}(_t,0,Hn),_t}var xt=function(){var zt=this;function _t(xe,Ye){for(var St=1<<Ye-1>>>0;xe&St;)St>>>=1;return St?(xe&St-1)+St:xe}function Ft(xe,Ye,St,ur,Br){Ne(!(ur%St));do xe[Ye+(ur-=St)]=Br;while(0<ur)}function Wt(xe,Ye,St,ur,Br){if(Ne(2328>=Br),512>=Br)var on=$e(512);else if((on=$e(Br))==null)return 0;return function(je,ae,Oe,Ze,yt,Xt){var tr,or,Wr=ae,un=1<<Oe,zr=$e(16),jr=$e(16);for(Ne(yt!=0),Ne(Ze!=null),Ne(je!=null),Ne(0<Oe),or=0;or<yt;++or){if(15<Ze[or])return 0;++zr[Ze[or]]}if(zr[0]==yt)return 0;for(jr[1]=0,tr=1;15>tr;++tr){if(zr[tr]>1<<tr)return 0;jr[tr+1]=jr[tr]+zr[tr]}for(or=0;or<yt;++or)tr=Ze[or],0<Ze[or]&&(Xt[jr[tr]++]=or);if(jr[15]==1)return(Ze=new Vt).g=0,Ze.value=Xt[0],Ft(je,Wr,1,un,Ze),un;var sn,vn=-1,Un=un-1,Ii=0,ki=1,la=1,Zi=1<<Oe;for(or=0,tr=1,yt=2;tr<=Oe;++tr,yt<<=1){if(ki+=la<<=1,0>(la-=zr[tr]))return 0;for(;0<zr[tr];--zr[tr])(Ze=new Vt).g=tr,Ze.value=Xt[or++],Ft(je,Wr+Ii,yt,Zi,Ze),Ii=_t(Ii,tr)}for(tr=Oe+1,yt=2;15>=tr;++tr,yt<<=1){if(ki+=la<<=1,0>(la-=zr[tr]))return 0;for(;0<zr[tr];--zr[tr]){if(Ze=new Vt,(Ii&Un)!=vn){for(Wr+=Zi,sn=1<<(vn=tr)-Oe;15>vn&&!(0>=(sn-=zr[vn]));)++vn,sn<<=1;un+=Zi=1<<(sn=vn-Oe),je[ae+(vn=Ii&Un)].g=sn+Oe,je[ae+vn].value=Wr-ae-vn}Ze.g=tr-Oe,Ze.value=Xt[or++],Ft(je,Wr+(Ii>>Oe),yt,Zi,Ze),Ii=_t(Ii,tr)}}return ki!=2*jr[15]-1?0:un}(xe,Ye,St,ur,Br,on)}function Vt(){this.value=this.g=0}function Lt(){this.value=this.g=0}function cr(){this.G=ot(5,Vt),this.H=$e(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=ot(yo,Lt)}function vr(xe,Ye,St,ur){Ne(xe!=null),Ne(Ye!=null),Ne(2147483648>ur),xe.Ca=254,xe.I=0,xe.b=-8,xe.Ka=0,xe.oa=Ye,xe.pa=St,xe.Jd=Ye,xe.Yc=St+ur,xe.Zc=4<=ur?St+ur-4+1:St,xi(xe)}function yr(xe,Ye){for(var St=0;0<Ye--;)St|=Li(xe,128)<<Ye;return St}function Dr(xe,Ye){var St=yr(xe,Ye);return Di(xe)?-St:St}function Kn(xe,Ye,St,ur){var Br,on=0;for(Ne(xe!=null),Ne(Ye!=null),Ne(4294967288>ur),xe.Sb=ur,xe.Ra=0,xe.u=0,xe.h=0,4<ur&&(ur=4),Br=0;Br<ur;++Br)on+=Ye[St+Br]<<8*Br;xe.Ra=on,xe.bb=ur,xe.oa=Ye,xe.pa=St}function Dn(xe){for(;8<=xe.u&&xe.bb<xe.Sb;)xe.Ra>>>=8,xe.Ra+=xe.oa[xe.pa+xe.bb]<<ys-8>>>0,++xe.bb,xe.u-=8;zn(xe)&&(xe.h=1,xe.u=0)}function di(xe,Ye){if(Ne(0<=Ye),!xe.h&&Ye<=$s){var St=On(xe)&As[Ye];return xe.u+=Ye,Dn(xe),St}return xe.h=1,xe.u=0}function mn(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function Ur(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function On(xe){return xe.Ra>>>(xe.u&ys-1)>>>0}function zn(xe){return Ne(xe.bb<=xe.Sb),xe.h||xe.bb==xe.Sb&&xe.u>ys}function qn(xe,Ye){xe.u=Ye,xe.h=zn(xe)}function oi(xe){xe.u>=Fa&&(Ne(xe.u>=Fa),Dn(xe))}function xi(xe){Ne(xe!=null&&xe.oa!=null),xe.pa<xe.Zc?(xe.I=(xe.oa[xe.pa++]|xe.I<<8)>>>0,xe.b+=8):(Ne(xe!=null&&xe.oa!=null),xe.pa<xe.Yc?(xe.b+=8,xe.I=xe.oa[xe.pa++]|xe.I<<8):xe.Ka?xe.b=0:(xe.I<<=8,xe.b+=8,xe.Ka=1))}function Di(xe){return yr(xe,1)}function Li(xe,Ye){var St=xe.Ca;0>xe.b&&xi(xe);var ur=xe.b,Br=St*Ye>>>8,on=(xe.I>>>ur>Br)+0;for(on?(St-=Br,xe.I-=Br+1<<ur>>>0):St=Br+1,ur=St,Br=0;256<=ur;)Br+=8,ur>>=8;return ur=7^Br+ml[ur],xe.b-=ur,xe.Ca=(St<<ur)-1,on}function aa(xe,Ye,St){xe[Ye+0]=St>>24&255,xe[Ye+1]=St>>16&255,xe[Ye+2]=St>>8&255,xe[Ye+3]=St>>0&255}function ma(xe,Ye){return xe[Ye+0]<<0|xe[Ye+1]<<8}function na(xe,Ye){return ma(xe,Ye)|xe[Ye+2]<<16}function Aa(xe,Ye){return ma(xe,Ye)|ma(xe,Ye+2)<<16}function yi(xe,Ye){var St=1<<Ye;return Ne(xe!=null),Ne(0<Ye),xe.X=$e(St),xe.X==null?0:(xe.Mb=32-Ye,xe.Xa=Ye,1)}function Ln(xe,Ye){Ne(xe!=null),Ne(Ye!=null),Ne(xe.Xa==Ye.Xa),Ge(Ye.X,0,xe.X,0,1<<Ye.Xa)}function ji(){this.X=[],this.Xa=this.Mb=0}function ha(xe,Ye,St,ur){Ne(St!=null),Ne(ur!=null);var Br=St[0],on=ur[0];return Br==0&&(Br=(xe*on+Ye/2)/Ye),on==0&&(on=(Ye*Br+xe/2)/xe),0>=Br||0>=on?0:(St[0]=Br,ur[0]=on,1)}function ea(xe,Ye){return xe+(1<<Ye)-1>>>Ye}function ca(xe,Ye){return((4278255360&xe)+(4278255360&Ye)>>>0&4278255360)+((16711935&xe)+(16711935&Ye)>>>0&16711935)>>>0}function kr(xe,Ye){zt[Ye]=function(St,ur,Br,on,je,ae,Oe){var Ze;for(Ze=0;Ze<je;++Ze){var yt=zt[xe](ae[Oe+Ze-1],Br,on+Ze);ae[Oe+Ze]=ca(St[ur+Ze],yt)}}}function Sr(){this.ud=this.hd=this.jd=0}function yn(xe,Ye){return((4278124286&(xe^Ye))>>>1)+(xe&Ye)>>>0}function dr(xe){return 0<=xe&&256>xe?xe:0>xe?0:255<xe?255:void 0}function Rr(xe,Ye){return dr(xe+(xe-Ye+.5>>1))}function Gr(xe,Ye,St){return Math.abs(Ye-St)-Math.abs(xe-St)}function ln(xe,Ye,St,ur,Br,on,je){for(ur=on[je-1],St=0;St<Br;++St)on[je+St]=ur=ca(xe[Ye+St],ur)}function kn(xe,Ye,St,ur,Br){var on;for(on=0;on<St;++on){var je=xe[Ye+on],ae=je>>8&255,Oe=16711935&(Oe=(Oe=16711935&je)+((ae<<16)+ae));ur[Br+on]=(4278255360&je)+Oe>>>0}}function kt(xe,Ye){Ye.jd=xe>>0&255,Ye.hd=xe>>8&255,Ye.ud=xe>>16&255}function _r(xe,Ye,St,ur,Br,on){var je;for(je=0;je<ur;++je){var ae=Ye[St+je],Oe=ae>>>8,Ze=ae,yt=255&(yt=(yt=ae>>>16)+((xe.jd<<24>>24)*(Oe<<24>>24)>>>5));Ze=255&(Ze=(Ze=Ze+((xe.hd<<24>>24)*(Oe<<24>>24)>>>5))+((xe.ud<<24>>24)*(yt<<24>>24)>>>5)),Br[on+je]=(4278255360&ae)+(yt<<16)+Ze}}function Nr(xe,Ye,St,ur,Br){zt[Ye]=function(on,je,ae,Oe,Ze,yt,Xt,tr,or){for(Oe=Xt;Oe<tr;++Oe)for(Xt=0;Xt<or;++Xt)Ze[yt++]=Br(ae[ur(on[je++])])},zt[xe]=function(on,je,ae,Oe,Ze,yt,Xt){var tr=8>>on.b,or=on.Ea,Wr=on.K[0],un=on.w;if(8>tr)for(on=(1<<on.b)-1,un=(1<<tr)-1;je<ae;++je){var zr,jr=0;for(zr=0;zr<or;++zr)zr&on||(jr=ur(Oe[Ze++])),yt[Xt++]=Br(Wr[jr&un]),jr>>=tr}else zt["VP8LMapColor"+St](Oe,Ze,Wr,un,yt,Xt,je,ae,or)}}function Jr(xe,Ye,St,ur,Br){for(St=Ye+St;Ye<St;){var on=xe[Ye++];ur[Br++]=on>>16&255,ur[Br++]=on>>8&255,ur[Br++]=on>>0&255}}function xn(xe,Ye,St,ur,Br){for(St=Ye+St;Ye<St;){var on=xe[Ye++];ur[Br++]=on>>16&255,ur[Br++]=on>>8&255,ur[Br++]=on>>0&255,ur[Br++]=on>>24&255}}function Tn(xe,Ye,St,ur,Br){for(St=Ye+St;Ye<St;){var on=(je=xe[Ye++])>>16&240|je>>12&15,je=je>>0&240|je>>28&15;ur[Br++]=on,ur[Br++]=je}}function wn(xe,Ye,St,ur,Br){for(St=Ye+St;Ye<St;){var on=(je=xe[Ye++])>>16&248|je>>13&7,je=je>>5&224|je>>3&31;ur[Br++]=on,ur[Br++]=je}}function $n(xe,Ye,St,ur,Br){for(St=Ye+St;Ye<St;){var on=xe[Ye++];ur[Br++]=on>>0&255,ur[Br++]=on>>8&255,ur[Br++]=on>>16&255}}function Vn(xe,Ye,St,ur,Br,on){if(on==0)for(St=Ye+St;Ye<St;)aa(ur,((on=xe[Ye++])[0]>>24|on[1]>>8&65280|on[2]<<8&16711680|on[3]<<24)>>>0),Br+=32;else Ge(ur,Br,xe,Ye,St)}function mi(xe,Ye){zt[Ye][0]=zt[xe+"0"],zt[Ye][1]=zt[xe+"1"],zt[Ye][2]=zt[xe+"2"],zt[Ye][3]=zt[xe+"3"],zt[Ye][4]=zt[xe+"4"],zt[Ye][5]=zt[xe+"5"],zt[Ye][6]=zt[xe+"6"],zt[Ye][7]=zt[xe+"7"],zt[Ye][8]=zt[xe+"8"],zt[Ye][9]=zt[xe+"9"],zt[Ye][10]=zt[xe+"10"],zt[Ye][11]=zt[xe+"11"],zt[Ye][12]=zt[xe+"12"],zt[Ye][13]=zt[xe+"13"],zt[Ye][14]=zt[xe+"0"],zt[Ye][15]=zt[xe+"0"]}function Ri(xe){return xe==Lu||xe==Kl||xe==ql||xe==iu}function vi(){this.eb=[],this.size=this.A=this.fb=0}function Bi(){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 Gi(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new vi,this.f.kb=new Bi,this.sd=null}function ta(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Pi(){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 Ki(xe){return alert("todo:WebPSamplerProcessPlane"),xe.T}function Hi(xe,Ye){var St=xe.T,ur=Ye.ba.f.RGBA,Br=ur.eb,on=ur.fb+xe.ka*ur.A,je=ne[Ye.ba.S],ae=xe.y,Oe=xe.O,Ze=xe.f,yt=xe.N,Xt=xe.ea,tr=xe.W,or=Ye.cc,Wr=Ye.dc,un=Ye.Mc,zr=Ye.Nc,jr=xe.ka,sn=xe.ka+xe.T,vn=xe.U,Un=vn+1>>1;for(jr==0?je(ae,Oe,null,null,Ze,yt,Xt,tr,Ze,yt,Xt,tr,Br,on,null,null,vn):(je(Ye.ec,Ye.fc,ae,Oe,or,Wr,un,zr,Ze,yt,Xt,tr,Br,on-ur.A,Br,on,vn),++St);jr+2<sn;jr+=2)or=Ze,Wr=yt,un=Xt,zr=tr,yt+=xe.Rc,tr+=xe.Rc,on+=2*ur.A,je(ae,(Oe+=2*xe.fa)-xe.fa,ae,Oe,or,Wr,un,zr,Ze,yt,Xt,tr,Br,on-ur.A,Br,on,vn);return Oe+=xe.fa,xe.j+sn<xe.o?(Ge(Ye.ec,Ye.fc,ae,Oe,vn),Ge(Ye.cc,Ye.dc,Ze,yt,Un),Ge(Ye.Mc,Ye.Nc,Xt,tr,Un),St--):1&sn||je(ae,Oe,null,null,Ze,yt,Xt,tr,Ze,yt,Xt,tr,Br,on+ur.A,null,null,vn),St}function Qi(xe,Ye,St){var ur=xe.F,Br=[xe.J];if(ur!=null){var on=xe.U,je=Ye.ba.S,ae=je==El||je==ql;Ye=Ye.ba.f.RGBA;var Oe=[0],Ze=xe.ka;Oe[0]=xe.T,xe.Kb&&(Ze==0?--Oe[0]:(--Ze,Br[0]-=xe.width),xe.j+xe.ka+xe.T==xe.o&&(Oe[0]=xe.o-xe.j-Ze));var yt=Ye.eb;Ze=Ye.fb+Ze*Ye.A,xe=wl(ur,Br[0],xe.width,on,Oe,yt,Ze+(ae?0:3),Ye.A),Ne(St==Oe),xe&&Ri(je)&&Yl(yt,Ze,ae,on,Oe,Ye.A)}return 0}function da(xe){var Ye=xe.ma,St=Ye.ba.S,ur=11>St,Br=St==Pl||St==xl||St==El||St==pu||St==12||Ri(St);if(Ye.memory=null,Ye.Ib=null,Ye.Jb=null,Ye.Nd=null,!vs(Ye.Oa,xe,Br?11:12))return 0;if(Br&&Ri(St)&&Qe(),xe.da)alert("todo:use_scaling");else{if(ur){if(Ye.Ib=Ki,xe.Kb){if(St=xe.U+1>>1,Ye.memory=$e(xe.U+2*St),Ye.memory==null)return 0;Ye.ec=Ye.memory,Ye.fc=0,Ye.cc=Ye.ec,Ye.dc=Ye.fc+xe.U,Ye.Mc=Ye.cc,Ye.Nc=Ye.dc+St,Ye.Ib=Hi,Qe()}}else alert("todo:EmitYUV");Br&&(Ye.Jb=Qi,ur&&Ee())}if(ur&&!wi){for(xe=0;256>xe;++xe)sa[xe]=89858*(xe-128)+Kr>>br,La[xe]=-22014*(xe-128)+Kr,Ji[xe]=-45773*(xe-128),Wi[xe]=113618*(xe-128)+Kr>>br;for(xe=Zr;xe<Pn;++xe)Ye=76283*(xe-16)+Kr>>br,Xa[xe-Zr]=Lo(Ye,255),Ua[xe-Zr]=Lo(Ye+8>>4,15);wi=1}return 1}function Oa(xe){var Ye=xe.ma,St=xe.U,ur=xe.T;return Ne(!(1&xe.ka)),0>=St||0>=ur?0:(St=Ye.Ib(xe,Ye),Ye.Jb!=null&&Ye.Jb(xe,Ye,St),Ye.Dc+=St,1)}function ra(xe){xe.ma.memory=null}function Da(xe,Ye,St,ur){return di(xe,8)!=47?0:(Ye[0]=di(xe,14)+1,St[0]=di(xe,14)+1,ur[0]=di(xe,1),di(xe,3)!=0?0:!xe.h)}function Ra(xe,Ye){if(4>xe)return xe+1;var St=xe-2>>1;return(2+(1&xe)<<St)+di(Ye,St)+1}function va(xe,Ye){return 120<Ye?Ye-120:1<=(St=((St=gu[Ye-1])>>4)*xe+(8-(15&St)))?St:1;var St}function ga(xe,Ye,St){var ur=On(St),Br=xe[Ye+=255&ur].g-8;return 0<Br&&(qn(St,St.u+8),ur=On(St),Ye+=xe[Ye].value,Ye+=ur&(1<<Br)-1),qn(St,St.u+xe[Ye].g),xe[Ye].value}function _a(xe,Ye,St){return St.g+=xe.g,St.value+=xe.value<<Ye>>>0,Ne(8>=St.g),xe.g}function ya(xe,Ye,St){var ur=xe.xc;return Ne((Ye=ur==0?0:xe.vc[xe.md*(St>>ur)+(Ye>>ur)])<xe.Wb),xe.Ya[Ye]}function Ga(xe,Ye,St,ur){var Br=xe.ab,on=xe.c*Ye,je=xe.C;Ye=je+Ye;var ae=St,Oe=ur;for(ur=xe.Ta,St=xe.Ua;0<Br--;){var Ze=xe.gc[Br],yt=je,Xt=Ye,tr=ae,or=Oe,Wr=(Oe=ur,ae=St,Ze.Ea);switch(Ne(yt<Xt),Ne(Xt<=Ze.nc),Ze.hc){case 2:ws(tr,or,(Xt-yt)*Wr,Oe,ae);break;case 0:var un=yt,zr=Xt,jr=Oe,sn=ae,vn=(Zi=Ze).Ea;un==0&&(cl(tr,or,null,null,1,jr,sn),ln(tr,or+1,0,0,vn-1,jr,sn+1),or+=vn,sn+=vn,++un);for(var Un=1<<Zi.b,Ii=Un-1,ki=ea(vn,Zi.b),la=Zi.K,Zi=Zi.w+(un>>Zi.b)*ki;un<zr;){var Ya=la,wa=Zi,po=1;for(Ps(tr,or,jr,sn-vn,1,jr,sn);po<vn;){var Za=(po&~Ii)+Un;Za>vn&&(Za=vn),(0,Os[Ya[wa++]>>8&15])(tr,or+ +po,jr,sn+po-vn,Za-po,jr,sn+po),po=Za}or+=vn,sn+=vn,++un&Ii||(Zi+=ki)}Xt!=Ze.nc&&Ge(Oe,ae-Wr,Oe,ae+(Xt-yt-1)*Wr,Wr);break;case 1:for(Wr=tr,zr=or,vn=(tr=Ze.Ea)-(sn=tr&~(jr=(or=1<<Ze.b)-1)),un=ea(tr,Ze.b),Un=Ze.K,Ze=Ze.w+(yt>>Ze.b)*un;yt<Xt;){for(Ii=Un,ki=Ze,la=new Sr,Zi=zr+sn,Ya=zr+tr;zr<Zi;)kt(Ii[ki++],la),Vs(la,Wr,zr,or,Oe,ae),zr+=or,ae+=or;zr<Ya&&(kt(Ii[ki++],la),Vs(la,Wr,zr,vn,Oe,ae),zr+=vn,ae+=vn),++yt&jr||(Ze+=un)}break;case 3:if(tr==Oe&&or==ae&&0<Ze.b){for(zr=Oe,tr=Wr=ae+(Xt-yt)*Wr-(sn=(Xt-yt)*ea(Ze.Ea,Ze.b)),or=Oe,jr=ae,un=[],sn=(vn=sn)-1;0<=sn;--sn)un[sn]=or[jr+sn];for(sn=vn-1;0<=sn;--sn)zr[tr+sn]=un[sn];Ys(Ze,yt,Xt,Oe,Wr,Oe,ae)}else Ys(Ze,yt,Xt,tr,or,Oe,ae)}ae=ur,Oe=St}Oe!=St&&Ge(ur,St,ae,Oe,on)}function Ia(xe,Ye){var St=xe.V,ur=xe.Ba+xe.c*xe.C,Br=Ye-xe.C;if(Ne(Ye<=xe.l.o),Ne(16>=Br),0<Br){var on=xe.l,je=xe.Ta,ae=xe.Ua,Oe=on.width;if(Ga(xe,Br,St,ur),Br=ae=[ae],Ne((St=xe.C)<(ur=Ye)),Ne(on.v<on.va),ur>on.o&&(ur=on.o),St<on.j){var Ze=on.j-St;St=on.j,Br[0]+=Ze*Oe}if(St>=ur?St=0:(Br[0]+=4*on.v,on.ka=St-on.j,on.U=on.va-on.v,on.T=ur-St,St=1),St){if(ae=ae[0],11>(St=xe.ca).S){var yt=St.f.RGBA,Xt=(ur=St.S,Br=on.U,on=on.T,Ze=yt.eb,yt.A),tr=on;for(yt=yt.fb+xe.Ma*yt.A;0<tr--;){var or=je,Wr=ae,un=Br,zr=Ze,jr=yt;switch(ur){case $l:_l(or,Wr,un,zr,jr);break;case Pl:ol(or,Wr,un,zr,jr);break;case Lu:ol(or,Wr,un,zr,jr),Yl(zr,jr,0,un,1,0);break;case fu:$o(or,Wr,un,zr,jr);break;case xl:Vn(or,Wr,un,zr,jr,1);break;case Kl:Vn(or,Wr,un,zr,jr,1),Yl(zr,jr,0,un,1,0);break;case El:Vn(or,Wr,un,zr,jr,0);break;case ql:Vn(or,Wr,un,zr,jr,0),Yl(zr,jr,1,un,1,0);break;case pu:Ho(or,Wr,un,zr,jr);break;case iu:Ho(or,Wr,un,zr,jr),Zl(zr,jr,un,1,0);break;case mu:vo(or,Wr,un,zr,jr);break;default:Ne(0)}ae+=Oe,yt+=Xt}xe.Ma+=on}else alert("todo:EmitRescaledRowsYUVA");Ne(xe.Ma<=St.height)}}xe.C=Ye,Ne(xe.C<=xe.i)}function Wa(xe){var Ye;if(0<xe.ua)return 0;for(Ye=0;Ye<xe.Wb;++Ye){var St=xe.Ya[Ye].G,ur=xe.Ya[Ye].H;if(0<St[1][ur[1]+0].g||0<St[2][ur[2]+0].g||0<St[3][ur[3]+0].g)return 0}return 1}function no(xe,Ye,St,ur,Br,on){if(xe.Z!=0){var je=xe.qd,ae=xe.rd;for(Ne(J[xe.Z]!=null);Ye<St;++Ye)J[xe.Z](je,ae,ur,Br,ur,Br,on),je=ur,ae=Br,Br+=on;xe.qd=je,xe.rd=ae}}function io(xe,Ye){var St=xe.l.ma,ur=St.Z==0||St.Z==1?xe.l.j:xe.C;if(ur=xe.C<ur?ur:xe.C,Ne(Ye<=xe.l.o),Ye>ur){var Br=xe.l.width,on=St.ca,je=St.tb+Br*ur,ae=xe.V,Oe=xe.Ba+xe.c*ur,Ze=xe.gc;Ne(xe.ab==1),Ne(Ze[0].hc==3),Nl(Ze[0],ur,Ye,ae,Oe,on,je),no(St,ur,Ye,on,je,Br)}xe.C=xe.Ma=Ye}function uo(xe,Ye,St,ur,Br,on,je){var ae=xe.$/ur,Oe=xe.$%ur,Ze=xe.m,yt=xe.s,Xt=St+xe.$,tr=Xt;Br=St+ur*Br;var or=St+ur*on,Wr=280+yt.ua,un=xe.Pb?ae:16777216,zr=0<yt.ua?yt.Wa:null,jr=yt.wc,sn=Xt<or?ya(yt,Oe,ae):null;Ne(xe.C<on),Ne(or<=Br);var vn=!1;e:for(;;){for(;vn||Xt<or;){var Un=0;if(ae>=un){var Ii=Xt-St;Ne((un=xe).Pb),un.wd=un.m,un.xd=Ii,0<un.s.ua&&Ln(un.s.Wa,un.s.vb),un=ae+vu}if(Oe&jr||(sn=ya(yt,Oe,ae)),Ne(sn!=null),sn.Qb&&(Ye[Xt]=sn.qb,vn=!0),!vn)if(oi(Ze),sn.jc){Un=Ze,Ii=Ye;var ki=Xt,la=sn.pd[On(Un)&yo-1];Ne(sn.jc),256>la.g?(qn(Un,Un.u+la.g),Ii[ki]=la.value,Un=0):(qn(Un,Un.u+la.g-256),Ne(256<=la.value),Un=la.value),Un==0&&(vn=!0)}else Un=ga(sn.G[0],sn.H[0],Ze);if(Ze.h)break;if(vn||256>Un){if(!vn)if(sn.nd)Ye[Xt]=(sn.qb|Un<<8)>>>0;else{if(oi(Ze),vn=ga(sn.G[1],sn.H[1],Ze),oi(Ze),Ii=ga(sn.G[2],sn.H[2],Ze),ki=ga(sn.G[3],sn.H[3],Ze),Ze.h)break;Ye[Xt]=(ki<<24|vn<<16|Un<<8|Ii)>>>0}if(vn=!1,++Xt,++Oe>=ur&&(Oe=0,++ae,je!=null&&ae<=on&&!(ae%16)&&je(xe,ae),zr!=null))for(;tr<Xt;)Un=Ye[tr++],zr.X[(506832829*Un&4294967295)>>>zr.Mb]=Un}else if(280>Un){if(Un=Ra(Un-256,Ze),Ii=ga(sn.G[4],sn.H[4],Ze),oi(Ze),Ii=va(ur,Ii=Ra(Ii,Ze)),Ze.h)break;if(Xt-St<Ii||Br-Xt<Un)break e;for(ki=0;ki<Un;++ki)Ye[Xt+ki]=Ye[Xt+ki-Ii];for(Xt+=Un,Oe+=Un;Oe>=ur;)Oe-=ur,++ae,je!=null&&ae<=on&&!(ae%16)&&je(xe,ae);if(Ne(Xt<=Br),Oe&jr&&(sn=ya(yt,Oe,ae)),zr!=null)for(;tr<Xt;)Un=Ye[tr++],zr.X[(506832829*Un&4294967295)>>>zr.Mb]=Un}else{if(!(Un<Wr))break e;for(vn=Un-280,Ne(zr!=null);tr<Xt;)Un=Ye[tr++],zr.X[(506832829*Un&4294967295)>>>zr.Mb]=Un;Un=Xt,Ne(!(vn>>>(Ii=zr).Xa)),Ye[Un]=Ii.X[vn],vn=!0}vn||Ne(Ze.h==zn(Ze))}if(xe.Pb&&Ze.h&&Xt<Br)Ne(xe.m.h),xe.a=5,xe.m=xe.wd,xe.$=xe.xd,0<xe.s.ua&&Ln(xe.s.vb,xe.s.Wa);else{if(Ze.h)break e;je!=null&&je(xe,ae>on?on:ae),xe.a=0,xe.$=Xt-St}return 1}return xe.a=3,0}function $i(xe){Ne(xe!=null),xe.vc=null,xe.yc=null,xe.Ya=null;var Ye=xe.Wa;Ye!=null&&(Ye.X=null),xe.vb=null,Ne(xe!=null)}function mo(){var xe=new Do;return xe==null?null:(xe.a=0,xe.xb=H,mi("Predictor","VP8LPredictors"),mi("Predictor","VP8LPredictors_C"),mi("PredictorAdd","VP8LPredictorsAdd"),mi("PredictorAdd","VP8LPredictorsAdd_C"),ws=kn,Vs=_r,_l=Jr,ol=xn,Ho=Tn,vo=wn,$o=$n,zt.VP8LMapColor32b=Vl,zt.VP8LMapColor8b=hl,xe)}function Eo(xe,Ye,St,ur,Br){var on=1,je=[xe],ae=[Ye],Oe=ur.m,Ze=ur.s,yt=null,Xt=0;e:for(;;){if(St)for(;on&&di(Oe,1);){var tr=je,or=ae,Wr=ur,un=1,zr=Wr.m,jr=Wr.gc[Wr.ab],sn=di(zr,2);if(Wr.Oc&1<<sn)on=0;else{switch(Wr.Oc|=1<<sn,jr.hc=sn,jr.Ea=tr[0],jr.nc=or[0],jr.K=[null],++Wr.ab,Ne(4>=Wr.ab),sn){case 0:case 1:jr.b=di(zr,3)+2,un=Eo(ea(jr.Ea,jr.b),ea(jr.nc,jr.b),0,Wr,jr.K),jr.K=jr.K[0];break;case 3:var vn,Un=di(zr,8)+1,Ii=16<Un?0:4<Un?1:2<Un?2:3;if(tr[0]=ea(jr.Ea,Ii),jr.b=Ii,vn=un=Eo(Un,1,0,Wr,jr.K)){var ki,la=Un,Zi=jr,Ya=1<<(8>>Zi.b),wa=$e(Ya);if(wa==null)vn=0;else{var po=Zi.K[0],Za=Zi.w;for(wa[0]=Zi.K[0][0],ki=1;ki<1*la;++ki)wa[ki]=ca(po[Za+ki],wa[ki-1]);for(;ki<4*Ya;++ki)wa[ki]=0;Zi.K[0]=null,Zi.K[0]=wa,vn=1}}un=vn;break;case 2:break;default:Ne(0)}on=un}}if(je=je[0],ae=ae[0],on&&di(Oe,1)&&!(on=1<=(Xt=di(Oe,4))&&11>=Xt)){ur.a=3;break e}var Xo;if(Xo=on)t:{var ls,N,j,ie=ur,se=je,me=ae,ze=Xt,It=St,ir=ie.m,wr=ie.s,Or=[null],Bn=1,ti=0,Si=wu[ze];r:for(;;){if(It&&di(ir,1)){var Oi=di(ir,3)+2,oa=ea(se,Oi),Ta=ea(me,Oi),Ha=oa*Ta;if(!Eo(oa,Ta,0,ie,Or))break r;for(Or=Or[0],wr.xc=Oi,ls=0;ls<Ha;++ls){var Ba=Or[ls]>>8&65535;Or[ls]=Ba,Ba>=Bn&&(Bn=Ba+1)}}if(ir.h)break r;for(N=0;5>N;++N){var Na=Ru[N];!N&&0<ze&&(Na+=1<<ze),ti<Na&&(ti=Na)}var $a=ot(Bn*Si,Vt),fo=Bn,es=ot(fo,cr);if(es==null)var Bo=null;else Ne(65536>=fo),Bo=es;var Ss=$e(ti);if(Bo==null||Ss==null||$a==null){ie.a=1;break r}var Qs=$a;for(ls=j=0;ls<Bn;++ls){var gl=Bo[ls],il=gl.G,Fl=gl.H,Wl=0,Cl=1,zl=0;for(N=0;5>N;++N){Na=Ru[N],il[N]=Qs,Fl[N]=j,!N&&0<ze&&(Na+=1<<ze);i:{var Bl,Qa=Na,fl=ie,dl=Ss,Al=Qs,Bu=j,Fs=0,gs=fl.m,lu=di(gs,1);if(nt(dl,0,0,Qa),lu){var jl=di(gs,1)+1,Uu=di(gs,1),Eu=di(gs,Uu==0?1:8);dl[Eu]=1,jl==2&&(dl[Eu=di(gs,8)]=1);var uu=1}else{var ku=$e(19),Xl=di(gs,4)+4;if(19<Xl){fl.a=3;var Cu=0;break i}for(Bl=0;Bl<Xl;++Bl)ku[Jl[Bl]]=di(gs,3);var Vu=void 0,Ju=void 0,vc=fl,Ac=ku,tc=Qa,yc=dl,sc=0,ju=vc.m,hc=8,bc=ot(128,Vt);n:for(;Wt(bc,0,7,Ac,19);){if(di(ju,1)){var Cc=2+2*di(ju,3);if((Vu=2+di(ju,Cc))>tc)break n}else Vu=tc;for(Ju=0;Ju<tc&&Vu--;){oi(ju);var wc=bc[0+(127&On(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=Ql[fc],Sc=di(ju,au[fc])+lc;if(Ju+Sc>tc)break n;for(var Tc=Tu?hc:0;0<Sc--;)yc[Ju++]=Tc}}sc=1;break n}sc||(vc.a=3),uu=sc}(uu=uu&&!gs.h)&&(Fs=Wt(Al,Bu,8,dl,Qa)),uu&&Fs!=0?Cu=Fs:(fl.a=3,Cu=0)}if(Cu==0)break r;if(Cl&&Nu[N]==1&&(Cl=Qs[j].g==0),Wl+=Qs[j].g,j+=Cu,3>=N){var Gu,Hu=Ss[0];for(Gu=1;Gu<Na;++Gu)Ss[Gu]>Hu&&(Hu=Ss[Gu]);zl+=Hu}}if(gl.nd=Cl,gl.Qb=0,Cl&&(gl.qb=(il[3][Fl[3]+0].value<<24|il[1][Fl[1]+0].value<<16|il[2][Fl[2]+0].value)>>>0,Wl==0&&256>il[0][Fl[0]+0].value&&(gl.Qb=1,gl.qb+=il[0][Fl[0]+0].value<<8)),gl.jc=!gl.Qb&&6>zl,gl.jc){var Xu,Fu=gl;for(Xu=0;Xu<yo;++Xu){var yu=Xu,Ku=Fu.pd[yu],uc=Fu.G[0][Fu.H[0]+yu];256<=uc.value?(Ku.g=uc.g+256,Ku.value=uc.value):(Ku.g=0,Ku.value=0,yu>>=_a(uc,8,Ku),yu>>=_a(Fu.G[1][Fu.H[1]+yu],16,Ku),yu>>=_a(Fu.G[2][Fu.H[2]+yu],0,Ku),_a(Fu.G[3][Fu.H[3]+yu],24,Ku))}}}wr.vc=Or,wr.Wb=Bn,wr.Ya=Bo,wr.yc=$a,Xo=1;break t}Xo=0}if(!(on=Xo)){ur.a=3;break e}if(0<Xt){if(Ze.ua=1<<Xt,!yi(Ze.Wa,Xt)){ur.a=1,on=0;break e}}else Ze.ua=0;var cc=ur,xc=je,Ec=ae,pc=cc.s,mc=pc.xc;if(cc.c=xc,cc.i=Ec,pc.md=ea(xc,mc),pc.wc=mc==0?-1:(1<<mc)-1,St){ur.xb=K;break e}if((yt=$e(je*ae))==null){ur.a=1,on=0;break e}on=(on=uo(ur,yt,0,je,ae,ae,null))&&!Oe.h;break e}return on?(Br!=null?Br[0]=yt:(Ne(yt==null),Ne(St)),ur.$=0,St||$i(Ze)):$i(Ze),on}function ao(xe,Ye){var St=xe.c*xe.i,ur=St+Ye+16*Ye;return Ne(xe.c<=Ye),xe.V=$e(ur),xe.V==null?(xe.Ta=null,xe.Ua=0,xe.a=1,0):(xe.Ta=xe.V,xe.Ua=xe.Ba+St+Ye,1)}function Co(xe,Ye){var St=xe.C,ur=Ye-St,Br=xe.V,on=xe.Ba+xe.c*St;for(Ne(Ye<=xe.l.o);0<ur;){var je=16<ur?16:ur,ae=xe.l.ma,Oe=xe.l.width,Ze=Oe*je,yt=ae.ca,Xt=ae.tb+Oe*St,tr=xe.Ta,or=xe.Ua;Ga(xe,je,Br,on),Gl(tr,or,yt,Xt,Ze),no(ae,St,St+je,yt,Xt,Oe),ur-=je,Br+=je*xe.c,St+=je}Ne(St==Ye),xe.C=xe.Ma=Ye}function Ko(){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 Qo(){this.Fb=this.Bb=this.Cb=0,this.Zb=$e(4),this.Lb=$e(4)}function bo(){this.Yb=function(){var xe=[];return function Ye(St,ur,Br){for(var on=Br[ur],je=0;je<on&&(St.push(Br.length>ur+1?[]:0),!(Br.length<ur+1));je++)Ye(St[je],ur+1,Br)}(xe,0,[3,11]),xe}()}function xo(){this.jb=$e(3),this.Wc=Pt([4,8],bo),this.Xc=Pt([4,17],bo)}function ts(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new $e(4),this.od=new $e(4)}function ka(){this.ld=this.La=this.dd=this.tc=0}function Io(){this.Na=this.la=0}function Mo(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function is(){this.ad=$e(384),this.Za=0,this.Ob=$e(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function To(){this.uc=this.M=this.Nb=0,this.wa=Array(new ka),this.Y=0,this.ya=Array(new is),this.aa=0,this.l=new ho}function Zo(){this.y=$e(16),this.f=$e(8),this.ea=$e(8)}function Vo(){this.cb=this.a=0,this.sc="",this.m=new mn,this.Od=new Ko,this.Kc=new to,this.ed=new ts,this.Qa=new Qo,this.Ic=this.$c=this.Aa=0,this.D=new To,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=ot(8,mn),this.ia=0,this.pb=ot(4,Mo),this.Pa=new xo,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Zo),this.Hd=0,this.rb=Array(new Io),this.sb=0,this.wa=Array(new ka),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 is),this.L=this.aa=0,this.gd=Pt([4,2],ka),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 Lo(xe,Ye){return 0>xe?0:xe>Ye?Ye:xe}function ho(){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 ja(){var xe=new Vo;return xe!=null&&(xe.a=0,xe.sc="OK",xe.cb=0,xe.Xb=0,ru||(ru=Yr)),xe}function mt(xe,Ye,St){return xe.a==0&&(xe.a=Ye,xe.sc=St,xe.cb=0),0}function Cr(xe,Ye,St){return 3<=St&&xe[Ye+0]==157&&xe[Ye+1]==1&&xe[Ye+2]==42}function tn(xe,Ye){if(xe==null)return 0;if(xe.a=0,xe.sc="OK",Ye==null)return mt(xe,2,"null VP8Io passed to VP8GetHeaders()");var St=Ye.data,ur=Ye.w,Br=Ye.ha;if(4>Br)return mt(xe,7,"Truncated header.");var on=St[ur+0]|St[ur+1]<<8|St[ur+2]<<16,je=xe.Od;if(je.Rb=!(1&on),je.td=on>>1&7,je.yd=on>>4&1,je.ub=on>>5,3<je.td)return mt(xe,3,"Incorrect keyframe parameters.");if(!je.yd)return mt(xe,4,"Frame not displayable.");ur+=3,Br-=3;var ae=xe.Kc;if(je.Rb){if(7>Br)return mt(xe,7,"cannot parse picture header");if(!Cr(St,ur,Br))return mt(xe,3,"Bad code word");ae.c=16383&(St[ur+4]<<8|St[ur+3]),ae.Td=St[ur+4]>>6,ae.i=16383&(St[ur+6]<<8|St[ur+5]),ae.Ud=St[ur+6]>>6,ur+=7,Br-=7,xe.za=ae.c+15>>4,xe.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,nt((on=xe.Pa).jb,0,255,on.jb.length),Ne((on=xe.Qa)!=null),on.Cb=0,on.Bb=0,on.Fb=1,nt(on.Zb,0,0,on.Zb.length),nt(on.Lb,0,0,on.Lb)}if(je.ub>Br)return mt(xe,7,"bad partition length");vr(on=xe.m,St,ur,je.ub),ur+=je.ub,Br-=je.ub,je.Rb&&(ae.Ld=Di(on),ae.Kd=Di(on)),ae=xe.Qa;var Oe,Ze=xe.Pa;if(Ne(on!=null),Ne(ae!=null),ae.Cb=Di(on),ae.Cb){if(ae.Bb=Di(on),Di(on)){for(ae.Fb=Di(on),Oe=0;4>Oe;++Oe)ae.Zb[Oe]=Di(on)?Dr(on,7):0;for(Oe=0;4>Oe;++Oe)ae.Lb[Oe]=Di(on)?Dr(on,6):0}if(ae.Bb)for(Oe=0;3>Oe;++Oe)Ze.jb[Oe]=Di(on)?yr(on,8):255}else ae.Bb=0;if(on.Ka)return mt(xe,3,"cannot parse segment header");if((ae=xe.ed).zd=Di(on),ae.Tb=yr(on,6),ae.wb=yr(on,3),ae.Pc=Di(on),ae.Pc&&Di(on)){for(Ze=0;4>Ze;++Ze)Di(on)&&(ae.vd[Ze]=Dr(on,6));for(Ze=0;4>Ze;++Ze)Di(on)&&(ae.od[Ze]=Dr(on,6))}if(xe.L=ae.Tb==0?0:ae.zd?1:2,on.Ka)return mt(xe,3,"cannot parse filter header");var yt=Br;if(Br=Oe=ur,ur=Oe+yt,ae=yt,xe.Xb=(1<<yr(xe.m,2))-1,yt<3*(Ze=xe.Xb))St=7;else{for(Oe+=3*Ze,ae-=3*Ze,yt=0;yt<Ze;++yt){var Xt=St[Br+0]|St[Br+1]<<8|St[Br+2]<<16;Xt>ae&&(Xt=ae),vr(xe.Jc[+yt],St,Oe,Xt),Oe+=Xt,ae-=Xt,Br+=3}vr(xe.Jc[+Ze],St,Oe,ae),St=Oe<ur?0:5}if(St!=0)return mt(xe,St,"cannot parse partitions");for(St=yr(Oe=xe.m,7),Br=Di(Oe)?Dr(Oe,4):0,ur=Di(Oe)?Dr(Oe,4):0,ae=Di(Oe)?Dr(Oe,4):0,Ze=Di(Oe)?Dr(Oe,4):0,Oe=Di(Oe)?Dr(Oe,4):0,yt=xe.Qa,Xt=0;4>Xt;++Xt){if(yt.Cb){var tr=yt.Zb[Xt];yt.Fb||(tr+=St)}else{if(0<Xt){xe.pb[Xt]=xe.pb[0];continue}tr=St}var or=xe.pb[Xt];or.Sc[0]=ul[Lo(tr+Br,127)],or.Sc[1]=Ol[Lo(tr+0,127)],or.Eb[0]=2*ul[Lo(tr+ur,127)],or.Eb[1]=101581*Ol[Lo(tr+ae,127)]>>16,8>or.Eb[1]&&(or.Eb[1]=8),or.Qc[0]=ul[Lo(tr+Ze,117)],or.Qc[1]=Ol[Lo(tr+Oe,127)],or.lc=tr+Oe}if(!je.Rb)return mt(xe,4,"Not a key frame.");for(Di(on),je=xe.Pa,St=0;4>St;++St){for(Br=0;8>Br;++Br)for(ur=0;3>ur;++ur)for(ae=0;11>ae;++ae)Ze=Li(on,xu[St][Br][ur][ae])?yr(on,8):ou[St][Br][ur][ae],je.Wc[St][Br].Yb[ur][ae]=Ze;for(Br=0;17>Br;++Br)je.Xc[St][Br]=je.Wc[St][Au[Br]]}return xe.kc=Di(on),xe.kc&&(xe.Bd=yr(on,8)),xe.cb=1}function Yr(xe,Ye,St,ur,Br,on,je){var ae=Ye[Br].Yb[St];for(St=0;16>Br;++Br){if(!Li(xe,ae[St+0]))return Br;for(;!Li(xe,ae[St+1]);)if(ae=Ye[++Br].Yb[0],St=0,Br==16)return 16;var Oe=Ye[Br+1].Yb;if(Li(xe,ae[St+2])){var Ze=xe,yt=0;if(Li(Ze,(tr=ae)[(Xt=St)+3]))if(Li(Ze,tr[Xt+6])){for(ae=0,Xt=2*(yt=Li(Ze,tr[Xt+8]))+(tr=Li(Ze,tr[Xt+9+yt])),yt=0,tr=Du[Xt];tr[ae];++ae)yt+=yt+Li(Ze,tr[ae]);yt+=3+(8<<Xt)}else Li(Ze,tr[Xt+7])?(yt=7+2*Li(Ze,165),yt+=Li(Ze,145)):yt=5+Li(Ze,159);else yt=Li(Ze,tr[Xt+4])?3+Li(Ze,tr[Xt+5]):2;ae=Oe[2]}else yt=1,ae=Oe[1];Oe=je+Su[Br],0>(Ze=xe).b&&xi(Ze);var Xt,tr=Ze.b,or=(Xt=Ze.Ca>>1)-(Ze.I>>tr)>>31;--Ze.b,Ze.Ca+=or,Ze.Ca|=1,Ze.I-=(Xt+1&or)<<tr,on[Oe]=((yt^or)-or)*ur[(0<Br)+0]}return 16}function Xn(xe){var Ye=xe.rb[xe.sb-1];Ye.la=0,Ye.Na=0,nt(xe.zc,0,0,xe.zc.length),xe.ja=0}function hn(xe,Ye){if(xe==null)return 0;if(Ye==null)return mt(xe,2,"NULL VP8Io parameter in VP8Decode().");if(!xe.cb&&!tn(xe,Ye))return 0;if(Ne(xe.cb),Ye.ac==null||Ye.ac(Ye)){Ye.ob&&(xe.L=0);var St=_o[xe.L];if(xe.L==2?(xe.yb=0,xe.zb=0):(xe.yb=Ye.v-St>>4,xe.zb=Ye.j-St>>4,0>xe.yb&&(xe.yb=0),0>xe.zb&&(xe.zb=0)),xe.Va=Ye.o+15+St>>4,xe.Hb=Ye.va+15+St>>4,xe.Hb>xe.za&&(xe.Hb=xe.za),xe.Va>xe.Ub&&(xe.Va=xe.Ub),0<xe.L){var ur=xe.ed;for(St=0;4>St;++St){var Br;if(xe.Qa.Cb){var on=xe.Qa.Lb[St];xe.Qa.Fb||(on+=ur.Tb)}else on=ur.Tb;for(Br=0;1>=Br;++Br){var je=xe.gd[St][Br],ae=on;if(ur.Pc&&(ae+=ur.vd[0],Br&&(ae+=ur.od[0])),0<(ae=0>ae?0:63<ae?63:ae)){var Oe=ae;0<ur.wb&&(Oe=4<ur.wb?Oe>>2:Oe>>1)>9-ur.wb&&(Oe=9-ur.wb),1>Oe&&(Oe=1),je.dd=Oe,je.tc=2*ae+Oe,je.ld=40<=ae?2:15<=ae?1:0}else je.tc=0;je.La=Br}}}St=0}else mt(xe,6,"Frame setup failed"),St=xe.a;if(St=St==0){if(St){xe.$c=0,0<xe.Aa||(xe.Ic=ds);e:{St=xe.Ic,ur=4*(Oe=xe.za);var Ze=32*Oe,yt=Oe+1,Xt=0<xe.L?Oe*(0<xe.Aa?2:1):0,tr=(xe.Aa==2?2:1)*Oe;if((je=ur+832+(Br=3*(16*St+_o[xe.L])/2*Ze)+(on=xe.Fa!=null&&0<xe.Fa.length?xe.Kc.c*xe.Kc.i:0))!=je)St=0;else{if(je>xe.Vb){if(xe.Vb=0,xe.Ec=$e(je),xe.Fc=0,xe.Ec==null){St=mt(xe,1,"no memory during frame initialization.");break e}xe.Vb=je}je=xe.Ec,ae=xe.Fc,xe.Ac=je,xe.Bc=ae,ae+=ur,xe.Gd=ot(Ze,Zo),xe.Hd=0,xe.rb=ot(yt+1,Io),xe.sb=1,xe.wa=Xt?ot(Xt,ka):null,xe.Y=0,xe.D.Nb=0,xe.D.wa=xe.wa,xe.D.Y=xe.Y,0<xe.Aa&&(xe.D.Y+=Oe),Ne(!0),xe.oc=je,xe.pc=ae,ae+=832,xe.ya=ot(tr,is),xe.aa=0,xe.D.ya=xe.ya,xe.D.aa=xe.aa,xe.Aa==2&&(xe.D.aa+=Oe),xe.R=16*Oe,xe.B=8*Oe,Oe=(Ze=_o[xe.L])*xe.R,Ze=Ze/2*xe.B,xe.sa=je,xe.ta=ae+Oe,xe.qa=xe.sa,xe.ra=xe.ta+16*St*xe.R+Ze,xe.Ha=xe.qa,xe.Ia=xe.ra+8*St*xe.B+Ze,xe.$c=0,ae+=Br,xe.mb=on?je:null,xe.nb=on?ae:null,Ne(ae+on<=xe.Fc+xe.Vb),Xn(xe),nt(xe.Ac,xe.Bc,0,ur),St=1}}if(St){if(Ye.ka=0,Ye.y=xe.sa,Ye.O=xe.ta,Ye.f=xe.qa,Ye.N=xe.ra,Ye.ea=xe.Ha,Ye.Vd=xe.Ia,Ye.fa=xe.R,Ye.Rc=xe.B,Ye.F=null,Ye.J=0,!hu){for(St=-255;255>=St;++St)tu[255+St]=0>St?-St:St;for(St=-1020;1020>=St;++St)Iu[1020+St]=-128>St?-128:127<St?127:St;for(St=-112;112>=St;++St)bu[112+St]=-16>St?-16:15<St?15:St;for(St=-255;510>=St;++St)du[255+St]=0>St?0:255<St?255:St;hu=1}ms=Ti,_s=ui,Is=ai,Rs=Ei,nl=gi,qo=si,Il=yl,Tl=Ks,Ul=Ms,Dl=Zs,Rl=Ws,Hl=ps,sl=zs,Gs=Es,ll=Jo,Xs=ks,bl=as,kl=fs,q[0]=Ka,q[1]=ia,q[2]=Sa,q[3]=Ea,q[4]=so,q[5]=wo,q[6]=lo,q[7]=No,q[8]=hs,q[9]=cs,ve[0]=Ma,ve[1]=fa,ve[2]=za,ve[3]=Ca,ve[4]=Pa,ve[5]=Wo,ve[6]=Oo,L[0]=co,L[1]=Fi,L[2]=Bs,L[3]=rs,L[4]=eo,L[5]=oo,L[6]=ss,St=1}else St=0}St&&(St=function(or,Wr){for(or.M=0;or.M<or.Va;++or.M){var un,zr=or.Jc[or.M&or.Xb],jr=or.m,sn=or;for(un=0;un<sn.za;++un){var vn=jr,Un=sn,Ii=Un.Ac,ki=Un.Bc+4*un,la=Un.zc,Zi=Un.ya[Un.aa+un];if(Un.Qa.Bb?Zi.$b=Li(vn,Un.Pa.jb[0])?2+Li(vn,Un.Pa.jb[2]):Li(vn,Un.Pa.jb[1]):Zi.$b=0,Un.kc&&(Zi.Ad=Li(vn,Un.Bd)),Zi.Za=!Li(vn,145)+0,Zi.Za){var Ya=Zi.Ob,wa=0;for(Un=0;4>Un;++Un){var po,Za=la[0+Un];for(po=0;4>po;++po){Za=su[Ii[ki+po]][Za];for(var Xo=cu[Li(vn,Za[0])];0<Xo;)Xo=cu[2*Xo+Li(vn,Za[Xo])];Za=-Xo,Ii[ki+po]=Za}Ge(Ya,wa,Ii,ki,4),wa+=4,la[0+Un]=Za}}else Za=Li(vn,156)?Li(vn,128)?1:3:Li(vn,163)?2:0,Zi.Ob[0]=Za,nt(Ii,ki,Za,4),nt(la,0,Za,4);Zi.Dd=Li(vn,142)?Li(vn,114)?Li(vn,183)?1:3:2:0}if(sn.m.Ka)return mt(or,7,"Premature end-of-partition0 encountered.");for(;or.ja<or.za;++or.ja){if(sn=zr,vn=(jr=or).rb[jr.sb-1],Ii=jr.rb[jr.sb+jr.ja],un=jr.ya[jr.aa+jr.ja],ki=jr.kc?un.Ad:0)vn.la=Ii.la=0,un.Za||(vn.Na=Ii.Na=0),un.Hc=0,un.Gc=0,un.ia=0;else{var ls,N;if(vn=Ii,Ii=sn,ki=jr.Pa.Xc,la=jr.ya[jr.aa+jr.ja],Zi=jr.pb[la.$b],Un=la.ad,Ya=0,wa=jr.rb[jr.sb-1],Za=po=0,nt(Un,Ya,0,384),la.Za)var j=0,ie=ki[3];else{Xo=$e(16);var se=vn.Na+wa.Na;if(se=ru(Ii,ki[1],se,Zi.Eb,0,Xo,0),vn.Na=wa.Na=(0<se)+0,1<se)ms(Xo,0,Un,Ya);else{var me=Xo[0]+3>>3;for(Xo=0;256>Xo;Xo+=16)Un[Ya+Xo]=me}j=1,ie=ki[0]}var ze=15&vn.la,It=15&wa.la;for(Xo=0;4>Xo;++Xo){var ir=1&It;for(me=N=0;4>me;++me)ze=ze>>1|(ir=(se=ru(Ii,ie,se=ir+(1&ze),Zi.Sc,j,Un,Ya))>j)<<7,N=N<<2|(3<se?3:1<se?2:Un[Ya+0]!=0),Ya+=16;ze>>=4,It=It>>1|ir<<7,po=(po<<8|N)>>>0}for(ie=ze,j=It>>4,ls=0;4>ls;ls+=2){for(N=0,ze=vn.la>>4+ls,It=wa.la>>4+ls,Xo=0;2>Xo;++Xo){for(ir=1&It,me=0;2>me;++me)se=ir+(1&ze),ze=ze>>1|(ir=0<(se=ru(Ii,ki[2],se,Zi.Qc,0,Un,Ya)))<<3,N=N<<2|(3<se?3:1<se?2:Un[Ya+0]!=0),Ya+=16;ze>>=2,It=It>>1|ir<<5}Za|=N<<4*ls,ie|=ze<<4<<ls,j|=(240&It)<<ls}vn.la=ie,wa.la=j,la.Hc=po,la.Gc=Za,la.ia=43690&Za?0:Zi.ia,ki=!(po|Za)}if(0<jr.L&&(jr.wa[jr.Y+jr.ja]=jr.gd[un.$b][un.Za],jr.wa[jr.Y+jr.ja].La|=!ki),sn.Ka)return mt(or,7,"Premature end-of-file encountered.")}if(Xn(or),jr=Wr,sn=1,un=(zr=or).D,vn=0<zr.L&&zr.M>=zr.zb&&zr.M<=zr.Va,zr.Aa==0)e:{if(un.M=zr.M,un.uc=vn,jo(zr,un),sn=1,un=(N=zr.D).Nb,vn=(Za=_o[zr.L])*zr.R,Ii=Za/2*zr.B,Xo=16*un*zr.R,me=8*un*zr.B,ki=zr.sa,la=zr.ta-vn+Xo,Zi=zr.qa,Un=zr.ra-Ii+me,Ya=zr.Ha,wa=zr.Ia-Ii+me,It=(ze=N.M)==0,po=ze>=zr.Va-1,zr.Aa==2&&jo(zr,N),N.uc)for(ir=(se=zr).D.M,Ne(se.D.uc),N=se.yb;N<se.Hb;++N){j=N,ie=ir;var wr=(Or=(Na=se).D).Nb;ls=Na.R;var Or=Or.wa[Or.Y+j],Bn=Na.sa,ti=Na.ta+16*wr*ls+16*j,Si=Or.dd,Oi=Or.tc;if(Oi!=0)if(Ne(3<=Oi),Na.L==1)0<j&&Xs(Bn,ti,ls,Oi+4),Or.La&&kl(Bn,ti,ls,Oi),0<ie&&ll(Bn,ti,ls,Oi+4),Or.La&&bl(Bn,ti,ls,Oi);else{var oa=Na.B,Ta=Na.qa,Ha=Na.ra+8*wr*oa+8*j,Ba=Na.Ha,Na=Na.Ia+8*wr*oa+8*j;wr=Or.ld,0<j&&(Tl(Bn,ti,ls,Oi+4,Si,wr),Dl(Ta,Ha,Ba,Na,oa,Oi+4,Si,wr)),Or.La&&(Hl(Bn,ti,ls,Oi,Si,wr),Gs(Ta,Ha,Ba,Na,oa,Oi,Si,wr)),0<ie&&(Il(Bn,ti,ls,Oi+4,Si,wr),Ul(Ta,Ha,Ba,Na,oa,Oi+4,Si,wr)),Or.La&&(Rl(Bn,ti,ls,Oi,Si,wr),sl(Ta,Ha,Ba,Na,oa,Oi,Si,wr))}}if(zr.ia&&alert("todo:DitherRow"),jr.put!=null){if(N=16*ze,ze=16*(ze+1),It?(jr.y=zr.sa,jr.O=zr.ta+Xo,jr.f=zr.qa,jr.N=zr.ra+me,jr.ea=zr.Ha,jr.W=zr.Ia+me):(N-=Za,jr.y=ki,jr.O=la,jr.f=Zi,jr.N=Un,jr.ea=Ya,jr.W=wa),po||(ze-=Za),ze>jr.o&&(ze=jr.o),jr.F=null,jr.J=null,zr.Fa!=null&&0<zr.Fa.length&&N<ze&&(jr.J=sr(zr,jr,N,ze-N),jr.F=zr.mb,jr.F==null&&jr.F.length==0)){sn=mt(zr,3,"Could not decode alpha data.");break e}N<jr.j&&(Za=jr.j-N,N=jr.j,Ne(!(1&Za)),jr.O+=zr.R*Za,jr.N+=zr.B*(Za>>1),jr.W+=zr.B*(Za>>1),jr.F!=null&&(jr.J+=jr.width*Za)),N<ze&&(jr.O+=jr.v,jr.N+=jr.v>>1,jr.W+=jr.v>>1,jr.F!=null&&(jr.J+=jr.v),jr.ka=N-jr.j,jr.U=jr.va-jr.v,jr.T=ze-N,sn=jr.put(jr))}un+1!=zr.Ic||po||(Ge(zr.sa,zr.ta-vn,ki,la+16*zr.R,vn),Ge(zr.qa,zr.ra-Ii,Zi,Un+8*zr.B,Ii),Ge(zr.Ha,zr.Ia-Ii,Ya,wa+8*zr.B,Ii))}if(!sn)return mt(or,6,"Output aborted.")}return 1}(xe,Ye)),Ye.bc!=null&&Ye.bc(Ye),St&=1}return St?(xe.cb=0,St):0}function Xr(xe,Ye,St,ur,Br){Br=xe[Ye+St+32*ur]+(Br>>3),xe[Ye+St+32*ur]=-256&Br?0>Br?0:255:Br}function ni(xe,Ye,St,ur,Br,on){Xr(xe,Ye,0,St,ur+Br),Xr(xe,Ye,1,St,ur+on),Xr(xe,Ye,2,St,ur-on),Xr(xe,Ye,3,St,ur-Br)}function nn(xe){return(20091*xe>>16)+xe}function Wn(xe,Ye,St,ur){var Br,on=0,je=$e(16);for(Br=0;4>Br;++Br){var ae=xe[Ye+0]+xe[Ye+8],Oe=xe[Ye+0]-xe[Ye+8],Ze=(35468*xe[Ye+4]>>16)-nn(xe[Ye+12]),yt=nn(xe[Ye+4])+(35468*xe[Ye+12]>>16);je[on+0]=ae+yt,je[on+1]=Oe+Ze,je[on+2]=Oe-Ze,je[on+3]=ae-yt,on+=4,Ye++}for(Br=on=0;4>Br;++Br)ae=(xe=je[on+0]+4)+je[on+8],Oe=xe-je[on+8],Ze=(35468*je[on+4]>>16)-nn(je[on+12]),Xr(St,ur,0,0,ae+(yt=nn(je[on+4])+(35468*je[on+12]>>16))),Xr(St,ur,1,0,Oe+Ze),Xr(St,ur,2,0,Oe-Ze),Xr(St,ur,3,0,ae-yt),on++,ur+=32}function si(xe,Ye,St,ur){var Br=xe[Ye+0]+4,on=35468*xe[Ye+4]>>16,je=nn(xe[Ye+4]),ae=35468*xe[Ye+1]>>16;ni(St,ur,0,Br+je,xe=nn(xe[Ye+1]),ae),ni(St,ur,1,Br+on,xe,ae),ni(St,ur,2,Br-on,xe,ae),ni(St,ur,3,Br-je,xe,ae)}function ui(xe,Ye,St,ur,Br){Wn(xe,Ye,St,ur),Br&&Wn(xe,Ye+16,St,ur+4)}function ai(xe,Ye,St,ur){_s(xe,Ye+0,St,ur,1),_s(xe,Ye+32,St,ur+128,1)}function Ei(xe,Ye,St,ur){var Br;for(xe=xe[Ye+0]+4,Br=0;4>Br;++Br)for(Ye=0;4>Ye;++Ye)Xr(St,ur,Ye,Br,xe)}function gi(xe,Ye,St,ur){xe[Ye+0]&&Rs(xe,Ye+0,St,ur),xe[Ye+16]&&Rs(xe,Ye+16,St,ur+4),xe[Ye+32]&&Rs(xe,Ye+32,St,ur+128),xe[Ye+48]&&Rs(xe,Ye+48,St,ur+128+4)}function Ti(xe,Ye,St,ur){var Br,on=$e(16);for(Br=0;4>Br;++Br){var je=xe[Ye+0+Br]+xe[Ye+12+Br],ae=xe[Ye+4+Br]+xe[Ye+8+Br],Oe=xe[Ye+4+Br]-xe[Ye+8+Br],Ze=xe[Ye+0+Br]-xe[Ye+12+Br];on[0+Br]=je+ae,on[8+Br]=je-ae,on[4+Br]=Ze+Oe,on[12+Br]=Ze-Oe}for(Br=0;4>Br;++Br)je=(xe=on[0+4*Br]+3)+on[3+4*Br],ae=on[1+4*Br]+on[2+4*Br],Oe=on[1+4*Br]-on[2+4*Br],Ze=xe-on[3+4*Br],St[ur+0]=je+ae>>3,St[ur+16]=Ze+Oe>>3,St[ur+32]=je-ae>>3,St[ur+48]=Ze-Oe>>3,ur+=64}function _i(xe,Ye,St){var ur,Br=Ye-32,on=Ml,je=255-xe[Br-1];for(ur=0;ur<St;++ur){var ae,Oe=on,Ze=je+xe[Ye-1];for(ae=0;ae<St;++ae)xe[Ye+ae]=Oe[Ze+xe[Br+ae]];Ye+=32}}function ia(xe,Ye){_i(xe,Ye,4)}function Fi(xe,Ye){_i(xe,Ye,8)}function fa(xe,Ye){_i(xe,Ye,16)}function za(xe,Ye){var St;for(St=0;16>St;++St)Ge(xe,Ye+32*St,xe,Ye-32,16)}function Ca(xe,Ye){var St;for(St=16;0<St;--St)nt(xe,Ye,xe[Ye-1],16),Ye+=32}function xa(xe,Ye,St){var ur;for(ur=0;16>ur;++ur)nt(Ye,St+32*ur,xe,16)}function Ma(xe,Ye){var St,ur=16;for(St=0;16>St;++St)ur+=xe[Ye-1+32*St]+xe[Ye+St-32];xa(ur>>5,xe,Ye)}function Pa(xe,Ye){var St,ur=8;for(St=0;16>St;++St)ur+=xe[Ye-1+32*St];xa(ur>>4,xe,Ye)}function Wo(xe,Ye){var St,ur=8;for(St=0;16>St;++St)ur+=xe[Ye+St-32];xa(ur>>4,xe,Ye)}function Oo(xe,Ye){xa(128,xe,Ye)}function pa(xe,Ye,St){return xe+2*Ye+St+2>>2}function Sa(xe,Ye){var St,ur=Ye-32;for(ur=new Uint8Array([pa(xe[ur-1],xe[ur+0],xe[ur+1]),pa(xe[ur+0],xe[ur+1],xe[ur+2]),pa(xe[ur+1],xe[ur+2],xe[ur+3]),pa(xe[ur+2],xe[ur+3],xe[ur+4])]),St=0;4>St;++St)Ge(xe,Ye+32*St,ur,0,ur.length)}function Ea(xe,Ye){var St=xe[Ye-1],ur=xe[Ye-1+32],Br=xe[Ye-1+64],on=xe[Ye-1+96];aa(xe,Ye+0,16843009*pa(xe[Ye-1-32],St,ur)),aa(xe,Ye+32,16843009*pa(St,ur,Br)),aa(xe,Ye+64,16843009*pa(ur,Br,on)),aa(xe,Ye+96,16843009*pa(Br,on,on))}function Ka(xe,Ye){var St,ur=4;for(St=0;4>St;++St)ur+=xe[Ye+St-32]+xe[Ye-1+32*St];for(ur>>=3,St=0;4>St;++St)nt(xe,Ye+32*St,ur,4)}function so(xe,Ye){var St=xe[Ye-1+0],ur=xe[Ye-1+32],Br=xe[Ye-1+64],on=xe[Ye-1-32],je=xe[Ye+0-32],ae=xe[Ye+1-32],Oe=xe[Ye+2-32],Ze=xe[Ye+3-32];xe[Ye+0+96]=pa(ur,Br,xe[Ye-1+96]),xe[Ye+1+96]=xe[Ye+0+64]=pa(St,ur,Br),xe[Ye+2+96]=xe[Ye+1+64]=xe[Ye+0+32]=pa(on,St,ur),xe[Ye+3+96]=xe[Ye+2+64]=xe[Ye+1+32]=xe[Ye+0+0]=pa(je,on,St),xe[Ye+3+64]=xe[Ye+2+32]=xe[Ye+1+0]=pa(ae,je,on),xe[Ye+3+32]=xe[Ye+2+0]=pa(Oe,ae,je),xe[Ye+3+0]=pa(Ze,Oe,ae)}function lo(xe,Ye){var St=xe[Ye+1-32],ur=xe[Ye+2-32],Br=xe[Ye+3-32],on=xe[Ye+4-32],je=xe[Ye+5-32],ae=xe[Ye+6-32],Oe=xe[Ye+7-32];xe[Ye+0+0]=pa(xe[Ye+0-32],St,ur),xe[Ye+1+0]=xe[Ye+0+32]=pa(St,ur,Br),xe[Ye+2+0]=xe[Ye+1+32]=xe[Ye+0+64]=pa(ur,Br,on),xe[Ye+3+0]=xe[Ye+2+32]=xe[Ye+1+64]=xe[Ye+0+96]=pa(Br,on,je),xe[Ye+3+32]=xe[Ye+2+64]=xe[Ye+1+96]=pa(on,je,ae),xe[Ye+3+64]=xe[Ye+2+96]=pa(je,ae,Oe),xe[Ye+3+96]=pa(ae,Oe,Oe)}function wo(xe,Ye){var St=xe[Ye-1+0],ur=xe[Ye-1+32],Br=xe[Ye-1+64],on=xe[Ye-1-32],je=xe[Ye+0-32],ae=xe[Ye+1-32],Oe=xe[Ye+2-32],Ze=xe[Ye+3-32];xe[Ye+0+0]=xe[Ye+1+64]=on+je+1>>1,xe[Ye+1+0]=xe[Ye+2+64]=je+ae+1>>1,xe[Ye+2+0]=xe[Ye+3+64]=ae+Oe+1>>1,xe[Ye+3+0]=Oe+Ze+1>>1,xe[Ye+0+96]=pa(Br,ur,St),xe[Ye+0+64]=pa(ur,St,on),xe[Ye+0+32]=xe[Ye+1+96]=pa(St,on,je),xe[Ye+1+32]=xe[Ye+2+96]=pa(on,je,ae),xe[Ye+2+32]=xe[Ye+3+96]=pa(je,ae,Oe),xe[Ye+3+32]=pa(ae,Oe,Ze)}function No(xe,Ye){var St=xe[Ye+0-32],ur=xe[Ye+1-32],Br=xe[Ye+2-32],on=xe[Ye+3-32],je=xe[Ye+4-32],ae=xe[Ye+5-32],Oe=xe[Ye+6-32],Ze=xe[Ye+7-32];xe[Ye+0+0]=St+ur+1>>1,xe[Ye+1+0]=xe[Ye+0+64]=ur+Br+1>>1,xe[Ye+2+0]=xe[Ye+1+64]=Br+on+1>>1,xe[Ye+3+0]=xe[Ye+2+64]=on+je+1>>1,xe[Ye+0+32]=pa(St,ur,Br),xe[Ye+1+32]=xe[Ye+0+96]=pa(ur,Br,on),xe[Ye+2+32]=xe[Ye+1+96]=pa(Br,on,je),xe[Ye+3+32]=xe[Ye+2+96]=pa(on,je,ae),xe[Ye+3+64]=pa(je,ae,Oe),xe[Ye+3+96]=pa(ae,Oe,Ze)}function cs(xe,Ye){var St=xe[Ye-1+0],ur=xe[Ye-1+32],Br=xe[Ye-1+64],on=xe[Ye-1+96];xe[Ye+0+0]=St+ur+1>>1,xe[Ye+2+0]=xe[Ye+0+32]=ur+Br+1>>1,xe[Ye+2+32]=xe[Ye+0+64]=Br+on+1>>1,xe[Ye+1+0]=pa(St,ur,Br),xe[Ye+3+0]=xe[Ye+1+32]=pa(ur,Br,on),xe[Ye+3+32]=xe[Ye+1+64]=pa(Br,on,on),xe[Ye+3+64]=xe[Ye+2+64]=xe[Ye+0+96]=xe[Ye+1+96]=xe[Ye+2+96]=xe[Ye+3+96]=on}function hs(xe,Ye){var St=xe[Ye-1+0],ur=xe[Ye-1+32],Br=xe[Ye-1+64],on=xe[Ye-1+96],je=xe[Ye-1-32],ae=xe[Ye+0-32],Oe=xe[Ye+1-32],Ze=xe[Ye+2-32];xe[Ye+0+0]=xe[Ye+2+32]=St+je+1>>1,xe[Ye+0+32]=xe[Ye+2+64]=ur+St+1>>1,xe[Ye+0+64]=xe[Ye+2+96]=Br+ur+1>>1,xe[Ye+0+96]=on+Br+1>>1,xe[Ye+3+0]=pa(ae,Oe,Ze),xe[Ye+2+0]=pa(je,ae,Oe),xe[Ye+1+0]=xe[Ye+3+32]=pa(St,je,ae),xe[Ye+1+32]=xe[Ye+3+64]=pa(ur,St,je),xe[Ye+1+64]=xe[Ye+3+96]=pa(Br,ur,St),xe[Ye+1+96]=pa(on,Br,ur)}function Bs(xe,Ye){var St;for(St=0;8>St;++St)Ge(xe,Ye+32*St,xe,Ye-32,8)}function rs(xe,Ye){var St;for(St=0;8>St;++St)nt(xe,Ye,xe[Ye-1],8),Ye+=32}function ns(xe,Ye,St){var ur;for(ur=0;8>ur;++ur)nt(Ye,St+32*ur,xe,8)}function co(xe,Ye){var St,ur=8;for(St=0;8>St;++St)ur+=xe[Ye+St-32]+xe[Ye-1+32*St];ns(ur>>4,xe,Ye)}function oo(xe,Ye){var St,ur=4;for(St=0;8>St;++St)ur+=xe[Ye+St-32];ns(ur>>3,xe,Ye)}function eo(xe,Ye){var St,ur=4;for(St=0;8>St;++St)ur+=xe[Ye-1+32*St];ns(ur>>3,xe,Ye)}function ss(xe,Ye){ns(128,xe,Ye)}function xs(xe,Ye,St){var ur=xe[Ye-St],Br=xe[Ye+0],on=3*(Br-ur)+nu[1020+xe[Ye-2*St]-xe[Ye+St]],je=Sl[112+(on+4>>3)];xe[Ye-St]=Ml[255+ur+Sl[112+(on+3>>3)]],xe[Ye+0]=Ml[255+Br-je]}function Po(xe,Ye,St,ur){var Br=xe[Ye+0],on=xe[Ye+St];return Ll[255+xe[Ye-2*St]-xe[Ye-St]]>ur||Ll[255+on-Br]>ur}function el(xe,Ye,St,ur){return 4*Ll[255+xe[Ye-St]-xe[Ye+0]]+Ll[255+xe[Ye-2*St]-xe[Ye+St]]<=ur}function zo(xe,Ye,St,ur,Br){var on=xe[Ye-3*St],je=xe[Ye-2*St],ae=xe[Ye-St],Oe=xe[Ye+0],Ze=xe[Ye+St],yt=xe[Ye+2*St],Xt=xe[Ye+3*St];return 4*Ll[255+ae-Oe]+Ll[255+je-Ze]>ur?0:Ll[255+xe[Ye-4*St]-on]<=Br&&Ll[255+on-je]<=Br&&Ll[255+je-ae]<=Br&&Ll[255+Xt-yt]<=Br&&Ll[255+yt-Ze]<=Br&&Ll[255+Ze-Oe]<=Br}function Jo(xe,Ye,St,ur){var Br=2*ur+1;for(ur=0;16>ur;++ur)el(xe,Ye+ur,St,Br)&&xs(xe,Ye+ur,St)}function ks(xe,Ye,St,ur){var Br=2*ur+1;for(ur=0;16>ur;++ur)el(xe,Ye+ur*St,1,Br)&&xs(xe,Ye+ur*St,1)}function as(xe,Ye,St,ur){var Br;for(Br=3;0<Br;--Br)Jo(xe,Ye+=4*St,St,ur)}function fs(xe,Ye,St,ur){var Br;for(Br=3;0<Br;--Br)ks(xe,Ye+=4,St,ur)}function Sn(xe,Ye,St,ur,Br,on,je,ae){for(on=2*on+1;0<Br--;){if(zo(xe,Ye,St,on,je))if(Po(xe,Ye,St,ae))xs(xe,Ye,St);else{var Oe=xe,Ze=Ye,yt=St,Xt=Oe[Ze-2*yt],tr=Oe[Ze-yt],or=Oe[Ze+0],Wr=Oe[Ze+yt],un=Oe[Ze+2*yt],zr=27*(sn=nu[1020+3*(or-tr)+nu[1020+Xt-Wr]])+63>>7,jr=18*sn+63>>7,sn=9*sn+63>>7;Oe[Ze-3*yt]=Ml[255+Oe[Ze-3*yt]+sn],Oe[Ze-2*yt]=Ml[255+Xt+jr],Oe[Ze-yt]=Ml[255+tr+zr],Oe[Ze+0]=Ml[255+or-zr],Oe[Ze+yt]=Ml[255+Wr-jr],Oe[Ze+2*yt]=Ml[255+un-sn]}Ye+=ur}}function Ls(xe,Ye,St,ur,Br,on,je,ae){for(on=2*on+1;0<Br--;){if(zo(xe,Ye,St,on,je))if(Po(xe,Ye,St,ae))xs(xe,Ye,St);else{var Oe=xe,Ze=Ye,yt=St,Xt=Oe[Ze-yt],tr=Oe[Ze+0],or=Oe[Ze+yt],Wr=Sl[112+((un=3*(tr-Xt))+4>>3)],un=Sl[112+(un+3>>3)],zr=Wr+1>>1;Oe[Ze-2*yt]=Ml[255+Oe[Ze-2*yt]+zr],Oe[Ze-yt]=Ml[255+Xt+un],Oe[Ze+0]=Ml[255+tr-Wr],Oe[Ze+yt]=Ml[255+or-zr]}Ye+=ur}}function yl(xe,Ye,St,ur,Br,on){Sn(xe,Ye,St,1,16,ur,Br,on)}function Ks(xe,Ye,St,ur,Br,on){Sn(xe,Ye,1,St,16,ur,Br,on)}function Ws(xe,Ye,St,ur,Br,on){var je;for(je=3;0<je;--je)Ls(xe,Ye+=4*St,St,1,16,ur,Br,on)}function ps(xe,Ye,St,ur,Br,on){var je;for(je=3;0<je;--je)Ls(xe,Ye+=4,1,St,16,ur,Br,on)}function Ms(xe,Ye,St,ur,Br,on,je,ae){Sn(xe,Ye,Br,1,8,on,je,ae),Sn(St,ur,Br,1,8,on,je,ae)}function Zs(xe,Ye,St,ur,Br,on,je,ae){Sn(xe,Ye,1,Br,8,on,je,ae),Sn(St,ur,1,Br,8,on,je,ae)}function zs(xe,Ye,St,ur,Br,on,je,ae){Ls(xe,Ye+4*Br,Br,1,8,on,je,ae),Ls(St,ur+4*Br,Br,1,8,on,je,ae)}function Es(xe,Ye,St,ur,Br,on,je,ae){Ls(xe,Ye+4,1,Br,8,on,je,ae),Ls(St,ur+4,1,Br,8,on,je,ae)}function Ds(){this.ba=new Gi,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Pi,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function tl(){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 Us(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Go(){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 cr,this.yc=new Vt}function Do(){this.xb=this.a=0,this.l=new ho,this.ca=new Gi,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new Ur,this.Pb=0,this.wd=new Ur,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Go,this.ab=0,this.gc=ot(4,Us),this.Oc=0}function Ts(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new ho,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Ns(xe,Ye,St,ur,Br,on,je){for(xe=xe==null?0:xe[Ye+0],Ye=0;Ye<je;++Ye)Br[on+Ye]=xe+St[ur+Ye]&255,xe=Br[on+Ye]}function Ao(xe,Ye,St,ur,Br,on,je){var ae;if(xe==null)Ns(null,null,St,ur,Br,on,je);else for(ae=0;ae<je;++ae)Br[on+ae]=xe[Ye+ae]+St[ur+ae]&255}function jt(xe,Ye,St,ur,Br,on,je){if(xe==null)Ns(null,null,St,ur,Br,on,je);else{var ae,Oe=xe[Ye+0],Ze=Oe,yt=Oe;for(ae=0;ae<je;++ae)Ze=yt+(Oe=xe[Ye+ae])-Ze,yt=St[ur+ae]+(-256&Ze?0>Ze?0:255:Ze)&255,Ze=Oe,Br[on+ae]=yt}}function sr(xe,Ye,St,ur){var Br=Ye.width,on=Ye.o;if(Ne(xe!=null&&Ye!=null),0>St||0>=ur||St+ur>on)return null;if(!xe.Cc){if(xe.ga==null){var je;if(xe.ga=new Ts,(je=xe.ga==null)||(je=Ye.width*Ye.o,Ne(xe.Gb.length==0),xe.Gb=$e(je),xe.Uc=0,xe.Gb==null?je=0:(xe.mb=xe.Gb,xe.nb=xe.Uc,xe.rc=null,je=1),je=!je),!je){je=xe.ga;var ae=xe.Fa,Oe=xe.P,Ze=xe.qc,yt=xe.mb,Xt=xe.nb,tr=Oe+1,or=Ze-1,Wr=je.l;if(Ne(ae!=null&&yt!=null&&Ye!=null),J[0]=null,J[1]=Ns,J[2]=Ao,J[3]=jt,je.ca=yt,je.tb=Xt,je.c=Ye.width,je.i=Ye.height,Ne(0<je.c&&0<je.i),1>=Ze)Ye=0;else if(je.$a=ae[Oe+0]>>0&3,je.Z=ae[Oe+0]>>2&3,je.Lc=ae[Oe+0]>>4&3,Oe=ae[Oe+0]>>6&3,0>je.$a||1<je.$a||4<=je.Z||1<je.Lc||Oe)Ye=0;else if(Wr.put=Oa,Wr.ac=da,Wr.bc=ra,Wr.ma=je,Wr.width=Ye.width,Wr.height=Ye.height,Wr.Da=Ye.Da,Wr.v=Ye.v,Wr.va=Ye.va,Wr.j=Ye.j,Wr.o=Ye.o,je.$a)e:{Ne(je.$a==1),Ye=mo();t:for(;;){if(Ye==null){Ye=0;break e}if(Ne(je!=null),je.mc=Ye,Ye.c=je.c,Ye.i=je.i,Ye.l=je.l,Ye.l.ma=je,Ye.l.width=je.c,Ye.l.height=je.i,Ye.a=0,Kn(Ye.m,ae,tr,or),!Eo(je.c,je.i,1,Ye,null))break t;if(Ye.ab==1&&Ye.gc[0].hc==3&&Wa(Ye.s)?(je.ic=1,ae=Ye.c*Ye.i,Ye.Ta=null,Ye.Ua=0,Ye.V=$e(ae),Ye.Ba=0,Ye.V==null?(Ye.a=1,Ye=0):Ye=1):(je.ic=0,Ye=ao(Ye,je.c)),!Ye)break t;Ye=1;break e}je.mc=null,Ye=0}else Ye=or>=je.c*je.i;je=!Ye}if(je)return null;xe.ga.Lc!=1?xe.Ga=0:ur=on-St}Ne(xe.ga!=null),Ne(St+ur<=on);e:{if(Ye=(ae=xe.ga).c,on=ae.l.o,ae.$a==0){if(tr=xe.rc,or=xe.Vc,Wr=xe.Fa,Oe=xe.P+1+St*Ye,Ze=xe.mb,yt=xe.nb+St*Ye,Ne(Oe<=xe.P+xe.qc),ae.Z!=0)for(Ne(J[ae.Z]!=null),je=0;je<ur;++je)J[ae.Z](tr,or,Wr,Oe,Ze,yt,Ye),tr=Ze,or=yt,yt+=Ye,Oe+=Ye;else for(je=0;je<ur;++je)Ge(Ze,yt,Wr,Oe,Ye),tr=Ze,or=yt,yt+=Ye,Oe+=Ye;xe.rc=tr,xe.Vc=or}else{if(Ne(ae.mc!=null),Ye=St+ur,Ne((je=ae.mc)!=null),Ne(Ye<=je.i),je.C>=Ye)Ye=1;else if(ae.ic||Ee(),ae.ic){ae=je.V,tr=je.Ba,or=je.c;var un=je.i,zr=(Wr=1,Oe=je.$/or,Ze=je.$%or,yt=je.m,Xt=je.s,je.$),jr=or*un,sn=or*Ye,vn=Xt.wc,Un=zr<sn?ya(Xt,Ze,Oe):null;Ne(zr<=jr),Ne(Ye<=un),Ne(Wa(Xt));t:for(;;){for(;!yt.h&&zr<sn;){if(Ze&vn||(Un=ya(Xt,Ze,Oe)),Ne(Un!=null),oi(yt),256>(un=ga(Un.G[0],Un.H[0],yt)))ae[tr+zr]=un,++zr,++Ze>=or&&(Ze=0,++Oe<=Ye&&!(Oe%16)&&io(je,Oe));else{if(!(280>un)){Wr=0;break t}un=Ra(un-256,yt);var Ii,ki=ga(Un.G[4],Un.H[4],yt);if(oi(yt),!(zr>=(ki=va(or,ki=Ra(ki,yt)))&&jr-zr>=un)){Wr=0;break t}for(Ii=0;Ii<un;++Ii)ae[tr+zr+Ii]=ae[tr+zr+Ii-ki];for(zr+=un,Ze+=un;Ze>=or;)Ze-=or,++Oe<=Ye&&!(Oe%16)&&io(je,Oe);zr<sn&&Ze&vn&&(Un=ya(Xt,Ze,Oe))}Ne(yt.h==zn(yt))}io(je,Oe>Ye?Ye:Oe);break t}!Wr||yt.h&&zr<jr?(Wr=0,je.a=yt.h?5:3):je.$=zr,Ye=Wr}else Ye=uo(je,je.V,je.Ba,je.c,je.i,Ye,Co);if(!Ye){ur=0;break e}}St+ur>=on&&(xe.Cc=1),ur=1}if(!ur)return null;if(xe.Cc&&((ur=xe.ga)!=null&&(ur.mc=null),xe.ga=null,0<xe.Ga))return alert("todo:WebPDequantizeLevels"),null}return xe.nb+St*Br}function _n(xe,Ye,St,ur,Br,on){for(;0<Br--;){var je,ae=xe,Oe=Ye+(St?1:0),Ze=xe,yt=Ye+(St?0:3);for(je=0;je<ur;++je){var Xt=Ze[yt+4*je];Xt!=255&&(Xt*=32897,ae[Oe+4*je+0]=ae[Oe+4*je+0]*Xt>>23,ae[Oe+4*je+1]=ae[Oe+4*je+1]*Xt>>23,ae[Oe+4*je+2]=ae[Oe+4*je+2]*Xt>>23)}Ye+=on}}function hi(xe,Ye,St,ur,Br){for(;0<ur--;){var on;for(on=0;on<St;++on){var je=xe[Ye+2*on+0],ae=15&(Ze=xe[Ye+2*on+1]),Oe=4369*ae,Ze=(240&Ze|Ze>>4)*Oe>>16;xe[Ye+2*on+0]=(240&je|je>>4)*Oe>>16&240|(15&je|je<<4)*Oe>>16>>4&15,xe[Ye+2*on+1]=240&Ze|ae}Ye+=Br}}function Nt(xe,Ye,St,ur,Br,on,je,ae){var Oe,Ze,yt=255;for(Ze=0;Ze<Br;++Ze){for(Oe=0;Oe<ur;++Oe){var Xt=xe[Ye+Oe];on[je+4*Oe]=Xt,yt&=Xt}Ye+=St,je+=ae}return yt!=255}function ce(xe,Ye,St,ur,Br){var on;for(on=0;on<Br;++on)St[ur+on]=xe[Ye+on]>>8}function Ee(){Yl=_n,Zl=hi,wl=Nt,Gl=ce}function Le(xe,Ye,St){zt[xe]=function(ur,Br,on,je,ae,Oe,Ze,yt,Xt,tr,or,Wr,un,zr,jr,sn,vn){var Un,Ii=vn-1>>1,ki=ae[Oe+0]|Ze[yt+0]<<16,la=Xt[tr+0]|or[Wr+0]<<16;Ne(ur!=null);var Zi=3*ki+la+131074>>2;for(Ye(ur[Br+0],255&Zi,Zi>>16,un,zr),on!=null&&(Zi=3*la+ki+131074>>2,Ye(on[je+0],255&Zi,Zi>>16,jr,sn)),Un=1;Un<=Ii;++Un){var Ya=ae[Oe+Un]|Ze[yt+Un]<<16,wa=Xt[tr+Un]|or[Wr+Un]<<16,po=ki+Ya+la+wa+524296,Za=po+2*(Ya+la)>>3;Zi=Za+ki>>1,ki=(po=po+2*(ki+wa)>>3)+Ya>>1,Ye(ur[Br+2*Un-1],255&Zi,Zi>>16,un,zr+(2*Un-1)*St),Ye(ur[Br+2*Un-0],255&ki,ki>>16,un,zr+(2*Un-0)*St),on!=null&&(Zi=po+la>>1,ki=Za+wa>>1,Ye(on[je+2*Un-1],255&Zi,Zi>>16,jr,sn+(2*Un-1)*St),Ye(on[je+2*Un+0],255&ki,ki>>16,jr,sn+(2*Un+0)*St)),ki=Ya,la=wa}1&vn||(Zi=3*ki+la+131074>>2,Ye(ur[Br+vn-1],255&Zi,Zi>>16,un,zr+(vn-1)*St),on!=null&&(Zi=3*la+ki+131074>>2,Ye(on[je+vn-1],255&Zi,Zi>>16,jr,sn+(vn-1)*St)))}}function Qe(){ne[$l]=we,ne[Pl]=Xe,ne[fu]=_e,ne[xl]=ut,ne[El]=ht,ne[pu]=Qt,ne[mu]=Tr,ne[Lu]=Xe,ne[Kl]=ut,ne[ql]=ht,ne[iu]=Qt}function Rt(xe){return xe&~Jn?0>xe?0:255:xe>>Nn}function lr(xe,Ye){return Rt((19077*xe>>8)+(26149*Ye>>8)-14234)}function Qr(xe,Ye,St){return Rt((19077*xe>>8)-(6419*Ye>>8)-(13320*St>>8)+8708)}function pn(xe,Ye){return Rt((19077*xe>>8)+(33050*Ye>>8)-17685)}function In(xe,Ye,St,ur,Br){ur[Br+0]=lr(xe,St),ur[Br+1]=Qr(xe,Ye,St),ur[Br+2]=pn(xe,Ye)}function li(xe,Ye,St,ur,Br){ur[Br+0]=pn(xe,Ye),ur[Br+1]=Qr(xe,Ye,St),ur[Br+2]=lr(xe,St)}function bi(xe,Ye,St,ur,Br){var on=Qr(xe,Ye,St);Ye=on<<3&224|pn(xe,Ye)>>3,ur[Br+0]=248&lr(xe,St)|on>>5,ur[Br+1]=Ye}function Ai(xe,Ye,St,ur,Br){var on=240&pn(xe,Ye)|15;ur[Br+0]=240&lr(xe,St)|Qr(xe,Ye,St)>>4,ur[Br+1]=on}function Yi(xe,Ye,St,ur,Br){ur[Br+0]=255,In(xe,Ye,St,ur,Br+1)}function ua(xe,Ye,St,ur,Br){li(xe,Ye,St,ur,Br),ur[Br+3]=255}function Va(xe,Ye,St,ur,Br){In(xe,Ye,St,ur,Br),ur[Br+3]=255}function Lo(xe,Ye){return 0>xe?0:xe>Ye?Ye:xe}function ro(xe,Ye,St){zt[xe]=function(ur,Br,on,je,ae,Oe,Ze,yt,Xt){for(var tr=yt+(-2&Xt)*St;yt!=tr;)Ye(ur[Br+0],on[je+0],ae[Oe+0],Ze,yt),Ye(ur[Br+1],on[je+0],ae[Oe+0],Ze,yt+St),Br+=2,++je,++Oe,yt+=2*St;1&Xt&&Ye(ur[Br+0],on[je+0],ae[Oe+0],Ze,yt)}}function So(xe,Ye,St){return St==0?xe==0?Ye==0?6:5:Ye==0?4:0:St}function Ro(xe,Ye,St,ur,Br){switch(xe>>>30){case 3:_s(Ye,St,ur,Br,0);break;case 2:qo(Ye,St,ur,Br);break;case 1:Rs(Ye,St,ur,Br)}}function jo(xe,Ye){var St,ur,Br=Ye.M,on=Ye.Nb,je=xe.oc,ae=xe.pc+40,Oe=xe.oc,Ze=xe.pc+584,yt=xe.oc,Xt=xe.pc+600;for(St=0;16>St;++St)je[ae+32*St-1]=129;for(St=0;8>St;++St)Oe[Ze+32*St-1]=129,yt[Xt+32*St-1]=129;for(0<Br?je[ae-1-32]=Oe[Ze-1-32]=yt[Xt-1-32]=129:(nt(je,ae-32-1,127,21),nt(Oe,Ze-32-1,127,9),nt(yt,Xt-32-1,127,9)),ur=0;ur<xe.za;++ur){var tr=Ye.ya[Ye.aa+ur];if(0<ur){for(St=-1;16>St;++St)Ge(je,ae+32*St-4,je,ae+32*St+12,4);for(St=-1;8>St;++St)Ge(Oe,Ze+32*St-4,Oe,Ze+32*St+4,4),Ge(yt,Xt+32*St-4,yt,Xt+32*St+4,4)}var or=xe.Gd,Wr=xe.Hd+ur,un=tr.ad,zr=tr.Hc;if(0<Br&&(Ge(je,ae-32,or[Wr].y,0,16),Ge(Oe,Ze-32,or[Wr].f,0,8),Ge(yt,Xt-32,or[Wr].ea,0,8)),tr.Za){var jr=je,sn=ae-32+16;for(0<Br&&(ur>=xe.za-1?nt(jr,sn,or[Wr].y[15],4):Ge(jr,sn,or[Wr+1].y,0,4)),St=0;4>St;St++)jr[sn+128+St]=jr[sn+256+St]=jr[sn+384+St]=jr[sn+0+St];for(St=0;16>St;++St,zr<<=2)jr=je,sn=ae+ba[St],q[tr.Ob[St]](jr,sn),Ro(zr,un,16*+St,jr,sn)}else if(jr=So(ur,Br,tr.Ob[0]),ve[jr](je,ae),zr!=0)for(St=0;16>St;++St,zr<<=2)Ro(zr,un,16*+St,je,ae+ba[St]);for(St=tr.Gc,jr=So(ur,Br,tr.Dd),L[jr](Oe,Ze),L[jr](yt,Xt),zr=un,jr=Oe,sn=Ze,255&(tr=St>>0)&&(170&tr?Is(zr,256,jr,sn):nl(zr,256,jr,sn)),tr=yt,zr=Xt,255&(St>>=8)&&(170&St?Is(un,320,tr,zr):nl(un,320,tr,zr)),Br<xe.Ub-1&&(Ge(or[Wr].y,0,je,ae+480,16),Ge(or[Wr].f,0,Oe,Ze+224,8),Ge(or[Wr].ea,0,yt,Xt+224,8)),St=8*on*xe.B,or=xe.sa,Wr=xe.ta+16*ur+16*on*xe.R,un=xe.qa,tr=xe.ra+8*ur+St,zr=xe.Ha,jr=xe.Ia+8*ur+St,St=0;16>St;++St)Ge(or,Wr+St*xe.R,je,ae+32*St,16);for(St=0;8>St;++St)Ge(un,tr+St*xe.B,Oe,Ze+32*St,8),Ge(zr,jr+St*xe.B,yt,Xt+32*St,8)}}function Cs(xe,Ye,St,ur,Br,on,je,ae,Oe){var Ze=[0],yt=[0],Xt=0,tr=Oe!=null?Oe.kd:0,or=Oe!=null?Oe:new tl;if(xe==null||12>St)return 7;or.data=xe,or.w=Ye,or.ha=St,Ye=[Ye],St=[St],or.gb=[or.gb];e:{var Wr=Ye,un=St,zr=or.gb;if(Ne(xe!=null),Ne(un!=null),Ne(zr!=null),zr[0]=0,12<=un[0]&&!He(xe,Wr[0],"RIFF")){if(He(xe,Wr[0]+8,"WEBP")){zr=3;break e}var jr=Aa(xe,Wr[0]+4);if(12>jr||4294967286<jr){zr=3;break e}if(tr&&jr>un[0]-8){zr=7;break e}zr[0]=jr,Wr[0]+=12,un[0]-=12}zr=0}if(zr!=0)return zr;for(jr=0<or.gb[0],St=St[0];;){e:{var sn=xe;un=Ye,zr=St;var vn=Ze,Un=yt,Ii=Wr=[0];if((Zi=Xt=[Xt])[0]=0,8>zr[0])zr=7;else{if(!He(sn,un[0],"VP8X")){if(Aa(sn,un[0]+4)!=10){zr=3;break e}if(18>zr[0]){zr=7;break e}var ki=Aa(sn,un[0]+8),la=1+na(sn,un[0]+12);if(2147483648<=la*(sn=1+na(sn,un[0]+15))){zr=3;break e}Ii!=null&&(Ii[0]=ki),vn!=null&&(vn[0]=la),Un!=null&&(Un[0]=sn),un[0]+=18,zr[0]-=18,Zi[0]=1}zr=0}}if(Xt=Xt[0],Wr=Wr[0],zr!=0)return zr;if(un=!!(2&Wr),!jr&&Xt)return 3;if(on!=null&&(on[0]=!!(16&Wr)),je!=null&&(je[0]=un),ae!=null&&(ae[0]=0),je=Ze[0],Wr=yt[0],Xt&&un&&Oe==null){zr=0;break}if(4>St){zr=7;break}if(jr&&Xt||!jr&&!Xt&&!He(xe,Ye[0],"ALPH")){St=[St],or.na=[or.na],or.P=[or.P],or.Sa=[or.Sa];e:{ki=xe,zr=Ye,jr=St;var Zi=or.gb;vn=or.na,Un=or.P,Ii=or.Sa,la=22,Ne(ki!=null),Ne(jr!=null),sn=zr[0];var Ya=jr[0];for(Ne(vn!=null),Ne(Ii!=null),vn[0]=null,Un[0]=null,Ii[0]=0;;){if(zr[0]=sn,jr[0]=Ya,8>Ya){zr=7;break e}var wa=Aa(ki,sn+4);if(4294967286<wa){zr=3;break e}var po=8+wa+1&-2;if(la+=po,0<Zi&&la>Zi){zr=3;break e}if(!He(ki,sn,"VP8 ")||!He(ki,sn,"VP8L")){zr=0;break e}if(Ya[0]<po){zr=7;break e}He(ki,sn,"ALPH")||(vn[0]=ki,Un[0]=sn+8,Ii[0]=wa),sn+=po,Ya-=po}}if(St=St[0],or.na=or.na[0],or.P=or.P[0],or.Sa=or.Sa[0],zr!=0)break}St=[St],or.Ja=[or.Ja],or.xa=[or.xa];e:if(Zi=xe,zr=Ye,jr=St,vn=or.gb[0],Un=or.Ja,Ii=or.xa,ki=zr[0],sn=!He(Zi,ki,"VP8 "),la=!He(Zi,ki,"VP8L"),Ne(Zi!=null),Ne(jr!=null),Ne(Un!=null),Ne(Ii!=null),8>jr[0])zr=7;else{if(sn||la){if(Zi=Aa(Zi,ki+4),12<=vn&&Zi>vn-12){zr=3;break e}if(tr&&Zi>jr[0]-8){zr=7;break e}Un[0]=Zi,zr[0]+=8,jr[0]-=8,Ii[0]=la}else Ii[0]=5<=jr[0]&&Zi[ki+0]==47&&!(Zi[ki+4]>>5),Un[0]=jr[0];zr=0}if(St=St[0],or.Ja=or.Ja[0],or.xa=or.xa[0],Ye=Ye[0],zr!=0)break;if(4294967286<or.Ja)return 3;if(ae==null||un||(ae[0]=or.xa?2:1),je=[je],Wr=[Wr],or.xa){if(5>St){zr=7;break}ae=je,tr=Wr,un=on,xe==null||5>St?xe=0:5<=St&&xe[Ye+0]==47&&!(xe[Ye+4]>>5)?(jr=[0],Zi=[0],vn=[0],Kn(Un=new Ur,xe,Ye,St),Da(Un,jr,Zi,vn)?(ae!=null&&(ae[0]=jr[0]),tr!=null&&(tr[0]=Zi[0]),un!=null&&(un[0]=vn[0]),xe=1):xe=0):xe=0}else{if(10>St){zr=7;break}ae=Wr,xe==null||10>St||!Cr(xe,Ye+3,St-3)?xe=0:(tr=xe[Ye+0]|xe[Ye+1]<<8|xe[Ye+2]<<16,un=16383&(xe[Ye+7]<<8|xe[Ye+6]),xe=16383&(xe[Ye+9]<<8|xe[Ye+8]),1&tr||3<(tr>>1&7)||!(tr>>4&1)||tr>>5>=or.Ja||!un||!xe?xe=0:(je&&(je[0]=un),ae&&(ae[0]=xe),xe=1))}if(!xe)return 3;if(je=je[0],Wr=Wr[0],Xt&&(Ze[0]!=je||yt[0]!=Wr))return 3;Oe!=null&&(Oe[0]=or,Oe.offset=Ye-Oe.w,Ne(4294967286>Ye-Oe.w),Ne(Oe.offset==Oe.ha-St));break}return zr==0||zr==7&&Xt&&Oe==null?(on!=null&&(on[0]|=or.na!=null&&0<or.na.length),ur!=null&&(ur[0]=je),Br!=null&&(Br[0]=Wr),0):zr}function vs(xe,Ye,St){var ur=Ye.width,Br=Ye.height,on=0,je=0,ae=ur,Oe=Br;if(Ye.Da=xe!=null&&0<xe.Da,Ye.Da&&(ae=xe.cd,Oe=xe.bd,on=xe.v,je=xe.j,11>St||(on&=-2,je&=-2),0>on||0>je||0>=ae||0>=Oe||on+ae>ur||je+Oe>Br))return 0;if(Ye.v=on,Ye.j=je,Ye.va=on+ae,Ye.o=je+Oe,Ye.U=ae,Ye.T=Oe,Ye.da=xe!=null&&0<xe.da,Ye.da){if(!ha(ae,Oe,St=[xe.ib],on=[xe.hb]))return 0;Ye.ib=St[0],Ye.hb=on[0]}return Ye.ob=xe!=null&&xe.ob,Ye.Kb=xe==null||!xe.Sd,Ye.da&&(Ye.ob=Ye.ib<3*ur/4&&Ye.hb<3*Br/4,Ye.Kb=0),1}function os(xe){if(xe==null)return 2;if(11>xe.S){var Ye=xe.f.RGBA;Ye.fb+=(xe.height-1)*Ye.A,Ye.A=-Ye.A}else Ye=xe.f.kb,xe=xe.height,Ye.O+=(xe-1)*Ye.fa,Ye.fa=-Ye.fa,Ye.N+=(xe-1>>1)*Ye.Ab,Ye.Ab=-Ye.Ab,Ye.W+=(xe-1>>1)*Ye.Db,Ye.Db=-Ye.Db,Ye.F!=null&&(Ye.J+=(xe-1)*Ye.lb,Ye.lb=-Ye.lb);return 0}function Fo(xe,Ye,St,ur){if(ur==null||0>=xe||0>=Ye)return 2;if(St!=null){if(St.Da){var Br=St.cd,on=St.bd,je=-2&St.v,ae=-2&St.j;if(0>je||0>ae||0>=Br||0>=on||je+Br>xe||ae+on>Ye)return 2;xe=Br,Ye=on}if(St.da){if(!ha(xe,Ye,Br=[St.ib],on=[St.hb]))return 2;xe=Br[0],Ye=on[0]}}ur.width=xe,ur.height=Ye;e:{var Oe=ur.width,Ze=ur.height;if(xe=ur.S,0>=Oe||0>=Ze||!(xe>=$l&&13>xe))xe=2;else{if(0>=ur.Rd&&ur.sd==null){je=on=Br=Ye=0;var yt=(ae=Oe*rl[xe])*Ze;if(11>xe||(on=(Ze+1)/2*(Ye=(Oe+1)/2),xe==12&&(je=(Br=Oe)*Ze)),(Ze=$e(yt+2*on+je))==null){xe=1;break e}ur.sd=Ze,11>xe?((Oe=ur.f.RGBA).eb=Ze,Oe.fb=0,Oe.A=ae,Oe.size=yt):((Oe=ur.f.kb).y=Ze,Oe.O=0,Oe.fa=ae,Oe.Fd=yt,Oe.f=Ze,Oe.N=0+yt,Oe.Ab=Ye,Oe.Cd=on,Oe.ea=Ze,Oe.W=0+yt+on,Oe.Db=Ye,Oe.Ed=on,xe==12&&(Oe.F=Ze,Oe.J=0+yt+2*on),Oe.Tc=je,Oe.lb=Br)}if(Ye=1,Br=ur.S,on=ur.width,je=ur.height,Br>=$l&&13>Br)if(11>Br)xe=ur.f.RGBA,Ye&=(ae=Math.abs(xe.A))*(je-1)+on<=xe.size,Ye&=ae>=on*rl[Br],Ye&=xe.eb!=null;else{xe=ur.f.kb,ae=(on+1)/2,yt=(je+1)/2,Oe=Math.abs(xe.fa),Ze=Math.abs(xe.Ab);var Xt=Math.abs(xe.Db),tr=Math.abs(xe.lb),or=tr*(je-1)+on;Ye&=Oe*(je-1)+on<=xe.Fd,Ye&=Ze*(yt-1)+ae<=xe.Cd,Ye=(Ye&=Xt*(yt-1)+ae<=xe.Ed)&Oe>=on&Ze>=ae&Xt>=ae,Ye&=xe.y!=null,Ye&=xe.f!=null,Ye&=xe.ea!=null,Br==12&&(Ye&=tr>=on,Ye&=or<=xe.Tc,Ye&=xe.F!=null)}else Ye=0;xe=Ye?0:2}}return xe!=0||St!=null&&St.fd&&(xe=os(ur)),xe}var yo=64,As=[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],$s=24,ys=32,Fa=8,ml=[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];kr("Predictor0","PredictorAdd0"),zt.Predictor0=function(){return 4278190080},zt.Predictor1=function(xe){return xe},zt.Predictor2=function(xe,Ye,St){return Ye[St+0]},zt.Predictor3=function(xe,Ye,St){return Ye[St+1]},zt.Predictor4=function(xe,Ye,St){return Ye[St-1]},zt.Predictor5=function(xe,Ye,St){return yn(yn(xe,Ye[St+1]),Ye[St+0])},zt.Predictor6=function(xe,Ye,St){return yn(xe,Ye[St-1])},zt.Predictor7=function(xe,Ye,St){return yn(xe,Ye[St+0])},zt.Predictor8=function(xe,Ye,St){return yn(Ye[St-1],Ye[St+0])},zt.Predictor9=function(xe,Ye,St){return yn(Ye[St+0],Ye[St+1])},zt.Predictor10=function(xe,Ye,St){return yn(yn(xe,Ye[St-1]),yn(Ye[St+0],Ye[St+1]))},zt.Predictor11=function(xe,Ye,St){var ur=Ye[St+0];return 0>=Gr(ur>>24&255,xe>>24&255,(Ye=Ye[St-1])>>24&255)+Gr(ur>>16&255,xe>>16&255,Ye>>16&255)+Gr(ur>>8&255,xe>>8&255,Ye>>8&255)+Gr(255&ur,255&xe,255&Ye)?ur:xe},zt.Predictor12=function(xe,Ye,St){var ur=Ye[St+0];return(dr((xe>>24&255)+(ur>>24&255)-((Ye=Ye[St-1])>>24&255))<<24|dr((xe>>16&255)+(ur>>16&255)-(Ye>>16&255))<<16|dr((xe>>8&255)+(ur>>8&255)-(Ye>>8&255))<<8|dr((255&xe)+(255&ur)-(255&Ye)))>>>0},zt.Predictor13=function(xe,Ye,St){var ur=Ye[St-1];return(Rr((xe=yn(xe,Ye[St+0]))>>24&255,ur>>24&255)<<24|Rr(xe>>16&255,ur>>16&255)<<16|Rr(xe>>8&255,ur>>8&255)<<8|Rr(xe>>0&255,ur>>0&255))>>>0};var cl=zt.PredictorAdd0;zt.PredictorAdd1=ln,kr("Predictor2","PredictorAdd2"),kr("Predictor3","PredictorAdd3"),kr("Predictor4","PredictorAdd4"),kr("Predictor5","PredictorAdd5"),kr("Predictor6","PredictorAdd6"),kr("Predictor7","PredictorAdd7"),kr("Predictor8","PredictorAdd8"),kr("Predictor9","PredictorAdd9"),kr("Predictor10","PredictorAdd10"),kr("Predictor11","PredictorAdd11"),kr("Predictor12","PredictorAdd12"),kr("Predictor13","PredictorAdd13");var Ps=zt.PredictorAdd2;Nr("ColorIndexInverseTransform","MapARGB","32b",function(xe){return xe>>8&255},function(xe){return xe}),Nr("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(xe){return xe},function(xe){return xe>>8&255});var ws,Ys=zt.ColorIndexInverseTransform,Vl=zt.MapARGB,Nl=zt.VP8LColorIndexInverseTransformAlpha,hl=zt.MapAlpha,Os=zt.VP8LPredictorsAdd=[];Os.length=16,(zt.VP8LPredictors=[]).length=16,(zt.VP8LPredictorsAdd_C=[]).length=16,(zt.VP8LPredictors_C=[]).length=16;var Vs,_l,ol,Ho,vo,$o,ms,_s,qo,Is,Rs,nl,Il,Tl,Ul,Dl,Rl,Hl,sl,Gs,ll,Xs,bl,kl,Yl,Zl,wl,Gl,tu=$e(511),Iu=$e(2041),bu=$e(225),du=$e(767),hu=0,nu=Iu,Sl=bu,Ml=du,Ll=tu,$l=0,Pl=1,fu=2,xl=3,El=4,pu=5,mu=6,Lu=7,Kl=8,ql=9,iu=10,au=[2,3,7],Ql=[3,3,11],Ru=[280,256,256,256,40],Nu=[0,1,1,1,0],Jl=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],gu=[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],wu=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],vu=8,ul=[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],Ol=[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],ru=null,Du=[[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]],Su=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],cu=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],ou=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],su=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],xu=[[[[255,255,255,255,255,255,255,255,255,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]]]],Au=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],ve=[],q=[],L=[],K=1,H=2,J=[],ne=[];Le("UpsampleRgbLinePair",In,3),Le("UpsampleBgrLinePair",li,3),Le("UpsampleRgbaLinePair",Va,4),Le("UpsampleBgraLinePair",ua,4),Le("UpsampleArgbLinePair",Yi,4),Le("UpsampleRgba4444LinePair",Ai,2),Le("UpsampleRgb565LinePair",bi,2);var we=zt.UpsampleRgbLinePair,_e=zt.UpsampleBgrLinePair,Xe=zt.UpsampleRgbaLinePair,ut=zt.UpsampleBgraLinePair,ht=zt.UpsampleArgbLinePair,Qt=zt.UpsampleRgba4444LinePair,Tr=zt.UpsampleRgb565LinePair,br=16,Kr=1<<br-1,Zr=-227,Pn=482,Nn=6,Jn=(256<<Nn)-1,wi=0,sa=$e(256),Wi=$e(256),Ji=$e(256),La=$e(256),Xa=$e(Pn-Zr),Ua=$e(Pn-Zr);ro("YuvToRgbRow",In,3),ro("YuvToBgrRow",li,3),ro("YuvToRgbaRow",Va,4),ro("YuvToBgraRow",ua,4),ro("YuvToArgbRow",Yi,4),ro("YuvToRgba4444Row",Ai,2),ro("YuvToRgb565Row",bi,2);var ba=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],_o=[0,2,8],bs=[8,7,6,4,4,2,2,2,1,1,1,1],ds=1;this.WebPDecodeRGBA=function(xe,Ye,St,ur,Br){var on=Pl,je=new Ds,ae=new Gi;je.ba=ae,ae.S=on,ae.width=[ae.width],ae.height=[ae.height];var Oe=ae.width,Ze=ae.height,yt=new ta;if(yt==null||xe==null)var Xt=2;else Ne(yt!=null),Xt=Cs(xe,Ye,St,yt.width,yt.height,yt.Pd,yt.Qd,yt.format,null);if(Xt!=0?Oe=0:(Oe!=null&&(Oe[0]=yt.width[0]),Ze!=null&&(Ze[0]=yt.height[0]),Oe=1),Oe){ae.width=ae.width[0],ae.height=ae.height[0],ur!=null&&(ur[0]=ae.width),Br!=null&&(Br[0]=ae.height);e:{if(ur=new ho,(Br=new tl).data=xe,Br.w=Ye,Br.ha=St,Br.kd=1,Ye=[0],Ne(Br!=null),((xe=Cs(Br.data,Br.w,Br.ha,null,null,null,Ye,null,Br))==0||xe==7)&&Ye[0]&&(xe=4),(Ye=xe)==0){if(Ne(je!=null),ur.data=Br.data,ur.w=Br.w+Br.offset,ur.ha=Br.ha-Br.offset,ur.put=Oa,ur.ac=da,ur.bc=ra,ur.ma=je,Br.xa){if((xe=mo())==null){je=1;break e}if(function(tr,or){var Wr=[0],un=[0],zr=[0];t:for(;;){if(tr==null)return 0;if(or==null)return tr.a=2,0;if(tr.l=or,tr.a=0,Kn(tr.m,or.data,or.w,or.ha),!Da(tr.m,Wr,un,zr)){tr.a=3;break t}if(tr.xb=H,or.width=Wr[0],or.height=un[0],!Eo(Wr[0],un[0],1,tr,null))break t;return 1}return Ne(tr.a!=0),0}(xe,ur)){if(ur=(Ye=Fo(ur.width,ur.height,je.Oa,je.ba))==0){t:{ur=xe;r:for(;;){if(ur==null){ur=0;break t}if(Ne(ur.s.yc!=null),Ne(ur.s.Ya!=null),Ne(0<ur.s.Wb),Ne((St=ur.l)!=null),Ne((Br=St.ma)!=null),ur.xb!=0){if(ur.ca=Br.ba,ur.tb=Br.tb,Ne(ur.ca!=null),!vs(Br.Oa,St,xl)){ur.a=2;break r}if(!ao(ur,St.width))break r;if(St.da)break r;if((St.da||Ri(ur.ca.S))&&Ee(),11>ur.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),ur.ca.f.kb.F!=null&&Ee()),ur.Pb&&0<ur.s.ua&&ur.s.vb.X==null&&!yi(ur.s.vb,ur.s.Wa.Xa)){ur.a=1;break r}ur.xb=0}if(!uo(ur,ur.V,ur.Ba,ur.c,ur.i,St.o,Ia))break r;Br.Dc=ur.Ma,ur=1;break t}Ne(ur.a!=0),ur=0}ur=!ur}ur&&(Ye=xe.a)}else Ye=xe.a}else{if((xe=new ja)==null){je=1;break e}if(xe.Fa=Br.na,xe.P=Br.P,xe.qc=Br.Sa,tn(xe,ur)){if((Ye=Fo(ur.width,ur.height,je.Oa,je.ba))==0){if(xe.Aa=0,St=je.Oa,Ne((Br=xe)!=null),St!=null){if(0<(Oe=0>(Oe=St.Md)?0:100<Oe?255:255*Oe/100)){for(Ze=yt=0;4>Ze;++Ze)12>(Xt=Br.pb[Ze]).lc&&(Xt.ia=Oe*bs[0>Xt.lc?0:Xt.lc]>>3),yt|=Xt.ia;yt&&(alert("todo:VP8InitRandom"),Br.ia=1)}Br.Ga=St.Id,100<Br.Ga?Br.Ga=100:0>Br.Ga&&(Br.Ga=0)}hn(xe,ur)||(Ye=xe.a)}}else Ye=xe.a}Ye==0&&je.Oa!=null&&je.Oa.fd&&(Ye=os(je.ba))}je=Ye}on=je!=0?null:11>on?ae.f.RGBA.eb:ae.f.kb.y}else on=null;return on};var rl=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function rr(Hn,zt){for(var _t="",Ft=0;Ft<4;Ft++)_t+=String.fromCharCode(Hn[zt++]);return _t}function Fr(Hn,zt){return(Hn[zt+0]<<0|Hn[zt+1]<<8|Hn[zt+2]<<16)>>>0}function Vr(Hn,zt){return(Hn[zt+0]<<0|Hn[zt+1]<<8|Hn[zt+2]<<16|Hn[zt+3]<<24)>>>0}new xt;var fn=[0],gr=[0],Gn=[],Mr=new xt,Rn=it,bn=function(Hn,zt){var _t={},Ft=0,Wt=!1,Vt=0,Lt=0;if(_t.frames=[],!function(Ur,On,zn,qn){for(var oi=0;oi<qn;oi++)if(Ur[On+oi]!=zn.charCodeAt(oi))return!0;return!1}(Hn,zt,"RIFF",4)){var cr,vr;for(Vr(Hn,zt+=4),zt+=8;zt<Hn.length;){var yr=rr(Hn,zt),Dr=Vr(Hn,zt+=4);zt+=4;var Kn=Dr+(1&Dr);switch(yr){case"VP8 ":case"VP8L":_t.frames[Ft]===void 0&&(_t.frames[Ft]={}),(mn=_t.frames[Ft]).src_off=Wt?Lt:zt-8,mn.src_size=Vt+Dr+8,Ft++,Wt&&(Wt=!1,Vt=0,Lt=0);break;case"VP8X":(mn=_t.header={}).feature_flags=Hn[zt];var Dn=zt+4;mn.canvas_width=1+Fr(Hn,Dn),Dn+=3,mn.canvas_height=1+Fr(Hn,Dn),Dn+=3;break;case"ALPH":Wt=!0,Vt=Kn+8,Lt=zt-8;break;case"ANIM":(mn=_t.header).bgcolor=Vr(Hn,zt),Dn=zt+4,mn.loop_count=(cr=Hn)[(vr=Dn)+0]<<0|cr[vr+1]<<8,Dn+=2;break;case"ANMF":var di,mn;(mn=_t.frames[Ft]={}).offset_x=2*Fr(Hn,zt),zt+=3,mn.offset_y=2*Fr(Hn,zt),zt+=3,mn.width=1+Fr(Hn,zt),zt+=3,mn.height=1+Fr(Hn,zt),zt+=3,mn.duration=Fr(Hn,zt),zt+=3,di=Hn[zt++],mn.dispose=1&di,mn.blend=di>>1&1}yr!="ANMF"&&(zt+=Kn)}return _t}}(Rn,0);bn.response=Rn,bn.rgbaoutput=!0,bn.dataurl=!1;var rn=bn.header?bn.header:null,ei=bn.frames?bn.frames:null;if(rn){rn.loop_counter=rn.loop_count,fn=[rn.canvas_height],gr=[rn.canvas_width];for(var fi=0;fi<ei.length&&ei[fi].blend!=0;fi++);}var Mi=ei[0],$r=Mr.WebPDecodeRGBA(Rn,Mi.src_off,Mi.src_size,gr,fn);Mi.rgba=$r,Mi.imgwidth=gr[0],Mi.imgheight=fn[0];for(var En=0;En<gr[0]*fn[0]*4;En++)Gn[En]=$r[En];return this.width=gr,this.height=fn,this.data=Gn,this}!function(it){var Ne=function(){return typeof A.b=="function"},He=function(gr,Gn,Mr,Rn){var bn=4,rn=ot;switch(Rn){case it.image_compression.FAST:bn=1,rn=$e;break;case it.image_compression.MEDIUM:bn=6,rn=Pt;break;case it.image_compression.SLOW:bn=9,rn=xt}gr=Ge(gr,Gn,Mr,rn);var ei=Object(A.b)(gr,{level:bn});return it.__addimage__.arrayBufferToBinaryString(ei)},Ge=function(gr,Gn,Mr,Rn){for(var bn,rn,ei,fi=gr.length/Gn,Mi=new Uint8Array(gr.length+fi),$r=Fr(),En=0;En<fi;En+=1){if(ei=En*Gn,bn=gr.subarray(ei,ei+Gn),Rn)Mi.set(Rn(bn,Mr,rn),ei+En);else{for(var Hn,zt=$r.length,_t=[];Hn<zt;Hn+=1)_t[Hn]=$r[Hn](bn,Mr,rn);var Ft=Vr(_t.concat());Mi.set(_t[Ft],ei+En)}rn=bn}return Mi},nt=function(gr){var Gn=Array.apply([],gr);return Gn.unshift(0),Gn},$e=function(gr,Gn){var Mr,Rn=[],bn=gr.length;Rn[0]=1;for(var rn=0;rn<bn;rn+=1)Mr=gr[rn-Gn]||0,Rn[rn+1]=gr[rn]-Mr+256&255;return Rn},ot=function(gr,Gn,Mr){var Rn,bn=[],rn=gr.length;bn[0]=2;for(var ei=0;ei<rn;ei+=1)Rn=Mr&&Mr[ei]||0,bn[ei+1]=gr[ei]-Rn+256&255;return bn},Pt=function(gr,Gn,Mr){var Rn,bn,rn=[],ei=gr.length;rn[0]=3;for(var fi=0;fi<ei;fi+=1)Rn=gr[fi-Gn]||0,bn=Mr&&Mr[fi]||0,rn[fi+1]=gr[fi]+256-(Rn+bn>>>1)&255;return rn},xt=function(gr,Gn,Mr){var Rn,bn,rn,ei,fi=[],Mi=gr.length;fi[0]=4;for(var $r=0;$r<Mi;$r+=1)Rn=gr[$r-Gn]||0,bn=Mr&&Mr[$r]||0,rn=Mr&&Mr[$r-Gn]||0,ei=rr(Rn,bn,rn),fi[$r+1]=gr[$r]-ei+256&255;return fi},rr=function(gr,Gn,Mr){if(gr===Gn&&Gn===Mr)return gr;var Rn=Math.abs(Gn-Mr),bn=Math.abs(gr-Mr),rn=Math.abs(gr+Gn-Mr-Mr);return Rn<=bn&&Rn<=rn?gr:bn<=rn?Gn:Mr},Fr=function(){return[nt,$e,ot,Pt,xt]},Vr=function(gr){var Gn=gr.map(function(Mr){return Mr.reduce(function(Rn,bn){return Rn+Math.abs(bn)},0)});return Gn.indexOf(Math.min.apply(null,Gn))};it.processPNG=function(fn,gr,Gn,Mr){var Rn,bn,rn,ei,fi,Mi,$r,En,Hn,zt,_t,Ft,Wt,Vt,Lt,cr=this.decode.FLATE_DECODE,vr="";if(this.__addimage__.isArrayBuffer(fn)&&(fn=new Uint8Array(fn)),this.__addimage__.isArrayBufferView(fn)){if(fn=(rn=new at(fn)).imgData,bn=rn.bits,Rn=rn.colorSpace,fi=rn.colors,[4,6].indexOf(rn.colorType)!==-1){if(rn.bits===8){Hn=(En=rn.pixelBitlength==32?new Uint32Array(rn.decodePixels().buffer):rn.pixelBitlength==16?new Uint16Array(rn.decodePixels().buffer):new Uint8Array(rn.decodePixels().buffer)).length,_t=new Uint8Array(Hn*rn.colors),zt=new Uint8Array(Hn);var yr,Dr=rn.pixelBitlength-rn.bits;for(Vt=0,Lt=0;Vt<Hn;Vt++){for(Wt=En[Vt],yr=0;yr<Dr;)_t[Lt++]=Wt>>>yr&255,yr+=rn.bits;zt[Vt]=Wt>>>yr&255}}if(rn.bits===16){Hn=(En=new Uint32Array(rn.decodePixels().buffer)).length,_t=new Uint8Array(Hn*(32/rn.pixelBitlength)*rn.colors),zt=new Uint8Array(Hn*(32/rn.pixelBitlength)),Ft=rn.colors>1,Vt=0,Lt=0;for(var Kn=0;Vt<Hn;)Wt=En[Vt++],_t[Lt++]=Wt>>>0&255,Ft&&(_t[Lt++]=Wt>>>16&255,Wt=En[Vt++],_t[Lt++]=Wt>>>0&255),zt[Kn++]=Wt>>>16&255;bn=8}Mr!==it.image_compression.NONE&&Ne()?(fn=He(_t,rn.width*rn.colors,rn.colors,Mr),$r=He(zt,rn.width,1,Mr)):(fn=_t,$r=zt,cr=void 0)}if(rn.colorType===3&&(Rn=this.color_spaces.INDEXED,Mi=rn.palette,rn.transparency.indexed)){var Dn=rn.transparency.indexed,di=0;for(Vt=0,Hn=Dn.length;Vt<Hn;++Vt)di+=Dn[Vt];if((di/=255)===Hn-1&&Dn.indexOf(0)!==-1)ei=[Dn.indexOf(0)];else if(di!==Hn){for(En=rn.decodePixels(),zt=new Uint8Array(En.length),Vt=0,Hn=En.length;Vt<Hn;Vt++)zt[Vt]=Dn[En[Vt]];$r=He(zt,rn.width,1)}}var mn=function(Ur){var On;switch(Ur){case it.image_compression.FAST:On=11;break;case it.image_compression.MEDIUM:On=13;break;case it.image_compression.SLOW:On=14;break;default:On=12}return On}(Mr);return cr===this.decode.FLATE_DECODE&&(vr="/Predictor "+mn+" "),vr+="/Colors "+fi+" /BitsPerComponent "+bn+" /Columns "+rn.width,(this.__addimage__.isArrayBuffer(fn)||this.__addimage__.isArrayBufferView(fn))&&(fn=this.__addimage__.arrayBufferToBinaryString(fn)),($r&&this.__addimage__.isArrayBuffer($r)||this.__addimage__.isArrayBufferView($r))&&($r=this.__addimage__.arrayBufferToBinaryString($r)),{alias:Gn,data:fn,index:gr,filter:cr,decodeParameters:vr,transparency:ei,palette:Mi,sMask:$r,predictor:mn,width:rn.width,height:rn.height,bitsPerComponent:bn,colorSpace:Rn}}}}(U.API),function(it){it.processGIF89A=function(Ne,He,Ge,nt){var $e=new At(Ne),ot=$e.width,Pt=$e.height,xt=[];$e.decodeAndBlitFrameRGBA(0,xt);var rr={data:xt,width:ot,height:Pt},Fr=new Yt(100).encode(rr,100);return it.processJPEG.call(this,Fr,He,Ge,nt)},it.processGIF87A=it.processGIF89A}(U.API),Pr.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 it=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(it);for(var Ne=0;Ne<it;Ne++){var He=this.datav.getUint8(this.pos++,!0),Ge=this.datav.getUint8(this.pos++,!0),nt=this.datav.getUint8(this.pos++,!0),$e=this.datav.getUint8(this.pos++,!0);this.palette[Ne]={red:nt,green:Ge,blue:He,quad:$e}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Pr.prototype.parseBGR=function(){this.pos=this.offset;try{var it="bit"+this.bitPP,Ne=this.width*this.height*4;this.data=new Uint8Array(Ne),this[it]()}catch(He){d.log("bit decode error:"+He)}},Pr.prototype.bit1=function(){var it,Ne=Math.ceil(this.width/8),He=Ne%4;for(it=this.height-1;it>=0;it--){for(var Ge=this.bottom_up?it:this.height-1-it,nt=0;nt<Ne;nt++)for(var $e=this.datav.getUint8(this.pos++,!0),ot=Ge*this.width*4+8*nt*4,Pt=0;Pt<8&&8*nt+Pt<this.width;Pt++){var xt=this.palette[$e>>7-Pt&1];this.data[ot+4*Pt]=xt.blue,this.data[ot+4*Pt+1]=xt.green,this.data[ot+4*Pt+2]=xt.red,this.data[ot+4*Pt+3]=255}He!==0&&(this.pos+=4-He)}},Pr.prototype.bit4=function(){for(var it=Math.ceil(this.width/2),Ne=it%4,He=this.height-1;He>=0;He--){for(var Ge=this.bottom_up?He:this.height-1-He,nt=0;nt<it;nt++){var $e=this.datav.getUint8(this.pos++,!0),ot=Ge*this.width*4+2*nt*4,Pt=$e>>4,xt=15&$e,rr=this.palette[Pt];if(this.data[ot]=rr.blue,this.data[ot+1]=rr.green,this.data[ot+2]=rr.red,this.data[ot+3]=255,2*nt+1>=this.width)break;rr=this.palette[xt],this.data[ot+4]=rr.blue,this.data[ot+4+1]=rr.green,this.data[ot+4+2]=rr.red,this.data[ot+4+3]=255}Ne!==0&&(this.pos+=4-Ne)}},Pr.prototype.bit8=function(){for(var it=this.width%4,Ne=this.height-1;Ne>=0;Ne--){for(var He=this.bottom_up?Ne:this.height-1-Ne,Ge=0;Ge<this.width;Ge++){var nt=this.datav.getUint8(this.pos++,!0),$e=He*this.width*4+4*Ge;if(nt<this.palette.length){var ot=this.palette[nt];this.data[$e]=ot.red,this.data[$e+1]=ot.green,this.data[$e+2]=ot.blue,this.data[$e+3]=255}else this.data[$e]=255,this.data[$e+1]=255,this.data[$e+2]=255,this.data[$e+3]=255}it!==0&&(this.pos+=4-it)}},Pr.prototype.bit15=function(){for(var it=this.width%3,Ne=parseInt("11111",2),He=this.height-1;He>=0;He--){for(var Ge=this.bottom_up?He:this.height-1-He,nt=0;nt<this.width;nt++){var $e=this.datav.getUint16(this.pos,!0);this.pos+=2;var ot=($e&Ne)/Ne*255|0,Pt=($e>>5&Ne)/Ne*255|0,xt=($e>>10&Ne)/Ne*255|0,rr=$e>>15?255:0,Fr=Ge*this.width*4+4*nt;this.data[Fr]=xt,this.data[Fr+1]=Pt,this.data[Fr+2]=ot,this.data[Fr+3]=rr}this.pos+=it}},Pr.prototype.bit16=function(){for(var it=this.width%3,Ne=parseInt("11111",2),He=parseInt("111111",2),Ge=this.height-1;Ge>=0;Ge--){for(var nt=this.bottom_up?Ge:this.height-1-Ge,$e=0;$e<this.width;$e++){var ot=this.datav.getUint16(this.pos,!0);this.pos+=2;var Pt=(ot&Ne)/Ne*255|0,xt=(ot>>5&He)/He*255|0,rr=(ot>>11)/Ne*255|0,Fr=nt*this.width*4+4*$e;this.data[Fr]=rr,this.data[Fr+1]=xt,this.data[Fr+2]=Pt,this.data[Fr+3]=255}this.pos+=it}},Pr.prototype.bit24=function(){for(var it=this.height-1;it>=0;it--){for(var Ne=this.bottom_up?it:this.height-1-it,He=0;He<this.width;He++){var Ge=this.datav.getUint8(this.pos++,!0),nt=this.datav.getUint8(this.pos++,!0),$e=this.datav.getUint8(this.pos++,!0),ot=Ne*this.width*4+4*He;this.data[ot]=$e,this.data[ot+1]=nt,this.data[ot+2]=Ge,this.data[ot+3]=255}this.pos+=this.width%4}},Pr.prototype.bit32=function(){for(var it=this.height-1;it>=0;it--)for(var Ne=this.bottom_up?it:this.height-1-it,He=0;He<this.width;He++){var Ge=this.datav.getUint8(this.pos++,!0),nt=this.datav.getUint8(this.pos++,!0),$e=this.datav.getUint8(this.pos++,!0),ot=this.datav.getUint8(this.pos++,!0),Pt=Ne*this.width*4+4*He;this.data[Pt]=$e,this.data[Pt+1]=nt,this.data[Pt+2]=Ge,this.data[Pt+3]=ot}},Pr.prototype.getData=function(){return this.data},function(it){it.processBMP=function(Ne,He,Ge,nt){var $e=new Pr(Ne,!1),ot=$e.width,Pt=$e.height,xt={data:$e.getData(),width:ot,height:Pt},rr=new Yt(100).encode(xt,100);return it.processJPEG.call(this,rr,He,Ge,nt)}}(U.API),qr.prototype.getData=function(){return this.data},function(it){it.processWEBP=function(Ne,He,Ge,nt){var $e=new qr(Ne,!1),ot=$e.width,Pt=$e.height,xt={data:$e.getData(),width:ot,height:Pt},rr=new Yt(100).encode(xt,100);return it.processJPEG.call(this,rr,He,Ge,nt)}}(U.API),U.API.processRGBA=function(it,Ne,He){for(var Ge=it.data,nt=Ge.length,$e=new Uint8Array(nt/4*3),ot=new Uint8Array(nt/4),Pt=0,xt=0,rr=0;rr<nt;rr+=4){var Fr=Ge[rr],Vr=Ge[rr+1],fn=Ge[rr+2],gr=Ge[rr+3];$e[Pt++]=Fr,$e[Pt++]=Vr,$e[Pt++]=fn,ot[xt++]=gr}var Gn=this.__addimage__.arrayBufferToBinaryString($e);return{alpha:this.__addimage__.arrayBufferToBinaryString(ot),data:Gn,index:Ne,alias:He,colorSpace:"DeviceRGB",bitsPerComponent:8,width:it.width,height:it.height}},U.API.setLanguage=function(it){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"}[it]!==void 0&&(this.internal.languageSettings.languageCode=it,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},$t=U.API,Ot=$t.getCharWidthsArray=function(it,Ne){var He,Ge,nt=(Ne=Ne||{}).font||this.internal.getFont(),$e=Ne.fontSize||this.internal.getFontSize(),ot=Ne.charSpace||this.internal.getCharSpace(),Pt=Ne.widths?Ne.widths:nt.metadata.Unicode.widths,xt=Pt.fof?Pt.fof:1,rr=Ne.kerning?Ne.kerning:nt.metadata.Unicode.kerning,Fr=rr.fof?rr.fof:1,Vr=Ne.doKerning!==!1,fn=0,gr=it.length,Gn=0,Mr=Pt[0]||xt,Rn=[];for(He=0;He<gr;He++)Ge=it.charCodeAt(He),typeof nt.metadata.widthOfString=="function"?Rn.push((nt.metadata.widthOfGlyph(nt.metadata.characterToGlyph(Ge))+ot*(1e3/$e)||0)/1e3):(fn=Vr&&S()(rr[Ge])==="object"&&!isNaN(parseInt(rr[Ge][Gn],10))?rr[Ge][Gn]/Fr:0,Rn.push((Pt[Ge]||Mr)/xt+fn)),Gn=Ge;return Rn},ke=$t.getStringUnitWidth=function(it,Ne){var He=(Ne=Ne||{}).fontSize||this.internal.getFontSize(),Ge=Ne.font||this.internal.getFont(),nt=Ne.charSpace||this.internal.getCharSpace();return $t.processArabic&&(it=$t.processArabic(it)),typeof Ge.metadata.widthOfString=="function"?Ge.metadata.widthOfString(it,He,nt)/He:Ot.apply(this,arguments).reduce(function($e,ot){return $e+ot},0)},Me=function(Ne,He,Ge,nt){for(var $e=[],ot=0,Pt=Ne.length,xt=0;ot!==Pt&&xt+He[ot]<Ge;)xt+=He[ot],ot++;$e.push(Ne.slice(0,ot));var rr=ot;for(xt=0;ot!==Pt;)xt+He[ot]>nt&&($e.push(Ne.slice(rr,ot)),xt=0,rr=ot),xt+=He[ot],ot++;return rr!==ot&&$e.push(Ne.slice(rr,ot)),$e},Be=function(Ne,He,Ge){Ge||(Ge={});var nt,$e,ot,Pt,xt,rr,Fr,Vr=[],fn=[Vr],gr=Ge.textIndent||0,Gn=0,Mr=0,Rn=Ne.split(" "),bn=Ot.apply(this,[" ",Ge])[0];if(rr=Ge.lineIndent===-1?Rn[0].length+2:Ge.lineIndent||0){var rn=Array(rr).join(" "),ei=[];Rn.map(function(Mi){(Mi=Mi.split(/\s*\n/)).length>1?ei=ei.concat(Mi.map(function($r,En){return(En&&$r.length?`
`:"")+$r})):ei.push(Mi[0])}),Rn=ei,rr=ke.apply(this,[rn,Ge])}for(ot=0,Pt=Rn.length;ot<Pt;ot++){var fi=0;if(nt=Rn[ot],rr&&nt[0]==`
`&&(nt=nt.substr(1),fi=1),gr+Gn+(Mr=($e=Ot.apply(this,[nt,Ge])).reduce(function(Mi,$r){return Mi+$r},0))>He||fi){if(Mr>He){for(xt=Me.apply(this,[nt,$e,He-(gr+Gn),He]),Vr.push(xt.shift()),Vr=[xt.pop()];xt.length;)fn.push([xt.shift()]);Mr=$e.slice(nt.length-(Vr[0]?Vr[0].length:0)).reduce(function(Mi,$r){return Mi+$r},0)}else Vr=[nt];fn.push(Vr),gr=Mr+rr,Gn=bn}else Vr.push(nt),gr+=Gn+Mr,Gn=bn}return Fr=rr?function(Mi,$r){return($r?rn:"")+Mi.join(" ")}:function(Mi){return Mi.join(" ")},fn.map(Fr)},$t.splitTextToSize=function(it,Ne,He){var Ge,nt=(He=He||{}).fontSize||this.internal.getFontSize(),$e=function(Fr){if(Fr.widths&&Fr.kerning)return{widths:Fr.widths,kerning:Fr.kerning};var Vr=this.internal.getFont(Fr.fontName,Fr.fontStyle);return Vr.metadata.Unicode?{widths:Vr.metadata.Unicode.widths||{0:1},kerning:Vr.metadata.Unicode.kerning||{}}:{font:Vr.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,He);Ge=Array.isArray(it)?it:String(it).split(/\r?\n/);var ot=1*this.internal.scaleFactor*Ne/nt;$e.textIndent=He.textIndent?1*He.textIndent*this.internal.scaleFactor/nt:0,$e.lineIndent=He.lineIndent;var Pt,xt,rr=[];for(Pt=0,xt=Ge.length;Pt<xt;Pt++)rr=rr.concat(Be.apply(this,[Ge[Pt],ot,$e]));return rr},function(it){it.__fontmetrics__=it.__fontmetrics__||{};for(var Ne="klmnopqrstuvwxyz",He={},Ge={},nt=0;nt<Ne.length;nt++)He[Ne[nt]]="0123456789abcdef"[nt],Ge["0123456789abcdef"[nt]]=Ne[nt];var $e=function(fn){return"0x"+parseInt(fn,10).toString(16)},ot=it.__fontmetrics__.compress=function(Vr){var fn,gr,Gn,Mr,Rn=["{"];for(var bn in Vr){if(fn=Vr[bn],isNaN(parseInt(bn,10))?gr="'"+bn+"'":(bn=parseInt(bn,10),gr=(gr=$e(bn).slice(2)).slice(0,-1)+Ge[gr.slice(-1)]),typeof fn=="number")fn<0?(Gn=$e(fn).slice(3),Mr="-"):(Gn=$e(fn).slice(2),Mr=""),Gn=Mr+Gn.slice(0,-1)+Ge[Gn.slice(-1)];else{if(S()(fn)!=="object")throw new Error("Don't know what to do with value type "+S()(fn)+".");Gn=ot(fn)}Rn.push(gr+Gn)}return Rn.push("}"),Rn.join("")},Pt=it.__fontmetrics__.uncompress=function(Vr){if(typeof Vr!="string")throw new Error("Invalid argument passed to uncompress.");for(var fn,gr,Gn,Mr,Rn={},bn=1,rn=Rn,ei=[],fi="",Mi="",$r=Vr.length-1,En=1;En<$r;En+=1)(Mr=Vr[En])=="'"?fn?(Gn=fn.join(""),fn=void 0):fn=[]:fn?fn.push(Mr):Mr=="{"?(ei.push([rn,Gn]),rn={},Gn=void 0):Mr=="}"?((gr=ei.pop())[0][gr[1]]=rn,Gn=void 0,rn=gr[0]):Mr=="-"?bn=-1:Gn===void 0?He.hasOwnProperty(Mr)?(fi+=He[Mr],Gn=parseInt(fi,16)*bn,bn=1,fi=""):fi+=Mr:He.hasOwnProperty(Mr)?(Mi+=He[Mr],rn[Gn]=parseInt(Mi,16)*bn,bn=1,Gn=void 0,Mi=""):Mi+=Mr;return Rn},xt={codePages:["WinAnsiEncoding"],WinAnsiEncoding:Pt("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},rr={Unicode:{Courier:xt,"Courier-Bold":xt,"Courier-BoldOblique":xt,"Courier-Oblique":xt,Helvetica:xt,"Helvetica-Bold":xt,"Helvetica-BoldOblique":xt,"Helvetica-Oblique":xt,"Times-Roman":xt,"Times-Bold":xt,"Times-BoldItalic":xt,"Times-Italic":xt}},Fr={Unicode:{"Courier-Oblique":Pt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":Pt("{'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":Pt("{'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:Pt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":Pt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":Pt("{'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:Pt("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:Pt("{'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":Pt("{'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:Pt("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":Pt("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":Pt("{'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":Pt("{'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":Pt("{'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}}}")}};it.events.push(["addFont",function(Vr){var fn=Vr.font,gr=Fr.Unicode[fn.postScriptName];gr&&(fn.metadata.Unicode={},fn.metadata.Unicode.widths=gr.widths,fn.metadata.Unicode.kerning=gr.kerning);var Gn=rr.Unicode[fn.postScriptName];Gn&&(fn.metadata.Unicode.encoding=Gn,fn.encoding=Gn.codePages[0])}])}(U.API),function(it){var Ne=function(Ge){for(var nt=Ge.length,$e=new Uint8Array(nt),ot=0;ot<nt;ot++)$e[ot]=Ge.charCodeAt(ot);return $e};it.API.events.push(["addFont",function(He){var Ge=void 0,nt=He.font,$e=He.instance;if(!nt.isStandardFont){if($e===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+nt.postScriptName+"').");if(typeof(Ge=$e.existsFileInVFS(nt.postScriptName)===!1?$e.loadFile(nt.postScriptName):$e.getFileFromVFS(nt.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+nt.postScriptName+"').");!function(ot,Pt){Pt=/^\x00\x01\x00\x00/.test(Pt)?Ne(Pt):Ne(t(Pt)),ot.metadata=it.API.TTFFont.open(Pt),ot.metadata.Unicode=ot.metadata.Unicode||{encoding:{},kerning:{},widths:[]},ot.metadata.glyIdsUsed=[0]}(nt,Ge)}}])}(U),function(it){function Ne(){return(m.canvg?Promise.resolve(m.canvg):Promise.all([i.e(0),i.e(235)]).then(i.bind(null,"DXPr"))).catch(function(He){return Promise.reject(new Error("Could not load canvg: "+He))}).then(function(He){return He.default?He.default:He})}U.API.addSvgAsImage=function(He,Ge,nt,$e,ot,Pt,xt,rr){if(isNaN(Ge)||isNaN(nt))throw d.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN($e)||isNaN(ot))throw d.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var Fr=document.createElement("canvas");Fr.width=$e,Fr.height=ot;var Vr=Fr.getContext("2d");Vr.fillStyle="#fff",Vr.fillRect(0,0,Fr.width,Fr.height);var fn={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},gr=this;return Ne().then(function(Gn){return Gn.fromString(Vr,He,fn)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(Gn){return Gn.render(fn)}).then(function(){gr.addImage(Fr.toDataURL("image/jpeg",1),Ge,nt,$e,ot,xt,rr)})}}(),U.API.putTotalPages=function(it){var Ne,He=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(Ne=new RegExp(it,"g"),He=this.internal.getNumberOfPages()):(Ne=new RegExp(this.pdfEscape16(it,this.internal.getFont()),"g"),He=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var Ge=1;Ge<=this.internal.getNumberOfPages();Ge++)for(var nt=0;nt<this.internal.pages[Ge].length;nt++)this.internal.pages[Ge][nt]=this.internal.pages[Ge][nt].replace(Ne,He);return this},U.API.viewerPreferences=function(it,Ne){var He;it=it||{},Ne=Ne||!1;var Ge,nt,$e,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}},Pt=Object.keys(ot),xt=[],rr=0,Fr=0,Vr=0;function fn(Gn,Mr){var Rn,bn=!1;for(Rn=0;Rn<Gn.length;Rn+=1)Gn[Rn]===Mr&&(bn=!0);return bn}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(ot)),this.internal.viewerpreferences.isSubscribed=!1),He=this.internal.viewerpreferences.configuration,it==="reset"||Ne===!0){var gr=Pt.length;for(Vr=0;Vr<gr;Vr+=1)He[Pt[Vr]].value=He[Pt[Vr]].defaultValue,He[Pt[Vr]].explicitSet=!1}if(S()(it)==="object"){for(nt in it)if($e=it[nt],fn(Pt,nt)&&$e!==void 0){if(He[nt].type==="boolean"&&typeof $e=="boolean")He[nt].value=$e;else if(He[nt].type==="name"&&fn(He[nt].valueSet,$e))He[nt].value=$e;else if(He[nt].type==="integer"&&Number.isInteger($e))He[nt].value=$e;else if(He[nt].type==="array"){for(rr=0;rr<$e.length;rr+=1)if(Ge=!0,$e[rr].length===1&&typeof $e[rr][0]=="number")xt.push(String($e[rr]-1));else if($e[rr].length>1){for(Fr=0;Fr<$e[rr].length;Fr+=1)typeof $e[rr][Fr]!="number"&&(Ge=!1);Ge===!0&&xt.push([$e[rr][0]-1,$e[rr][1]-1].join(" "))}He[nt].value="["+xt.join(" ")+"]"}else He[nt].value=He[nt].defaultValue;He[nt].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var Gn,Mr=[];for(Gn in He)He[Gn].explicitSet===!0&&(He[Gn].type==="name"?Mr.push("/"+Gn+" /"+He[Gn].value):Mr.push("/"+Gn+" "+He[Gn].value));Mr.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+Mr.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=He,this},function(it){var Ne=function(){var nt='<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>',$e=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),ot=unescape(encodeURIComponent(nt)),Pt=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),xt=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),rr=unescape(encodeURIComponent("</x:xmpmeta>")),Fr=ot.length+Pt.length+xt.length+$e.length+rr.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Fr+" >>"),this.internal.write("stream"),this.internal.write($e+ot+Pt+xt+rr),this.internal.write("endstream"),this.internal.write("endobj")},He=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};it.addMetadata=function(Ge,nt){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:Ge,namespaceuri:nt||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",He),this.internal.events.subscribe("postPutResources",Ne)),this}}(U.API),function(it){var Ne=it.API,He=Ne.pdfEscape16=function($e,ot){for(var Pt,xt=ot.metadata.Unicode.widths,rr=["","0","00","000","0000"],Fr=[""],Vr=0,fn=$e.length;Vr<fn;++Vr){if(Pt=ot.metadata.characterToGlyph($e.charCodeAt(Vr)),ot.metadata.glyIdsUsed.push(Pt),ot.metadata.toUnicode[Pt]=$e.charCodeAt(Vr),xt.indexOf(Pt)==-1&&(xt.push(Pt),xt.push([parseInt(ot.metadata.widthOfGlyph(Pt),10)])),Pt=="0")return Fr.join("");Pt=Pt.toString(16),Fr.push(rr[4-Pt.length],Pt)}return Fr.join("")},Ge=function(ot){var Pt,xt,rr,Fr,Vr,fn,gr;for(Vr=`/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`,rr=[],fn=0,gr=(xt=Object.keys(ot).sort(function(Gn,Mr){return Gn-Mr})).length;fn<gr;fn++)Pt=xt[fn],rr.length>=100&&(Vr+=`
`+rr.length+` beginbfchar
`+rr.join(`
`)+`
endbfchar`,rr=[]),ot[Pt]!==void 0&&ot[Pt]!==null&&typeof ot[Pt].toString=="function"&&(Fr=("0000"+ot[Pt].toString(16)).slice(-4),Pt=("0000"+(+Pt).toString(16)).slice(-4),rr.push("<"+Pt+"><"+Fr+">"));return rr.length&&(Vr+=`
`+rr.length+` beginbfchar
`+rr.join(`
`)+`
endbfchar
`),Vr+=`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};Ne.events.push(["putFont",function($e){!function(ot){var Pt=ot.font,xt=ot.out,rr=ot.newObject,Fr=ot.putStream;if(Pt.metadata instanceof it.API.TTFFont&&Pt.encoding==="Identity-H"){for(var Vr=Pt.metadata.Unicode.widths,fn=Pt.metadata.subset.encode(Pt.metadata.glyIdsUsed,1),gr="",Gn=0;Gn<fn.length;Gn++)gr+=String.fromCharCode(fn[Gn]);var Mr=rr();Fr({data:gr,addLength1:!0,objectId:Mr}),xt("endobj");var Rn=rr();Fr({data:Ge(Pt.metadata.toUnicode),addLength1:!0,objectId:Rn}),xt("endobj");var bn=rr();xt("<<"),xt("/Type /FontDescriptor"),xt("/FontName /"+B(Pt.fontName)),xt("/FontFile2 "+Mr+" 0 R"),xt("/FontBBox "+it.API.PDFObject.convert(Pt.metadata.bbox)),xt("/Flags "+Pt.metadata.flags),xt("/StemV "+Pt.metadata.stemV),xt("/ItalicAngle "+Pt.metadata.italicAngle),xt("/Ascent "+Pt.metadata.ascender),xt("/Descent "+Pt.metadata.decender),xt("/CapHeight "+Pt.metadata.capHeight),xt(">>"),xt("endobj");var rn=rr();xt("<<"),xt("/Type /Font"),xt("/BaseFont /"+B(Pt.fontName)),xt("/FontDescriptor "+bn+" 0 R"),xt("/W "+it.API.PDFObject.convert(Vr)),xt("/CIDToGIDMap /Identity"),xt("/DW 1000"),xt("/Subtype /CIDFontType2"),xt("/CIDSystemInfo"),xt("<<"),xt("/Supplement 0"),xt("/Registry (Adobe)"),xt("/Ordering ("+Pt.encoding+")"),xt(">>"),xt(">>"),xt("endobj"),Pt.objectNumber=rr(),xt("<<"),xt("/Type /Font"),xt("/Subtype /Type0"),xt("/ToUnicode "+Rn+" 0 R"),xt("/BaseFont /"+B(Pt.fontName)),xt("/Encoding /"+Pt.encoding),xt("/DescendantFonts ["+rn+" 0 R]"),xt(">>"),xt("endobj"),Pt.isAlreadyPutted=!0}}($e)}]),Ne.events.push(["putFont",function($e){!function(ot){var Pt=ot.font,xt=ot.out,rr=ot.newObject,Fr=ot.putStream;if(Pt.metadata instanceof it.API.TTFFont&&Pt.encoding==="WinAnsiEncoding"){for(var Vr=Pt.metadata.rawData,fn="",gr=0;gr<Vr.length;gr++)fn+=String.fromCharCode(Vr[gr]);var Gn=rr();Fr({data:fn,addLength1:!0,objectId:Gn}),xt("endobj");var Mr=rr();Fr({data:Ge(Pt.metadata.toUnicode),addLength1:!0,objectId:Mr}),xt("endobj");var Rn=rr();xt("<<"),xt("/Descent "+Pt.metadata.decender),xt("/CapHeight "+Pt.metadata.capHeight),xt("/StemV "+Pt.metadata.stemV),xt("/Type /FontDescriptor"),xt("/FontFile2 "+Gn+" 0 R"),xt("/Flags 96"),xt("/FontBBox "+it.API.PDFObject.convert(Pt.metadata.bbox)),xt("/FontName /"+B(Pt.fontName)),xt("/ItalicAngle "+Pt.metadata.italicAngle),xt("/Ascent "+Pt.metadata.ascender),xt(">>"),xt("endobj"),Pt.objectNumber=rr();for(var bn=0;bn<Pt.metadata.hmtx.widths.length;bn++)Pt.metadata.hmtx.widths[bn]=parseInt(Pt.metadata.hmtx.widths[bn]*(1e3/Pt.metadata.head.unitsPerEm));xt("<</Subtype/TrueType/Type/Font/ToUnicode "+Mr+" 0 R/BaseFont/"+B(Pt.fontName)+"/FontDescriptor "+Rn+" 0 R/Encoding/"+Pt.encoding+" /FirstChar 29 /LastChar 255 /Widths "+it.API.PDFObject.convert(Pt.metadata.hmtx.widths)+">>"),xt("endobj"),Pt.isAlreadyPutted=!0}}($e)}]);var nt=function(ot){var Pt,xt=ot.text||"",rr=ot.x,Fr=ot.y,Vr=ot.options||{},fn=ot.mutex||{},gr=fn.pdfEscape,Gn=fn.activeFontKey,Mr=fn.fonts,Rn=Gn,bn="",rn=0,ei="",fi=Mr[Rn].encoding;if(Mr[Rn].encoding!=="Identity-H")return{text:xt,x:rr,y:Fr,options:Vr,mutex:fn};for(ei=xt,Rn=Gn,Array.isArray(xt)&&(ei=xt[0]),rn=0;rn<ei.length;rn+=1)Mr[Rn].metadata.hasOwnProperty("cmap")&&(Pt=Mr[Rn].metadata.cmap.unicode.codeMap[ei[rn].charCodeAt(0)]),Pt||ei[rn].charCodeAt(0)<256&&Mr[Rn].metadata.hasOwnProperty("Unicode")?bn+=ei[rn]:bn+="";var Mi="";return parseInt(Rn.slice(1))<14||fi==="WinAnsiEncoding"?Mi=gr(bn,Rn).split("").map(function($r){return $r.charCodeAt(0).toString(16)}).join(""):fi==="Identity-H"&&(Mi=He(bn,Mr[Rn])),fn.isHex=!0,{text:Mi,x:rr,y:Fr,options:Vr,mutex:fn}};Ne.events.push(["postProcessText",function($e){var ot=$e.text||"",Pt=[],xt={text:ot,x:$e.x,y:$e.y,options:$e.options,mutex:$e.mutex};if(Array.isArray(ot)){var rr=0;for(rr=0;rr<ot.length;rr+=1)Array.isArray(ot[rr])&&ot[rr].length===3?Pt.push([nt(Object.assign({},xt,{text:ot[rr][0]})).text,ot[rr][1],ot[rr][2]]):Pt.push(nt(Object.assign({},xt,{text:ot[rr]})).text);$e.text=Pt}else $e.text=nt(Object.assign({},xt,{text:ot})).text}])}(U),function(it){var Ne=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};it.existsFileInVFS=function(He){return Ne.call(this),this.internal.vFS[He]!==void 0},it.addFileToVFS=function(He,Ge){return Ne.call(this),this.internal.vFS[He]=Ge,this},it.getFileFromVFS=function(He){return Ne.call(this),this.internal.vFS[He]!==void 0?this.internal.vFS[He]:null}}(U.API),function(it){it.__bidiEngine__=it.prototype.__bidiEngine__=function(Ge){var nt,$e,ot,Pt,xt,rr,Fr,Vr=Ne,fn=[[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]],gr=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],Gn={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},Mr={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},Rn=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],bn=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)$/),rn=!1,ei=0;this.__bidiEngine__={};var fi=function(Wt){var Vt=Wt.charCodeAt(),Lt=Vt>>8,cr=Mr[Lt];return cr!==void 0?Vr[256*cr+(255&Vt)]:Lt===252||Lt===253?"AL":bn.test(Lt)?"L":Lt===8?"R":"N"},Mi=function(Wt){for(var Vt,Lt=0;Lt<Wt.length;Lt++){if((Vt=fi(Wt.charAt(Lt)))==="L")return!1;if(Vt==="R")return!0}return!1},$r=function(Wt,Vt,Lt,cr){var vr,yr,Dr,Kn,Dn=Vt[cr];switch(Dn){case"L":case"R":rn=!1;break;case"N":case"AN":break;case"EN":rn&&(Dn="AN");break;case"AL":rn=!0,Dn="R";break;case"WS":Dn="N";break;case"CS":cr<1||cr+1>=Vt.length||(vr=Lt[cr-1])!=="EN"&&vr!=="AN"||(yr=Vt[cr+1])!=="EN"&&yr!=="AN"?Dn="N":rn&&(yr="AN"),Dn=yr===vr?yr:"N";break;case"ES":Dn=(vr=cr>0?Lt[cr-1]:"B")==="EN"&&cr+1<Vt.length&&Vt[cr+1]==="EN"?"EN":"N";break;case"ET":if(cr>0&&Lt[cr-1]==="EN"){Dn="EN";break}if(rn){Dn="N";break}for(Dr=cr+1,Kn=Vt.length;Dr<Kn&&Vt[Dr]==="ET";)Dr++;Dn=Dr<Kn&&Vt[Dr]==="EN"?"EN":"N";break;case"NSM":if(ot&&!Pt){for(Kn=Vt.length,Dr=cr+1;Dr<Kn&&Vt[Dr]==="NSM";)Dr++;if(Dr<Kn){var di=Wt[cr],mn=di>=1425&&di<=2303||di===64286;if(vr=Vt[Dr],mn&&(vr==="R"||vr==="AL")){Dn="R";break}}}Dn=cr<1||(vr=Vt[cr-1])==="B"?"N":Lt[cr-1];break;case"B":rn=!1,nt=!0,Dn=ei;break;case"S":$e=!0,Dn="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":rn=!1;break;case"BN":Dn="N"}return Dn},En=function(Wt,Vt,Lt){var cr=Wt.split("");return Lt&&Hn(cr,Lt,{hiLevel:ei}),cr.reverse(),Vt&&Vt.reverse(),cr.join("")},Hn=function(Wt,Vt,Lt){var cr,vr,yr,Dr,Kn,Dn=-1,di=Wt.length,mn=0,Ur=[],On=ei?gr:fn,zn=[];for(rn=!1,nt=!1,$e=!1,vr=0;vr<di;vr++)zn[vr]=fi(Wt[vr]);for(yr=0;yr<di;yr++){if(Kn=mn,Ur[yr]=$r(Wt,zn,Ur,yr),cr=240&(mn=On[Kn][Gn[Ur[yr]]]),mn&=15,Vt[yr]=Dr=On[mn][5],cr>0)if(cr===16){for(vr=Dn;vr<yr;vr++)Vt[vr]=1;Dn=-1}else Dn=-1;if(On[mn][6])Dn===-1&&(Dn=yr);else if(Dn>-1){for(vr=Dn;vr<yr;vr++)Vt[vr]=Dr;Dn=-1}zn[yr]==="B"&&(Vt[yr]=0),Lt.hiLevel|=Dr}$e&&function(qn,oi,xi){for(var Di=0;Di<xi;Di++)if(qn[Di]==="S"){oi[Di]=ei;for(var Li=Di-1;Li>=0&&qn[Li]==="WS";Li--)oi[Li]=ei}}(zn,Vt,di)},zt=function(Wt,Vt,Lt,cr,vr){if(!(vr.hiLevel<Wt)){if(Wt===1&&ei===1&&!nt)return Vt.reverse(),void(Lt&&Lt.reverse());for(var yr,Dr,Kn,Dn,di=Vt.length,mn=0;mn<di;){if(cr[mn]>=Wt){for(Kn=mn+1;Kn<di&&cr[Kn]>=Wt;)Kn++;for(Dn=mn,Dr=Kn-1;Dn<Dr;Dn++,Dr--)yr=Vt[Dn],Vt[Dn]=Vt[Dr],Vt[Dr]=yr,Lt&&(yr=Lt[Dn],Lt[Dn]=Lt[Dr],Lt[Dr]=yr);mn=Kn}mn++}}},_t=function(Wt,Vt,Lt){var cr=Wt.split(""),vr={hiLevel:ei};return Lt||(Lt=[]),Hn(cr,Lt,vr),function(yr,Dr,Kn){if(Kn.hiLevel!==0&&Fr)for(var Dn,di=0;di<yr.length;di++)Dr[di]===1&&(Dn=Rn.indexOf(yr[di]))>=0&&(yr[di]=Rn[Dn+1])}(cr,Lt,vr),zt(2,cr,Vt,Lt,vr),zt(1,cr,Vt,Lt,vr),cr.join("")};return this.__bidiEngine__.doBidiReorder=function(Ft,Wt,Vt){if(function(cr,vr){if(vr)for(var yr=0;yr<cr.length;yr++)vr[yr]=yr;Pt===void 0&&(Pt=Mi(cr)),rr===void 0&&(rr=Mi(cr))}(Ft,Wt),ot||!xt||rr)if(ot&&xt&&Pt^rr)ei=Pt?1:0,Ft=En(Ft,Wt,Vt);else if(!ot&&xt&&rr)ei=Pt?1:0,Ft=_t(Ft,Wt,Vt),Ft=En(Ft,Wt);else if(!ot||Pt||xt||rr){if(ot&&!xt&&Pt^rr)Ft=En(Ft,Wt),Pt?(ei=0,Ft=_t(Ft,Wt,Vt)):(ei=1,Ft=_t(Ft,Wt,Vt),Ft=En(Ft,Wt));else if(ot&&Pt&&!xt&&rr)ei=1,Ft=_t(Ft,Wt,Vt),Ft=En(Ft,Wt);else if(!ot&&!xt&&Pt^rr){var Lt=Fr;Pt?(ei=1,Ft=_t(Ft,Wt,Vt),ei=0,Fr=!1,Ft=_t(Ft,Wt,Vt),Fr=Lt):(ei=0,Ft=_t(Ft,Wt,Vt),Ft=En(Ft,Wt),ei=1,Fr=!1,Ft=_t(Ft,Wt,Vt),Fr=Lt,Ft=En(Ft,Wt))}}else ei=0,Ft=_t(Ft,Wt,Vt);else ei=Pt?1:0,Ft=_t(Ft,Wt,Vt);return Ft},this.__bidiEngine__.setOptions=function(Ft){Ft&&(ot=Ft.isInputVisual,xt=Ft.isOutputVisual,Pt=Ft.isInputRtl,rr=Ft.isOutputRtl,Fr=Ft.isSymmetricSwapping)},this.__bidiEngine__.setOptions(Ge),this.__bidiEngine__};var Ne=["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"],He=new it.__bidiEngine__({isInputVisual:!0});it.API.events.push(["postProcessText",function(Ge){var nt=Ge.text,$e=(Ge.x,Ge.y,Ge.options||{}),ot=(Ge.mutex,$e.lang,[]);if($e.isInputVisual=typeof $e.isInputVisual!="boolean"||$e.isInputVisual,He.setOptions($e),Object.prototype.toString.call(nt)==="[object Array]"){var Pt=0;for(ot=[],Pt=0;Pt<nt.length;Pt+=1)Object.prototype.toString.call(nt[Pt])==="[object Array]"?ot.push([He.doBidiReorder(nt[Pt][0]),nt[Pt][1],nt[Pt][2]]):ot.push([He.doBidiReorder(nt[Pt])]);Ge.text=ot}else Ge.text=He.doBidiReorder(nt);He.setOptions({isInputVisual:!0})}])}(U),U.API.TTFFont=function(){function it(Ne){var He;if(this.rawData=Ne,He=this.contents=new Gt(Ne),this.contents.pos=4,He.readString(4)==="ttcf")throw new Error("TTCF not supported.");He.pos=0,this.parse(),this.subset=new zi(this),this.registerTTF()}return it.open=function(Ne){return new it(Ne)},it.prototype.parse=function(){return this.directory=new vt(this.contents),this.head=new Jt(this),this.name=new Lr(this),this.cmap=new er(this),this.toUnicode={},this.hhea=new Mt(this),this.maxp=new dn(this),this.hmtx=new gn(this),this.post=new Hr(this),this.os2=new Zt(this),this.loca=new Ni(this),this.glyf=new Zn(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]},it.prototype.registerTTF=function(){var Ne,He,Ge,nt,$e;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var ot,Pt,xt,rr;for(rr=[],ot=0,Pt=(xt=this.bbox).length;ot<Pt;ot++)Ne=xt[ot],rr.push(Math.round(Ne*this.scaleFactor));return rr}.call(this),this.stemV=0,this.post.exists?(Ge=255&(nt=this.post.italic_angle),(32768&(He=nt>>16))!=0&&(He=-(1+(65535^He))),this.italicAngle=+(He+"."+Ge)):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=($e=this.familyClass)===1||$e===2||$e===3||$e===4||$e===5||$e===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")},it.prototype.characterToGlyph=function(Ne){var He;return((He=this.cmap.unicode)!=null?He.codeMap[Ne]:void 0)||0},it.prototype.widthOfGlyph=function(Ne){var He;return He=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(Ne).advance*He},it.prototype.widthOfString=function(Ne,He,Ge){var nt,$e,ot,Pt;for(ot=0,$e=0,Pt=(Ne=""+Ne).length;0<=Pt?$e<Pt:$e>Pt;$e=0<=Pt?++$e:--$e)nt=Ne.charCodeAt($e),ot+=this.widthOfGlyph(this.characterToGlyph(nt))+Ge*(1e3/He)||0;return ot*(He/1e3)},it.prototype.lineHeight=function(Ne,He){var Ge;return He==null&&(He=!1),Ge=He?this.lineGap:0,(this.ascender+Ge-this.decender)/1e3*Ne},it}();var An,Gt=function(){function it(Ne){this.data=Ne!=null?Ne:[],this.pos=0,this.length=this.data.length}return it.prototype.readByte=function(){return this.data[this.pos++]},it.prototype.writeByte=function(Ne){return this.data[this.pos++]=Ne},it.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},it.prototype.writeUInt32=function(Ne){return this.writeByte(Ne>>>24&255),this.writeByte(Ne>>16&255),this.writeByte(Ne>>8&255),this.writeByte(255&Ne)},it.prototype.readInt32=function(){var Ne;return(Ne=this.readUInt32())>=2147483648?Ne-4294967296:Ne},it.prototype.writeInt32=function(Ne){return Ne<0&&(Ne+=4294967296),this.writeUInt32(Ne)},it.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},it.prototype.writeUInt16=function(Ne){return this.writeByte(Ne>>8&255),this.writeByte(255&Ne)},it.prototype.readInt16=function(){var Ne;return(Ne=this.readUInt16())>=32768?Ne-65536:Ne},it.prototype.writeInt16=function(Ne){return Ne<0&&(Ne+=65536),this.writeUInt16(Ne)},it.prototype.readString=function(Ne){var He,Ge;for(Ge=[],He=0;0<=Ne?He<Ne:He>Ne;He=0<=Ne?++He:--He)Ge[He]=String.fromCharCode(this.readByte());return Ge.join("")},it.prototype.writeString=function(Ne){var He,Ge,nt;for(nt=[],He=0,Ge=Ne.length;0<=Ge?He<Ge:He>Ge;He=0<=Ge?++He:--He)nt.push(this.writeByte(Ne.charCodeAt(He)));return nt},it.prototype.readShort=function(){return this.readInt16()},it.prototype.writeShort=function(Ne){return this.writeInt16(Ne)},it.prototype.readLongLong=function(){var Ne,He,Ge,nt,$e,ot,Pt,xt;return Ne=this.readByte(),He=this.readByte(),Ge=this.readByte(),nt=this.readByte(),$e=this.readByte(),ot=this.readByte(),Pt=this.readByte(),xt=this.readByte(),128&Ne?-1*(72057594037927940*(255^Ne)+281474976710656*(255^He)+1099511627776*(255^Ge)+4294967296*(255^nt)+16777216*(255^$e)+65536*(255^ot)+256*(255^Pt)+(255^xt)+1):72057594037927940*Ne+281474976710656*He+1099511627776*Ge+4294967296*nt+16777216*$e+65536*ot+256*Pt+xt},it.prototype.writeLongLong=function(Ne){var He,Ge;return He=Math.floor(Ne/4294967296),Ge=4294967295&Ne,this.writeByte(He>>24&255),this.writeByte(He>>16&255),this.writeByte(He>>8&255),this.writeByte(255&He),this.writeByte(Ge>>24&255),this.writeByte(Ge>>16&255),this.writeByte(Ge>>8&255),this.writeByte(255&Ge)},it.prototype.readInt=function(){return this.readInt32()},it.prototype.writeInt=function(Ne){return this.writeInt32(Ne)},it.prototype.read=function(Ne){var He,Ge;for(He=[],Ge=0;0<=Ne?Ge<Ne:Ge>Ne;Ge=0<=Ne?++Ge:--Ge)He.push(this.readByte());return He},it.prototype.write=function(Ne){var He,Ge,nt,$e;for($e=[],Ge=0,nt=Ne.length;Ge<nt;Ge++)He=Ne[Ge],$e.push(this.writeByte(He));return $e},it}(),vt=function(){var it;function Ne(He){var Ge,nt,$e;for(this.scalarType=He.readInt(),this.tableCount=He.readShort(),this.searchRange=He.readShort(),this.entrySelector=He.readShort(),this.rangeShift=He.readShort(),this.tables={},nt=0,$e=this.tableCount;0<=$e?nt<$e:nt>$e;nt=0<=$e?++nt:--nt)Ge={tag:He.readString(4),checksum:He.readInt(),offset:He.readInt(),length:He.readInt()},this.tables[Ge.tag]=Ge}return Ne.prototype.encode=function(He){var Ge,nt,$e,ot,Pt,xt,rr,Fr,Vr,fn,gr,Gn,Mr;for(Mr in gr=Object.keys(He).length,xt=Math.log(2),Vr=16*Math.floor(Math.log(gr)/xt),ot=Math.floor(Vr/xt),Fr=16*gr-Vr,(nt=new Gt).writeInt(this.scalarType),nt.writeShort(gr),nt.writeShort(Vr),nt.writeShort(ot),nt.writeShort(Fr),$e=16*gr,rr=nt.pos+$e,Pt=null,Gn=[],He)for(fn=He[Mr],nt.writeString(Mr),nt.writeInt(it(fn)),nt.writeInt(rr),nt.writeInt(fn.length),Gn=Gn.concat(fn),Mr==="head"&&(Pt=rr),rr+=fn.length;rr%4;)Gn.push(0),rr++;return nt.write(Gn),Ge=2981146554-it(nt.data),nt.pos=Pt+8,nt.writeUInt32(Ge),nt.data},it=function(Ge){var nt,$e,ot,Pt;for(Ge=ri.call(Ge);Ge.length%4;)Ge.push(0);for(ot=new Gt(Ge),$e=0,nt=0,Pt=Ge.length;nt<Pt;nt=nt+=4)$e+=ot.readUInt32();return 4294967295&$e},Ne}(),bt={}.hasOwnProperty,fr=function(Ne,He){for(var Ge in He)bt.call(He,Ge)&&(Ne[Ge]=He[Ge]);function nt(){this.constructor=Ne}return nt.prototype=He.prototype,Ne.prototype=new nt,Ne.__super__=He.prototype,Ne};An=function(){function it(Ne){var He;this.file=Ne,He=this.file.directory.tables[this.tag],this.exists=!!He,He&&(this.offset=He.offset,this.length=He.length,this.parse(this.file.contents))}return it.prototype.parse=function(){},it.prototype.encode=function(){},it.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},it}();var Jt=function(it){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return fr(Ne,An),Ne.prototype.tag="head",Ne.prototype.parse=function(He){return He.pos=this.offset,this.version=He.readInt(),this.revision=He.readInt(),this.checkSumAdjustment=He.readInt(),this.magicNumber=He.readInt(),this.flags=He.readShort(),this.unitsPerEm=He.readShort(),this.created=He.readLongLong(),this.modified=He.readLongLong(),this.xMin=He.readShort(),this.yMin=He.readShort(),this.xMax=He.readShort(),this.yMax=He.readShort(),this.macStyle=He.readShort(),this.lowestRecPPEM=He.readShort(),this.fontDirectionHint=He.readShort(),this.indexToLocFormat=He.readShort(),this.glyphDataFormat=He.readShort()},Ne.prototype.encode=function(He){var Ge;return(Ge=new Gt).writeInt(this.version),Ge.writeInt(this.revision),Ge.writeInt(this.checkSumAdjustment),Ge.writeInt(this.magicNumber),Ge.writeShort(this.flags),Ge.writeShort(this.unitsPerEm),Ge.writeLongLong(this.created),Ge.writeLongLong(this.modified),Ge.writeShort(this.xMin),Ge.writeShort(this.yMin),Ge.writeShort(this.xMax),Ge.writeShort(this.yMax),Ge.writeShort(this.macStyle),Ge.writeShort(this.lowestRecPPEM),Ge.writeShort(this.fontDirectionHint),Ge.writeShort(He),Ge.writeShort(this.glyphDataFormat),Ge.data},Ne}(),Ut=function(){function it(Ne,He){var Ge,nt,$e,ot,Pt,xt,rr,Fr,Vr,fn,gr,Gn,Mr,Rn,bn,rn,ei;switch(this.platformID=Ne.readUInt16(),this.encodingID=Ne.readShort(),this.offset=He+Ne.readInt(),Vr=Ne.pos,Ne.pos=this.offset,this.format=Ne.readUInt16(),this.length=Ne.readUInt16(),this.language=Ne.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(xt=0;xt<256;++xt)this.codeMap[xt]=Ne.readByte();break;case 4:for(gr=Ne.readUInt16(),fn=gr/2,Ne.pos+=6,$e=function(){var fi,Mi;for(Mi=[],xt=fi=0;0<=fn?fi<fn:fi>fn;xt=0<=fn?++fi:--fi)Mi.push(Ne.readUInt16());return Mi}(),Ne.pos+=2,Mr=function(){var fi,Mi;for(Mi=[],xt=fi=0;0<=fn?fi<fn:fi>fn;xt=0<=fn?++fi:--fi)Mi.push(Ne.readUInt16());return Mi}(),rr=function(){var fi,Mi;for(Mi=[],xt=fi=0;0<=fn?fi<fn:fi>fn;xt=0<=fn?++fi:--fi)Mi.push(Ne.readUInt16());return Mi}(),Fr=function(){var fi,Mi;for(Mi=[],xt=fi=0;0<=fn?fi<fn:fi>fn;xt=0<=fn?++fi:--fi)Mi.push(Ne.readUInt16());return Mi}(),nt=(this.length-Ne.pos+this.offset)/2,Pt=function(){var fi,Mi;for(Mi=[],xt=fi=0;0<=nt?fi<nt:fi>nt;xt=0<=nt?++fi:--fi)Mi.push(Ne.readUInt16());return Mi}(),xt=bn=0,ei=$e.length;bn<ei;xt=++bn)for(Rn=$e[xt],Ge=rn=Gn=Mr[xt];Gn<=Rn?rn<=Rn:rn>=Rn;Ge=Gn<=Rn?++rn:--rn)Fr[xt]===0?ot=Ge+rr[xt]:(ot=Pt[Fr[xt]/2+(Ge-Gn)-(fn-xt)]||0)!==0&&(ot+=rr[xt]),this.codeMap[Ge]=65535&ot}Ne.pos=Vr}return it.encode=function(Ne,He){var Ge,nt,$e,ot,Pt,xt,rr,Fr,Vr,fn,gr,Gn,Mr,Rn,bn,rn,ei,fi,Mi,$r,En,Hn,zt,_t,Ft,Wt,Vt,Lt,cr,vr,yr,Dr,Kn,Dn,di,mn,Ur,On,zn,qn,oi,xi,Di,Li,aa,ma;switch(Lt=new Gt,ot=Object.keys(Ne).sort(function(na,Aa){return na-Aa}),He){case"macroman":for(Mr=0,Rn=function(){var na=[];for(Gn=0;Gn<256;++Gn)na.push(0);return na}(),rn={0:0},$e={},cr=0,Kn=ot.length;cr<Kn;cr++)rn[Di=Ne[nt=ot[cr]]]==null&&(rn[Di]=++Mr),$e[nt]={old:Ne[nt],new:rn[Ne[nt]]},Rn[nt]=rn[Ne[nt]];return Lt.writeUInt16(1),Lt.writeUInt16(0),Lt.writeUInt32(12),Lt.writeUInt16(0),Lt.writeUInt16(262),Lt.writeUInt16(0),Lt.write(Rn),{charMap:$e,subtable:Lt.data,maxGlyphID:Mr+1};case"unicode":for(Wt=[],Vr=[],ei=0,rn={},Ge={},bn=rr=null,vr=0,Dn=ot.length;vr<Dn;vr++)rn[Mi=Ne[nt=ot[vr]]]==null&&(rn[Mi]=++ei),Ge[nt]={old:Mi,new:rn[Mi]},Pt=rn[Mi]-nt,bn!=null&&Pt===rr||(bn&&Vr.push(bn),Wt.push(nt),rr=Pt),bn=nt;for(bn&&Vr.push(bn),Vr.push(65535),Wt.push(65535),_t=2*(zt=Wt.length),Hn=2*Math.pow(Math.log(zt)/Math.LN2,2),fn=Math.log(Hn/2)/Math.LN2,En=2*zt-Hn,xt=[],$r=[],gr=[],Gn=yr=0,di=Wt.length;yr<di;Gn=++yr){if(Ft=Wt[Gn],Fr=Vr[Gn],Ft===65535){xt.push(0),$r.push(0);break}if(Ft-(Vt=Ge[Ft].new)>=32768)for(xt.push(0),$r.push(2*(gr.length+zt-Gn)),nt=Dr=Ft;Ft<=Fr?Dr<=Fr:Dr>=Fr;nt=Ft<=Fr?++Dr:--Dr)gr.push(Ge[nt].new);else xt.push(Vt-Ft),$r.push(0)}for(Lt.writeUInt16(3),Lt.writeUInt16(1),Lt.writeUInt32(12),Lt.writeUInt16(4),Lt.writeUInt16(16+8*zt+2*gr.length),Lt.writeUInt16(0),Lt.writeUInt16(_t),Lt.writeUInt16(Hn),Lt.writeUInt16(fn),Lt.writeUInt16(En),oi=0,mn=Vr.length;oi<mn;oi++)nt=Vr[oi],Lt.writeUInt16(nt);for(Lt.writeUInt16(0),xi=0,Ur=Wt.length;xi<Ur;xi++)nt=Wt[xi],Lt.writeUInt16(nt);for(Li=0,On=xt.length;Li<On;Li++)Pt=xt[Li],Lt.writeUInt16(Pt);for(aa=0,zn=$r.length;aa<zn;aa++)fi=$r[aa],Lt.writeUInt16(fi);for(ma=0,qn=gr.length;ma<qn;ma++)Mr=gr[ma],Lt.writeUInt16(Mr);return{charMap:Ge,subtable:Lt.data,maxGlyphID:ei+1}}},it}(),er=function(it){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return fr(Ne,An),Ne.prototype.tag="cmap",Ne.prototype.parse=function(He){var Ge,nt,$e;for(He.pos=this.offset,this.version=He.readUInt16(),$e=He.readUInt16(),this.tables=[],this.unicode=null,nt=0;0<=$e?nt<$e:nt>$e;nt=0<=$e?++nt:--nt)Ge=new Ut(He,this.offset),this.tables.push(Ge),Ge.isUnicode&&this.unicode==null&&(this.unicode=Ge);return!0},Ne.encode=function(He,Ge){var nt,$e;return Ge==null&&(Ge="macroman"),nt=Ut.encode(He,Ge),($e=new Gt).writeUInt16(0),$e.writeUInt16(1),nt.table=$e.data.concat(nt.subtable),nt},Ne}(),Mt=function(it){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return fr(Ne,An),Ne.prototype.tag="hhea",Ne.prototype.parse=function(He){return He.pos=this.offset,this.version=He.readInt(),this.ascender=He.readShort(),this.decender=He.readShort(),this.lineGap=He.readShort(),this.advanceWidthMax=He.readShort(),this.minLeftSideBearing=He.readShort(),this.minRightSideBearing=He.readShort(),this.xMaxExtent=He.readShort(),this.caretSlopeRise=He.readShort(),this.caretSlopeRun=He.readShort(),this.caretOffset=He.readShort(),He.pos+=8,this.metricDataFormat=He.readShort(),this.numberOfMetrics=He.readUInt16()},Ne}(),Zt=function(it){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return fr(Ne,An),Ne.prototype.tag="OS/2",Ne.prototype.parse=function(He){if(He.pos=this.offset,this.version=He.readUInt16(),this.averageCharWidth=He.readShort(),this.weightClass=He.readUInt16(),this.widthClass=He.readUInt16(),this.type=He.readShort(),this.ySubscriptXSize=He.readShort(),this.ySubscriptYSize=He.readShort(),this.ySubscriptXOffset=He.readShort(),this.ySubscriptYOffset=He.readShort(),this.ySuperscriptXSize=He.readShort(),this.ySuperscriptYSize=He.readShort(),this.ySuperscriptXOffset=He.readShort(),this.ySuperscriptYOffset=He.readShort(),this.yStrikeoutSize=He.readShort(),this.yStrikeoutPosition=He.readShort(),this.familyClass=He.readShort(),this.panose=function(){var Ge,nt;for(nt=[],Ge=0;Ge<10;++Ge)nt.push(He.readByte());return nt}(),this.charRange=function(){var Ge,nt;for(nt=[],Ge=0;Ge<4;++Ge)nt.push(He.readInt());return nt}(),this.vendorID=He.readString(4),this.selection=He.readShort(),this.firstCharIndex=He.readShort(),this.lastCharIndex=He.readShort(),this.version>0&&(this.ascent=He.readShort(),this.descent=He.readShort(),this.lineGap=He.readShort(),this.winAscent=He.readShort(),this.winDescent=He.readShort(),this.codePageRange=function(){var Ge,nt;for(nt=[],Ge=0;Ge<2;Ge=++Ge)nt.push(He.readInt());return nt}(),this.version>1))return this.xHeight=He.readShort(),this.capHeight=He.readShort(),this.defaultChar=He.readShort(),this.breakChar=He.readShort(),this.maxContext=He.readShort()},Ne}(),Hr=function(it){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return fr(Ne,An),Ne.prototype.tag="post",Ne.prototype.parse=function(He){var Ge,nt,$e;switch(He.pos=this.offset,this.format=He.readInt(),this.italicAngle=He.readInt(),this.underlinePosition=He.readShort(),this.underlineThickness=He.readShort(),this.isFixedPitch=He.readInt(),this.minMemType42=He.readInt(),this.maxMemType42=He.readInt(),this.minMemType1=He.readInt(),this.maxMemType1=He.readInt(),this.format){case 65536:break;case 131072:var ot;for(nt=He.readUInt16(),this.glyphNameIndex=[],ot=0;0<=nt?ot<nt:ot>nt;ot=0<=nt?++ot:--ot)this.glyphNameIndex.push(He.readUInt16());for(this.names=[],$e=[];He.pos<this.offset+this.length;)Ge=He.readByte(),$e.push(this.names.push(He.readString(Ge)));return $e;case 151552:return nt=He.readUInt16(),this.offsets=He.read(nt);case 196608:break;case 262144:return this.map=function(){var Pt,xt,rr;for(rr=[],ot=Pt=0,xt=this.file.maxp.numGlyphs;0<=xt?Pt<xt:Pt>xt;ot=0<=xt?++Pt:--Pt)rr.push(He.readUInt32());return rr}.call(this)}},Ne}(),Ir=function(Ne,He){this.raw=Ne,this.length=Ne.length,this.platformID=He.platformID,this.encodingID=He.encodingID,this.languageID=He.languageID},Lr=function(it){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return fr(Ne,An),Ne.prototype.tag="name",Ne.prototype.parse=function(He){var Ge,nt,$e,ot,Pt,xt,rr,Fr,Vr,fn,gr;for(He.pos=this.offset,He.readShort(),Ge=He.readShort(),xt=He.readShort(),nt=[],ot=0;0<=Ge?ot<Ge:ot>Ge;ot=0<=Ge?++ot:--ot)nt.push({platformID:He.readShort(),encodingID:He.readShort(),languageID:He.readShort(),nameID:He.readShort(),length:He.readShort(),offset:this.offset+xt+He.readShort()});for(rr={},ot=Vr=0,fn=nt.length;Vr<fn;ot=++Vr)$e=nt[ot],He.pos=$e.offset,Fr=He.readString($e.length),Pt=new Ir(Fr,$e),rr[gr=$e.nameID]==null&&(rr[gr]=[]),rr[$e.nameID].push(Pt);this.strings=rr,this.copyright=rr[0],this.fontFamily=rr[1],this.fontSubfamily=rr[2],this.uniqueSubfamily=rr[3],this.fontName=rr[4],this.version=rr[5];try{this.postscriptName=rr[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(Gn){this.postscriptName=rr[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=rr[7],this.manufacturer=rr[8],this.designer=rr[9],this.description=rr[10],this.vendorUrl=rr[11],this.designerUrl=rr[12],this.license=rr[13],this.licenseUrl=rr[14],this.preferredFamily=rr[15],this.preferredSubfamily=rr[17],this.compatibleFull=rr[18],this.sampleText=rr[19]},Ne}(),dn=function(it){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return fr(Ne,An),Ne.prototype.tag="maxp",Ne.prototype.parse=function(He){return He.pos=this.offset,this.version=He.readInt(),this.numGlyphs=He.readUInt16(),this.maxPoints=He.readUInt16(),this.maxContours=He.readUInt16(),this.maxCompositePoints=He.readUInt16(),this.maxComponentContours=He.readUInt16(),this.maxZones=He.readUInt16(),this.maxTwilightPoints=He.readUInt16(),this.maxStorage=He.readUInt16(),this.maxFunctionDefs=He.readUInt16(),this.maxInstructionDefs=He.readUInt16(),this.maxStackElements=He.readUInt16(),this.maxSizeOfInstructions=He.readUInt16(),this.maxComponentElements=He.readUInt16(),this.maxComponentDepth=He.readUInt16()},Ne}(),gn=function(it){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return fr(Ne,An),Ne.prototype.tag="hmtx",Ne.prototype.parse=function(He){var Ge,nt,$e,ot,Pt,xt,rr;for(He.pos=this.offset,this.metrics=[],Ge=0,xt=this.file.hhea.numberOfMetrics;0<=xt?Ge<xt:Ge>xt;Ge=0<=xt?++Ge:--Ge)this.metrics.push({advance:He.readUInt16(),lsb:He.readInt16()});for($e=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var Fr,Vr;for(Vr=[],Ge=Fr=0;0<=$e?Fr<$e:Fr>$e;Ge=0<=$e?++Fr:--Fr)Vr.push(He.readInt16());return Vr}(),this.widths=function(){var Fr,Vr,fn,gr;for(gr=[],Fr=0,Vr=(fn=this.metrics).length;Fr<Vr;Fr++)ot=fn[Fr],gr.push(ot.advance);return gr}.call(this),nt=this.widths[this.widths.length-1],rr=[],Ge=Pt=0;0<=$e?Pt<$e:Pt>$e;Ge=0<=$e?++Pt:--Pt)rr.push(this.widths.push(nt));return rr},Ne.prototype.forGlyph=function(He){return He in this.metrics?this.metrics[He]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[He-this.metrics.length]}},Ne}(),ri=[].slice,Zn=function(it){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return fr(Ne,An),Ne.prototype.tag="glyf",Ne.prototype.parse=function(){return this.cache={}},Ne.prototype.glyphFor=function(He){var Ge,nt,$e,ot,Pt,xt,rr,Fr,Vr,fn;return He in this.cache?this.cache[He]:(ot=this.file.loca,Ge=this.file.contents,nt=ot.indexOf(He),($e=ot.lengthOf(He))===0?this.cache[He]=null:(Ge.pos=this.offset+nt,Pt=(xt=new Gt(Ge.read($e))).readShort(),Fr=xt.readShort(),fn=xt.readShort(),rr=xt.readShort(),Vr=xt.readShort(),this.cache[He]=Pt===-1?new Ci(xt,Fr,fn,rr,Vr):new pi(xt,Pt,Fr,fn,rr,Vr),this.cache[He]))},Ne.prototype.encode=function(He,Ge,nt){var $e,ot,Pt,xt,rr;for(Pt=[],ot=[],xt=0,rr=Ge.length;xt<rr;xt++)$e=He[Ge[xt]],ot.push(Pt.length),$e&&(Pt=Pt.concat($e.encode(nt)));return ot.push(Pt.length),{table:Pt,offsets:ot}},Ne}(),pi=function(){function it(Ne,He,Ge,nt,$e,ot){this.raw=Ne,this.numberOfContours=He,this.xMin=Ge,this.yMin=nt,this.xMax=$e,this.yMax=ot,this.compound=!1}return it.prototype.encode=function(){return this.raw.data},it}(),Ci=function(){function it(Ne,He,Ge,nt,$e){var ot,Pt;for(this.raw=Ne,this.xMin=He,this.yMin=Ge,this.xMax=nt,this.yMax=$e,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],ot=this.raw;Pt=ot.readShort(),this.glyphOffsets.push(ot.pos),this.glyphIDs.push(ot.readUInt16()),32&Pt;)ot.pos+=1&Pt?4:2,128&Pt?ot.pos+=8:64&Pt?ot.pos+=4:8&Pt&&(ot.pos+=2)}return it.prototype.encode=function(){var Ne,He,Ge;for(He=new Gt(ri.call(this.raw.data)),Ne=0,Ge=this.glyphIDs.length;Ne<Ge;++Ne)He.pos=this.glyphOffsets[Ne];return He.data},it}(),Ni=function(it){function Ne(){return Ne.__super__.constructor.apply(this,arguments)}return fr(Ne,An),Ne.prototype.tag="loca",Ne.prototype.parse=function(He){var Ge,nt;return He.pos=this.offset,Ge=this.file.head.indexToLocFormat,this.offsets=Ge===0?function(){var $e,ot;for(ot=[],nt=0,$e=this.length;nt<$e;nt+=2)ot.push(2*He.readUInt16());return ot}.call(this):function(){var $e,ot;for(ot=[],nt=0,$e=this.length;nt<$e;nt+=4)ot.push(He.readUInt32());return ot}.call(this)},Ne.prototype.indexOf=function(He){return this.offsets[He]},Ne.prototype.lengthOf=function(He){return this.offsets[He+1]-this.offsets[He]},Ne.prototype.encode=function(He,Ge){for(var nt=new Uint32Array(this.offsets.length),$e=0,ot=0,Pt=0;Pt<nt.length;++Pt)if(nt[Pt]=$e,ot<Ge.length&&Ge[ot]==Pt){++ot,nt[Pt]=$e;var xt=this.offsets[Pt],rr=this.offsets[Pt+1]-xt;rr>0&&($e+=rr)}for(var Fr=new Array(4*nt.length),Vr=0;Vr<nt.length;++Vr)Fr[4*Vr+3]=255&nt[Vr],Fr[4*Vr+2]=(65280&nt[Vr])>>8,Fr[4*Vr+1]=(16711680&nt[Vr])>>16,Fr[4*Vr]=(4278190080&nt[Vr])>>24;return Fr},Ne}(),zi=function(){function it(Ne){this.font=Ne,this.subset={},this.unicodes={},this.next=33}return it.prototype.generateCmap=function(){var Ne,He,Ge,nt,$e;for(He in nt=this.font.cmap.tables[0].codeMap,Ne={},$e=this.subset)Ge=$e[He],Ne[He]=nt[Ge];return Ne},it.prototype.glyphsFor=function(Ne){var He,Ge,nt,$e,ot,Pt,xt;for(nt={},ot=0,Pt=Ne.length;ot<Pt;ot++)nt[$e=Ne[ot]]=this.font.glyf.glyphFor($e);for($e in He=[],nt)((Ge=nt[$e])!=null?Ge.compound:void 0)&&He.push.apply(He,Ge.glyphIDs);if(He.length>0)for($e in xt=this.glyphsFor(He))Ge=xt[$e],nt[$e]=Ge;return nt},it.prototype.encode=function(Ne,He){var Ge,nt,$e,ot,Pt,xt,rr,Fr,Vr,fn,gr,Gn,Mr,Rn,bn;for(nt in Ge=er.encode(this.generateCmap(),"unicode"),ot=this.glyphsFor(Ne),gr={0:0},bn=Ge.charMap)gr[(xt=bn[nt]).old]=xt.new;for(Gn in fn=Ge.maxGlyphID,ot)Gn in gr||(gr[Gn]=fn++);return Fr=function(rn){var ei,fi;for(ei in fi={},rn)fi[rn[ei]]=ei;return fi}(gr),Vr=Object.keys(Fr).sort(function(rn,ei){return rn-ei}),Mr=function(){var rn,ei,fi;for(fi=[],rn=0,ei=Vr.length;rn<ei;rn++)Pt=Vr[rn],fi.push(Fr[Pt]);return fi}(),$e=this.font.glyf.encode(ot,Mr,gr),rr=this.font.loca.encode($e.offsets,Mr),Rn={cmap:this.font.cmap.raw(),glyf:$e.table,loca:rr,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(He)},this.font.os2.exists&&(Rn["OS/2"]=this.font.os2.raw()),this.font.directory.encode(Rn)},it}();U.API.PDFObject=function(){var it;function Ne(){}return it=function(Ge,nt){return(Array(nt+1).join("0")+Ge).slice(-nt)},Ne.convert=function(He){var Ge,nt,$e,ot;if(Array.isArray(He))return"["+function(){var Pt,xt,rr;for(rr=[],Pt=0,xt=He.length;Pt<xt;Pt++)Ge=He[Pt],rr.push(Ne.convert(Ge));return rr}().join(" ")+"]";if(typeof He=="string")return"/"+He;if(He!=null?He.isString:void 0)return"("+He+")";if(He instanceof Date)return"(D:"+it(He.getUTCFullYear(),4)+it(He.getUTCMonth(),2)+it(He.getUTCDate(),2)+it(He.getUTCHours(),2)+it(He.getUTCMinutes(),2)+it(He.getUTCSeconds(),2)+"Z)";if({}.toString.call(He)==="[object Object]"){for(nt in $e=["<<"],He)ot=He[nt],$e.push("/"+nt+" "+Ne.convert(ot));return $e.push(">>"),$e.join(`
`)}return""+He},Ne}(),D.default=U}.call(this,i("yLpj"))},e4Nc:function(k,D,i){var y=i("fGT3"),p=i("k+1r"),S=i("JHgL"),A=i("pSRY"),m=i("H8j4");function f(d){var l=-1,o=d==null?0:d.length;for(this.clear();++l<o;){var n=d[l];this.set(n[0],n[1])}}f.prototype.clear=y,f.prototype.delete=p,f.prototype.get=S,f.prototype.has=A,f.prototype.set=m,k.exports=f},e5VY:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("YNAk"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},e5cp:function(k,D,i){var y=i("fmRc"),p=i("or5M"),S=i("HDyB"),A=i("seXi"),m=i("QqLw"),f=i("Z0cm"),d=i("DSRE"),l=i("c6wG"),o=1,n="[object Arguments]",t="[object Array]",a="[object Object]",e=Object.prototype,u=e.hasOwnProperty;function r(s,c,h,g,v,b){var w=f(s),x=f(c),T=w?t:m(s),O=x?t:m(c);T=T==n?a:T,O=O==n?a:O;var E=T==a,C=O==a,I=T==O;if(I&&d(s)){if(!d(c))return!1;w=!0,E=!1}if(I&&!E)return b||(b=new y),w||l(s)?p(s,c,h,g,v,b):S(s,c,T,h,g,v,b);if(!(h&o)){var _=E&&u.call(s,"__wrapped__"),F=C&&u.call(c,"__wrapped__");if(_||F){var R=_?s.value():s,B=F?c.value():c;return b||(b=new y),v(R,B,h,g,b)}}return I?(b||(b=new y),A(s,c,h,g,v,b)):!1}k.exports=r},e7zE:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("lPiR"),i("WYAk"))})(this,function(y){return function(){var p=y,S=p.lib,A=S.Base,m=S.WordArray,f=p.algo,d=f.SHA256,l=f.HMAC,o=f.PBKDF2=A.extend({cfg:A.extend({keySize:128/32,hasher:d,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,a){for(var e=this.cfg,u=l.create(e.hasher,t),r=m.create(),s=m.create([1]),c=r.words,h=s.words,g=e.keySize,v=e.iterations;c.length<g;){var b=u.update(a).finalize(s);u.reset();for(var w=b.words,x=w.length,T=b,O=1;O<v;O++){T=u.finalize(T),u.reset();for(var E=T.words,C=0;C<x;C++)w[C]^=E[C]}r.concat(b),h[0]++}return r.sigBytes=g*4,r}});p.PBKDF2=function(n,t,a){return o.create(a).compute(n,t)}}(),y.PBKDF2})},eIcI:function(k,D,i){var y=i("bYtY"),p=i("hM6l");function S(m,f,d){p.call(this,m,f,d),this.type="value",this.angle=0,this.name="",this.model}y.inherits(S,p);var A=S;k.exports=A},eJH7:function(k,D,i){var y=i("bYtY");function p(S){var A=S.polar;if(A){y.isArray(A)||(A=[A]);var m=[];y.each(A,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)):m.push(f)}),S.polar=m}y.each(S.series,function(f){f&&f.type==="radar"&&f.polarIndex&&(f.radarIndex=f.polarIndex)})}k.exports=p},eP3c:function(k,D,i){"use strict";function y(Ke){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(Ke)}Object.defineProperty(D,"__esModule",{value:!0}),D.inflateReset=he,D.inflateReset2=ye,D.inflateResetKeep=Te,D.inflateInit=tt,D.inflateInit2=Ie,D.inflate=wt,D.inflateEnd=Ht,D.inflateGetHeader=Dt,D.inflateSetDictionary=Tt,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 p=o(i("6BzB")),S=d(i("xlC8")),A=d(i("QV2g")),m=d(i("sjKO")),f=d(i("JSwD"));function d(Ke){return Ke&&Ke.__esModule?Ke:{default:Ke}}function l(){if(typeof WeakMap!="function")return null;var Ke=new WeakMap;return l=function(){return Ke},Ke}function o(Ke){if(Ke&&Ke.__esModule)return Ke;if(Ke===null||y(Ke)!=="object"&&typeof Ke!="function")return{default:Ke};var de=l();if(de&&de.has(Ke))return de.get(Ke);var oe={},lt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var qe in Ke)if(Object.prototype.hasOwnProperty.call(Ke,qe)){var pe=lt?Object.getOwnPropertyDescriptor(Ke,qe):null;pe&&(pe.get||pe.set)?Object.defineProperty(oe,qe,pe):oe[qe]=Ke[qe]}return oe.default=Ke,de&&de.set(Ke,oe),oe}var n=0,t=1,a=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 g=-2;D.Z_STREAM_ERROR=g;var v=-3;D.Z_DATA_ERROR=v;var b=-4;D.Z_MEM_ERROR=b;var w=-5;D.Z_BUF_ERROR=w;var x=8;D.Z_DEFLATED=x;var T=1,O=2,E=3,C=4,I=5,_=6,F=7,R=8,B=9,M=10,X=11,P=12,z=13,W=14,U=15,V=16,Q=17,G=18,te=19,$=20,le=21,re=22,Se=23,Re=24,Pe=25,Je=26,Ve=27,ct=28,Ue=29,ue=30,rt=31,ge=32,Z=852,Y=592,ee=15,fe=ee;function be(Ke){return(Ke>>>24&255)+(Ke>>>8&65280)+((Ke&65280)<<8)+((Ke&255)<<24)}function Ce(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new p.Buf16(320),this.work=new p.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function Te(Ke){var de;return!Ke||!Ke.state?g:(de=Ke.state,Ke.total_in=Ke.total_out=de.total=0,Ke.msg="",de.wrap&&(Ke.adler=de.wrap&1),de.mode=T,de.last=0,de.havedict=0,de.dmax=32768,de.head=null,de.hold=0,de.bits=0,de.lencode=de.lendyn=new p.Buf32(Z),de.distcode=de.distdyn=new p.Buf32(Y),de.sane=1,de.back=-1,s)}function he(Ke){var de;return!Ke||!Ke.state?g:(de=Ke.state,de.wsize=0,de.whave=0,de.wnext=0,Te(Ke))}function ye(Ke,de){var oe,lt;return!Ke||!Ke.state?g:(lt=Ke.state,de<0?(oe=0,de=-de):(oe=(de>>4)+1,de<48&&(de&=15)),de&&(de<8||de>15)?g:(lt.window!==null&&lt.wbits!==de&&(lt.window=null),lt.wrap=oe,lt.wbits=de,he(Ke)))}function Ie(Ke,de){var oe,lt;return Ke?(lt=new Ce,Ke.state=lt,lt.window=null,oe=ye(Ke,de),oe!==s&&(Ke.state=null),oe):g}function tt(Ke){return Ie(Ke,fe)}var pt=!0,st,Fe;function ft(Ke){if(pt){var de;for(st=new p.Buf32(512),Fe=new p.Buf32(32),de=0;de<144;)Ke.lens[de++]=8;for(;de<256;)Ke.lens[de++]=9;for(;de<280;)Ke.lens[de++]=7;for(;de<288;)Ke.lens[de++]=8;for((0,f.default)(t,Ke.lens,0,288,st,0,Ke.work,{bits:9}),de=0;de<32;)Ke.lens[de++]=5;(0,f.default)(a,Ke.lens,0,32,Fe,0,Ke.work,{bits:5}),pt=!1}Ke.lencode=st,Ke.lenbits=9,Ke.distcode=Fe,Ke.distbits=5}function et(Ke,de,oe,lt){var qe,pe=Ke.state;return pe.window===null&&(pe.wsize=1<<pe.wbits,pe.wnext=0,pe.whave=0,pe.window=new p.Buf8(pe.wsize)),lt>=pe.wsize?(p.arraySet(pe.window,de,oe-pe.wsize,pe.wsize,0),pe.wnext=0,pe.whave=pe.wsize):(qe=pe.wsize-pe.wnext,qe>lt&&(qe=lt),p.arraySet(pe.window,de,oe-lt,qe,pe.wnext),lt-=qe,lt?(p.arraySet(pe.window,de,oe-lt,lt,0),pe.wnext=lt,pe.whave=pe.wsize):(pe.wnext+=qe,pe.wnext===pe.wsize&&(pe.wnext=0),pe.whave<pe.wsize&&(pe.whave+=qe))),0}function wt(Ke,de){var oe,lt,qe,pe,Kt,hr,gt,nr,mr,cn,Ar,xr,qt,ar,Et=0,en,Mn,Yn,ci,Vi,jn,Qn,$t,Ot=new p.Buf8(4),ke,Me,Be=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!Ke||!Ke.state||!Ke.output||!Ke.input&&Ke.avail_in!==0)return g;oe=Ke.state,oe.mode===P&&(oe.mode=z),Kt=Ke.next_out,qe=Ke.output,gt=Ke.avail_out,pe=Ke.next_in,lt=Ke.input,hr=Ke.avail_in,nr=oe.hold,mr=oe.bits,cn=hr,Ar=gt,$t=s;e:for(;;)switch(oe.mode){case T:if(oe.wrap===0){oe.mode=z;break}for(;mr<16;){if(hr===0)break e;hr--,nr+=lt[pe++]<<mr,mr+=8}if(oe.wrap&2&&nr===35615){oe.check=0,Ot[0]=nr&255,Ot[1]=nr>>>8&255,oe.check=(0,A.default)(oe.check,Ot,2,0),nr=0,mr=0,oe.mode=O;break}if(oe.flags=0,oe.head&&(oe.head.done=!1),!(oe.wrap&1)||(((nr&255)<<8)+(nr>>8))%31){Ke.msg="incorrect header check",oe.mode=ue;break}if((nr&15)!==x){Ke.msg="unknown compression method",oe.mode=ue;break}if(nr>>>=4,mr-=4,Qn=(nr&15)+8,oe.wbits===0)oe.wbits=Qn;else if(Qn>oe.wbits){Ke.msg="invalid window size",oe.mode=ue;break}oe.dmax=1<<Qn,Ke.adler=oe.check=1,oe.mode=nr&512?M:P,nr=0,mr=0;break;case O:for(;mr<16;){if(hr===0)break e;hr--,nr+=lt[pe++]<<mr,mr+=8}if(oe.flags=nr,(oe.flags&255)!==x){Ke.msg="unknown compression method",oe.mode=ue;break}if(oe.flags&57344){Ke.msg="unknown header flags set",oe.mode=ue;break}oe.head&&(oe.head.text=nr>>8&1),oe.flags&512&&(Ot[0]=nr&255,Ot[1]=nr>>>8&255,oe.check=(0,A.default)(oe.check,Ot,2,0)),nr=0,mr=0,oe.mode=E;case E:for(;mr<32;){if(hr===0)break e;hr--,nr+=lt[pe++]<<mr,mr+=8}oe.head&&(oe.head.time=nr),oe.flags&512&&(Ot[0]=nr&255,Ot[1]=nr>>>8&255,Ot[2]=nr>>>16&255,Ot[3]=nr>>>24&255,oe.check=(0,A.default)(oe.check,Ot,4,0)),nr=0,mr=0,oe.mode=C;case C:for(;mr<16;){if(hr===0)break e;hr--,nr+=lt[pe++]<<mr,mr+=8}oe.head&&(oe.head.xflags=nr&255,oe.head.os=nr>>8),oe.flags&512&&(Ot[0]=nr&255,Ot[1]=nr>>>8&255,oe.check=(0,A.default)(oe.check,Ot,2,0)),nr=0,mr=0,oe.mode=I;case I:if(oe.flags&1024){for(;mr<16;){if(hr===0)break e;hr--,nr+=lt[pe++]<<mr,mr+=8}oe.length=nr,oe.head&&(oe.head.extra_len=nr),oe.flags&512&&(Ot[0]=nr&255,Ot[1]=nr>>>8&255,oe.check=(0,A.default)(oe.check,Ot,2,0)),nr=0,mr=0}else oe.head&&(oe.head.extra=null);oe.mode=_;case _:if(oe.flags&1024&&(xr=oe.length,xr>hr&&(xr=hr),xr&&(oe.head&&(Qn=oe.head.extra_len-oe.length,oe.head.extra||(oe.head.extra=new Array(oe.head.extra_len)),p.arraySet(oe.head.extra,lt,pe,xr,Qn)),oe.flags&512&&(oe.check=(0,A.default)(oe.check,lt,xr,pe)),hr-=xr,pe+=xr,oe.length-=xr),oe.length))break e;oe.length=0,oe.mode=F;case F:if(oe.flags&2048){if(hr===0)break e;xr=0;do Qn=lt[pe+xr++],oe.head&&Qn&&oe.length<65536&&(oe.head.name+=String.fromCharCode(Qn));while(Qn&&xr<hr);if(oe.flags&512&&(oe.check=(0,A.default)(oe.check,lt,xr,pe)),hr-=xr,pe+=xr,Qn)break e}else oe.head&&(oe.head.name=null);oe.length=0,oe.mode=R;case R:if(oe.flags&4096){if(hr===0)break e;xr=0;do Qn=lt[pe+xr++],oe.head&&Qn&&oe.length<65536&&(oe.head.comment+=String.fromCharCode(Qn));while(Qn&&xr<hr);if(oe.flags&512&&(oe.check=(0,A.default)(oe.check,lt,xr,pe)),hr-=xr,pe+=xr,Qn)break e}else oe.head&&(oe.head.comment=null);oe.mode=B;case B:if(oe.flags&512){for(;mr<16;){if(hr===0)break e;hr--,nr+=lt[pe++]<<mr,mr+=8}if(nr!==(oe.check&65535)){Ke.msg="header crc mismatch",oe.mode=ue;break}nr=0,mr=0}oe.head&&(oe.head.hcrc=oe.flags>>9&1,oe.head.done=!0),Ke.adler=oe.check=0,oe.mode=P;break;case M:for(;mr<32;){if(hr===0)break e;hr--,nr+=lt[pe++]<<mr,mr+=8}Ke.adler=oe.check=be(nr),nr=0,mr=0,oe.mode=X;case X:if(oe.havedict===0)return Ke.next_out=Kt,Ke.avail_out=gt,Ke.next_in=pe,Ke.avail_in=hr,oe.hold=nr,oe.bits=mr,h;Ke.adler=oe.check=1,oe.mode=P;case P:if(de===u||de===r)break e;case z:if(oe.last){nr>>>=mr&7,mr-=mr&7,oe.mode=Ve;break}for(;mr<3;){if(hr===0)break e;hr--,nr+=lt[pe++]<<mr,mr+=8}oe.last=nr&1,nr>>>=1,mr-=1;switch(nr&3){case 0:oe.mode=W;break;case 1:if(ft(oe),oe.mode=$,de===r){nr>>>=2,mr-=2;break e}break;case 2:oe.mode=Q;break;case 3:Ke.msg="invalid block type",oe.mode=ue}nr>>>=2,mr-=2;break;case W:for(nr>>>=mr&7,mr-=mr&7;mr<32;){if(hr===0)break e;hr--,nr+=lt[pe++]<<mr,mr+=8}if((nr&65535)!==(nr>>>16^65535)){Ke.msg="invalid stored block lengths",oe.mode=ue;break}if(oe.length=nr&65535,nr=0,mr=0,oe.mode=U,de===r)break e;case U:oe.mode=V;case V:if(xr=oe.length,xr){if(xr>hr&&(xr=hr),xr>gt&&(xr=gt),xr===0)break e;p.arraySet(qe,lt,pe,xr,Kt),hr-=xr,pe+=xr,gt-=xr,Kt+=xr,oe.length-=xr;break}oe.mode=P;break;case Q:for(;mr<14;){if(hr===0)break e;hr--,nr+=lt[pe++]<<mr,mr+=8}if(oe.nlen=(nr&31)+257,nr>>>=5,mr-=5,oe.ndist=(nr&31)+1,nr>>>=5,mr-=5,oe.ncode=(nr&15)+4,nr>>>=4,mr-=4,oe.nlen>286||oe.ndist>30){Ke.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(;mr<3;){if(hr===0)break e;hr--,nr+=lt[pe++]<<mr,mr+=8}oe.lens[Be[oe.have++]]=nr&7,nr>>>=3,mr-=3}for(;oe.have<19;)oe.lens[Be[oe.have++]]=0;if(oe.lencode=oe.lendyn,oe.lenbits=7,ke={bits:oe.lenbits},$t=(0,f.default)(n,oe.lens,0,19,oe.lencode,0,oe.work,ke),oe.lenbits=ke.bits,$t){Ke.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(;!(Et=oe.lencode[nr&(1<<oe.lenbits)-1],en=Et>>>24,Mn=Et>>>16&255,Yn=Et&65535,en<=mr);){if(hr===0)break e;hr--,nr+=lt[pe++]<<mr,mr+=8}if(Yn<16)nr>>>=en,mr-=en,oe.lens[oe.have++]=Yn;else{if(Yn===16){for(Me=en+2;mr<Me;){if(hr===0)break e;hr--,nr+=lt[pe++]<<mr,mr+=8}if(nr>>>=en,mr-=en,oe.have===0){Ke.msg="invalid bit length repeat",oe.mode=ue;break}Qn=oe.lens[oe.have-1],xr=3+(nr&3),nr>>>=2,mr-=2}else if(Yn===17){for(Me=en+3;mr<Me;){if(hr===0)break e;hr--,nr+=lt[pe++]<<mr,mr+=8}nr>>>=en,mr-=en,Qn=0,xr=3+(nr&7),nr>>>=3,mr-=3}else{for(Me=en+7;mr<Me;){if(hr===0)break e;hr--,nr+=lt[pe++]<<mr,mr+=8}nr>>>=en,mr-=en,Qn=0,xr=11+(nr&127),nr>>>=7,mr-=7}if(oe.have+xr>oe.nlen+oe.ndist){Ke.msg="invalid bit length repeat",oe.mode=ue;break}for(;xr--;)oe.lens[oe.have++]=Qn}}if(oe.mode===ue)break;if(oe.lens[256]===0){Ke.msg="invalid code -- missing end-of-block",oe.mode=ue;break}if(oe.lenbits=9,ke={bits:oe.lenbits},$t=(0,f.default)(t,oe.lens,0,oe.nlen,oe.lencode,0,oe.work,ke),oe.lenbits=ke.bits,$t){Ke.msg="invalid literal/lengths set",oe.mode=ue;break}if(oe.distbits=6,oe.distcode=oe.distdyn,ke={bits:oe.distbits},$t=(0,f.default)(a,oe.lens,oe.nlen,oe.ndist,oe.distcode,0,oe.work,ke),oe.distbits=ke.bits,$t){Ke.msg="invalid distances set",oe.mode=ue;break}if(oe.mode=$,de===r)break e;case $:oe.mode=le;case le:if(hr>=6&&gt>=258){Ke.next_out=Kt,Ke.avail_out=gt,Ke.next_in=pe,Ke.avail_in=hr,oe.hold=nr,oe.bits=mr,(0,m.default)(Ke,Ar),Kt=Ke.next_out,qe=Ke.output,gt=Ke.avail_out,pe=Ke.next_in,lt=Ke.input,hr=Ke.avail_in,nr=oe.hold,mr=oe.bits,oe.mode===P&&(oe.back=-1);break}for(oe.back=0;!(Et=oe.lencode[nr&(1<<oe.lenbits)-1],en=Et>>>24,Mn=Et>>>16&255,Yn=Et&65535,en<=mr);){if(hr===0)break e;hr--,nr+=lt[pe++]<<mr,mr+=8}if(Mn&&(Mn&240)===0){for(ci=en,Vi=Mn,jn=Yn;!(Et=oe.lencode[jn+((nr&(1<<ci+Vi)-1)>>ci)],en=Et>>>24,Mn=Et>>>16&255,Yn=Et&65535,ci+en<=mr);){if(hr===0)break e;hr--,nr+=lt[pe++]<<mr,mr+=8}nr>>>=ci,mr-=ci,oe.back+=ci}if(nr>>>=en,mr-=en,oe.back+=en,oe.length=Yn,Mn===0){oe.mode=Je;break}if(Mn&32){oe.back=-1,oe.mode=P;break}if(Mn&64){Ke.msg="invalid literal/length code",oe.mode=ue;break}oe.extra=Mn&15,oe.mode=re;case re:if(oe.extra){for(Me=oe.extra;mr<Me;){if(hr===0)break e;hr--,nr+=lt[pe++]<<mr,mr+=8}oe.length+=nr&(1<<oe.extra)-1,nr>>>=oe.extra,mr-=oe.extra,oe.back+=oe.extra}oe.was=oe.length,oe.mode=Se;case Se:for(;!(Et=oe.distcode[nr&(1<<oe.distbits)-1],en=Et>>>24,Mn=Et>>>16&255,Yn=Et&65535,en<=mr);){if(hr===0)break e;hr--,nr+=lt[pe++]<<mr,mr+=8}if((Mn&240)===0){for(ci=en,Vi=Mn,jn=Yn;!(Et=oe.distcode[jn+((nr&(1<<ci+Vi)-1)>>ci)],en=Et>>>24,Mn=Et>>>16&255,Yn=Et&65535,ci+en<=mr);){if(hr===0)break e;hr--,nr+=lt[pe++]<<mr,mr+=8}nr>>>=ci,mr-=ci,oe.back+=ci}if(nr>>>=en,mr-=en,oe.back+=en,Mn&64){Ke.msg="invalid distance code",oe.mode=ue;break}oe.offset=Yn,oe.extra=Mn&15,oe.mode=Re;case Re:if(oe.extra){for(Me=oe.extra;mr<Me;){if(hr===0)break e;hr--,nr+=lt[pe++]<<mr,mr+=8}oe.offset+=nr&(1<<oe.extra)-1,nr>>>=oe.extra,mr-=oe.extra,oe.back+=oe.extra}if(oe.offset>oe.dmax){Ke.msg="invalid distance too far back",oe.mode=ue;break}oe.mode=Pe;case Pe:if(gt===0)break e;if(xr=Ar-gt,oe.offset>xr){if(xr=oe.offset-xr,xr>oe.whave&&oe.sane){Ke.msg="invalid distance too far back",oe.mode=ue;break}xr>oe.wnext?(xr-=oe.wnext,qt=oe.wsize-xr):qt=oe.wnext-xr,xr>oe.length&&(xr=oe.length),ar=oe.window}else ar=qe,qt=Kt-oe.offset,xr=oe.length;xr>gt&&(xr=gt),gt-=xr,oe.length-=xr;do qe[Kt++]=ar[qt++];while(--xr);oe.length===0&&(oe.mode=le);break;case Je:if(gt===0)break e;qe[Kt++]=oe.length,gt--,oe.mode=le;break;case Ve:if(oe.wrap){for(;mr<32;){if(hr===0)break e;hr--,nr|=lt[pe++]<<mr,mr+=8}if(Ar-=gt,Ke.total_out+=Ar,oe.total+=Ar,Ar&&(Ke.adler=oe.check=oe.flags?(0,A.default)(oe.check,qe,Ar,Kt-Ar):(0,S.default)(oe.check,qe,Ar,Kt-Ar)),Ar=gt,(oe.flags?nr:be(nr))!==oe.check){Ke.msg="incorrect data check",oe.mode=ue;break}nr=0,mr=0}oe.mode=ct;case ct:if(oe.wrap&&oe.flags){for(;mr<32;){if(hr===0)break e;hr--,nr+=lt[pe++]<<mr,mr+=8}if(nr!==(oe.total&4294967295)){Ke.msg="incorrect length check",oe.mode=ue;break}nr=0,mr=0}oe.mode=Ue;case Ue:$t=c;break e;case ue:$t=v;break e;case rt:return b;case ge:default:return g}return Ke.next_out=Kt,Ke.avail_out=gt,Ke.next_in=pe,Ke.avail_in=hr,oe.hold=nr,oe.bits=mr,(oe.wsize||Ar!==Ke.avail_out&&oe.mode<ue&&(oe.mode<Ve||de!==e))&&et(Ke,Ke.output,Ke.next_out,Ar-Ke.avail_out)?(oe.mode=rt,b):(cn-=Ke.avail_in,Ar-=Ke.avail_out,Ke.total_in+=cn,Ke.total_out+=Ar,oe.total+=Ar,oe.wrap&&Ar&&(Ke.adler=oe.check=oe.flags?(0,A.default)(oe.check,qe,Ar,Ke.next_out-Ar):(0,S.default)(oe.check,qe,Ar,Ke.next_out-Ar)),Ke.data_type=oe.bits+(oe.last?64:0)+(oe.mode===P?128:0)+(oe.mode===$||oe.mode===U?256:0),(cn===0&&Ar===0||de===e)&&$t===s&&($t=w),$t)}function Ht(Ke){if(!Ke||!Ke.state)return g;var de=Ke.state;return de.window&&(de.window=null),Ke.state=null,s}function Dt(Ke,de){var oe;return!Ke||!Ke.state?g:(oe=Ke.state,(oe.wrap&2)===0?g:(oe.head=de,de.done=!1,s))}function Tt(Ke,de){var oe=de.length,lt,qe,pe;return!Ke||!Ke.state?g:(lt=Ke.state,lt.wrap!==0&&lt.mode!==X?g:lt.mode===X&&(qe=1,qe=(0,S.default)(qe,de,oe,0),qe!==lt.check)?v:(pe=et(Ke,de,oe,oe),pe?(lt.mode=rt,b):(lt.havedict=1,s)))}var Bt="pako inflate (from Nodeca project)";D.inflateInfo=Bt},ePAk:function(k,D,i){var y=i("ProS");i("2fGM");var p=y.extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(S){var A,m=this.ecModel;return m.eachComponent(S,function(f){f.getCoordSysModel()===this&&(A=f)},this),A},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}});k.exports=p},eRkO:function(k,D,i){var y=i("+TT/"),p=y.getLayoutRect,S=y.box,A=y.positionElement,m=i("7aKB"),f=i("IwbS");function d(o,n,t){var a=n.getBoxLayoutParams(),e=n.get("padding"),u={width:t.getWidth(),height:t.getHeight()},r=p(a,u,e);S(n.get("orient"),o,n.get("itemGap"),r.width,r.height),A(o,a,u,e)}function l(o,n){var t=m.normalizeCssArray(n.get("padding")),a=n.getItemStyle(["color","opacity"]);a.fill=n.get("backgroundColor");var o=new f.Rect({shape:{x:o.x-t[3],y:o.y-t[0],width:o.width+t[1]+t[3],height:o.height+t[0]+t[2],r:n.get("borderRadius")},style:a,silent:!0,z2:-1});return o}D.layout=d,D.makeBackground=l},eS4l:function(k,D,i){i("HM/N"),i("FNN5")},ebwN:function(k,D,i){var y=i("Cwc5"),p=i("Kz5y"),S=y(p,"Map");k.exports=S},ekgI:function(k,D,i){var y=i("YESw"),p=Object.prototype,S=p.hasOwnProperty;function A(m){var f=this.__data__;return y?f[m]!==void 0:S.call(f,m)}k.exports=A},ewwo:function(k,D,i){var y=i("bMXI"),p=i("+TT/"),S=p.getLayoutRect,A=i("4mN7");function m(d,l,o){var n=d.getBoxLayoutParams();return n.aspect=o,S(n,{width:l.getWidth(),height:l.getHeight()})}function f(d,l){var o=[];return d.eachSeriesByType("graph",function(n){var t=n.get("coordinateSystem");if(!t||t==="view"){var a=n.getData(),e=a.mapArray(function(x){var T=a.getItemModel(x);return[+T.get("x"),+T.get("y")]}),u=[],r=[];A.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=m(n,l,s);isNaN(s)&&(u=[c.x,c.y],r=[c.x+c.width,c.y+c.height]);var h=r[0]-u[0],g=r[1]-u[1],v=c.width,b=c.height,w=n.coordinateSystem=new y;w.zoomLimit=n.get("scaleLimit"),w.setBoundingRect(u[0],u[1],h,g),w.setViewRect(c.x,c.y,v,b),w.setCenter(n.get("center")),w.setZoom(n.get("zoom")),o.push(w)}}),o}k.exports=f},f1nB:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("ProS"),A=i("bYtY"),m=i("4NO4"),f=i("IwbS"),d=i("+TT/"),l=i("OELB"),o=l.parsePercent,n={path:null,compoundPath:null,group:f.Group,image:f.Image,text:f.Text};S.registerPreprocessor(function(v){var b=v.graphic;A.isArray(b)?!b[0]||!b[0].elements?v.graphic=[{elements:b}]:v.graphic=[v.graphic[0]]:b&&!b.elements&&(v.graphic=[{elements:[b]}])});var t=S.extendComponentModel({type:"graphic",defaultOption:{elements:[],parentId:null},_elOptionsToUpdate:null,mergeOption:function(v){var b=this.option.elements;this.option.elements=null,t.superApply(this,"mergeOption",arguments),this.option.elements=b},optionUpdated:function(v,b){var w=this.option,x=(b?w:v).elements,T=w.elements=b?[]:w.elements,O=[];this._flatten(x,O);var E=m.mappingToExists(T,O);m.makeIdAndName(E);var C=this._elOptionsToUpdate=[];A.each(E,function(_,F){var R=_.option;if(!R)return;C.push(R),s(_,R),c(T,F,R),h(T[F],R)},this);for(var I=T.length-1;I>=0;I--)T[I]==null?T.splice(I,1):delete T[I].$action},_flatten:function(v,b,w){A.each(v,function(x){if(!x)return;w&&(x.parentOption=w),b.push(x);var T=x.children;x.type==="group"&&T&&this._flatten(T,b,x),delete x.children},this)},useElOptionsToUpdate:function(){var v=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,v}});S.extendComponentView({type:"graphic",init:function(v,b){this._elMap=A.createHashMap(),this._lastGraphicModel},render:function(v,b,w){v!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=v,this._updateElements(v),this._relocate(v,w)},_updateElements:function(v){var b=v.useElOptionsToUpdate();if(!b)return;var w=this._elMap,x=this.group;A.each(b,function(T){var O=T.$action,E=T.id,C=w.get(E),I=T.parentId,_=I!=null?w.get(I):x,F=T.style;T.type==="text"&&F&&(T.hv&&T.hv[1]&&(F.textVerticalAlign=F.textBaseline=null),!F.hasOwnProperty("textFill")&&F.fill&&(F.textFill=F.fill),!F.hasOwnProperty("textStroke")&&F.stroke&&(F.textStroke=F.stroke));var R=u(T);!O||O==="merge"?C?C.attr(R):a(E,_,R,w):O==="replace"?(e(C,w),a(E,_,R,w)):O==="remove"&&e(C,w);var B=w.get(E);B&&(B.__ecGraphicWidthOption=T.width,B.__ecGraphicHeightOption=T.height,g(B,v,T))})},_relocate:function(v,b){for(var w=v.option.elements,x=this.group,T=this._elMap,O=b.getWidth(),E=b.getHeight(),C=0;C<w.length;C++){var I=w[C],_=T.get(I.id);if(!_||!_.isGroup)continue;var F=_.parent,R=F===x;_.__ecGraphicWidth=o(_.__ecGraphicWidthOption,R?O:F.__ecGraphicWidth)||0,_.__ecGraphicHeight=o(_.__ecGraphicHeightOption,R?E:F.__ecGraphicHeight)||0}for(var C=w.length-1;C>=0;C--){var I=w[C],_=T.get(I.id);if(!_)continue;var F=_.parent,B=F===x?{width:O,height:E}:{width:F.__ecGraphicWidth,height:F.__ecGraphicHeight};d.positionElement(_,I,B,null,{hv:I.hv,boundingMode:I.bounding})}},_clear:function(){var v=this._elMap;v.each(function(b){e(b,v)}),this._elMap=A.createHashMap()},dispose:function(){this._clear()}});function a(v,b,w,x){var T=w.type,O=n.hasOwnProperty(T)?n[T]:f.getShapeClass(T),E=new O(w);b.add(E),x.set(v,E),E.__ecGraphicId=v}function e(v,b){var w=v&&v.parent;w&&(v.type==="group"&&v.traverse(function(x){e(x,b)}),b.removeKey(v.__ecGraphicId),w.remove(v))}function u(v){return v=A.extend({},v),A.each(["id","parentId","$action","hv","bounding"].concat(d.LOCATION_PARAMS),function(b){delete v[b]}),v}function r(v,b){var w;return A.each(b,function(x){v[x]!=null&&v[x]!=="auto"&&(w=!0)}),w}function s(v,b){var w=v.exist;if(b.id=v.keyInfo.id,!b.type&&w&&(b.type=w.type),b.parentId==null){var x=b.parentOption;x?b.parentId=x.id:w&&(b.parentId=w.parentId)}b.parentOption=null}function c(v,b,w){var x=A.extend({},w),T=v[b],O=w.$action||"merge";O==="merge"?T?(A.merge(T,x,!0),d.mergeLayoutParam(T,x,{ignoreSize:!0}),d.copyLayoutParams(w,T)):v[b]=x:O==="replace"?v[b]=x:O==="remove"&&(T&&(v[b]=null))}function h(v,b){if(!v)return;v.hv=b.hv=[r(b,["left","right"]),r(b,["top","bottom"])],v.type==="group"&&(v.width==null&&(v.width=b.width=0),v.height==null&&(v.height=b.height=0))}function g(v,b,w){var x=v.eventData;!v.silent&&!v.ignore&&!x&&(x=v.eventData={componentType:"graphic",componentIndex:b.componentIndex,name:v.name}),x&&(x.info=v.info)}},f3JH:function(k,D,i){i("aTJb"),i("OlYY"),i("fc+c"),i("oY9F"),i("MqEG"),i("LBfv"),i("noeP")},f4xo:function(k,D,i){var y=i("nVVt");function p(S){this.mode=y.MODE_8BIT_BYTE,this.data=S}p.prototype={getLength:function(A){return this.data.length},write:function(A){for(var m=0;m<this.data.length;m++)A.put(this.data.charCodeAt(m),8)}},k.exports=p},f5HG:function(k,D,i){var y=i("IwbS"),p=i("QBsz"),S=y.Line.prototype,A=y.BezierCurve.prototype;function m(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[m(l)?"_buildPathLine":"_buildPathCurve"](d,l)},_buildPathLine:S.buildPath,_buildPathCurve:A.buildPath,pointAt:function(d){return this[m(this.shape)?"_pointAtLine":"_pointAtCurve"](d)},_pointAtLine:S.pointAt,_pointAtCurve:A.pointAt,tangentAt:function(d){var l=this.shape,o=m(l)?[l.x2-l.x1,l.y2-l.y1]:this._tangentAtCurve(d);return p.normalize(o,o)},_tangentAtCurve:A.tangentAt});k.exports=f},f5Yq:function(k,D,i){var y=i("bYtY"),p=y.isFunction;function S(A,m,f){return{seriesType:A,performRawSeries:!0,reset:function(d,l,o){var n=d.getData(),t=d.get("symbol"),a=d.get("symbolSize"),e=d.get("symbolKeepAspect"),u=d.get("symbolRotate"),r=p(t),s=p(a),c=p(u),h=r||s||c,g=!r&&t?t:m,v=s?null:a,b=c?null:b;if(n.setVisual({legendSymbol:f||g,symbol:g,symbolSize:v,symbolKeepAspect:e,symbolRotate:u}),l.isSeriesFiltered(d))return;function w(x,T){if(h){var O=d.getRawValue(T),E=d.getDataParams(T);r&&x.setItemVisual(T,"symbol",t(O,E)),s&&x.setItemVisual(T,"symbolSize",a(O,E)),c&&x.setItemVisual(T,"symbolRotate",u(O,E))}if(x.hasItemOption){var C=x.getItemModel(T),I=C.getShallow("symbol",!0),_=C.getShallow("symbolSize",!0),F=C.getShallow("symbolRotate",!0),R=C.getShallow("symbolKeepAspect",!0);I!=null&&x.setItemVisual(T,"symbol",I),_!=null&&x.setItemVisual(T,"symbolSize",_),F!=null&&x.setItemVisual(T,"symbolRotate",F),R!=null&&x.setItemVisual(T,"symbolKeepAspect",R)}}return{dataEach:n.hasItemOption||h?w:null}}}}k.exports=S},fE02:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("/IIm"),A=i("vZ6x"),m=i("b9oc"),f=i("72pK"),d=i("Kagy"),l=i("IUWy");i("3TkU");var o=d.toolbox.dataZoom,n=p.each,t="\0_ec_\0toolbox-dataZoom_";function a(g,v,b){(this._brushController=new S(b.getZr())).on("brush",p.bind(this._onBrush,this)).mount(),this._isZoomActive}a.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:p.clone(o.title)};var e=a.prototype;e.render=function(g,v,b,w){this.model=g,this.ecModel=v,this.api=b,c(g,v,this,w,b),s(g,v)},e.onclick=function(g,v,b){u[b].call(this)},e.remove=function(g,v){this._brushController.unmount()},e.dispose=function(g,v){this._brushController.dispose()};var u={zoom:function(){var g=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:g})},back:function(){this._dispatchZoomAction(m.pop(this.ecModel))}};e._onBrush=function(g,v){if(!v.isEnd||!g.length)return;var b={},w=this.ecModel;this._brushController.updateCovers([]);var x=new A(r(this.model.option),w,{include:["grid"]});x.matchOutputRanges(g,w,function(E,C,I){if(I.type!=="cartesian2d")return;var _=E.brushType;_==="rect"?(T("x",I,C[0]),T("y",I,C[1])):T({lineX:"x",lineY:"y"}[_],I,C)}),m.push(w,b),this._dispatchZoomAction(b);function T(E,C,I){var _=C.getAxis(E),F=_.model,R=O(E,F,w),B=R.findRepresentativeAxisProxy(F).getMinMaxSpan();(B.minValueSpan!=null||B.maxValueSpan!=null)&&(I=f(0,I.slice(),_.scale.getExtent(),0,B.minValueSpan,B.maxValueSpan)),R&&(b[R.id]={dataZoomId:R.id,startValue:I[0],endValue:I[1]})}function O(E,C,I){var _;return I.eachComponent({mainType:"dataZoom",subType:"select"},function(F){var R=F.getAxisModel(E,C.componentIndex);R&&(_=F)}),_}},e._dispatchZoomAction=function(g){var v=[];n(g,function(b,w){v.push(p.clone(b))}),v.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:v})};function r(g){var v={};return p.each(["xAxisIndex","yAxisIndex"],function(b){v[b]=g[b],v[b]==null&&(v[b]="all"),(v[b]===!1||v[b]==="none")&&(v[b]=[])}),v}function s(g,v){g.setIconStatus("back",m.count(v)>1?"emphasis":"normal")}function c(g,v,b,w,x){var T=b._isZoomActive;w&&w.type==="takeGlobalCursor"&&(T=w.key==="dataZoomSelect"?w.dataZoomSelectActive:!1),b._isZoomActive=T,g.setIconStatus("zoom",T?"emphasis":"normal");var O=new A(r(g.option),v,{include:["grid"]});b._brushController.setPanels(O.makePanelOpts(x,function(E){return E.xAxisDeclared&&!E.yAxisDeclared?"lineX":!E.xAxisDeclared&&E.yAxisDeclared?"lineY":"rect"})).enableBrush(T?{brushType:"auto",brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}}:!1)}l.register("dataZoom",a),y.registerPreprocessor(function(g){if(!g)return;var v=g.dataZoom||(g.dataZoom=[]);p.isArray(v)||(g.dataZoom=v=[v]);var b=g.toolbox;if(b&&(p.isArray(b)&&(b=b[0]),b&&b.feature)){var w=b.feature.dataZoom;x("xAxis",w),x("yAxis",w)}function x(O,E){if(!E)return;var C=O+"Index",I=E[C];I!=null&&I!=="all"&&!p.isArray(I)&&(I=I===!1||I==="none"?[]:[I]),T(O,function(_,F){if(I!=null&&I!=="all"&&p.indexOf(I,F)===-1)return;var R={type:"select",$fromToolbox:!0,filterMode:E.filterMode||"filter",id:t+O+F};R[C]=F,v.push(R)})}function T(O,E){var C=g[O];p.isArray(C)||(C=C?[C]:[]),n(C,E)}});var h=a;k.exports=h},fGT3:function(k,D,i){var y=i("4kuk"),p=i("Xi7e"),S=i("ebwN");function A(){this.size=0,this.__data__={hash:new y,map:new(S||p),string:new y}}k.exports=A},fNCr:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("tSko"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},"fR/l":function(k,D,i){var y=i("CH3K"),p=i("Z0cm");function S(A,m,f){var d=m(A);return p(A)?d:y(d,f(A))}k.exports=S},fUL4:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("r+aA"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},fW2E:function(k,D){var i={shadowBlur:1,shadowOffsetX:1,shadowOffsetY:1,textShadowBlur:1,textShadowOffsetX:1,textShadowOffsetY:1,textBoxShadowBlur:1,textBoxShadowOffsetX:1,textBoxShadowOffsetY:1};function y(p,S,A){return i.hasOwnProperty(S)?A*=p.dpr:A}k.exports=y},"fc+c":function(k,D,i){var y=i("sS/r"),p=y.extend({type:"dataZoom",render:function(S,A,m,f){this.dataZoomModel=S,this.ecModel=A,this.api=m},getTargetCoordInfo:function(){var S=this.dataZoomModel,A=this.ecModel,m={};S.eachTargetAxis(function(d,l){var o=A.getComponent(d.axis,l);if(o){var n=o.getCoordSysModel();n&&f(n,o,m[n.mainType]||(m[n.mainType]=[]),n.componentIndex)}},this);function f(d,l,o,n){for(var t,a=0;a<o.length;a++)if(o[a].model===d){t=o[a];break}t||o.push(t={model:d,axisModels:[],coordIndex:n}),t.axisModels.push(l)}return m}});k.exports=p},fjKi:function(k,D,i){var y=i("ProS");i("Q7if"),i("jndi"),y.registerPreprocessor(function(p){p.markArea=p.markArea||{}})},fls0:function(k,D,i){var y=i("bYtY"),p=i("QBsz"),S=i("oVpE"),A=i("f5HG"),m=i("IwbS"),f=i("OELB"),d=f.round,l=["fromSymbol","toSymbol"];function o(c){return"_"+c+"Type"}function n(c,h,g){var v=h.getItemVisual(g,"color"),b=h.getItemVisual(g,c),w=h.getItemVisual(g,c+"Size");if(!b||b==="none")return;y.isArray(w)||(w=[w,w]);var x=S.createSymbol(b,-w[0]/2,-w[1]/2,w[0],w[1],v);return x.name=c,x}function t(c){var h=new A({name:"line",subPixelOptimize:!0});return a(h.shape,c),h}function a(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 g=h[2];g?(c.cpx1=g[0],c.cpy1=g[1]):(c.cpx1=NaN,c.cpy1=NaN)}function e(){var c=this,h=c.childOfName("fromSymbol"),g=c.childOfName("toSymbol"),v=c.childOfName("label");if(!h&&!g&&v.ignore)return;for(var b=1,w=this.parent;w;)w.scale&&(b/=w.scale[0]),w=w.parent;var x=c.childOfName("line");if(!this.__dirty&&!x.__dirty)return;var T=x.shape.percent,O=x.pointAt(0),E=x.pointAt(T),C=p.sub([],E,O);if(p.normalize(C,C),h){h.attr("position",O);var I=x.tangentAt(0);h.attr("rotation",Math.PI/2-Math.atan2(I[1],I[0])),h.attr("scale",[b*T,b*T])}if(g){g.attr("position",E);var I=x.tangentAt(1);g.attr("rotation",-Math.PI/2-Math.atan2(I[1],I[0])),g.attr("scale",[b*T,b*T])}if(!v.ignore){v.attr("position",E);var _,F,R,B,M=v.__labelDistance,X=M[0]*b,P=M[1]*b,z=T/2,I=x.tangentAt(z),W=[I[1],-I[0]],U=x.pointAt(z);W[1]>0&&(W[0]=-W[0],W[1]=-W[1]);var V=I[0]<0?-1:1;if(v.__position!=="start"&&v.__position!=="end"){var Q=-Math.atan2(I[1],I[0]);E[0]<O[0]&&(Q=Math.PI+Q),v.attr("rotation",Q)}var G;switch(v.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":G=-P,R="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":G=P,R="top";break;default:G=0,R="middle"}switch(v.__position){case"end":_=[C[0]*X+E[0],C[1]*P+E[1]],F=C[0]>.8?"left":C[0]<-.8?"right":"center",R=C[1]>.8?"top":C[1]<-.8?"bottom":"middle";break;case"start":_=[-C[0]*X+O[0],-C[1]*P+O[1]],F=C[0]>.8?"right":C[0]<-.8?"left":"center",R=C[1]>.8?"bottom":C[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":_=[X*V+O[0],O[1]+G],F=I[0]<0?"right":"left",B=[-X*V,-G];break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":_=[U[0],U[1]+G],F="center",B=[0,-G];break;case"insideEndTop":case"insideEnd":case"insideEndBottom":_=[-X*V+E[0],E[1]+G],F=I[0]>=0?"right":"left",B=[X*V,-G];break}v.attr({style:{textVerticalAlign:v.__verticalAlign||R,textAlign:v.__textAlign||F},position:_,scale:[b,b],origin:B})}}function u(c,h,g){m.Group.call(this),this._createLine(c,h,g)}var r=u.prototype;r.beforeUpdate=e,r._createLine=function(c,h,g){var v=c.hostModel,b=c.getItemLayout(h),w=t(b);w.shape.percent=0,m.initProps(w,{shape:{percent:1}},v,h),this.add(w);var x=new m.Text({name:"label",lineLabelOriginalOpacity:1});this.add(x),y.each(l,function(T){var O=n(T,c,h);this.add(O),this[o(T)]=c.getItemVisual(h,T)},this),this._updateCommonStl(c,h,g)},r.updateData=function(c,h,g){var v=c.hostModel,b=this.childOfName("line"),w=c.getItemLayout(h),x={shape:{}};a(x.shape,w),m.updateProps(b,x,v,h),y.each(l,function(T){var O=c.getItemVisual(h,T),E=o(T);if(this[E]!==O){this.remove(this.childOfName(T));var C=n(T,c,h);this.add(C)}this[E]=O},this),this._updateCommonStl(c,h,g)},r._updateCommonStl=function(c,h,g){var v=c.hostModel,b=this.childOfName("line"),w=g&&g.lineStyle,x=g&&g.hoverLineStyle,T=g&&g.labelModel,O=g&&g.hoverLabelModel;if(!g||c.hasItemOption){var E=c.getItemModel(h);w=E.getModel("lineStyle").getLineStyle(),x=E.getModel("emphasis.lineStyle").getLineStyle(),T=E.getModel("label"),O=E.getModel("emphasis.label")}var C=c.getItemVisual(h,"color"),I=y.retrieve3(c.getItemVisual(h,"opacity"),w.opacity,1);b.useStyle(y.defaults({strokeNoScale:!0,fill:"none",stroke:C,opacity:I},w)),b.hoverStyle=x,y.each(l,function(V){var Q=this.childOfName(V);Q&&(Q.setColor(C),Q.setStyle({opacity:I}))},this);var _=T.getShallow("show"),F=O.getShallow("show"),R=this.childOfName("label"),B,M;if((_||F)&&(B=C||"#000",M=v.getFormattedLabel(h,"normal",c.dataType),M==null)){var X=v.getRawValue(h);M=X==null?c.getName(h):isFinite(X)?d(X):X}var P=_?M:null,z=F?y.retrieve2(v.getFormattedLabel(h,"emphasis",c.dataType),M):null,W=R.style;if(P!=null||z!=null){m.setTextStyle(R.style,T,{text:P},{autoColor:B}),R.__textAlign=W.textAlign,R.__verticalAlign=W.textVerticalAlign,R.__position=T.get("position")||"middle";var U=T.get("distance");y.isArray(U)||(U=[U,U]),R.__labelDistance=U}z!=null?R.hoverStyle={text:z,textFill:O.getTextColor(!0),fontStyle:O.getShallow("fontStyle"),fontWeight:O.getShallow("fontWeight"),fontSize:O.getShallow("fontSize"),fontFamily:O.getShallow("fontFamily")}:R.hoverStyle={text:null},R.ignore=!_&&!F,m.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");a(h.shape,c),h.dirty()},y.inherits(u,m.Group);var s=u;k.exports=s},fmMI:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),A=S.each,m=S.filter,f=S.map,d=S.isArray,l=S.indexOf,o=S.isObject,n=S.isString,t=S.createHashMap,a=S.assert,e=S.clone,u=S.merge,r=S.extend,s=S.mixin,c=i("4NO4"),h=i("Qxkt"),g=i("bLfw"),v=i("iXHM"),b=i("5Hur"),w=i("D5nY"),x=w.resetSourceDefaulter,T="\0_ec_inner",O=h.extend({init:function(P,z,W,U){W=W||{},this.option=null,this._theme=new h(W),this._optionManager=U},setOption:function(P,z){a(!(T in P),"please use chart.getOption()"),this._optionManager.setOption(P,z),this.resetOption(null)},resetOption:function(P){var z=!1,W=this._optionManager;if(!P||P==="recreate"){var U=W.mountOption(P==="recreate");!this.option||P==="recreate"?I.call(this,U):(this.restoreData(),this.mergeOption(U)),z=!0}if((P==="timeline"||P==="media")&&this.restoreData(),!P||P==="recreate"||P==="timeline"){var V=W.getTimelineOption(this);V&&(this.mergeOption(V),z=!0)}if(!P||P==="recreate"||P==="media"){var Q=W.getMediaOption(this,this._api);Q.length&&A(Q,function(G){this.mergeOption(G,z=!0)},this)}return z},mergeOption:function(P){var z=this.option,W=this._componentsMap,U=[];x(this),A(P,function(Q,G){if(Q==null)return;g.hasClass(G)?G&&U.push(G):z[G]=z[G]==null?e(Q):u(z[G],Q,!0)}),g.topologicalTravel(U,g.getAllClassMainTypes(),V,this);function V(Q,G){var te=c.normalizeToArray(P[Q]),$=c.mappingToExists(W.get(Q),te);c.makeIdAndName($),A($,function(re,Se){var Re=re.option;o(Re)&&(re.keyInfo.mainType=Q,re.keyInfo.subType=F(Q,Re,re.exist))});var le=_(W,G);z[Q]=[],W.set(Q,[]),A($,function(re,Se){var Re=re.exist,Pe=re.option;if(a(o(Pe)||Re,"Empty component definition"),!Pe)Re.mergeOption({},this),Re.optionUpdated({},!1);else{var Je=g.getClass(Q,re.keyInfo.subType,!0);if(Re&&Re.constructor===Je)Re.name=re.keyInfo.name,Re.mergeOption(Pe,this),Re.optionUpdated(Pe,!1);else{var Ve=r({dependentModels:le,componentIndex:Se},re.keyInfo);Re=new Je(Pe,this,this,Ve),r(Re,Ve),Re.init(Pe,this,this,Ve),Re.optionUpdated(null,!0)}}W.get(Q)[Se]=Re,z[Q][Se]=Re.option},this),Q==="series"&&R(this,W.get("series"))}this._seriesIndicesMap=t(this._seriesIndices=this._seriesIndices||[])},getOption:function(){var P=e(this.option);return A(P,function(z,W){if(g.hasClass(W)){for(var z=c.normalizeToArray(z),U=z.length-1;U>=0;U--)c.isIdInner(z[U])&&z.splice(U,1);P[W]=z}}),delete P[T],P},getTheme:function(){return this._theme},getComponent:function(P,z){var W=this._componentsMap.get(P);if(W)return W[z||0]},queryComponents:function(P){var z=P.mainType;if(!z)return[];var W=P.index,U=P.id,V=P.name,Q=this._componentsMap.get(z);if(!Q||!Q.length)return[];var G;if(W!=null)d(W)||(W=[W]),G=m(f(W,function(le){return Q[le]}),function(le){return!!le});else if(U!=null){var te=d(U);G=m(Q,function(le){return te&&l(U,le.id)>=0||!te&&le.id===U})}else if(V!=null){var $=d(V);G=m(Q,function(le){return $&&l(V,le.name)>=0||!$&&le.name===V})}else G=Q.slice();return B(G,P)},findComponents:function(P){var z=P.query,W=P.mainType,U=Q(z),V=U?this.queryComponents(U):this._componentsMap.get(W);return G(B(V,P));function Q(te){var $=W+"Index",le=W+"Id",re=W+"Name";return te&&(te[$]!=null||te[le]!=null||te[re]!=null)?{mainType:W,index:te[$],id:te[le],name:te[re]}:null}function G(te){return P.filter?m(te,P.filter):te}},eachComponent:function(P,z,W){var U=this._componentsMap;if(typeof P=="function")W=z,z=P,U.each(function(Q,G){A(Q,function(te,$){z.call(W,G,te,$)})});else if(n(P))A(U.get(P),z,W);else if(o(P)){var V=this.findComponents(P);A(V,z,W)}},getSeriesByName:function(P){var z=this._componentsMap.get("series");return m(z,function(W){return W.name===P})},getSeriesByIndex:function(P){return this._componentsMap.get("series")[P]},getSeriesByType:function(P){var z=this._componentsMap.get("series");return m(z,function(W){return W.subType===P})},getSeries:function(){return this._componentsMap.get("series").slice()},getSeriesCount:function(){return this._componentsMap.get("series").length},eachSeries:function(P,z){M(this),A(this._seriesIndices,function(W){var U=this._componentsMap.get("series")[W];P.call(z,U,W)},this)},eachRawSeries:function(P,z){A(this._componentsMap.get("series"),P,z)},eachSeriesByType:function(P,z,W){M(this),A(this._seriesIndices,function(U){var V=this._componentsMap.get("series")[U];V.subType===P&&z.call(W,V,U)},this)},eachRawSeriesByType:function(P,z,W){return A(this.getSeriesByType(P),z,W)},isSeriesFiltered:function(P){return M(this),this._seriesIndicesMap.get(P.componentIndex)==null},getCurrentSeriesIndices:function(){return(this._seriesIndices||[]).slice()},filterSeries:function(P,z){M(this);var W=m(this._componentsMap.get("series"),P,z);R(this,W)},restoreData:function(P){var z=this._componentsMap;R(this,z.get("series"));var W=[];z.each(function(U,V){W.push(V)}),g.topologicalTravel(W,g.getAllClassMainTypes(),function(U,V){A(z.get(U),function(Q){(U!=="series"||!E(Q,P))&&Q.restoreData()})})}});function E(P,z){if(z){var W=z.seiresIndex,U=z.seriesId,V=z.seriesName;return W!=null&&P.componentIndex!==W||U!=null&&P.id!==U||V!=null&&P.name!==V}}function C(P,z){var W=P.color&&!P.colorLayer;A(z,function(U,V){if(V==="colorLayer"&&W)return;g.hasClass(V)||(typeof U=="object"?P[V]=P[V]?u(P[V],U,!1):e(U):P[V]==null&&(P[V]=U))})}function I(P){P=P,this.option={},this.option[T]=1,this._componentsMap=t({series:[]}),this._seriesIndices,this._seriesIndicesMap,C(P,this._theme.option),u(P,v,!1),this.mergeOption(P)}function _(P,z){d(z)||(z=z?[z]:[]);var W={};return A(z,function(U){W[U]=(P.get(U)||[]).slice()}),W}function F(P,z,W){var U=z.type?z.type:W?W.subType:g.determineSubType(P,z);return U}function R(P,z){P._seriesIndicesMap=t(P._seriesIndices=f(z,function(W){return W.componentIndex})||[])}function B(P,z){return z.hasOwnProperty("subType")?m(P,function(W){return W.subType===z.subType}):P}function M(P){}s(O,b);var X=O;k.exports=X},fmRc:function(k,D,i){var y=i("Xi7e"),p=i("77Zs"),S=i("L8xA"),A=i("gCq4"),m=i("VaNO"),f=i("0Cz8");function d(l){var o=this.__data__=new y(l);this.size=o.size}d.prototype.clear=p,d.prototype.delete=S,d.prototype.get=A,d.prototype.has=m,d.prototype.set=f,k.exports=d},ftKO:function(k,D){var i="__lodash_hash_undefined__";function y(p){return this.__data__.set(p,i),this}k.exports=y},fyUT:function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("lSNA"),A=i.n(S),m=i("q1tI"),f=i.n(m),d=i("TSYQ"),l=i.n(d),o=i("Ff2n"),n=i("rePB"),t=i("1OyB"),a=i("vuIU"),e=i("Ji7U"),u=i("md7G"),r=i("foSv"),s=i("4IlW");function c(G,te){var $=Object.keys(G);if(Object.getOwnPropertySymbols){var le=Object.getOwnPropertySymbols(G);te&&(le=le.filter(function(re){return Object.getOwnPropertyDescriptor(G,re).enumerable})),$.push.apply($,le)}return $}function h(G){for(var te=1;te<arguments.length;te++){var $=arguments[te]!=null?arguments[te]:{};te%2?c(Object($),!0).forEach(function(le){Object(n.a)(G,le,$[le])}):Object.getOwnPropertyDescriptors?Object.defineProperties(G,Object.getOwnPropertyDescriptors($)):c(Object($)).forEach(function(le){Object.defineProperty(G,le,Object.getOwnPropertyDescriptor($,le))})}return G}function g(G){var te=v();return function(){var le=Object(r.a)(G),re;if(te){var Se=Object(r.a)(this).constructor;re=Reflect.construct(le,arguments,Se)}else re=le.apply(this,arguments);return Object(u.a)(this,re)}}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(G){return!1}}function b(){}function w(G){G.preventDefault()}var x=function(te){return te.replace(/[^\w.-]+/g,"")},T=200,O=600,E=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,C=function(te){return te!=null},I=function(te,$){return $===te||typeof $=="number"&&typeof te=="number"&&isNaN($)&&isNaN(te)},_=function(G){Object(e.a)($,G);var te=g($);function $(le){var re;Object(t.a)(this,$),re=te.call(this,le),re.onKeyDown=function(Pe){var Je=re.props,Ve=Je.onKeyDown,ct=Je.onPressEnter;if(Pe.keyCode===s.a.UP){var Ue=re.getRatio(Pe);re.up(Pe,Ue,null),re.stop()}else if(Pe.keyCode===s.a.DOWN){var ue=re.getRatio(Pe);re.down(Pe,ue,null),re.stop()}else Pe.keyCode===s.a.ENTER&&ct&&ct(Pe);if(re.recordCursorPosition(),re.lastKeyCode=Pe.keyCode,Ve){for(var rt=arguments.length,ge=new Array(rt>1?rt-1:0),Z=1;Z<rt;Z++)ge[Z-1]=arguments[Z];Ve.apply(void 0,[Pe].concat(ge))}},re.onKeyUp=function(Pe){var Je=re.props.onKeyUp;if(re.stop(),re.recordCursorPosition(),Je){for(var Ve=arguments.length,ct=new Array(Ve>1?Ve-1:0),Ue=1;Ue<Ve;Ue++)ct[Ue-1]=arguments[Ue];Je.apply(void 0,[Pe].concat(ct))}},re.onChange=function(Pe){var Je=re.props.onChange;re.state.focused&&(re.inputting=!0),re.rawInput=re.props.parser(re.getValueFromEvent(Pe)),re.setState({inputValue:re.rawInput}),Je(re.toNumber(re.rawInput))},re.onMouseUp=function(){var Pe=re.props.onMouseUp;re.recordCursorPosition(),Pe&&Pe.apply(void 0,arguments)},re.onFocus=function(){var Pe;re.setState({focused:!0}),(Pe=re.props).onFocus.apply(Pe,arguments)},re.onBlur=function(){var Pe=re.props.onBlur;re.inputting=!1,re.setState({focused:!1});var Je=re.getCurrentValidValue(re.state.inputValue),Ve=re.setValue(Je,b);if(Pe){var ct=re.input.value,Ue=re.getInputDisplayValue({focus:!1,value:Ve});re.input.value=Ue&&Number(Ue),Pe.apply(void 0,arguments),re.input.value=ct}},re.getRatio=function(Pe){var Je=1;return Pe.metaKey||Pe.ctrlKey?Je=.1:Pe.shiftKey&&(Je=10),Je},re.getFullNum=function(Pe){return isNaN(Pe)?Pe:/e/i.test(String(Pe))?Number(Pe).toFixed(18).replace(/\.?0+$/,""):Pe},re.getPrecision=function(Pe){if(C(re.props.precision))return re.props.precision;var Je=String(Pe);if(Je.indexOf("e-")>=0)return parseInt(Je.slice(Je.indexOf("e-")+2),10);var Ve=0;return Je.indexOf(".")>=0&&(Ve=Je.length-Je.indexOf(".")-1),Ve},re.getInputDisplayValue=function(Pe){var Je=Pe||re.state,Ve=Je.focused,ct=Je.inputValue,Ue=Je.value,ue;Ve?ue=ct:ue=re.toPrecisionAsStep(Ue),ue==null&&(ue="");var rt=re.formatWrapper(ue);return C(re.props.decimalSeparator)&&(rt=rt.toString().replace(".",re.props.decimalSeparator)),rt},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(Pe){}},re.restoreByAfter=function(Pe){if(Pe===void 0)return!1;var Je=re.input.value,Ve=Je.lastIndexOf(Pe);if(Ve===-1)return!1;var ct=re.cursorBefore.length;return re.lastKeyCode===s.a.DELETE&&re.cursorBefore.charAt(ct-1)===Pe[0]?(re.fixCaret(ct,ct),!0):Ve+Pe.length===Je.length?(re.fixCaret(Ve,Ve),!0):!1},re.partRestoreByAfter=function(Pe){return Pe===void 0?!1:Array.prototype.some.call(Pe,function(Je,Ve){var ct=Pe.substring(Ve);return re.restoreByAfter(ct)})},re.isNotCompleteNumber=function(Pe){return isNaN(Pe)||Pe===""||Pe===null||Pe&&Pe.toString().indexOf(".")===Pe.toString().length-1},re.stop=function(){re.autoStepTimer&&clearTimeout(re.autoStepTimer)},re.down=function(Pe,Je,Ve){re.pressingUpOrDown=!0,re.step("down",Pe,Je,Ve)},re.up=function(Pe,Je,Ve){re.pressingUpOrDown=!0,re.step("up",Pe,Je,Ve)},re.saveInput=function(Pe){re.input=Pe};var Se=le.value;Se===void 0&&(Se=le.defaultValue),re.state={focused:le.autoFocus};var Re=re.getValidValue(re.toNumber(Se));return re.state=h(h({},re.state),{},{inputValue:re.toPrecisionAsStep(Re),value:Re}),re}return Object(a.a)($,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(re){var Se=this.props,Re=Se.value,Pe=Se.onChange,Je=Se.max,Ve=Se.min,ct=this.state.focused;if(re){if(!I(re.value,Re)||!I(re.max,Je)||!I(re.min,Ve)){var Ue=ct?Re:this.getValidValue(Re),ue;this.pressingUpOrDown?ue=Ue:this.inputting?ue=this.rawInput:ue=this.toPrecisionAsStep(Ue),this.setState({value:Ue,inputValue:ue})}var rt="value"in this.props?Re:this.state.value;"max"in this.props&&re.max!==Je&&typeof rt=="number"&&rt>Je&&Pe&&Pe(Je),"min"in this.props&&re.min!==Ve&&typeof rt=="number"&&rt<Ve&&Pe&&Pe(Ve)}try{if(this.cursorStart!==void 0&&this.state.focused){if(!this.partRestoreByAfter(this.cursorAfter)&&this.state.value!==this.props.value){var ge=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===s.a.BACKSPACE?ge=this.cursorStart-1:this.lastKeyCode===s.a.DELETE&&(ge=this.cursorStart):ge=this.input.value.length,this.fixCaret(ge,ge)}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(Z){}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 Se=re;return Se===""?Se="":this.isNotCompleteNumber(parseFloat(Se))?Se=this.state.value:Se=this.getValidValue(Se),this.toNumber(Se)}},{key:"getValueFromEvent",value:function(re){var Se=re.target.value.trim().replace(/。/g,".");return C(this.props.decimalSeparator)&&(Se=Se.replace(this.props.decimalSeparator,".")),Se}},{key:"getValidValue",value:function(re){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.props.min,Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this.props.max,Pe=parseFloat(re);return isNaN(Pe)?re:(Pe<Se&&(Pe=Se),Pe>Re&&(Pe=Re),Pe)}},{key:"setValue",value:function(re,Se){var Re=this.props.precision,Pe=this.isNotCompleteNumber(parseFloat(re))?null:parseFloat(re),Je=this.state.value,Ve=Je===void 0?null:Je,ct=this.state.inputValue,Ue=ct===void 0?null:ct,ue=typeof Pe=="number"?Pe.toFixed(Re):"".concat(Pe),rt=Pe!==Ve||ue!=="".concat(Ue);return"value"in this.props?(Ue=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:Ue},Se)):this.setState({value:Pe,inputValue:this.toPrecisionAsStep(re)},Se),rt&&this.props.onChange(Pe),Pe}},{key:"getMaxPrecision",value:function(re){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Re=this.props,Pe=Re.precision,Je=Re.step;if(C(Pe))return Pe;var Ve=this.getPrecision(Se),ct=this.getPrecision(Je),Ue=this.getPrecision(re);return re?Math.max(Ue,Ve+ct):Ve+ct}},{key:"getPrecisionFactor",value:function(re){var Se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Re=this.getMaxPrecision(re,Se);return Math.pow(10,Re)}},{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 Se=Math.abs(this.getMaxPrecision(re));return isNaN(Se)?re.toString():Number(re).toFixed(Se)}},{key:"toNumber",value:function(re){var Se=this.props.precision,Re=this.state.focused,Pe=re&&re.length>16&&Re;return this.isNotCompleteNumber(re)||Pe?re:C(Se)?Math.round(re*Math.pow(10,Se))/Math.pow(10,Se):Number(re)}},{key:"upStep",value:function(re,Se){var Re=this.props.step,Pe=this.getPrecisionFactor(re,Se),Je=Math.abs(this.getMaxPrecision(re,Se)),Ve=((Pe*re+Pe*Re*Se)/Pe).toFixed(Je);return this.toNumber(Ve)}},{key:"downStep",value:function(re,Se){var Re=this.props.step,Pe=this.getPrecisionFactor(re,Se),Je=Math.abs(this.getMaxPrecision(re,Se)),Ve=((Pe*re-Pe*Re*Se)/Pe).toFixed(Je);return this.toNumber(Ve)}},{key:"step",value:function(re,Se){var Re=this,Pe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,Je=arguments.length>3?arguments[3]:void 0;this.stop(),Se&&(Se.persist(),Se.preventDefault());var Ve=this.props;if(Ve.disabled)return;var ct=this.getCurrentValidValue(this.state.inputValue)||0;if(this.isNotCompleteNumber(ct))return;var Ue=this["".concat(re,"Step")](ct,Pe),ue=Ue>Ve.max||Ue<Ve.min;if(Ue>Ve.max?Ue=Ve.max:Ue<Ve.min&&(Ue=Ve.min),this.setValue(Ue,null),this.setState({focused:!0},function(){Re.pressingUpOrDown=!1}),ue)return;this.autoStepTimer=setTimeout(function(){Re[re](Se,Pe,!0)},Je?T:O)}},{key:"fixCaret",value:function(re,Se){if(re===void 0||Se===void 0||!this.input||!this.input.value)return;try{var Re=this.input.selectionStart,Pe=this.input.selectionEnd;(re!==Re||Se!==Pe)&&this.input.setSelectionRange(re,Se)}catch(Je){}}},{key:"render",value:function(){var re,Se=this.props,Re=Se.prefixCls,Pe=Se.disabled,Je=Se.readOnly,Ve=Se.useTouch,ct=Se.autoComplete,Ue=Se.upHandler,ue=Se.downHandler,rt=Se.className,ge=Se.max,Z=Se.min,Y=Se.style,ee=Se.title,fe=Se.onMouseEnter,be=Se.onMouseLeave,Ce=Se.onMouseOver,Te=Se.onMouseOut,he=Se.required,ye=Se.onClick,Ie=Se.tabIndex,tt=Se.type,pt=Se.placeholder,st=Se.id,Fe=Se.inputMode,ft=Se.pattern,et=Se.step,wt=Se.maxLength,Ht=Se.autoFocus,Dt=Se.name,Tt=Se.onPaste,Bt=Se.onInput,Ke=Object(o.a)(Se,["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"]),de=this.state,oe=de.value,lt=de.focused,qe=l()(Re,(re={},Object(n.a)(re,rt,!!rt),Object(n.a)(re,"".concat(Re,"-disabled"),Pe),Object(n.a)(re,"".concat(Re,"-focused"),lt),re)),pe={};Object.keys(Ke).forEach(function(Et){(Et.substr(0,5)==="data-"||Et.substr(0,5)==="aria-"||Et==="role")&&(pe[Et]=Ke[Et])});var Kt=!Je&&!Pe,hr=this.getInputDisplayValue(null),gt=(oe||oe===0)&&(isNaN(oe)||Number(oe)>=ge),nr=(oe||oe===0)&&(isNaN(oe)||Number(oe)<=Z),mr=gt||Pe||Je,cn=nr||Pe||Je,Ar=l()("".concat(Re,"-handler"),"".concat(Re,"-handler-up"),Object(n.a)({},"".concat(Re,"-handler-up-disabled"),mr)),xr=l()("".concat(Re,"-handler"),"".concat(Re,"-handler-down"),Object(n.a)({},"".concat(Re,"-handler-down-disabled"),cn)),qt=Ve?{onTouchStart:mr?b:this.up,onTouchEnd:this.stop}:{onMouseDown:mr?b:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},ar=Ve?{onTouchStart:cn?b:this.down,onTouchEnd:this.stop}:{onMouseDown:cn?b:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return f.a.createElement("div",{className:qe,style:Y,title:ee,onMouseEnter:fe,onMouseLeave:be,onMouseOver:Ce,onMouseOut:Te,onFocus:function(){return null},onBlur:function(){return null}},f.a.createElement("div",{className:"".concat(Re,"-handler-wrap")},f.a.createElement("span",Object.assign({unselectable:"on"},qt,{role:"button","aria-label":"Increase Value","aria-disabled":mr,className:Ar}),Ue||f.a.createElement("span",{unselectable:"on",className:"".concat(Re,"-handler-up-inner"),onClick:w})),f.a.createElement("span",Object.assign({unselectable:"on"},ar,{role:"button","aria-label":"Decrease Value","aria-disabled":cn,className:xr}),ue||f.a.createElement("span",{unselectable:"on",className:"".concat(Re,"-handler-down-inner"),onClick:w}))),f.a.createElement("div",{className:"".concat(Re,"-input-wrap")},f.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":Z,"aria-valuemax":ge,"aria-valuenow":oe,required:he,type:tt,placeholder:pt,onPaste:Tt,onClick:ye,onMouseUp:this.onMouseUp,className:"".concat(Re,"-input"),tabIndex:Ie,autoComplete:ct,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:Kt?this.onKeyDown:b,onKeyUp:Kt?this.onKeyUp:b,autoFocus:Ht,maxLength:wt,readOnly:Je,disabled:Pe,max:ge,min:Z,step:et,name:Dt,title:ee,id:st,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(hr),pattern:ft,inputMode:Fe,onInput:Bt},pe))))}}]),$}(f.a.Component);_.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:E,min:-E,step:1,style:{},onChange:b,onKeyDown:b,onPressEnter:b,onFocus:b,onBlur:b,parser:x,required:!1,autoComplete:"off"};var F=_,R=F,B=i("FH2Y"),M=i.n(B),X=i("HQEm"),P=i.n(X),z=i("H84U"),W=i("3Nzz"),U=function(G,te){var $={};for(var le in G)Object.prototype.hasOwnProperty.call(G,le)&&te.indexOf(le)<0&&($[le]=G[le]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,le=Object.getOwnPropertySymbols(G);re<le.length;re++)te.indexOf(le[re])<0&&Object.prototype.propertyIsEnumerable.call(G,le[re])&&($[le[re]]=G[le[re]]);return $},V=m.forwardRef(function(G,te){var $=function(re){var Se=re.getPrefixCls,Re=re.direction,Pe=G.className,Je=G.size,Ve=G.prefixCls,ct=G.readOnly,Ue=U(G,["className","size","prefixCls","readOnly"]),ue=Se("input-number",Ve),rt=m.createElement(M.a,{className:"".concat(ue,"-handler-up-inner")}),ge=m.createElement(P.a,{className:"".concat(ue,"-handler-down-inner")});return m.createElement(W.b.Consumer,null,function(Z){var Y,ee=Je||Z,fe=l()((Y={},A()(Y,"".concat(ue,"-lg"),ee==="large"),A()(Y,"".concat(ue,"-sm"),ee==="small"),A()(Y,"".concat(ue,"-rtl"),Re==="rtl"),A()(Y,"".concat(ue,"-readonly"),ct),Y),Pe);return m.createElement(R,p()({ref:te,className:fe,upHandler:rt,downHandler:ge,prefixCls:ue,readOnly:ct},Ue))})};return m.createElement(z.a,null,$)});V.defaultProps={step:1};var Q=D.a=V},g0SD:function(k,D,i){var y=i("bYtY"),p=i("9wZj"),S=i("OELB"),A=i("YXkt"),m=i("kj2x"),f=i("iPDy");function d(n,t,a){var e=t.coordinateSystem;n.each(function(u){var r=n.getItemModel(u),s,c=S.parsePercent(r.get("x"),a.getWidth()),h=S.parsePercent(r.get("y"),a.getHeight());if(!isNaN(c)&&!isNaN(h))s=[c,h];else if(t.getMarkerPosition)s=t.getMarkerPosition(n.getValues(n.dimensions,u));else if(e){var g=n.get(e.dimensions[0],u),v=n.get(e.dimensions[1],u);s=e.dataToPoint([g,v])}isNaN(c)||(s[0]=c),isNaN(h)||(s[1]=h),n.setItemLayout(u,s)})}var l=f.extend({type:"markPoint",updateTransform:function(n,t,a){t.eachSeries(function(e){var u=e.markPointModel;u&&(d(u.getData(),e,a),this.markerGroupMap.get(e.id).updateLayout(u))},this)},renderSeries:function(n,t,a,e){var u=n.coordinateSystem,r=n.id,s=n.getData(),c=this.markerGroupMap,h=c.get(r)||c.set(r,new p),g=o(u,n,t);t.setData(g),d(t.getData(),n,e),g.each(function(v){var b=g.getItemModel(v),w=b.getShallow("symbol"),x=b.getShallow("symbolSize"),T=y.isFunction(w),O=y.isFunction(x);if(T||O){var E=t.getRawValue(v),C=t.getDataParams(v);T&&(w=w(E,C)),O&&(x=x(E,C))}g.setItemVisual(v,{symbol:w,symbolSize:x,color:b.get("itemStyle.color")||s.getVisual("color")})}),h.updateData(g),this.group.add(h.group),g.eachItemGraphicEl(function(v){v.traverse(function(b){b.dataModel=t})}),h.__keep=!0,h.group.silent=t.get("silent")||n.get("silent")}});function o(n,t,a){var e;n?e=y.map(n&&n.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 A(e,a),r=y.map(a.get("data"),y.curry(m.dataTransform,t));return n&&(r=y.filter(r,y.curry(m.dataFilter,n))),u.initData(r,null,n?m.dimValueGetter:function(s){return s.value}),u}k.exports=l},g7p0:function(k,D,i){var y=i("bYtY"),p=i("bLfw"),S=i("+TT/"),A=S.getLayoutParams,m=S.sizeCalculable,f=S.mergeLayoutParam,d=p.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(n,t,a,e){var u=A(n);d.superApply(this,"init",arguments),l(n,u)},mergeOption:function(n,t){d.superApply(this,"mergeOption",arguments),l(this.option,n)}});function l(n,t){var a=n.cellSize;y.isArray(a)?a.length===1&&(a[1]=a[0]):a=n.cellSize=[a,a];var e=y.map([0,1],function(u){return m(t,u)&&(a[u]="auto"),a[u]!=null&&a[u]!=="auto"});f(n,t,{type:"box",ignoreSize:e})}var o=d;k.exports=o},g9YV:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("pED+"),A=i.n(S),m=i("+L6B"),f=i("R9oj"),d=i("7Kak"),l=i("sRBo"),o=i("qVdP"),n=i("T2oS"),t=i("DjyN"),a=i("5Dmo")},gCq4:function(k,D){function i(y){return this.__data__.get(y)}k.exports=i},gIYZ:function(k,D,i){"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},gKaM:function(k,D,i){"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(k,D){function i(A){return A}function y(A,m,f,d,l){this._old=A,this._new=m,this._oldKeyGetter=f||i,this._newKeyGetter=d||i,this.context=l}y.prototype={constructor:y,add:function(A){return this._add=A,this},update:function(A){return this._update=A,this},remove:function(A){return this._remove=A,this},execute:function(){var A=this._old,m=this._new,f={},d={},l=[],o=[],n;for(p(A,f,l,"_oldKeyGetter",this),p(m,d,o,"_newKeyGetter",this),n=0;n<A.length;n++){var t=l[n],a=d[t];if(a!=null){var e=a.length;e?(e===1&&(d[t]=null),a=a.shift()):d[t]=null,this._update&&this._update(a,n)}else this._remove&&this._remove(n)}for(var n=0;n<o.length;n++){var t=o[n];if(d.hasOwnProperty(t)){var a=d[t];if(a==null)continue;if(!a.length)this._add&&this._add(a);else for(var u=0,e=a.length;u<e;u++)this._add&&this._add(a[u])}}}};function p(A,m,f,d,l){for(var o=0;o<A.length;o++){var n="_ec_"+l[d](A[o],o),t=m[n];t==null?(f.push(n),m[n]=o):(t.length||(m[n]=t=[t]),t.push(o))}}var S=y;k.exports=S},gRFJ:function(k,D,i){k.exports=[i("rdUC"),i("ynwM"),i("RELg"),i("DlR+"),i("CrYA"),i("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(k){return k<10?"0"+k:k}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(k){return rx_escapable.lastIndex=0,rx_escapable.test(k)?'"'+k.replace(rx_escapable,function(D){var i=meta[D];return typeof i=="string"?i:"\\u"+("0000"+D.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+k+'"'}function str(k,D){var i,y,p,S,A=gap,m,f=D[k];f&&typeof f=="object"&&typeof f.toJSON=="function"&&(f=f.toJSON(k)),typeof rep=="function"&&(f=rep.call(D,k,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,m=[],Object.prototype.toString.apply(f)==="[object Array]"){for(S=f.length,i=0;i<S;i+=1)m[i]=str(i,f)||"null";return p=m.length===0?"[]":gap?`[
`+gap+m.join(`,
`+gap)+`
`+A+"]":"["+m.join(",")+"]",gap=A,p}if(rep&&typeof rep=="object")for(S=rep.length,i=0;i<S;i+=1)typeof rep[i]=="string"&&(y=rep[i],p=str(y,f),p&&m.push(quote(y)+(gap?": ":":")+p));else for(y in f)Object.prototype.hasOwnProperty.call(f,y)&&(p=str(y,f),p&&m.push(quote(y)+(gap?": ":":")+p));return p=m.length===0?"{}":gap?`{
`+gap+m.join(`,
`+gap)+`
`+A+"}":"{"+m.join(",")+"}",gap=A,p}}typeof JSON.stringify!="function"&&(meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},JSON.stringify=function(k,D,i){var y;if(gap="",indent="",typeof i=="number")for(y=0;y<i;y+=1)indent+=" ";else typeof i=="string"&&(indent=i);if(rep=D,D&&typeof D!="function"&&(typeof D!="object"||typeof D.length!="number"))throw new Error("JSON.stringify");return str("",{"":k})}),typeof JSON.parse!="function"&&(JSON.parse=function(text,reviver){var j;function walk(k,D){var i,y,p=k[D];if(p&&typeof p=="object")for(i in p)Object.prototype.hasOwnProperty.call(p,i)&&(y=walk(p,i),y!==void 0?p[i]=y:delete p[i]);return reviver.call(k,D,p)}if(text=String(text),rx_dangerous.lastIndex=0,rx_dangerous.test(text)&&(text=text.replace(rx_dangerous,function(k){return"\\u"+("0000"+k.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(k,D,i){var y=i("+TT/"),p=i("bYtY"),S=i("4NO4"),A=S.groupData;function m(I,_,F){I.eachSeriesByType("sankey",function(R){var B=R.get("nodeWidth"),M=R.get("nodeGap"),X=f(R,_);R.layoutInfo=X;var P=X.width,z=X.height,W=R.getGraph(),U=W.nodes,V=W.edges;l(U);var Q=p.filter(U,function(le){return le.getLayout().value===0}),G=Q.length!==0?0:R.get("layoutIterations"),te=R.get("orient"),$=R.get("nodeAlign");d(U,V,B,M,P,z,G,te,$)})}function f(I,_){return y.getLayoutRect(I.getBoxLayoutParams(),{width:_.getWidth(),height:_.getHeight()})}function d(I,_,F,R,B,M,X,P,z){o(I,_,F,B,M,P,z),u(I,_,M,B,R,X,P),C(I,P)}function l(I){p.each(I,function(_){var F=O(_.outEdges,T),R=O(_.inEdges,T),B=_.getValue()||0,M=Math.max(F,R,B);_.setLayout({value:M},!0)})}function o(I,_,F,R,B,M,X){for(var P=[],z=[],W=[],U=[],V=0,Q=0,G=0;G<_.length;G++)P[G]=1;for(G=0;G<I.length;G++)z[G]=I[G].inEdges.length,z[G]===0&&W.push(I[G]);for(var te=-1;W.length;){for(var $=0;$<W.length;$++){var le=W[$],re=le.hostGraph.data.getRawDataItem(le.dataIndex),Se=re.depth!=null&&re.depth>=0;Se&&re.depth>te&&(te=re.depth),le.setLayout({depth:Se?re.depth:V},!0),M==="vertical"?le.setLayout({dy:F},!0):le.setLayout({dx:F},!0);for(var Re=0;Re<le.outEdges.length;Re++){var Pe=le.outEdges[Re],Je=_.indexOf(Pe);P[Je]=0;var Ve=Pe.node2,ct=I.indexOf(Ve);--z[ct]===0&&U.indexOf(Ve)<0&&U.push(Ve)}}++V,W=U,U=[]}for(G=0;G<P.length;G++)if(P[G]===1)throw new Error("Sankey is a DAG, the original data has cycle!");var Ue=te>V-1?te:V-1;X&&X!=="left"&&t(I,X,M,Ue);var Q=M==="vertical"?(B-F)/Ue:(R-F)/Ue;e(I,Q,M)}function n(I){var _=I.hostGraph.data.getRawDataItem(I.dataIndex);return _.depth!=null&&_.depth>=0}function t(I,_,F,R){if(_==="right"){for(var B=[],M=I,X=0;M.length;){for(var P=0;P<M.length;P++){var z=M[P];z.setLayout({skNodeHeight:X},!0);for(var W=0;W<z.inEdges.length;W++){var U=z.inEdges[W];B.indexOf(U.node1)<0&&B.push(U.node1)}}M=B,B=[],++X}p.each(I,function(V){n(V)||V.setLayout({depth:Math.max(0,R-V.getLayout().skNodeHeight)},!0)})}else _==="justify"&&a(I,R)}function a(I,_){p.each(I,function(F){!n(F)&&!F.outEdges.length&&F.setLayout({depth:_},!0)})}function e(I,_,F){p.each(I,function(R){var B=R.getLayout().depth*_;F==="vertical"?R.setLayout({y:B},!0):R.setLayout({x:B},!0)})}function u(I,_,F,R,B,M,X){var P=r(I,X);s(P,_,F,R,B,X),c(P,B,F,R,X);for(var z=1;M>0;M--)z*=.99,h(P,z,X),c(P,B,F,R,X),E(P,z,X),c(P,B,F,R,X)}function r(I,_){var F=[],R=_==="vertical"?"y":"x",B=A(I,function(M){return M.getLayout()[R]});return B.keys.sort(function(M,X){return M-X}),p.each(B.keys,function(M){F.push(B.buckets.get(M))}),F}function s(I,_,F,R,B,M){var X=Infinity;p.each(I,function(P){var z=P.length,W=0;p.each(P,function(V){W+=V.getLayout().value});var U=M==="vertical"?(R-(z-1)*B)/W:(F-(z-1)*B)/W;U<X&&(X=U)}),p.each(I,function(P){p.each(P,function(z,W){var U=z.getLayout().value*X;M==="vertical"?(z.setLayout({x:W},!0),z.setLayout({dx:U},!0)):(z.setLayout({y:W},!0),z.setLayout({dy:U},!0))})}),p.each(_,function(P){var z=+P.getValue()*X;P.setLayout({dy:z},!0)})}function c(I,_,F,R,B){var M=B==="vertical"?"x":"y";p.each(I,function(X){X.sort(function($,le){return $.getLayout()[M]-le.getLayout()[M]});for(var P,z,W,U=0,V=X.length,Q=B==="vertical"?"dx":"dy",G=0;G<V;G++)z=X[G],W=U-z.getLayout()[M],W>0&&(P=z.getLayout()[M]+W,B==="vertical"?z.setLayout({x:P},!0):z.setLayout({y:P},!0)),U=z.getLayout()[M]+z.getLayout()[Q]+_;var te=B==="vertical"?R:F;if(W=U-_-te,W>0)for(P=z.getLayout()[M]-W,B==="vertical"?z.setLayout({x:P},!0):z.setLayout({y:P},!0),U=P,G=V-2;G>=0;--G)z=X[G],W=z.getLayout()[M]+z.getLayout()[Q]+_-U,W>0&&(P=z.getLayout()[M]-W,B==="vertical"?z.setLayout({x:P},!0):z.setLayout({y:P},!0)),U=z.getLayout()[M]})}function h(I,_,F){p.each(I.slice().reverse(),function(R){p.each(R,function(B){if(B.outEdges.length){var M=O(B.outEdges,g,F)/O(B.outEdges,T,F);if(isNaN(M)){var X=B.outEdges.length;M=X?O(B.outEdges,v,F)/X:0}if(F==="vertical"){var P=B.getLayout().x+(M-x(B,F))*_;B.setLayout({x:P},!0)}else{var z=B.getLayout().y+(M-x(B,F))*_;B.setLayout({y:z},!0)}}})})}function g(I,_){return x(I.node2,_)*I.getValue()}function v(I,_){return x(I.node2,_)}function b(I,_){return x(I.node1,_)*I.getValue()}function w(I,_){return x(I.node1,_)}function x(I,_){return _==="vertical"?I.getLayout().x+I.getLayout().dx/2:I.getLayout().y+I.getLayout().dy/2}function T(I){return I.getValue()}function O(I,_,F){for(var R=0,B=I.length,M=-1;++M<B;){var X=+_.call(I,I[M],F);isNaN(X)||(R+=X)}return R}function E(I,_,F){p.each(I,function(R){p.each(R,function(B){if(B.inEdges.length){var M=O(B.inEdges,b,F)/O(B.inEdges,T,F);if(isNaN(M)){var X=B.inEdges.length;M=X?O(B.inEdges,w,F)/X:0}if(F==="vertical"){var P=B.getLayout().x+(M-x(B,F))*_;B.setLayout({x:P},!0)}else{var z=B.getLayout().y+(M-x(B,F))*_;B.setLayout({y:z},!0)}}})})}function C(I,_){var F=_==="vertical"?"x":"y";p.each(I,function(R){R.outEdges.sort(function(B,M){return B.node2.getLayout()[F]-M.node2.getLayout()[F]}),R.inEdges.sort(function(B,M){return B.node1.getLayout()[F]-M.node1.getLayout()[F]})}),p.each(I,function(R){var B=0,M=0;p.each(R.outEdges,function(X){X.setLayout({sy:B},!0),B+=X.getLayout().dy}),p.each(R.inEdges,function(X){X.setLayout({ty:M},!0),M+=X.getLayout().dy})})}k.exports=m},"gb/T":function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return y.mode.ECB=function(){var p=y.lib.BlockCipherMode.extend();return p.Encryptor=p.extend({processBlock:function(A,m){this._cipher.encryptBlock(A,m)}}),p.Decryptor=p.extend({processBlock:function(A,m){this._cipher.decryptBlock(A,m)}}),p}(),y.mode.ECB})},"giR+":function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("QbM5"),A=i.n(S)},gut8:function(k,D){var i={NONE:0,STYLE_BIND:1,PLAIN_TEXT:2},y=9;D.ContextCachedBy=i,D.WILL_BE_RESTORED=y},gvm7:function(k,D,i){var y=i("bYtY"),p=i("dqUG");function S(m){this._zr=m.getZr(),this._show=!1,this._hideTimeout}S.prototype={constructor:S,_enterable:!0,update:function(){},show:function(m){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.attr("show",!0),this._show=!0},setContent:function(m,f,d){this.el&&this._zr.remove(this.el);for(var l={},o=m,n="{marker",t="|}",a=o.indexOf(n);a>=0;){var e=o.indexOf(t),u=o.substr(a+n.length,e-a-n.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]},o=o.substr(e+1),a=o.indexOf("{marker")}this.el=new p({style:{rich:l,text:m,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(m){this._enterable=m},getSize:function(){var m=this.el.getBoundingRect();return[m.width,m.height]},moveTo:function(m,f){this.el&&this.el.attr("position",[m,f])},hide:function(){this.el&&this.el.hide(),this._show=!1},hideLater:function(m){this._show&&!(this._inContent&&this._enterable)&&(m?(this._hideDelay=m,this._show=!1,this._hideTimeout=setTimeout(y.bind(this.hide,this),m)):this.hide())},isShow:function(){return this._show},getOuterSize:function(){var m=this.getSize();return{width:m[0],height:m[1]}}};var A=S;k.exports=A},gwTy:function(k,D,i){},h54F:function(k,D,i){var y=i("ProS"),p=i("YXkt"),S=i("bYtY"),A=i("4NO4"),m=A.defaultEmphasis,f=i("Qxkt"),d=i("7aKB"),l=d.encodeHTML,o=i("I3/A"),n=i("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 n(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),m(e,["edgeLabel"],["show"])},getInitialData:function(e,u){var r=e.edges||e.links||[],s=e.data||e.nodes||[],c=this;if(s&&r)return o(s,r,this,!0,h).data;function h(g,v){g.wrapMethod("getItemModel",function(E){var C=c._categoriesModels,I=E.getShallow("category"),_=C[I];return _&&(_.parentModel=E.parentModel,E.parentModel=_),E});var b=c.getModel("edgeLabel"),w=new f({label:b.option},b.parentModel,u),x=c.getModel("emphasis.edgeLabel"),T=new f({emphasis:{label:x.option}},x.parentModel,u);v.wrapMethod("getItemModel",function(E){return E.customizeGetParent(O),E});function O(E){return E=this.parsePath(E),E&&E[0]==="label"?w:E&&E[0]==="emphasis"&&E[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),g=s.getName(h.node1.dataIndex),v=s.getName(h.node2.dataIndex),b=[];return g!=null&&b.push(g),v!=null&&b.push(v),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 p(["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}}}}),a=t;k.exports=a},h7HQ:function(k,D,i){var y=i("y+Vt"),p=i("T6xi"),S=y.extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(m,f){p.buildPath(m,f,!0)}});k.exports=S},h8O9:function(k,D,i){var y=i("bYtY"),p=y.map,S=i("zM3Q"),A=i("7hqr"),m=A.isDimensionStacked;function f(d){return{seriesType:d,plan:S(),reset:function(l){var o=l.getData(),n=l.coordinateSystem,t=l.pipelineContext,a=t.large;if(!n)return;var e=p(n.dimensions,function(c){return o.mapDimension(c)}).slice(0,2),u=e.length,r=o.getCalculationInfo("stackResultDimension");m(o,e[0])&&(e[0]=r),m(o,e[1])&&(e[1]=r);function s(c,h){for(var g=c.end-c.start,v=a&&new Float32Array(g*u),b=c.start,w=0,x=[],T=[];b<c.end;b++){var O;if(u===1){var E=h.get(e[0],b);O=!isNaN(E)&&n.dataToPoint(E,null,T)}else{var E=x[0]=h.get(e[0],b),C=x[1]=h.get(e[1],b);O=!isNaN(E)&&!isNaN(C)&&n.dataToPoint(x,null,T)}a?(v[w++]=O?O[0]:NaN,v[w++]=O?O[1]:NaN):h.setItemLayout(b,O&&O.slice()||[NaN,NaN])}a&&h.setLayout("symbolPoints",v)}return u&&{progress:s}}}}k.exports=f},hD7B:function(k,D,i){var y=i("bYtY"),p=["getDom","getZr","getWidth","getHeight","getDevicePixelRatio","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption","getViewOfComponentModel","getViewOfSeriesModel"];function S(m){y.each(p,function(f){this[f]=y.bind(m[f],m)},this)}var A=S;k.exports=A},hFmY:function(k,D,i){var y=i("ProS"),p={type:"axisAreaSelect",event:"axisAreaSelected"};y.registerAction(p,function(S,A){A.eachComponent({mainType:"parallelAxis",query:S},function(m){m.axis.model.setActiveIntervals(S.intervals)})}),y.registerAction("parallelAxisExpand",function(S,A){A.eachComponent({mainType:"parallel",query:S},function(m){m.setAxisExpand(S)})})},hJvP:function(k,D,i){var y=i("2dDv"),p=i("IDmD");function S(A,m){var f=[];return A.eachComponent("parallel",function(d,l){var o=new y(d,A,m);o.name="parallel_"+l,o.resize(d,m),d.coordinateSystem=o,o.model=d,f.push(o)}),A.eachSeries(function(d){if(d.get("coordinateSystem")==="parallel"){var l=A.queryComponents({mainType:"parallel",index:d.get("parallelIndex"),id:d.get("parallelId")})[0];d.coordinateSystem=l.coordinateSystem}}),f}p.register("parallel",{create:S})},hM6l:function(k,D,i){var y=i("bYtY"),p=y.each,S=y.map,A=i("OELB"),m=A.linearMap,f=A.getPixelPrecision,d=A.round,l=i("4HMb"),o=l.createAxisTicks,n=l.createAxisLabels,t=l.calculateCategoryInterval,a=[0,1],e=function(c,h,g){this.dim=c,this.scale=h,this._extent=g||[0,0],this.inverse=!1,this.onBand=!1};e.prototype={constructor:e,contain:function(c){var h=this._extent,g=Math.min(h[0],h[1]),v=Math.max(h[0],h[1]);return c>=g&&c<=v},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 g=this._extent;g[0]=c,g[1]=h},dataToCoord:function(c,h){var g=this._extent,v=this.scale;return c=v.normalize(c),this.onBand&&v.type==="ordinal"&&(g=g.slice(),u(g,v.count())),m(c,a,g,h)},coordToData:function(c,h){var g=this._extent,v=this.scale;this.onBand&&v.type==="ordinal"&&(g=g.slice(),u(g,v.count()));var b=m(c,g,a,h);return this.scale.scale(b)},pointToData:function(c,h){},getTicksCoords:function(c){c=c||{};var h=c.tickModel||this.getTickModel(),g=o(this,h),v=g.ticks,b=S(v,function(x){return{coord:this.dataToCoord(x),tickValue:x}},this),w=h.get("alignWithLabel");return r(this,b,w,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 g=this.scale.getMinorTicks(h),v=S(g,function(b){return S(b,function(w){return{coord:this.dataToCoord(w),tickValue:w}},this)},this);return v},getViewLabels:function(){return n(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(),g=h[1]-h[0]+(this.onBand?1:0);g===0&&(g=1);var v=Math.abs(c[1]-c[0]);return Math.abs(v)/g},isHorizontal:null,getRotate:null,calculateCategoryInterval:function(){return t(this)}};function u(c,h){var g=c[1]-c[0],v=h,b=g/v/2;c[0]+=b,c[1]-=b}function r(c,h,g,v){var b=h.length;if(!c.onBand||g||!b)return;var w=c.getExtent(),x,T;if(b===1)h[0].coord=w[0],x=h[1]={coord:w[0]};else{var O=h[b-1].tickValue-h[0].tickValue,E=(h[b-1].coord-h[0].coord)/O;p(h,function(F){F.coord-=E/2});var C=c.scale.getExtent();T=1+C[1]-h[b-1].tickValue,x={coord:h[b-1].coord+E*T},h.push(x)}var I=w[0]>w[1];_(h[0].coord,w[0])&&(v?h[0].coord=w[0]:h.shift()),v&&_(w[0],h[0].coord)&&h.unshift({coord:w[0]}),_(w[1],x.coord)&&(v?x.coord=w[1]:h.pop()),v&&_(x.coord,w[1])&&h.push({coord:w[1]});function _(F,R){return F=d(F),R=d(R),I?F>R:F<R}}var s=e;k.exports=s},hNWo:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("Qxkt"),A=i("4NO4"),m=A.isNameSpecified,f=i("Kagy"),d=f.legend.selector,l={all:{type:"all",title:p.clone(d.all)},inverse:{type:"inverse",title:p.clone(d.inverse)}},o=y.extendComponentModel({type:"legend.plain",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,a,e){this.mergeDefaultAndTheme(t,e),t.selected=t.selected||{},this._updateSelector(t)},mergeOption:function(t){o.superCall(this,"mergeOption",t),this._updateSelector(t)},_updateSelector:function(t){var a=t.selector;a===!0&&(a=t.selector=["all","inverse"]),p.isArray(a)&&p.each(a,function(e,u){p.isString(e)&&(e={type:e}),a[u]=p.merge(e,l[e.type])})},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&this.get("selectedMode")==="single"){for(var a=!1,e=0;e<t.length;e++){var u=t[e].get("name");if(this.isSelected(u)){this.select(u),a=!0;break}}!a&&this.select(t[0].get("name"))}},_updateData:function(t){var a=[],e=[];t.eachRawSeries(function(s){var c=s.name;e.push(c);var h;if(s.legendVisualProvider){var g=s.legendVisualProvider,v=g.getAllNames();t.isSeriesFiltered(s)||(e=e.concat(v)),v.length?a=a.concat(v):h=!0}else h=!0;h&&m(s)&&a.push(s.name)}),this._availableNames=e;var u=this.get("data")||a,r=p.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 a=this.option.selected,e=this.get("selectedMode");if(e==="single"){var u=this._data;p.each(u,function(r){a[r.get("name")]=!1})}a[t]=!0},unSelect:function(t){this.get("selectedMode")!=="single"&&(this.option.selected[t]=!1)},toggleSelected:function(t){var a=this.option.selected;a.hasOwnProperty(t)||(a[t]=!0),this[a[t]?"unSelect":"select"](t)},allSelect:function(){var t=this._data,a=this.option.selected;p.each(t,function(e){a[e.get("name",!0)]=!0})},inverseSelect:function(){var t=this._data,a=this.option.selected;p.each(t,function(e){var u=e.get("name",!0);a.hasOwnProperty(u)||(a[u]=!0),a[u]=!a[u]})},isSelected:function(t){var a=this.option.selected;return!(a.hasOwnProperty(t)&&!a[t])&&p.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}}}),n=o;k.exports=n},hOwI:function(k,D){var i=Math.log(2);function y(S,A,m,f,d,l){var o=f+"-"+d,n=S.length;if(l.hasOwnProperty(o))return l[o];if(A===1){var t=Math.round(Math.log((1<<n)-1&~d)/i);return S[m][t]}for(var a=f|1<<m,e=m+1;f&1<<e;)e++;for(var u=0,r=0,s=0;r<n;r++){var c=1<<r;c&d||(u+=(s%2?-1:1)*S[m][r]*y(S,A-1,e,a,d|c,l),s++)}return l[o]=u,u}function p(S,A){var m=[[S[0],S[1],1,0,0,0,-A[0]*S[0],-A[0]*S[1]],[0,0,0,S[0],S[1],1,-A[1]*S[0],-A[1]*S[1]],[S[2],S[3],1,0,0,0,-A[2]*S[2],-A[2]*S[3]],[0,0,0,S[2],S[3],1,-A[3]*S[2],-A[3]*S[3]],[S[4],S[5],1,0,0,0,-A[4]*S[4],-A[4]*S[5]],[0,0,0,S[4],S[5],1,-A[5]*S[4],-A[5]*S[5]],[S[6],S[7],1,0,0,0,-A[6]*S[6],-A[6]*S[7]],[0,0,0,S[6],S[7],1,-A[7]*S[6],-A[7]*S[7]]],f={},d=y(m,8,0,0,0,f);if(d===0)return;for(var l=[],o=0;o<8;o++)for(var n=0;n<8;n++)l[n]==null&&(l[n]=0),l[n]+=((o+n)%2?-1:1)*y(m,7,o===0?1:0,1<<o,1<<n,f)/d*A[o];return function(t,a,e){var u=a*l[6]+e*l[7]+1;t[0]=(a*l[0]+e*l[1]+l[2])/u,t[1]=(a*l[3]+e*l[4]+l[5])/u}}D.buildTransformer=p},hX1E:function(k,D){var i=Math.PI*2;function y(p){return p%=i,p<0&&(p+=i),p}D.normalizeRadian=y},hXwI:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(m,f){if(!(m instanceof f))throw new TypeError("Cannot call a class as a function")}function p(m,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(m,l.key,l)}}function S(m,f,d){return f&&p(m.prototype,f),d&&p(m,d),m}var A=function(){function m(){y(this,m)}return S(m,[{key:"decodeRect",value:function(d,l,o,n,t,a,e){if(t.rQwait("COPYRECT",4))return!1;var u=t.rQshift16(),r=t.rQshift16();return a.copyImage(u,r,d,l,o,n),!0}}]),m}();D.default=A},hi0g:function(k,D,i){var y=i("bYtY"),p=y.createHashMap,S=y.each,A=y.isString,m=y.defaults,f=y.extend,d=y.isObject,l=y.clone,o=i("4NO4"),n=o.normalizeToArray,t=i("D5nY"),a=t.guessOrdinal,e=t.BE_ORDINAL,u=i("7G+c"),r=i("L0Ub"),s=r.OTHER_DIMENSIONS,c=i("Vi4m");function h(w,x,T){u.isInstance(x)||(x=u.seriesDataToSource(x)),T=T||{},w=(w||[]).slice();for(var O=(T.dimsDef||[]).slice(),E=p(),C=p(),I=[],_=g(x,w,O,T.dimCount),F=0;F<_;F++){var R=O[F]=f({},d(O[F])?O[F]:{name:O[F]}),B=R.name,M=I[F]=new c;B!=null&&E.get(B)==null&&(M.name=M.displayName=B,E.set(B,F)),R.type!=null&&(M.type=R.type),R.displayName!=null&&(M.displayName=R.displayName)}var X=T.encodeDef;!X&&T.encodeDefaulter&&(X=T.encodeDefaulter(x,_)),X=p(X),X.each(function($,le){if($=n($).slice(),$.length===1&&!A($[0])&&$[0]<0){X.set(le,!1);return}var re=X.set(le,[]);S($,function(Se,Re){A(Se)&&(Se=E.get(Se)),Se!=null&&Se<_&&(re[Re]=Se,z(I[Se],le,Re))})});var P=0;S(w,function($,le){var re,$,Se,Re;if(A($))re=$,$={};else{re=$.name;var Pe=$.ordinalMeta;$.ordinalMeta=null,$=l($),$.ordinalMeta=Pe,Se=$.dimsDef,Re=$.otherDims,$.name=$.coordDim=$.coordDimIndex=$.dimsDef=$.otherDims=null}var Je=X.get(re);if(Je===!1)return;var Je=n(Je);if(!Je.length)for(var Ve=0;Ve<(Se&&Se.length||1);Ve++){for(;P<I.length&&I[P].coordDim!=null;)P++;P<I.length&&Je.push(P++)}S(Je,function(ct,Ue){var ue=I[ct];if(z(m(ue,$),re,Ue),ue.name==null&&Se){var rt=Se[Ue];!d(rt)&&(rt={name:rt}),ue.name=ue.displayName=rt.name,ue.defaultTooltip=rt.defaultTooltip}Re&&m(ue.otherDims,Re)})});function z($,le,re){s.get(le)!=null?$.otherDims[le]=re:($.coordDim=le,$.coordDimIndex=re,C.set(le,!0))}var W=T.generateCoord,U=T.generateCoordCount,V=U!=null;U=W?U||1:0;for(var Q=W||"value",G=0;G<_;G++){var M=I[G]=I[G]||new c,te=M.coordDim;te==null&&(M.coordDim=v(Q,C,V),M.coordDimIndex=0,(!W||U<=0)&&(M.isExtraCoord=!0),U--),M.name==null&&(M.name=v(M.coordDim,E)),M.type==null&&(a(x,G,M.name)===e.Must||M.isExtraCoord&&(M.otherDims.itemName!=null||M.otherDims.seriesName!=null))&&(M.type="ordinal")}return I}function g(w,x,T,O){var E=Math.max(w.dimensionsDetectCount||1,x.length,T.length,O||0);return S(x,function(C){var I=C.dimsDef;I&&(E=Math.max(E,I.length))}),E}function v(w,x,T){if(T||x.get(w)!=null){for(var O=0;x.get(w+O)!=null;)O++;w+=O}return x.set(w,!0),w}var b=h;k.exports=b},hkKa:function(k,D,i){"use strict";i.d(D,"a",function(){return m});var y=i("J4zp"),p=i.n(y),S=i("q1tI"),A=i.n(S);function m(){var f=S.useReducer(function(o){return o+1},0),d=p()(f,2),l=d[1];return l}},hw6D:function(k,D,i){var y=i("bYtY");function p(m){m.eachSeriesByType("radar",function(f){var d=f.getData(),l=[],o=f.coordinateSystem;if(!o)return;var n=o.getIndicatorAxes();y.each(n,function(t,a){d.each(d.mapDimension(n[a].dim),function(e,u){l[u]=l[u]||[];var r=o.dataToPoint(e,a);l[u][a]=S(r)?r:A(o)})}),d.each(function(t){var a=y.find(l[t],function(e){return S(e)})||A(o);l[t].push(a.slice()),d.setItemLayout(t,l[t])})})}function S(m){return!isNaN(m[0])&&!isNaN(m[1])}function A(m){return[m.cx,m.cy]}k.exports=p},hwYd:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("Nu4q")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="PictureTwoTone";var n=A.forwardRef(o);D.default=n},hydK:function(k,D){var i="http://www.w3.org/2000/svg";function y(p){return document.createElementNS(i,p)}D.createElement=y},hyiK:function(k,D){function i(y,p,S,A,m,f){if(f>p&&f>A||f<p&&f<A)return 0;if(A===p)return 0;var d=A<p?1:-1,l=(f-p)/(A-p);(l===1||l===0)&&(d=A<p?.5:-.5);var o=l*(S-y)+y;return o===m?Infinity:o>m?d:0}k.exports=i},i38C:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),A=S.createHashMap,m=S.retrieve,f=S.each;function d(t){this.coordSysName=t,this.coordSysDims=[],this.axisMap=A(),this.categoryAxisMap=A(),this.firstCategoryDimIndex=null}function l(t){var a=t.get("coordinateSystem"),e=new d(a),u=o[a];if(u)return u(t,e,e.axisMap,e.categoryAxisMap),e}var o={cartesian2d:function(t,a,e,u){var r=t.getReferringComponents("xAxis")[0],s=t.getReferringComponents("yAxis")[0];a.coordSysDims=["x","y"],e.set("x",r),e.set("y",s),n(r)&&(u.set("x",r),a.firstCategoryDimIndex=0),n(s)&&(u.set("y",s),a.firstCategoryDimIndex==null&(a.firstCategoryDimIndex=1))},singleAxis:function(t,a,e,u){var r=t.getReferringComponents("singleAxis")[0];a.coordSysDims=["single"],e.set("single",r),n(r)&&(u.set("single",r),a.firstCategoryDimIndex=0)},polar:function(t,a,e,u){var r=t.getReferringComponents("polar")[0],s=r.findAxisModel("radiusAxis"),c=r.findAxisModel("angleAxis");a.coordSysDims=["radius","angle"],e.set("radius",s),e.set("angle",c),n(s)&&(u.set("radius",s),a.firstCategoryDimIndex=0),n(c)&&(u.set("angle",c),a.firstCategoryDimIndex==null&&(a.firstCategoryDimIndex=1))},geo:function(t,a,e,u){a.coordSysDims=["lng","lat"]},parallel:function(t,a,e,u){var r=t.ecModel,s=r.getComponent("parallel",t.get("parallelIndex")),c=a.coordSysDims=s.dimensions.slice();f(s.parallelAxisIndex,function(h,g){var v=r.getComponent("parallelAxis",h),b=c[g];e.set(b,v),n(v)&&a.firstCategoryDimIndex==null&&(u.set(b,v),a.firstCategoryDimIndex=g)})}};function n(t){return t.get("type")==="category"}D.getCoordSysInfoBySeries=l},i6bk:function(k,D,i){"use strict";i.d(D,"b",function(){return y}),i.d(D,"a",function(){return p});function y(S){return S!=null&&S===S.window}function p(S,A){if(typeof window=="undefined")return 0;var m=A?"scrollTop":"scrollLeft",f=0;return y(S)?f=S[A?"pageYOffset":"pageXOffset"]:S instanceof Document?f=S.documentElement[m]:S&&(f=S[m]),S&&!y(S)&&typeof f!="number"&&(f=(S.ownerDocument||S).documentElement[m]),f}},i8CU:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("Fm1+"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},iLNv:function(k,D){var i="\0__throttleOriginMethod",y="\0__throttleRate",p="\0__throttleType";function S(f,d,l){var o,n=0,t=0,a=null,e,u,r,s;d=d||0;function c(){t=new Date().getTime(),a=null,f.apply(u,r||[])}var h=function(){o=new Date().getTime(),u=this,r=arguments;var g=s||d,v=s||l;s=null,e=o-(v?n:t)-g,clearTimeout(a),v?a=setTimeout(c,g):e>=0?c():a=setTimeout(c,-e),n=o};return h.clear=function(){a&&(clearTimeout(a),a=null)},h.debounceNextCall=function(g){s=g},h}function A(f,d,l,o){var n=f[d];if(!n)return;var t=n[i]||n,a=n[p],e=n[y];if(e!==l||a!==o){if(l==null||!o)return f[d]=t;n=f[d]=S(t,l,o==="debounce"),n[i]=t,n[p]=o,n[y]=l}return n}function m(f,d){var l=f[d];l&&l[i]&&(f[d]=l[i])}D.throttle=S,D.createOrUpdate=A,D.clear=m},iPDy:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=y.extendComponentView({type:"marker",init:function(){this.markerGroupMap=p.createHashMap()},render:function(A,m,f){var d=this.markerGroupMap;d.each(function(o){o.__keep=!1});var l=this.type+"Model";m.eachSeries(function(o){var n=o[l];n&&this.renderSeries(o,n,m,f)},this),d.each(function(o){!o.__keep&&this.group.remove(o.group)},this)},renderSeries:function(){}});k.exports=S},iQDF:function(k,D,i){"use strict";var y=i("ZTW2"),p=i.n(y),S=i("+BJd"),A=i("+L6B")},iRjW:function(k,D,i){var y=i("bYtY"),p=i("Yl7c"),S=p.parseClassType,A=0;function m(l){return[l||"",A++,Math.random().toFixed(5)].join("_")}function f(l){var o={};return l.registerSubTypeDefaulter=function(n,t){n=S(n),o[n.main]=t},l.determineSubType=function(n,t){var a=t.type;if(!a){var e=S(n).main;l.hasSubTypes(n)&&o[e]&&(a=o[e](t))}return a},l}function d(l,o){l.topologicalTravel=function(e,u,r,s){if(!e.length)return;var c=n(u),h=c.graph,g=c.noEntryList,v={};for(y.each(e,function(E){v[E]=!0});g.length;){var b=g.pop(),w=h[b],x=!!v[b];x&&(r.call(s,b,w.originalDeps.slice()),delete v[b]),y.each(w.successor,x?O:T)}y.each(v,function(){throw new Error("Circle dependency may exists")});function T(E){h[E].entryCount--,h[E].entryCount===0&&g.push(E)}function O(E){v[E]=!0,T(E)}};function n(e){var u={},r=[];return y.each(e,function(s){var c=t(u,s),h=c.originalDeps=o(s),g=a(h,e);c.entryCount=g.length,c.entryCount===0&&r.push(s),y.each(g,function(v){y.indexOf(c.predecessor,v)<0&&c.predecessor.push(v);var b=t(u,v);y.indexOf(b.successor,v)<0&&b.successor.push(s)})}),{graph:u,noEntryList:r}}function t(e,u){return e[u]||(e[u]={predecessor:[],successor:[]}),e[u]}function a(e,u){var r=[];return y.each(e,function(s){y.indexOf(u,s)>=0&&r.push(s)}),r}}D.getUID=m,D.enableSubTypeDefaulter=f,D.enableTopologicalTravel=d},iUHT:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;function y(w,x){if(!(w instanceof x))throw new TypeError("Cannot call a class as a function")}function p(w,x){for(var T=0;T<x.length;T++){var O=x[T];O.enumerable=O.enumerable||!1,O.configurable=!0,"value"in O&&(O.writable=!0),Object.defineProperty(w,O.key,O)}}function S(w,x,T){return x&&p(w.prototype,x),T&&p(w,T),w}var A=[13,16,10,23,0,4,2,27,14,5,20,9,22,18,11,3,25,7,15,6,26,19,12,1,40,51,30,36,46,54,29,39,50,44,32,47,43,48,38,55,33,52,45,41,49,35,28,31],m=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],f=0,d,l,o,n,t,a;d=1<<16,l=1<<24,o=d|l,n=1<<2,t=1<<10,a=n|t;var e=[o|t,f|f,d|f,o|a,o|n,d|a,f|n,d|f,f|t,o|t,o|a,f|t,l|a,o|n,l|f,f|n,f|a,l|t,l|t,d|t,d|t,o|f,o|f,l|a,d|n,l|n,l|n,d|n,f|f,f|a,d|a,l|f,d|f,o|a,f|n,o|f,o|t,l|f,l|f,f|t,o|n,d|f,d|t,l|n,f|t,f|n,l|a,d|a,o|a,d|n,o|f,l|a,l|n,f|a,d|a,o|t,f|a,l|t,l|t,f|f,d|n,d|t,f|f,o|n];d=1<<20,l=1<<31,o=d|l,n=1<<5,t=1<<15,a=n|t;var u=[o|a,l|t,f|t,d|a,d|f,f|n,o|n,l|a,l|n,o|a,o|t,l|f,l|t,d|f,f|n,o|n,d|t,d|n,l|a,f|f,l|f,f|t,d|a,o|f,d|n,l|n,f|f,d|t,f|a,o|t,o|f,f|a,f|f,d|a,o|n,d|f,l|a,o|f,o|t,f|t,o|f,l|t,f|n,o|a,d|a,f|n,f|t,l|f,f|a,o|t,d|f,l|n,d|n,l|a,l|n,d|n,d|t,f|f,l|t,f|a,l|f,o|n,o|a,d|t];d=1<<17,l=1<<27,o=d|l,n=1<<3,t=1<<9,a=n|t;var r=[f|a,o|t,f|f,o|n,l|t,f|f,d|a,l|t,d|n,l|n,l|n,d|f,o|a,d|n,o|f,f|a,l|f,f|n,o|t,f|t,d|t,o|f,o|n,d|a,l|a,d|t,d|f,l|a,f|n,o|a,f|t,l|f,o|t,l|f,d|n,f|a,d|f,o|t,l|t,f|f,f|t,d|n,o|a,l|t,l|n,f|t,f|f,o|n,l|a,d|f,l|f,o|a,f|n,d|a,d|t,l|n,o|f,l|a,f|a,o|f,d|a,f|n,o|n,d|t];d=1<<13,l=1<<23,o=d|l,n=1<<0,t=1<<7,a=n|t;var s=[o|n,d|a,d|a,f|t,o|t,l|a,l|n,d|n,f|f,o|f,o|f,o|a,f|a,f|f,l|t,l|n,f|n,d|f,l|f,o|n,f|t,l|f,d|n,d|t,l|a,f|n,d|t,l|t,d|f,o|t,o|a,f|a,l|t,l|n,o|f,o|a,f|a,f|f,f|f,o|f,d|t,l|t,l|a,f|n,o|n,d|a,d|a,f|t,o|a,f|a,f|n,d|f,l|n,d|n,o|t,l|a,d|n,d|t,l|f,o|n,f|t,l|f,d|f,o|t];d=1<<25,l=1<<30,o=d|l,n=1<<8,t=1<<19,a=n|t;var c=[f|n,d|a,d|t,o|n,f|t,f|n,l|f,d|t,l|a,f|t,d|n,l|a,o|n,o|t,f|a,l|f,d|f,l|t,l|t,f|f,l|n,o|a,o|a,d|n,o|t,l|n,f|f,o|f,d|a,d|f,o|f,f|a,f|t,o|n,f|n,d|f,l|f,d|t,o|n,l|a,d|n,l|f,o|t,d|a,l|a,f|n,d|f,o|t,o|a,f|a,o|f,o|a,d|t,f|f,l|t,o|f,f|a,d|n,l|n,f|t,f|f,l|t,d|a,l|n];d=1<<22,l=1<<29,o=d|l,n=1<<4,t=1<<14,a=n|t;var h=[l|n,o|f,f|t,o|a,o|f,f|n,o|a,d|f,l|t,d|a,d|f,l|n,d|n,l|t,l|f,f|a,f|f,d|n,l|a,f|t,d|t,l|a,f|n,o|n,o|n,f|f,d|a,o|t,f|a,d|t,o|t,l|f,l|t,f|n,o|n,d|t,o|a,d|f,f|a,l|n,d|f,l|t,l|f,f|a,l|n,o|a,d|t,o|f,d|a,o|t,f|f,o|n,f|n,f|t,o|f,d|a,f|t,d|n,l|a,f|f,o|t,l|f,d|n,l|a];d=1<<21,l=1<<26,o=d|l,n=1<<1,t=1<<11,a=n|t;var g=[d|f,o|n,l|a,f|f,f|t,l|a,d|a,o|t,o|a,d|f,f|f,l|n,f|n,l|f,o|n,f|a,l|t,d|a,d|n,l|t,l|n,o|f,o|t,d|n,o|f,f|t,f|a,o|a,d|t,f|n,l|f,d|t,l|f,d|t,d|f,l|a,l|a,o|n,o|n,f|n,d|n,l|f,l|t,d|f,o|t,f|a,d|a,o|t,f|a,l|n,o|a,o|f,d|t,f|f,f|n,o|a,f|f,d|a,o|f,f|t,l|n,l|t,f|t,d|n];d=1<<18,l=1<<28,o=d|l,n=1<<6,t=1<<12,a=n|t;var v=[l|a,f|t,d|f,o|a,l|f,l|a,f|n,l|f,d|n,o|f,o|a,d|t,o|t,d|a,f|t,f|n,o|f,l|n,l|t,f|a,d|t,d|n,o|n,o|t,f|a,f|f,f|f,o|n,l|n,l|t,d|a,d|f,d|a,d|f,o|t,f|t,f|n,o|n,f|t,d|a,l|t,f|n,l|n,o|f,o|n,l|f,d|f,l|a,f|f,o|a,d|n,l|n,o|f,l|t,l|a,f|f,o|a,d|t,d|t,f|a,f|a,d|n,l|f,o|t],b=function(){function w(x){y(this,w),this.keys=[];for(var T=[],O=[],E=[],C=0,I=56;C<56;++C,I-=8){I+=I<-5?65:I<-3?31:I<-1?63:I===27?35:0;var _=I&7;T[C]=(x[I>>>3]&1<<_)!==0?1:0}for(var F=0;F<16;++F){var R=F<<1,B=R+1;E[R]=E[B]=0;for(var M=28;M<59;M+=28)for(var X=M-28;X<M;++X){var P=X+m[F];O[X]=P<M?T[P]:T[P-28]}for(var z=0;z<24;++z)O[A[z]]!==0&&(E[R]|=1<<23-z),O[A[z+24]]!==0&&(E[B]|=1<<23-z)}for(var W=0,U=0,V=0;W<16;++W){var Q=E[U++],G=E[U++];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(w,[{key:"enc8",value:function(T){var O=T.slice(),E=0,C,I,_;C=O[E++]<<24|O[E++]<<16|O[E++]<<8|O[E++],I=O[E++]<<24|O[E++]<<16|O[E++]<<8|O[E++],_=(C>>>4^I)&252645135,I^=_,C^=_<<4,_=(C>>>16^I)&65535,I^=_,C^=_<<16,_=(I>>>2^C)&858993459,C^=_,I^=_<<2,_=(I>>>8^C)&16711935,C^=_,I^=_<<8,I=I<<1|I>>>31&1,_=(C^I)&2863311530,C^=_,I^=_,C=C<<1|C>>>31&1;for(var F=0,R=0;F<8;++F){_=I<<28|I>>>4,_^=this.keys[R++];var B=g[_&63];B|=c[_>>>8&63],B|=r[_>>>16&63],B|=e[_>>>24&63],_=I^this.keys[R++],B|=v[_&63],B|=h[_>>>8&63],B|=s[_>>>16&63],B|=u[_>>>24&63],C^=B,_=C<<28|C>>>4,_^=this.keys[R++],B=g[_&63],B|=c[_>>>8&63],B|=r[_>>>16&63],B|=e[_>>>24&63],_=C^this.keys[R++],B|=v[_&63],B|=h[_>>>8&63],B|=s[_>>>16&63],B|=u[_>>>24&63],I^=B}for(I=I<<31|I>>>1,_=(C^I)&2863311530,C^=_,I^=_,C=C<<31|C>>>1,_=(C>>>8^I)&16711935,I^=_,C^=_<<8,_=(C>>>2^I)&858993459,I^=_,C^=_<<2,_=(I>>>16^C)&65535,C^=_,I^=_<<16,_=(I>>>4^C)&252645135,C^=_,I^=_<<4,_=[I,C],E=0;E<8;E++)O[E]=(_[E>>>2]>>>8*(3-E%4))%256,O[E]<0&&(O[E]+=256);return O}},{key:"encrypt",value:function(T){return this.enc8(T.slice(0,8)).concat(this.enc8(T.slice(8,16)))}}]),w}();D.default=b},iXHM:function(k,D){var i="";typeof navigator!="undefined"&&(i=navigator.platform||"");var y={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],gradientColor:["#f6efa6","#d88273","#bf444c"],textStyle:{fontFamily:i.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};k.exports=y},iXp4:function(k,D,i){var y=i("ItGF"),p=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];function S(A){return y.browser.ie&&y.browser.version>=11?function(){var m=this.__clipPaths,f=this.style,d;if(m)for(var l=0;l<m.length;l++){var o=m[l],n=o&&o.shape,t=o&&o.type;if(n&&(t==="sector"&&n.startAngle===n.endAngle||t==="rect"&&(!n.width||!n.height))){for(var a=0;a<p.length;a++)p[a][2]=f[p[a][0]],f[p[a][0]]=p[a][1];d=!0;break}}if(A.apply(this,arguments),d)for(var a=0;a<p.length;a++)f[p[a][0]]=p[a][2]}:A}k.exports=S},iYpf:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("ZLWo")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="FolderOpenOutlined";var n=A.forwardRef(o);D.default=n},ieMj:function(k,D,i){var y=i("OELB"),p=i("7aKB"),S=i("4NgU"),A=i("lE7J"),m=y.round,f=S.extend({type:"interval",_interval:0,_intervalPrecision:2,setExtent:function(l,o){var n=this._extent;isNaN(l)||(n[0]=parseFloat(l)),isNaN(o)||(n[1]=parseFloat(o))},unionExtent:function(l){var o=this._extent;l[0]<o[0]&&(o[0]=l[0]),l[1]>o[1]&&(o[1]=l[1]),f.prototype.setExtent.call(this,o[0],o[1])},getInterval:function(){return this._interval},setInterval:function(l){this._interval=l,this._niceExtent=this._extent.slice(),this._intervalPrecision=A.getIntervalPrecision(l)},getTicks:function(l){var o=this._interval,n=this._extent,t=this._niceExtent,a=this._intervalPrecision,e=[];if(!o)return e;var u=1e4;n[0]<t[0]&&(l?e.push(m(t[0]-o,a)):e.push(n[0]));for(var r=t[0];r<=t[1]&&!(e.push(r),r=m(r+o,a),r===e[e.length-1]);)if(e.length>u)return[];var s=e.length?e[e.length-1]:t[1];return n[1]>s&&(l?e.push(m(s+o,a)):e.push(n[1])),e},getMinorTicks:function(l){for(var o=this.getTicks(!0),n=[],t=this.getExtent(),a=1;a<o.length;a++){for(var e=o[a],u=o[a-1],r=0,s=[],c=e-u,h=c/l;r<l-1;){var g=y.round(u+(r+1)*h);g>t[0]&&g<t[1]&&s.push(g),r++}n.push(s)}return n},getLabel:function(l,o){if(l==null)return"";var n=o&&o.precision;return n==null?n=y.getPrecisionSafe(l)||0:n==="auto"&&(n=this._intervalPrecision),l=m(l,n,!0),p.addCommas(l)},niceTicks:function(l,o,n){l=l||5;var t=this._extent,a=t[1]-t[0];if(!isFinite(a))return;a<0&&(a=-a,t.reverse());var e=A.intervalScaleNiceTicks(t,l,o,n);this._intervalPrecision=e.intervalPrecision,this._interval=e.interval,this._niceExtent=e.niceTickExtent},niceExtent:function(l){var o=this._extent;if(o[0]===o[1])if(o[0]!==0){var n=o[0];l.fixMax||(o[1]+=n/2),o[0]-=n/2}else o[1]=1;var t=o[1]-o[0];isFinite(t)||(o[0]=0,o[1]=1),this.niceTicks(l.splitNumber,l.minInterval,l.maxInterval);var a=this._interval;l.fixMin||(o[0]=m(Math.floor(o[0]/a)*a)),l.fixMax||(o[1]=m(Math.ceil(o[1]/a)*a))}});f.create=function(){return new f};var d=f;k.exports=d},j5sG:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.createSensor=void 0;var y=i("24YM"),p=S(i("NohK"));function S(m){return m&&m.__esModule?m:{default:m}}var A=function(f,d){var l=void 0,o=[],n=(0,p.default)(function(){o.forEach(function(r){r(f)})}),t=function(){var s=new ResizeObserver(n);return s.observe(f),n(),s},a=function(s){l||(l=t()),o.indexOf(s)===-1&&o.push(s)},e=function(){l.disconnect(),o=[],l=void 0,f.removeAttribute(y.SizeSensorId),d&&d()},u=function(s){var c=o.indexOf(s);c!==-1&&o.splice(c,1),o.length===0&&l&&e()};return{element:f,bind:a,destroy:e,unbind:u}};D.createSensor=A},jCoz:function(k,D,i){var y=i("bYtY"),p=i("4NgU"),S=i("OELB"),A=i("ieMj"),m=p.prototype,f=A.prototype,d=S.getPrecisionSafe,l=S.round,o=Math.floor,n=Math.ceil,t=Math.pow,a=Math.log,e=p.extend({type:"log",base:10,$constructor:function(){p.apply(this,arguments),this._originalScale=new A},getTicks:function(s){var c=this._originalScale,h=this._extent,g=c.getExtent();return y.map(f.getTicks.call(this,s),function(v){var b=S.round(t(this.base,v));return b=v===h[0]&&c.__fixMin?u(b,g[0]):b,b=v===h[1]&&c.__fixMax?u(b,g[1]):b,b},this)},getMinorTicks:f.getMinorTicks,getLabel:f.getLabel,scale:function(s){return s=m.scale.call(this,s),t(this.base,s)},setExtent:function(s,c){var h=this.base;s=a(s)/a(h),c=a(c)/a(h),f.setExtent.call(this,s,c)},getExtent:function(){var s=this.base,c=m.getExtent.call(this);c[0]=t(s,c[0]),c[1]=t(s,c[1]);var h=this._originalScale,g=h.getExtent();return h.__fixMin&&(c[0]=u(c[0],g[0])),h.__fixMax&&(c[1]=u(c[1],g[1])),c},unionExtent:function(s){this._originalScale.unionExtent(s);var c=this.base;s[0]=a(s[0])/a(c),s[1]=a(s[1])/a(c),m.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 g=S.quantity(h),v=s/h*g;for(v<=.5&&(g*=10);!isNaN(g)&&Math.abs(g)<1&&Math.abs(g)>0;)g*=10;var b=[S.round(n(c[0]/g)*g),S.round(o(c[1]/g)*g)];this._interval=g,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=a(c)/a(this.base),m[s].call(this,c)}}),e.create=function(){return new e};function u(s,c){return l(s,d(c))}var r=e;k.exports=r},jN4g:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("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"},A=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:A}))};f.displayName="CloseCircleFilled";var d=D.a=p.forwardRef(f)},jO45:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("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"},A=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:A}))};f.displayName="CheckCircleFilled";var d=D.a=p.forwardRef(f)},jO9C:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return y.pad.Iso97971={pad:function(S,A){S.concat(y.lib.WordArray.create([2147483648],1)),y.pad.ZeroPadding.pad(S,A)},unpad:function(S){y.pad.ZeroPadding.unpad(S),S.sigBytes--}},y.pad.Iso97971})},jTL6:function(k,D,i){var y=i("y+Vt"),p=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(A,m){var f=m.cx,d=m.cy,l=Math.max(m.r,0),o=m.startAngle,n=m.endAngle,t=m.clockwise,a=Math.cos(o),e=Math.sin(o);A.moveTo(a*l+f,e*l+d),A.arc(f,d,l,o,n,!t)}});k.exports=p},je13:function(k,D,i){var y=i("5nXd"),p=i("gRFJ"),S=[i("uQRt")];k.exports=y.createStore(p,S)},jett:function(k,D,i){var y=i("ProS");i("VSLf"),i("oBaM"),i("FGaS");var p=i("mOdp"),S=i("f5Yq"),A=i("hw6D"),m=i("0/Rx"),f=i("eJH7");y.registerVisual(p("radar")),y.registerVisual(S("radar","circle")),y.registerLayout(A),y.registerProcessor(m("radar")),y.registerPreprocessor(f)},jhfD:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("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"},A=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:A}))};f.displayName="ArrowLeftOutlined";var d=D.a=p.forwardRef(f)},jkPA:function(k,D,i){var y=i("bYtY"),p=y.createHashMap,S=y.isObject,A=y.map;function m(n){this.categories=n.categories||[],this._needCollect=n.needCollect,this._deduplication=n.deduplication,this._map}m.createByAxisModel=function(n){var t=n.option,a=t.data,e=a&&A(a,l);return new m({categories:e,needCollect:!e,deduplication:t.dedplication!==!1})};var f=m.prototype;f.getOrdinal=function(n){return d(this).get(n)},f.parseAndCollect=function(n){var t,a=this._needCollect;if(typeof n!="string"&&!a)return n;if(a&&!this._deduplication)return t=this.categories.length,this.categories[t]=n,t;var e=d(this);return t=e.get(n),t==null&&(a?(t=this.categories.length,this.categories[t]=n,e.set(n,t)):t=NaN),t};function d(n){return n._map||(n._map=p(n.categories))}function l(n){return S(n)&&n.value!=null?n.value:n+""}var o=m;k.exports=o},jndi:function(k,D,i){var y=i("bYtY"),p=i("Qe9p"),S=i("YXkt"),A=i("OELB"),m=i("IwbS"),f=i("kj2x"),d=i("iPDy"),l=function(r,s,c,h){var g=f.dataTransform(r,h[0]),v=f.dataTransform(r,h[1]),b=y.retrieve,w=g.coord,x=v.coord;w[0]=b(w[0],-Infinity),w[1]=b(w[1],-Infinity),x[0]=b(x[0],Infinity),x[1]=b(x[1],Infinity);var T=y.mergeAll([{},g,v]);return T.coord=[g.coord,v.coord],T.x0=g.x,T.y0=g.y,T.x1=v.x,T.y1=v.y,T};function o(r){return!isNaN(r)&&!isFinite(r)}function n(r,s,c,h){var g=1-r;return o(s[g])&&o(c[g])}function t(r,s){var c=s.coord[0],h=s.coord[1];return r.type==="cartesian2d"&&(c&&h&&(n(1,c,h,r)||n(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 a(r,s,c,h,g){var v=h.coordinateSystem,b=r.getItemModel(s),w,x=A.parsePercent(b.get(c[0]),g.getWidth()),T=A.parsePercent(b.get(c[1]),g.getHeight());if(!isNaN(x)&&!isNaN(T))w=[x,T];else{if(h.getMarkerPosition)w=h.getMarkerPosition(r.getValues(c,s));else{var O=r.get(c[0],s),E=r.get(c[1],s),C=[O,E];v.clampData&&v.clampData(C,C),w=v.dataToPoint(C,!0)}if(v.type==="cartesian2d"){var I=v.getAxis("x"),_=v.getAxis("y"),O=r.get(c[0],s),E=r.get(c[1],s);o(O)?w[0]=I.toGlobalCoord(I.getExtent()[c[0]==="x0"?0:1]):o(E)&&(w[1]=_.toGlobalCoord(_.getExtent()[c[1]==="y0"?0:1]))}isNaN(x)||(w[0]=x),isNaN(T)||(w[1]=T)}return w}var e=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]];d.extend({type:"markArea",updateTransform:function(r,s,c){s.eachSeries(function(h){var g=h.markAreaModel;if(g){var v=g.getData();v.each(function(b){var w=y.map(e,function(T){return a(v,b,T,h,c)});v.setItemLayout(b,w);var x=v.getItemGraphicEl(b);x.setShape("points",w)})}},this)},renderSeries:function(r,s,c,h){var g=r.coordinateSystem,v=r.id,b=r.getData(),w=this.markerGroupMap,x=w.get(v)||w.set(v,{group:new m.Group});this.group.add(x.group),x.__keep=!0;var T=u(g,r,s);s.setData(T),T.each(function(O){T.setItemLayout(O,y.map(e,function(E){return a(T,O,E,r,h)})),T.setItemVisual(O,{color:b.getVisual("color")})}),T.diff(x.__data).add(function(O){var E=new m.Polygon({shape:{points:T.getItemLayout(O)}});T.setItemGraphicEl(O,E),x.group.add(E)}).update(function(O,E){var C=x.__data.getItemGraphicEl(E);m.updateProps(C,{shape:{points:T.getItemLayout(O)}},s,O),x.group.add(C),T.setItemGraphicEl(O,C)}).remove(function(O){var E=x.__data.getItemGraphicEl(O);x.group.remove(E)}).execute(),T.eachItemGraphicEl(function(O,E){var C=T.getItemModel(E),I=C.getModel("label"),_=C.getModel("emphasis.label"),F=T.getItemVisual(E,"color");O.useStyle(y.defaults(C.getModel("itemStyle").getItemStyle(),{fill:p.modifyAlpha(F,.4),stroke:F})),O.hoverStyle=C.getModel("emphasis.itemStyle").getItemStyle(),m.setLabelStyle(O.style,O.hoverStyle,I,_,{labelFetcher:s,labelDataIndex:E,defaultText:T.getName(E)||"",isRectText:!0,autoColor:F}),m.setHoverStyle(O,{}),O.dataModel=s}),x.__data=T,x.group.silent=s.get("silent")||r.get("silent")}});function u(r,s,c){var h,g,v=["x0","y0","x1","y1"];r?(h=y.map(r&&r.dimensions,function(x){var T=s.getData(),O=T.getDimensionInfo(T.mapDimension(x))||{};return y.defaults({name:x},O)}),g=new S(y.map(v,function(x,T){return{name:x,type:h[T%2].type}}),c)):(h=[{name:"value",type:"float"}],g=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 w=r?function(x,T,O,E){return x.coord[Math.floor(E/2)][E%2]}:function(x){return x.value};return g.initData(b,null,w),g.hasItemOption=!0,g}},"jsU+":function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("IUWy"),A=y.extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},optionUpdated:function(){A.superApply(this,"optionUpdated",arguments),p.each(this.option.feature,function(f,d){var l=S.get(d);l&&p.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}}}),m=A;k.exports=m},jtI2:function(k,D,i){i("SMc4");var y=i("bLfw"),p=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"}});k.exports=p},juDX:function(k,D,i){i("P47w");var y=i("aX58"),p=y.registerPainter,S=i("3CBa");p("svg",S)},"k+1r":function(k,D,i){var y=i("QkVE");function p(S){var A=y(this,S).delete(S);return this.size-=A?1:0,A}k.exports=p},k5C7:function(k,D,i){i("0JAE"),i("g7p0"),i("7mYs")},k9D9:function(k,D){var i="original",y="arrayRows",p="objectRows",S="keyedColumns",A="unknown",m="typedArray",f="column",d="row";D.SOURCE_FORMAT_ORIGINAL=i,D.SOURCE_FORMAT_ARRAY_ROWS=y,D.SOURCE_FORMAT_OBJECT_ROWS=p,D.SOURCE_FORMAT_KEYED_COLUMNS=S,D.SOURCE_FORMAT_UNKNOWN=A,D.SOURCE_FORMAT_TYPED_ARRAY=m,D.SERIES_LAYOUT_BY_COLUMN=f,D.SERIES_LAYOUT_BY_ROW=d},kDyi:function(k,D){function i(y){var p=y.findComponents({mainType:"legend"});p&&p.length&&y.filterSeries(function(S){for(var A=0;A<p.length;A++)if(!p[A].isSelected(S.name))return!1;return!0})}k.exports=i},kGiB:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("ABKa"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},kMLO:function(k,D,i){var y=i("XxSj"),p=i("Qe9p"),S=i("bYtY"),A=S.isArray,m="itemStyle",f={seriesType:"treemap",reset:function(r,s,c,h){var g=r.getData().tree,v=g.root,b=r.getModel(m);if(v.isRemoved())return;var w=S.map(g.levelModels,function(x){return x?x.get(m):null});d(v,{},w,b,r.getViewRoot().getAncestors(),r)}};function d(r,s,c,h,g,v){var b=r.getModel(),w=r.getLayout();if(!w||w.invisible||!w.isInView)return;var x=r.getModel(m),T=c[r.depth],O=l(x,s,T,h),E=x.get("borderColor"),C=x.get("borderColorSaturation"),I;C!=null&&(I=o(O,r),E=n(C,I)),r.setVisual("borderColor",E);var _=r.viewChildren;if(!_||!_.length)I=o(O,r),r.setVisual("color",I);else{var F=a(r,b,w,x,O,_);S.each(_,function(R,B){if(R.depth>=g.length||R===g[R.depth]){var M=u(b,O,R,B,F,v);d(R,M,c,h,g,v)}})}}function l(r,s,c,h){var g=S.extend({},s);return S.each(["color","colorAlpha","colorSaturation"],function(v){var b=r.get(v,!0);b==null&&c&&(b=c[v]),b==null&&(b=s[v]),b==null&&(b=h.get(v)),b!=null&&(g[v]=b)}),g}function o(r){var s=t(r,"color");if(s){var c=t(r,"colorAlpha"),h=t(r,"colorSaturation");return h&&(s=p.modifyHSL(s,null,null,h)),c&&(s=p.modifyAlpha(s,c)),s}}function n(r,s){return s!=null?p.modifyHSL(s,null,null,r):null}function t(r,s){var c=r[s];if(c!=null&&c!=="none")return c}function a(r,s,c,h,g,v){if(!v||!v.length)return;var b=e(s,"color")||g.color!=null&&g.color!=="none"&&(e(s,"colorAlpha")||e(s,"colorSaturation"));if(!b)return;var w=s.get("visualMin"),x=s.get("visualMax"),T=c.dataExtent.slice();w!=null&&w<T[0]&&(T[0]=w),x!=null&&x>T[1]&&(T[1]=x);var O=s.get("colorMappingBy"),E={type:b.name,dataExtent:T,visual:b.range};E.type==="color"&&(O==="index"||O==="id")?(E.mappingMethod="category",E.loop=!0):E.mappingMethod="linear";var C=new y(E);return C.__drColorMappingBy=O,C}function e(r,s){var c=r.get(s);return A(c)&&c.length?{name:s,range:c}:null}function u(r,s,c,h,g,v){var b=S.extend({},s);if(g){var w=g.type,x=w==="color"&&g.__drColorMappingBy,T=x==="index"?h:x==="id"?v.mapIdToIndex(c.getId()):c.getValue(r.get("visualDimension"));b[w]=g.mapValueToVisual(T)}return b}k.exports=f},"kVK+":function(k,D){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */D.read=function(i,y,p,S,A){var m,f,d=A*8-S-1,l=(1<<d)-1,o=l>>1,n=-7,t=p?A-1:0,a=p?-1:1,e=i[y+t];for(t+=a,m=e&(1<<-n)-1,e>>=-n,n+=d;n>0;m=m*256+i[y+t],t+=a,n-=8);for(f=m&(1<<-n)-1,m>>=-n,n+=S;n>0;f=f*256+i[y+t],t+=a,n-=8);if(m===0)m=1-o;else{if(m===l)return f?NaN:(e?-1:1)*Infinity;f=f+Math.pow(2,S),m=m-o}return(e?-1:1)*f*Math.pow(2,m-S)},D.write=function(i,y,p,S,A,m){var f,d,l,o=m*8-A-1,n=(1<<o)-1,t=n>>1,a=A===23?Math.pow(2,-24)-Math.pow(2,-77):0,e=S?0:m-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=n):(f=Math.floor(Math.log(y)/Math.LN2),y*(l=Math.pow(2,-f))<1&&(f--,l*=2),f+t>=1?y+=a/l:y+=a*Math.pow(2,1-t),y*l>=2&&(f++,l/=2),f+t>=n?(d=0,f=n):f+t>=1?(d=(y*l-1)*Math.pow(2,A),f=f+t):(d=y*Math.pow(2,t-1)*Math.pow(2,A),f=0));A>=8;i[p+e]=d&255,e+=u,d/=256,A-=8);for(f=f<<A|d,o+=A;o>0;i[p+e]=f&255,e+=u,f/=256,o-=8);i[p+e-u]|=r*128}},kekF:function(k,D){function i(y,p){return function(S){return y(p(S))}}k.exports=i},kj2x:function(k,D,i){var y=i("bYtY"),p=i("OELB"),S=i("7hqr"),A=S.isDimensionStacked,m=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,g,v,b,w){var x=[],T=A(h,v),O=T?h.getCalculationInfo("stackResultDimension"):v,E=s(h,O,c),C=h.indicesOfNearest(O,E)[0];x[b]=h.get(g,C),x[w]=h.get(O,C);var I=h.get(v,C),_=p.getPrecision(h.get(v,C));return _=Math.min(_,20),_>=0&&(x[w]=+x[w].toFixed(_)),[x,I]}var o=y.curry,n={min:o(l,"min"),max:o(l,"max"),average:o(l,"average")};function t(c,h){var g=c.getData(),v=c.coordinateSystem;if(h&&!d(h)&&!y.isArray(h.coord)&&v){var b=v.dimensions,w=a(h,g,v,c);if(h=y.clone(h),h.type&&n[h.type]&&w.baseAxis&&w.valueAxis){var x=m(b,w.baseAxis.dim),T=m(b,w.valueAxis.dim),O=n[h.type](g,w.baseDataDim,w.valueDataDim,x,T);h.coord=O[0],h.value=O[1]}else{for(var E=[h.xAxis!=null?h.xAxis:h.radiusAxis,h.yAxis!=null?h.yAxis:h.angleAxis],C=0;C<2;C++)n[E[C]]&&(E[C]=s(g,g.mapDimension(b[C]),E[C]));h.coord=E}}return h}function a(c,h,g,v){var b={};return c.valueIndex!=null||c.valueDim!=null?(b.valueDataDim=c.valueIndex!=null?h.getDimension(c.valueIndex):c.valueDim,b.valueAxis=g.getAxis(e(v,b.valueDataDim)),b.baseAxis=g.getOtherAxis(b.valueAxis),b.baseDataDim=h.mapDimension(b.baseAxis.dim)):(b.baseAxis=v.getBaseAxis(),b.valueAxis=g.getOtherAxis(b.baseAxis),b.baseDataDim=h.mapDimension(b.baseAxis.dim),b.valueDataDim=h.mapDimension(b.valueAxis.dim)),b}function e(c,h){var g=c.getData(),v=g.dimensions;h=g.getDimension(h);for(var b=0;b<v.length;b++){var w=g.getDimensionInfo(v[b]);if(w.name===h)return w.coordDim}}function u(c,h){return c&&c.containData&&h.coord&&!f(h)?c.containData(h.coord):!0}function r(c,h,g,v){return v<2?c.coord&&c.coord[v]:c.value}function s(c,h,g){if(g==="average"){var v=0,b=0;return c.each(h,function(w,x){isNaN(w)||(v+=w,b++)}),v/b}else return g==="median"?c.getMedian(h):c.getDataExtent(h,!0)[g==="max"?1:0]}D.dataTransform=t,D.getAxisInfo=a,D.dataFilter=u,D.dimValueGetter=r,D.numCalculate=s},knOB:function(k,D,i){var y=i("bYtY"),p=i("hM6l");function S(m,f){p.call(this,"radius",m,f),this.type="category"}S.prototype={constructor:S,pointToData:function(m,f){return this.polar.pointToData(m,f)[this.dim==="radius"?0:1]},dataToRadius:p.prototype.dataToCoord,radiusToData:p.prototype.coordToData},y.inherits(S,p);var A=S;k.exports=A},ko1b:function(k,D,i){var y=i("bYtY"),p=i("T4UG"),S=i("Bsck"),A=i("Qxkt"),m=i("7aKB"),f=m.encodeHTML,d=m.addCommas,l=i("VaxA"),o=l.wrapTreePathInfo,n=p.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=a(s,u);var c=y.map(s||[],function(v){return new A(v,this,u)},this),h=S.createTree(r,this,null,g);function g(v){v.wrapMethod("getItemModel",function(b,w){var x=h.getNodeByDataIndex(w),T=c[x.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=p.prototype.getDataParams.apply(this,arguments),r=this.getData().tree.getNodeByDataIndex(e);return u.treePathInfo=o(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 a(e,u){var r=u.get("color");if(!r)return;e=e||[];var s;if(y.each(e,function(h){var g=new A(h),v=g.get("color");(g.get("itemStyle.color")||v&&v!=="none")&&(s=!0)}),!s){var c=e[0]||(e[0]={});c.color=r.slice()}return e}k.exports=n},kzFp:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0});var y=D.pick=function(S,A){var m={};return A.forEach(function(f){m[f]=S[f]}),m}},kzvK:function(k,D,i){var y=i("sS/r"),p=y.extend({type:"timeline"});k.exports=p},"l+S1":function(k,D,i){"use strict";var y=i("VTBJ"),p=i("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"},A=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:A}))};f.displayName="SearchOutlined";var d=D.a=p.forwardRef(f)},lE7J:function(k,D,i){var y=i("OELB"),p=y.round;function S(d,l,o,n){var t={},a=d[1]-d[0],e=t.interval=y.nice(a/l,!0);o!=null&&e<o&&(e=t.interval=o),n!=null&&e>n&&(e=t.interval=n);var u=t.intervalPrecision=A(e),r=t.niceTickExtent=[p(Math.ceil(d[0]/e)*e,u),p(Math.floor(d[1]/e)*e,u)];return f(r,d),t}function A(d){return y.getPrecisionSafe(d)+2}function m(d,l,o){d[l]=Math.max(Math.min(d[l],o[1]),o[0])}function f(d,l){!isFinite(d[0])&&(d[0]=l[0]),!isFinite(d[1])&&(d[1]=l[1]),m(d,0,l),m(d,1,l),d[0]>d[1]&&(d[0]=d[1])}D.intervalScaleNiceTicks=S,D.getIntervalPrecision=A,D.fixExtent=f},lELe:function(k,D,i){var y=i("bYtY");function p(S){var A=[];y.each(S.series,function(m){m&&m.type==="map"&&(A.push(m),m.map=m.map||m.mapType,y.defaults(m,m.mapLocation))})}k.exports=p},lLGD:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("nVfU"),A=S.layout,m=S.largeLayout;i("Wqna"),i("F7hV"),i("Z8zF"),i("Ae16"),y.registerLayout(y.PRIORITY.VISUAL.LAYOUT,p.curry(A,"bar")),y.registerLayout(y.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,m),y.registerVisual({seriesType:"bar",reset:function(f){f.getData().setVisual("legendSymbol","roundRect")}})},lMfh:function(k,D,i){(function(y,p){k.exports=p()})(this,function(){"use strict";function y($){return y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(le){return typeof le}:function(le){return le&&typeof Symbol=="function"&&le.constructor===Symbol&&le!==Symbol.prototype?"symbol":typeof le},y($)}var p=/^\s+/,S=/\s+$/;function A($,le){if($=$||"",le=le||{},$ instanceof A)return $;if(!(this instanceof A))return new A($,le);var re=m($);this._originalInput=$,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=le.format||re.format,this._gradientType=le.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}A.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 le=this.toRgb();return(le.r*299+le.g*587+le.b*114)/1e3},getLuminance:function(){var le=this.toRgb(),re,Se,Re,Pe,Je,Ve;return re=le.r/255,Se=le.g/255,Re=le.b/255,re<=.03928?Pe=re/12.92:Pe=Math.pow((re+.055)/1.055,2.4),Se<=.03928?Je=Se/12.92:Je=Math.pow((Se+.055)/1.055,2.4),Re<=.03928?Ve=Re/12.92:Ve=Math.pow((Re+.055)/1.055,2.4),.2126*Pe+.7152*Je+.0722*Ve},setAlpha:function(le){return this._a=_(le),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var le=o(this._r,this._g,this._b);return{h:le.h*360,s:le.s,v:le.v,a:this._a}},toHsvString:function(){var le=o(this._r,this._g,this._b),re=Math.round(le.h*360),Se=Math.round(le.s*100),Re=Math.round(le.v*100);return this._a==1?"hsv("+re+", "+Se+"%, "+Re+"%)":"hsva("+re+", "+Se+"%, "+Re+"%, "+this._roundA+")"},toHsl:function(){var le=d(this._r,this._g,this._b);return{h:le.h*360,s:le.s,l:le.l,a:this._a}},toHslString:function(){var le=d(this._r,this._g,this._b),re=Math.round(le.h*360),Se=Math.round(le.s*100),Re=Math.round(le.l*100);return this._a==1?"hsl("+re+", "+Se+"%, "+Re+"%)":"hsla("+re+", "+Se+"%, "+Re+"%, "+this._roundA+")"},toHex:function(le){return t(this._r,this._g,this._b,le)},toHexString:function(le){return"#"+this.toHex(le)},toHex8:function(le){return a(this._r,this._g,this._b,this._a,le)},toHex8String:function(le){return"#"+this.toHex8(le)},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(F(this._r,255)*100)+"%",g:Math.round(F(this._g,255)*100)+"%",b:Math.round(F(this._b,255)*100)+"%",a:this._a}},toPercentageRgbString:function(){return this._a==1?"rgb("+Math.round(F(this._r,255)*100)+"%, "+Math.round(F(this._g,255)*100)+"%, "+Math.round(F(this._b,255)*100)+"%)":"rgba("+Math.round(F(this._r,255)*100)+"%, "+Math.round(F(this._g,255)*100)+"%, "+Math.round(F(this._b,255)*100)+"%, "+this._roundA+")"},toName:function(){return this._a===0?"transparent":this._a<1?!1:C[t(this._r,this._g,this._b,!0)]||!1},toFilter:function(le){var re="#"+e(this._r,this._g,this._b,this._a),Se=re,Re=this._gradientType?"GradientType = 1, ":"";if(le){var Pe=A(le);Se="#"+e(Pe._r,Pe._g,Pe._b,Pe._a)}return"progid:DXImageTransform.Microsoft.gradient("+Re+"startColorstr="+re+",endColorstr="+Se+")"},toString:function(le){var re=!!le;le=le||this._format;var Se=!1,Re=this._a<1&&this._a>=0,Pe=!re&&Re&&(le==="hex"||le==="hex6"||le==="hex3"||le==="hex4"||le==="hex8"||le==="name");return Pe?le==="name"&&this._a===0?this.toName():this.toRgbString():(le==="rgb"&&(Se=this.toRgbString()),le==="prgb"&&(Se=this.toPercentageRgbString()),(le==="hex"||le==="hex6")&&(Se=this.toHexString()),le==="hex3"&&(Se=this.toHexString(!0)),le==="hex4"&&(Se=this.toHex8String(!0)),le==="hex8"&&(Se=this.toHex8String()),le==="name"&&(Se=this.toName()),le==="hsl"&&(Se=this.toHslString()),le==="hsv"&&(Se=this.toHsvString()),Se||this.toHexString())},clone:function(){return A(this.toString())},_applyModification:function(le,re){var Se=le.apply(null,[this].concat([].slice.call(re)));return this._r=Se._r,this._g=Se._g,this._b=Se._b,this.setAlpha(Se._a),this},lighten:function(){return this._applyModification(c,arguments)},brighten:function(){return this._applyModification(h,arguments)},darken:function(){return this._applyModification(g,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(v,arguments)},_applyCombination:function(le,re){return le.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(O,arguments)},splitcomplement:function(){return this._applyCombination(x,arguments)},triad:function(){return this._applyCombination(w,[3])},tetrad:function(){return this._applyCombination(w,[4])}},A.fromRatio=function($,le){if(y($)=="object"){var re={};for(var Se in $)$.hasOwnProperty(Se)&&(Se==="a"?re[Se]=$[Se]:re[Se]=z($[Se]));$=re}return A($,le)};function m($){var le={r:0,g:0,b:0},re=1,Se=null,Re=null,Pe=null,Je=!1,Ve=!1;return typeof $=="string"&&($=G($)),y($)=="object"&&(Q($.r)&&Q($.g)&&Q($.b)?(le=f($.r,$.g,$.b),Je=!0,Ve=String($.r).substr(-1)==="%"?"prgb":"rgb"):Q($.h)&&Q($.s)&&Q($.v)?(Se=z($.s),Re=z($.v),le=n($.h,Se,Re),Je=!0,Ve="hsv"):Q($.h)&&Q($.s)&&Q($.l)&&(Se=z($.s),Pe=z($.l),le=l($.h,Se,Pe),Je=!0,Ve="hsl"),$.hasOwnProperty("a")&&(re=$.a)),re=_(re),{ok:Je,format:$.format||Ve,r:Math.min(255,Math.max(le.r,0)),g:Math.min(255,Math.max(le.g,0)),b:Math.min(255,Math.max(le.b,0)),a:re}}function f($,le,re){return{r:F($,255)*255,g:F(le,255)*255,b:F(re,255)*255}}function d($,le,re){$=F($,255),le=F(le,255),re=F(re,255);var Se=Math.max($,le,re),Re=Math.min($,le,re),Pe,Je,Ve=(Se+Re)/2;if(Se==Re)Pe=Je=0;else{var ct=Se-Re;Je=Ve>.5?ct/(2-Se-Re):ct/(Se+Re);switch(Se){case $:Pe=(le-re)/ct+(le<re?6:0);break;case le:Pe=(re-$)/ct+2;break;case re:Pe=($-le)/ct+4;break}Pe/=6}return{h:Pe,s:Je,l:Ve}}function l($,le,re){var Se,Re,Pe;$=F($,360),le=F(le,100),re=F(re,100);function Je(Ue,ue,rt){return rt<0&&(rt+=1),rt>1&&(rt-=1),rt<1/6?Ue+(ue-Ue)*6*rt:rt<1/2?ue:rt<2/3?Ue+(ue-Ue)*(2/3-rt)*6:Ue}if(le===0)Se=Re=Pe=re;else{var Ve=re<.5?re*(1+le):re+le-re*le,ct=2*re-Ve;Se=Je(ct,Ve,$+1/3),Re=Je(ct,Ve,$),Pe=Je(ct,Ve,$-1/3)}return{r:Se*255,g:Re*255,b:Pe*255}}function o($,le,re){$=F($,255),le=F(le,255),re=F(re,255);var Se=Math.max($,le,re),Re=Math.min($,le,re),Pe,Je,Ve=Se,ct=Se-Re;if(Je=Se===0?0:ct/Se,Se==Re)Pe=0;else{switch(Se){case $:Pe=(le-re)/ct+(le<re?6:0);break;case le:Pe=(re-$)/ct+2;break;case re:Pe=($-le)/ct+4;break}Pe/=6}return{h:Pe,s:Je,v:Ve}}function n($,le,re){$=F($,360)*6,le=F(le,100),re=F(re,100);var Se=Math.floor($),Re=$-Se,Pe=re*(1-le),Je=re*(1-Re*le),Ve=re*(1-(1-Re)*le),ct=Se%6,Ue=[re,Je,Pe,Pe,Ve,re][ct],ue=[Ve,re,re,Je,Pe,Pe][ct],rt=[Pe,Pe,Ve,re,re,Je][ct];return{r:Ue*255,g:ue*255,b:rt*255}}function t($,le,re,Se){var Re=[P(Math.round($).toString(16)),P(Math.round(le).toString(16)),P(Math.round(re).toString(16))];return Se&&Re[0].charAt(0)==Re[0].charAt(1)&&Re[1].charAt(0)==Re[1].charAt(1)&&Re[2].charAt(0)==Re[2].charAt(1)?Re[0].charAt(0)+Re[1].charAt(0)+Re[2].charAt(0):Re.join("")}function a($,le,re,Se,Re){var Pe=[P(Math.round($).toString(16)),P(Math.round(le).toString(16)),P(Math.round(re).toString(16)),P(W(Se))];return Re&&Pe[0].charAt(0)==Pe[0].charAt(1)&&Pe[1].charAt(0)==Pe[1].charAt(1)&&Pe[2].charAt(0)==Pe[2].charAt(1)&&Pe[3].charAt(0)==Pe[3].charAt(1)?Pe[0].charAt(0)+Pe[1].charAt(0)+Pe[2].charAt(0)+Pe[3].charAt(0):Pe.join("")}function e($,le,re,Se){var Re=[P(W(Se)),P(Math.round($).toString(16)),P(Math.round(le).toString(16)),P(Math.round(re).toString(16))];return Re.join("")}A.equals=function($,le){return!$||!le?!1:A($).toRgbString()==A(le).toRgbString()},A.random=function(){return A.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})};function u($,le){le=le===0?0:le||10;var re=A($).toHsl();return re.s-=le/100,re.s=R(re.s),A(re)}function r($,le){le=le===0?0:le||10;var re=A($).toHsl();return re.s+=le/100,re.s=R(re.s),A(re)}function s($){return A($).desaturate(100)}function c($,le){le=le===0?0:le||10;var re=A($).toHsl();return re.l+=le/100,re.l=R(re.l),A(re)}function h($,le){le=le===0?0:le||10;var re=A($).toRgb();return re.r=Math.max(0,Math.min(255,re.r-Math.round(255*-(le/100)))),re.g=Math.max(0,Math.min(255,re.g-Math.round(255*-(le/100)))),re.b=Math.max(0,Math.min(255,re.b-Math.round(255*-(le/100)))),A(re)}function g($,le){le=le===0?0:le||10;var re=A($).toHsl();return re.l-=le/100,re.l=R(re.l),A(re)}function v($,le){var re=A($).toHsl(),Se=(re.h+le)%360;return re.h=Se<0?360+Se:Se,A(re)}function b($){var le=A($).toHsl();return le.h=(le.h+180)%360,A(le)}function w($,le){if(isNaN(le)||le<=0)throw new Error("Argument to polyad must be a positive number");for(var re=A($).toHsl(),Se=[A($)],Re=360/le,Pe=1;Pe<le;Pe++)Se.push(A({h:(re.h+Pe*Re)%360,s:re.s,l:re.l}));return Se}function x($){var le=A($).toHsl(),re=le.h;return[A($),A({h:(re+72)%360,s:le.s,l:le.l}),A({h:(re+216)%360,s:le.s,l:le.l})]}function T($,le,re){le=le||6,re=re||30;var Se=A($).toHsl(),Re=360/re,Pe=[A($)];for(Se.h=(Se.h-(Re*le>>1)+720)%360;--le;)Se.h=(Se.h+Re)%360,Pe.push(A(Se));return Pe}function O($,le){le=le||6;for(var re=A($).toHsv(),Se=re.h,Re=re.s,Pe=re.v,Je=[],Ve=1/le;le--;)Je.push(A({h:Se,s:Re,v:Pe})),Pe=(Pe+Ve)%1;return Je}A.mix=function($,le,re){re=re===0?0:re||50;var Se=A($).toRgb(),Re=A(le).toRgb(),Pe=re/100,Je={r:(Re.r-Se.r)*Pe+Se.r,g:(Re.g-Se.g)*Pe+Se.g,b:(Re.b-Se.b)*Pe+Se.b,a:(Re.a-Se.a)*Pe+Se.a};return A(Je)},A.readability=function($,le){var re=A($),Se=A(le);return(Math.max(re.getLuminance(),Se.getLuminance())+.05)/(Math.min(re.getLuminance(),Se.getLuminance())+.05)},A.isReadable=function($,le,re){var Se=A.readability($,le),Re,Pe;Pe=!1,Re=te(re);switch(Re.level+Re.size){case"AAsmall":case"AAAlarge":Pe=Se>=4.5;break;case"AAlarge":Pe=Se>=3;break;case"AAAsmall":Pe=Se>=7;break}return Pe},A.mostReadable=function($,le,re){var Se=null,Re=0,Pe,Je,Ve,ct;re=re||{},Je=re.includeFallbackColors,Ve=re.level,ct=re.size;for(var Ue=0;Ue<le.length;Ue++)Pe=A.readability($,le[Ue]),Pe>Re&&(Re=Pe,Se=A(le[Ue]));return A.isReadable($,Se,{level:Ve,size:ct})||!Je?Se:(re.includeFallbackColors=!1,A.mostReadable($,["#fff","#000"],re))};var E=A.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"},C=A.hexNames=I(E);function I($){var le={};for(var re in $)$.hasOwnProperty(re)&&(le[$[re]]=re);return le}function _($){return $=parseFloat($),(isNaN($)||$<0||$>1)&&($=1),$}function F($,le){M($)&&($="100%");var re=X($);return $=Math.min(le,Math.max(0,parseFloat($))),re&&($=parseInt($*le,10)/100),Math.abs($-le)<1e-6?1:$%le/parseFloat(le)}function R($){return Math.min(1,Math.max(0,$))}function B($){return parseInt($,16)}function M($){return typeof $=="string"&&$.indexOf(".")!=-1&&parseFloat($)===1}function X($){return typeof $=="string"&&$.indexOf("%")!=-1}function P($){return $.length==1?"0"+$:""+$}function z($){return $<=1&&($=$*100+"%"),$}function W($){return Math.round(parseFloat($)*255).toString(16)}function U($){return B($)/255}var V=function(){var $="[-\\+]?\\d+%?",le="[-\\+]?\\d*\\.\\d+%?",re="(?:"+le+")|(?:"+$+")",Se="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?",Re="[\\s|\\(]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")[,|\\s]+("+re+")\\s*\\)?";return{CSS_UNIT:new RegExp(re),rgb:new RegExp("rgb"+Se),rgba:new RegExp("rgba"+Re),hsl:new RegExp("hsl"+Se),hsla:new RegExp("hsla"+Re),hsv:new RegExp("hsv"+Se),hsva:new RegExp("hsva"+Re),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($){return!!V.CSS_UNIT.exec($)}function G($){$=$.replace(p,"").replace(S,"").toLowerCase();var le=!1;if(E[$])$=E[$],le=!0;else if($=="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var re;return(re=V.rgb.exec($))?{r:re[1],g:re[2],b:re[3]}:(re=V.rgba.exec($))?{r:re[1],g:re[2],b:re[3],a:re[4]}:(re=V.hsl.exec($))?{h:re[1],s:re[2],l:re[3]}:(re=V.hsla.exec($))?{h:re[1],s:re[2],l:re[3],a:re[4]}:(re=V.hsv.exec($))?{h:re[1],s:re[2],v:re[3]}:(re=V.hsva.exec($))?{h:re[1],s:re[2],v:re[3],a:re[4]}:(re=V.hex8.exec($))?{r:B(re[1]),g:B(re[2]),b:B(re[3]),a:U(re[4]),format:le?"name":"hex8"}:(re=V.hex6.exec($))?{r:B(re[1]),g:B(re[2]),b:B(re[3]),format:le?"name":"hex"}:(re=V.hex4.exec($))?{r:B(re[1]+""+re[1]),g:B(re[2]+""+re[2]),b:B(re[3]+""+re[3]),a:U(re[4]+""+re[4]),format:le?"name":"hex8"}:(re=V.hex3.exec($))?{r:B(re[1]+""+re[1]),g:B(re[2]+""+re[2]),b:B(re[3]+""+re[3]),format:le?"name":"hex"}:!1}function te($){var le,re;return $=$||{level:"AA",size:"small"},le=($.level||"AA").toUpperCase(),re=($.size||"small").toLowerCase(),le!=="AA"&&le!=="AAA"&&(le="AA"),re!=="small"&&re!=="large"&&(re="small"),{level:le,size:re}}return A})},lNSK:function(k,D,i){"use strict";function y(pe){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?y=function(hr){return typeof hr}:y=function(hr){return hr&&typeof Symbol=="function"&&hr.constructor===Symbol&&hr!==Symbol.prototype?"symbol":typeof hr},y(pe)}Object.defineProperty(D,"__esModule",{value:!0}),D.deflateInit=Ke,D.deflateInit2=Bt,D.deflateReset=Dt,D.deflateResetKeep=Ht,D.deflateSetHeader=Tt,D.deflate=de,D.deflateEnd=oe,D.deflateSetDictionary=lt,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 p=o(i("6BzB")),S=o(i("c5fP")),A=d(i("xlC8")),m=d(i("QV2g")),f=d(i("xSIq"));function d(pe){return pe&&pe.__esModule?pe:{default:pe}}function l(){if(typeof WeakMap!="function")return null;var pe=new WeakMap;return l=function(){return pe},pe}function o(pe){if(pe&&pe.__esModule)return pe;if(pe===null||y(pe)!=="object"&&typeof pe!="function")return{default:pe};var Kt=l();if(Kt&&Kt.has(pe))return Kt.get(pe);var hr={},gt=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var nr in pe)if(Object.prototype.hasOwnProperty.call(pe,nr)){var mr=gt?Object.getOwnPropertyDescriptor(pe,nr):null;mr&&(mr.get||mr.set)?Object.defineProperty(hr,nr,mr):hr[nr]=pe[nr]}return hr.default=pe,Kt&&Kt.set(pe,hr),hr}var n=0;D.Z_NO_FLUSH=n;var t=1;D.Z_PARTIAL_FLUSH=t;var a=3;D.Z_FULL_FLUSH=a;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 g=-5;D.Z_BUF_ERROR=g;var v=-1;D.Z_DEFAULT_COMPRESSION=v;var b=1;D.Z_FILTERED=b;var w=2;D.Z_HUFFMAN_ONLY=w;var x=3;D.Z_RLE=x;var T=4;D.Z_FIXED=T;var O=0;D.Z_DEFAULT_STRATEGY=O;var E=2;D.Z_UNKNOWN=E;var C=8;D.Z_DEFLATED=C;var I=9,_=15,F=8,R=29,B=256,M=B+1+R,X=30,P=19,z=2*M+1,W=15,U=3,V=258,Q=V+U+1,G=32,te=42,$=69,le=73,re=91,Se=103,Re=113,Pe=666,Je=1,Ve=2,ct=3,Ue=4,ue=3;function rt(pe,Kt){return pe.msg=f.default[Kt],Kt}function ge(pe){return(pe<<1)-(pe>4?9:0)}function Z(pe){for(var Kt=pe.length;--Kt>=0;)pe[Kt]=0}function Y(pe){var Kt=pe.state,hr=Kt.pending;if(hr>pe.avail_out&&(hr=pe.avail_out),hr===0)return;p.arraySet(pe.output,Kt.pending_buf,Kt.pending_out,hr,pe.next_out),pe.next_out+=hr,Kt.pending_out+=hr,pe.total_out+=hr,pe.avail_out-=hr,Kt.pending-=hr,Kt.pending===0&&(Kt.pending_out=0)}function ee(pe,Kt){S._tr_flush_block(pe,pe.block_start>=0?pe.block_start:-1,pe.strstart-pe.block_start,Kt),pe.block_start=pe.strstart,Y(pe.strm)}function fe(pe,Kt){pe.pending_buf[pe.pending++]=Kt}function be(pe,Kt){pe.pending_buf[pe.pending++]=Kt>>>8&255,pe.pending_buf[pe.pending++]=Kt&255}function Ce(pe,Kt,hr,gt){var nr=pe.avail_in;return nr>gt&&(nr=gt),nr===0?0:(pe.avail_in-=nr,p.arraySet(Kt,pe.input,pe.next_in,nr,hr),pe.state.wrap===1?pe.adler=(0,A.default)(pe.adler,Kt,nr,hr):pe.state.wrap===2&&(pe.adler=(0,m.default)(pe.adler,Kt,nr,hr)),pe.next_in+=nr,pe.total_in+=nr,nr)}function Te(pe,Kt){var hr=pe.max_chain_length,gt=pe.strstart,nr,mr,cn=pe.prev_length,Ar=pe.nice_match,xr=pe.strstart>pe.w_size-Q?pe.strstart-(pe.w_size-Q):0,qt=pe.window,ar=pe.w_mask,Et=pe.prev,en=pe.strstart+V,Mn=qt[gt+cn-1],Yn=qt[gt+cn];pe.prev_length>=pe.good_match&&(hr>>=2),Ar>pe.lookahead&&(Ar=pe.lookahead);do{if(nr=Kt,qt[nr+cn]!==Yn||qt[nr+cn-1]!==Mn||qt[nr]!==qt[gt]||qt[++nr]!==qt[gt+1])continue;gt+=2,nr++;do;while(qt[++gt]===qt[++nr]&&qt[++gt]===qt[++nr]&&qt[++gt]===qt[++nr]&&qt[++gt]===qt[++nr]&&qt[++gt]===qt[++nr]&&qt[++gt]===qt[++nr]&&qt[++gt]===qt[++nr]&&qt[++gt]===qt[++nr]&&gt<en);if(mr=V-(en-gt),gt=en-V,mr>cn){if(pe.match_start=Kt,cn=mr,mr>=Ar)break;Mn=qt[gt+cn-1],Yn=qt[gt+cn]}}while((Kt=Et[Kt&ar])>xr&&--hr!==0);return cn<=pe.lookahead?cn:pe.lookahead}function he(pe){var Kt=pe.w_size,hr,gt,nr,mr,cn;do{if(mr=pe.window_size-pe.lookahead-pe.strstart,pe.strstart>=Kt+(Kt-Q)){p.arraySet(pe.window,pe.window,Kt,Kt,0),pe.match_start-=Kt,pe.strstart-=Kt,pe.block_start-=Kt,gt=pe.hash_size,hr=gt;do nr=pe.head[--hr],pe.head[hr]=nr>=Kt?nr-Kt:0;while(--gt);gt=Kt,hr=gt;do nr=pe.prev[--hr],pe.prev[hr]=nr>=Kt?nr-Kt:0;while(--gt);mr+=Kt}if(pe.strm.avail_in===0)break;if(gt=Ce(pe.strm,pe.window,pe.strstart+pe.lookahead,mr),pe.lookahead+=gt,pe.lookahead+pe.insert>=U)for(cn=pe.strstart-pe.insert,pe.ins_h=pe.window[cn],pe.ins_h=(pe.ins_h<<pe.hash_shift^pe.window[cn+1])&pe.hash_mask;pe.insert&&!(pe.ins_h=(pe.ins_h<<pe.hash_shift^pe.window[cn+U-1])&pe.hash_mask,pe.prev[cn&pe.w_mask]=pe.head[pe.ins_h],pe.head[pe.ins_h]=cn,cn++,pe.insert--,pe.lookahead+pe.insert<U););}while(pe.lookahead<Q&&pe.strm.avail_in!==0)}function ye(pe,Kt){var hr=65535;for(hr>pe.pending_buf_size-5&&(hr=pe.pending_buf_size-5);;){if(pe.lookahead<=1){if(he(pe),pe.lookahead===0&&Kt===n)return Je;if(pe.lookahead===0)break}pe.strstart+=pe.lookahead,pe.lookahead=0;var gt=pe.block_start+hr;if((pe.strstart===0||pe.strstart>=gt)&&(pe.lookahead=pe.strstart-gt,pe.strstart=gt,ee(pe,!1),pe.strm.avail_out===0))return Je;if(pe.strstart-pe.block_start>=pe.w_size-Q&&(ee(pe,!1),pe.strm.avail_out===0))return Je}return pe.insert=0,Kt===e?(ee(pe,!0),pe.strm.avail_out===0?ct:Ue):(pe.strstart>pe.block_start&&(ee(pe,!1),pe.strm.avail_out===0),Je)}function Ie(pe,Kt){for(var hr,gt;;){if(pe.lookahead<Q){if(he(pe),pe.lookahead<Q&&Kt===n)return Je;if(pe.lookahead===0)break}if(hr=0,pe.lookahead>=U&&(pe.ins_h=(pe.ins_h<<pe.hash_shift^pe.window[pe.strstart+U-1])&pe.hash_mask,hr=pe.prev[pe.strstart&pe.w_mask]=pe.head[pe.ins_h],pe.head[pe.ins_h]=pe.strstart),hr!==0&&pe.strstart-hr<=pe.w_size-Q&&(pe.match_length=Te(pe,hr)),pe.match_length>=U)if(gt=S._tr_tally(pe,pe.strstart-pe.match_start,pe.match_length-U),pe.lookahead-=pe.match_length,pe.match_length<=pe.max_lazy_match&&pe.lookahead>=U){pe.match_length--;do pe.strstart++,pe.ins_h=(pe.ins_h<<pe.hash_shift^pe.window[pe.strstart+U-1])&pe.hash_mask,hr=pe.prev[pe.strstart&pe.w_mask]=pe.head[pe.ins_h],pe.head[pe.ins_h]=pe.strstart;while(--pe.match_length!==0);pe.strstart++}else pe.strstart+=pe.match_length,pe.match_length=0,pe.ins_h=pe.window[pe.strstart],pe.ins_h=(pe.ins_h<<pe.hash_shift^pe.window[pe.strstart+1])&pe.hash_mask;else gt=S._tr_tally(pe,0,pe.window[pe.strstart]),pe.lookahead--,pe.strstart++;if(gt&&(ee(pe,!1),pe.strm.avail_out===0))return Je}return pe.insert=pe.strstart<U-1?pe.strstart:U-1,Kt===e?(ee(pe,!0),pe.strm.avail_out===0?ct:Ue):pe.last_lit&&(ee(pe,!1),pe.strm.avail_out===0)?Je:Ve}function tt(pe,Kt){for(var hr,gt,nr;;){if(pe.lookahead<Q){if(he(pe),pe.lookahead<Q&&Kt===n)return Je;if(pe.lookahead===0)break}if(hr=0,pe.lookahead>=U&&(pe.ins_h=(pe.ins_h<<pe.hash_shift^pe.window[pe.strstart+U-1])&pe.hash_mask,hr=pe.prev[pe.strstart&pe.w_mask]=pe.head[pe.ins_h],pe.head[pe.ins_h]=pe.strstart),pe.prev_length=pe.match_length,pe.prev_match=pe.match_start,pe.match_length=U-1,hr!==0&&pe.prev_length<pe.max_lazy_match&&pe.strstart-hr<=pe.w_size-Q&&(pe.match_length=Te(pe,hr),pe.match_length<=5&&(pe.strategy===b||pe.match_length===U&&pe.strstart-pe.match_start>4096)&&(pe.match_length=U-1)),pe.prev_length>=U&&pe.match_length<=pe.prev_length){nr=pe.strstart+pe.lookahead-U,gt=S._tr_tally(pe,pe.strstart-1-pe.prev_match,pe.prev_length-U),pe.lookahead-=pe.prev_length-1,pe.prev_length-=2;do++pe.strstart<=nr&&(pe.ins_h=(pe.ins_h<<pe.hash_shift^pe.window[pe.strstart+U-1])&pe.hash_mask,hr=pe.prev[pe.strstart&pe.w_mask]=pe.head[pe.ins_h],pe.head[pe.ins_h]=pe.strstart);while(--pe.prev_length!==0);if(pe.match_available=0,pe.match_length=U-1,pe.strstart++,gt&&(ee(pe,!1),pe.strm.avail_out===0))return Je}else if(pe.match_available){if(gt=S._tr_tally(pe,0,pe.window[pe.strstart-1]),gt&&ee(pe,!1),pe.strstart++,pe.lookahead--,pe.strm.avail_out===0)return Je}else pe.match_available=1,pe.strstart++,pe.lookahead--}return pe.match_available&&(gt=S._tr_tally(pe,0,pe.window[pe.strstart-1]),pe.match_available=0),pe.insert=pe.strstart<U-1?pe.strstart:U-1,Kt===e?(ee(pe,!0),pe.strm.avail_out===0?ct:Ue):pe.last_lit&&(ee(pe,!1),pe.strm.avail_out===0)?Je:Ve}function pt(pe,Kt){for(var hr,gt,nr,mr,cn=pe.window;;){if(pe.lookahead<=V){if(he(pe),pe.lookahead<=V&&Kt===n)return Je;if(pe.lookahead===0)break}if(pe.match_length=0,pe.lookahead>=U&&pe.strstart>0&&(nr=pe.strstart-1,gt=cn[nr],gt===cn[++nr]&&gt===cn[++nr]&&gt===cn[++nr])){mr=pe.strstart+V;do;while(gt===cn[++nr]&&gt===cn[++nr]&&gt===cn[++nr]&&gt===cn[++nr]&&gt===cn[++nr]&&gt===cn[++nr]&&gt===cn[++nr]&&gt===cn[++nr]&&nr<mr);pe.match_length=V-(mr-nr),pe.match_length>pe.lookahead&&(pe.match_length=pe.lookahead)}if(pe.match_length>=U?(hr=S._tr_tally(pe,1,pe.match_length-U),pe.lookahead-=pe.match_length,pe.strstart+=pe.match_length,pe.match_length=0):(hr=S._tr_tally(pe,0,pe.window[pe.strstart]),pe.lookahead--,pe.strstart++),hr&&(ee(pe,!1),pe.strm.avail_out===0))return Je}return pe.insert=0,Kt===e?(ee(pe,!0),pe.strm.avail_out===0?ct:Ue):pe.last_lit&&(ee(pe,!1),pe.strm.avail_out===0)?Je:Ve}function st(pe,Kt){for(var hr;;){if(pe.lookahead===0&&(he(pe),pe.lookahead===0)){if(Kt===n)return Je;break}if(pe.match_length=0,hr=S._tr_tally(pe,0,pe.window[pe.strstart]),pe.lookahead--,pe.strstart++,hr&&(ee(pe,!1),pe.strm.avail_out===0))return Je}return pe.insert=0,Kt===e?(ee(pe,!0),pe.strm.avail_out===0?ct:Ue):pe.last_lit&&(ee(pe,!1),pe.strm.avail_out===0)?Je:Ve}function Fe(pe,Kt,hr,gt,nr){this.good_length=pe,this.max_lazy=Kt,this.nice_length=hr,this.max_chain=gt,this.func=nr}var ft;ft=[new Fe(0,0,0,0,ye),new Fe(4,4,8,4,Ie),new Fe(4,5,16,8,Ie),new Fe(4,6,32,32,Ie),new Fe(4,4,16,16,tt),new Fe(8,16,32,32,tt),new Fe(8,16,128,128,tt),new Fe(8,32,128,256,tt),new Fe(32,128,258,1024,tt),new Fe(32,258,258,4096,tt)];function et(pe){pe.window_size=2*pe.w_size,Z(pe.head),pe.max_lazy_match=ft[pe.level].max_lazy,pe.good_match=ft[pe.level].good_length,pe.nice_match=ft[pe.level].nice_length,pe.max_chain_length=ft[pe.level].max_chain,pe.strstart=0,pe.block_start=0,pe.lookahead=0,pe.insert=0,pe.match_length=pe.prev_length=U-1,pe.match_available=0,pe.ins_h=0}function wt(){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=C,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 p.Buf16(z*2),this.dyn_dtree=new p.Buf16((2*X+1)*2),this.bl_tree=new p.Buf16((2*P+1)*2),Z(this.dyn_ltree),Z(this.dyn_dtree),Z(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new p.Buf16(W+1),this.heap=new p.Buf16(2*M+1),Z(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new p.Buf16(2*M+1),Z(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 Ht(pe){var Kt;return!pe||!pe.state?rt(pe,c):(pe.total_in=pe.total_out=0,pe.data_type=E,Kt=pe.state,Kt.pending=0,Kt.pending_out=0,Kt.wrap<0&&(Kt.wrap=-Kt.wrap),Kt.status=Kt.wrap?te:Re,pe.adler=Kt.wrap===2?0:1,Kt.last_flush=n,S._tr_init(Kt),r)}function Dt(pe){var Kt=Ht(pe);return Kt===r&&et(pe.state),Kt}function Tt(pe,Kt){return!pe||!pe.state||pe.state.wrap!==2?c:(pe.state.gzhead=Kt,r)}function Bt(pe,Kt,hr,gt,nr,mr){if(!pe)return c;var cn=1;if(Kt===v&&(Kt=6),gt<0?(cn=0,gt=-gt):gt>15&&(cn=2,gt-=16),nr<1||nr>I||hr!==C||gt<8||gt>15||Kt<0||Kt>9||mr<0||mr>T)return rt(pe,c);gt===8&&(gt=9);var Ar=new wt;return pe.state=Ar,Ar.strm=pe,Ar.wrap=cn,Ar.gzhead=null,Ar.w_bits=gt,Ar.w_size=1<<Ar.w_bits,Ar.w_mask=Ar.w_size-1,Ar.hash_bits=nr+7,Ar.hash_size=1<<Ar.hash_bits,Ar.hash_mask=Ar.hash_size-1,Ar.hash_shift=~~((Ar.hash_bits+U-1)/U),Ar.window=new p.Buf8(Ar.w_size*2),Ar.head=new p.Buf16(Ar.hash_size),Ar.prev=new p.Buf16(Ar.w_size),Ar.lit_bufsize=1<<nr+6,Ar.pending_buf_size=Ar.lit_bufsize*4,Ar.pending_buf=new p.Buf8(Ar.pending_buf_size),Ar.d_buf=1*Ar.lit_bufsize,Ar.l_buf=(1+2)*Ar.lit_bufsize,Ar.level=Kt,Ar.strategy=mr,Ar.method=hr,Dt(pe)}function Ke(pe,Kt){return Bt(pe,Kt,C,_,F,O)}function de(pe,Kt){var hr,gt,nr,mr;if(!pe||!pe.state||Kt>u||Kt<0)return pe?rt(pe,c):c;if(gt=pe.state,!pe.output||!pe.input&&pe.avail_in!==0||gt.status===Pe&&Kt!==e)return rt(pe,pe.avail_out===0?g:c);if(gt.strm=pe,hr=gt.last_flush,gt.last_flush=Kt,gt.status===te)if(gt.wrap===2)pe.adler=0,fe(gt,31),fe(gt,139),fe(gt,8),gt.gzhead?(fe(gt,(gt.gzhead.text?1:0)+(gt.gzhead.hcrc?2:0)+(gt.gzhead.extra?4:0)+(gt.gzhead.name?8:0)+(gt.gzhead.comment?16:0)),fe(gt,gt.gzhead.time&255),fe(gt,gt.gzhead.time>>8&255),fe(gt,gt.gzhead.time>>16&255),fe(gt,gt.gzhead.time>>24&255),fe(gt,gt.level===9?2:gt.strategy>=w||gt.level<2?4:0),fe(gt,gt.gzhead.os&255),gt.gzhead.extra&&gt.gzhead.extra.length&&(fe(gt,gt.gzhead.extra.length&255),fe(gt,gt.gzhead.extra.length>>8&255)),gt.gzhead.hcrc&&(pe.adler=(0,m.default)(pe.adler,gt.pending_buf,gt.pending,0)),gt.gzindex=0,gt.status=$):(fe(gt,0),fe(gt,0),fe(gt,0),fe(gt,0),fe(gt,0),fe(gt,gt.level===9?2:gt.strategy>=w||gt.level<2?4:0),fe(gt,ue),gt.status=Re);else{var cn=C+(gt.w_bits-8<<4)<<8,Ar=-1;gt.strategy>=w||gt.level<2?Ar=0:gt.level<6?Ar=1:gt.level===6?Ar=2:Ar=3,cn|=Ar<<6,gt.strstart!==0&&(cn|=G),cn+=31-cn%31,gt.status=Re,be(gt,cn),gt.strstart!==0&&(be(gt,pe.adler>>>16),be(gt,pe.adler&65535)),pe.adler=1}if(gt.status===$)if(gt.gzhead.extra){for(nr=gt.pending;gt.gzindex<(gt.gzhead.extra.length&65535)&&!(gt.pending===gt.pending_buf_size&&(gt.gzhead.hcrc&&gt.pending>nr&&(pe.adler=(0,m.default)(pe.adler,gt.pending_buf,gt.pending-nr,nr)),Y(pe),nr=gt.pending,gt.pending===gt.pending_buf_size));)fe(gt,gt.gzhead.extra[gt.gzindex]&255),gt.gzindex++;gt.gzhead.hcrc&&gt.pending>nr&&(pe.adler=(0,m.default)(pe.adler,gt.pending_buf,gt.pending-nr,nr)),gt.gzindex===gt.gzhead.extra.length&&(gt.gzindex=0,gt.status=le)}else gt.status=le;if(gt.status===le)if(gt.gzhead.name){nr=gt.pending;do{if(gt.pending===gt.pending_buf_size&&(gt.gzhead.hcrc&&gt.pending>nr&&(pe.adler=(0,m.default)(pe.adler,gt.pending_buf,gt.pending-nr,nr)),Y(pe),nr=gt.pending,gt.pending===gt.pending_buf_size)){mr=1;break}gt.gzindex<gt.gzhead.name.length?mr=gt.gzhead.name.charCodeAt(gt.gzindex++)&255:mr=0,fe(gt,mr)}while(mr!==0);gt.gzhead.hcrc&&gt.pending>nr&&(pe.adler=(0,m.default)(pe.adler,gt.pending_buf,gt.pending-nr,nr)),mr===0&&(gt.gzindex=0,gt.status=re)}else gt.status=re;if(gt.status===re)if(gt.gzhead.comment){nr=gt.pending;do{if(gt.pending===gt.pending_buf_size&&(gt.gzhead.hcrc&&gt.pending>nr&&(pe.adler=(0,m.default)(pe.adler,gt.pending_buf,gt.pending-nr,nr)),Y(pe),nr=gt.pending,gt.pending===gt.pending_buf_size)){mr=1;break}gt.gzindex<gt.gzhead.comment.length?mr=gt.gzhead.comment.charCodeAt(gt.gzindex++)&255:mr=0,fe(gt,mr)}while(mr!==0);gt.gzhead.hcrc&&gt.pending>nr&&(pe.adler=(0,m.default)(pe.adler,gt.pending_buf,gt.pending-nr,nr)),mr===0&&(gt.status=Se)}else gt.status=Se;if(gt.status===Se&&(gt.gzhead.hcrc?(gt.pending+2>gt.pending_buf_size&&Y(pe),gt.pending+2<=gt.pending_buf_size&&(fe(gt,pe.adler&255),fe(gt,pe.adler>>8&255),pe.adler=0,gt.status=Re)):gt.status=Re),gt.pending!==0){if(Y(pe),pe.avail_out===0)return gt.last_flush=-1,r}else if(pe.avail_in===0&&ge(Kt)<=ge(hr)&&Kt!==e)return rt(pe,g);if(gt.status===Pe&&pe.avail_in!==0)return rt(pe,g);if(pe.avail_in!==0||gt.lookahead!==0||Kt!==n&&gt.status!==Pe){var xr=gt.strategy===w?st(gt,Kt):gt.strategy===x?pt(gt,Kt):ft[gt.level].func(gt,Kt);if((xr===ct||xr===Ue)&&(gt.status=Pe),xr===Je||xr===ct)return pe.avail_out===0&&(gt.last_flush=-1),r;if(xr===Ve&&(Kt===t?S._tr_align(gt):Kt!==u&&(S._tr_stored_block(gt,0,0,!1),Kt===a&&(Z(gt.head),gt.lookahead===0&&(gt.strstart=0,gt.block_start=0,gt.insert=0))),Y(pe),pe.avail_out===0))return gt.last_flush=-1,r}return Kt!==e?r:gt.wrap<=0?s:(gt.wrap===2?(fe(gt,pe.adler&255),fe(gt,pe.adler>>8&255),fe(gt,pe.adler>>16&255),fe(gt,pe.adler>>24&255),fe(gt,pe.total_in&255),fe(gt,pe.total_in>>8&255),fe(gt,pe.total_in>>16&255),fe(gt,pe.total_in>>24&255)):(be(gt,pe.adler>>>16),be(gt,pe.adler&65535)),Y(pe),gt.wrap>0&&(gt.wrap=-gt.wrap),gt.pending!==0?r:s)}function oe(pe){var Kt;return!pe||!pe.state?c:(Kt=pe.state.status,Kt!==te&&Kt!==$&&Kt!==le&&Kt!==re&&Kt!==Se&&Kt!==Re&&Kt!==Pe?rt(pe,c):(pe.state=null,Kt===Re?rt(pe,h):r))}function lt(pe,Kt){var hr=Kt.length,gt,nr,mr,cn,Ar,xr,qt,ar;if(!pe||!pe.state)return c;if(gt=pe.state,cn=gt.wrap,cn===2||cn===1&&gt.status!==te||gt.lookahead)return c;for(cn===1&&(pe.adler=(0,A.default)(pe.adler,Kt,hr,0)),gt.wrap=0,hr>=gt.w_size&&(cn===0&&(Z(gt.head),gt.strstart=0,gt.block_start=0,gt.insert=0),ar=new p.Buf8(gt.w_size),p.arraySet(ar,Kt,hr-gt.w_size,gt.w_size,0),Kt=ar,hr=gt.w_size),Ar=pe.avail_in,xr=pe.next_in,qt=pe.input,pe.avail_in=hr,pe.next_in=0,pe.input=Kt,he(gt);gt.lookahead>=U;){nr=gt.strstart,mr=gt.lookahead-(U-1);do gt.ins_h=(gt.ins_h<<gt.hash_shift^gt.window[nr+U-1])&gt.hash_mask,gt.prev[nr&gt.w_mask]=gt.head[gt.ins_h],gt.head[gt.ins_h]=nr,nr++;while(--mr);gt.strstart=nr,gt.lookahead=U-1,he(gt)}return gt.strstart+=gt.lookahead,gt.block_start=gt.strstart,gt.insert=gt.lookahead,gt.lookahead=0,gt.match_length=gt.prev_length=U-1,gt.match_available=0,pe.next_in=xr,pe.input=qt,pe.avail_in=Ar,gt.wrap=cn,r}var qe="pako deflate (from Nodeca project)";D.deflateInfo=qe},lOQZ:function(k,D,i){var y=i("QBsz"),p=i("U/Mo"),S=p.getSymbolSize,A=p.getNodeGlobalScale,m=Math.PI,f=[];function d(o,n){var t=o.coordinateSystem;if(t&&t.type!=="view")return;var a=t.getBoundingRect(),e=o.getData(),u=e.graph,r=a.width/2+a.x,s=a.height/2+a.y,c=Math.min(a.width,a.height)/2,h=e.count();if(e.setLayout({cx:r,cy:s}),!h)return;l[n](o,t,u,e,c,r,s,h),u.eachEdge(function(g){var v=g.getModel().get("lineStyle.curveness")||0,b=y.clone(g.node1.getLayout()),w=y.clone(g.node2.getLayout()),x,T=(b[0]+w[0])/2,O=(b[1]+w[1])/2;+v&&(v*=3,x=[r*v+T*(1-v),s*v+O*(1-v)]),g.setLayout([b,w,x])})}var l={value:function(o,n,t,a,e,u,r,s){var c=0,h=a.getSum("value"),g=Math.PI*2/(h||s);t.eachNode(function(v){var b=v.getValue("value"),w=g*(h?b:1)/2;c+=w,v.setLayout([e*Math.cos(c)+u,e*Math.sin(c)+r]),c+=w})},symbolSize:function(o,n,t,a,e,u,r,s){var c=0;f.length=s;var h=A(o);t.eachNode(function(b){var w=S(b);isNaN(w)&&(w=2),w<0&&(w=0),w*=h;var x=Math.asin(w/2/e);isNaN(x)&&(x=m/2),f[b.dataIndex]=x,c+=x*2});var g=(2*m-c)/s/2,v=0;t.eachNode(function(b){var w=g+f[b.dataIndex];v+=w,b.setLayout([e*Math.cos(v)+u,e*Math.sin(v)+r]),v+=w})}};D.circularLayout=d},lPiR:function(k,D,i){(function(y,p){k.exports=D=p(i("Ib8C"))})(this,function(y){return function(p){var S=y,A=S.lib,m=A.WordArray,f=A.Hasher,d=S.algo,l=[],o=[];(function(){function a(s){for(var c=p.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;)a(u)&&(r<8&&(l[r]=e(p.pow(u,1/2))),o[r]=e(p.pow(u,1/3)),r++),u++})();var n=[],t=d.SHA256=f.extend({_doReset:function(){this._hash=new m.init(l.slice(0))},_doProcessBlock:function(e,u){for(var r=this._hash.words,s=r[0],c=r[1],h=r[2],g=r[3],v=r[4],b=r[5],w=r[6],x=r[7],T=0;T<64;T++){if(T<16)n[T]=e[u+T]|0;else{var O=n[T-15],E=(O<<25|O>>>7)^(O<<14|O>>>18)^O>>>3,C=n[T-2],I=(C<<15|C>>>17)^(C<<13|C>>>19)^C>>>10;n[T]=E+n[T-7]+I+n[T-16]}var _=v&b^~v&w,F=s&c^s&h^c&h,R=(s<<30|s>>>2)^(s<<19|s>>>13)^(s<<10|s>>>22),B=(v<<26|v>>>6)^(v<<21|v>>>11)^(v<<7|v>>>25),M=x+B+_+o[T]+n[T],X=R+F;x=w,w=b,b=v,v=g+M|0,g=h,h=c,c=s,s=M+X|0}r[0]=r[0]+s|0,r[1]=r[1]+c|0,r[2]=r[2]+h|0,r[3]=r[3]+g|0,r[4]=r[4]+v|0,r[5]=r[5]+b|0,r[6]=r[6]+w|0,r[7]=r[7]+x|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]=p.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(k,D,i){var y=i("NykK"),p=i("GoyQ"),S="[object AsyncFunction]",A="[object Function]",m="[object GeneratorFunction]",f="[object Proxy]";function d(l){if(!p(l))return!1;var o=y(l);return o==A||o==m||o==S||o==f}k.exports=d},lUTK:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("x54q"),A=i.n(S),m=i("5Dmo")},lZu9:function(k,D,i){(function(y){y(i("VrN/"),i("1eCo"),i("8EBN"))})(function(y){"use strict";y.defineMode("markdown",function(p,S){var A=y.getMode(p,"text/html"),m=A.name=="null";function f(W){if(y.findModeByName){var U=y.findModeByName(W);U&&(W=U.mime||U.mimes[0])}var V=y.getMode(p,W);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 o=/^([*\-_])(?:\s*\1){2,}\s*$/,n=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,t=/^\[(x| )\](?=\s)/i,a=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 g(W,U,V){return U.f=U.inline=V,V(W,U)}function v(W,U,V){return U.f=U.block=V,V(W,U)}function b(W){return!W||!/\S/.test(W.string)}function w(W){if(W.linkTitle=!1,W.linkHref=!1,W.linkText=!1,W.em=!1,W.strong=!1,W.strikethrough=!1,W.quote=0,W.indentedCode=!1,W.f==T){var U=m;if(!U){var V=y.innerMode(A,W.htmlState);U=V.mode.name=="xml"&&V.state.tagStart===null&&!V.state.context&&V.state.tokenize.isInText}U&&(W.f=I,W.block=x,W.htmlState=null)}return W.trailingSpace=0,W.trailingSpaceNewLine=!1,W.prevLine=W.thisLine,W.thisLine={stream:null},null}function x(W,U){var V=W.column()===U.indentation,Q=b(U.prevLine.stream),G=U.indentedCode,te=U.prevLine.hr,$=U.list!==!1,le=(U.listStack[U.listStack.length-1]||0)+3;U.indentedCode=!1;var re=U.indentation;if(U.indentationDiff===null&&(U.indentationDiff=U.indentation,$)){for(U.list=null;re<U.listStack[U.listStack.length-1];)U.listStack.pop(),U.listStack.length?U.indentation=U.listStack[U.listStack.length-1]:U.list=!1;U.list!==!1&&(U.indentationDiff=re-U.listStack[U.listStack.length-1])}var Se=!Q&&!te&&!U.prevLine.header&&(!$||!G)&&!U.prevLine.fencedCodeEnd,Re=(U.list===!1||te||Q)&&U.indentation<=le&&W.match(o),Pe=null;if(U.indentationDiff>=4&&(G||U.prevLine.fencedCodeEnd||U.prevLine.header||Q))return W.skipToEnd(),U.indentedCode=!0,d.code;if(W.eatSpace())return null;if(V&&U.indentation<=le&&(Pe=W.match(a))&&Pe[1].length<=6)return U.quote=0,U.header=Pe[1].length,U.thisLine.header=!0,S.highlightFormatting&&(U.formatting="header"),U.f=U.inline,E(U);if(U.indentation<=le&&W.eat(">"))return U.quote=V?1:U.quote+1,S.highlightFormatting&&(U.formatting="quote"),W.eatSpace(),E(U);if(!Re&&!U.setext&&V&&U.indentation<=le&&(Pe=W.match(n))){var Je=Pe[1]?"ol":"ul";return U.indentation=re+W.current().length,U.list=!0,U.quote=0,U.listStack.push(U.indentation),U.em=!1,U.strong=!1,U.code=!1,U.strikethrough=!1,S.taskLists&&W.match(t,!1)&&(U.taskList=!0),U.f=U.inline,S.highlightFormatting&&(U.formatting=["list","list-"+Je]),E(U)}else{if(V&&U.indentation<=le&&(Pe=W.match(r,!0)))return U.quote=0,U.fencedEndRE=new RegExp(Pe[1]+"+ *$"),U.localMode=S.fencedCodeBlockHighlighting&&f(Pe[2]||S.fencedCodeBlockDefaultMode),U.localMode&&(U.localState=y.startState(U.localMode)),U.f=U.block=O,S.highlightFormatting&&(U.formatting="code-block"),U.code=-1,E(U);if(U.setext||(!Se||!$)&&!U.quote&&U.list===!1&&!U.code&&!Re&&!s.test(W.string)&&(Pe=W.lookAhead(1))&&(Pe=Pe.match(e)))return U.setext?(U.header=U.setext,U.setext=0,W.skipToEnd(),S.highlightFormatting&&(U.formatting="header")):(U.header=Pe[0].charAt(0)=="="?1:2,U.setext=U.header),U.thisLine.header=!0,U.f=U.inline,E(U);if(Re)return W.skipToEnd(),U.hr=!0,U.thisLine.hr=!0,d.hr;if(W.peek()==="[")return g(W,U,M)}return g(W,U,U.inline)}function T(W,U){var V=A.token(W,U.htmlState);if(!m){var Q=y.innerMode(A,U.htmlState);(Q.mode.name=="xml"&&Q.state.tagStart===null&&!Q.state.context&&Q.state.tokenize.isInText||U.md_inside&&W.current().indexOf(">")>-1)&&(U.f=I,U.block=x,U.htmlState=null)}return V}function O(W,U){var V=U.listStack[U.listStack.length-1]||0,Q=U.indentation<V,G=V+3;if(U.fencedEndRE&&U.indentation<=G&&(Q||W.match(U.fencedEndRE))){S.highlightFormatting&&(U.formatting="code-block");var te;return Q||(te=E(U)),U.localMode=U.localState=null,U.block=x,U.f=I,U.fencedEndRE=null,U.code=0,U.thisLine.fencedCodeEnd=!0,Q?v(W,U,U.block):te}else return U.localMode?U.localMode.token(W,U.localState):(W.skipToEnd(),d.code)}function E(W){var U=[];if(W.formatting){U.push(d.formatting),typeof W.formatting=="string"&&(W.formatting=[W.formatting]);for(var V=0;V<W.formatting.length;V++)U.push(d.formatting+"-"+W.formatting[V]),W.formatting[V]==="header"&&U.push(d.formatting+"-"+W.formatting[V]+"-"+W.header),W.formatting[V]==="quote"&&(!S.maxBlockquoteDepth||S.maxBlockquoteDepth>=W.quote?U.push(d.formatting+"-"+W.formatting[V]+"-"+W.quote):U.push("error"))}if(W.taskOpen)return U.push("meta"),U.length?U.join(" "):null;if(W.taskClosed)return U.push("property"),U.length?U.join(" "):null;if(W.linkHref?U.push(d.linkHref,"url"):(W.strong&&U.push(d.strong),W.em&&U.push(d.em),W.strikethrough&&U.push(d.strikethrough),W.emoji&&U.push(d.emoji),W.linkText&&U.push(d.linkText),W.code&&U.push(d.code),W.image&&U.push(d.image),W.imageAltText&&U.push(d.imageAltText,"link"),W.imageMarker&&U.push(d.imageMarker)),W.header&&U.push(d.header,d.header+"-"+W.header),W.quote&&(U.push(d.quote),!S.maxBlockquoteDepth||S.maxBlockquoteDepth>=W.quote?U.push(d.quote+"-"+W.quote):U.push(d.quote+"-"+S.maxBlockquoteDepth)),W.list!==!1){var Q=(W.listStack.length-1)%3;Q?Q===1?U.push(d.list2):U.push(d.list3):U.push(d.list1)}return W.trailingSpaceNewLine?U.push("trailing-space-new-line"):W.trailingSpace&&U.push("trailing-space-"+(W.trailingSpace%2?"a":"b")),U.length?U.join(" "):null}function C(W,U){return W.match(u,!0)?E(U):void 0}function I(W,U){var V=U.text(W,U);if(typeof V!="undefined")return V;if(U.list)return U.list=null,E(U);if(U.taskList){var Q=W.match(t,!0)[1]===" ";return Q?U.taskOpen=!0:U.taskClosed=!0,S.highlightFormatting&&(U.formatting="task"),U.taskList=!1,E(U)}if(U.taskOpen=!1,U.taskClosed=!1,U.header&&W.match(/^#+$/,!0))return S.highlightFormatting&&(U.formatting="header"),E(U);var G=W.next();if(U.linkTitle){U.linkTitle=!1;var te=G;G==="("&&(te=")"),te=(te+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var $="^\\s*(?:[^"+te+"\\\\]+|\\\\\\\\|\\\\.)"+te;if(W.match(new RegExp($),!0))return d.linkHref}if(G==="`"){var le=U.formatting;S.highlightFormatting&&(U.formatting="code"),W.eatWhile("`");var re=W.current().length;if(U.code==0&&(!U.quote||re==1))return U.code=re,E(U);if(re==U.code){var Se=E(U);return U.code=0,Se}else return U.formatting=le,E(U)}else if(U.code)return E(U);if(G==="\\"&&(W.next(),S.highlightFormatting)){var Re=E(U),Pe=d.formatting+"-escape";return Re?Re+" "+Pe:Pe}if(G==="!"&&W.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return U.imageMarker=!0,U.image=!0,S.highlightFormatting&&(U.formatting="image"),E(U);if(G==="["&&U.imageMarker&&W.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return U.imageMarker=!1,U.imageAltText=!0,S.highlightFormatting&&(U.formatting="image"),E(U);if(G==="]"&&U.imageAltText){S.highlightFormatting&&(U.formatting="image");var Re=E(U);return U.imageAltText=!1,U.image=!1,U.inline=U.f=F,Re}if(G==="["&&!U.image)return U.linkText&&W.match(/^.*?\]/)||(U.linkText=!0,S.highlightFormatting&&(U.formatting="link")),E(U);if(G==="]"&&U.linkText){S.highlightFormatting&&(U.formatting="link");var Re=E(U);return U.linkText=!1,U.inline=U.f=W.match(/\(.*?\)| ?\[.*?\]/,!1)?F:I,Re}if(G==="<"&&W.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){U.f=U.inline=_,S.highlightFormatting&&(U.formatting="link");var Re=E(U);return Re?Re+=" ":Re="",Re+d.linkInline}if(G==="<"&&W.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){U.f=U.inline=_,S.highlightFormatting&&(U.formatting="link");var Re=E(U);return Re?Re+=" ":Re="",Re+d.linkEmail}if(S.xml&&G==="<"&&W.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Je=W.string.indexOf(">",W.pos);if(Je!=-1){var Ve=W.string.substring(W.start,Je);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Ve)&&(U.md_inside=!0)}return W.backUp(1),U.htmlState=y.startState(A),v(W,U,T)}if(S.xml&&G==="<"&&W.match(/^\/\w*?>/))return U.md_inside=!1,"tag";if(G==="*"||G==="_"){for(var ct=1,Ue=W.pos==1?" ":W.string.charAt(W.pos-2);ct<3&&W.eat(G);)ct++;var ue=W.peek()||" ",rt=!/\s/.test(ue)&&(!c.test(ue)||/\s/.test(Ue)||c.test(Ue)),ge=!/\s/.test(Ue)&&(!c.test(Ue)||/\s/.test(ue)||c.test(ue)),Z=null,Y=null;if(ct%2&&(!U.em&&rt&&(G==="*"||!ge||c.test(Ue))?Z=!0:U.em==G&&ge&&(G==="*"||!rt||c.test(ue))&&(Z=!1)),ct>1&&(!U.strong&&rt&&(G==="*"||!ge||c.test(Ue))?Y=!0:U.strong==G&&ge&&(G==="*"||!rt||c.test(ue))&&(Y=!1)),Y!=null||Z!=null){S.highlightFormatting&&(U.formatting=Z==null?"strong":Y==null?"em":"strong em"),Z===!0&&(U.em=G),Y===!0&&(U.strong=G);var Se=E(U);return Z===!1&&(U.em=!1),Y===!1&&(U.strong=!1),Se}}else if(G===" "&&(W.eat("*")||W.eat("_"))){if(W.peek()===" ")return E(U);W.backUp(1)}if(S.strikethrough){if(G==="~"&&W.eatWhile(G)){if(U.strikethrough){S.highlightFormatting&&(U.formatting="strikethrough");var Se=E(U);return U.strikethrough=!1,Se}else if(W.match(/^[^\s]/,!1))return U.strikethrough=!0,S.highlightFormatting&&(U.formatting="strikethrough"),E(U)}else if(G===" "&&W.match(/^~~/,!0)){if(W.peek()===" ")return E(U);W.backUp(2)}}if(S.emoji&&G===":"&&W.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){U.emoji=!0,S.highlightFormatting&&(U.formatting="emoji");var ee=E(U);return U.emoji=!1,ee}return G===" "&&(W.match(/^ +$/,!1)?U.trailingSpace++:U.trailingSpace&&(U.trailingSpaceNewLine=!0)),E(U)}function _(W,U){var V=W.next();if(V===">"){U.f=U.inline=I,S.highlightFormatting&&(U.formatting="link");var Q=E(U);return Q?Q+=" ":Q="",Q+d.linkInline}return W.match(/^[^>]+/,!0),d.linkInline}function F(W,U){if(W.eatSpace())return null;var V=W.next();return V==="("||V==="["?(U.f=U.inline=B(V==="("?")":"]"),S.highlightFormatting&&(U.formatting="link-string"),U.linkHref=!0,E(U)):"error"}var R={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function B(W){return function(U,V){var Q=U.next();if(Q===W){V.f=V.inline=I,S.highlightFormatting&&(V.formatting="link-string");var G=E(V);return V.linkHref=!1,G}return U.match(R[W]),V.linkHref=!0,E(V)}}function M(W,U){return W.match(/^([^\]\\]|\\.)*\]:/,!1)?(U.f=X,W.next(),S.highlightFormatting&&(U.formatting="link"),U.linkText=!0,E(U)):g(W,U,I)}function X(W,U){if(W.match(/^\]:/,!0)){U.f=U.inline=P,S.highlightFormatting&&(U.formatting="link");var V=E(U);return U.linkText=!1,V}return W.match(/^([^\]\\]|\\.)+/,!0),d.linkText}function P(W,U){return W.eatSpace()?null:(W.match(/^[^\s]+/,!0),W.peek()===void 0?U.linkTitle=!0:W.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),U.f=U.inline=I,d.linkHref+" url")}var z={startState:function(){return{f:x,prevLine:{stream:null},thisLine:{stream:null},block:x,htmlState:null,indentation:0,inline:I,text:C,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(U){return{f:U.f,prevLine:U.prevLine,thisLine:U.thisLine,block:U.block,htmlState:U.htmlState&&y.copyState(A,U.htmlState),indentation:U.indentation,localMode:U.localMode,localState:U.localMode?y.copyState(U.localMode,U.localState):null,inline:U.inline,text:U.text,formatting:!1,linkText:U.linkText,linkTitle:U.linkTitle,linkHref:U.linkHref,code:U.code,em:U.em,strong:U.strong,strikethrough:U.strikethrough,emoji:U.emoji,header:U.header,setext:U.setext,hr:U.hr,taskList:U.taskList,list:U.list,listStack:U.listStack.slice(0),quote:U.quote,indentedCode:U.indentedCode,trailingSpace:U.trailingSpace,trailingSpaceNewLine:U.trailingSpaceNewLine,md_inside:U.md_inside,fencedEndRE:U.fencedEndRE}},token:function(U,V){if(V.formatting=!1,U!=V.thisLine.stream){if(V.header=0,V.hr=!1,U.match(/^\s*$/,!0))return w(V),null;if(V.prevLine=V.thisLine,V.thisLine={stream:U},V.taskList=!1,V.trailingSpace=0,V.trailingSpaceNewLine=!1,!V.localState&&(V.f=V.block,V.f!=T)){var Q=U.match(/^\s*/,!0)[0].replace(/\t/g,h).length;if(V.indentation=Q,V.indentationDiff=null,Q>0)return null}}return V.f(U,V)},innerMode:function(U){return U.block==T?{state:U.htmlState,mode:A}:U.localState?{state:U.localState,mode:U.localMode}:{state:U,mode:z}},indent:function(U,V,Q){return U.block==T&&A.indent?A.indent(U.htmlState,V,Q):U.localState&&U.localMode.indent?U.localMode.indent(U.localState,V,Q):y.Pass},blankLine:w,getType:E,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return z},"xml"),y.defineMIME("text/markdown","markdown"),y.defineMIME("text/x-markdown","markdown")})},laiN:function(k,D,i){var y=i("ProS");i("GVMX"),i("MH26"),y.registerPreprocessor(function(p){p.markLine=p.markLine||{}})},ljhN:function(k,D){function i(y,p){return y===p||y!==y&&p!==p}k.exports=i},lnY3:function(k,D,i){},loD1:function(k,D){function i(y,p,S,A,m,f,d){if(m===0)return!1;var l=m,o=0,n=y;if(d>p+l&&d>A+l||d<p-l&&d<A-l||f>y+l&&f>S+l||f<y-l&&f<S-l)return!1;if(y!==S)o=(p-A)/(y-S),n=(y*A-S*p)/(y-S);else return Math.abs(f-y)<=l/2;var t=o*f-d+n,a=t*t/(o*o+1);return a<=l/2*l/2}D.containStroke=i},lr6o:function(k,D,i){"use strict";var y=i("rePB"),p=i("Ff2n"),S=i("VTBJ"),A=i("1OyB"),m=i("vuIU"),f=i("JX7q"),d=i("Ji7U"),l=i("LK+K"),o=i("q1tI"),n=i("TSYQ"),t=i.n(n),a=i("FTAc"),e=i("wPhX"),u=function(T){var O=T.prefixCls,E=T.level,C=T.isStart,I=T.isEnd;if(!E)return null;for(var _="".concat(O,"-indent-unit"),F=[],R=0;R<E;R+=1){var B;F.push(o.createElement("span",{key:R,className:t()(_,(B={},Object(y.a)(B,"".concat(_,"-start"),C[R+1]),Object(y.a)(B,"".concat(_,"-end"),I[R+1]),Object(y.a)(B,"".concat(_,"-end-first-level"),!R&&I[0]),B))}))}return o.createElement("span",{"aria-hidden":"true",className:"".concat(O,"-indent")},F)},r=u,s=i("c3jg"),c="open",h="close",g="---",v=function(x){Object(d.a)(O,x);var T=Object(l.a)(O);function O(){var E;return Object(A.a)(this,O),E=T.apply(this,arguments),E.state={dragNodeHighlight:!1},E.onSelectorClick=function(C){var I=E.props.context.onNodeClick;I(C,Object(s.b)(E.props)),E.isSelectable()?E.onSelect(C):E.onCheck(C)},E.onSelectorDoubleClick=function(C){var I=E.props.context.onNodeDoubleClick;I(C,Object(s.b)(E.props))},E.onSelect=function(C){if(E.isDisabled())return;var I=E.props.context.onNodeSelect;C.preventDefault(),I(C,Object(s.b)(E.props))},E.onCheck=function(C){if(E.isDisabled())return;var I=E.props,_=I.disableCheckbox,F=I.checked,R=E.props.context.onNodeCheck;if(!E.isCheckable()||_)return;C.preventDefault();var B=!F;R(C,Object(s.b)(E.props),B)},E.onMouseEnter=function(C){var I=E.props.context.onNodeMouseEnter;I(C,Object(s.b)(E.props))},E.onMouseLeave=function(C){var I=E.props.context.onNodeMouseLeave;I(C,Object(s.b)(E.props))},E.onContextMenu=function(C){var I=E.props.context.onNodeContextMenu;I(C,Object(s.b)(E.props))},E.onDragStart=function(C){var I=E.props.context.onNodeDragStart;C.stopPropagation(),E.setState({dragNodeHighlight:!0}),I(C,Object(f.a)(E));try{C.dataTransfer.setData("text/plain","")}catch(_){}},E.onDragEnter=function(C){var I=E.props.context.onNodeDragEnter;C.preventDefault(),C.stopPropagation(),I(C,Object(f.a)(E))},E.onDragOver=function(C){var I=E.props.context.onNodeDragOver;C.preventDefault(),C.stopPropagation(),I(C,Object(f.a)(E))},E.onDragLeave=function(C){var I=E.props.context.onNodeDragLeave;C.stopPropagation(),I(C,Object(f.a)(E))},E.onDragEnd=function(C){var I=E.props.context.onNodeDragEnd;C.stopPropagation(),E.setState({dragNodeHighlight:!1}),I(C,Object(f.a)(E))},E.onDrop=function(C){var I=E.props.context.onNodeDrop;C.preventDefault(),C.stopPropagation(),E.setState({dragNodeHighlight:!1}),I(C,Object(f.a)(E))},E.onExpand=function(C){var I=E.props.context.onNodeExpand;I(C,Object(s.b)(E.props))},E.setSelectHandle=function(C){E.selectHandle=C},E.getNodeState=function(){var C=E.props.expanded;return E.isLeaf()?null:C?c:h},E.hasChildren=function(){var C=E.props.eventKey,I=E.props.context.keyEntities,_=I[C]||{},F=_.children;return!!(F||[]).length},E.isLeaf=function(){var C=E.props,I=C.isLeaf,_=C.loaded,F=E.props.context.loadData,R=E.hasChildren();return I===!1?!1:I||!F&&!R||F&&_&&!R},E.isDisabled=function(){var C=E.props.disabled,I=E.props.context.disabled;return!!(I||C)},E.isCheckable=function(){var C=E.props.checkable,I=E.props.context.checkable;return!I||C===!1?!1:I},E.syncLoadData=function(C){var I=C.expanded,_=C.loading,F=C.loaded,R=E.props.context,B=R.loadData,M=R.onNodeLoad;if(_)return;B&&I&&!E.isLeaf()&&(!E.hasChildren()&&!F&&M(Object(s.b)(E.props)))},E.renderSwitcher=function(){var C=E.props,I=C.expanded,_=C.switcherIcon,F=E.props.context,R=F.prefixCls,B=F.switcherIcon,M=_||B;if(E.isLeaf())return o.createElement("span",{className:t()("".concat(R,"-switcher"),"".concat(R,"-switcher-noop"))},typeof M=="function"?M(Object(S.a)(Object(S.a)({},E.props),{},{isLeaf:!0})):M);var X=t()("".concat(R,"-switcher"),"".concat(R,"-switcher_").concat(I?c:h));return o.createElement("span",{onClick:E.onExpand,className:X},typeof M=="function"?M(Object(S.a)(Object(S.a)({},E.props),{},{isLeaf:!1})):M)},E.renderCheckbox=function(){var C=E.props,I=C.checked,_=C.halfChecked,F=C.disableCheckbox,R=E.props.context.prefixCls,B=E.isDisabled(),M=E.isCheckable();if(!M)return null;var X=typeof M!="boolean"?M:null;return o.createElement("span",{className:t()("".concat(R,"-checkbox"),I&&"".concat(R,"-checkbox-checked"),!I&&_&&"".concat(R,"-checkbox-indeterminate"),(B||F)&&"".concat(R,"-checkbox-disabled")),onClick:E.onCheck},X)},E.renderIcon=function(){var C=E.props.loading,I=E.props.context.prefixCls;return o.createElement("span",{className:t()("".concat(I,"-iconEle"),"".concat(I,"-icon__").concat(E.getNodeState()||"docu"),C&&"".concat(I,"-icon_loading"))})},E.renderSelector=function(){var C=E.state.dragNodeHighlight,I=E.props,_=I.title,F=I.selected,R=I.icon,B=I.loading,M=I.data,X=E.props.context,P=X.prefixCls,z=X.showIcon,W=X.icon,U=X.draggable,V=X.loadData,Q=X.titleRender,G=E.isDisabled(),te="".concat(P,"-node-content-wrapper"),$;if(z){var le=R||W;$=le?o.createElement("span",{className:t()("".concat(P,"-iconEle"),"".concat(P,"-icon__customize"))},typeof le=="function"?le(E.props):le):E.renderIcon()}else V&&B&&($=E.renderIcon());var re;typeof _=="function"?re=_(M):Q?re=Q(M):re=_;var Se=o.createElement("span",{className:"".concat(P,"-title")},re);return o.createElement("span",{ref:E.setSelectHandle,title:typeof _=="string"?_:"",className:t()("".concat(te),"".concat(te,"-").concat(E.getNodeState()||"normal"),!G&&(F||C)&&"".concat(P,"-node-selected"),!G&&U&&"draggable"),draggable:!G&&U||void 0,"aria-grabbed":!G&&U||void 0,onMouseEnter:E.onMouseEnter,onMouseLeave:E.onMouseLeave,onContextMenu:E.onContextMenu,onClick:E.onSelectorClick,onDoubleClick:E.onSelectorDoubleClick,onDragStart:U?E.onDragStart:void 0},$,Se)},E}return Object(m.a)(O,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var C=this.props.selectable,I=this.props.context.selectable;return typeof C=="boolean"?C:I}},{key:"render",value:function(){var C,I=this.props,_=I.eventKey,F=I.className,R=I.style,B=I.dragOver,M=I.dragOverGapTop,X=I.dragOverGapBottom,P=I.isLeaf,z=I.isStart,W=I.isEnd,U=I.expanded,V=I.selected,Q=I.checked,G=I.halfChecked,te=I.loading,$=I.domRef,le=I.active,re=I.onMouseMove,Se=Object(p.a)(I,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),Re=this.props.context,Pe=Re.prefixCls,Je=Re.filterTreeNode,Ve=Re.draggable,ct=Re.keyEntities,Ue=this.isDisabled(),ue=Object(e.f)(Se),rt=ct[_]||{},ge=rt.level,Z=W[W.length-1];return o.createElement("div",Object.assign({ref:$,className:t()(F,"".concat(Pe,"-treenode"),(C={},Object(y.a)(C,"".concat(Pe,"-treenode-disabled"),Ue),Object(y.a)(C,"".concat(Pe,"-treenode-switcher-").concat(U?"open":"close"),!P),Object(y.a)(C,"".concat(Pe,"-treenode-checkbox-checked"),Q),Object(y.a)(C,"".concat(Pe,"-treenode-checkbox-indeterminate"),G),Object(y.a)(C,"".concat(Pe,"-treenode-selected"),V),Object(y.a)(C,"".concat(Pe,"-treenode-loading"),te),Object(y.a)(C,"".concat(Pe,"-treenode-active"),le),Object(y.a)(C,"".concat(Pe,"-treenode-leaf-last"),Z),Object(y.a)(C,"drag-over",!Ue&&B),Object(y.a)(C,"drag-over-gap-top",!Ue&&M),Object(y.a)(C,"drag-over-gap-bottom",!Ue&&X),Object(y.a)(C,"filter-node",Je&&Je(Object(s.b)(this.props))),C)),style:R,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),o.createElement(r,{prefixCls:Pe,level:ge,isStart:z,isEnd:W}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),O}(o.Component),b=function(T){return o.createElement(a.a.Consumer,null,function(O){return o.createElement(v,Object.assign({},T,{context:O}))})};b.displayName="TreeNode",b.defaultProps={title:g},b.isTreeNode=1;var w=D.a=b},lrIw:function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("cDf5"),A=i.n(S),m=i("J4zp"),f=i.n(m),d=i("q1tI"),l=i.n(d),o=i("Zm9Q"),n=i("TSYQ"),t=i.n(n),a=i("BGR+"),e=i("2fM7"),u=i("H84U"),r=i("uaoM"),s=i("0n0R"),c=e.a.Option,h=e.a;function g(w){return w&&w.type&&(w.type.isSelectOption||w.type.isSelectOptGroup)}var v=function(x,T){var O=x.prefixCls,E=x.className,C=x.children,I=x.dataSource,_=Object(o.a)(C),F=d.useRef();d.useImperativeHandle(T,function(){return F.current});var R;if(_.length===1&&Object(s.b)(_[0])&&!g(_[0])){var B=f()(_,1);R=B[0]}var M=function(){return R},X;return _.length&&g(_[0])?X=C:X=I?I.map(function(P){if(Object(s.b)(P))return P;switch(A()(P)){case"string":return d.createElement(c,{key:P,value:P},P);case"object":{var z=P.value;return d.createElement(c,{key:z,value:z},P.text)}default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[],d.useEffect(function(){Object(r.a)(!("dataSource"in x),"AutoComplete","`dataSource` is deprecated, please use `options` instead."),Object(r.a)(!R||!("size"in x),"AutoComplete","You need to control style self instead of setting `size` when using customize input.")},[]),d.createElement(u.a,null,function(P){var z=P.getPrefixCls,W=z("select",O);return d.createElement(h,p()({ref:F},Object(a.default)(x,["dataSource"]),{prefixCls:W,className:t()(E,"".concat(W,"-auto-complete")),mode:e.a.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:M}),X)})},b=d.forwardRef(v);b.Option=c,D.a=b},lwQL:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("9wZj"),A=i("c8qY"),m=i("SgGq"),f=i("Ae+d"),d=i("xSat"),l=d.onIrrelevantElement,o=i("IwbS"),n=i("SA8n"),t=i("U/Mo"),a=t.getNodeGlobalScale,e="__focusNodeAdjacency",u="__unfocusNodeAdjacency",r=["itemStyle","opacity"],s=["lineStyle","opacity"];function c(b,w){var x=b.getVisual("opacity");return x!=null?x:b.getModel().get(w)}function h(b,w,x){var T=b.getGraphicEl(),O=c(b,w);x!=null&&(O==null&&(O=1),O*=x),T.downplay&&T.downplay(),T.traverse(function(E){if(!E.isGroup){var C=E.lineLabelOriginalOpacity;(C==null||x!=null)&&(C=O),E.setStyle("opacity",C)}})}function g(b,w){var x=c(b,w),T=b.getGraphicEl();T.traverse(function(O){!O.isGroup&&O.setStyle("opacity",x)}),T.highlight&&T.highlight()}var v=y.extendChartView({type:"graph",init:function(b,w){var x=new S,T=new A,O=this.group;this._controller=new m(w.getZr()),this._controllerHost={target:O},O.add(x.group),O.add(T.group),this._symbolDraw=x,this._lineDraw=T,this._firstRender=!0},render:function(b,w,x){var T=this,O=b.coordinateSystem;this._model=b;var E=this._symbolDraw,C=this._lineDraw,I=this.group;if(O.type==="view"){var _={position:O.position,scale:O.scale};this._firstRender?I.attr(_):o.updateProps(I,_,b)}n(b.getGraph(),a(b));var F=b.getData();E.updateData(F);var R=b.getEdgeData();C.updateData(R),this._updateNodeAndLinkScale(),this._updateController(b,w,x),clearTimeout(this._layoutTimeout);var B=b.forceLayout,M=b.get("force.layoutAnimation");B&&this._startForceLayoutIteration(B,M),F.eachItemGraphicEl(function(W,U){var V=F.getItemModel(U);W.off("drag").off("dragend");var Q=V.get("draggable");Q&&W.on("drag",function(){B&&(B.warmUp(),!this._layouting&&this._startForceLayoutIteration(B,M),B.setFixed(U),F.setItemLayout(U,W.position))},this).on("dragend",function(){B&&B.setUnfixed(U)},this),W.setDraggable(Q&&B),W[e]&&W.off("mouseover",W[e]),W[u]&&W.off("mouseout",W[u]),V.get("focusNodeAdjacency")&&(W.on("mouseover",W[e]=function(){T._clearTimer(),x.dispatchAction({type:"focusNodeAdjacency",seriesId:b.id,dataIndex:W.dataIndex})}),W.on("mouseout",W[u]=function(){T._dispatchUnfocus(x)}))},this),F.graph.eachEdge(function(W){var U=W.getGraphicEl();U[e]&&U.off("mouseover",U[e]),U[u]&&U.off("mouseout",U[u]),W.getModel().get("focusNodeAdjacency")&&(U.on("mouseover",U[e]=function(){T._clearTimer(),x.dispatchAction({type:"focusNodeAdjacency",seriesId:b.id,edgeDataIndex:W.dataIndex})}),U.on("mouseout",U[u]=function(){T._dispatchUnfocus(x)}))});var X=b.get("layout")==="circular"&&b.get("circular.rotateLabel"),P=F.getLayout("cx"),z=F.getLayout("cy");F.eachItemGraphicEl(function(W,U){var V=F.getItemModel(U),Q=V.get("label.rotate")||0,G=W.getSymbolPath();if(X){var te=F.getItemLayout(U),$=Math.atan2(te[1]-z,te[0]-P);$<0&&($=Math.PI*2+$);var le=te[0]<P;le&&($=$-Math.PI);var re=le?"left":"right";o.modifyLabelStyle(G,{textRotation:-$,textPosition:re,textOrigin:"center"},{textPosition:re})}else o.modifyLabelStyle(G,{textRotation:Q*=Math.PI/180})}),this._firstRender=!1},dispose:function(){this._controller&&this._controller.dispose(),this._controllerHost={},this._clearTimer()},_dispatchUnfocus:function(b,w){var x=this;this._clearTimer(),this._unfocusDelayTimer=setTimeout(function(){x._unfocusDelayTimer=null,b.dispatchAction({type:"unfocusNodeAdjacency",seriesId:x._model.id})},500)},_clearTimer:function(){this._unfocusDelayTimer&&(clearTimeout(this._unfocusDelayTimer),this._unfocusDelayTimer=null)},focusNodeAdjacency:function(b,w,x,T){var O=b.getData(),E=O.graph,C=T.dataIndex,I=T.edgeDataIndex,_=E.getNodeByIndex(C),F=E.getEdgeByIndex(I);if(!_&&!F)return;E.eachNode(function(R){h(R,r,.1)}),E.eachEdge(function(R){h(R,s,.1)}),_&&(g(_,r),p.each(_.edges,function(R){if(R.dataIndex<0)return;g(R,s),g(R.node1,r),g(R.node2,r)})),F&&(g(F,s),g(F.node1,r),g(F.node2,r))},unfocusNodeAdjacency:function(b,w,x,T){var O=b.getData().graph;O.eachNode(function(E){h(E,r)}),O.eachEdge(function(E){h(E,s)})},_startForceLayoutIteration:function(b,w){var x=this;(function T(){b.step(function(O){x.updateLayout(x._model),(x._layouting=!O)&&(w?x._layoutTimeout=setTimeout(T,16):T())})})()},_updateController:function(b,w,x){var T=this._controller,O=this._controllerHost,E=this.group;if(T.setPointerChecker(function(C,I,_){var F=E.getBoundingRect();return F.applyTransform(E.transform),F.contain(I,_)&&!l(C,x,b)}),b.coordinateSystem.type!=="view"){T.disable();return}T.enable(b.get("roam")),O.zoomLimit=b.get("scaleLimit"),O.zoom=b.coordinateSystem.getZoom(),T.off("pan").off("zoom").on("pan",function(C){f.updateViewOnPan(O,C.dx,C.dy),x.dispatchAction({seriesId:b.id,type:"graphRoam",dx:C.dx,dy:C.dy})}).on("zoom",function(C){f.updateViewOnZoom(O,C.scale,C.originX,C.originY),x.dispatchAction({seriesId:b.id,type:"graphRoam",zoom:C.scale,originX:C.originX,originY:C.originY}),this._updateNodeAndLinkScale(),n(b.getGraph(),a(b)),this._lineDraw.updateLayout()},this)},_updateNodeAndLinkScale:function(){var b=this._model,w=b.getData(),x=a(b),T=[x,x];w.eachItemGraphicEl(function(O,E){O.attr("scale",T)})},updateLayout:function(b){n(b.getGraph(),a(b)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},remove:function(b,w){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()}});k.exports=v},m9t5:function(k,D,i){var y=i("KCsZ"),p=y([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),S={getAreaStyle:function(A,m){return p(this,A,m)}};k.exports=S},mBDr:function(k,D,i){"use strict";i.d(D,"a",function(){return S});var y=i("q1tI"),p=i.n(y);function S(A){var m=y.useRef();m.current=A;var f=y.useCallback(function(){for(var d,l=arguments.length,o=new Array(l),n=0;n<l;n++)o[n]=arguments[n];return(d=m.current)===null||d===void 0?void 0:d.call.apply(d,[m].concat(o))},[]);return f}},mFDi:function(k,D,i){var y=i("QBsz"),p=i("Fofx"),S=y.applyTransform,A=Math.min,m=Math.max;function f(l,o,n,t){n<0&&(l=l+n,n=-n),t<0&&(o=o+t,t=-t),this.x=l,this.y=o,this.width=n,this.height=t}f.prototype={constructor:f,union:function(o){var n=A(o.x,this.x),t=A(o.y,this.y);this.width=m(o.x+o.width,this.x+this.width)-n,this.height=m(o.y+o.height,this.y+this.height)-t,this.x=n,this.y=t},applyTransform:function(){var l=[],o=[],n=[],t=[];return function(a){if(!a)return;l[0]=n[0]=this.x,l[1]=t[1]=this.y,o[0]=t[0]=this.x+this.width,o[1]=n[1]=this.y+this.height,S(l,l,a),S(o,o,a),S(n,n,a),S(t,t,a),this.x=A(l[0],o[0],n[0],t[0]),this.y=A(l[1],o[1],n[1],t[1]);var e=m(l[0],o[0],n[0],t[0]),u=m(l[1],o[1],n[1],t[1]);this.width=e-this.x,this.height=u-this.y}}(),calculateTransform:function(o){var n=this,t=o.width/n.width,a=o.height/n.height,e=p.create();return p.translate(e,e,[-n.x,-n.y]),p.scale(e,e,[t,a]),p.translate(e,e,[o.x,o.y]),e},intersect:function(o){if(!o)return!1;o instanceof f||(o=f.create(o));var n=this,t=n.x,a=n.x+n.width,e=n.y,u=n.y+n.height,r=o.x,s=o.x+o.width,c=o.y,h=o.y+o.height;return!(a<r||s<t||u<c||h<e)},contain:function(o,n){var t=this;return o>=t.x&&o<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},clone:function(){return new f(this.x,this.y,this.width,this.height)},copy:function(o){this.x=o.x,this.y=o.y,this.width=o.width,this.height=o.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},f.create=function(l){return new f(l.x,l.y,l.width,l.height)};var d=f;k.exports=d},mHUz:function(k,D,i){"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(k,D){var i=typeof window!="undefined"&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(y){setTimeout(y,16)};k.exports=i},"mO/d":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("I9Y+"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},mOdp:function(k,D,i){var y=i("bYtY"),p=y.createHashMap;function S(A){return{getTargetSeries:function(m){var f={},d=p();return m.eachSeriesByType(A,function(l){l.__paletteScope=f,d.set(l.uid,l)}),d},reset:function(m,f){var d=m.getRawData(),l={},o=m.getData();o.each(function(n){var t=o.getRawIndex(n);l[t]=n}),d.each(function(n){var t=l[n],a=t!=null&&o.getItemVisual(t,"color",!0),e=t!=null&&o.getItemVisual(t,"borderColor",!0),u;if((!a||!e)&&(u=d.getItemModel(n)),!a){var r=u.get("itemStyle.color")||m.getColorFromPalette(d.getName(n)||n+"",m.__paletteScope,d.count());t!=null&&o.setItemVisual(t,"color",r)}if(!e){var s=u.get("itemStyle.borderColor");t!=null&&o.setItemVisual(t,"borderColor",s)}})}}}k.exports=S},mTgk:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("mHUz"));function p(l){return l&&l.__esModule?l:{default:l}}var S={};function A(l,o){if(o===void 0)throw new Error('Undefined keysym for key "'+l+'"');if(l in S)throw new Error('Duplicate entry for key "'+l+'"');S[l]=[o,o,o,o]}function m(l,o,n){if(o===void 0)throw new Error('Undefined keysym for key "'+l+'"');if(n===void 0)throw new Error('Undefined keysym for key "'+l+'"');if(l in S)throw new Error('Duplicate entry for key "'+l+'"');S[l]=[o,o,n,o]}function f(l,o,n){if(o===void 0)throw new Error('Undefined keysym for key "'+l+'"');if(n===void 0)throw new Error('Undefined keysym for key "'+l+'"');if(l in S)throw new Error('Duplicate entry for key "'+l+'"');S[l]=[o,o,o,n]}m("Alt",y.default.XK_Alt_L,y.default.XK_Alt_R),A("AltGraph",y.default.XK_ISO_Level3_Shift),A("CapsLock",y.default.XK_Caps_Lock),m("Control",y.default.XK_Control_L,y.default.XK_Control_R),m("Meta",y.default.XK_Super_L,y.default.XK_Super_R),A("NumLock",y.default.XK_Num_Lock),A("ScrollLock",y.default.XK_Scroll_Lock),m("Shift",y.default.XK_Shift_L,y.default.XK_Shift_R),f("Enter",y.default.XK_Return,y.default.XK_KP_Enter),A("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),A("Backspace",y.default.XK_BackSpace),f("Clear",y.default.XK_Clear,y.default.XK_KP_Begin),A("Copy",y.default.XF86XK_Copy),A("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),A("Paste",y.default.XF86XK_Paste),A("Redo",y.default.XK_Redo),A("Undo",y.default.XK_Undo),A("Cancel",y.default.XK_Cancel),A("ContextMenu",y.default.XK_Menu),A("Escape",y.default.XK_Escape),A("Execute",y.default.XK_Execute),A("Find",y.default.XK_Find),A("Help",y.default.XK_Help),A("Pause",y.default.XK_Pause),A("Select",y.default.XK_Select),A("ZoomIn",y.default.XF86XK_ZoomIn),A("ZoomOut",y.default.XF86XK_ZoomOut),A("BrightnessDown",y.default.XF86XK_MonBrightnessDown),A("BrightnessUp",y.default.XF86XK_MonBrightnessUp),A("Eject",y.default.XF86XK_Eject),A("LogOff",y.default.XF86XK_LogOff),A("Power",y.default.XF86XK_PowerOff),A("PowerOff",y.default.XF86XK_PowerDown),A("PrintScreen",y.default.XK_Print),A("Hibernate",y.default.XF86XK_Hibernate),A("Standby",y.default.XF86XK_Standby),A("WakeUp",y.default.XF86XK_WakeUp),A("AllCandidates",y.default.XK_MultipleCandidate),A("Alphanumeric",y.default.XK_Eisu_Shift),A("CodeInput",y.default.XK_Codeinput),A("Compose",y.default.XK_Multi_key),A("Convert",y.default.XK_Henkan),A("GroupFirst",y.default.XK_ISO_First_Group),A("GroupLast",y.default.XK_ISO_Last_Group),A("GroupNext",y.default.XK_ISO_Next_Group),A("GroupPrevious",y.default.XK_ISO_Prev_Group),A("NonConvert",y.default.XK_Muhenkan),A("PreviousCandidate",y.default.XK_PreviousCandidate),A("SingleCandidate",y.default.XK_SingleCandidate),A("HangulMode",y.default.XK_Hangul),A("HanjaMode",y.default.XK_Hangul_Hanja),A("JunjuaMode",y.default.XK_Hangul_Jeonja),A("Eisu",y.default.XK_Eisu_toggle),A("Hankaku",y.default.XK_Hankaku),A("Hiragana",y.default.XK_Hiragana),A("HiraganaKatakana",y.default.XK_Hiragana_Katakana),A("KanaMode",y.default.XK_Kana_Shift),A("KanjiMode",y.default.XK_Kanji),A("Katakana",y.default.XK_Katakana),A("Romaji",y.default.XK_Romaji),A("Zenkaku",y.default.XK_Zenkaku),A("ZenkakuHanaku",y.default.XK_Zenkaku_Hankaku),A("F1",y.default.XK_F1),A("F2",y.default.XK_F2),A("F3",y.default.XK_F3),A("F4",y.default.XK_F4),A("F5",y.default.XK_F5),A("F6",y.default.XK_F6),A("F7",y.default.XK_F7),A("F8",y.default.XK_F8),A("F9",y.default.XK_F9),A("F10",y.default.XK_F10),A("F11",y.default.XK_F11),A("F12",y.default.XK_F12),A("F13",y.default.XK_F13),A("F14",y.default.XK_F14),A("F15",y.default.XK_F15),A("F16",y.default.XK_F16),A("F17",y.default.XK_F17),A("F18",y.default.XK_F18),A("F19",y.default.XK_F19),A("F20",y.default.XK_F20),A("F21",y.default.XK_F21),A("F22",y.default.XK_F22),A("F23",y.default.XK_F23),A("F24",y.default.XK_F24),A("F25",y.default.XK_F25),A("F26",y.default.XK_F26),A("F27",y.default.XK_F27),A("F28",y.default.XK_F28),A("F29",y.default.XK_F29),A("F30",y.default.XK_F30),A("F31",y.default.XK_F31),A("F32",y.default.XK_F32),A("F33",y.default.XK_F33),A("F34",y.default.XK_F34),A("F35",y.default.XK_F35),A("Close",y.default.XF86XK_Close),A("MailForward",y.default.XF86XK_MailForward),A("MailReply",y.default.XF86XK_Reply),A("MailSend",y.default.XF86XK_Send),A("MediaFastForward",y.default.XF86XK_AudioForward),A("MediaPause",y.default.XF86XK_AudioPause),A("MediaPlay",y.default.XF86XK_AudioPlay),A("MediaRecord",y.default.XF86XK_AudioRecord),A("MediaRewind",y.default.XF86XK_AudioRewind),A("MediaStop",y.default.XF86XK_AudioStop),A("MediaTrackNext",y.default.XF86XK_AudioNext),A("MediaTrackPrevious",y.default.XF86XK_AudioPrev),A("New",y.default.XF86XK_New),A("Open",y.default.XF86XK_Open),A("Print",y.default.XK_Print),A("Save",y.default.XF86XK_Save),A("SpellCheck",y.default.XF86XK_Spell),A("AudioVolumeDown",y.default.XF86XK_AudioLowerVolume),A("AudioVolumeUp",y.default.XF86XK_AudioRaiseVolume),A("AudioVolumeMute",y.default.XF86XK_AudioMute),A("MicrophoneVolumeMute",y.default.XF86XK_AudioMicMute),A("LaunchApplication1",y.default.XF86XK_MyComputer),A("LaunchApplication2",y.default.XF86XK_Calculator),A("LaunchCalendar",y.default.XF86XK_Calendar),A("LaunchMail",y.default.XF86XK_Mail),A("LaunchMediaPlayer",y.default.XF86XK_AudioMedia),A("LaunchMusicPlayer",y.default.XF86XK_Music),A("LaunchPhone",y.default.XF86XK_Phone),A("LaunchScreenSaver",y.default.XF86XK_ScreenSaver),A("LaunchSpreadsheet",y.default.XF86XK_Excel),A("LaunchWebBrowser",y.default.XF86XK_WWW),A("LaunchWebCam",y.default.XF86XK_WebCam),A("LaunchWordProcessor",y.default.XF86XK_Word),A("BrowserBack",y.default.XF86XK_Back),A("BrowserFavorites",y.default.XF86XK_Favorites),A("BrowserForward",y.default.XF86XK_Forward),A("BrowserHome",y.default.XF86XK_HomePage),A("BrowserRefresh",y.default.XF86XK_Refresh),A("BrowserSearch",y.default.XF86XK_Search),A("BrowserStop",y.default.XF86XK_Stop),A("Dimmer",y.default.XF86XK_BrightnessAdjust),A("MediaAudioTrack",y.default.XF86XK_AudioCycleTrack),A("RandomToggle",y.default.XF86XK_AudioRandomPlay),A("SplitScreenToggle",y.default.XF86XK_SplitScreen),A("Subtitle",y.default.XF86XK_Subtitle),A("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(k,D,i){var y=i("bYtY"),p=i("IwbS"),S=i("6GrX"),A=Math.PI;function m(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 p.Group,o=new p.Rect({style:{fill:d.maskColor},zlevel:d.zlevel,z:1e4});l.add(o);var n=d.fontSize+" sans-serif",t=new p.Rect({style:{fill:"none",text:d.text,font:n,textPosition:"right",textDistance:10,textFill:d.textColor},zlevel:d.zlevel,z:10001});if(l.add(t),d.showSpinner){var a=new p.Arc({shape:{startAngle:-A/2,endAngle:-A/2+.1,r:d.spinnerRadius},style:{stroke:d.color,lineCap:"round",lineWidth:d.lineWidth},zlevel:d.zlevel,z:10001});a.animateShape(!0).when(1e3,{endAngle:A*3/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:A*3/2}).delay(300).start("circularInOut"),l.add(a)}return l.resize=function(){var e=S.getWidth(d.text,n),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&&a.setShape({cx:r,cy:s}),t.setShape({x:r-u,y:s-u,width:u*2,height:u*2}),o.setShape({x:0,y:0,width:f.getWidth(),height:f.getHeight()})},l.resize(),l}k.exports=m},mdPL:function(k,D,i){(function(y){var p=i("WFqU"),S=D&&!D.nodeType&&D,A=S&&typeof y=="object"&&y&&!y.nodeType&&y,m=A&&A.exports===S,f=m&&p.process,d=function(){try{var l=A&&A.require&&A.require("util").types;return l||f&&f.binding&&f.binding("util")}catch(o){}}();y.exports=d}).call(this,i("YuTi")(k))},mdZa:function(k,D,i){"use strict";typeof Object.assign!="function"&&Object.defineProperty(Object,"assign",{value:function(p,S){"use strict";if(p==null)throw new TypeError("Cannot convert undefined or null to object");for(var A=Object(p),m=1;m<arguments.length;m++){var f=arguments[m];if(f!=null)for(var d in f)Object.prototype.hasOwnProperty.call(f,d)&&(A[d]=f[d])}return A},writable:!0,configurable:!0}),function(){function y(p,S){S=S||{bubbles:!1,cancelable:!1,detail:void 0};var A=document.createEvent("CustomEvent");return A.initCustomEvent(p,S.bubbles,S.cancelable,S.detail),A}y.prototype=window.Event.prototype,typeof window.CustomEvent!="function"&&(window.CustomEvent=y)}(),Number.isInteger=Number.isInteger||function(p){return typeof p=="number"&&isFinite(p)&&Math.floor(p)===p}},mr32:function(k,D,i){"use strict";var y=i("lSNA"),p=i.n(y),S=i("pVnL"),A=i.n(S),m=i("J4zp"),f=i.n(m),d=i("q1tI"),l=i("TSYQ"),o=i.n(l),n=i("BGR+"),t=i("V/uB"),a=i.n(t),e=i("H84U"),u=function(O,E){var C={};for(var I in O)Object.prototype.hasOwnProperty.call(O,I)&&E.indexOf(I)<0&&(C[I]=O[I]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,I=Object.getOwnPropertySymbols(O);_<I.length;_++)E.indexOf(I[_])<0&&Object.prototype.propertyIsEnumerable.call(O,I[_])&&(C[I[_]]=O[I[_]]);return C},r=function(E){var C,I=d.useContext(e.b),_=I.getPrefixCls,F=function(U){var V=E.checked,Q=E.onChange,G=E.onClick;Q&&Q(!V),G&&G(U)},R=E.prefixCls,B=E.className,M=E.checked,X=u(E,["prefixCls","className","checked"]),P=_("tag",R),z=o()(P,(C={},p()(C,"".concat(P,"-checkable"),!0),p()(C,"".concat(P,"-checkable-checked"),M),C),B);return delete X.onChange,d.createElement("span",A()({},X,{className:z,onClick:F}))},s=r,c=i("09Wf"),h=i("g0mS"),g=function(O,E){var C={};for(var I in O)Object.prototype.hasOwnProperty.call(O,I)&&E.indexOf(I)<0&&(C[I]=O[I]);if(O!=null&&typeof Object.getOwnPropertySymbols=="function")for(var _=0,I=Object.getOwnPropertySymbols(O);_<I.length;_++)E.indexOf(I[_])<0&&Object.prototype.propertyIsEnumerable.call(O,I[_])&&(C[I[_]]=O[I[_]]);return C},v=new RegExp("^(".concat(c.a.join("|"),")(-inverse)?$")),b=new RegExp("^(".concat(c.b.join("|"),")$")),w=function(E,C){var I,_=E.prefixCls,F=E.className,R=E.style,B=E.children,M=E.icon,X=E.color,P=E.onClose,z=E.closeIcon,W=E.closable,U=W===void 0?!1:W,V=g(E,["prefixCls","className","style","children","icon","color","onClose","closeIcon","closable"]),Q=d.useContext(e.b),G=Q.getPrefixCls,te=Q.direction,$=d.useState(!0),le=f()($,2),re=le[0],Se=le[1];d.useEffect(function(){"visible"in V&&Se(V.visible)},[V.visible]);var Re=function(){return X?v.test(X)||b.test(X):!1},Pe=A()({backgroundColor:X&&!Re()?X:void 0},R),Je=Re(),Ve=G("tag",_),ct=o()(Ve,(I={},p()(I,"".concat(Ve,"-").concat(X),Je),p()(I,"".concat(Ve,"-has-color"),X&&!Je),p()(I,"".concat(Ve,"-hidden"),!re),p()(I,"".concat(Ve,"-rtl"),te==="rtl"),I),F),Ue=function(be){if(be.stopPropagation(),P&&P(be),be.defaultPrevented)return;"visible"in V||Se(!1)},ue=function(){return U?z?d.createElement("div",{className:"".concat(Ve,"-close-icon"),onClick:Ue},z):d.createElement(a.a,{className:"".concat(Ve,"-close-icon"),onClick:Ue}):null},rt="onClick"in V||B&&B.type==="a",ge=Object(n.default)(V,["visible"]),Z=M||null,Y=Z?d.createElement(d.Fragment,null,Z,d.createElement("span",null,B)):B,ee=d.createElement("span",A()({},ge,{ref:C,className:ct,style:Pe}),Y,ue());return rt?d.createElement(h.a,null,ee):ee},x=d.forwardRef(w);x.displayName="Tag",x.CheckableTag=s;var T=D.a=x},mxV5:function(module,exports,__webpack_require__){(function(global){var require,require;(function(k){if(!0)module.exports=k();else var D})(function(){var define,module,exports;return function(){function k(D,i,y){function p(m,f){if(!i[m]){if(!D[m]){var d=typeof require=="function"&&require;if(!f&&d)return require(m,!0);if(S)return S(m,!0);var l=new Error("Cannot find module '"+m+"'");throw l.code="MODULE_NOT_FOUND",l}var o=i[m]={exports:{}};D[m][0].call(o.exports,function(n){var t=D[m][1][n];return p(t||n)},o,o.exports,k,D,i,y)}return i[m].exports}for(var S=typeof require=="function"&&require,A=0;A<y.length;A++)p(y[A]);return p}return k}()({1:[function(k,D,i){"use strict";var y=k("./browser/client");y.Buffer=k("buffer").Buffer,y.urllib=k("../shims/xhr"),y.version=k("./browser/version").version,D.exports=y},{"../shims/xhr":291,"./browser/client":2,"./browser/version":5,buffer:73}],2:[function(k,D,i){(function(y,p){"use strict";var S=k("babel-runtime/core-js/promise"),A=o(S),m=k("babel-runtime/regenerator"),f=o(m),d=k("babel-runtime/core-js/object/assign"),l=o(d);function o(M){return M&&M.__esModule?M:{default:M}}var n=k("debug")("ali-oss"),t=k("copy-to"),a=k("xml2js"),e=k("agentkeepalive"),u=k("merge-descriptors"),r=k("url"),s=k("is-type-of"),c=k("platform"),h=k("utility"),g=k("urllib"),v=k("./version"),b=k("bowser"),w=k("../common/signUtils"),x=k("../common/utils/isIP"),T=x.isIP,O=k("../common/client/initOptions"),E=k("../common/utils/createRequest"),C=E.createRequest,I=new e;function _(){var M=c.name,X=c.version;M&&M.toLowerCase&&M.toLowerCase()==="ie"&&X.split(".")[0]<10&&console.warn("ali-oss does not support the current browser")}function F(){return location&&location.protocol==="https:"}function R(M,X){if(_(),!(this instanceof R))return new R(M,X);M&&M.inited?this.options=M:this.options=R.initOptions(M),this.options.cancelFlag=!1,this.options.urllib?this.urllib=this.options.urllib:(this.urllib=g,this.agent=this.options.agent||I),this.ctx=X,this.userAgent=this._getUserAgent(),this.options.amendTimeSkewed=0}D.exports=R,R.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 P=(0,l.default)({secure:F(),useFetch:!1},X);return O(P)};var B=R.prototype;B.debug=n,u(B,k("./object")),u(B,k("../common/bucket/getBucketWebsite")),u(B,k("../common/bucket/putBucketWebsite")),u(B,k("../common/bucket/deleteBucketWebsite")),u(B,k("../common/bucket/getBucketLifecycle")),u(B,k("../common/bucket/putBucketLifecycle")),u(B,k("../common/bucket/deleteBucketLifecycle")),u(B,k("../common/bucket/putBucketVersioning")),u(B,k("../common/bucket/getBucketVersioning")),u(B,k("./managed-upload")),u(B,k("../common/multipart")),u(B,k("../common/parallel")),B.signature=function(X){return this.debug("authorization stringToSign: %s",X,"info"),w.computeSignature(this.options.accessKeySecret,X)},B.authorization=function(X,P,z,W){var U=w.buildCanonicalString(X.toUpperCase(),P,{headers:W,parameters:z});return w.authorization(this.options.accessKeyId,this.options.accessKeySecret,U)},B.request=function(X){var P,z,W,U,V,Q;return f.default.async(function(te){for(;;)switch(te.prev=te.next){case 0:return P=C.call(this,X),this.options.useFetch||(P.params.mode="disable-fetch"),z=void 0,W=void 0,U=!!X.stream,te.prev=5,te.next=8,f.default.awrap(this.urllib.request(P.url,P.params));case 8:z=te.sent,this.debug("response %s %s, got %s, headers: %j",X.method,P.url,z.status,z.headers,"info"),te.next=15;break;case 12:te.prev=12,te.t0=te.catch(5),W=te.t0;case 15:if(V=void 0,!(z&&X.successStatuses&&X.successStatuses.indexOf(z.status)===-1)){te.next=28;break}return te.next=19,f.default.awrap(this.requestError(z));case 19:if(V=te.sent,!(V.code==="RequestTimeTooSkewed"&&!U)){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(!W){te.next=32;break}return te.next=31,f.default.awrap(this.requestError(W));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(z.data));case 37:Q=te.sent,z.data=Q;case 39:return te.abrupt("return",z);case 40:case"end":return te.stop()}},null,this,[[5,12]])},B._getResource=function(X){var P="/";return X.bucket&&(P+=X.bucket+"/"),X.object&&(P+=X.object),P},B._isIP=T,B._escape=function(X){return h.encodeURIComponent(X).replace(/%2F/g,"/")},B._getReqUrl=function(X){var P={};t(this.options.endpoint).to(P);var z=this._isIP(P.hostname),W=this.options.cname;X.bucket&&!W&&!z&&(P.host=X.bucket+"."+P.host);var U="/";X.bucket&&z&&(U+=X.bucket+"/"),X.object&&(U+=this._escape(X.object).replace(/\+/g,"%2B")),P.pathname=U;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 P.query=V,r.format(P)},B._getUserAgent=function(){var X=p&&p.browser?"js":"nodejs",P="aliyun-sdk-"+X+"/"+v.version,z=c.description;return!z&&p&&(z="Node.js "+p.version.slice(1)+" on "+p.platform+" "+p.arch),this._checkUserAgent(P+" "+z)},B._checkUserAgent=function(X){var P=X.replace(/\u03b1/,"alpha").replace(/\u03b2/,"beta");return P},B.checkBrowserAndVersion=function(X,P){return b.name===X&&b.version.split(".")[0]===P},B.parseXML=function(X){return new A.default(function(P,z){y.isBuffer(X)&&(X=X.toString()),a.parseString(X,{explicitRoot:!1,explicitArray:!1},function(W,U){W?z(W):P(U)})})},B.requestError=function(X){var P,z,W,U;return f.default.async(function(Q){for(;;)switch(Q.prev=Q.next){case 0:if(P=null,!(!X.data||!X.data.length)){Q.next=5;break}X.status===-1||X.status===-2?(P=new Error(X.message),P.name=X.name,P.status=X.status,P.code=X.name):(X.status===404?(P=new Error("Object not exists"),P.name="NoSuchKeyError",P.status=404,P.code="NoSuchKey"):X.status===412?(P=new Error("Pre condition failed"),P.name="PreconditionFailedError",P.status=412,P.code="PreconditionFailed"):(P=new Error("Unknow error, status: "+X.status),P.name="UnknowError",P.status=X.status),P.requestId=X.headers["x-oss-request-id"],P.host=""),Q.next=33;break;case 5:return z=String(X.data),this.debug("request response error data: %s",z,"error"),W=void 0,Q.prev=8,Q.next=11,f.default.awrap(this.parseXML(z));case 11:if(Q.t0=Q.sent,Q.t0){Q.next=14;break}Q.t0={};case 14:W=Q.t0,Q.next=24;break;case 17:return Q.prev=17,Q.t1=Q.catch(8),this.debug(z,"error"),Q.t1.message+=`
raw xml: `+z,Q.t1.status=X.status,Q.t1.requestId=X.headers["x-oss-request-id"],Q.abrupt("return",Q.t1);case 24:U=W.Message||"unknow request error, status: "+X.status,W.Condition&&(U+=" (condition: "+W.Condition+")"),P=new Error(U),P.name=W.Code?W.Code+"Error":"UnknowError",P.status=X.status,P.code=W.Code,P.requestId=W.RequestId,P.hostId=W.HostId,P.serverTime=W.ServerTime;case 33:return this.debug("generate error %j",P,"error"),Q.abrupt("return",P);case 35:case"end":return Q.stop()}},null,this,[[8,17]])}}).call(this,{isBuffer:k("../../node_modules/is-buffer/index.js")},k("_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(k,D,i){(function(y){"use strict";var p=k("babel-runtime/core-js/array/from"),S=l(p),A=k("babel-runtime/core-js/promise"),m=l(A),f=k("babel-runtime/regenerator"),d=l(f);function l(w){return w&&w.__esModule?w:{default:w}}var o=k("is-type-of"),n=k("util"),t=k("path"),a=k("mime"),e=k("copy-to"),u=k("../common/utils/isBlob"),r=u.isBlob,s=k("../common/utils/isFile"),c=s.isFile,h=i;h.multipartUpload=function(x,T,O){var E,C,I,_,F,R,B,M,X;return d.default.async(function(z){for(;;)switch(z.prev=z.next){case 0:if(this.resetCancelFlag(),O=O||{},!(O.checkpoint&&O.checkpoint.uploadId)){z.next=6;break}return z.next=5,d.default.awrap(this._resumeMultipart(O.checkpoint,O));case 5:return z.abrupt("return",z.sent);case 6:return E=100*1024,O.mime||(c(T)?O.mime=a.getType(t.extname(T.name)):r(T)?O.mime=T.type:O.mime=a.getType(t.extname(T))),O.headers=O.headers||{},this._convertMetaToHeaders(O.meta,O.headers),z.next=12,d.default.awrap(this._getFileSize(T));case 12:if(C=z.sent,!(C<E)){z.next=25;break}return I=this._createStream(T,0,C),O.contentLength=C,z.next=18,d.default.awrap(this.putStream(x,I,O));case 18:if(_=z.sent,!(O&&O.progress)){z.next=22;break}return z.next=22,d.default.awrap(O.progress(1));case 22:return F={res:_.res,bucket:this.options.bucket,name:x,etag:_.res.headers.etag},(O.headers&&O.headers["x-oss-callback"]||O.callback)&&(F.data=_.data),z.abrupt("return",F);case 25:if(!(O.partSize&&!(parseInt(O.partSize,10)===O.partSize))){z.next=27;break}throw new Error("partSize must be int number");case 27:if(!(O.partSize&&O.partSize<E)){z.next=29;break}throw new Error("partSize must not be smaller than "+E);case 29:return z.next=31,d.default.awrap(this.initMultipartUpload(x,O));case 31:if(R=z.sent,B=R.uploadId,M=this._getPartSize(C,O.partSize),X={file:T,name:x,fileSize:C,partSize:M,uploadId:B,doneParts:[]},!(O&&O.progress)){z.next=38;break}return z.next=38,d.default.awrap(O.progress(0,X,R.res));case 38:return z.next=40,d.default.awrap(this._resumeMultipart(X,O));case 40:return z.abrupt("return",z.sent);case 41:case"end":return z.stop()}},null,this)},h._resumeMultipart=function(x,T){var O,E,C,I,_,F,R,B,M,X,P,z,W,U,V,Q,G,te;return d.default.async(function(le){for(;;)switch(le.prev=le.next){case 0:if(O=this,!this.isCancel()){le.next=3;break}throw this._makeCancelEvent();case 3:return E=x.file,C=x.fileSize,I=x.partSize,_=x.uploadId,F=x.doneParts,R=x.name,B=[],F.length>0&&e(F).to(B),M=this._divideParts(C,I),X=M.length,P=!1,z=function(Se,Re){var Pe=this;return new m.default(function(Ve,ct){var Ue,ue,rt,ge;return d.default.async(function(Y){for(;;)switch(Y.prev=Y.next){case 0:if(Y.prev=0,Se.isCancel()){Y.next=18;break}return Ue=M[Re-1],ue={stream:Se._createStream(E,Ue.start,Ue.end),size:Ue.end-Ue.start},Y.next=6,d.default.awrap(Se._uploadPart(R,_,Re,ue));case 6:if(rt=Y.sent,!(!Se.isCancel()&&!P)){Y.next=15;break}if(x.doneParts.push({number:Re,etag:rt.res.headers.etag}),!T.progress){Y.next=12;break}return Y.next=12,d.default.awrap(T.progress(F.length/X,x,rt.res));case 12:Ve({number:Re,etag:rt.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),ge=new Error,ge.name=Y.t0.name,ge.message=Y.t0.message,ge.stack=Y.t0.stack,ge.partNum=Re,e(Y.t0).to(ge),ct(ge);case 30:case"end":return Y.stop()}},null,Pe,[[0,21]])})},W=(0,S.default)(new Array(X),function(re,Se){return Se+1}),U=B.map(function(re){return re.number}),V=W.filter(function(re){return U.indexOf(re)<0}),Q=5,G=T.parallel||Q,le.next=17,d.default.awrap(this._parallel(V,G,function(re){return new m.default(function(Se,Re){z(O,re).then(function(Pe){Pe&&B.push(Pe),Se()}).catch(function(Pe){Re(Pe)})})}));case 17:if(te=le.sent,P=!0,!this.isCancel()){le.next=22;break}throw z=null,this._makeCancelEvent();case 22:if(!(te&&te.length>0)){le.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 le.next=27,d.default.awrap(this.completeMultipartUpload(R,_,B,T));case 27:return le.abrupt("return",le.sent);case 28:case"end":return le.stop()}},null,this)},h._getFileSize=function(x){return d.default.async(function(O){for(;;)switch(O.prev=O.next){case 0:if(!o.buffer(x)){O.next=4;break}return O.abrupt("return",x.length);case 4:if(!(r(x)||c(x))){O.next=6;break}return O.abrupt("return",x.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return O.stop()}},null,this)};var g=k("stream"),v=g.Readable;function b(w,x){if(!(this instanceof b))return new b(w,x);v.call(this,x),this.file=w,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}n.inherits(b,v),b.prototype.readFileAndPush=function(x){if(this.fileBuffer)for(var T=!0;T&&this.fileBuffer&&this.start<this.fileBuffer.length;){var O=this.start,E=O+x;E=E>this.fileBuffer.length?this.fileBuffer.length:E,this.start=E,T=this.push(this.fileBuffer.slice(O,E))}},b.prototype._read=function(x){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;x=x||T;var O=this;this.reader.onload=function(C){O.fileBuffer=y.from(new Uint8Array(C.target.result)),O.file=null,O.readFileAndPush(x)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(x)},h._createStream=function(x,T,O){if(r(x)||c(x))return new b(x.slice(T,O));throw new Error("_createStream requires File/Blob.")},h._getPartSize=function(x,T){var O=10*1e3,E=1024*1024;return T?Math.max(Math.ceil(x/O),T):E},h._divideParts=function(x,T){for(var O=Math.ceil(x/T),E=[],C=0;C<O;C++){var I=T*C,_=Math.min(I+T,x);E.push({start:I,end:_})}return E}}).call(this,k("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(k,D,i){"use strict";var y=k("babel-runtime/core-js/promise"),p=o(y),S=k("babel-runtime/core-js/object/keys"),A=o(S),m=k("babel-runtime/core-js/object/assign"),f=o(m),d=k("babel-runtime/regenerator"),l=o(d);function o(O){return O&&O.__esModule?O:{default:O}}var n=k("utility"),t=k("fs"),a=k("is-type-of"),e=k("url"),u=k("copy-to"),r=k("path"),s=k("mime"),c=k("../common/callback"),h=k("../common/signUtils"),g=k("merge-descriptors"),v=k("../common/utils/isBlob"),b=v.isBlob,w=k("../common/utils/isFile"),x=w.isFile,T=i;T.append=function(E,C,I){var _;return l.default.async(function(R){for(;;)switch(R.prev=R.next){case 0:return I=I||{},I.position===void 0&&(I.position="0"),I.subres={append:"",position:I.position},I.method="POST",R.next=6,l.default.awrap(this.put(E,C,I));case 6:return _=R.sent,_.nextAppendPosition=_.res.headers["x-oss-next-append-position"],R.abrupt("return",_);case 9:case"end":return R.stop()}},null,this)},T.put=function(E,C,I){var _,F,R,B,M,X,P;return l.default.async(function(W){for(;;)switch(W.prev=W.next){case 0:if(_=void 0,I=I||{},E=this._objectName(E),!a.buffer(C)){W.next=7;break}_=C,W.next=33;break;case 7:if(!(b(C)||x(C))){W.next=32;break}return I.mime||(x(C)?I.mime=s.getType(r.extname(C.name)):I.mime=C.type),F=this._createStream(C,0,C.size),W.next=12,l.default.awrap(this._getFileSize(C));case 12:return I.contentLength=W.sent,W.prev=13,W.next=16,l.default.awrap(this.putStream(E,F,I));case 16:return R=W.sent,W.abrupt("return",R);case 20:if(W.prev=20,W.t0=W.catch(13),!(W.t0.code==="RequestTimeTooSkewed")){W.next=29;break}return this.options.amendTimeSkewed=+new Date(W.t0.serverTime)-new Date,W.next=26,l.default.awrap(this.put(E,C,I));case 26:return W.abrupt("return",W.sent);case 29:throw W.t0;case 30:W.next=33;break;case 32:throw new TypeError("Must provide Buffer/Blob/File for put.");case 33:return I.headers=I.headers||{},this._convertMetaToHeaders(I.meta,I.headers),B=I.method||"PUT",M=this._objectRequestParams(B,E,I),c.encodeCallback(M,I),M.mime=I.mime,M.content=_,M.successStatuses=[200],W.next=43,l.default.awrap(this.request(M));case 43:return X=W.sent,P={name:E,url:this._objectUrl(E),res:X.res},M.headers&&M.headers["x-oss-callback"]&&(P.data=JSON.parse(X.data.toString())),W.abrupt("return",P);case 47:case"end":return W.stop()}},null,this,[[13,20]])},T.putStream=function(E,C,I){var _,F,R,B;return l.default.async(function(X){for(;;)switch(X.prev=X.next){case 0:return I=I||{},I.headers=I.headers||{},E=this._objectName(E),I.contentLength?I.headers["Content-Length"]=I.contentLength:I.headers["Transfer-Encoding"]="chunked",this._convertMetaToHeaders(I.meta,I.headers),_=I.method||"PUT",F=this._objectRequestParams(_,E,I),c.encodeCallback(F,I),F.mime=I.mime,F.stream=C,F.successStatuses=[200],X.next=13,l.default.awrap(this.request(F));case 13:return R=X.sent,B={name:E,url:this._objectUrl(E),res:R.res},F.headers&&F.headers["x-oss-callback"]&&(B.data=JSON.parse(R.data.toString())),X.abrupt("return",B);case 17:case"end":return X.stop()}},null,this)},g(T,k("../common/object/copyObject")),g(T,k("../common/object/getObjectTagging")),g(T,k("../common/object/putObjectTagging")),g(T,k("../common/object/deleteObjectTagging")),g(T,k("../common/image")),g(T,k("../common/object/getBucketVersions")),g(T,k("../common/object/getACL")),g(T,k("../common/object/putACL")),g(T,k("../common/object/head")),g(T,k("../common/object/delete")),g(T,k("../common/object/get")),g(T,k("../common/object/putSymlink")),g(T,k("../common/object/getSymlink")),g(T,k("../common/object/deleteMulti")),g(T,k("../common/object/getObjectMeta")),T.putMeta=function(E,C,I){var _;return l.default.async(function(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,l.default.awrap(this.copy(E,E,{meta:C||{},timeout:I&&I.timeout,ctx:I&&I.ctx}));case 2:return _=R.sent,R.abrupt("return",_);case 4:case"end":return R.stop()}},null,this)},T.list=function(E,C){var I,_,F,R,B;return l.default.async(function(X){for(;;)switch(X.prev=X.next){case 0:return I=this._objectRequestParams("GET","",C),I.query=E,I.xmlResponse=!0,I.successStatuses=[200],X.next=6,l.default.awrap(this.request(I));case 6:return _=X.sent,F=_.data.Contents,R=this,F&&(Array.isArray(F)||(F=[F]),F=F.map(function(P){return{name:P.Key,url:R._objectUrl(P.Key),lastModified:P.LastModified,etag:P.ETag,type:P.Type,size:Number(P.Size),storageClass:P.StorageClass,owner:{id:P.Owner.ID,displayName:P.Owner.DisplayName}}})),B=_.data.CommonPrefixes||null,B&&(Array.isArray(B)||(B=[B]),B=B.map(function(P){return P.Prefix})),X.abrupt("return",{res:_.res,objects:F,prefixes:B,nextMarker:_.data.NextMarker||null,isTruncated:_.data.IsTruncated==="true"});case 13:case"end":return X.stop()}},null,this)},T.restore=function(E,C){var I,_;return l.default.async(function(R){for(;;)switch(R.prev=R.next){case 0:return C=C||{},C.subres=(0,f.default)({restore:""},C.subres),C.versionId&&(C.subres.versionId=C.versionId),I=this._objectRequestParams("POST",E,C),I.successStatuses=[202],R.next=7,l.default.awrap(this.request(I));case 7:return _=R.sent,R.abrupt("return",{res:_.res});case 9:case"end":return R.stop()}},null,this)},T.signatureUrl=function(E,C){C=C||{},E=this._objectName(E),C.method=C.method||"GET";var I=n.timestamp()+(C.expires||1800),_={bucket:this.options.bucket,object:E},F=this._getResource(_);this.options.stsToken&&(C["security-token"]=this.options.stsToken);var R=h._signatureForURL(this.options.accessKeySecret,C,F,I),B=e.parse(this._getReqUrl(_));return B.query={OSSAccessKeyId:this.options.accessKeyId,Expires:I,Signature:R.Signature},u(R.subResource).to(B.query),B.format()},T.getObjectUrl=function(E,C){return C?C[C.length-1]!=="/"&&(C+="/"):C=this.options.endpoint.format(),C+this._escape(this._objectName(E))},T._objectUrl=function(E){return this._getReqUrl({bucket:this.options.bucket,object:E})},T.generateObjectUrl=function(O,E){if(E)E[E.length-1]!=="/"&&(E+="/");else{E=this.options.endpoint.format();var C=e.parse(E),I=this.options.bucket;C.hostname=I+"."+C.hostname,C.host=I+"."+C.host,E=C.format()}return E+this._escape(this._objectName(O))},T._objectRequestParams=function(E,C,I){if(!this.options.bucket)throw new Error("Please create a bucket first");I=I||{},C=this._objectName(C);var _={object:C,bucket:this.options.bucket,method:E,subres:I&&I.subres,timeout:I&&I.timeout,ctx:I&&I.ctx};return I.headers&&(_.headers={},u(I.headers).to(_.headers)),_},T._objectName=function(E){return E.replace(/^\/+/,"")},T._convertMetaToHeaders=function(E,C){if(!E)return;(0,A.default)(E).forEach(function(I){C["x-oss-meta-"+I]=E[I]})},T._deleteFileSafe=function(E){var C=this;return new p.default(function(I){t.exists(E,function(_){_?t.unlink(E,function(F){F&&C.debug("unlink %j error: %s",E,F,"error"),I()}):I()})})}},{"../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(k,D,i){"use strict";i.version="6.10.0"},{}],6:[function(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=S(y);function S(d){return d&&d.__esModule?d:{default:d}}var A=k("../utils/checkBucketName"),m=A.checkBucketName,f=i;f.deleteBucketLifecycle=function(l,o){var n,t;return p.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return m(l),n=this._bucketRequestParams("DELETE",l,"lifecycle",o),n.successStatuses=[204],e.next=5,p.default.awrap(this.request(n));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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=S(y);function S(d){return d&&d.__esModule?d:{default:d}}var A=k("../utils/checkBucketName"),m=A.checkBucketName,f=i;f.deleteBucketWebsite=function(l,o){var n,t;return p.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return m(l),n=this._bucketRequestParams("DELETE",l,"website",o),n.successStatuses=[204],e.next=5,p.default.awrap(this.request(n));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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=S(y);function S(t){return t&&t.__esModule?t:{default:t}}var A=k("../utils/checkBucketName"),m=A.checkBucketName,f=k("../utils/isArray"),d=f.isArray,l=k("../utils/formatObjKey"),o=l.formatObjKey,n=i;n.getBucketLifecycle=function(a,e){var u,r,s;return p.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return m(a),u=this._bucketRequestParams("GET",a,"lifecycle",e),u.successStatuses=[200],u.xmlResponse=!0,h.next=6,p.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(g){return g.ID&&(g.id=g.ID,delete g.ID),g.Tag&&!d(g.Tag)&&(g.Tag=[g.Tag]),o(g,"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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=S(y);function S(d){return d&&d.__esModule?d:{default:d}}var A=k("../utils/checkBucketName"),m=A.checkBucketName,f=i;f.getBucketVersioning=function(l,o){var n,t,a;return p.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return m(l),n=this._bucketRequestParams("GET",l,"versioning",o),n.xmlResponse=!0,n.successStatuses=[200],u.next=6,p.default.awrap(this.request(n));case 6:return t=u.sent,a=t.data.Status,u.abrupt("return",{status:t.status,versionStatus:a,res:t.res});case 9:case"end":return u.stop()}},null,this)}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68}],10:[function(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=S(y);function S(o){return o&&o.__esModule?o:{default:o}}var A=k("../utils/checkBucketName"),m=A.checkBucketName,f=k("../utils/isObject"),d=f.isObject,l=i;l.getBucketWebsite=function(n,t){var a,e,u;return p.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return m(n),a=this._bucketRequestParams("GET",n,"website",t),a.successStatuses=[200],a.xmlResponse=!0,s.next=6,p.default.awrap(this.request(a));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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=S(y);function S(x){return x&&x.__esModule?x:{default:x}}var A=k("../utils/checkBucketName"),m=A.checkBucketName,f=k("../utils/isArray"),d=f.isArray,l=k("../utils/deepCopy"),o=l.deepCopy,n=k("../utils/isObject"),t=n.isObject,a=k("../utils/obj2xml"),e=a.obj2xml,u=k("../utils/checkObjectTag"),r=u.checkObjectTag,s=k("../utils/getStrBytesCount"),c=s.getStrBytesCount,h=i;h.putBucketLifecycle=function(T,O,E){var C,I,_,F,R;return p.default.async(function(M){for(;;)switch(M.prev=M.next){case 0:if(m(T),d(O)){M.next=3;break}throw new Error("rules must be Array");case 3:return C=this._bucketRequestParams("PUT",T,"lifecycle",E),I=[],_={LifecycleConfiguration:{Rule:I}},O.forEach(function(X){g(X),w(X),X.id&&(X.ID=X.id,delete X.id),I.push(X)}),F=e(_,{headers:!0,firstUpperCase:!0}),C.content=F,C.mime="xml",C.successStatuses=[200],M.next=13,p.default.awrap(this.request(C));case 13:return R=M.sent,M.abrupt("return",{res:R.res});case 15:case"end":return M.stop()}},null,this)};function g(x){x.days&&(x.expiration={days:x.days}),x.date&&(x.expiration={createdBeforeDate:x.date})}function v(x,T){var O=x.days,E=x.createdBeforeDate;if(!O&&!E)throw new Error(T+" must includes days or createdBeforeDate");if(O&&!/^[1-9][0-9]*$/.test(O))throw new Error("days must be a positive integer");if(E&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(E))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function b(x){if(!d(x)&&!t(x))throw new Error("tag must be Object or Array");x=t(x)?[x]:x;var T={},O=o(x);O.forEach(function(E){T[E.key]=E.value}),r(T)}function w(x){if(x.id&&c(x.id)>255)throw new Error("ID is composed of 255 bytes at most");if(x.prefix===""||x.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(x.status))throw new Error("Status must be Enabled or Disabled");if(x.transition){if(!["IA","Archive"].includes(x.transition.storageClass))throw new Error("StorageClass must be IA or Archive");v(x.transition,"Transition")}if(x.expiration){if(!x.expiration.expiredObjectDeleteMarker)v(x.expiration,"Expiration");else if(x.expiration.days||x.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(x.abortMultipartUpload&&v(x.abortMultipartUpload,"AbortMultipartUpload"),!x.expiration&&!x.abortMultipartUpload&&!x.transition&&!x.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(x.tag){if(x.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");b(x.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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=S(y);function S(o){return o&&o.__esModule?o:{default:o}}var A=k("../utils/checkBucketName"),m=A.checkBucketName,f=k("../utils/obj2xml"),d=f.obj2xml,l=i;l.putBucketVersioning=function(n,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e,u,r;return p.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:if(m(n),["Enabled","Suspended"].includes(t)){c.next=3;break}throw new Error("status must be Enabled or Suspended");case 3:return e=this._bucketRequestParams("PUT",n,"versioning",a),u={VersioningConfiguration:{Status:t}},e.mime="xml",e.content=d(u,{headers:!0}),c.next=9,p.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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=S(y);function S(t){return t&&t.__esModule?t:{default:t}}var A=k("../utils/checkBucketName"),m=A.checkBucketName,f=k("../utils/obj2xml"),d=f.obj2xml,l=k("../utils/isArray"),o=l.isArray,n=i;n.putBucketWebsite=function(a){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},u=arguments[2],r,s,c,h,g;return p.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:if(m(a),r=this._bucketRequestParams("PUT",a,"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(o(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,p.default.awrap(this.request(r));case 18:return g=b.sent,b.abrupt("return",{res:g.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(k,D,i){(function(y){"use strict";var p=k("babel-runtime/core-js/object/keys"),S=f(p),A=k("babel-runtime/core-js/json/stringify"),m=f(A);function f(d){return d&&d.__esModule?d:{default:d}}i.encodeCallback=function(l,o){if(l.headers=l.headers||{},!Object.prototype.hasOwnProperty.call(l.headers,"x-oss-callback")&&o.callback){var n={callbackUrl:encodeURI(o.callback.url),callbackBody:o.callback.body};o.callback.host&&(n.callbackHost=o.callback.host),o.callback.contentType&&(n.callbackBodyType=o.callback.contentType);var t=y.from((0,m.default)(n)).toString("base64");if(l.headers["x-oss-callback"]=t,o.callback.customValue){var a={};(0,S.default)(o.callback.customValue).forEach(function(e){a["x:"+e]=o.callback.customValue[e]}),l.headers["x-oss-callback-var"]=y.from((0,m.default)(a)).toString("base64")}}}}).call(this,k("buffer").Buffer)},{"babel-runtime/core-js/json/stringify":53,"babel-runtime/core-js/object/keys":60,buffer:73}],15:[function(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/assign"),p=S(y);function S(n){return n&&n.__esModule?n:{default:n}}var A=k("humanize-ms"),m=k("url"),f=k("../utils/checkBucketName"),d=f.checkBucketName;function l(n,t){var a=m.parse(n);if(a.protocol||(a=m.parse("http"+(t?"s":"")+"://"+n)),a.protocol!=="http:"&&a.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return a}function o(n,t,a){var e=a?"https://":"http://",u=t?"-internal.aliyuncs.com":".aliyuncs.com",r="vpc100-oss-cn-";return n.substr(0,r.length)===r&&(u=".aliyuncs.com"),m.parse(e+n+u)}D.exports=function(n){if(!n||!n.accessKeyId||!n.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");n.bucket&&d(n.bucket);var t=(0,p.default)({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1},n);if(t.accessKeyId=t.accessKeyId.trim(),t.accessKeySecret=t.accessKeySecret.trim(),t.timeout&&(t.timeout=A(t.timeout)),t.endpoint)t.endpoint=l(t.endpoint,t.secure);else if(t.region)t.endpoint=o(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(k,D,i){"use strict";var y=k("merge-descriptors"),p=i;y(p,k("./processObjectSave"))},{"./processObjectSave":17,"merge-descriptors":200}],17:[function(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=S(y);function S(t){return t&&t.__esModule?t:{default:t}}var A=k("../utils/checkBucketName"),m=A.checkBucketName,f=k("querystring"),d=k("js-base64"),l=d.Base64.encode,o=i;o.processObjectSave=function(a,e,u,r){var s,c,h,g;return p.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return n(a,"sourceObject"),n(e,"targetObject"),n(u,"process"),e=this._objectName(e),r&&m(r),s=this._objectRequestParams("POST",a,{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,p.default.awrap(this.request(s));case 12:return g=b.sent,b.abrupt("return",{res:g.res,status:g.res.status});case 14:case"end":return b.stop()}},null,this)};function n(t,a){if(!t)throw new Error(a+" is required");if(typeof t!="string")throw new Error(a+" must be String")}},{"../utils/checkBucketName":35,"babel-runtime/regenerator":68,"js-base64":199,querystring:212}],18:[function(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=S(y);function S(o){return o&&o.__esModule?o:{default:o}}var A=k("copy-to"),m=k("./callback"),f=k("./utils/deepCopy"),d=f.deepCopy,l=i;l.listUploads=function(n,t){var a,e,u,r;return p.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return t=t||{},a={},A(t).to(a),a.subres="uploads",e=this._objectRequestParams("GET","",a),e.query=n,e.xmlResponse=!0,e.successStatuses=[200],c.next=10,p.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(n,t,a,e){var u,r,s;return p.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return e=e||{},u={},A(e).to(u),u.subres={uploadId:t},r=this._objectRequestParams("GET",n,u),r.query=a,r.xmlResponse=!0,r.successStatuses=[200],h.next=10,p.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(n,t,a){var e,u,r;return p.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return this._stop(),a=a||{},e={},A(a).to(e),e.subres={uploadId:t},u=this._objectRequestParams("DELETE",n,e),u.successStatuses=[204],c.next=9,p.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(n,t){var a,e,u;return p.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return t=t||{},a={},A(t).to(a),a.headers=a.headers||{},this._convertMetaToHeaders(t.meta,a.headers),a.subres="uploads",e=this._objectRequestParams("POST",n,a),e.mime=t.mime,e.xmlResponse=!0,e.successStatuses=[200],s.next=12,p.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(n,t,a,e,u,r,s){var c;return p.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return c={stream:this._createStream(e,u,r),size:r-u},g.next=3,p.default.awrap(this._uploadPart(n,t,a,c,s));case 3:return g.abrupt("return",g.sent);case 4:case"end":return g.stop()}},null,this)},l.completeMultipartUpload=function(n,t,a,e){var u,r,s,c,h,g,v,b;return p.default.async(function(x){for(;;)switch(x.prev=x.next){case 0:for(u=a.concat().sort(function(T,O){return T.number-O.number}).filter(function(T,O,E){return!O||T.number!==E[O-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},g=this._objectRequestParams("POST",n,h),m.encodeCallback(g,h),g.mime="xml",g.content=r,g.headers&&g.headers["x-oss-callback"]||(g.xmlResponse=!0),g.successStatuses=[200],x.next=17,p.default.awrap(this.request(g));case 17:return v=x.sent,b={res:v.res,bucket:g.bucket,name:n,etag:v.res.headers.etag},g.headers&&g.headers["x-oss-callback"]&&(b.data=JSON.parse(v.data.toString())),x.abrupt("return",b);case 21:case"end":return x.stop()}},null,this)},l._uploadPart=function(n,t,a,e,u){var r,s,c;return p.default.async(function(g){for(;;)switch(g.prev=g.next){case 0:return u=u||{},r={},A(u).to(r),r.headers={"Content-Length":e.size},r.subres={partNumber:a,uploadId:t},s=this._objectRequestParams("PUT",n,r),s.mime=r.mime,s.stream=e.stream,s.successStatuses=[200],g.next=11,p.default.awrap(this.request(s));case 11:if(c=g.sent,c.res.headers.etag){g.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,g.abrupt("return",{name:n,etag:c.res.headers.etag,res:c.res});case 17:case"end":return g.stop()}},null,this)}},{"./callback":14,"./utils/deepCopy":39,"babel-runtime/regenerator":68,"copy-to":76}],19:[function(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=d(y),S=k("babel-runtime/core-js/object/keys"),A=d(S),m=k("babel-runtime/helpers/typeof"),f=d(m);function d(t){return t&&t.__esModule?t:{default:t}}var l=k("../utils/checkBucketName"),o=l.checkBucketName,n=i;n.copy=function(a,e,u,r){var s,c,h;return p.default.async(function(v){for(;;)switch(v.prev=v.next){case 0:return(typeof u=="undefined"?"undefined":(0,f.default)(u))==="object"&&(r=u),r=r||{},r.headers=r.headers||{},(0,A.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",a,r),s.xmlResponse=!0,s.successStatuses=[200,304],v.next=14,p.default.awrap(this.request(s));case 14:return c=v.sent,h=c.data,h&&(h={etag:h.ETag,lastModified:h.LastModified}),v.abrupt("return",{data:h,res:c.res});case 18:case"end":return v.stop()}},null,this)},n._getSourceName=function(a,e){return typeof e=="string"?a=this._objectName(a):a[0]!=="/"?e=this.options.bucket:(e=a.replace(/\/(.+?)(\/.*)/,"$1"),a=a.replace(/(\/.+?\/)(.*)/,"$2")),o(e),a=encodeURI(a),a="/"+e+"/"+a,a}},{"../utils/checkBucketName":35,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,"babel-runtime/regenerator":68}],20:[function(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),S=k("babel-runtime/core-js/object/assign"),A=m(S);function m(d){return d&&d.__esModule?d:{default:d}}var f=i;f.delete=function(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,t;return p.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return o.subres=(0,A.default)({},o.subres),o.versionId&&(o.subres.versionId=o.versionId),n=this._objectRequestParams("DELETE",l,o),n.successStatuses=[204],e.next=6,p.default.awrap(this.request(n));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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),S=k("babel-runtime/core-js/object/assign"),A=m(S);function m(n){return n&&n.__esModule?n:{default:n}}var f=k("utility"),d=k("../utils/obj2xml"),l=d.obj2xml,o=i;o.deleteMulti=function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e,u,r,s,c,h,g,v,b,w,x,T;return p.default.async(function(E){for(;;)switch(E.prev=E.next){case 0:if(e=[],!(!t||!t.length)){E.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 g={Delete:{Quiet:!!a.quiet,Object:e}},v=l(g,{headers:!0}),a.subres=(0,A.default)({delete:""},a.subres),a.versionId&&(a.subres.versionId=a.versionId),b=this._objectRequestParams("POST","",a),b.mime="xml",b.content=v,b.xmlResponse=!0,b.successStatuses=[200],E.next=15,p.default.awrap(this.request(b));case 15:return w=E.sent,x=w.data,T=x&&x.Deleted||null,T&&(Array.isArray(T)||(T=[T])),E.abrupt("return",{res:w.res,deleted:T||[]});case 20:case"end":return E.stop()}},null,this)}},{"../utils/obj2xml":47,"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68,utility:290}],22:[function(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),S=k("babel-runtime/core-js/object/assign"),A=m(S);function m(d){return d&&d.__esModule?d:{default:d}}var f=i;f.deleteObjectTagging=function(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,t;return p.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return o.subres=(0,A.default)({tagging:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),l=this._objectName(l),n=this._objectRequestParams("DELETE",l,o),n.successStatuses=[204],e.next=7,p.default.awrap(this.request(n));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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),S=k("babel-runtime/core-js/object/assign"),A=m(S);function m(o){return o&&o.__esModule?o:{default:o}}var f=k("fs"),d=k("is-type-of"),l=i;l.get=function(n,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e,u,r,s;return p.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):a=t,a=a||{},a.subres=(0,A.default)({},a.subres),a.versionId&&(a.subres.versionId=a.versionId),a.process&&(a.subres["x-oss-process"]=a.process),r=void 0,h.prev=8,s=this._objectRequestParams("GET",n,a),s.writeStream=e,s.successStatuses=[200,206,304],h.next=14,p.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,p.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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),S=k("babel-runtime/core-js/object/assign"),A=m(S);function m(d){return d&&d.__esModule?d:{default:d}}var f=i;f.getACL=function(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,t;return p.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return o.subres=(0,A.default)({acl:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),l=this._objectName(l),n=this._objectRequestParams("GET",l,o),n.successStatuses=[200],n.xmlResponse=!0,e.next=8,p.default.awrap(this.request(n));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(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=d(y),S=k("babel-runtime/regenerator"),A=d(S),m=k("babel-runtime/core-js/object/assign"),f=d(m);function d(s){return s&&s.__esModule?s:{default:s}}var l=i,o=k("../utils/isObject"),n=o.isObject,t=k("../utils/isArray"),a=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,g,v,b,w,x;return A.default.async(function(O){for(;;)switch(O.prev=O.next){case 0:if(!(s.versionIdMarker&&s.keyMarker===void 0)){O.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),O.next=10,A.default.awrap(this.request(h));case 10:return g=O.sent,v=g.data.Version||[],b=g.data.DeleteMarker||[],w=this,v&&(Array.isArray(v)||(v=[v]),v=v.map(function(E){return{name:E.Key,url:w._objectUrl(E.Key),lastModified:E.LastModified,isLatest:E.IsLatest==="true",versionId:E.VersionId,etag:E.ETag,type:E.Type,size:Number(E.Size),storageClass:E.StorageClass,owner:{id:E.Owner.ID,displayName:E.Owner.DisplayName}}})),b&&(a(b)||(b=[b]),b=b.map(function(E){return{name:E.Key,lastModified:E.LastModified,versionId:E.VersionId,owner:{id:E.Owner.ID,displayName:E.Owner.DisplayName}}})),x=g.data.CommonPrefixes||null,x&&(a(x)||(x=[x]),x=x.map(function(E){return E.Prefix})),O.abrupt("return",{res:g.res,objects:v,deleteMarker:b,prefixes:x,nextMarker:g.data.NextMarker||null,NextVersionIdMarker:g.data.NextVersionIdMarker||null,isTruncated:g.data.IsTruncated==="true"});case 19:case"end":return O.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 n(s)&&(0,p.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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),S=k("babel-runtime/core-js/object/assign"),A=m(S);function m(d){return d&&d.__esModule?d:{default:d}}var f=i;f.getObjectMeta=function(l,o){var n,t;return p.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return o=o||{},l=this._objectName(l),o.subres=(0,A.default)({objectMeta:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),n=this._objectRequestParams("HEAD",l,o),n.successStatuses=[200],e.next=8,p.default.awrap(this.request(n));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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),S=k("babel-runtime/core-js/object/assign"),A=m(S);function m(o){return o&&o.__esModule?o:{default:o}}var f=i,d=k("../utils/isObject"),l=d.isObject;f.getObjectTagging=function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a,e,u,r,s;return p.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return t.subres=(0,A.default)({tagging:""},t.subres),t.versionId&&(t.subres.versionId=t.versionId),n=this._objectName(n),a=this._objectRequestParams("GET",n,t),a.successStatuses=[200],h.next=7,p.default.awrap(this.request(a));case 7:return e=h.sent,h.next=10,p.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(g){s[g.Key]=g.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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),S=k("babel-runtime/core-js/object/assign"),A=m(S);function m(d){return d&&d.__esModule?d:{default:d}}var f=i;f.getSymlink=function(l){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,t,a;return p.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return o.subres=(0,A.default)({symlink:""},o.subres),o.versionId&&(o.subres.versionId=o.versionId),l=this._objectName(l),n=this._objectRequestParams("GET",l,o),n.successStatuses=[200],u.next=7,p.default.awrap(this.request(n));case 7:return t=u.sent,a=t.res.headers["x-oss-symlink-target"],u.abrupt("return",{targetName:decodeURIComponent(a),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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=d(y),S=k("babel-runtime/core-js/object/keys"),A=d(S),m=k("babel-runtime/core-js/object/assign"),f=d(m);function d(o){return o&&o.__esModule?o:{default:o}}var l=i;l.head=function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a,e,u;return p.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),a=this._objectRequestParams("HEAD",n,t),a.successStatuses=[200,304],s.next=6,p.default.awrap(this.request(a));case 6:return e=s.sent,u={meta:null,res:e.res,status:e.status},e.status===200&&(0,A.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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),S=k("babel-runtime/core-js/object/assign"),A=m(S);function m(d){return d&&d.__esModule?d:{default:d}}var f=i;f.putACL=function(l,o,n){var t,a;return p.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return n=n||{},n.subres=(0,A.default)({acl:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.headers=n.headers||{},n.headers["x-oss-object-acl"]=o,l=this._objectName(l),t=this._objectRequestParams("PUT",l,n),t.successStatuses=[200],u.next=10,p.default.awrap(this.request(t));case 10:return a=u.sent,u.abrupt("return",{res:a.res});case 12:case"end":return u.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],31:[function(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=d(y),S=k("babel-runtime/core-js/object/keys"),A=d(S),m=k("babel-runtime/core-js/object/assign"),f=d(m);function d(e){return e&&e.__esModule?e:{default:e}}var l=k("../utils/obj2xml"),o=l.obj2xml,n=k("../utils/checkObjectTag"),t=n.checkObjectTag,a=i;a.putObjectTagging=function(u,r){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},c,h,g;return p.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,A.default)(r).map(function(w){return{Key:w,Value:r[w]}}),h={Tagging:{TagSet:{Tag:r}}},c.mime="xml",c.content=o(h),b.next=12,p.default.awrap(this.request(c));case 12:return g=b.sent,b.abrupt("return",{res:g.res,status:g.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(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),S=k("babel-runtime/core-js/object/assign"),A=m(S);function m(d){return d&&d.__esModule?d:{default:d}}var f=i;f.putSymlink=function(l,o,n){var t,a;return p.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return n=n||{},n.headers=n.headers||{},o=this._escape(this._objectName(o)),this._convertMetaToHeaders(n.meta,n.headers),n.headers["x-oss-symlink-target"]=o,n.subres=(0,A.default)({symlink:""},n.subres),n.versionId&&(n.subres.versionId=n.versionId),n.storageClass&&(n.headers["x-oss-storage-class"]=n.storageClass),l=this._objectName(l),t=this._objectRequestParams("PUT",l,n),t.successStatuses=[200],u.next=13,p.default.awrap(this.request(t));case 13:return a=u.sent,u.abrupt("return",{res:a.res});case 15:case"end":return u.stop()}},null,this)}},{"babel-runtime/core-js/object/assign":54,"babel-runtime/regenerator":68}],33:[function(k,D,i){"use strict";var y=k("babel-runtime/regenerator"),p=m(y),S=k("babel-runtime/core-js/promise"),A=m(S);function m(d){return d&&d.__esModule?d:{default:d}}var f=i;f._parallelNode=function(l,o,n,t){var a,e,u,r,s,c,h,g;return p.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:a=this,e=[],u=[],r=l.length/o,s=l.length%o,c=s===0?r:(l.length-s)/o+1,h=1,g=0;case 8:if(!(g<l.length)){b.next=26;break}if(!a.isCancel()){b.next=11;break}return b.abrupt("break",26);case 11:if(t?u.push(n(a,l[g],t)):u.push(n(a,l[g])),!(u.length===o||h===c&&g===l.length-1)){b.next=23;break}return b.prev=13,h+=1,b.next=17,p.default.awrap(A.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:g++,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,o,n){var t=this;return new A.default(function(a){var e=[];if(o<=0||!l){a(e);return}function u(x){return function(){if(x===null)throw new Error("Callback was already called.");var T=x;x=null;for(var O=arguments.length,E=Array(O),C=0;C<O;C++)E[C]=arguments[C];T.apply(this,E)}}function r(x){var T=-1,O=x.length;return function(){return++T<O&&!t.isCancel()?{value:x[T],key:T}:null}}var s=r(l),c=!1,h=0,g=!1;function v(x,T){h-=1,x?(c=!0,e.push(x),a(e)):T==={}||c&&h<=0?(c=!0,a(e)):g||(t.isCancel()?a(e):w())}function b(x,T){n(x).then(function(O){T(null,O)}).catch(function(O){T(O)})}function w(){for(g=!0;h<o&&!c&&!t.isCancel();){var x=s();if(x===null||e.length>0){c=!0,h<=0&&a(e);return}h+=1,b(x.value,u(v))}g=!1}w()})},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(k,D,i){(function(y){"use strict";var p=k("babel-runtime/core-js/json/stringify"),S=f(p),A=k("babel-runtime/core-js/object/keys"),m=f(A);function f(o){return o&&o.__esModule?o:{default:o}}var d=k("./../../shims/crypto/crypto.js"),l=k("is-type-of");i.buildCanonicalizedResource=function(n,t){var a=""+n,e="?";if(l.string(t)&&t.trim()!=="")a+=e+t;else if(l.array(t))t.sort(),a+=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){a+=e+c,t[c]&&(a+="="+t[c]),e="&"};(0,m.default)(t).sort(u).forEach(r)}return a},i.buildCanonicalString=function(n,t,a,e){a=a||{};var u=a.headers||{},r="x-oss-",s=[],c={},h=[n.toUpperCase(),u["Content-Md5"]||"",u["Content-Type"]||u["Content-Type".toLowerCase()],e||u["x-oss-date"]];return(0,m.default)(u).forEach(function(g){var v=g.toLowerCase();v.indexOf(r)===0&&(c[v]=String(u[g]).trim())}),(0,m.default)(c).sort().forEach(function(g){s.push(g+":"+c[g])}),h=h.concat(s),h.push(this.buildCanonicalizedResource(t,a.parameters)),h.join(`
`)},i.computeSignature=function(n,t){var a=d.createHmac("sha1",n);return a.update(y.from(t,"utf8")).digest("base64")},i.authorization=function(n,t,a){return"OSS "+n+":"+this.computeSignature(t,a)},i._signatureForURL=function(n){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=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,m.default)(t.response).forEach(function(w){var x="response-"+w.toLowerCase();s[x]=t.response[w]}),(0,m.default)(t).forEach(function(w){var x=w.toLowerCase(),T=t[w];x.indexOf("x-oss-")===0?u[x]=T:(x.indexOf("content-md5")===0||x.indexOf("content-type")===0)&&(u[w]=T)}),Object.prototype.hasOwnProperty.call(t,"security-token")&&(s["security-token"]=t["security-token"]),Object.prototype.hasOwnProperty.call(t,"callback")){var g={callbackUrl:encodeURI(t.callback.url),callbackBody:t.callback.body};if(t.callback.host&&(g.callbackHost=t.callback.host),t.callback.contentType&&(g.callbackBodyType=t.callback.contentType),s.callback=y.from((0,S.default)(g)).toString("base64"),t.callback.customValue){var v={};(0,m.default)(t.callback.customValue).forEach(function(w){v["x:"+w]=t.callback.customValue[w]}),s["callback-var"]=y.from((0,S.default)(v)).toString("base64")}}var b=this.buildCanonicalString(t.method,a,{headers:u,parameters:s},e.toString());return{Signature:this.computeSignature(n,b),subResource:s}}}).call(this,k("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(k,D,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.checkBucketName=void 0,i.checkBucketName=function(y,p){var S=p?/^[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(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/entries"),p=S(y);function S(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(i,"__esModule",{value:!0}),i.checkObjectTag=void 0;var A=k("./checkValid"),m=A.checkValid,f=k("./isObject"),d=f.isObject,l=[{validator:function(a){if(typeof a!="string")throw new Error("the key and value of the tag must be String")}},{pattern:/^[a-zA-Z0-9 +-=._:/]+$/,msg:"tag can contain letters, numbers, spaces, and the following symbols: plus sign (+), hyphen (-), equal sign (=), period (.), underscore (_), colon (:), and forward slash (/)"}],o={key:[].concat(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 n(t){if(!d(t))throw new Error("tag must be Object");var a=(0,p.default)(t);if(a.length>10)throw new Error("maximum of 10 tags for a object");var e=["key","value"];a.forEach(function(u){u.forEach(function(r,s){m(r,o[e[s]])})})}i.checkObjectTag=n},{"./checkValid":37,"./isObject":46,"babel-runtime/core-js/object/entries":57}],37:[function(k,D,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.checkValid=void 0;function y(p,S){S.forEach(function(A){if(A.validator)A.validator(p);else if(A.pattern&&!A.pattern.test(p))throw new Error(A.msg)})}i.checkValid=y},{}],38:[function(k,D,i){(function(y){"use strict";var p=k("babel-runtime/core-js/object/assign"),S=A(p);function A(u){return u&&u.__esModule?u:{default:u}}Object.defineProperty(i,"__esModule",{value:!0}),i.createRequest=void 0;var m=k("./../../../shims/crypto/crypto.js"),f=k("debug")("ali-oss"),d=k("mime"),l=k("dateformat"),o=k("copy-to"),n=k("path");function t(u,r){return u[r]||u[r.toLowerCase()]}function a(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),o(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||n.extname(u.object||""))),t(s,"Content-Type")||a(s,"Content-Type"),u.content&&(s["Content-Md5"]=m.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 g=u.timeout||this.options.timeout,v={method:u.method,content:u.content,stream:u.stream,headers:s,timeout:g,writeStream:u.writeStream,customResponse:u.customResponse,ctx:u.ctx||this.ctx};return this.agent&&(v.agent=this.agent),this.httpsAgent&&(v.httpsAgent=this.httpsAgent),{url:h,params:v}}i.createRequest=e}).call(this,k("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(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=m(y),S=k("babel-runtime/helpers/typeof"),A=m(S);function m(f){return f&&f.__esModule?f:{default:f}}Object.defineProperty(i,"__esModule",{value:!0}),i.deepCopy=void 0,i.deepCopy=function(f){if(f===null||(typeof f=="undefined"?"undefined":(0,A.default)(f))!=="object")return f;var d=Array.isArray(f)?[]:{};return(0,p.default)(f).forEach(function(l){d[l]=i.deepCopy(f[l])}),d}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],40:[function(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=m(y),S=k("babel-runtime/helpers/typeof"),A=m(S);function m(l){return l&&l.__esModule?l:{default:l}}Object.defineProperty(i,"__esModule",{value:!0}),i.formatObjKey=void 0;function f(l,o){if(l===null||(typeof l=="undefined"?"undefined":(0,A.default)(l))!=="object")return l;var n=void 0;if(Array.isArray(l)){n=[];for(var t=0;t<l.length;t++)n.push(f(l[t],o))}else n={},(0,p.default)(l).forEach(function(a){n[d(a,o)]=f(l[a],o)});return n}i.formatObjKey=f;function d(l,o){return o==="firstUpperCase"?l=l.replace(/^./,function(n){return n.toUpperCase()}):o==="firstLowerCase"&&(l=l.replace(/^./,function(n){return n.toLowerCase()})),l}},{"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67}],41:[function(k,D,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.getStrBytesCount=void 0;function y(p){for(var S=0,A=0;A<p.length;A++){var m=p.charAt(A);/^[\u00-\uff]$/.test(m)?S+=1:S+=2}return S}i.getStrBytesCount=y},{}],42:[function(k,D,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isArray=void 0,i.isArray=function(y){return Object.prototype.toString.call(y)==="[object Array]"}},{}],43:[function(k,D,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isBlob=void 0;function y(p){return typeof Blob!="undefined"&&p instanceof Blob}i.isBlob=y},{}],44:[function(k,D,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isFile=void 0,i.isFile=function(y){return typeof File!="undefined"&&y instanceof File}},{}],45:[function(k,D,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isIP=void 0,i.isIP=function(y){var p=/^(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 p.test(y)||S.test(y)}},{}],46:[function(k,D,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isObject=void 0,i.isObject=function(y){return Object.prototype.toString.call(y)==="[object Object]"}},{}],47:[function(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=S(y);function S(d){return d&&d.__esModule?d:{default:d}}Object.defineProperty(i,"__esModule",{value:!0}),i.obj2xml=void 0;var A=k("./formatObjKey");function m(d){return Object.prototype.toString.call(d).replace(/(.*? |])/g,"").toLowerCase()}function f(d,l){var o="";return l&&l.headers&&(o=`<?xml version="1.0" encoding="UTF-8"?>
`),l&&l.firstUpperCase&&(d=A.formatObjKey(d,"firstUpperCase")),m(d)==="object"?(0,p.default)(d).forEach(function(n){m(d[n])==="string"||m(d[n])==="number"?o+="<"+n+">"+d[n]+"</"+n+">":m(d[n])==="object"?o+="<"+n+">"+f(d[n])+"</"+n+">":m(d[n])==="array"?o+=d[n].map(function(t){return"<"+n+">"+f(t)+"</"+n+">"}).join(""):o+="<"+n+">"+d[n].toString()+"</"+n+">"}):o+=d.toString(),o}i.obj2xml=f},{"./formatObjKey":40,"babel-runtime/core-js/object/keys":60}],48:[function(k,D,i){D.exports=y,D.exports.HttpsAgent=y;function y(){}},{}],49:[function(k,D,i){D.exports=k("./register")().Promise},{"./register":51}],50:[function(k,D,i){"use strict";var y="@@any-promise/REGISTRATION",p=null;D.exports=function(S,A){return function(f,d){f=f||null,d=d||{};var l=d.global!==!1;if(p===null&&l&&(p=S[y]||null),p!==null&&f!==null&&p.implementation!==f)throw new Error('any-promise already defined as "'+p.implementation+'". You can only register an implementation before the first call to require("any-promise") and an implementation cannot be changed');return p===null&&(f!==null&&typeof d.Promise!="undefined"?p={Promise:d.Promise,implementation:f}:p=A(f),l&&(S[y]=p)),p}}},{}],51:[function(k,D,i){"use strict";D.exports=k("./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(k,D,i){D.exports={default:k("core-js/library/fn/array/from"),__esModule:!0}},{"core-js/library/fn/array/from":77}],53:[function(k,D,i){D.exports={default:k("core-js/library/fn/json/stringify"),__esModule:!0}},{"core-js/library/fn/json/stringify":78}],54:[function(k,D,i){D.exports={default:k("core-js/library/fn/object/assign"),__esModule:!0}},{"core-js/library/fn/object/assign":79}],55:[function(k,D,i){D.exports={default:k("core-js/library/fn/object/create"),__esModule:!0}},{"core-js/library/fn/object/create":80}],56:[function(k,D,i){D.exports={default:k("core-js/library/fn/object/define-property"),__esModule:!0}},{"core-js/library/fn/object/define-property":81}],57:[function(k,D,i){D.exports={default:k("core-js/library/fn/object/entries"),__esModule:!0}},{"core-js/library/fn/object/entries":82}],58:[function(k,D,i){D.exports={default:k("core-js/library/fn/object/get-own-property-names"),__esModule:!0}},{"core-js/library/fn/object/get-own-property-names":83}],59:[function(k,D,i){D.exports={default:k("core-js/library/fn/object/get-prototype-of"),__esModule:!0}},{"core-js/library/fn/object/get-prototype-of":84}],60:[function(k,D,i){D.exports={default:k("core-js/library/fn/object/keys"),__esModule:!0}},{"core-js/library/fn/object/keys":85}],61:[function(k,D,i){D.exports={default:k("core-js/library/fn/promise"),__esModule:!0}},{"core-js/library/fn/promise":86}],62:[function(k,D,i){D.exports={default:k("core-js/library/fn/set-immediate"),__esModule:!0}},{"core-js/library/fn/set-immediate":87}],63:[function(k,D,i){D.exports={default:k("core-js/library/fn/string/from-code-point"),__esModule:!0}},{"core-js/library/fn/string/from-code-point":88}],64:[function(k,D,i){D.exports={default:k("core-js/library/fn/symbol"),__esModule:!0}},{"core-js/library/fn/symbol":90}],65:[function(k,D,i){D.exports={default:k("core-js/library/fn/symbol/has-instance"),__esModule:!0}},{"core-js/library/fn/symbol/has-instance":89}],66:[function(k,D,i){D.exports={default:k("core-js/library/fn/symbol/iterator"),__esModule:!0}},{"core-js/library/fn/symbol/iterator":91}],67:[function(k,D,i){"use strict";i.__esModule=!0;var y=k("../core-js/symbol/iterator"),p=f(y),S=k("../core-js/symbol"),A=f(S),m=typeof A.default=="function"&&typeof p.default=="symbol"?function(d){return typeof d}:function(d){return d&&typeof A.default=="function"&&d.constructor===A.default&&d!==A.default.prototype?"symbol":typeof d};function f(d){return d&&d.__esModule?d:{default:d}}i.default=typeof A.default=="function"&&m(p.default)==="symbol"?function(d){return typeof d=="undefined"?"undefined":m(d)}:function(d){return d&&typeof A.default=="function"&&d.constructor===A.default&&d!==A.default.prototype?"symbol":typeof d=="undefined"?"undefined":m(d)}},{"../core-js/symbol":64,"../core-js/symbol/iterator":66}],68:[function(k,D,i){D.exports=k("regenerator-runtime")},{"regenerator-runtime":226}],69:[function(k,D,i){"use strict";i.byteLength=l,i.toByteArray=n,i.fromByteArray=e;for(var y=[],p=[],S=typeof Uint8Array!="undefined"?Uint8Array:Array,A="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=0,f=A.length;m<f;++m)y[m]=A[m],p[A.charCodeAt(m)]=m;p["-".charCodeAt(0)]=62,p["_".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 o(u,r,s){return(r+s)*3/4-s}function n(u){var r,s=d(u),c=s[0],h=s[1],g=new S(o(u,c,h)),v=0,b=h>0?c-4:c,w;for(w=0;w<b;w+=4)r=p[u.charCodeAt(w)]<<18|p[u.charCodeAt(w+1)]<<12|p[u.charCodeAt(w+2)]<<6|p[u.charCodeAt(w+3)],g[v++]=r>>16&255,g[v++]=r>>8&255,g[v++]=r&255;return h===2&&(r=p[u.charCodeAt(w)]<<2|p[u.charCodeAt(w+1)]>>4,g[v++]=r&255),h===1&&(r=p[u.charCodeAt(w)]<<10|p[u.charCodeAt(w+1)]<<4|p[u.charCodeAt(w+2)]>>2,g[v++]=r>>8&255,g[v++]=r&255),g}function t(u){return y[u>>18&63]+y[u>>12&63]+y[u>>6&63]+y[u&63]}function a(u,r,s){for(var c,h=[],g=r;g<s;g+=3)c=(u[g]<<16&16711680)+(u[g+1]<<8&65280)+(u[g+2]&255),h.push(t(c));return h.join("")}function e(u){for(var r,s=u.length,c=s%3,h=[],g=16383,v=0,b=s-c;v<b;v+=g)h.push(a(u,v,v+g>b?b:v+g));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(k,D,i){/*!
* Bowser - a browser detector
* https://github.com/ded/bowser
* MIT License | (c) Dustin Diaz 2015
*/!function(y,p,S){typeof D!="undefined"&&D.exports?D.exports=S():typeof define=="function"&&define.amd?define(p,S):y[p]=S()}(this,"bowser",function(){var y=!0;function p(o){function n(z){var W=o.match(z);return W&&W.length>1&&W[1]||""}function t(z){var W=o.match(z);return W&&W.length>1&&W[2]||""}var a=n(/(ipod|iphone|ipad)/i).toLowerCase(),e=/like android/i.test(o),u=!e&&/android/i.test(o),r=/nexus\s*[0-6]\s*/i.test(o),s=!r&&/nexus\s*[0-9]+/i.test(o),c=/CrOS/.test(o),h=/silk/i.test(o),g=/sailfish/i.test(o),v=/tizen/i.test(o),b=/(web|hpw)(o|0)s/i.test(o),w=/windows phone/i.test(o),x=/SamsungBrowser/i.test(o),T=!w&&/windows/i.test(o),O=!a&&!h&&/macintosh/i.test(o),E=!u&&!g&&!v&&!b&&/linux/i.test(o),C=t(/edg([ea]|ios)\/(\d+(\.\d+)?)/i),I=n(/version\/(\d+(\.\d+)?)/i),_=/tablet/i.test(o)&&!/tablet pc/i.test(o),F=!_&&/[^-]mobi/i.test(o),R=/xbox/i.test(o),B;/opera/i.test(o)?B={name:"Opera",opera:y,version:I||n(/(?:opera|opr|opios)[\s\/](\d+(\.\d+)?)/i)}:/opr\/|opios/i.test(o)?B={name:"Opera",opera:y,version:n(/(?:opr|opios)[\s\/](\d+(\.\d+)?)/i)||I}:/SamsungBrowser/i.test(o)?B={name:"Samsung Internet for Android",samsungBrowser:y,version:I||n(/(?:SamsungBrowser)[\s\/](\d+(\.\d+)?)/i)}:/Whale/i.test(o)?B={name:"NAVER Whale browser",whale:y,version:n(/(?:whale)[\s\/](\d+(?:\.\d+)+)/i)}:/MZBrowser/i.test(o)?B={name:"MZ Browser",mzbrowser:y,version:n(/(?:MZBrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/coast/i.test(o)?B={name:"Opera Coast",coast:y,version:I||n(/(?:coast)[\s\/](\d+(\.\d+)?)/i)}:/focus/i.test(o)?B={name:"Focus",focus:y,version:n(/(?:focus)[\s\/](\d+(?:\.\d+)+)/i)}:/yabrowser/i.test(o)?B={name:"Yandex Browser",yandexbrowser:y,version:I||n(/(?:yabrowser)[\s\/](\d+(\.\d+)?)/i)}:/ucbrowser/i.test(o)?B={name:"UC Browser",ucbrowser:y,version:n(/(?:ucbrowser)[\s\/](\d+(?:\.\d+)+)/i)}:/mxios/i.test(o)?B={name:"Maxthon",maxthon:y,version:n(/(?:mxios)[\s\/](\d+(?:\.\d+)+)/i)}:/epiphany/i.test(o)?B={name:"Epiphany",epiphany:y,version:n(/(?:epiphany)[\s\/](\d+(?:\.\d+)+)/i)}:/puffin/i.test(o)?B={name:"Puffin",puffin:y,version:n(/(?:puffin)[\s\/](\d+(?:\.\d+)?)/i)}:/sleipnir/i.test(o)?B={name:"Sleipnir",sleipnir:y,version:n(/(?:sleipnir)[\s\/](\d+(?:\.\d+)+)/i)}:/k-meleon/i.test(o)?B={name:"K-Meleon",kMeleon:y,version:n(/(?:k-meleon)[\s\/](\d+(?:\.\d+)+)/i)}:w?(B={name:"Windows Phone",osname:"Windows Phone",windowsphone:y},C?(B.msedge=y,B.version=C):(B.msie=y,B.version=n(/iemobile\/(\d+(\.\d+)?)/i))):/msie|trident/i.test(o)?B={name:"Internet Explorer",msie:y,version:n(/(?:msie |rv:)(\d+(\.\d+)?)/i)}:c?B={name:"Chrome",osname:"Chrome OS",chromeos:y,chromeBook:y,chrome:y,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:/edg([ea]|ios)/i.test(o)?B={name:"Microsoft Edge",msedge:y,version:C}:/vivaldi/i.test(o)?B={name:"Vivaldi",vivaldi:y,version:n(/vivaldi\/(\d+(\.\d+)?)/i)||I}:g?B={name:"Sailfish",osname:"Sailfish OS",sailfish:y,version:n(/sailfish\s?browser\/(\d+(\.\d+)?)/i)}:/seamonkey\//i.test(o)?B={name:"SeaMonkey",seamonkey:y,version:n(/seamonkey\/(\d+(\.\d+)?)/i)}:/firefox|iceweasel|fxios/i.test(o)?(B={name:"Firefox",firefox:y,version:n(/(?:firefox|iceweasel|fxios)[ \/](\d+(\.\d+)?)/i)},/\((mobile|tablet);[^\)]*rv:[\d\.]+\)/i.test(o)&&(B.firefoxos=y,B.osname="Firefox OS")):h?B={name:"Amazon Silk",silk:y,version:n(/silk\/(\d+(\.\d+)?)/i)}:/phantom/i.test(o)?B={name:"PhantomJS",phantom:y,version:n(/phantomjs\/(\d+(\.\d+)?)/i)}:/slimerjs/i.test(o)?B={name:"SlimerJS",slimer:y,version:n(/slimerjs\/(\d+(\.\d+)?)/i)}:/blackberry|\bbb\d+/i.test(o)||/rim\stablet/i.test(o)?B={name:"BlackBerry",osname:"BlackBerry OS",blackberry:y,version:I||n(/blackberry[\d]+\/(\d+(\.\d+)?)/i)}:b?(B={name:"WebOS",osname:"WebOS",webos:y,version:I||n(/w(?:eb)?osbrowser\/(\d+(\.\d+)?)/i)},/touchpad\//i.test(o)&&(B.touchpad=y)):/bada/i.test(o)?B={name:"Bada",osname:"Bada",bada:y,version:n(/dolfin\/(\d+(\.\d+)?)/i)}:v?B={name:"Tizen",osname:"Tizen",tizen:y,version:n(/(?:tizen\s?)?browser\/(\d+(\.\d+)?)/i)||I}:/qupzilla/i.test(o)?B={name:"QupZilla",qupzilla:y,version:n(/(?:qupzilla)[\s\/](\d+(?:\.\d+)+)/i)||I}:/chromium/i.test(o)?B={name:"Chromium",chromium:y,version:n(/(?:chromium)[\s\/](\d+(?:\.\d+)?)/i)||I}:/chrome|crios|crmo/i.test(o)?B={name:"Chrome",chrome:y,version:n(/(?:chrome|crios|crmo)\/(\d+(\.\d+)?)/i)}:u?B={name:"Android",version:I}:/safari|applewebkit/i.test(o)?(B={name:"Safari",safari:y},I&&(B.version=I)):a?(B={name:a=="iphone"?"iPhone":a=="ipad"?"iPad":"iPod"},I&&(B.version=I)):/googlebot/i.test(o)?B={name:"Googlebot",googlebot:y,version:n(/googlebot\/(\d+(\.\d+))/i)||I}:B={name:n(/^(.*)\/(.*) /),version:t(/^(.*)\/(.*) /)},!B.msedge&&/(apple)?webkit/i.test(o)?(/(apple)?webkit\/537\.36/i.test(o)?(B.name=B.name||"Blink",B.blink=y):(B.name=B.name||"Webkit",B.webkit=y),!B.version&&I&&(B.version=I)):!B.opera&&/gecko\//i.test(o)&&(B.name=B.name||"Gecko",B.gecko=y,B.version=B.version||n(/gecko\/(\d+(\.\d+)?)/i)),!B.windowsphone&&(u||B.silk)?(B.android=y,B.osname="Android"):!B.windowsphone&&a?(B[a]=y,B.ios=y,B.osname="iOS"):O?(B.mac=y,B.osname="macOS"):R?(B.xbox=y,B.osname="Xbox"):T?(B.windows=y,B.osname="Windows"):E&&(B.linux=y,B.osname="Linux");function M(z){switch(z){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="";B.windows?X=M(n(/Windows ((NT|XP)( \d\d?.\d)?)/i)):B.windowsphone?X=n(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i):B.mac?(X=n(/Mac OS X (\d+([_\.\s]\d+)*)/i),X=X.replace(/[_\s]/g,".")):a?(X=n(/os (\d+([_\s]\d+)*) like mac os x/i),X=X.replace(/[_\s]/g,".")):u?X=n(/android[ \/-](\d+(\.\d+)*)/i):B.webos?X=n(/(?:web|hpw)os\/(\d+(\.\d+)*)/i):B.blackberry?X=n(/rim\stablet\sos\s(\d+(\.\d+)*)/i):B.bada?X=n(/bada\/(\d+(\.\d+)*)/i):B.tizen&&(X=n(/tizen[\/\s](\d+(\.\d+)*)/i)),X&&(B.osversion=X);var P=!B.windows&&X.split(".")[0];return _||s||a=="ipad"||u&&(P==3||P>=4&&!F)||B.silk?B.tablet=y:(F||a=="iphone"||a=="ipod"||u||r||B.blackberry||B.webos||B.bada)&&(B.mobile=y),B.msedge||B.msie&&B.version>=10||B.yandexbrowser&&B.version>=15||B.vivaldi&&B.version>=1||B.chrome&&B.version>=20||B.samsungBrowser&&B.version>=4||B.whale&&f([B.version,"1.0"])===1||B.mzbrowser&&f([B.version,"6.0"])===1||B.focus&&f([B.version,"1.0"])===1||B.firefox&&B.version>=20||B.safari&&B.version>=6||B.opera&&B.version>=10||B.ios&&B.osversion&&B.osversion.split(".")[0]>=6||B.blackberry&&B.version>=10.1||B.chromium&&B.version>=20?B.a=y:B.msie&&B.version<10||B.chrome&&B.version<20||B.firefox&&B.version<20||B.safari&&B.version<6||B.opera&&B.version<10||B.ios&&B.osversion&&B.osversion.split(".")[0]<6||B.chromium&&B.version<20?B.c=y:B.x=y,B}var S=p(typeof navigator!="undefined"&&navigator.userAgent||"");S.test=function(o){for(var n=0;n<o.length;++n){var t=o[n];if(typeof t=="string"&&t in S)return!0}return!1};function A(o){return o.split(".").length}function m(o,n){var t=[],a;if(Array.prototype.map)return Array.prototype.map.call(o,n);for(a=0;a<o.length;a++)t.push(n(o[a]));return t}function f(o){for(var n=Math.max(A(o[0]),A(o[1])),t=m(o,function(a){var e=n-A(a);return a=a+new Array(e+1).join(".0"),m(a.split("."),function(u){return new Array(20-u.length).join("0")+u}).reverse()});--n>=0;){if(t[0][n]>t[1][n])return 1;if(t[0][n]===t[1][n]){if(n===0)return 0}else return-1}}function d(o,n,t){var a=S;typeof n=="string"&&(t=n,n=void 0),n===void 0&&(n=!1),t&&(a=p(t));var e=""+a.version;for(var u in o)if(o.hasOwnProperty(u)&&a[u]){if(typeof o[u]!="string")throw new Error("Browser version in the minVersion map should be a string: "+u+": "+String(o));return f([e,o[u]])<0}return n}function l(o,n,t){return!d(o,n,t)}return S.isUnsupportedBrowser=d,S.compareVersions=f,S.check=l,S._detect=p,S.detect=p,S})},{}],71:[function(k,D,i){},{}],72:[function(k,D,i){var y=k("buffer").Buffer,p=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&&!p(l))throw new Error("Unknown encoding: "+l)}var A=i.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=m;return}this.charBuffer=new y(6),this.charReceived=0,this.charLength=0};A.prototype.write=function(l){for(var o="";this.charLength;){var n=l.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:l.length;if(l.copy(this.charBuffer,this.charReceived,0,n),this.charReceived+=n,this.charReceived<this.charLength)return"";l=l.slice(n,l.length),o=this.charBuffer.slice(0,this.charLength).toString(this.encoding);var a=o.charCodeAt(o.length-1);if(a>=55296&&a<=56319){this.charLength+=this.surrogateSize,o="";continue}if(this.charReceived=this.charLength=0,l.length===0)return o;break}this.detectIncompleteChar(l);var t=l.length;this.charLength&&(l.copy(this.charBuffer,0,l.length-this.charReceived,t),t-=this.charReceived),o+=l.toString(this.encoding,0,t);var t=o.length-1,a=o.charCodeAt(t);if(a>=55296&&a<=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),o.substring(0,t)}return o},A.prototype.detectIncompleteChar=function(l){for(var o=l.length>=3?3:l.length;o>0;o--){var n=l[l.length-o];if(o==1&&n>>5==6){this.charLength=2;break}if(o<=2&&n>>4==14){this.charLength=3;break}if(o<=3&&n>>3==30){this.charLength=4;break}}this.charReceived=o},A.prototype.end=function(l){var o="";if(l&&l.length&&(o=this.write(l)),this.charReceived){var n=this.charReceived,t=this.charBuffer,a=this.encoding;o+=t.slice(0,n).toString(a)}return o};function m(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(k,D,i){(function(y,p){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/"use strict";var S=k("base64-js"),A=k("ieee754"),m=k("isarray");i.Buffer=p,i.SlowBuffer=h,i.INSPECT_MAX_BYTES=50,p.TYPED_ARRAY_SUPPORT=y.TYPED_ARRAY_SUPPORT!==void 0?y.TYPED_ARRAY_SUPPORT:f(),i.kMaxLength=d();function f(){try{var ge=new Uint8Array(1);return ge.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},ge.foo()===42&&typeof ge.subarray=="function"&&ge.subarray(1,1).byteLength===0}catch(Z){return!1}}function d(){return p.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function l(ge,Z){if(d()<Z)throw new RangeError("Invalid typed array length");return p.TYPED_ARRAY_SUPPORT?(ge=new Uint8Array(Z),ge.__proto__=p.prototype):(ge===null&&(ge=new p(Z)),ge.length=Z),ge}function p(ge,Z,Y){if(!p.TYPED_ARRAY_SUPPORT&&!(this instanceof p))return new p(ge,Z,Y);if(typeof ge=="number"){if(typeof Z=="string")throw new Error("If encoding is specified then the first argument must be a string");return a(this,ge)}return o(this,ge,Z,Y)}p.poolSize=8192,p._augment=function(ge){return ge.__proto__=p.prototype,ge};function o(ge,Z,Y,ee){if(typeof Z=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer!="undefined"&&Z instanceof ArrayBuffer?r(ge,Z,Y,ee):typeof Z=="string"?e(ge,Z,Y):s(ge,Z)}p.from=function(ge,Z,Y){return o(null,ge,Z,Y)},p.TYPED_ARRAY_SUPPORT&&(p.prototype.__proto__=Uint8Array.prototype,p.__proto__=Uint8Array,typeof Symbol!="undefined"&&Symbol.species&&p[Symbol.species]===p&&Object.defineProperty(p,Symbol.species,{value:null,configurable:!0}));function n(ge){if(typeof ge!="number")throw new TypeError('"size" argument must be a number');if(ge<0)throw new RangeError('"size" argument must not be negative')}function t(ge,Z,Y,ee){return n(Z),Z<=0?l(ge,Z):Y!==void 0?typeof ee=="string"?l(ge,Z).fill(Y,ee):l(ge,Z).fill(Y):l(ge,Z)}p.alloc=function(ge,Z,Y){return t(null,ge,Z,Y)};function a(ge,Z){if(n(Z),ge=l(ge,Z<0?0:c(Z)|0),!p.TYPED_ARRAY_SUPPORT)for(var Y=0;Y<Z;++Y)ge[Y]=0;return ge}p.allocUnsafe=function(ge){return a(null,ge)},p.allocUnsafeSlow=function(ge){return a(null,ge)};function e(ge,Z,Y){if((typeof Y!="string"||Y==="")&&(Y="utf8"),!p.isEncoding(Y))throw new TypeError('"encoding" must be a valid string encoding');var ee=g(Z,Y)|0;ge=l(ge,ee);var fe=ge.write(Z,Y);return fe!==ee&&(ge=ge.slice(0,fe)),ge}function u(ge,Z){var Y=Z.length<0?0:c(Z.length)|0;ge=l(ge,Y);for(var ee=0;ee<Y;ee+=1)ge[ee]=Z[ee]&255;return ge}function r(ge,Z,Y,ee){if(Z.byteLength,Y<0||Z.byteLength<Y)throw new RangeError("'offset' is out of bounds");if(Z.byteLength<Y+(ee||0))throw new RangeError("'length' is out of bounds");return Y===void 0&&ee===void 0?Z=new Uint8Array(Z):ee===void 0?Z=new Uint8Array(Z,Y):Z=new Uint8Array(Z,Y,ee),p.TYPED_ARRAY_SUPPORT?(ge=Z,ge.__proto__=p.prototype):ge=u(ge,Z),ge}function s(ge,Z){if(p.isBuffer(Z)){var Y=c(Z.length)|0;return ge=l(ge,Y),ge.length===0||Z.copy(ge,0,0,Y),ge}if(Z){if(typeof ArrayBuffer!="undefined"&&Z.buffer instanceof ArrayBuffer||"length"in Z)return typeof Z.length!="number"||rt(Z.length)?l(ge,0):u(ge,Z);if(Z.type==="Buffer"&&m(Z.data))return u(ge,Z.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function c(ge){if(ge>=d())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+d().toString(16)+" bytes");return ge|0}function h(ge){return+ge!=ge&&(ge=0),p.alloc(+ge)}p.isBuffer=function(Z){return!!(Z!=null&&Z._isBuffer)},p.compare=function(Z,Y){if(!p.isBuffer(Z)||!p.isBuffer(Y))throw new TypeError("Arguments must be Buffers");if(Z===Y)return 0;for(var ee=Z.length,fe=Y.length,be=0,Ce=Math.min(ee,fe);be<Ce;++be)if(Z[be]!==Y[be]){ee=Z[be],fe=Y[be];break}return ee<fe?-1:fe<ee?1:0},p.isEncoding=function(Z){switch(String(Z).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}},p.concat=function(Z,Y){if(!m(Z))throw new TypeError('"list" argument must be an Array of Buffers');if(Z.length===0)return p.alloc(0);var ee;if(Y===void 0)for(Y=0,ee=0;ee<Z.length;++ee)Y+=Z[ee].length;var fe=p.allocUnsafe(Y),be=0;for(ee=0;ee<Z.length;++ee){var Ce=Z[ee];if(!p.isBuffer(Ce))throw new TypeError('"list" argument must be an Array of Buffers');Ce.copy(fe,be),be+=Ce.length}return fe};function g(ge,Z){if(p.isBuffer(ge))return ge.length;if(typeof ArrayBuffer!="undefined"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(ge)||ge instanceof ArrayBuffer))return ge.byteLength;typeof ge!="string"&&(ge=""+ge);var Y=ge.length;if(Y===0)return 0;for(var ee=!1;;)switch(Z){case"ascii":case"latin1":case"binary":return Y;case"utf8":case"utf-8":case void 0:return Je(ge).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Y*2;case"hex":return Y>>>1;case"base64":return Ue(ge).length;default:if(ee)return Je(ge).length;Z=(""+Z).toLowerCase(),ee=!0}}p.byteLength=g;function v(ge,Z,Y){var ee=!1;if((Z===void 0||Z<0)&&(Z=0),Z>this.length)return"";if((Y===void 0||Y>this.length)&&(Y=this.length),Y<=0)return"";if(Y>>>=0,Z>>>=0,Y<=Z)return"";for(ge||(ge="utf8");;)switch(ge){case"hex":return z(this,Z,Y);case"utf8":case"utf-8":return R(this,Z,Y);case"ascii":return X(this,Z,Y);case"latin1":case"binary":return P(this,Z,Y);case"base64":return F(this,Z,Y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return W(this,Z,Y);default:if(ee)throw new TypeError("Unknown encoding: "+ge);ge=(ge+"").toLowerCase(),ee=!0}}p.prototype._isBuffer=!0;function b(ge,Z,Y){var ee=ge[Z];ge[Z]=ge[Y],ge[Y]=ee}p.prototype.swap16=function(){var Z=this.length;if(Z%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var Y=0;Y<Z;Y+=2)b(this,Y,Y+1);return this},p.prototype.swap32=function(){var Z=this.length;if(Z%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var Y=0;Y<Z;Y+=4)b(this,Y,Y+3),b(this,Y+1,Y+2);return this},p.prototype.swap64=function(){var Z=this.length;if(Z%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var Y=0;Y<Z;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},p.prototype.toString=function(){var Z=this.length|0;return Z===0?"":arguments.length===0?R(this,0,Z):v.apply(this,arguments)},p.prototype.equals=function(Z){if(!p.isBuffer(Z))throw new TypeError("Argument must be a Buffer");return this===Z?!0:p.compare(this,Z)===0},p.prototype.inspect=function(){var Z="",Y=i.INSPECT_MAX_BYTES;return this.length>0&&(Z=this.toString("hex",0,Y).match(/.{2}/g).join(" "),this.length>Y&&(Z+=" ... ")),"<Buffer "+Z+">"},p.prototype.compare=function(Z,Y,ee,fe,be){if(!p.isBuffer(Z))throw new TypeError("Argument must be a Buffer");if(Y===void 0&&(Y=0),ee===void 0&&(ee=Z?Z.length:0),fe===void 0&&(fe=0),be===void 0&&(be=this.length),Y<0||ee>Z.length||fe<0||be>this.length)throw new RangeError("out of range index");if(fe>=be&&Y>=ee)return 0;if(fe>=be)return-1;if(Y>=ee)return 1;if(Y>>>=0,ee>>>=0,fe>>>=0,be>>>=0,this===Z)return 0;for(var Ce=be-fe,Te=ee-Y,he=Math.min(Ce,Te),ye=this.slice(fe,be),Ie=Z.slice(Y,ee),tt=0;tt<he;++tt)if(ye[tt]!==Ie[tt]){Ce=ye[tt],Te=Ie[tt];break}return Ce<Te?-1:Te<Ce?1:0};function w(ge,Z,Y,ee,fe){if(ge.length===0)return-1;if(typeof Y=="string"?(ee=Y,Y=0):Y>2147483647?Y=2147483647:Y<-2147483648&&(Y=-2147483648),Y=+Y,isNaN(Y)&&(Y=fe?0:ge.length-1),Y<0&&(Y=ge.length+Y),Y>=ge.length){if(fe)return-1;Y=ge.length-1}else if(Y<0)if(fe)Y=0;else return-1;if(typeof Z=="string"&&(Z=p.from(Z,ee)),p.isBuffer(Z))return Z.length===0?-1:x(ge,Z,Y,ee,fe);if(typeof Z=="number")return Z=Z&255,p.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?fe?Uint8Array.prototype.indexOf.call(ge,Z,Y):Uint8Array.prototype.lastIndexOf.call(ge,Z,Y):x(ge,[Z],Y,ee,fe);throw new TypeError("val must be string, number or Buffer")}function x(ge,Z,Y,ee,fe){var be=1,Ce=ge.length,Te=Z.length;if(ee!==void 0&&(ee=String(ee).toLowerCase(),ee==="ucs2"||ee==="ucs-2"||ee==="utf16le"||ee==="utf-16le")){if(ge.length<2||Z.length<2)return-1;be=2,Ce/=2,Te/=2,Y/=2}function he(st,Fe){return be===1?st[Fe]:st.readUInt16BE(Fe*be)}var ye;if(fe){var Ie=-1;for(ye=Y;ye<Ce;ye++)if(he(ge,ye)===he(Z,Ie===-1?0:ye-Ie)){if(Ie===-1&&(Ie=ye),ye-Ie+1===Te)return Ie*be}else Ie!==-1&&(ye-=ye-Ie),Ie=-1}else for(Y+Te>Ce&&(Y=Ce-Te),ye=Y;ye>=0;ye--){for(var tt=!0,pt=0;pt<Te;pt++)if(he(ge,ye+pt)!==he(Z,pt)){tt=!1;break}if(tt)return ye}return-1}p.prototype.includes=function(Z,Y,ee){return this.indexOf(Z,Y,ee)!==-1},p.prototype.indexOf=function(Z,Y,ee){return w(this,Z,Y,ee,!0)},p.prototype.lastIndexOf=function(Z,Y,ee){return w(this,Z,Y,ee,!1)};function T(ge,Z,Y,ee){Y=Number(Y)||0;var fe=ge.length-Y;ee?(ee=Number(ee),ee>fe&&(ee=fe)):ee=fe;var be=Z.length;if(be%2!==0)throw new TypeError("Invalid hex string");ee>be/2&&(ee=be/2);for(var Ce=0;Ce<ee;++Ce){var Te=parseInt(Z.substr(Ce*2,2),16);if(isNaN(Te))return Ce;ge[Y+Ce]=Te}return Ce}function O(ge,Z,Y,ee){return ue(Je(Z,ge.length-Y),ge,Y,ee)}function E(ge,Z,Y,ee){return ue(Ve(Z),ge,Y,ee)}function C(ge,Z,Y,ee){return E(ge,Z,Y,ee)}function I(ge,Z,Y,ee){return ue(Ue(Z),ge,Y,ee)}function _(ge,Z,Y,ee){return ue(ct(Z,ge.length-Y),ge,Y,ee)}p.prototype.write=function(Z,Y,ee,fe){if(Y===void 0)fe="utf8",ee=this.length,Y=0;else if(ee===void 0&&typeof Y=="string")fe=Y,ee=this.length,Y=0;else if(isFinite(Y))Y=Y|0,isFinite(ee)?(ee=ee|0,fe===void 0&&(fe="utf8")):(fe=ee,ee=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var be=this.length-Y;if((ee===void 0||ee>be)&&(ee=be),Z.length>0&&(ee<0||Y<0)||Y>this.length)throw new RangeError("Attempt to write outside buffer bounds");fe||(fe="utf8");for(var Ce=!1;;)switch(fe){case"hex":return T(this,Z,Y,ee);case"utf8":case"utf-8":return O(this,Z,Y,ee);case"ascii":return E(this,Z,Y,ee);case"latin1":case"binary":return C(this,Z,Y,ee);case"base64":return I(this,Z,Y,ee);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,Z,Y,ee);default:if(Ce)throw new TypeError("Unknown encoding: "+fe);fe=(""+fe).toLowerCase(),Ce=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function F(ge,Z,Y){return Z===0&&Y===ge.length?S.fromByteArray(ge):S.fromByteArray(ge.slice(Z,Y))}function R(ge,Z,Y){Y=Math.min(ge.length,Y);for(var ee=[],fe=Z;fe<Y;){var be=ge[fe],Ce=null,Te=be>239?4:be>223?3:be>191?2:1;if(fe+Te<=Y){var he,ye,Ie,tt;switch(Te){case 1:be<128&&(Ce=be);break;case 2:he=ge[fe+1],(he&192)===128&&(tt=(be&31)<<6|he&63,tt>127&&(Ce=tt));break;case 3:he=ge[fe+1],ye=ge[fe+2],(he&192)===128&&(ye&192)===128&&(tt=(be&15)<<12|(he&63)<<6|ye&63,tt>2047&&(tt<55296||tt>57343)&&(Ce=tt));break;case 4:he=ge[fe+1],ye=ge[fe+2],Ie=ge[fe+3],(he&192)===128&&(ye&192)===128&&(Ie&192)===128&&(tt=(be&15)<<18|(he&63)<<12|(ye&63)<<6|Ie&63,tt>65535&&tt<1114112&&(Ce=tt))}}Ce===null?(Ce=65533,Te=1):Ce>65535&&(Ce-=65536,ee.push(Ce>>>10&1023|55296),Ce=56320|Ce&1023),ee.push(Ce),fe+=Te}return M(ee)}var B=4096;function M(ge){var Z=ge.length;if(Z<=B)return String.fromCharCode.apply(String,ge);for(var Y="",ee=0;ee<Z;)Y+=String.fromCharCode.apply(String,ge.slice(ee,ee+=B));return Y}function X(ge,Z,Y){var ee="";Y=Math.min(ge.length,Y);for(var fe=Z;fe<Y;++fe)ee+=String.fromCharCode(ge[fe]&127);return ee}function P(ge,Z,Y){var ee="";Y=Math.min(ge.length,Y);for(var fe=Z;fe<Y;++fe)ee+=String.fromCharCode(ge[fe]);return ee}function z(ge,Z,Y){var ee=ge.length;(!Z||Z<0)&&(Z=0),(!Y||Y<0||Y>ee)&&(Y=ee);for(var fe="",be=Z;be<Y;++be)fe+=Pe(ge[be]);return fe}function W(ge,Z,Y){for(var ee=ge.slice(Z,Y),fe="",be=0;be<ee.length;be+=2)fe+=String.fromCharCode(ee[be]+ee[be+1]*256);return fe}p.prototype.slice=function(Z,Y){var ee=this.length;Z=~~Z,Y=Y===void 0?ee:~~Y,Z<0?(Z+=ee,Z<0&&(Z=0)):Z>ee&&(Z=ee),Y<0?(Y+=ee,Y<0&&(Y=0)):Y>ee&&(Y=ee),Y<Z&&(Y=Z);var fe;if(p.TYPED_ARRAY_SUPPORT)fe=this.subarray(Z,Y),fe.__proto__=p.prototype;else{var be=Y-Z;fe=new p(be,void 0);for(var Ce=0;Ce<be;++Ce)fe[Ce]=this[Ce+Z]}return fe};function U(ge,Z,Y){if(ge%1!==0||ge<0)throw new RangeError("offset is not uint");if(ge+Z>Y)throw new RangeError("Trying to access beyond buffer length")}p.prototype.readUIntLE=function(Z,Y,ee){Z=Z|0,Y=Y|0,ee||U(Z,Y,this.length);for(var fe=this[Z],be=1,Ce=0;++Ce<Y&&(be*=256);)fe+=this[Z+Ce]*be;return fe},p.prototype.readUIntBE=function(Z,Y,ee){Z=Z|0,Y=Y|0,ee||U(Z,Y,this.length);for(var fe=this[Z+--Y],be=1;Y>0&&(be*=256);)fe+=this[Z+--Y]*be;return fe},p.prototype.readUInt8=function(Z,Y){return Y||U(Z,1,this.length),this[Z]},p.prototype.readUInt16LE=function(Z,Y){return Y||U(Z,2,this.length),this[Z]|this[Z+1]<<8},p.prototype.readUInt16BE=function(Z,Y){return Y||U(Z,2,this.length),this[Z]<<8|this[Z+1]},p.prototype.readUInt32LE=function(Z,Y){return Y||U(Z,4,this.length),(this[Z]|this[Z+1]<<8|this[Z+2]<<16)+this[Z+3]*16777216},p.prototype.readUInt32BE=function(Z,Y){return Y||U(Z,4,this.length),this[Z]*16777216+(this[Z+1]<<16|this[Z+2]<<8|this[Z+3])},p.prototype.readIntLE=function(Z,Y,ee){Z=Z|0,Y=Y|0,ee||U(Z,Y,this.length);for(var fe=this[Z],be=1,Ce=0;++Ce<Y&&(be*=256);)fe+=this[Z+Ce]*be;return be*=128,fe>=be&&(fe-=Math.pow(2,8*Y)),fe},p.prototype.readIntBE=function(Z,Y,ee){Z=Z|0,Y=Y|0,ee||U(Z,Y,this.length);for(var fe=Y,be=1,Ce=this[Z+--fe];fe>0&&(be*=256);)Ce+=this[Z+--fe]*be;return be*=128,Ce>=be&&(Ce-=Math.pow(2,8*Y)),Ce},p.prototype.readInt8=function(Z,Y){return Y||U(Z,1,this.length),this[Z]&128?(255-this[Z]+1)*-1:this[Z]},p.prototype.readInt16LE=function(Z,Y){Y||U(Z,2,this.length);var ee=this[Z]|this[Z+1]<<8;return ee&32768?ee|4294901760:ee},p.prototype.readInt16BE=function(Z,Y){Y||U(Z,2,this.length);var ee=this[Z+1]|this[Z]<<8;return ee&32768?ee|4294901760:ee},p.prototype.readInt32LE=function(Z,Y){return Y||U(Z,4,this.length),this[Z]|this[Z+1]<<8|this[Z+2]<<16|this[Z+3]<<24},p.prototype.readInt32BE=function(Z,Y){return Y||U(Z,4,this.length),this[Z]<<24|this[Z+1]<<16|this[Z+2]<<8|this[Z+3]},p.prototype.readFloatLE=function(Z,Y){return Y||U(Z,4,this.length),A.read(this,Z,!0,23,4)},p.prototype.readFloatBE=function(Z,Y){return Y||U(Z,4,this.length),A.read(this,Z,!1,23,4)},p.prototype.readDoubleLE=function(Z,Y){return Y||U(Z,8,this.length),A.read(this,Z,!0,52,8)},p.prototype.readDoubleBE=function(Z,Y){return Y||U(Z,8,this.length),A.read(this,Z,!1,52,8)};function V(ge,Z,Y,ee,fe,be){if(!p.isBuffer(ge))throw new TypeError('"buffer" argument must be a Buffer instance');if(Z>fe||Z<be)throw new RangeError('"value" argument is out of bounds');if(Y+ee>ge.length)throw new RangeError("Index out of range")}p.prototype.writeUIntLE=function(Z,Y,ee,fe){if(Z=+Z,Y=Y|0,ee=ee|0,!fe){var be=Math.pow(2,8*ee)-1;V(this,Z,Y,ee,be,0)}var Ce=1,Te=0;for(this[Y]=Z&255;++Te<ee&&(Ce*=256);)this[Y+Te]=Z/Ce&255;return Y+ee},p.prototype.writeUIntBE=function(Z,Y,ee,fe){if(Z=+Z,Y=Y|0,ee=ee|0,!fe){var be=Math.pow(2,8*ee)-1;V(this,Z,Y,ee,be,0)}var Ce=ee-1,Te=1;for(this[Y+Ce]=Z&255;--Ce>=0&&(Te*=256);)this[Y+Ce]=Z/Te&255;return Y+ee},p.prototype.writeUInt8=function(Z,Y,ee){return Z=+Z,Y=Y|0,ee||V(this,Z,Y,1,255,0),p.TYPED_ARRAY_SUPPORT||(Z=Math.floor(Z)),this[Y]=Z&255,Y+1};function Q(ge,Z,Y,ee){Z<0&&(Z=65535+Z+1);for(var fe=0,be=Math.min(ge.length-Y,2);fe<be;++fe)ge[Y+fe]=(Z&255<<8*(ee?fe:1-fe))>>>(ee?fe:1-fe)*8}p.prototype.writeUInt16LE=function(Z,Y,ee){return Z=+Z,Y=Y|0,ee||V(this,Z,Y,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[Y]=Z&255,this[Y+1]=Z>>>8):Q(this,Z,Y,!0),Y+2},p.prototype.writeUInt16BE=function(Z,Y,ee){return Z=+Z,Y=Y|0,ee||V(this,Z,Y,2,65535,0),p.TYPED_ARRAY_SUPPORT?(this[Y]=Z>>>8,this[Y+1]=Z&255):Q(this,Z,Y,!1),Y+2};function G(ge,Z,Y,ee){Z<0&&(Z=4294967295+Z+1);for(var fe=0,be=Math.min(ge.length-Y,4);fe<be;++fe)ge[Y+fe]=Z>>>(ee?fe:3-fe)*8&255}p.prototype.writeUInt32LE=function(Z,Y,ee){return Z=+Z,Y=Y|0,ee||V(this,Z,Y,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[Y+3]=Z>>>24,this[Y+2]=Z>>>16,this[Y+1]=Z>>>8,this[Y]=Z&255):G(this,Z,Y,!0),Y+4},p.prototype.writeUInt32BE=function(Z,Y,ee){return Z=+Z,Y=Y|0,ee||V(this,Z,Y,4,4294967295,0),p.TYPED_ARRAY_SUPPORT?(this[Y]=Z>>>24,this[Y+1]=Z>>>16,this[Y+2]=Z>>>8,this[Y+3]=Z&255):G(this,Z,Y,!1),Y+4},p.prototype.writeIntLE=function(Z,Y,ee,fe){if(Z=+Z,Y=Y|0,!fe){var be=Math.pow(2,8*ee-1);V(this,Z,Y,ee,be-1,-be)}var Ce=0,Te=1,he=0;for(this[Y]=Z&255;++Ce<ee&&(Te*=256);)Z<0&&he===0&&this[Y+Ce-1]!==0&&(he=1),this[Y+Ce]=(Z/Te>>0)-he&255;return Y+ee},p.prototype.writeIntBE=function(Z,Y,ee,fe){if(Z=+Z,Y=Y|0,!fe){var be=Math.pow(2,8*ee-1);V(this,Z,Y,ee,be-1,-be)}var Ce=ee-1,Te=1,he=0;for(this[Y+Ce]=Z&255;--Ce>=0&&(Te*=256);)Z<0&&he===0&&this[Y+Ce+1]!==0&&(he=1),this[Y+Ce]=(Z/Te>>0)-he&255;return Y+ee},p.prototype.writeInt8=function(Z,Y,ee){return Z=+Z,Y=Y|0,ee||V(this,Z,Y,1,127,-128),p.TYPED_ARRAY_SUPPORT||(Z=Math.floor(Z)),Z<0&&(Z=255+Z+1),this[Y]=Z&255,Y+1},p.prototype.writeInt16LE=function(Z,Y,ee){return Z=+Z,Y=Y|0,ee||V(this,Z,Y,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[Y]=Z&255,this[Y+1]=Z>>>8):Q(this,Z,Y,!0),Y+2},p.prototype.writeInt16BE=function(Z,Y,ee){return Z=+Z,Y=Y|0,ee||V(this,Z,Y,2,32767,-32768),p.TYPED_ARRAY_SUPPORT?(this[Y]=Z>>>8,this[Y+1]=Z&255):Q(this,Z,Y,!1),Y+2},p.prototype.writeInt32LE=function(Z,Y,ee){return Z=+Z,Y=Y|0,ee||V(this,Z,Y,4,2147483647,-2147483648),p.TYPED_ARRAY_SUPPORT?(this[Y]=Z&255,this[Y+1]=Z>>>8,this[Y+2]=Z>>>16,this[Y+3]=Z>>>24):G(this,Z,Y,!0),Y+4},p.prototype.writeInt32BE=function(Z,Y,ee){return Z=+Z,Y=Y|0,ee||V(this,Z,Y,4,2147483647,-2147483648),Z<0&&(Z=4294967295+Z+1),p.TYPED_ARRAY_SUPPORT?(this[Y]=Z>>>24,this[Y+1]=Z>>>16,this[Y+2]=Z>>>8,this[Y+3]=Z&255):G(this,Z,Y,!1),Y+4};function te(ge,Z,Y,ee,fe,be){if(Y+ee>ge.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("Index out of range")}function $(ge,Z,Y,ee,fe){return fe||te(ge,Z,Y,4,34028234663852886e22,-34028234663852886e22),A.write(ge,Z,Y,ee,23,4),Y+4}p.prototype.writeFloatLE=function(Z,Y,ee){return $(this,Z,Y,!0,ee)},p.prototype.writeFloatBE=function(Z,Y,ee){return $(this,Z,Y,!1,ee)};function le(ge,Z,Y,ee,fe){return fe||te(ge,Z,Y,8,17976931348623157e292,-17976931348623157e292),A.write(ge,Z,Y,ee,52,8),Y+8}p.prototype.writeDoubleLE=function(Z,Y,ee){return le(this,Z,Y,!0,ee)},p.prototype.writeDoubleBE=function(Z,Y,ee){return le(this,Z,Y,!1,ee)},p.prototype.copy=function(Z,Y,ee,fe){if(ee||(ee=0),!fe&&fe!==0&&(fe=this.length),Y>=Z.length&&(Y=Z.length),Y||(Y=0),fe>0&&fe<ee&&(fe=ee),fe===ee)return 0;if(Z.length===0||this.length===0)return 0;if(Y<0)throw new RangeError("targetStart out of bounds");if(ee<0||ee>=this.length)throw new RangeError("sourceStart out of bounds");if(fe<0)throw new RangeError("sourceEnd out of bounds");fe>this.length&&(fe=this.length),Z.length-Y<fe-ee&&(fe=Z.length-Y+ee);var be=fe-ee,Ce;if(this===Z&&ee<Y&&Y<fe)for(Ce=be-1;Ce>=0;--Ce)Z[Ce+Y]=this[Ce+ee];else if(be<1e3||!p.TYPED_ARRAY_SUPPORT)for(Ce=0;Ce<be;++Ce)Z[Ce+Y]=this[Ce+ee];else Uint8Array.prototype.set.call(Z,this.subarray(ee,ee+be),Y);return be},p.prototype.fill=function(Z,Y,ee,fe){if(typeof Z=="string"){if(typeof Y=="string"?(fe=Y,Y=0,ee=this.length):typeof ee=="string"&&(fe=ee,ee=this.length),Z.length===1){var be=Z.charCodeAt(0);be<256&&(Z=be)}if(fe!==void 0&&typeof fe!="string")throw new TypeError("encoding must be a string");if(typeof fe=="string"&&!p.isEncoding(fe))throw new TypeError("Unknown encoding: "+fe)}else typeof Z=="number"&&(Z=Z&255);if(Y<0||this.length<Y||this.length<ee)throw new RangeError("Out of range index");if(ee<=Y)return this;Y=Y>>>0,ee=ee===void 0?this.length:ee>>>0,Z||(Z=0);var Ce;if(typeof Z=="number")for(Ce=Y;Ce<ee;++Ce)this[Ce]=Z;else{var Te=p.isBuffer(Z)?Z:Je(new p(Z,fe).toString()),he=Te.length;for(Ce=0;Ce<ee-Y;++Ce)this[Ce+Y]=Te[Ce%he]}return this};var re=/[^+\/0-9A-Za-z-_]/g;function Se(ge){if(ge=Re(ge).replace(re,""),ge.length<2)return"";for(;ge.length%4!==0;)ge=ge+"=";return ge}function Re(ge){return ge.trim?ge.trim():ge.replace(/^\s+|\s+$/g,"")}function Pe(ge){return ge<16?"0"+ge.toString(16):ge.toString(16)}function Je(ge,Z){Z=Z||Infinity;for(var Y,ee=ge.length,fe=null,be=[],Ce=0;Ce<ee;++Ce){if(Y=ge.charCodeAt(Ce),Y>55295&&Y<57344){if(!fe){if(Y>56319){(Z-=3)>-1&&be.push(239,191,189);continue}else if(Ce+1===ee){(Z-=3)>-1&&be.push(239,191,189);continue}fe=Y;continue}if(Y<56320){(Z-=3)>-1&&be.push(239,191,189),fe=Y;continue}Y=(fe-55296<<10|Y-56320)+65536}else fe&&((Z-=3)>-1&&be.push(239,191,189));if(fe=null,Y<128){if((Z-=1)<0)break;be.push(Y)}else if(Y<2048){if((Z-=2)<0)break;be.push(Y>>6|192,Y&63|128)}else if(Y<65536){if((Z-=3)<0)break;be.push(Y>>12|224,Y>>6&63|128,Y&63|128)}else if(Y<1114112){if((Z-=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(ge){for(var Z=[],Y=0;Y<ge.length;++Y)Z.push(ge.charCodeAt(Y)&255);return Z}function ct(ge,Z){for(var Y,ee,fe,be=[],Ce=0;Ce<ge.length&&!((Z-=2)<0);++Ce)Y=ge.charCodeAt(Ce),ee=Y>>8,fe=Y%256,be.push(fe),be.push(ee);return be}function Ue(ge){return S.toByteArray(Se(ge))}function ue(ge,Z,Y,ee){for(var fe=0;fe<ee&&!(fe+Y>=Z.length||fe>=ge.length);++fe)Z[fe+Y]=ge[fe];return fe}function rt(ge){return ge!==ge}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},k("buffer").Buffer)},{"base64-js":69,buffer:73,ieee754:195,isarray:198}],74:[function(k,D,i){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(k,D,i){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(k,D,i){/*!
* copy-to - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var y=Array.prototype.slice;D.exports=p;function p(A,m){if(!(this instanceof p))return new p(A,m);this.src=A,this._withAccess=m}p.prototype.withAccess=function(A){return this._withAccess=A!==!1,this},p.prototype.pick=function(A){return Array.isArray(A)||(A=y.call(arguments)),A.length&&(this.keys=A),this},p.prototype.to=function(A){if(A=A||{},!this.src)return A;var m=this.keys||Object.keys(this.src);if(!this._withAccess){for(var f=0;f<m.length;f++){if(d=m[f],A[d]!==void 0)continue;A[d]=this.src[d]}return A}for(var f=0;f<m.length;f++){var d=m[f];if(!S(A,d))continue;var l=this.src.__lookupGetter__(d),o=this.src.__lookupSetter__(d);l&&A.__defineGetter__(d,l),o&&A.__defineSetter__(d,o),!l&&!o&&(A[d]=this.src[d])}return A},p.prototype.toCover=function(A){for(var m=this.keys||Object.keys(this.src),f=0;f<m.length;f++){var d=m[f];delete A[d];var l=this.src.__lookupGetter__(d),o=this.src.__lookupSetter__(d);l&&A.__defineGetter__(d,l),o&&A.__defineSetter__(d,o),!l&&!o&&(A[d]=this.src[d])}},p.prototype.override=p.prototype.toCover,p.prototype.and=function(A){var m={};return this.to(m),this.src=A,this.to(m),this.src=m,this};function S(A,m){return A[m]===void 0&&A.__lookupGetter__(m)===void 0&&A.__lookupSetter__(m)===void 0}},{}],77:[function(k,D,i){k("../../modules/es6.string.iterator"),k("../../modules/es6.array.from"),D.exports=k("../../modules/_core").Array.from},{"../../modules/_core":99,"../../modules/es6.array.from":168,"../../modules/es6.string.iterator":180}],78:[function(k,D,i){var y=k("../../modules/_core"),p=y.JSON||(y.JSON={stringify:JSON.stringify});D.exports=function(A){return p.stringify.apply(p,arguments)}},{"../../modules/_core":99}],79:[function(k,D,i){k("../../modules/es6.object.assign"),D.exports=k("../../modules/_core").Object.assign},{"../../modules/_core":99,"../../modules/es6.object.assign":171}],80:[function(k,D,i){k("../../modules/es6.object.create");var y=k("../../modules/_core").Object;D.exports=function(S,A){return y.create(S,A)}},{"../../modules/_core":99,"../../modules/es6.object.create":172}],81:[function(k,D,i){k("../../modules/es6.object.define-property");var y=k("../../modules/_core").Object;D.exports=function(S,A,m){return y.defineProperty(S,A,m)}},{"../../modules/_core":99,"../../modules/es6.object.define-property":173}],82:[function(k,D,i){k("../../modules/es7.object.entries"),D.exports=k("../../modules/_core").Object.entries},{"../../modules/_core":99,"../../modules/es7.object.entries":182}],83:[function(k,D,i){k("../../modules/es6.object.get-own-property-names");var y=k("../../modules/_core").Object;D.exports=function(S){return y.getOwnPropertyNames(S)}},{"../../modules/_core":99,"../../modules/es6.object.get-own-property-names":174}],84:[function(k,D,i){k("../../modules/es6.object.get-prototype-of"),D.exports=k("../../modules/_core").Object.getPrototypeOf},{"../../modules/_core":99,"../../modules/es6.object.get-prototype-of":175}],85:[function(k,D,i){k("../../modules/es6.object.keys"),D.exports=k("../../modules/_core").Object.keys},{"../../modules/_core":99,"../../modules/es6.object.keys":176}],86:[function(k,D,i){k("../modules/es6.object.to-string"),k("../modules/es6.string.iterator"),k("../modules/web.dom.iterable"),k("../modules/es6.promise"),k("../modules/es7.promise.finally"),k("../modules/es7.promise.try"),D.exports=k("../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(k,D,i){k("../modules/web.immediate"),D.exports=k("../modules/_core").setImmediate},{"../modules/_core":99,"../modules/web.immediate":188}],88:[function(k,D,i){k("../../modules/es6.string.from-code-point"),D.exports=k("../../modules/_core").String.fromCodePoint},{"../../modules/_core":99,"../../modules/es6.string.from-code-point":179}],89:[function(k,D,i){k("../../modules/es6.function.has-instance"),D.exports=k("../../modules/_wks-ext").f("hasInstance")},{"../../modules/_wks-ext":165,"../../modules/es6.function.has-instance":170}],90:[function(k,D,i){k("../../modules/es6.symbol"),k("../../modules/es6.object.to-string"),k("../../modules/es7.symbol.async-iterator"),k("../../modules/es7.symbol.observable"),D.exports=k("../../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(k,D,i){k("../../modules/es6.string.iterator"),k("../../modules/web.dom.iterable"),D.exports=k("../../modules/_wks-ext").f("iterator")},{"../../modules/_wks-ext":165,"../../modules/es6.string.iterator":180,"../../modules/web.dom.iterable":187}],92:[function(k,D,i){D.exports=function(y){if(typeof y!="function")throw TypeError(y+" is not a function!");return y}},{}],93:[function(k,D,i){D.exports=function(){}},{}],94:[function(k,D,i){D.exports=function(y,p,S,A){if(!(y instanceof p)||A!==void 0&&A in y)throw TypeError(S+": incorrect invocation!");return y}},{}],95:[function(k,D,i){var y=k("./_is-object");D.exports=function(p){if(!y(p))throw TypeError(p+" is not an object!");return p}},{"./_is-object":119}],96:[function(k,D,i){var y=k("./_to-iobject"),p=k("./_to-length"),S=k("./_to-absolute-index");D.exports=function(A){return function(m,f,d){var l=y(m),o=p(l.length),n=S(d,o),t;if(A&&f!=f){for(;o>n;)if(t=l[n++],t!=t)return!0}else for(;o>n;n++)if((A||n in l)&&l[n]===f)return A||n||0;return!A&&-1}}},{"./_to-absolute-index":156,"./_to-iobject":158,"./_to-length":159}],97:[function(k,D,i){var y=k("./_cof"),p=k("./_wks")("toStringTag"),S=y(function(){return arguments}())=="Arguments",A=function(f,d){try{return f[d]}catch(l){}};D.exports=function(m){var f,d,l;return m===void 0?"Undefined":m===null?"Null":typeof(d=A(f=Object(m),p))=="string"?d:S?y(f):(l=y(f))=="Object"&&typeof f.callee=="function"?"Arguments":l}},{"./_cof":98,"./_wks":166}],98:[function(k,D,i){var y={}.toString;D.exports=function(p){return y.call(p).slice(8,-1)}},{}],99:[function(k,D,i){var y=D.exports={version:"2.6.11"};typeof __e=="number"&&(__e=y)},{}],100:[function(k,D,i){"use strict";var y=k("./_object-dp"),p=k("./_property-desc");D.exports=function(S,A,m){A in S?y.f(S,A,p(0,m)):S[A]=m}},{"./_object-dp":132,"./_property-desc":146}],101:[function(k,D,i){var y=k("./_a-function");D.exports=function(p,S,A){if(y(p),S===void 0)return p;switch(A){case 1:return function(m){return p.call(S,m)};case 2:return function(m,f){return p.call(S,m,f)};case 3:return function(m,f,d){return p.call(S,m,f,d)}}return function(){return p.apply(S,arguments)}}},{"./_a-function":92}],102:[function(k,D,i){D.exports=function(y){if(y==null)throw TypeError("Can't call method on "+y);return y}},{}],103:[function(k,D,i){D.exports=!k("./_fails")(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},{"./_fails":108}],104:[function(k,D,i){var y=k("./_is-object"),p=k("./_global").document,S=y(p)&&y(p.createElement);D.exports=function(A){return S?p.createElement(A):{}}},{"./_global":110,"./_is-object":119}],105:[function(k,D,i){D.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],106:[function(k,D,i){var y=k("./_object-keys"),p=k("./_object-gops"),S=k("./_object-pie");D.exports=function(A){var m=y(A),f=p.f;if(f)for(var d=f(A),l=S.f,o=0,n;d.length>o;)l.call(A,n=d[o++])&&m.push(n);return m}},{"./_object-gops":137,"./_object-keys":140,"./_object-pie":141}],107:[function(k,D,i){var y=k("./_global"),p=k("./_core"),S=k("./_ctx"),A=k("./_hide"),m=k("./_has"),f="prototype",d=function l(o,n,t){var a=o&l.F,e=o&l.G,u=o&l.S,r=o&l.P,s=o&l.B,c=o&l.W,h=e?p:p[n]||(p[n]={}),g=h[f],v=e?y:u?y[n]:(y[n]||{})[f],b,w,x;e&&(t=n);for(b in t){if(w=!a&&v&&v[b]!==void 0,w&&m(h,b))continue;x=w?v[b]:t[b],h[b]=e&&typeof v[b]!="function"?t[b]:s&&w?S(x,y):c&&v[b]==x?function(T){var O=function(C,I,_){if(this instanceof T){switch(arguments.length){case 0:return new T;case 1:return new T(C);case 2:return new T(C,I)}return new T(C,I,_)}return T.apply(this,arguments)};return O[f]=T[f],O}(x):r&&typeof x=="function"?S(Function.call,x):x,r&&((h.virtual||(h.virtual={}))[b]=x,o&l.R&&g&&!g[b]&&A(g,b,x))}};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(k,D,i){D.exports=function(y){try{return!!y()}catch(p){return!0}}},{}],109:[function(k,D,i){var y=k("./_ctx"),p=k("./_iter-call"),S=k("./_is-array-iter"),A=k("./_an-object"),m=k("./_to-length"),f=k("./core.get-iterator-method"),d={},l={},i=D.exports=function(o,n,t,a,e){var u=e?function(){return o}:f(o),r=y(t,a,n?2:1),s=0,c,h,g,v;if(typeof u!="function")throw TypeError(o+" is not iterable!");if(S(u)){for(c=m(o.length);c>s;s++)if(v=n?r(A(h=o[s])[0],h[1]):r(o[s]),v===d||v===l)return v}else for(g=u.call(o);!(h=g.next()).done;)if(v=p(g,r,h.value,n),v===d||v===l)return v};i.BREAK=d,i.RETURN=l},{"./_an-object":95,"./_ctx":101,"./_is-array-iter":117,"./_iter-call":120,"./_to-length":159,"./core.get-iterator-method":167}],110:[function(k,D,i){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(k,D,i){var y={}.hasOwnProperty;D.exports=function(p,S){return y.call(p,S)}},{}],112:[function(k,D,i){var y=k("./_object-dp"),p=k("./_property-desc");D.exports=k("./_descriptors")?function(S,A,m){return y.f(S,A,p(1,m))}:function(S,A,m){return S[A]=m,S}},{"./_descriptors":103,"./_object-dp":132,"./_property-desc":146}],113:[function(k,D,i){var y=k("./_global").document;D.exports=y&&y.documentElement},{"./_global":110}],114:[function(k,D,i){D.exports=!k("./_descriptors")&&!k("./_fails")(function(){return Object.defineProperty(k("./_dom-create")("div"),"a",{get:function(){return 7}}).a!=7})},{"./_descriptors":103,"./_dom-create":104,"./_fails":108}],115:[function(k,D,i){D.exports=function(y,p,S){var A=S===void 0;switch(p.length){case 0:return A?y():y.call(S);case 1:return A?y(p[0]):y.call(S,p[0]);case 2:return A?y(p[0],p[1]):y.call(S,p[0],p[1]);case 3:return A?y(p[0],p[1],p[2]):y.call(S,p[0],p[1],p[2]);case 4:return A?y(p[0],p[1],p[2],p[3]):y.call(S,p[0],p[1],p[2],p[3])}return y.apply(S,p)}},{}],116:[function(k,D,i){var y=k("./_cof");D.exports=Object("z").propertyIsEnumerable(0)?Object:function(p){return y(p)=="String"?p.split(""):Object(p)}},{"./_cof":98}],117:[function(k,D,i){var y=k("./_iterators"),p=k("./_wks")("iterator"),S=Array.prototype;D.exports=function(A){return A!==void 0&&(y.Array===A||S[p]===A)}},{"./_iterators":125,"./_wks":166}],118:[function(k,D,i){var y=k("./_cof");D.exports=Array.isArray||function(S){return y(S)=="Array"}},{"./_cof":98}],119:[function(k,D,i){D.exports=function(y){return typeof y=="object"?y!==null:typeof y=="function"}},{}],120:[function(k,D,i){var y=k("./_an-object");D.exports=function(p,S,A,m){try{return m?S(y(A)[0],A[1]):S(A)}catch(d){var f=p.return;throw f!==void 0&&y(f.call(p)),d}}},{"./_an-object":95}],121:[function(k,D,i){"use strict";var y=k("./_object-create"),p=k("./_property-desc"),S=k("./_set-to-string-tag"),A={};k("./_hide")(A,k("./_wks")("iterator"),function(){return this}),D.exports=function(m,f,d){m.prototype=y(A,{next:p(1,d)}),S(m,f+" Iterator")}},{"./_hide":112,"./_object-create":131,"./_property-desc":146,"./_set-to-string-tag":150,"./_wks":166}],122:[function(k,D,i){"use strict";var y=k("./_library"),p=k("./_export"),S=k("./_redefine"),A=k("./_hide"),m=k("./_iterators"),f=k("./_iter-create"),d=k("./_set-to-string-tag"),l=k("./_object-gpo"),o=k("./_wks")("iterator"),n=!([].keys&&"next"in[].keys()),t="@@iterator",a="keys",e="values",u=function(){return this};D.exports=function(r,s,c,h,g,v,b){f(c,s,h);var w=function(P){if(!n&&P in E)return E[P];switch(P){case a:return function(){return new c(this,P)};case e:return function(){return new c(this,P)}}return function(){return new c(this,P)}},x=s+" Iterator",T=g==e,O=!1,E=r.prototype,C=E[o]||E[t]||g&&E[g],I=C||w(g),_=g?T?w("entries"):I:void 0,F=s=="Array"&&E.entries||C,R,B,M;if(F&&(M=l(F.call(new r)),M!==Object.prototype&&M.next&&(d(M,x,!0),!y&&typeof M[o]!="function"&&A(M,o,u))),T&&C&&C.name!==e&&(O=!0,I=function(){return C.call(this)}),(!y||b)&&(n||O||!E[o])&&A(E,o,I),m[s]=I,m[x]=u,g)if(R={values:T?I:w(e),keys:v?I:w(a),entries:_},b)for(B in R)B in E||S(E,B,R[B]);else p(p.P+p.F*(n||O),s,R);return R}},{"./_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(k,D,i){var y=k("./_wks")("iterator"),p=!1;try{var S=[7][y]();S.return=function(){p=!0},Array.from(S,function(){throw 2})}catch(A){}D.exports=function(A,m){if(!m&&!p)return!1;var f=!1;try{var d=[7],l=d[y]();l.next=function(){return{done:f=!0}},d[y]=function(){return l},A(d)}catch(o){}return f}},{"./_wks":166}],124:[function(k,D,i){D.exports=function(y,p){return{value:p,done:!!y}}},{}],125:[function(k,D,i){D.exports={}},{}],126:[function(k,D,i){D.exports=!0},{}],127:[function(k,D,i){var y=k("./_uid")("meta"),p=k("./_is-object"),S=k("./_has"),A=k("./_object-dp").f,m=0,f=Object.isExtensible||function(){return!0},d=!k("./_fails")(function(){return f(Object.preventExtensions({}))}),l=function(u){A(u,y,{value:{i:"O"+ ++m,w:{}}})},o=function(u,r){if(!p(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},n=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&&a.NEED&&f(u)&&!S(u,y)&&l(u),u},a=D.exports={KEY:y,NEED:!1,fastKey:o,getWeak:n,onFreeze:t}},{"./_fails":108,"./_has":111,"./_is-object":119,"./_object-dp":132,"./_uid":162}],128:[function(k,D,i){var y=k("./_global"),p=k("./_task").set,S=y.MutationObserver||y.WebKitMutationObserver,A=y.process,m=y.Promise,f=k("./_cof")(A)=="process";D.exports=function(){var d,l,o,n=function(){var r,s;for(f&&(r=A.domain)&&r.exit();d;){s=d.fn,d=d.next;try{s()}catch(c){throw d?o():l=void 0,c}}l=void 0,r&&r.enter()};if(f)o=function(){A.nextTick(n)};else if(S&&!(y.navigator&&y.navigator.standalone)){var t=!0,a=document.createTextNode("");new S(n).observe(a,{characterData:!0}),o=function(){a.data=t=!t}}else if(m&&m.resolve){var e=m.resolve(void 0);o=function(){e.then(n)}}else o=function(){p.call(y,n)};return function(u){var r={fn:u,next:void 0};l&&(l.next=r),d||(d=r,o()),l=r}}},{"./_cof":98,"./_global":110,"./_task":155}],129:[function(k,D,i){"use strict";var y=k("./_a-function");function p(S){var A,m;this.promise=new S(function(f,d){if(A!==void 0||m!==void 0)throw TypeError("Bad Promise constructor");A=f,m=d}),this.resolve=y(A),this.reject=y(m)}D.exports.f=function(S){return new p(S)}},{"./_a-function":92}],130:[function(k,D,i){"use strict";var y=k("./_descriptors"),p=k("./_object-keys"),S=k("./_object-gops"),A=k("./_object-pie"),m=k("./_to-object"),f=k("./_iobject"),d=Object.assign;D.exports=!d||k("./_fails")(function(){var l={},o={},n=Symbol(),t="abcdefghijklmnopqrst";return l[n]=7,t.split("").forEach(function(a){o[a]=a}),d({},l)[n]!=7||Object.keys(d({},o)).join("")!=t})?function(o,n){for(var t=m(o),a=arguments.length,e=1,u=S.f,r=A.f;a>e;)for(var s=f(arguments[e++]),c=u?p(s).concat(u(s)):p(s),h=c.length,g=0,v;h>g;)v=c[g++],(!y||r.call(s,v))&&(t[v]=s[v]);return t}:d},{"./_descriptors":103,"./_fails":108,"./_iobject":116,"./_object-gops":137,"./_object-keys":140,"./_object-pie":141,"./_to-object":160}],131:[function(k,D,i){var y=k("./_an-object"),p=k("./_object-dps"),S=k("./_enum-bug-keys"),A=k("./_shared-key")("IE_PROTO"),m=function(){},f="prototype",d=function(){var o=k("./_dom-create")("iframe"),n=S.length,t="<",a=">",e;for(o.style.display="none",k("./_html").appendChild(o),o.src="javascript:",e=o.contentWindow.document,e.open(),e.write(t+"script"+a+"document.F=Object"+t+"/script"+a),e.close(),d=e.F;n--;)delete d[f][S[n]];return d()};D.exports=Object.create||function(o,n){var t;return o!==null?(m[f]=y(o),t=new m,m[f]=null,t[A]=o):t=d(),n===void 0?t:p(t,n)}},{"./_an-object":95,"./_dom-create":104,"./_enum-bug-keys":105,"./_html":113,"./_object-dps":133,"./_shared-key":151}],132:[function(k,D,i){var y=k("./_an-object"),p=k("./_ie8-dom-define"),S=k("./_to-primitive"),A=Object.defineProperty;i.f=k("./_descriptors")?Object.defineProperty:function(f,d,l){if(y(f),d=S(d,!0),y(l),p)try{return A(f,d,l)}catch(o){}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(k,D,i){var y=k("./_object-dp"),p=k("./_an-object"),S=k("./_object-keys");D.exports=k("./_descriptors")?Object.defineProperties:function(m,f){p(m);for(var d=S(f),l=d.length,o=0,n;l>o;)y.f(m,n=d[o++],f[n]);return m}},{"./_an-object":95,"./_descriptors":103,"./_object-dp":132,"./_object-keys":140}],134:[function(k,D,i){var y=k("./_object-pie"),p=k("./_property-desc"),S=k("./_to-iobject"),A=k("./_to-primitive"),m=k("./_has"),f=k("./_ie8-dom-define"),d=Object.getOwnPropertyDescriptor;i.f=k("./_descriptors")?d:function(o,n){if(o=S(o),n=A(n,!0),f)try{return d(o,n)}catch(t){}if(m(o,n))return p(!y.f.call(o,n),o[n])}},{"./_descriptors":103,"./_has":111,"./_ie8-dom-define":114,"./_object-pie":141,"./_property-desc":146,"./_to-iobject":158,"./_to-primitive":161}],135:[function(k,D,i){var y=k("./_to-iobject"),p=k("./_object-gopn").f,S={}.toString,A=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],m=function(d){try{return p(d)}catch(l){return A.slice()}};D.exports.f=function(d){return A&&S.call(d)=="[object Window]"?m(d):p(y(d))}},{"./_object-gopn":136,"./_to-iobject":158}],136:[function(k,D,i){var y=k("./_object-keys-internal"),p=k("./_enum-bug-keys").concat("length","prototype");i.f=Object.getOwnPropertyNames||function(A){return y(A,p)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],137:[function(k,D,i){i.f=Object.getOwnPropertySymbols},{}],138:[function(k,D,i){var y=k("./_has"),p=k("./_to-object"),S=k("./_shared-key")("IE_PROTO"),A=Object.prototype;D.exports=Object.getPrototypeOf||function(m){return m=p(m),y(m,S)?m[S]:typeof m.constructor=="function"&&m instanceof m.constructor?m.constructor.prototype:m instanceof Object?A:null}},{"./_has":111,"./_shared-key":151,"./_to-object":160}],139:[function(k,D,i){var y=k("./_has"),p=k("./_to-iobject"),S=k("./_array-includes")(!1),A=k("./_shared-key")("IE_PROTO");D.exports=function(m,f){var d=p(m),l=0,o=[],n;for(n in d)n!=A&&(y(d,n)&&o.push(n));for(;f.length>l;)y(d,n=f[l++])&&(~S(o,n)||o.push(n));return o}},{"./_array-includes":96,"./_has":111,"./_shared-key":151,"./_to-iobject":158}],140:[function(k,D,i){var y=k("./_object-keys-internal"),p=k("./_enum-bug-keys");D.exports=Object.keys||function(A){return y(A,p)}},{"./_enum-bug-keys":105,"./_object-keys-internal":139}],141:[function(k,D,i){i.f={}.propertyIsEnumerable},{}],142:[function(k,D,i){var y=k("./_export"),p=k("./_core"),S=k("./_fails");D.exports=function(A,m){var f=(p.Object||{})[A]||Object[A],d={};d[A]=m(f),y(y.S+y.F*S(function(){f(1)}),"Object",d)}},{"./_core":99,"./_export":107,"./_fails":108}],143:[function(k,D,i){var y=k("./_descriptors"),p=k("./_object-keys"),S=k("./_to-iobject"),A=k("./_object-pie").f;D.exports=function(m){return function(f){for(var d=S(f),l=p(d),o=l.length,n=0,t=[],a;o>n;)a=l[n++],(!y||A.call(d,a))&&t.push(m?[a,d[a]]:d[a]);return t}}},{"./_descriptors":103,"./_object-keys":140,"./_object-pie":141,"./_to-iobject":158}],144:[function(k,D,i){D.exports=function(y){try{return{e:!1,v:y()}}catch(p){return{e:!0,v:p}}}},{}],145:[function(k,D,i){var y=k("./_an-object"),p=k("./_is-object"),S=k("./_new-promise-capability");D.exports=function(A,m){if(y(A),p(m)&&m.constructor===A)return m;var f=S.f(A),d=f.resolve;return d(m),f.promise}},{"./_an-object":95,"./_is-object":119,"./_new-promise-capability":129}],146:[function(k,D,i){D.exports=function(y,p){return{enumerable:!(y&1),configurable:!(y&2),writable:!(y&4),value:p}}},{}],147:[function(k,D,i){var y=k("./_hide");D.exports=function(p,S,A){for(var m in S)A&&p[m]?p[m]=S[m]:y(p,m,S[m]);return p}},{"./_hide":112}],148:[function(k,D,i){D.exports=k("./_hide")},{"./_hide":112}],149:[function(k,D,i){"use strict";var y=k("./_global"),p=k("./_core"),S=k("./_object-dp"),A=k("./_descriptors"),m=k("./_wks")("species");D.exports=function(f){var d=typeof p[f]=="function"?p[f]:y[f];A&&d&&!d[m]&&S.f(d,m,{configurable:!0,get:function(){return this}})}},{"./_core":99,"./_descriptors":103,"./_global":110,"./_object-dp":132,"./_wks":166}],150:[function(k,D,i){var y=k("./_object-dp").f,p=k("./_has"),S=k("./_wks")("toStringTag");D.exports=function(A,m,f){A&&!p(A=f?A:A.prototype,S)&&y(A,S,{configurable:!0,value:m})}},{"./_has":111,"./_object-dp":132,"./_wks":166}],151:[function(k,D,i){var y=k("./_shared")("keys"),p=k("./_uid");D.exports=function(S){return y[S]||(y[S]=p(S))}},{"./_shared":152,"./_uid":162}],152:[function(k,D,i){var y=k("./_core"),p=k("./_global"),S="__core-js_shared__",A=p[S]||(p[S]={});(D.exports=function(m,f){return A[m]||(A[m]=f!==void 0?f:{})})("versions",[]).push({version:y.version,mode:k("./_library")?"pure":"global",copyright:"\xA9 2019 Denis Pushkarev (zloirock.ru)"})},{"./_core":99,"./_global":110,"./_library":126}],153:[function(k,D,i){var y=k("./_an-object"),p=k("./_a-function"),S=k("./_wks")("species");D.exports=function(A,m){var f=y(A).constructor,d;return f===void 0||(d=y(f)[S])==null?m:p(d)}},{"./_a-function":92,"./_an-object":95,"./_wks":166}],154:[function(k,D,i){var y=k("./_to-integer"),p=k("./_defined");D.exports=function(S){return function(A,m){var f=String(p(A)),d=y(m),l=f.length,o,n;return d<0||d>=l?S?"":void 0:(o=f.charCodeAt(d),o<55296||o>56319||d+1===l||(n=f.charCodeAt(d+1))<56320||n>57343?S?f.charAt(d):o:S?f.slice(d,d+2):(o-55296<<10)+(n-56320)+65536)}}},{"./_defined":102,"./_to-integer":157}],155:[function(k,D,i){var y=k("./_ctx"),p=k("./_invoke"),S=k("./_html"),A=k("./_dom-create"),m=k("./_global"),f=m.process,d=m.setImmediate,l=m.clearImmediate,o=m.MessageChannel,n=m.Dispatch,t=0,a={},e="onreadystatechange",u,r,s,c=function(){var v=+this;if(a.hasOwnProperty(v)){var b=a[v];delete a[v],b()}},h=function(v){c.call(v.data)};(!d||!l)&&(d=function(v){for(var b=[],w=1;arguments.length>w;)b.push(arguments[w++]);return a[++t]=function(){p(typeof v=="function"?v:Function(v),b)},u(t),t},l=function(v){delete a[v]},k("./_cof")(f)=="process"?u=function(v){f.nextTick(y(c,v,1))}:n&&n.now?u=function(v){n.now(y(c,v,1))}:o?(r=new o,s=r.port2,r.port1.onmessage=h,u=y(s.postMessage,s,1)):m.addEventListener&&typeof postMessage=="function"&&!m.importScripts?(u=function(v){m.postMessage(v+"","*")},m.addEventListener("message",h,!1)):e in A("script")?u=function(v){S.appendChild(A("script"))[e]=function(){S.removeChild(this),c.call(v)}}:u=function(v){setTimeout(y(c,v,1),0)}),D.exports={set:d,clear:l}},{"./_cof":98,"./_ctx":101,"./_dom-create":104,"./_global":110,"./_html":113,"./_invoke":115}],156:[function(k,D,i){var y=k("./_to-integer"),p=Math.max,S=Math.min;D.exports=function(A,m){return A=y(A),A<0?p(A+m,0):S(A,m)}},{"./_to-integer":157}],157:[function(k,D,i){var y=Math.ceil,p=Math.floor;D.exports=function(S){return isNaN(S=+S)?0:(S>0?p:y)(S)}},{}],158:[function(k,D,i){var y=k("./_iobject"),p=k("./_defined");D.exports=function(S){return y(p(S))}},{"./_defined":102,"./_iobject":116}],159:[function(k,D,i){var y=k("./_to-integer"),p=Math.min;D.exports=function(S){return S>0?p(y(S),9007199254740991):0}},{"./_to-integer":157}],160:[function(k,D,i){var y=k("./_defined");D.exports=function(p){return Object(y(p))}},{"./_defined":102}],161:[function(k,D,i){var y=k("./_is-object");D.exports=function(p,S){if(!y(p))return p;var A,m;if(S&&typeof(A=p.toString)=="function"&&!y(m=A.call(p)))return m;if(typeof(A=p.valueOf)=="function"&&!y(m=A.call(p)))return m;if(!S&&typeof(A=p.toString)=="function"&&!y(m=A.call(p)))return m;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":119}],162:[function(k,D,i){var y=0,p=Math.random();D.exports=function(S){return"Symbol(".concat(S===void 0?"":S,")_",(++y+p).toString(36))}},{}],163:[function(k,D,i){var y=k("./_global"),p=y.navigator;D.exports=p&&p.userAgent||""},{"./_global":110}],164:[function(k,D,i){var y=k("./_global"),p=k("./_core"),S=k("./_library"),A=k("./_wks-ext"),m=k("./_object-dp").f;D.exports=function(f){var d=p.Symbol||(p.Symbol=S?{}:y.Symbol||{});f.charAt(0)!="_"&&!(f in d)&&m(d,f,{value:A.f(f)})}},{"./_core":99,"./_global":110,"./_library":126,"./_object-dp":132,"./_wks-ext":165}],165:[function(k,D,i){i.f=k("./_wks")},{"./_wks":166}],166:[function(k,D,i){var y=k("./_shared")("wks"),p=k("./_uid"),S=k("./_global").Symbol,A=typeof S=="function",m=D.exports=function(f){return y[f]||(y[f]=A&&S[f]||(A?S:p)("Symbol."+f))};m.store=y},{"./_global":110,"./_shared":152,"./_uid":162}],167:[function(k,D,i){var y=k("./_classof"),p=k("./_wks")("iterator"),S=k("./_iterators");D.exports=k("./_core").getIteratorMethod=function(A){if(A!=null)return A[p]||A["@@iterator"]||S[y(A)]}},{"./_classof":97,"./_core":99,"./_iterators":125,"./_wks":166}],168:[function(k,D,i){"use strict";var y=k("./_ctx"),p=k("./_export"),S=k("./_to-object"),A=k("./_iter-call"),m=k("./_is-array-iter"),f=k("./_to-length"),d=k("./_create-property"),l=k("./core.get-iterator-method");p(p.S+p.F*!k("./_iter-detect")(function(o){Array.from(o)}),"Array",{from:function(n){var t=S(n),a=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,g,v,b;if(r&&(u=y(u,e>2?arguments[2]:void 0,2)),c!=null&&!(a==Array&&m(c)))for(b=c.call(t),g=new a;!(v=b.next()).done;s++)d(g,s,r?A(b,u,[v.value,s],!0):v.value);else for(h=f(t.length),g=new a(h);h>s;s++)d(g,s,r?u(t[s],s):t[s]);return g.length=s,g}})},{"./_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(k,D,i){"use strict";var y=k("./_add-to-unscopables"),p=k("./_iter-step"),S=k("./_iterators"),A=k("./_to-iobject");D.exports=k("./_iter-define")(Array,"Array",function(m,f){this._t=A(m),this._i=0,this._k=f},function(){var m=this._t,f=this._k,d=this._i++;return!m||d>=m.length?(this._t=void 0,p(1)):f=="keys"?p(0,d):f=="values"?p(0,m[d]):p(0,[d,m[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(k,D,i){"use strict";var y=k("./_is-object"),p=k("./_object-gpo"),S=k("./_wks")("hasInstance"),A=Function.prototype;S in A||k("./_object-dp").f(A,S,{value:function(f){if(typeof this!="function"||!y(f))return!1;if(!y(this.prototype))return f instanceof this;for(;f=p(f);)if(this.prototype===f)return!0;return!1}})},{"./_is-object":119,"./_object-dp":132,"./_object-gpo":138,"./_wks":166}],171:[function(k,D,i){var y=k("./_export");y(y.S+y.F,"Object",{assign:k("./_object-assign")})},{"./_export":107,"./_object-assign":130}],172:[function(k,D,i){var y=k("./_export");y(y.S,"Object",{create:k("./_object-create")})},{"./_export":107,"./_object-create":131}],173:[function(k,D,i){var y=k("./_export");y(y.S+y.F*!k("./_descriptors"),"Object",{defineProperty:k("./_object-dp").f})},{"./_descriptors":103,"./_export":107,"./_object-dp":132}],174:[function(k,D,i){k("./_object-sap")("getOwnPropertyNames",function(){return k("./_object-gopn-ext").f})},{"./_object-gopn-ext":135,"./_object-sap":142}],175:[function(k,D,i){var y=k("./_to-object"),p=k("./_object-gpo");k("./_object-sap")("getPrototypeOf",function(){return function(A){return p(y(A))}})},{"./_object-gpo":138,"./_object-sap":142,"./_to-object":160}],176:[function(k,D,i){var y=k("./_to-object"),p=k("./_object-keys");k("./_object-sap")("keys",function(){return function(A){return p(y(A))}})},{"./_object-keys":140,"./_object-sap":142,"./_to-object":160}],177:[function(k,D,i){arguments[4][71][0].apply(i,arguments)},{dup:71}],178:[function(k,D,i){"use strict";var y=k("./_library"),p=k("./_global"),S=k("./_ctx"),A=k("./_classof"),m=k("./_export"),f=k("./_is-object"),d=k("./_a-function"),l=k("./_an-instance"),o=k("./_for-of"),n=k("./_species-constructor"),t=k("./_task").set,a=k("./_microtask")(),e=k("./_new-promise-capability"),u=k("./_perform"),r=k("./_user-agent"),s=k("./_promise-resolve"),c="Promise",h=p.TypeError,g=p.process,v=g&&g.versions,b=v&&v.v8||"",w=p[c],x=A(g)=="process",T=function(){},O,E,C,I,_=E=e.f,F=!!function(){try{var U=w.resolve(1),V=(U.constructor={})[k("./_wks")("species")]=function(Q){Q(T,T)};return(x||typeof PromiseRejectionEvent=="function")&&U.then(T)instanceof V&&b.indexOf("6.6")!==0&&r.indexOf("Chrome/66")===-1}catch(Q){}}(),R=function(V){var Q;return f(V)&&typeof(Q=V.then)=="function"?Q:!1},B=function(V,Q){if(V._n)return;V._n=!0;var G=V._c;a(function(){for(var te=V._v,$=V._s==1,le=0,re=function(Re){var Pe=$?Re.ok:Re.fail,Je=Re.resolve,Ve=Re.reject,ct=Re.domain,Ue,ue,rt;try{Pe?($||(V._h==2&&P(V),V._h=1),Pe===!0?Ue=te:(ct&&ct.enter(),Ue=Pe(te),ct&&(ct.exit(),rt=!0)),Ue===Re.promise?Ve(h("Promise-chain cycle")):(ue=R(Ue))?ue.call(Ue,Je,Ve):Je(Ue)):Ve(te)}catch(ge){ct&&!rt&&ct.exit(),Ve(ge)}};G.length>le;)re(G[le++]);V._c=[],V._n=!1,Q&&!V._h&&M(V)})},M=function(V){t.call(p,function(){var Q=V._v,G=X(V),te,$,le;if(G&&(te=u(function(){x?g.emit("unhandledRejection",Q,V):($=p.onunhandledrejection)?$({promise:V,reason:Q}):(le=p.console)&&le.error&&le.error("Unhandled promise rejection",Q)}),V._h=x||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},P=function(V){t.call(p,function(){var Q;x?g.emit("rejectionHandled",V):(Q=p.onrejectionhandled)&&Q({promise:V,reason:V._v})})},z=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()),B(Q,!0)},W=function U(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=R(V))?a(function(){var te={_w:Q,_d:!1};try{G.call(V,S(U,te,1),S(z,te,1))}catch($){z.call(te,$)}}):(Q._v=V,Q._s=1,B(Q,!1))}catch(te){z.call({_w:Q,_d:!1},te)}};F||(w=function(V){l(this,w,c,"_h"),d(V),O.call(this);try{V(S(W,this,1),S(z,this,1))}catch(Q){z.call(this,Q)}},O=function(V){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},O.prototype=k("./_redefine-all")(w.prototype,{then:function(V,Q){var G=_(n(this,w));return G.ok=typeof V=="function"?V:!0,G.fail=typeof Q=="function"&&Q,G.domain=x?g.domain:void 0,this._c.push(G),this._a&&this._a.push(G),this._s&&B(this,!1),G.promise},catch:function(V){return this.then(void 0,V)}}),C=function(){var V=new O;this.promise=V,this.resolve=S(W,V,1),this.reject=S(z,V,1)},e.f=_=function(V){return V===w||V===I?new C(V):E(V)}),m(m.G+m.W+m.F*!F,{Promise:w}),k("./_set-to-string-tag")(w,c),k("./_set-species")(c),I=k("./_core")[c],m(m.S+m.F*!F,c,{reject:function(V){var Q=_(this),G=Q.reject;return G(V),Q.promise}}),m(m.S+m.F*(y||!F),c,{resolve:function(V){return s(y&&this===I?w:this,V)}}),m(m.S+m.F*!(F&&k("./_iter-detect")(function(U){w.all(U).catch(T)})),c,{all:function(V){var Q=this,G=_(Q),te=G.resolve,$=G.reject,le=u(function(){var re=[],Se=0,Re=1;o(V,!1,function(Pe){var Je=Se++,Ve=!1;re.push(void 0),Re++,Q.resolve(Pe).then(function(ct){if(Ve)return;Ve=!0,re[Je]=ct,--Re||te(re)},$)}),--Re||te(re)});return le.e&&$(le.v),G.promise},race:function(V){var Q=this,G=_(Q),te=G.reject,$=u(function(){o(V,!1,function(le){Q.resolve(le).then(G.resolve,te)})});return $.e&&te($.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(k,D,i){var y=k("./_export"),p=k("./_to-absolute-index"),S=String.fromCharCode,A=String.fromCodePoint;y(y.S+y.F*(!!A&&A.length!=1),"String",{fromCodePoint:function(f){for(var d=[],l=arguments.length,o=0,n;l>o;){if(n=+arguments[o++],p(n,1114111)!==n)throw RangeError(n+" is not a valid code point");d.push(n<65536?S(n):S(((n-=65536)>>10)+55296,n%1024+56320))}return d.join("")}})},{"./_export":107,"./_to-absolute-index":156}],180:[function(k,D,i){"use strict";var y=k("./_string-at")(!0);k("./_iter-define")(String,"String",function(p){this._t=String(p),this._i=0},function(){var p=this._t,S=this._i,A;return S>=p.length?{value:void 0,done:!0}:(A=y(p,S),this._i+=A.length,{value:A,done:!1})})},{"./_iter-define":122,"./_string-at":154}],181:[function(k,D,i){"use strict";var y=k("./_global"),p=k("./_has"),S=k("./_descriptors"),A=k("./_export"),m=k("./_redefine"),f=k("./_meta").KEY,d=k("./_fails"),l=k("./_shared"),o=k("./_set-to-string-tag"),n=k("./_uid"),t=k("./_wks"),a=k("./_wks-ext"),e=k("./_wks-define"),u=k("./_enum-keys"),r=k("./_is-array"),s=k("./_an-object"),c=k("./_is-object"),h=k("./_to-object"),g=k("./_to-iobject"),v=k("./_to-primitive"),b=k("./_property-desc"),w=k("./_object-create"),x=k("./_object-gopn-ext"),T=k("./_object-gopd"),O=k("./_object-gops"),E=k("./_object-dp"),C=k("./_object-keys"),I=T.f,_=E.f,F=x.f,R=y.Symbol,B=y.JSON,M=B&&B.stringify,X="prototype",P=t("_hidden"),z=t("toPrimitive"),W={}.propertyIsEnumerable,U=l("symbol-registry"),V=l("symbols"),Q=l("op-symbols"),G=Object[X],te=typeof R=="function"&&!!O.f,$=y.QObject,le=!$||!$[X]||!$[X].findChild,re=S&&d(function(){return w(_({},"a",{get:function(){return _(this,"a",{value:7}).a}})).a!=7})?function(be,Ce,Te){var he=I(G,Ce);he&&delete G[Ce],_(be,Ce,Te),he&&be!==G&&_(G,Ce,he)}:_,Se=function(Ce){var Te=V[Ce]=w(R[X]);return Te._k=Ce,Te},Re=te&&typeof R.iterator=="symbol"?function(be){return typeof be=="symbol"}:function(be){return be instanceof R},Pe=function(Ce,Te,he){return Ce===G&&Pe(Q,Te,he),s(Ce),Te=v(Te,!0),s(he),p(V,Te)?(he.enumerable?(p(Ce,P)&&Ce[P][Te]&&(Ce[P][Te]=!1),he=w(he,{enumerable:b(0,!1)})):(p(Ce,P)||_(Ce,P,b(1,{})),Ce[P][Te]=!0),re(Ce,Te,he)):_(Ce,Te,he)},Je=function(Ce,Te){s(Ce);for(var he=u(Te=g(Te)),ye=0,Ie=he.length,tt;Ie>ye;)Pe(Ce,tt=he[ye++],Te[tt]);return Ce},Ve=function(Ce,Te){return Te===void 0?w(Ce):Je(w(Ce),Te)},ct=function(Ce){var Te=W.call(this,Ce=v(Ce,!0));return this===G&&p(V,Ce)&&!p(Q,Ce)?!1:Te||!p(this,Ce)||!p(V,Ce)||p(this,P)&&this[P][Ce]?Te:!0},Ue=function(Ce,Te){if(Ce=g(Ce),Te=v(Te,!0),Ce===G&&p(V,Te)&&!p(Q,Te))return;var he=I(Ce,Te);return he&&p(V,Te)&&!(p(Ce,P)&&Ce[P][Te])&&(he.enumerable=!0),he},ue=function(Ce){for(var Te=F(g(Ce)),he=[],ye=0,Ie;Te.length>ye;)!p(V,Ie=Te[ye++])&&Ie!=P&&Ie!=f&&he.push(Ie);return he},rt=function(Ce){for(var Te=Ce===G,he=F(Te?Q:g(Ce)),ye=[],Ie=0,tt;he.length>Ie;)p(V,tt=he[Ie++])&&(Te?p(G,tt):!0)&&ye.push(V[tt]);return ye};te||(R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor!");var Ce=n(arguments.length>0?arguments[0]:void 0),Te=function he(ye){this===G&&he.call(Q,ye),p(this,P)&&p(this[P],Ce)&&(this[P][Ce]=!1),re(this,Ce,b(1,ye))};return S&&le&&re(G,Ce,{configurable:!0,set:Te}),Se(Ce)},m(R[X],"toString",function(){return this._k}),T.f=Ue,E.f=Pe,k("./_object-gopn").f=x.f=ue,k("./_object-pie").f=ct,O.f=rt,S&&!k("./_library")&&m(G,"propertyIsEnumerable",ct,!0),a.f=function(be){return Se(t(be))}),A(A.G+A.W+A.F*!te,{Symbol:R});for(var ge="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Z=0;ge.length>Z;)t(ge[Z++]);for(var Y=C(t.store),ee=0;Y.length>ee;)e(Y[ee++]);A(A.S+A.F*!te,"Symbol",{for:function(Ce){return p(U,Ce+="")?U[Ce]:U[Ce]=R(Ce)},keyFor:function(Ce){if(!Re(Ce))throw TypeError(Ce+" is not a symbol!");for(var Te in U)if(U[Te]===Ce)return Te},useSetter:function(){le=!0},useSimple:function(){le=!1}}),A(A.S+A.F*!te,"Object",{create:Ve,defineProperty:Pe,defineProperties:Je,getOwnPropertyDescriptor:Ue,getOwnPropertyNames:ue,getOwnPropertySymbols:rt});var fe=d(function(){O.f(1)});A(A.S+A.F*fe,"Object",{getOwnPropertySymbols:function(Ce){return O.f(h(Ce))}}),B&&A(A.S+A.F*(!te||d(function(){var be=R();return M([be])!="[null]"||M({a:be})!="{}"||M(Object(be))!="{}"})),"JSON",{stringify:function(Ce){for(var Te=[Ce],he=1,ye,Ie;arguments.length>he;)Te.push(arguments[he++]);return Ie=ye=Te[1],!c(ye)&&Ce===void 0||Re(Ce)?void 0:(r(ye)||(ye=function(pt,st){if(typeof Ie=="function"&&(st=Ie.call(this,pt,st)),!Re(st))return st}),Te[1]=ye,M.apply(B,Te))}}),R[X][z]||k("./_hide")(R[X],z,R[X].valueOf),o(R,"Symbol"),o(Math,"Math",!0),o(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(k,D,i){var y=k("./_export"),p=k("./_object-to-array")(!0);y(y.S,"Object",{entries:function(A){return p(A)}})},{"./_export":107,"./_object-to-array":143}],183:[function(k,D,i){"use strict";var y=k("./_export"),p=k("./_core"),S=k("./_global"),A=k("./_species-constructor"),m=k("./_promise-resolve");y(y.P+y.R,"Promise",{finally:function(d){var l=A(this,p.Promise||S.Promise),o=typeof d=="function";return this.then(o?function(n){return m(l,d()).then(function(){return n})}:d,o?function(n){return m(l,d()).then(function(){throw n})}:d)}})},{"./_core":99,"./_export":107,"./_global":110,"./_promise-resolve":145,"./_species-constructor":153}],184:[function(k,D,i){"use strict";var y=k("./_export"),p=k("./_new-promise-capability"),S=k("./_perform");y(y.S,"Promise",{try:function(m){var f=p.f(this),d=S(m);return(d.e?f.reject:f.resolve)(d.v),f.promise}})},{"./_export":107,"./_new-promise-capability":129,"./_perform":144}],185:[function(k,D,i){k("./_wks-define")("asyncIterator")},{"./_wks-define":164}],186:[function(k,D,i){k("./_wks-define")("observable")},{"./_wks-define":164}],187:[function(k,D,i){k("./es6.array.iterator");for(var y=k("./_global"),p=k("./_hide"),S=k("./_iterators"),A=k("./_wks")("toStringTag"),m="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<m.length;f++){var d=m[f],l=y[d],o=l&&l.prototype;o&&!o[A]&&p(o,A,d),S[d]=S.Array}},{"./_global":110,"./_hide":112,"./_iterators":125,"./_wks":166,"./es6.array.iterator":169}],188:[function(k,D,i){var y=k("./_export"),p=k("./_task");y(y.G+y.B,{setImmediate:p.set,clearImmediate:p.clear})},{"./_export":107,"./_task":155}],189:[function(k,D,i){(function(y){"use strict";var p=k("babel-runtime/helpers/typeof"),S=A(p);function A(v){return v&&v.__esModule?v:{default:v}}function m(v){return Array.isArray?Array.isArray(v):g(v)==="[object Array]"}i.isArray=m;function f(v){return typeof v=="boolean"}i.isBoolean=f;function d(v){return v===null}i.isNull=d;function l(v){return v==null}i.isNullOrUndefined=l;function o(v){return typeof v=="number"}i.isNumber=o;function n(v){return typeof v=="string"}i.isString=n;function t(v){return(typeof v=="undefined"?"undefined":(0,S.default)(v))==="symbol"}i.isSymbol=t;function a(v){return v===void 0}i.isUndefined=a;function e(v){return g(v)==="[object RegExp]"}i.isRegExp=e;function u(v){return(typeof v=="undefined"?"undefined":(0,S.default)(v))==="object"&&v!==null}i.isObject=u;function r(v){return g(v)==="[object Date]"}i.isDate=r;function s(v){return g(v)==="[object Error]"||v instanceof Error}i.isError=s;function c(v){return typeof v=="function"}i.isFunction=c;function h(v){return v===null||typeof v=="boolean"||typeof v=="number"||typeof v=="string"||(typeof v=="undefined"?"undefined":(0,S.default)(v))==="symbol"||typeof v=="undefined"}i.isPrimitive=h,i.isBuffer=y.isBuffer;function g(v){return Object.prototype.toString.call(v)}}).call(this,{isBuffer:k("../../is-buffer/index.js")})},{"../../is-buffer/index.js":197,"babel-runtime/helpers/typeof":67}],190:[function(k,D,i){"use strict";var y=k("babel-runtime/helpers/typeof"),p=S(y);function S(A){return A&&A.__esModule?A:{default:A}}(function(A){"use strict";var m=function(){var n=/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,a=/[^-+\dA-Z]/g;return function(e,u,r,s){if(arguments.length===1&&o(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(m.masks[u]||u||m.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",g=e[h+"Date"](),v=e[h+"Day"](),b=e[h+"Month"](),w=e[h+"FullYear"](),x=e[h+"Hours"](),T=e[h+"Minutes"](),O=e[h+"Seconds"](),E=e[h+"Milliseconds"](),C=r?0:e.getTimezoneOffset(),I=d(e),_=l(e),F={d:g,dd:f(g),ddd:m.i18n.dayNames[v],dddd:m.i18n.dayNames[v+7],m:b+1,mm:f(b+1),mmm:m.i18n.monthNames[b],mmmm:m.i18n.monthNames[b+12],yy:String(w).slice(2),yyyy:w,h:x%12||12,hh:f(x%12||12),H:x,HH:f(x),M:T,MM:f(T),s:O,ss:f(O),l:f(E,3),L:f(Math.round(E/10)),t:x<12?"a":"p",tt:x<12?"am":"pm",T:x<12?"A":"P",TT:x<12?"AM":"PM",Z:s?"GMT":r?"UTC":(String(e).match(t)||[""]).pop().replace(a,""),o:(C>0?"-":"+")+f(Math.floor(Math.abs(C)/60)*100+Math.abs(C)%60,4),S:["th","st","nd","rd"][g%10>3?0:(g%100-g%10!=10)*g%10],W:I,N:_};return u.replace(n,function(R){return R in F?F[R]:R.slice(1,R.length-1)})}}();m.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"},m.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(n,t){for(n=String(n),t=t||2;n.length<t;)n="0"+n;return n}function d(n){var t=new Date(n.getFullYear(),n.getMonth(),n.getDate());t.setDate(t.getDate()-(t.getDay()+6)%7+3);var a=new Date(t.getFullYear(),0,4);a.setDate(a.getDate()-(a.getDay()+6)%7+3);var e=t.getTimezoneOffset()-a.getTimezoneOffset();t.setHours(t.getHours()-e);var u=(t-a)/(864e5*7);return 1+Math.floor(u)}function l(n){var t=n.getDay();return t===0&&(t=7),t}function o(n){return n===null?"null":n===void 0?"undefined":(typeof n=="undefined"?"undefined":(0,p.default)(n))!=="object"?typeof n=="undefined"?"undefined":(0,p.default)(n):Array.isArray(n)?"array":{}.toString.call(n).slice(8,-1).toLowerCase()}typeof define=="function"&&define.amd?define(function(){return m}):(typeof i=="undefined"?"undefined":(0,p.default)(i))==="object"?D.exports=m:A.dateFormat=m})(void 0)},{"babel-runtime/helpers/typeof":67}],191:[function(k,D,i){/*!
* 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=p;function p(S){var A=""+S,m=y.exec(A);if(!m)return A;var f,d="",l=0,o=0;for(l=m.index;l<A.length;l++){switch(A.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}o!==l&&(d+=A.substring(o,l)),o=l+1,d+=f}return o!==l?d+A.substring(o,l):d}},{}],192:[function(k,D,i){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,o,n,t,a;if(this._events||(this._events={}),f==="error"&&(!this._events.error||A(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],m(l))return!1;if(p(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:n=Array.prototype.slice.call(arguments,1),l.apply(this,n)}else if(A(l))for(n=Array.prototype.slice.call(arguments,1),a=l.slice(),o=a.length,t=0;t<o;t++)a[t].apply(this,n);return!0},y.prototype.addListener=function(f,d){var l;if(!p(d))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",f,p(d.listener)?d.listener:d),this._events[f]?A(this._events[f])?this._events[f].push(d):this._events[f]=[this._events[f],d]:this._events[f]=d,A(this._events[f])&&!this._events[f].warned&&(m(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(!p(d))throw TypeError("listener must be a function");var l=!1;function o(){this.removeListener(f,o),l||(l=!0,d.apply(this,arguments))}return o.listener=d,this.on(f,o),this},y.prototype.removeListener=function(f,d){var l,o,n,t;if(!p(d))throw TypeError("listener must be a function");if(!this._events||!this._events[f])return this;if(l=this._events[f],n=l.length,o=-1,l===d||p(l.listener)&&l.listener===d)delete this._events[f],this._events.removeListener&&this.emit("removeListener",f,d);else if(A(l)){for(t=n;t-- >0;)if(l[t]===d||l[t].listener&&l[t].listener===d){o=t;break}if(o<0)return this;l.length===1?(l.length=0,delete this._events[f]):l.splice(o,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],p(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=[]:p(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(p(d))return 1;if(d)return d.length}return 0},y.listenerCount=function(f,d){return f.listenerCount(d)};function p(f){return typeof f=="function"}function S(f){return typeof f=="number"}function A(f){return typeof f=="object"&&f!==null}function m(f){return f===void 0}},{}],193:[function(k,D,i){var y=k("http"),p=D.exports;for(var S in y)y.hasOwnProperty(S)&&(p[S]=y[S]);p.request=function(A,m){return A||(A={}),A.scheme="https",A.protocol="https:",y.request.call(this,A,m)}},{http:231}],194:[function(k,D,i){/*!
* humanize-ms - index.js
* Copyright(c) 2014 dead_horse <dead_horse@qq.com>
* MIT Licensed
*/"use strict";var y=k("util"),p=k("ms");D.exports=function(S){if(typeof S=="number")return S;var A=p(S);if(A===void 0){var m=new Error(y.format("humanize-ms(%j) result undefined",S));console.warn(m.stack)}return A}},{ms:204,util:243}],195:[function(k,D,i){i.read=function(y,p,S,A,m){var f,d,l=m*8-A-1,o=(1<<l)-1,n=o>>1,t=-7,a=S?m-1:0,e=S?-1:1,u=y[p+a];for(a+=e,f=u&(1<<-t)-1,u>>=-t,t+=l;t>0;f=f*256+y[p+a],a+=e,t-=8);for(d=f&(1<<-t)-1,f>>=-t,t+=A;t>0;d=d*256+y[p+a],a+=e,t-=8);if(f===0)f=1-n;else{if(f===o)return d?NaN:(u?-1:1)*Infinity;d=d+Math.pow(2,A),f=f-n}return(u?-1:1)*d*Math.pow(2,f-A)},i.write=function(y,p,S,A,m,f){var d,l,o,n=f*8-m-1,t=(1<<n)-1,a=t>>1,e=m===23?Math.pow(2,-24)-Math.pow(2,-77):0,u=A?0:f-1,r=A?1:-1,s=p<0||p===0&&1/p<0?1:0;for(p=Math.abs(p),isNaN(p)||p===Infinity?(l=isNaN(p)?1:0,d=t):(d=Math.floor(Math.log(p)/Math.LN2),p*(o=Math.pow(2,-d))<1&&(d--,o*=2),d+a>=1?p+=e/o:p+=e*Math.pow(2,1-a),p*o>=2&&(d++,o/=2),d+a>=t?(l=0,d=t):d+a>=1?(l=(p*o-1)*Math.pow(2,m),d=d+a):(l=p*Math.pow(2,a-1)*Math.pow(2,m),d=0));m>=8;y[S+u]=l&255,u+=r,l/=256,m-=8);for(d=d<<m|l,n+=m;n>0;y[S+u]=d&255,u+=r,d/=256,n-=8);y[S+u-r]|=s*128}},{}],196:[function(k,D,i){typeof Object.create=="function"?D.exports=function(p,S){S&&(p.super_=S,p.prototype=Object.create(S.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}))}:D.exports=function(p,S){if(S){p.super_=S;var A=function(){};A.prototype=S.prototype,p.prototype=new A,p.prototype.constructor=p}}},{}],197:[function(k,D,i){/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/D.exports=function(S){return S!=null&&(y(S)||p(S)||!!S._isBuffer)};function y(S){return!!S.constructor&&typeof S.constructor.isBuffer=="function"&&S.constructor.isBuffer(S)}function p(S){return typeof S.readFloatLE=="function"&&typeof S.slice=="function"&&y(S.slice(0,0))}},{}],198:[function(k,D,i){var y={}.toString;D.exports=Array.isArray||function(p){return y.call(p)=="[object Array]"}},{}],199:[function(require,module,exports){(function(global){(function(k,D){typeof exports=="object"&&typeof module!="undefined"?module.exports=D(k):typeof define=="function"&&define.amd?define(D):D(k)})(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(k){buffer=void 0}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",b64tab=function(k){for(var D={},i=0,y=k.length;i<y;i++)D[k.charAt(i)]=i;return D}(b64chars),fromCharCode=String.fromCharCode,cb_utob=function(D){if(D.length<2){var i=D.charCodeAt(0);return i<128?D:i<2048?fromCharCode(192|i>>>6)+fromCharCode(128|i&63):fromCharCode(224|i>>>12&15)+fromCharCode(128|i>>>6&63)+fromCharCode(128|i&63)}else{var i=65536+(D.charCodeAt(0)-55296)*1024+(D.charCodeAt(1)-56320);return fromCharCode(240|i>>>18&7)+fromCharCode(128|i>>>12&63)+fromCharCode(128|i>>>6&63)+fromCharCode(128|i&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 i=[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),p=[b64chars.charAt(y>>>18),b64chars.charAt(y>>>12&63),i>=2?"=":b64chars.charAt(y>>>6&63),i>=1?"=":b64chars.charAt(y&63)];return p.join("")},btoa=global.btoa?function(k){return global.btoa(k)}:function(k){return k.replace(/[\s\S]{1,3}/g,cb_encode)},_encode=function(D){var i=Object.prototype.toString.call(D)==="[object Uint8Array]";return i?D.toString("base64"):btoa(utob(String(D)))},encode=function(D,i){return i?_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 i=(7&D.charCodeAt(0))<<18|(63&D.charCodeAt(1))<<12|(63&D.charCodeAt(2))<<6|63&D.charCodeAt(3),y=i-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 i=D.length,y=i%4,p=(i>0?b64tab[D.charAt(0)]<<18:0)|(i>1?b64tab[D.charAt(1)]<<12:0)|(i>2?b64tab[D.charAt(2)]<<6:0)|(i>3?b64tab[D.charAt(3)]:0),S=[fromCharCode(p>>>16),fromCharCode(p>>>8&255),fromCharCode(p&255)];return S.length-=[0,0,2,1][y],S.join("")},_atob=global.atob?function(k){return global.atob(k)}:function(k){return k.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(k){return(k.constructor===buffer.constructor?k:buffer.from(k,"base64")).toString()}:function(k){return(k.constructor===buffer.constructor?k:new buffer(k,"base64")).toString()}:function(k){return btou(_atob(k))},decode=function(D){return _decode(String(D).replace(/[-_]/g,function(i){return i=="-"?"+":"/"}).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(k){return encode(this,k)})),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(k,D,i){/*!
* merge-descriptors
* Copyright(c) 2014 Jonathan Ong
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*/"use strict";D.exports=p;var y=Object.prototype.hasOwnProperty;function p(S,A,m){if(!S)throw new TypeError("argument dest is required");if(!A)throw new TypeError("argument src is required");return m===void 0&&(m=!0),Object.getOwnPropertyNames(A).forEach(function(d){if(!m&&y.call(S,d))return;var l=Object.getOwnPropertyDescriptor(A,d);Object.defineProperty(S,d,l)}),S}},{}],201:[function(k,D,i){"use strict";function y(){this._types=Object.create(null),this._extensions=Object.create(null);for(var p=0;p<arguments.length;p++)this.define(arguments[p]);this.define=this.define.bind(this),this.getType=this.getType.bind(this),this.getExtension=this.getExtension.bind(this)}y.prototype.define=function(p,S){for(var A in p){var m=p[A].map(function(l){return l.toLowerCase()});A=A.toLowerCase();for(var f=0;f<m.length;f++){var d=m[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 "'+A+'". Pass `force=true` to allow this, otherwise remove "'+d+'" from the list of extensions for "'+A+'".');this._types[d]=A}if(S||!this._extensions[A]){var d=m[0];this._extensions[A]=d[0]!="*"?d:d.substr(1)}}},y.prototype.getType=function(p){p=String(p);var S=p.replace(/^.*[/\\]/,"").toLowerCase(),A=S.replace(/^.*\./,"").toLowerCase(),m=S.length<p.length,f=A.length<S.length-1;return(f||!m)&&this._types[A]||null},y.prototype.getExtension=function(p){return p=/^\s*([^;\s]*)/.test(p)&&RegExp.$1,p&&this._extensions[p.toLowerCase()]||null},D.exports=y},{}],202:[function(k,D,i){"use strict";var y=k("./Mime");D.exports=new y(k("./types/standard"))},{"./Mime":201,"./types/standard":203}],203:[function(k,D,i){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(k,D,i){var y=1e3,p=y*60,S=p*60,A=S*24,m=A*7,f=A*365.25;D.exports=function(t,a){a=a||{};var e=typeof t;if(e==="string"&&t.length>0)return d(t);if(e==="number"&&isFinite(t))return a.long?o(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 a=/^(-?(?:\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(!a)return;var e=parseFloat(a[1]),u=(a[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*m;case"days":case"day":case"d":return e*A;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*p;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 a=Math.abs(t);return a>=A?Math.round(t/A)+"d":a>=S?Math.round(t/S)+"h":a>=p?Math.round(t/p)+"m":a>=y?Math.round(t/y)+"s":t+"ms"}function o(t){var a=Math.abs(t);return a>=A?n(t,a,A,"day"):a>=S?n(t,a,S,"hour"):a>=p?n(t,a,p,"minute"):a>=y?n(t,a,y,"second"):t+" ms"}function n(t,a,e,u){var r=a>=e*1.5;return Math.round(t/e)+" "+u+(r?"s":"")}},{}],205:[function(k,D,i){(function(y){function p(f,d){for(var l=0,o=f.length-1;o>=0;o--){var n=f[o];n==="."?f.splice(o,1):n===".."?(f.splice(o,1),l++):l&&(f.splice(o,1),l--)}if(d)for(;l--;l)f.unshift("..");return f}i.resolve=function(){for(var f="",d=!1,l=arguments.length-1;l>=-1&&!d;l--){var o=l>=0?arguments[l]:y.cwd();if(typeof o!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!o)continue;f=o+"/"+f,d=o.charAt(0)==="/"}return f=p(A(f.split("/"),function(n){return!!n}),!d).join("/"),(d?"/":"")+f||"."},i.normalize=function(f){var d=i.isAbsolute(f),l=m(f,-1)==="/";return f=p(A(f.split("/"),function(o){return!!o}),!d).join("/"),!f&&!d&&(f="."),f&&l&&(f+="/"),(d?"/":"")+f},i.isAbsolute=function(f){return f.charAt(0)==="/"},i.join=function(){var f=Array.prototype.slice.call(arguments,0);return i.normalize(A(f,function(d,l){if(typeof d!="string")throw new TypeError("Arguments to path.join must be strings");return d}).join("/"))},i.relative=function(f,d){f=i.resolve(f).substr(1),d=i.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 o=l(f.split("/")),n=l(d.split("/")),t=Math.min(o.length,n.length),a=t,e=0;e<t;e++)if(o[e]!==n[e]){a=e;break}for(var u=[],e=a;e<o.length;e++)u.push("..");return u=u.concat(n.slice(a)),u.join("/")},i.sep="/",i.delimiter=":",i.dirname=function(f){if(typeof f!="string"&&(f=f+""),f.length===0)return".";for(var d=f.charCodeAt(0),l=d===47,o=-1,n=!0,t=f.length-1;t>=1;--t)if(d=f.charCodeAt(t),d===47){if(!n){o=t;break}}else n=!1;return o===-1?l?"/":".":l&&o===1?"/":f.slice(0,o)};function S(f){typeof f!="string"&&(f=f+"");var d=0,l=-1,o=!0,n;for(n=f.length-1;n>=0;--n)if(f.charCodeAt(n)===47){if(!o){d=n+1;break}}else l===-1&&(o=!1,l=n+1);return l===-1?"":f.slice(d,l)}i.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},i.extname=function(f){typeof f!="string"&&(f=f+"");for(var d=-1,l=0,o=-1,n=!0,t=0,a=f.length-1;a>=0;--a){var e=f.charCodeAt(a);if(e===47){if(!n){l=a+1;break}continue}o===-1&&(n=!1,o=a+1),e===46?d===-1?d=a:t!==1&&(t=1):d!==-1&&(t=-1)}return d===-1||o===-1||t===0||t===1&&d===o-1&&d===l+1?"":f.slice(d,o)};function A(f,d){if(f.filter)return f.filter(d);for(var l=[],o=0;o<f.length;o++)d(f[o],o,f)&&l.push(f[o]);return l}var m="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,k("_process"))},{_process:208}],206:[function(k,D,i){(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 p={function:!0,object:!0},S=p[typeof window]&&window||this,A=S,m=p[typeof i]&&i,f=p[typeof D]&&D&&!D.nodeType&&D,d=m&&f&&typeof y=="object"&&y;d&&(d.global===d||d.window===d||d.self===d)&&(S=d);var l=Math.pow(2,53)-1,o=/\bOpera/,n=this,t=Object.prototype,a=t.hasOwnProperty,e=t.toString;function u(E){return E=String(E),E.charAt(0).toUpperCase()+E.slice(1)}function r(E,C,I){var _={"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 C&&I&&/^Win/i.test(E)&&!/^Windows Phone /i.test(E)&&(_=_[/[\d.]+$/.exec(E)])&&(E="Windows "+_),E=String(E),C&&I&&(E=E.replace(RegExp(C,"i"),I)),E=c(E.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]),E}function s(E,C){var I=-1,_=E?E.length:0;if(typeof _=="number"&&_>-1&&_<=l)for(;++I<_;)C(E[I],I,E);else h(E,C)}function c(E){return E=x(E),/^(?:webOS|i(?:OS|P))/.test(E)?E:u(E)}function h(E,C){for(var I in E)a.call(E,I)&&C(E[I],I,E)}function g(E){return E==null?u(E):e.call(E).slice(8,-1)}function v(E,C){var I=E!=null?typeof E[C]:"number";return!/^(?:boolean|number|string|undefined)$/.test(I)&&(I=="object"?!!E[C]:!0)}function b(E){return String(E).replace(/([ -])(?!$)/g,"$1?")}function w(E,C){var I=null;return s(E,function(_,F){I=C(I,_,F,E)}),I}function x(E){return String(E).replace(/^ +| +$/g,"")}function T(E){var C=S,I=E&&typeof E=="object"&&g(E)!="String";I&&(C=E,E=null);var _=C.navigator||{},F=_.userAgent||"";E||(E=F);var R=I||n==A,B=I?!!_.likeChrome:/\bChrome\b/.test(E)&&!/internal|\n/i.test(e.toString()),M="Object",X=I?M:"ScriptBridgingProxyObject",P=I?M:"Environment",z=I&&C.java?"JavaPackage":g(C.java),W=I?M:"RuntimeObject",U=/\bJava/.test(z)&&C.java,V=U&&g(C.environment)==P,Q=U?"a":"\u03B1",G=U?"b":"\u03B2",te=C.document||{},$=C.operamini||C.opera,le=o.test(le=I&&$?$["[[Class]]"]:g($))?le:$=null,re,Se=E,Re=[],Pe=null,Je=E==F,Ve=Je&&$&&typeof $.version=="function"&&$.version(),ct,Ue=Y([{label:"EdgeHTML",pattern:"Edge"},"Trident",{label:"WebKit",pattern:"AppleWebKit"},"iCab","Presto","NetFront","Tasman","KHTML","Gecko"]),ue=fe(["Adobe AIR","Arora","Avant Browser","Breach","Camino","Electron","Epiphany","Fennec","Flock","Galeon","GreenBrowser","iCab","Iceweasel","K-Meleon","Konqueror","Lunascape","Maxthon",{label:"Microsoft Edge",pattern:"Edge"},"Midori","Nook Browser","PaleMoon","PhantomJS","Raven","Rekonq","RockMelt",{label:"Samsung Internet",pattern:"SamsungBrowser"},"SeaMonkey",{label:"Silk",pattern:"(?:Cloud9|Silk-Accelerated)"},"Sleipnir","SlimBrowser",{label:"SRWare Iron",pattern:"Iron"},"Sunrise","Swiftfox","Waterfox","WebPositive","Opera Mini",{label:"Opera Mini",pattern:"OPiOS"},"Opera",{label:"Opera",pattern:"OPR"},"Chrome",{label:"Chrome Mobile",pattern:"(?:CriOS|CrMo)"},{label:"Firefox",pattern:"(?:Firefox|Minefield)"},{label:"Firefox for iOS",pattern:"FxiOS"},{label:"IE",pattern:"IEMobile"},{label:"IE",pattern:"MSIE"},"Safari"]),rt=Ce([{label:"BlackBerry",pattern:"BB10"},"BlackBerry",{label:"Galaxy S",pattern:"GT-I9000"},{label:"Galaxy S2",pattern:"GT-I9100"},{label:"Galaxy S3",pattern:"GT-I9300"},{label:"Galaxy S4",pattern:"GT-I9500"},{label:"Galaxy S5",pattern:"SM-G900"},{label:"Galaxy S6",pattern:"SM-G920"},{label:"Galaxy S6 Edge",pattern:"SM-G925"},{label:"Galaxy S7",pattern:"SM-G930"},{label:"Galaxy S7 Edge",pattern:"SM-G935"},"Google TV","Lumia","iPad","iPod","iPhone","Kindle",{label:"Kindle Fire",pattern:"(?:Cloud9|Silk-Accelerated)"},"Nexus","Nook","PlayBook","PlayStation Vita","PlayStation","TouchPad","Transformer",{label:"Wii U",pattern:"WiiU"},"Wii","Xbox One",{label:"Xbox 360",pattern:"Xbox"},"Xoom"]),ge=ee({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}}),Z=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(Ie){return w(Ie,function(tt,pt){return tt||RegExp("\\b"+(pt.pattern||b(pt))+"\\b","i").exec(E)&&(pt.label||pt)})}function ee(Ie){return w(Ie,function(tt,pt,st){return tt||(pt[rt]||pt[/^[a-z]+(?: +[a-z]+\b)*/i.exec(rt)]||RegExp("\\b"+b(st)+"(?:\\b|\\w*\\d)","i").exec(E))&&st})}function fe(Ie){return w(Ie,function(tt,pt){return tt||RegExp("\\b"+(pt.pattern||b(pt))+"\\b","i").exec(E)&&(pt.label||pt)})}function be(Ie){return w(Ie,function(tt,pt){var st=pt.pattern||b(pt);return!tt&&(tt=RegExp("\\b"+st+"(?:/[\\d.]+|[ \\w.]*)","i").exec(E))&&(tt=r(tt,st,pt.label||pt)),tt})}function Ce(Ie){return w(Ie,function(tt,pt){var st=pt.pattern||b(pt);return!tt&&(tt=RegExp("\\b"+st+" *\\d+[.\\w_]*","i").exec(E)||RegExp("\\b"+st+" *\\w+-[\\w]*","i").exec(E)||RegExp("\\b"+st+"(?:; *(?:[a-z]+[_-])?[a-z]+\\d+|[^ ();-]*)","i").exec(E))&&((tt=String(pt.label&&!RegExp(st,"i").test(pt.label)?pt.label:tt).split("/"))[1]&&!/[\d.]+/.test(tt[0])&&(tt[0]+=" "+tt[1]),pt=pt.label||pt,tt=c(tt[0].replace(RegExp(st,"i"),pt).replace(RegExp("; *(?:"+pt+"[_-])?","i")," ").replace(RegExp("("+pt+")[-_.]?(\\w)","i"),"$1 $2"))),tt})}function Te(Ie){return w(Ie,function(tt,pt){return tt||(RegExp(pt+"(?:-[\\d.]+/|(?: for [\\w-]+)?[ /-])([\\d.]+[^ ();/_-]*)","i").exec(E)||0)[1]||null})}function he(){return this.description||""}if(Ue&&(Ue=[Ue]),ge&&!rt&&(rt=Ce([ge])),(re=/\bGoogle TV\b/.exec(rt))&&(rt=re[0]),/\bSimulator\b/i.test(E)&&(rt=(rt?rt+" ":"")+"Simulator"),ue=="Opera Mini"&&/\bOPiOS\b/.test(E)&&Re.push("running in Turbo/Uncompressed mode"),ue=="IE"&&/\blike iPhone OS\b/.test(E)?(re=T(E.replace(/like iPhone OS/,"")),ge=re.manufacturer,rt=re.product):/^iP/.test(rt)?(ue||(ue="Safari"),Z="iOS"+((re=/ OS ([\d_]+)/i.exec(E))?" "+re[1].replace(/_/g,"."):"")):ue=="Konqueror"&&!/buntu/i.test(Z)?Z="Kubuntu":ge&&ge!="Google"&&(/Chrome/.test(ue)&&!/\bMobile Safari\b/i.test(E)||/\bVita\b/.test(rt))||/\bAndroid\b/.test(Z)&&/^Chrome/.test(ue)&&/\bVersion\//i.test(E)?(ue="Android Browser",Z=/\bAndroid\b/.test(Z)?Z:"Android"):ue=="Silk"?(/\bMobi/i.test(E)||(Z="Android",Re.unshift("desktop mode")),/Accelerated *= *true/i.test(E)&&Re.unshift("accelerated")):ue=="PaleMoon"&&(re=/\bFirefox\/([\d.]+)\b/.exec(E))?Re.push("identifying as Firefox "+re[1]):ue=="Firefox"&&(re=/\b(Mobile|Tablet|TV)\b/i.exec(E))?(Z||(Z="Firefox OS"),rt||(rt=re[1])):!ue||(re=!/\bMinefield\b/i.test(E)&&/\b(?:Firefox|Safari)\b/.exec(ue))?(ue&&!rt&&/[\/,]|^[^(]+?\)/.test(E.slice(E.indexOf(re+"/")+8))&&(ue=null),(re=rt||ge||Z)&&(rt||ge||/\b(?:Android|Symbian OS|Tablet OS|webOS)\b/.test(Z))&&(ue=/[a-z]+(?: Hat)?/i.exec(/\bAndroid\b/.test(Z)?Z:re)+" Browser")):ue=="Electron"&&(re=(/\bChrome\/([\d.]+)\b/.exec(E)||0)[1])&&Re.push("Chromium "+re),Ve||(Ve=Te(["(?:Cloud9|CriOS|CrMo|Edge|FxiOS|IEMobile|Iron|Opera ?Mini|OPiOS|OPR|Raven|SamsungBrowser|Silk(?!/[\\d.]+$))","Version",b(ue),"(?:Firefox|Minefield|NetFront)"])),(re=Ue=="iCab"&&parseFloat(Ve)>3&&"WebKit"||/\bOpera\b/.test(ue)&&(/\bOPR\b/.test(E)?"Blink":"Presto")||/\b(?:Midori|Nook|Safari)\b/i.test(E)&&!/^(?:Trident|EdgeHTML)$/.test(Ue)&&"WebKit"||!Ue&&/\bMSIE\b/i.test(E)&&(Z=="Mac OS"?"Tasman":"Trident")||Ue=="WebKit"&&/\bPlayStation\b(?! Vita\b)/i.test(ue)&&"NetFront")&&(Ue=[re]),ue=="IE"&&(re=(/; *(?:XBLWP|ZuneWP)(\d+)/i.exec(E)||0)[1])?(ue+=" Mobile",Z="Windows Phone "+(/\+$/.test(re)?re:re+".x"),Re.unshift("desktop mode")):/\bWPDesktop\b/i.test(E)?(ue="IE Mobile",Z="Windows Phone 8.x",Re.unshift("desktop mode"),Ve||(Ve=(/\brv:([\d.]+)/.exec(E)||0)[1])):ue!="IE"&&Ue=="Trident"&&(re=/\brv:([\d.]+)/.exec(E))&&(ue&&Re.push("identifying as "+ue+(Ve?" "+Ve:"")),ue="IE",Ve=re[1]),Je){if(v(C,"global"))if(U&&(re=U.lang.System,Se=re.getProperty("os.arch"),Z=Z||re.getProperty("os.name")+" "+re.getProperty("os.version")),V){try{Ve=C.require("ringo/engine").version.join("."),ue="RingoJS"}catch(Ie){(re=C.system)&&re.global.system==C.system&&(ue="Narwhal",Z||(Z=re[0].os||null))}ue||(ue="Rhino")}else typeof C.process=="object"&&!C.process.browser&&(re=C.process)&&(typeof re.versions=="object"&&(typeof re.versions.electron=="string"?(Re.push("Node "+re.versions.node),ue="Electron",Ve=re.versions.electron):typeof re.versions.nw=="string"&&(Re.push("Chromium "+Ve,"Node "+re.versions.node),ue="NW.js",Ve=re.versions.nw)),ue||(ue="Node.js",Se=re.arch,Z=re.platform,Ve=/[\d.]+/.exec(re.version),Ve=Ve?Ve[0]:null));else g(re=C.runtime)==X?(ue="Adobe AIR",Z=re.flash.system.Capabilities.os):g(re=C.phantom)==W?(ue="PhantomJS",Ve=(re=re.version||null)&&re.major+"."+re.minor+"."+re.patch):typeof te.documentMode=="number"&&(re=/\bTrident\/(\d+)/i.exec(E))?(Ve=[Ve,te.documentMode],(re=+re[1]+4)!=Ve[1]&&(Re.push("IE "+Ve[1]+" mode"),Ue&&(Ue[1]=""),Ve[1]=re),Ve=ue=="IE"?String(Ve[1].toFixed(1)):Ve[0]):typeof te.documentMode=="number"&&/^(?:Chrome|Firefox)\b/.test(ue)&&(Re.push("masking as "+ue+" "+Ve),ue="IE",Ve="11.0",Ue=["Trident"],Z="Windows");Z=Z&&c(Z)}if(Ve&&(re=/(?:[ab]|dp|pre|[ab]\d+pre)(?:\d+\+?)?$/i.exec(Ve)||/(?:alpha|beta)(?: ?\d)?/i.exec(E+";"+(Je&&_.appMinorVersion))||/\bMinefield\b/i.test(E)&&"a")&&(Pe=/b/i.test(re)?"beta":"alpha",Ve=Ve.replace(RegExp(re+"\\+?$"),"")+(Pe=="beta"?G:Q)+(/\d+\+?/.exec(re)||"")),ue=="Fennec"||ue=="Firefox"&&/\b(?:Android|Firefox OS)\b/.test(Z))ue="Firefox Mobile";else if(ue=="Maxthon"&&Ve)Ve=Ve.replace(/\.[\d.]+/,".x");else if(/\bXbox\b/i.test(rt))rt=="Xbox 360"&&(Z=null),rt=="Xbox 360"&&/\bIEMobile\b/.test(E)&&Re.unshift("mobile mode");else if((/^(?:Chrome|IE|Opera)$/.test(ue)||ue&&!rt&&!/Browser|Mobi/.test(ue))&&(Z=="Windows CE"||/Mobi/i.test(E)))ue+=" Mobile";else if(ue=="IE"&&Je)try{C.external===null&&Re.unshift("platform preview")}catch(Ie){Re.unshift("embedded")}else(/\bBlackBerry\b/.test(rt)||/\bBB10\b/.test(E))&&(re=(RegExp(rt.replace(/ +/g," *")+"/([.\\d]+)","i").exec(E)||0)[1]||Ve)?(re=[re,/BB10/.test(E)],Z=(re[1]?(rt=null,ge="BlackBerry"):"Device Software")+" "+re[0],Ve=null):this!=h&&rt!="Wii"&&(Je&&$||/Opera/.test(ue)&&/\b(?:MSIE|Firefox)\b/i.test(E)||ue=="Firefox"&&/\bOS X (?:\d+\.){2,}/.test(Z)||ue=="IE"&&(Z&&!/^Win/.test(Z)&&Ve>5.5||/\bWindows XP\b/.test(Z)&&Ve>8||Ve==8&&!/\bTrident\b/.test(E)))&&!o.test(re=T.call(h,E.replace(o,"")+";"))&&re.name&&(re="ing as "+re.name+((re=re.version)?" "+re:""),o.test(ue)?(/\bIE\b/.test(re)&&Z=="Mac OS"&&(Z=null),re="identify"+re):(re="mask"+re,le?ue=c(le.replace(/([a-z])([A-Z])/g,"$1 $2")):ue="Opera",/\bIE\b/.test(re)&&(Z=null),Je||(Ve=null)),Ue=["Presto"],Re.push(re));(re=(/\bAppleWebKit\/([\d.]+\+?)/i.exec(E)||0)[1])&&(re=[parseFloat(re.replace(/\.(\d)$/,".0$1")),re],ue=="Safari"&&re[1].slice(-1)=="+"?(ue="WebKit Nightly",Pe="alpha",Ve=re[1].slice(0,-1)):(Ve==re[1]||Ve==(re[2]=(/\bSafari\/([\d.]+\+?)/i.exec(E)||0)[1]))&&(Ve=null),re[1]=(/\bChrome\/([\d.]+)/i.exec(E)||0)[1],re[0]==537.36&&re[2]==537.36&&parseFloat(re[1])>=28&&Ue=="WebKit"&&(Ue=["Blink"]),!Je||!B&&!re[1]?(Ue&&(Ue[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")):(Ue&&(Ue[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:Ue!="Blink"?"27":"28")),Ue&&(Ue[1]+=" "+(re+=typeof re=="number"?".x":/[.+]/.test(re)?"":"+")),ue=="Safari"&&(!Ve||parseInt(Ve)>45)&&(Ve=re)),ue=="Opera"&&(re=/\bzbov|zvav$/.exec(Z))?(ue+=" ",Re.unshift("desktop mode"),re=="zvav"?(ue+="Mini",Ve=null):ue+="Mobile",Z=Z.replace(RegExp(" *"+re+"$"),"")):ue=="Safari"&&/\bChrome\b/.exec(Ue&&Ue[1])&&(Re.unshift("desktop mode"),ue="Chrome Mobile",Ve=null,/\bOS X\b/.test(Z)?(ge="Apple",Z="iOS 4.3+"):Z=null),Ve&&Ve.indexOf(re=/[\d.]+$/.exec(Z))==0&&E.indexOf("/"+re+"-")>-1&&(Z=x(Z.replace(re,""))),Ue&&!/\b(?:Avant|Nook)\b/.test(ue)&&(/Browser|Lunascape|Maxthon/.test(ue)||ue!="Safari"&&/^iOS/.test(Z)&&/\bSafari\b/.test(Ue[1])||/^(?:Adobe|Arora|Breach|Midori|Opera|Phantom|Rekonq|Rock|Samsung Internet|Sleipnir|Web)/.test(ue)&&Ue[1])&&((re=Ue[Ue.length-1])&&Re.push(re)),Re.length&&(Re=["("+Re.join("; ")+")"]),ge&&rt&&rt.indexOf(ge)<0&&Re.push("on "+ge),rt&&Re.push((/^on /.test(Re[Re.length-1])?"":"on ")+rt),Z&&(re=/ ([\d.+]+)$/.exec(Z),ct=re&&Z.charAt(Z.length-re[0].length-1)=="/",Z={architecture:32,family:re&&!ct?Z.replace(re[0],""):Z,version:re?re[1]:null,toString:function(){var tt=this.version;return this.family+(tt&&!ct?" "+tt:"")+(this.architecture==64?" 64-bit":"")}}),(re=/\b(?:AMD|IA|Win|WOW|x86_|x)64\b/i.exec(Se))&&!/\bi686\b/i.test(Se)?(Z&&(Z.architecture=64,Z.family=Z.family.replace(RegExp(" *"+re),"")),ue&&(/\bWOW64\b/i.test(E)||Je&&/\w(?:86|32)$/.test(_.cpuClass||_.platform)&&!/\bWin64; x64\b/i.test(E))&&Re.unshift("32-bit")):Z&&/^OS X/.test(Z.family)&&ue=="Chrome"&&parseFloat(Ve)>=39&&(Z.architecture=64),E||(E=null);var ye={};return ye.description=E,ye.layout=Ue&&Ue[0],ye.manufacturer=ge,ye.name=ue,ye.prerelease=Pe,ye.product=rt,ye.ua=E,ye.version=ue&&Ve,ye.os=Z||{architecture:null,family:null,version:null,toString:function(){return"null"}},ye.parse=T,ye.toString=he,ye.version&&Re.unshift(Ve),ye.name&&Re.unshift(ue),Z&&ue&&!(Z==String(Z).split(" ")[0]&&(Z==ue.split(" ")[0]||rt))&&Re.push(rt?"("+Z+")":"on "+Z),Re.length&&(ye.description=Re.join(" ")),ye}var O=T();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(S.platform=O,define(function(){return O})):m&&f?h(O,function(E,C){m[C]=E}):S.platform=O}).call(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],207:[function(k,D,i){(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:p}:D.exports=y;function p(S,A,m,f){if(typeof S!="function")throw new TypeError('"callback" argument must be a function');var d=arguments.length,l,o;switch(d){case 0:case 1:return y.nextTick(S);case 2:return y.nextTick(function(){S.call(null,A)});case 3:return y.nextTick(function(){S.call(null,A,m)});case 4:return y.nextTick(function(){S.call(null,A,m,f)});default:for(l=new Array(d-1),o=0;o<l.length;)l[o++]=arguments[o];return y.nextTick(function(){S.apply(null,l)})}}}).call(this,k("_process"))},{_process:208}],208:[function(k,D,i){var y=D.exports={},p,S;function A(){throw new Error("setTimeout has not been defined")}function m(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?p=setTimeout:p=A}catch(s){p=A}try{typeof clearTimeout=="function"?S=clearTimeout:S=m}catch(s){S=m}})();function f(s){if(p===setTimeout)return setTimeout(s,0);if((p===A||!p)&&setTimeout)return p=setTimeout,setTimeout(s,0);try{return p(s,0)}catch(c){try{return p.call(null,s,0)}catch(h){return p.call(this,s,0)}}}function d(s){if(S===clearTimeout)return clearTimeout(s);if((S===m||!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=[],o=!1,n,t=-1;function a(){if(!o||!n)return;o=!1,n.length?l=n.concat(l):t=-1,l.length&&e()}function e(){if(o)return;var s=f(a);o=!0;for(var c=l.length;c;){for(n=l,l=[];++t<c;)n&&n[t].run();t=-1,c=l.length}n=null,o=!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&&!o&&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(k,D,i){(function(y){/*! https://mths.be/punycode v1.4.1 by @mathias */(function(p){var S=typeof i=="object"&&i&&!i.nodeType&&i,A=typeof D=="object"&&D&&!D.nodeType&&D,m=typeof y=="object"&&y;(m.global===m||m.window===m||m.self===m)&&(p=m);var f,d=2147483647,l=36,o=1,n=26,t=38,a=700,e=72,u=128,r="-",s=/^xn--/,c=/[^\x20-\x7E]/,h=/[\x2E\u3002\uFF0E\uFF61]/g,g={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},v=l-o,b=Math.floor,w=String.fromCharCode,x;function T(z){throw new RangeError(g[z])}function O(z,W){for(var U=z.length,V=[];U--;)V[U]=W(z[U]);return V}function E(z,W){var U=z.split("@"),V="";U.length>1&&(V=U[0]+"@",z=U[1]),z=z.replace(h,".");var Q=z.split("."),G=O(Q,W).join(".");return V+G}function C(z){for(var W=[],U=0,V=z.length,Q,G;U<V;)Q=z.charCodeAt(U++),Q>=55296&&Q<=56319&&U<V?(G=z.charCodeAt(U++),(G&64512)==56320?W.push(((Q&1023)<<10)+(G&1023)+65536):(W.push(Q),U--)):W.push(Q);return W}function I(z){return O(z,function(W){var U="";return W>65535&&(W-=65536,U+=w(W>>>10&1023|55296),W=56320|W&1023),U+=w(W),U}).join("")}function _(z){return z-48<10?z-22:z-65<26?z-65:z-97<26?z-97:l}function F(z,W){return z+22+75*(z<26)-((W!=0)<<5)}function R(z,W,U){var V=0;for(z=U?b(z/a):z>>1,z+=b(z/W);z>v*n>>1;V+=l)z=b(z/v);return b(V+(v+1)*z/(z+t))}function B(z){var W=[],U=z.length,V,Q=0,G=u,te=e,$,le,re,Se,Re,Pe,Je,Ve,ct;for($=z.lastIndexOf(r),$<0&&($=0),le=0;le<$;++le)z.charCodeAt(le)>=128&&T("not-basic"),W.push(z.charCodeAt(le));for(re=$>0?$+1:0;re<U;){for(Se=Q,Re=1,Pe=l;!(re>=U&&T("invalid-input"),Je=_(z.charCodeAt(re++)),(Je>=l||Je>b((d-Q)/Re))&&T("overflow"),Q+=Je*Re,Ve=Pe<=te?o:Pe>=te+n?n:Pe-te,Je<Ve);Pe+=l)ct=l-Ve,Re>b(d/ct)&&T("overflow"),Re*=ct;V=W.length+1,te=R(Q-Se,V,Se==0),b(Q/V)>d-G&&T("overflow"),G+=b(Q/V),Q%=V,W.splice(Q++,0,G)}return I(W)}function M(z){var W,U,V,Q,G,te,$,le,re,Se,Re,Pe=[],Je,Ve,ct,Ue;for(z=C(z),Je=z.length,W=u,U=0,G=e,te=0;te<Je;++te)Re=z[te],Re<128&&Pe.push(w(Re));for(V=Q=Pe.length,Q&&Pe.push(r);V<Je;){for($=d,te=0;te<Je;++te)Re=z[te],Re>=W&&Re<$&&($=Re);for(Ve=V+1,$-W>b((d-U)/Ve)&&T("overflow"),U+=($-W)*Ve,W=$,te=0;te<Je;++te)if(Re=z[te],Re<W&&++U>d&&T("overflow"),Re==W){for(le=U,re=l;!(Se=re<=G?o:re>=G+n?n:re-G,le<Se);re+=l)Ue=le-Se,ct=l-Se,Pe.push(w(F(Se+Ue%ct,0))),le=b(Ue/ct);Pe.push(w(F(le,0))),G=R(U,Ve,V==Q),U=0,++V}++U,++W}return Pe.join("")}function X(z){return E(z,function(W){return s.test(W)?B(W.slice(4).toLowerCase()):W})}function P(z){return E(z,function(W){return c.test(W)?"xn--"+M(W):W})}if(f={version:"1.4.1",ucs2:{decode:C,encode:I},decode:B,encode:M,toASCII:P,toUnicode:X},typeof define=="function"&&typeof define.amd=="object"&&define.amd)define("punycode",function(){return f});else if(S&&A)if(D.exports==S)A.exports=f;else for(x in f)f.hasOwnProperty(x)&&(S[x]=f[x]);else p.punycode=f})(this)}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],210:[function(k,D,i){"use strict";function y(S,A){return Object.prototype.hasOwnProperty.call(S,A)}D.exports=function(S,A,m,f){A=A||"&",m=m||"=";var d={};if(typeof S!="string"||S.length===0)return d;var l=/\+/g;S=S.split(A);var o=1e3;f&&typeof f.maxKeys=="number"&&(o=f.maxKeys);var n=S.length;o>0&&n>o&&(n=o);for(var t=0;t<n;++t){var a=S[t].replace(l,"%20"),e=a.indexOf(m),u,r,s,c;e>=0?(u=a.substr(0,e),r=a.substr(e+1)):(u=a,r=""),s=decodeURIComponent(u),c=decodeURIComponent(r),y(d,s)?p(d[s])?d[s].push(c):d[s]=[d[s],c]:d[s]=c}return d};var p=Array.isArray||function(S){return Object.prototype.toString.call(S)==="[object Array]"}},{}],211:[function(k,D,i){"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(m,f,d,l){return f=f||"&",d=d||"=",m===null&&(m=void 0),typeof m=="object"?S(A(m),function(o){var n=encodeURIComponent(y(o))+d;return p(m[o])?S(m[o],function(t){return n+encodeURIComponent(y(t))}).join(f):n+encodeURIComponent(y(m[o]))}).join(f):l?encodeURIComponent(y(l))+d+encodeURIComponent(y(m)):""};var p=Array.isArray||function(m){return Object.prototype.toString.call(m)==="[object Array]"};function S(m,f){if(m.map)return m.map(f);for(var d=[],l=0;l<m.length;l++)d.push(f(m[l],l));return d}var A=Object.keys||function(m){var f=[];for(var d in m)Object.prototype.hasOwnProperty.call(m,d)&&f.push(d);return f}},{}],212:[function(k,D,i){"use strict";i.decode=i.parse=k("./decode"),i.encode=i.stringify=k("./encode")},{"./decode":210,"./encode":211}],213:[function(k,D,i){D.exports=k("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":214}],214:[function(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/create"),p=m(y),S=k("babel-runtime/core-js/object/keys"),A=m(S);function m(c){return c&&c.__esModule?c:{default:c}}var f=k("process-nextick-args"),d=A.default||function(c){var h=[];for(var g in c)h.push(g);return h};D.exports=u;var l=(0,p.default)(k("core-util-is"));l.inherits=k("inherits");var o=k("./_stream_readable"),n=k("./_stream_writable");l.inherits(u,o);for(var t=d(n.prototype),a=0;a<t.length;a++){var e=t[a];u.prototype[e]||(u.prototype[e]=n.prototype[e])}function u(c){if(!(this instanceof u))return new u(c);o.call(this,c),n.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(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/create"),p=S(y);function S(d){return d&&d.__esModule?d:{default:d}}D.exports=f;var A=k("./_stream_transform"),m=(0,p.default)(k("core-util-is"));m.inherits=k("inherits"),m.inherits(f,A);function f(d){if(!(this instanceof f))return new f(d);A.call(this,d)}f.prototype._transform=function(d,l,o){o(null,d)}},{"./_stream_transform":217,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],216:[function(k,D,i){(function(y,p){"use strict";var S=k("babel-runtime/core-js/object/get-prototype-of"),A=d(S),m=k("babel-runtime/core-js/object/create"),f=d(m);function d(Ue){return Ue&&Ue.__esModule?Ue:{default:Ue}}var l=k("process-nextick-args");D.exports=C;var o=k("isarray"),n;C.ReadableState=E;var t=k("events").EventEmitter,a=function(ue,rt){return ue.listeners(rt).length},e=k("./internal/streams/stream"),u=k("safe-buffer").Buffer,r=p.Uint8Array||function(){};function s(Ue){return u.from(Ue)}function c(Ue){return u.isBuffer(Ue)||Ue instanceof r}var h=(0,f.default)(k("core-util-is"));h.inherits=k("inherits");var g=k("util"),v=void 0;g&&g.debuglog?v=g.debuglog("stream"):v=function(){};var b=k("./internal/streams/BufferList"),w=k("./internal/streams/destroy"),x;h.inherits(C,e);var T=["error","close","destroy","pause","resume"];function O(Ue,ue,rt){if(typeof Ue.prependListener=="function")return Ue.prependListener(ue,rt);!Ue._events||!Ue._events[ue]?Ue.on(ue,rt):o(Ue._events[ue])?Ue._events[ue].unshift(rt):Ue._events[ue]=[rt,Ue._events[ue]]}function E(Ue,ue){n=n||k("./_stream_duplex"),Ue=Ue||{};var rt=ue instanceof n;this.objectMode=!!Ue.objectMode,rt&&(this.objectMode=this.objectMode||!!Ue.readableObjectMode);var ge=Ue.highWaterMark,Z=Ue.readableHighWaterMark,Y=this.objectMode?16:16*1024;ge||ge===0?this.highWaterMark=ge:rt&&(Z||Z===0)?this.highWaterMark=Z: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=Ue.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,Ue.encoding&&(x||(x=k("string_decoder/").StringDecoder),this.decoder=new x(Ue.encoding),this.encoding=Ue.encoding)}function C(Ue){if(n=n||k("./_stream_duplex"),!(this instanceof C))return new C(Ue);this._readableState=new E(Ue,this),this.readable=!0,Ue&&(typeof Ue.read=="function"&&(this._read=Ue.read),typeof Ue.destroy=="function"&&(this._destroy=Ue.destroy)),e.call(this)}Object.defineProperty(C.prototype,"destroyed",{get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(ue){if(!this._readableState)return;this._readableState.destroyed=ue}}),C.prototype.destroy=w.destroy,C.prototype._undestroy=w.undestroy,C.prototype._destroy=function(Ue,ue){this.push(null),ue(Ue)},C.prototype.push=function(Ue,ue){var rt=this._readableState,ge;return rt.objectMode?ge=!0:typeof Ue=="string"&&(ue=ue||rt.defaultEncoding,ue!==rt.encoding&&(Ue=u.from(Ue,ue),ue=""),ge=!0),I(this,Ue,ue,!1,ge)},C.prototype.unshift=function(Ue){return I(this,Ue,null,!0,!1)};function I(Ue,ue,rt,ge,Z){var Y=Ue._readableState;if(ue===null)Y.reading=!1,P(Ue,Y);else{var ee;Z||(ee=F(Y,ue)),ee?Ue.emit("error",ee):Y.objectMode||ue&&ue.length>0?(typeof ue!="string"&&!Y.objectMode&&(0,A.default)(ue)!==u.prototype&&(ue=s(ue)),ge?Y.endEmitted?Ue.emit("error",new Error("stream.unshift() after end event")):_(Ue,Y,ue,!0):Y.ended?Ue.emit("error",new Error("stream.push() after EOF")):(Y.reading=!1,Y.decoder&&!rt?(ue=Y.decoder.write(ue),Y.objectMode||ue.length!==0?_(Ue,Y,ue,!1):U(Ue,Y)):_(Ue,Y,ue,!1))):ge||(Y.reading=!1)}return R(Y)}function _(Ue,ue,rt,ge){ue.flowing&&ue.length===0&&!ue.sync?(Ue.emit("data",rt),Ue.read(0)):(ue.length+=ue.objectMode?1:rt.length,ge?ue.buffer.unshift(rt):ue.buffer.push(rt),ue.needReadable&&z(Ue)),U(Ue,ue)}function F(Ue,ue){var rt;return!c(ue)&&typeof ue!="string"&&ue!==void 0&&!Ue.objectMode&&(rt=new TypeError("Invalid non-string/buffer chunk")),rt}function R(Ue){return!Ue.ended&&(Ue.needReadable||Ue.length<Ue.highWaterMark||Ue.length===0)}C.prototype.isPaused=function(){return this._readableState.flowing===!1},C.prototype.setEncoding=function(Ue){return x||(x=k("string_decoder/").StringDecoder),this._readableState.decoder=new x(Ue),this._readableState.encoding=Ue,this};var B=8388608;function M(Ue){return Ue>=B?Ue=B:(Ue--,Ue|=Ue>>>1,Ue|=Ue>>>2,Ue|=Ue>>>4,Ue|=Ue>>>8,Ue|=Ue>>>16,Ue++),Ue}function X(Ue,ue){return Ue<=0||ue.length===0&&ue.ended?0:ue.objectMode?1:Ue!==Ue?ue.flowing&&ue.length?ue.buffer.head.data.length:ue.length:(Ue>ue.highWaterMark&&(ue.highWaterMark=M(Ue)),Ue<=ue.length?Ue:ue.ended?ue.length:(ue.needReadable=!0,0))}C.prototype.read=function(Ue){v("read",Ue),Ue=parseInt(Ue,10);var ue=this._readableState,rt=Ue;if(Ue!==0&&(ue.emittedReadable=!1),Ue===0&&ue.needReadable&&(ue.length>=ue.highWaterMark||ue.ended))return v("read: emitReadable",ue.length,ue.ended),ue.length===0&&ue.ended?Je(this):z(this),null;if(Ue=X(Ue,ue),Ue===0&&ue.ended)return ue.length===0&&Je(this),null;var ge=ue.needReadable;v("need readable",ge),(ue.length===0||ue.length-Ue<ue.highWaterMark)&&(ge=!0,v("length less than watermark",ge)),ue.ended||ue.reading?(ge=!1,v("reading or ended",ge)):ge&&(v("do read"),ue.reading=!0,ue.sync=!0,ue.length===0&&(ue.needReadable=!0),this._read(ue.highWaterMark),ue.sync=!1,ue.reading||(Ue=X(rt,ue)));var Z;return Ue>0?Z=re(Ue,ue):Z=null,Z===null?(ue.needReadable=!0,Ue=0):ue.length-=Ue,ue.length===0&&(ue.ended||(ue.needReadable=!0),rt!==Ue&&ue.ended&&Je(this)),Z!==null&&this.emit("data",Z),Z};function P(Ue,ue){if(ue.ended)return;if(ue.decoder){var rt=ue.decoder.end();rt&&rt.length&&(ue.buffer.push(rt),ue.length+=ue.objectMode?1:rt.length)}ue.ended=!0,z(Ue)}function z(Ue){var ue=Ue._readableState;ue.needReadable=!1,ue.emittedReadable||(v("emitReadable",ue.flowing),ue.emittedReadable=!0,ue.sync?l.nextTick(W,Ue):W(Ue))}function W(Ue){v("emit readable"),Ue.emit("readable"),le(Ue)}function U(Ue,ue){ue.readingMore||(ue.readingMore=!0,l.nextTick(V,Ue,ue))}function V(Ue,ue){for(var rt=ue.length;!ue.reading&&!ue.flowing&&!ue.ended&&ue.length<ue.highWaterMark&&!(v("maybeReadMore read 0"),Ue.read(0),rt===ue.length);)rt=ue.length;ue.readingMore=!1}C.prototype._read=function(Ue){this.emit("error",new Error("_read() is not implemented"))},C.prototype.pipe=function(Ue,ue){var rt=this,ge=this._readableState;switch(ge.pipesCount){case 0:ge.pipes=Ue;break;case 1:ge.pipes=[ge.pipes,Ue];break;default:ge.pipes.push(Ue);break}ge.pipesCount+=1,v("pipe count=%d opts=%j",ge.pipesCount,ue);var Z=(!ue||ue.end!==!1)&&Ue!==y.stdout&&Ue!==y.stderr,Y=Z?fe:st;ge.endEmitted?l.nextTick(Y):rt.once("end",Y),Ue.on("unpipe",ee);function ee(Fe,ft){v("onunpipe"),Fe===rt&&(ft&&ft.hasUnpiped===!1&&(ft.hasUnpiped=!0,Te()))}function fe(){v("onend"),Ue.end()}var be=Q(rt);Ue.on("drain",be);var Ce=!1;function Te(){v("cleanup"),Ue.removeListener("close",tt),Ue.removeListener("finish",pt),Ue.removeListener("drain",be),Ue.removeListener("error",Ie),Ue.removeListener("unpipe",ee),rt.removeListener("end",fe),rt.removeListener("end",st),rt.removeListener("data",ye),Ce=!0,ge.awaitDrain&&(!Ue._writableState||Ue._writableState.needDrain)&&be()}var he=!1;rt.on("data",ye);function ye(Fe){v("ondata"),he=!1;var ft=Ue.write(Fe);ft===!1&&!he&&((ge.pipesCount===1&&ge.pipes===Ue||ge.pipesCount>1&&ct(ge.pipes,Ue)!==-1)&&!Ce&&(v("false write response, pause",rt._readableState.awaitDrain),rt._readableState.awaitDrain++,he=!0),rt.pause())}function Ie(Fe){v("onerror",Fe),st(),Ue.removeListener("error",Ie),a(Ue,"error")===0&&Ue.emit("error",Fe)}O(Ue,"error",Ie);function tt(){Ue.removeListener("finish",pt),st()}Ue.once("close",tt);function pt(){v("onfinish"),Ue.removeListener("close",tt),st()}Ue.once("finish",pt);function st(){v("unpipe"),rt.unpipe(Ue)}return Ue.emit("pipe",rt),ge.flowing||(v("pipe resume"),rt.resume()),Ue};function Q(Ue){return function(){var ue=Ue._readableState;v("pipeOnDrain",ue.awaitDrain),ue.awaitDrain&&ue.awaitDrain--,ue.awaitDrain===0&&a(Ue,"data")&&(ue.flowing=!0,le(Ue))}}C.prototype.unpipe=function(Ue){var ue=this._readableState,rt={hasUnpiped:!1};if(ue.pipesCount===0)return this;if(ue.pipesCount===1)return Ue&&Ue!==ue.pipes?this:(Ue||(Ue=ue.pipes),ue.pipes=null,ue.pipesCount=0,ue.flowing=!1,Ue&&Ue.emit("unpipe",this,rt),this);if(!Ue){var ge=ue.pipes,Z=ue.pipesCount;ue.pipes=null,ue.pipesCount=0,ue.flowing=!1;for(var Y=0;Y<Z;Y++)ge[Y].emit("unpipe",this,rt);return this}var ee=ct(ue.pipes,Ue);return ee===-1?this:(ue.pipes.splice(ee,1),ue.pipesCount-=1,ue.pipesCount===1&&(ue.pipes=ue.pipes[0]),Ue.emit("unpipe",this,rt),this)},C.prototype.on=function(Ue,ue){var rt=e.prototype.on.call(this,Ue,ue);if(Ue==="data")this._readableState.flowing!==!1&&this.resume();else if(Ue==="readable"){var ge=this._readableState;!ge.endEmitted&&!ge.readableListening&&(ge.readableListening=ge.needReadable=!0,ge.emittedReadable=!1,ge.reading?ge.length&&z(this):l.nextTick(G,this))}return rt},C.prototype.addListener=C.prototype.on;function G(Ue){v("readable nexttick read 0"),Ue.read(0)}C.prototype.resume=function(){var Ue=this._readableState;return Ue.flowing||(v("resume"),Ue.flowing=!0,te(this,Ue)),this};function te(Ue,ue){ue.resumeScheduled||(ue.resumeScheduled=!0,l.nextTick($,Ue,ue))}function $(Ue,ue){ue.reading||(v("resume read 0"),Ue.read(0)),ue.resumeScheduled=!1,ue.awaitDrain=0,Ue.emit("resume"),le(Ue),ue.flowing&&!ue.reading&&Ue.read(0)}C.prototype.pause=function(){return v("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(v("pause"),this._readableState.flowing=!1,this.emit("pause")),this};function le(Ue){var ue=Ue._readableState;for(v("flow",ue.flowing);ue.flowing&&Ue.read()!==null;);}C.prototype.wrap=function(Ue){var ue=this,rt=this._readableState,ge=!1;Ue.on("end",function(){if(v("wrapped end"),rt.decoder&&!rt.ended){var ee=rt.decoder.end();ee&&ee.length&&ue.push(ee)}ue.push(null)}),Ue.on("data",function(ee){if(v("wrapped data"),rt.decoder&&(ee=rt.decoder.write(ee)),rt.objectMode&&ee==null)return;if(!rt.objectMode&&(!ee||!ee.length))return;var fe=ue.push(ee);fe||(ge=!0,Ue.pause())});for(var Z in Ue)this[Z]===void 0&&typeof Ue[Z]=="function"&&(this[Z]=function(ee){return function(){return Ue[ee].apply(Ue,arguments)}}(Z));for(var Y=0;Y<T.length;Y++)Ue.on(T[Y],this.emit.bind(this,T[Y]));return this._read=function(ee){v("wrapped _read",ee),ge&&(ge=!1,Ue.resume())},this},Object.defineProperty(C.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),C._fromList=re;function re(Ue,ue){if(ue.length===0)return null;var rt;return ue.objectMode?rt=ue.buffer.shift():!Ue||Ue>=ue.length?(ue.decoder?rt=ue.buffer.join(""):ue.buffer.length===1?rt=ue.buffer.head.data:rt=ue.buffer.concat(ue.length),ue.buffer.clear()):rt=Se(Ue,ue.buffer,ue.decoder),rt}function Se(Ue,ue,rt){var ge;return Ue<ue.head.data.length?(ge=ue.head.data.slice(0,Ue),ue.head.data=ue.head.data.slice(Ue)):Ue===ue.head.data.length?ge=ue.shift():ge=rt?Re(Ue,ue):Pe(Ue,ue),ge}function Re(Ue,ue){var rt=ue.head,ge=1,Z=rt.data;for(Ue-=Z.length;rt=rt.next;){var Y=rt.data,ee=Ue>Y.length?Y.length:Ue;if(ee===Y.length?Z+=Y:Z+=Y.slice(0,Ue),Ue-=ee,Ue===0){ee===Y.length?(++ge,rt.next?ue.head=rt.next:ue.head=ue.tail=null):(ue.head=rt,rt.data=Y.slice(ee));break}++ge}return ue.length-=ge,Z}function Pe(Ue,ue){var rt=u.allocUnsafe(Ue),ge=ue.head,Z=1;for(ge.data.copy(rt),Ue-=ge.data.length;ge=ge.next;){var Y=ge.data,ee=Ue>Y.length?Y.length:Ue;if(Y.copy(rt,rt.length-Ue,0,ee),Ue-=ee,Ue===0){ee===Y.length?(++Z,ge.next?ue.head=ge.next:ue.head=ue.tail=null):(ue.head=ge,ge.data=Y.slice(ee));break}++Z}return ue.length-=Z,rt}function Je(Ue){var ue=Ue._readableState;if(ue.length>0)throw new Error('"endReadable()" called on non-empty stream');ue.endEmitted||(ue.ended=!0,l.nextTick(Ve,ue,Ue))}function Ve(Ue,ue){!Ue.endEmitted&&Ue.length===0&&(Ue.endEmitted=!0,ue.readable=!1,ue.emit("end"))}function ct(Ue,ue){for(var rt=0,ge=Ue.length;rt<ge;rt++)if(Ue[rt]===ue)return rt;return-1}}).call(this,k("_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(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/create"),p=S(y);function S(n){return n&&n.__esModule?n:{default:n}}D.exports=d;var A=k("./_stream_duplex"),m=(0,p.default)(k("core-util-is"));m.inherits=k("inherits"),m.inherits(d,A);function f(n,t){var a=this._transformState;a.transforming=!1;var e=a.writecb;if(!e)return this.emit("error",new Error("write callback called multiple times"));a.writechunk=null,a.writecb=null,t!=null&&this.push(t),e(n);var u=this._readableState;u.reading=!1,(u.needReadable||u.length<u.highWaterMark)&&this._read(u.highWaterMark)}function d(n){if(!(this instanceof d))return new d(n);A.call(this,n),this._transformState={afterTransform:f.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,n&&(typeof n.transform=="function"&&(this._transform=n.transform),typeof n.flush=="function"&&(this._flush=n.flush)),this.on("prefinish",l)}function l(){var n=this;typeof this._flush=="function"?this._flush(function(t,a){o(n,t,a)}):o(this,null,null)}d.prototype.push=function(n,t){return this._transformState.needTransform=!1,A.prototype.push.call(this,n,t)},d.prototype._transform=function(n,t,a){throw new Error("_transform() is not implemented")},d.prototype._write=function(n,t,a){var e=this._transformState;if(e.writecb=a,e.writechunk=n,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(n){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(n,t){var a=this;A.prototype._destroy.call(this,n,function(e){t(e),a.emit("close")})};function o(n,t,a){if(t)return n.emit("error",t);if(a!=null&&n.push(a),n._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(n._transformState.transforming)throw new Error("Calling transform done when still transforming");return n.push(null)}},{"./_stream_duplex":214,"babel-runtime/core-js/object/create":55,"core-util-is":189,inherits:196}],218:[function(k,D,i){(function(y,p){"use strict";var S=k("babel-runtime/core-js/object/define-property"),A=e(S),m=k("babel-runtime/core-js/symbol/has-instance"),f=e(m),d=k("babel-runtime/core-js/symbol"),l=e(d),o=k("babel-runtime/core-js/object/create"),n=e(o),t=k("babel-runtime/core-js/set-immediate"),a=e(t);function e(Pe){return Pe&&Pe.__esModule?Pe:{default:Pe}}var u=k("process-nextick-args");D.exports=F;function r(Pe,Je,Ve){this.chunk=Pe,this.encoding=Je,this.callback=Ve,this.next=null}function s(Pe){var Je=this;this.next=null,this.entry=null,this.finish=function(){Re(Je,Pe)}}var c=!y.browser&&["v0.10","v0.9."].indexOf(y.version.slice(0,5))>-1?a.default:u.nextTick,h;F.WritableState=I;var g=(0,n.default)(k("core-util-is"));g.inherits=k("inherits");var v={deprecate:k("util-deprecate")},b=k("./internal/streams/stream"),w=k("safe-buffer").Buffer,x=p.Uint8Array||function(){};function T(Pe){return w.from(Pe)}function O(Pe){return w.isBuffer(Pe)||Pe instanceof x}var E=k("./internal/streams/destroy");g.inherits(F,b);function C(){}function I(Pe,Je){h=h||k("./_stream_duplex"),Pe=Pe||{};var Ve=Je instanceof h;this.objectMode=!!Pe.objectMode,Ve&&(this.objectMode=this.objectMode||!!Pe.writableObjectMode);var ct=Pe.highWaterMark,Ue=Pe.writableHighWaterMark,ue=this.objectMode?16:16*1024;ct||ct===0?this.highWaterMark=ct:Ve&&(Ue||Ue===0)?this.highWaterMark=Ue: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 rt=Pe.decodeStrings===!1;this.decodeStrings=!rt,this.defaultEncoding=Pe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ge){U(Je,ge)},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)}I.prototype.getBuffer=function(){for(var Je=this.bufferedRequest,Ve=[];Je;)Ve.push(Je),Je=Je.next;return Ve},function(){try{Object.defineProperty(I.prototype,"buffer",{get:v.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Pe){}}();var _;typeof l.default=="function"&&f.default&&typeof Function.prototype[f.default]=="function"?(_=Function.prototype[f.default],(0,A.default)(F,f.default,{value:function(Je){return _.call(this,Je)?!0:this!==F?!1:Je&&Je._writableState instanceof I}})):_=function(Je){return Je instanceof this};function F(Pe){if(h=h||k("./_stream_duplex"),!_.call(F,this)&&!(this instanceof h))return new F(Pe);this._writableState=new I(Pe,this),this.writable=!0,Pe&&(typeof Pe.write=="function"&&(this._write=Pe.write),typeof Pe.writev=="function"&&(this._writev=Pe.writev),typeof Pe.destroy=="function"&&(this._destroy=Pe.destroy),typeof Pe.final=="function"&&(this._final=Pe.final)),b.call(this)}F.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function R(Pe,Je){var Ve=new Error("write after end");Pe.emit("error",Ve),u.nextTick(Je,Ve)}function B(Pe,Je,Ve,ct){var Ue=!0,ue=!1;return Ve===null?ue=new TypeError("May not write null values to stream"):typeof Ve!="string"&&Ve!==void 0&&!Je.objectMode&&(ue=new TypeError("Invalid non-string/buffer chunk")),ue&&(Pe.emit("error",ue),u.nextTick(ct,ue),Ue=!1),Ue}F.prototype.write=function(Pe,Je,Ve){var ct=this._writableState,Ue=!1,ue=!ct.objectMode&&O(Pe);return ue&&!w.isBuffer(Pe)&&(Pe=T(Pe)),typeof Je=="function"&&(Ve=Je,Je=null),ue?Je="buffer":Je||(Je=ct.defaultEncoding),typeof Ve!="function"&&(Ve=C),ct.ended?R(this,Ve):(ue||B(this,ct,Pe,Ve))&&(ct.pendingcb++,Ue=X(this,ct,ue,Pe,Je,Ve)),Ue},F.prototype.cork=function(){var Pe=this._writableState;Pe.corked++},F.prototype.uncork=function(){var Pe=this._writableState;Pe.corked&&(Pe.corked--,!Pe.writing&&!Pe.corked&&!Pe.finished&&!Pe.bufferProcessing&&Pe.bufferedRequest&&G(this,Pe))},F.prototype.setDefaultEncoding=function(Je){if(typeof Je=="string"&&(Je=Je.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Je+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+Je);return this._writableState.defaultEncoding=Je,this};function M(Pe,Je,Ve){return!Pe.objectMode&&Pe.decodeStrings!==!1&&typeof Je=="string"&&(Je=w.from(Je,Ve)),Je}Object.defineProperty(F.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function X(Pe,Je,Ve,ct,Ue,ue){if(!Ve){var rt=M(Je,ct,Ue);ct!==rt&&(Ve=!0,Ue="buffer",ct=rt)}var ge=Je.objectMode?1:ct.length;Je.length+=ge;var Z=Je.length<Je.highWaterMark;if(Z||(Je.needDrain=!0),Je.writing||Je.corked){var Y=Je.lastBufferedRequest;Je.lastBufferedRequest={chunk:ct,encoding:Ue,isBuf:Ve,callback:ue,next:null},Y?Y.next=Je.lastBufferedRequest:Je.bufferedRequest=Je.lastBufferedRequest,Je.bufferedRequestCount+=1}else P(Pe,Je,!1,ge,ct,Ue,ue);return Z}function P(Pe,Je,Ve,ct,Ue,ue,rt){Je.writelen=ct,Je.writecb=rt,Je.writing=!0,Je.sync=!0,Ve?Pe._writev(Ue,Je.onwrite):Pe._write(Ue,ue,Je.onwrite),Je.sync=!1}function z(Pe,Je,Ve,ct,Ue){--Je.pendingcb,Ve?(u.nextTick(Ue,ct),u.nextTick(re,Pe,Je),Pe._writableState.errorEmitted=!0,Pe.emit("error",ct)):(Ue(ct),Pe._writableState.errorEmitted=!0,Pe.emit("error",ct),re(Pe,Je))}function W(Pe){Pe.writing=!1,Pe.writecb=null,Pe.length-=Pe.writelen,Pe.writelen=0}function U(Pe,Je){var Ve=Pe._writableState,ct=Ve.sync,Ue=Ve.writecb;if(W(Ve),Je)z(Pe,Ve,ct,Je,Ue);else{var ue=te(Ve);!ue&&!Ve.corked&&!Ve.bufferProcessing&&Ve.bufferedRequest&&G(Pe,Ve),ct?c(V,Pe,Ve,ue,Ue):V(Pe,Ve,ue,Ue)}}function V(Pe,Je,Ve,ct){Ve||Q(Pe,Je),Je.pendingcb--,ct(),re(Pe,Je)}function Q(Pe,Je){Je.length===0&&Je.needDrain&&(Je.needDrain=!1,Pe.emit("drain"))}function G(Pe,Je){Je.bufferProcessing=!0;var Ve=Je.bufferedRequest;if(Pe._writev&&Ve&&Ve.next){var ct=Je.bufferedRequestCount,Ue=new Array(ct),ue=Je.corkedRequestsFree;ue.entry=Ve;for(var rt=0,ge=!0;Ve;)Ue[rt]=Ve,Ve.isBuf||(ge=!1),Ve=Ve.next,rt+=1;Ue.allBuffers=ge,P(Pe,Je,!0,Je.length,Ue,"",ue.finish),Je.pendingcb++,Je.lastBufferedRequest=null,ue.next?(Je.corkedRequestsFree=ue.next,ue.next=null):Je.corkedRequestsFree=new s(Je),Je.bufferedRequestCount=0}else{for(;Ve;){var Z=Ve.chunk,Y=Ve.encoding,ee=Ve.callback,fe=Je.objectMode?1:Z.length;if(P(Pe,Je,!1,fe,Z,Y,ee),Ve=Ve.next,Je.bufferedRequestCount--,Je.writing)break}Ve===null&&(Je.lastBufferedRequest=null)}Je.bufferedRequest=Ve,Je.bufferProcessing=!1}F.prototype._write=function(Pe,Je,Ve){Ve(new Error("_write() is not implemented"))},F.prototype._writev=null,F.prototype.end=function(Pe,Je,Ve){var ct=this._writableState;typeof Pe=="function"?(Ve=Pe,Pe=null,Je=null):typeof Je=="function"&&(Ve=Je,Je=null),Pe!=null&&this.write(Pe,Je),ct.corked&&(ct.corked=1,this.uncork()),!ct.ending&&!ct.finished&&Se(this,ct,Ve)};function te(Pe){return Pe.ending&&Pe.length===0&&Pe.bufferedRequest===null&&!Pe.finished&&!Pe.writing}function $(Pe,Je){Pe._final(function(Ve){Je.pendingcb--,Ve&&Pe.emit("error",Ve),Je.prefinished=!0,Pe.emit("prefinish"),re(Pe,Je)})}function le(Pe,Je){!Je.prefinished&&!Je.finalCalled&&(typeof Pe._final=="function"?(Je.pendingcb++,Je.finalCalled=!0,u.nextTick($,Pe,Je)):(Je.prefinished=!0,Pe.emit("prefinish")))}function re(Pe,Je){var Ve=te(Je);return Ve&&(le(Pe,Je),Je.pendingcb===0&&(Je.finished=!0,Pe.emit("finish"))),Ve}function Se(Pe,Je,Ve){Je.ending=!0,re(Pe,Je),Ve&&(Je.finished?u.nextTick(Ve):Pe.once("finish",Ve)),Je.ended=!0,Pe.writable=!1}function Re(Pe,Je,Ve){var ct=Pe.entry;for(Pe.entry=null;ct;){var Ue=ct.callback;Je.pendingcb--,Ue(Ve),ct=ct.next}Je.corkedRequestsFree?Je.corkedRequestsFree.next=Pe:Je.corkedRequestsFree=Pe}Object.defineProperty(F.prototype,"destroyed",{get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(Je){if(!this._writableState)return;this._writableState.destroyed=Je}}),F.prototype.destroy=E.destroy,F.prototype._undestroy=E.undestroy,F.prototype._destroy=function(Pe,Je){this.end(),Je(Pe)}}).call(this,k("_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(k,D,i){"use strict";function y(m,f){if(!(m instanceof f))throw new TypeError("Cannot call a class as a function")}var p=k("safe-buffer").Buffer,S=k("util");function A(m,f,d){m.copy(f,d)}D.exports=function(){function m(){y(this,m),this.head=null,this.tail=null,this.length=0}return m.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},m.prototype.unshift=function(d){var l={data:d,next:this.head};this.length===0&&(this.tail=l),this.head=l,++this.length},m.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},m.prototype.clear=function(){this.head=this.tail=null,this.length=0},m.prototype.join=function(d){if(this.length===0)return"";for(var l=this.head,o=""+l.data;l=l.next;)o+=d+l.data;return o},m.prototype.concat=function(d){if(this.length===0)return p.alloc(0);if(this.length===1)return this.head.data;for(var l=p.allocUnsafe(d>>>0),o=this.head,n=0;o;)A(o.data,l,n),n+=o.data.length,o=o.next;return l},m}(),S&&S.inspect&&S.inspect.custom&&(D.exports.prototype[S.inspect.custom]=function(){var m=S.inspect({length:this.length});return this.constructor.name+" "+m})},{"safe-buffer":228,util:71}],220:[function(k,D,i){"use strict";var y=k("process-nextick-args");function p(m,f){var d=this,l=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return l||o?(f?f(m):m&&(!this._writableState||!this._writableState.errorEmitted)&&y.nextTick(A,this,m),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(m||null,function(n){!f&&n?(y.nextTick(A,d,n),d._writableState&&(d._writableState.errorEmitted=!0)):f&&f(n)}),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 A(m,f){m.emit("error",f)}D.exports={destroy:p,undestroy:S}},{"process-nextick-args":207}],221:[function(k,D,i){"use strict";D.exports=k("events").EventEmitter},{events:192}],222:[function(k,D,i){D.exports=k("./readable").PassThrough},{"./readable":223}],223:[function(k,D,i){i=D.exports=k("./lib/_stream_readable.js"),i.Stream=i,i.Readable=i,i.Writable=k("./lib/_stream_writable.js"),i.Duplex=k("./lib/_stream_duplex.js"),i.Transform=k("./lib/_stream_transform.js"),i.PassThrough=k("./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(k,D,i){D.exports=k("./readable").Transform},{"./readable":223}],225:[function(k,D,i){D.exports=k("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":218}],226:[function(k,D,i){var y=function(){return this}()||Function("return this")(),p=y.regeneratorRuntime&&Object.getOwnPropertyNames(y).indexOf("regeneratorRuntime")>=0,S=p&&y.regeneratorRuntime;if(y.regeneratorRuntime=void 0,D.exports=k("./runtime"),p)y.regeneratorRuntime=S;else try{delete y.regeneratorRuntime}catch(A){y.regeneratorRuntime=void 0}},{"./runtime":227}],227:[function(k,D,i){!function(y){"use strict";var p=Object.prototype,S=p.hasOwnProperty,A,m=typeof Symbol=="function"?Symbol:{},f=m.iterator||"@@iterator",d=m.asyncIterator||"@@asyncIterator",l=m.toStringTag||"@@toStringTag",o=typeof D=="object",n=y.regeneratorRuntime;if(n){o&&(D.exports=n);return}n=y.regeneratorRuntime=o?D.exports:{};function t(X,P,z,W){var U=P&&P.prototype instanceof h?P:h,V=Object.create(U.prototype),Q=new R(W||[]);return V._invoke=C(X,z,Q),V}n.wrap=t;function a(X,P,z){try{return{type:"normal",arg:X.call(P,z)}}catch(W){return{type:"throw",arg:W}}}var e="suspendedStart",u="suspendedYield",r="executing",s="completed",c={};function h(){}function g(){}function v(){}var b={};b[f]=function(){return this};var w=Object.getPrototypeOf,x=w&&w(w(B([])));x&&x!==p&&S.call(x,f)&&(b=x);var T=v.prototype=h.prototype=Object.create(b);g.prototype=T.constructor=v,v.constructor=g,v[l]=g.displayName="GeneratorFunction";function O(X){["next","throw","return"].forEach(function(P){X[P]=function(z){return this._invoke(P,z)}})}n.isGeneratorFunction=function(X){var P=typeof X=="function"&&X.constructor;return P?P===g||(P.displayName||P.name)==="GeneratorFunction":!1},n.mark=function(X){return Object.setPrototypeOf?Object.setPrototypeOf(X,v):(X.__proto__=v,l in X||(X[l]="GeneratorFunction")),X.prototype=Object.create(T),X},n.awrap=function(X){return{__await:X}};function E(X){function P(U,V,Q,G){var te=a(X[U],X,V);if(te.type==="throw")G(te.arg);else{var $=te.arg,le=$.value;return le&&typeof le=="object"&&S.call(le,"__await")?Promise.resolve(le.__await).then(function(re){P("next",re,Q,G)},function(re){P("throw",re,Q,G)}):Promise.resolve(le).then(function(re){$.value=re,Q($)},G)}}var z;function W(U,V){function Q(){return new Promise(function(G,te){P(U,V,G,te)})}return z=z?z.then(Q,Q):Q()}this._invoke=W}O(E.prototype),E.prototype[d]=function(){return this},n.AsyncIterator=E,n.async=function(X,P,z,W){var U=new E(t(X,P,z,W));return n.isGeneratorFunction(P)?U:U.next().then(function(V){return V.done?V.value:U.next()})};function C(X,P,z){var W=e;return function(V,Q){if(W===r)throw new Error("Generator is already running");if(W===s){if(V==="throw")throw Q;return M()}for(z.method=V,z.arg=Q;;){var G=z.delegate;if(G){var te=I(G,z);if(te){if(te===c)continue;return te}}if(z.method==="next")z.sent=z._sent=z.arg;else if(z.method==="throw"){if(W===e)throw W=s,z.arg;z.dispatchException(z.arg)}else z.method==="return"&&z.abrupt("return",z.arg);W=r;var $=a(X,P,z);if($.type==="normal"){if(W=z.done?s:u,$.arg===c)continue;return{value:$.arg,done:z.done}}else $.type==="throw"&&(W=s,z.method="throw",z.arg=$.arg)}}}function I(X,P){var z=X.iterator[P.method];if(z===A){if(P.delegate=null,P.method==="throw"){if(X.iterator.return&&(P.method="return",P.arg=A,I(X,P),P.method==="throw"))return c;P.method="throw",P.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var W=a(z,X.iterator,P.arg);if(W.type==="throw")return P.method="throw",P.arg=W.arg,P.delegate=null,c;var U=W.arg;if(!U)return P.method="throw",P.arg=new TypeError("iterator result is not an object"),P.delegate=null,c;if(U.done)P[X.resultName]=U.value,P.next=X.nextLoc,P.method!=="return"&&(P.method="next",P.arg=A);else return U;return P.delegate=null,c}O(T),T[l]="Generator",T[f]=function(){return this},T.toString=function(){return"[object Generator]"};function _(X){var P={tryLoc:X[0]};1 in X&&(P.catchLoc=X[1]),2 in X&&(P.finallyLoc=X[2],P.afterLoc=X[3]),this.tryEntries.push(P)}function F(X){var P=X.completion||{};P.type="normal",delete P.arg,X.completion=P}function R(X){this.tryEntries=[{tryLoc:"root"}],X.forEach(_,this),this.reset(!0)}n.keys=function(X){var P=[];for(var z in X)P.push(z);return P.reverse(),function W(){for(;P.length;){var U=P.pop();if(U in X)return W.value=U,W.done=!1,W}return W.done=!0,W}};function B(X){if(X){var P=X[f];if(P)return P.call(X);if(typeof X.next=="function")return X;if(!isNaN(X.length)){var z=-1,W=function U(){for(;++z<X.length;)if(S.call(X,z))return U.value=X[z],U.done=!1,U;return U.value=A,U.done=!0,U};return W.next=W}}return{next:M}}n.values=B;function M(){return{value:A,done:!0}}R.prototype={constructor:R,reset:function(P){if(this.prev=0,this.next=0,this.sent=this._sent=A,this.done=!1,this.delegate=null,this.method="next",this.arg=A,this.tryEntries.forEach(F),!P)for(var z in this)z.charAt(0)==="t"&&S.call(this,z)&&!isNaN(+z.slice(1))&&(this[z]=A)},stop:function(){this.done=!0;var P=this.tryEntries[0],z=P.completion;if(z.type==="throw")throw z.arg;return this.rval},dispatchException:function(P){if(this.done)throw P;var z=this;function W($,le){return Q.type="throw",Q.arg=P,z.next=$,le&&(z.method="next",z.arg=A),!!le}for(var U=this.tryEntries.length-1;U>=0;--U){var V=this.tryEntries[U],Q=V.completion;if(V.tryLoc==="root")return W("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 W(V.catchLoc,!0);if(this.prev<V.finallyLoc)return W(V.finallyLoc)}else if(G){if(this.prev<V.catchLoc)return W(V.catchLoc,!0)}else if(te){if(this.prev<V.finallyLoc)return W(V.finallyLoc)}else throw new Error("try statement without catch or finally")}}},abrupt:function(P,z){for(var W=this.tryEntries.length-1;W>=0;--W){var U=this.tryEntries[W];if(U.tryLoc<=this.prev&&S.call(U,"finallyLoc")&&this.prev<U.finallyLoc){var V=U;break}}V&&(P==="break"||P==="continue")&&V.tryLoc<=z&&z<=V.finallyLoc&&(V=null);var Q=V?V.completion:{};return Q.type=P,Q.arg=z,V?(this.method="next",this.next=V.finallyLoc,c):this.complete(Q)},complete:function(P,z){if(P.type==="throw")throw P.arg;return P.type==="break"||P.type==="continue"?this.next=P.arg:P.type==="return"?(this.rval=this.arg=P.arg,this.method="return",this.next="end"):P.type==="normal"&&z&&(this.next=z),c},finish:function(P){for(var z=this.tryEntries.length-1;z>=0;--z){var W=this.tryEntries[z];if(W.finallyLoc===P)return this.complete(W.completion,W.afterLoc),F(W),c}},catch:function(P){for(var z=this.tryEntries.length-1;z>=0;--z){var W=this.tryEntries[z];if(W.tryLoc===P){var U=W.completion;if(U.type==="throw"){var V=U.arg;F(W)}return V}}throw new Error("illegal catch attempt")},delegateYield:function(P,z,W){return this.delegate={iterator:B(P),resultName:z,nextLoc:W},this.method==="next"&&(this.arg=A),c}}}(function(){return this}()||Function("return this")())},{}],228:[function(k,D,i){var y=k("buffer"),p=y.Buffer;function S(m,f){for(var d in m)f[d]=m[d]}p.from&&p.alloc&&p.allocUnsafe&&p.allocUnsafeSlow?D.exports=y:(S(y,i),i.Buffer=A);function A(m,f,d){return p(m,f,d)}S(p,A),A.from=function(m,f,d){if(typeof m=="number")throw new TypeError("Argument must not be a number");return p(m,f,d)},A.alloc=function(m,f,d){if(typeof m!="number")throw new TypeError("Argument must be a number");var l=p(m);return f!==void 0?typeof d=="string"?l.fill(f,d):l.fill(f):l.fill(0),l},A.allocUnsafe=function(m){if(typeof m!="number")throw new TypeError("Argument must be a number");return p(m)},A.allocUnsafeSlow=function(m){if(typeof m!="number")throw new TypeError("Argument must be a number");return y.SlowBuffer(m)}},{buffer:73}],229:[function(k,D,i){(function(y){"use strict";var p=k("babel-runtime/core-js/string/from-code-point"),S=u(p),A=k("babel-runtime/core-js/json/stringify"),m=u(A),f=k("babel-runtime/helpers/typeof"),d=u(f),l=k("babel-runtime/core-js/object/define-property"),o=u(l),n=k("babel-runtime/core-js/object/keys"),t=u(n),a=k("babel-runtime/core-js/object/create"),e=u(a);function u(r){return r&&r.__esModule?r:{default:r}}(function(r){r.parser=function(Y,ee){return new c(Y,ee)},r.SAXParser=c,r.SAXStream=T,r.createStream=x,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,ee){if(!(this instanceof c))return new c(Y,ee);var fe=this;g(fe),fe.q=fe.c="",fe.bufferCheckPosition=r.MAX_BUFFER_LENGTH,fe.opt=ee||{},fe.opt.lowercase=fe.opt.lowercase||fe.opt.lowercasetags,fe.looseCase=fe.opt.lowercase?"toLowerCase":"toUpperCase",fe.tags=[],fe.closed=fe.closedRoot=fe.sawRoot=!1,fe.tag=fe.error=null,fe.strict=!!Y,fe.noscript=!!(Y||fe.opt.noscript),fe.state=V.BEGIN,fe.strictEntities=fe.opt.strictEntities,fe.ENTITIES=fe.strictEntities?(0,e.default)(r.XML_ENTITIES):(0,e.default)(r.ENTITIES),fe.attribList=[],fe.opt.xmlns&&(fe.ns=(0,e.default)(_)),fe.trackPosition=fe.opt.position!==!1,fe.trackPosition&&(fe.position=fe.line=fe.column=0),G(fe,"onready")}e.default||(Object.create=function(Y){function ee(){}ee.prototype=Y;var fe=new ee;return fe}),t.default||(Object.keys=function(Y){var ee=[];for(var fe in Y)Y.hasOwnProperty(fe)&&ee.push(fe);return ee});function h(Y){for(var ee=Math.max(r.MAX_BUFFER_LENGTH,10),fe=0,be=0,Ce=s.length;be<Ce;be++){var Te=Y[s[be]].length;if(Te>ee)switch(s[be]){case"textNode":$(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])}fe=Math.max(fe,Te)}var he=r.MAX_BUFFER_LENGTH-fe;Y.bufferCheckPosition=he+Y.position}function g(Y){for(var ee=0,fe=s.length;ee<fe;ee++)Y[s[ee]]=""}function v(Y){$(Y),Y.cdata!==""&&(te(Y,"oncdata",Y.cdata),Y.cdata=""),Y.script!==""&&(te(Y,"onscript",Y.script),Y.script="")}c.prototype={end:function(){Se(this)},write:Z,resume:function(){return this.error=null,this},close:function(){return this.write(null)},flush:function(){v(this)}};var b;try{b=k("stream").Stream}catch(Y){b=function(){}}var w=r.EVENTS.filter(function(Y){return Y!=="error"&&Y!=="end"});function x(Y,ee){return new T(Y,ee)}function T(Y,ee){if(!(this instanceof T))return new T(Y,ee);b.apply(this),this._parser=new c(Y,ee),this.writable=!0,this.readable=!0;var fe=this;this._parser.onend=function(){fe.emit("end")},this._parser.onerror=function(be){fe.emit("error",be),fe._parser.error=null},this._decoder=null,w.forEach(function(be){(0,o.default)(fe,"on"+be,{get:function(){return fe._parser["on"+be]},set:function(Te){if(!Te)return fe.removeAllListeners(be),fe._parser["on"+be]=Te,Te;fe.on(be,Te)},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 ee=k("string_decoder").StringDecoder;this._decoder=new ee("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,ee){var fe=this;return!fe._parser["on"+Y]&&w.indexOf(Y)!==-1&&(fe._parser["on"+Y]=function(){var be=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);be.splice(0,0,Y),fe.emit.apply(fe,be)}),b.prototype.on.call(fe,Y,ee)};var O="[CDATA[",E="DOCTYPE",C="http://www.w3.org/XML/1998/namespace",I="http://www.w3.org/2000/xmlns/",_={xml:C,xmlns:I},F=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,R=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,B=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,M=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function X(Y){return Y===" "||Y===`
`||Y==="\r"||Y===" "}function P(Y){return Y==='"'||Y==="'"}function z(Y){return Y===">"||X(Y)}function W(Y,ee){return Y.test(ee)}function U(Y,ee){return!W(Y,ee)}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 ee=r.ENTITIES[Y],fe=typeof ee=="number"?String.fromCharCode(ee):ee;r.ENTITIES[Y]=fe});for(var Q in r.STATE)r.STATE[r.STATE[Q]]=Q;V=r.STATE;function G(Y,ee,fe){Y[ee]&&Y[ee](fe)}function te(Y,ee,fe){Y.textNode&&$(Y),G(Y,ee,fe)}function $(Y){Y.textNode=le(Y.opt,Y.textNode),Y.textNode&&G(Y,"ontext",Y.textNode),Y.textNode=""}function le(Y,ee){return Y.trim&&(ee=ee.trim()),Y.normalize&&(ee=ee.replace(/\s+/g," ")),ee}function re(Y,ee){return $(Y),Y.trackPosition&&(ee+=`
Line: `+Y.line+`
Column: `+Y.column+`
Char: `+Y.c),ee=new Error(ee),Y.error=ee,G(Y,"onerror",ee),Y}function Se(Y){return Y.sawRoot&&!Y.closedRoot&&Re(Y,"Unclosed root tag"),Y.state!==V.BEGIN&&Y.state!==V.BEGIN_WHITESPACE&&Y.state!==V.TEXT&&re(Y,"Unexpected end"),$(Y),Y.c="",Y.closed=!0,G(Y,"onend"),c.call(Y,Y.strict,Y.opt),Y}function Re(Y,ee){if((typeof Y=="undefined"?"undefined":(0,d.default)(Y))!=="object"||!(Y instanceof c))throw new Error("bad call to strictFail");Y.strict&&re(Y,ee)}function Pe(Y){Y.strict||(Y.tagName=Y.tagName[Y.looseCase]());var ee=Y.tags[Y.tags.length-1]||Y,fe=Y.tag={name:Y.tagName,attributes:{}};Y.opt.xmlns&&(fe.ns=ee.ns),Y.attribList.length=0,te(Y,"onopentagstart",fe)}function Je(Y,ee){var fe=Y.indexOf(":"),be=fe<0?["",Y]:Y.split(":"),Ce=be[0],Te=be[1];return ee&&Y==="xmlns"&&(Ce="xmlns",Te=""),{prefix:Ce,local:Te}}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 ee=Je(Y.attribName,!0),fe=ee.prefix,be=ee.local;if(fe==="xmlns")if(be==="xml"&&Y.attribValue!==C)Re(Y,"xml: prefix must be bound to "+C+`
Actual: `+Y.attribValue);else if(be==="xmlns"&&Y.attribValue!==I)Re(Y,"xmlns: prefix must be bound to "+I+`
Actual: `+Y.attribValue);else{var Ce=Y.tag,Te=Y.tags[Y.tags.length-1]||Y;Ce.ns===Te.ns&&(Ce.ns=(0,e.default)(Te.ns)),Ce.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 ct(Y,ee){if(Y.opt.xmlns){var fe=Y.tag,be=Je(Y.tagName);fe.prefix=be.prefix,fe.local=be.local,fe.uri=fe.ns[be.prefix]||"",fe.prefix&&!fe.uri&&(Re(Y,"Unbound namespace prefix: "+(0,m.default)(Y.tagName)),fe.uri=be.prefix);var Ce=Y.tags[Y.tags.length-1]||Y;fe.ns&&Ce.ns!==fe.ns&&(0,t.default)(fe.ns).forEach(function(wt){te(Y,"onopennamespace",{prefix:wt,uri:fe.ns[wt]})});for(var Te=0,he=Y.attribList.length;Te<he;Te++){var ye=Y.attribList[Te],Ie=ye[0],tt=ye[1],pt=Je(Ie,!0),st=pt.prefix,Fe=pt.local,ft=st===""?"":fe.ns[st]||"",et={name:Ie,value:tt,prefix:st,local:Fe,uri:ft};st&&st!=="xmlns"&&!ft&&(Re(Y,"Unbound namespace prefix: "+(0,m.default)(st)),et.uri=st),Y.tag.attributes[Ie]=et,te(Y,"onattribute",et)}Y.attribList.length=0}Y.tag.isSelfClosing=!!ee,Y.sawRoot=!0,Y.tags.push(Y.tag),te(Y,"onopentag",Y.tag),ee||(!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 Ue(Y){if(!Y.tagName){Re(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 ee=Y.tags.length,fe=Y.tagName;Y.strict||(fe=fe[Y.looseCase]());for(var be=fe;ee--;){var Ce=Y.tags[ee];if(Ce.name!==be)Re(Y,"Unexpected close tag");else break}if(ee<0){Re(Y,"Unmatched closing tag: "+Y.tagName),Y.textNode+="</"+Y.tagName+">",Y.state=V.TEXT;return}Y.tagName=fe;for(var Te=Y.tags.length;Te-- >ee;){var he=Y.tag=Y.tags.pop();Y.tagName=Y.tag.name,te(Y,"onclosetag",Y.tagName);var ye={};for(var Ie in he.ns)ye[Ie]=he.ns[Ie];var tt=Y.tags[Y.tags.length-1]||Y;Y.opt.xmlns&&he.ns!==tt.ns&&(0,t.default)(he.ns).forEach(function(pt){var st=he.ns[pt];te(Y,"onclosenamespace",{prefix:pt,uri:st})})}ee===0&&(Y.closedRoot=!0),Y.tagName=Y.attribValue=Y.attribName="",Y.attribList.length=0,Y.state=V.TEXT}function ue(Y){var ee=Y.entity,fe=ee.toLowerCase(),be,Ce="";return Y.ENTITIES[ee]?Y.ENTITIES[ee]:Y.ENTITIES[fe]?Y.ENTITIES[fe]:(ee=fe,ee.charAt(0)==="#"&&(ee.charAt(1)==="x"?(ee=ee.slice(2),be=parseInt(ee,16),Ce=be.toString(16)):(ee=ee.slice(1),be=parseInt(ee,10),Ce=be.toString(10))),ee=ee.replace(/^0+/,""),isNaN(be)||Ce.toLowerCase()!==ee?(Re(Y,"Invalid character entity"),"&"+Y.entity+";"):(0,S.default)(be))}function rt(Y,ee){ee==="<"?(Y.state=V.OPEN_WAKA,Y.startTagPosition=Y.position):X(ee)||(Re(Y,"Non-whitespace before first tag."),Y.textNode=ee,Y.state=V.TEXT)}function ge(Y,ee){var fe="";return ee<Y.length&&(fe=Y.charAt(ee)),fe}function Z(Y){var ee=this;if(this.error)throw this.error;if(ee.closed)return re(ee,"Cannot write after close. Assign an onready handler.");if(Y===null)return Se(ee);(typeof Y=="undefined"?"undefined":(0,d.default)(Y))==="object"&&(Y=Y.toString());for(var fe=0,be="";!(be=ge(Y,fe++),ee.c=be,!be);){ee.trackPosition&&(ee.position++,be===`
`?(ee.line++,ee.column=0):ee.column++);switch(ee.state){case V.BEGIN:if(ee.state=V.BEGIN_WHITESPACE,be==="\uFEFF")continue;rt(ee,be);continue;case V.BEGIN_WHITESPACE:rt(ee,be);continue;case V.TEXT:if(ee.sawRoot&&!ee.closedRoot){for(var Ce=fe-1;be&&be!=="<"&&be!=="&";)be=ge(Y,fe++),be&&ee.trackPosition&&(ee.position++,be===`
`?(ee.line++,ee.column=0):ee.column++);ee.textNode+=Y.substring(Ce,fe-1)}be==="<"&&!(ee.sawRoot&&ee.closedRoot&&!ee.strict)?(ee.state=V.OPEN_WAKA,ee.startTagPosition=ee.position):(!X(be)&&(!ee.sawRoot||ee.closedRoot)&&Re(ee,"Text data outside of root node."),be==="&"?ee.state=V.TEXT_ENTITY:ee.textNode+=be);continue;case V.SCRIPT:be==="<"?ee.state=V.SCRIPT_ENDING:ee.script+=be;continue;case V.SCRIPT_ENDING:be==="/"?ee.state=V.CLOSE_TAG:(ee.script+="<"+be,ee.state=V.SCRIPT);continue;case V.OPEN_WAKA:if(be==="!")ee.state=V.SGML_DECL,ee.sgmlDecl="";else if(!X(be))if(W(F,be))ee.state=V.OPEN_TAG,ee.tagName=be;else if(be==="/")ee.state=V.CLOSE_TAG,ee.tagName="";else if(be==="?")ee.state=V.PROC_INST,ee.procInstName=ee.procInstBody="";else{if(Re(ee,"Unencoded <"),ee.startTagPosition+1<ee.position){var Te=ee.position-ee.startTagPosition;be=new Array(Te).join(" ")+be}ee.textNode+="<"+be,ee.state=V.TEXT}continue;case V.SGML_DECL:(ee.sgmlDecl+be).toUpperCase()===O?(te(ee,"onopencdata"),ee.state=V.CDATA,ee.sgmlDecl="",ee.cdata=""):ee.sgmlDecl+be==="--"?(ee.state=V.COMMENT,ee.comment="",ee.sgmlDecl=""):(ee.sgmlDecl+be).toUpperCase()===E?(ee.state=V.DOCTYPE,(ee.doctype||ee.sawRoot)&&Re(ee,"Inappropriately located doctype declaration"),ee.doctype="",ee.sgmlDecl=""):be===">"?(te(ee,"onsgmldeclaration",ee.sgmlDecl),ee.sgmlDecl="",ee.state=V.TEXT):(P(be)&&(ee.state=V.SGML_DECL_QUOTED),ee.sgmlDecl+=be);continue;case V.SGML_DECL_QUOTED:be===ee.q&&(ee.state=V.SGML_DECL,ee.q=""),ee.sgmlDecl+=be;continue;case V.DOCTYPE:be===">"?(ee.state=V.TEXT,te(ee,"ondoctype",ee.doctype),ee.doctype=!0):(ee.doctype+=be,be==="["?ee.state=V.DOCTYPE_DTD:P(be)&&(ee.state=V.DOCTYPE_QUOTED,ee.q=be));continue;case V.DOCTYPE_QUOTED:ee.doctype+=be,be===ee.q&&(ee.q="",ee.state=V.DOCTYPE);continue;case V.DOCTYPE_DTD:ee.doctype+=be,be==="]"?ee.state=V.DOCTYPE:P(be)&&(ee.state=V.DOCTYPE_DTD_QUOTED,ee.q=be);continue;case V.DOCTYPE_DTD_QUOTED:ee.doctype+=be,be===ee.q&&(ee.state=V.DOCTYPE_DTD,ee.q="");continue;case V.COMMENT:be==="-"?ee.state=V.COMMENT_ENDING:ee.comment+=be;continue;case V.COMMENT_ENDING:be==="-"?(ee.state=V.COMMENT_ENDED,ee.comment=le(ee.opt,ee.comment),ee.comment&&te(ee,"oncomment",ee.comment),ee.comment=""):(ee.comment+="-"+be,ee.state=V.COMMENT);continue;case V.COMMENT_ENDED:be!==">"?(Re(ee,"Malformed comment"),ee.comment+="--"+be,ee.state=V.COMMENT):ee.state=V.TEXT;continue;case V.CDATA:be==="]"?ee.state=V.CDATA_ENDING:ee.cdata+=be;continue;case V.CDATA_ENDING:be==="]"?ee.state=V.CDATA_ENDING_2:(ee.cdata+="]"+be,ee.state=V.CDATA);continue;case V.CDATA_ENDING_2:be===">"?(ee.cdata&&te(ee,"oncdata",ee.cdata),te(ee,"onclosecdata"),ee.cdata="",ee.state=V.TEXT):be==="]"?ee.cdata+="]":(ee.cdata+="]]"+be,ee.state=V.CDATA);continue;case V.PROC_INST:be==="?"?ee.state=V.PROC_INST_ENDING:X(be)?ee.state=V.PROC_INST_BODY:ee.procInstName+=be;continue;case V.PROC_INST_BODY:if(!ee.procInstBody&&X(be))continue;be==="?"?ee.state=V.PROC_INST_ENDING:ee.procInstBody+=be;continue;case V.PROC_INST_ENDING:be===">"?(te(ee,"onprocessinginstruction",{name:ee.procInstName,body:ee.procInstBody}),ee.procInstName=ee.procInstBody="",ee.state=V.TEXT):(ee.procInstBody+="?"+be,ee.state=V.PROC_INST_BODY);continue;case V.OPEN_TAG:W(R,be)?ee.tagName+=be:(Pe(ee),be===">"?ct(ee):be==="/"?ee.state=V.OPEN_TAG_SLASH:(X(be)||Re(ee,"Invalid character in tag name"),ee.state=V.ATTRIB));continue;case V.OPEN_TAG_SLASH:be===">"?(ct(ee,!0),Ue(ee)):(Re(ee,"Forward-slash in opening tag not followed by >"),ee.state=V.ATTRIB);continue;case V.ATTRIB:if(X(be))continue;be===">"?ct(ee):be==="/"?ee.state=V.OPEN_TAG_SLASH:W(F,be)?(ee.attribName=be,ee.attribValue="",ee.state=V.ATTRIB_NAME):Re(ee,"Invalid attribute name");continue;case V.ATTRIB_NAME:be==="="?ee.state=V.ATTRIB_VALUE:be===">"?(Re(ee,"Attribute without value"),ee.attribValue=ee.attribName,Ve(ee),ct(ee)):X(be)?ee.state=V.ATTRIB_NAME_SAW_WHITE:W(R,be)?ee.attribName+=be:Re(ee,"Invalid attribute name");continue;case V.ATTRIB_NAME_SAW_WHITE:if(be==="=")ee.state=V.ATTRIB_VALUE;else{if(X(be))continue;Re(ee,"Attribute without value"),ee.tag.attributes[ee.attribName]="",ee.attribValue="",te(ee,"onattribute",{name:ee.attribName,value:""}),ee.attribName="",be===">"?ct(ee):W(F,be)?(ee.attribName=be,ee.state=V.ATTRIB_NAME):(Re(ee,"Invalid attribute name"),ee.state=V.ATTRIB)}continue;case V.ATTRIB_VALUE:if(X(be))continue;P(be)?(ee.q=be,ee.state=V.ATTRIB_VALUE_QUOTED):(Re(ee,"Unquoted attribute value"),ee.state=V.ATTRIB_VALUE_UNQUOTED,ee.attribValue=be);continue;case V.ATTRIB_VALUE_QUOTED:if(be!==ee.q){be==="&"?ee.state=V.ATTRIB_VALUE_ENTITY_Q:ee.attribValue+=be;continue}Ve(ee),ee.q="",ee.state=V.ATTRIB_VALUE_CLOSED;continue;case V.ATTRIB_VALUE_CLOSED:X(be)?ee.state=V.ATTRIB:be===">"?ct(ee):be==="/"?ee.state=V.OPEN_TAG_SLASH:W(F,be)?(Re(ee,"No whitespace between attributes"),ee.attribName=be,ee.attribValue="",ee.state=V.ATTRIB_NAME):Re(ee,"Invalid attribute name");continue;case V.ATTRIB_VALUE_UNQUOTED:if(!z(be)){be==="&"?ee.state=V.ATTRIB_VALUE_ENTITY_U:ee.attribValue+=be;continue}Ve(ee),be===">"?ct(ee):ee.state=V.ATTRIB;continue;case V.CLOSE_TAG:if(ee.tagName)be===">"?Ue(ee):W(R,be)?ee.tagName+=be:ee.script?(ee.script+="</"+ee.tagName,ee.tagName="",ee.state=V.SCRIPT):(X(be)||Re(ee,"Invalid tagname in closing tag"),ee.state=V.CLOSE_TAG_SAW_WHITE);else{if(X(be))continue;U(F,be)?ee.script?(ee.script+="</"+be,ee.state=V.SCRIPT):Re(ee,"Invalid tagname in closing tag."):ee.tagName=be}continue;case V.CLOSE_TAG_SAW_WHITE:if(X(be))continue;be===">"?Ue(ee):Re(ee,"Invalid characters in closing tag");continue;case V.TEXT_ENTITY:case V.ATTRIB_VALUE_ENTITY_Q:case V.ATTRIB_VALUE_ENTITY_U:var he,ye;switch(ee.state){case V.TEXT_ENTITY:he=V.TEXT,ye="textNode";break;case V.ATTRIB_VALUE_ENTITY_Q:he=V.ATTRIB_VALUE_QUOTED,ye="attribValue";break;case V.ATTRIB_VALUE_ENTITY_U:he=V.ATTRIB_VALUE_UNQUOTED,ye="attribValue";break}be===";"?(ee[ye]+=ue(ee),ee.entity="",ee.state=he):W(ee.entity.length?M:B,be)?ee.entity+=be:(Re(ee,"Invalid character in entity name"),ee[ye]+="&"+ee.entity+be,ee.entity="",ee.state=he);continue;default:throw new Error(ee,"Unknown state: "+ee.state)}}return ee.position>=ee.bufferCheckPosition&&h(ee),ee}/*! http://mths.be/fromcodepoint v0.1.0 by @mathias */S.default||function(){var Y=String.fromCharCode,ee=Math.floor,fe=function(){var Ce=16384,Te=[],he,ye,Ie=-1,tt=arguments.length;if(!tt)return"";for(var pt="";++Ie<tt;){var st=Number(arguments[Ie]);if(!isFinite(st)||st<0||st>1114111||ee(st)!==st)throw RangeError("Invalid code point: "+st);st<=65535?Te.push(st):(st-=65536,he=(st>>10)+55296,ye=st%1024+56320,Te.push(he,ye)),(Ie+1===tt||Te.length>Ce)&&(pt+=Y.apply(null,Te),Te.length=0)}return pt};o.default?Object.defineProperty(String,"fromCodePoint",{value:fe,configurable:!0,writable:!0}):String.fromCodePoint=fe}()})(typeof i=="undefined"?(void 0).sax={}:i)}).call(this,k("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(k,D,i){D.exports=S;var y=k("events").EventEmitter,p=k("inherits");p(S,y),S.Readable=k("readable-stream/readable.js"),S.Writable=k("readable-stream/writable.js"),S.Duplex=k("readable-stream/duplex.js"),S.Transform=k("readable-stream/transform.js"),S.PassThrough=k("readable-stream/passthrough.js"),S.Stream=S;function S(){y.call(this)}S.prototype.pipe=function(A,m){var f=this;function d(u){A.writable&&(A.write(u)===!1&&f.pause&&f.pause())}f.on("data",d);function l(){f.readable&&f.resume&&f.resume()}A.on("drain",l),!A._isStdio&&(!m||m.end!==!1)&&(f.on("end",n),f.on("close",t));var o=!1;function n(){if(o)return;o=!0,A.end()}function t(){if(o)return;o=!0,typeof A.destroy=="function"&&A.destroy()}function a(u){if(e(),y.listenerCount(this,"error")===0)throw u}f.on("error",a),A.on("error",a);function e(){f.removeListener("data",d),A.removeListener("drain",l),f.removeListener("end",n),f.removeListener("close",t),f.removeListener("error",a),A.removeListener("error",a),f.removeListener("end",e),f.removeListener("close",e),A.removeListener("close",e)}return f.on("end",e),f.on("close",e),A.on("close",e),A.emit("pipe",f),A}},{events:192,inherits:196,"readable-stream/duplex.js":213,"readable-stream/passthrough.js":222,"readable-stream/readable.js":223,"readable-stream/transform.js":224,"readable-stream/writable.js":225}],231:[function(k,D,i){(function(y){var p=k("./lib/request"),S=k("./lib/response"),A=k("xtend"),m=k("builtin-status-codes"),f=k("url"),d=i;d.request=function(l,o){typeof l=="string"?l=f.parse(l):l=A(l);var n=y.location.protocol.search(/^https?:$/)===-1?"http:":"",t=l.protocol||n,a=l.hostname||l.host,e=l.port,u=l.path||"/";a&&a.indexOf(":")!==-1&&(a="["+a+"]"),l.url=(a?t+"//"+a:"")+(e?":"+e:"")+u,l.method=(l.method||"GET").toUpperCase(),l.headers=l.headers||{};var r=new p(l);return o&&r.on("response",o),r},d.get=function(o,n){var t=d.request(o,n);return t.end(),t},d.ClientRequest=p,d.IncomingMessage=S.IncomingMessage,d.Agent=function(){},d.Agent.defaultMaxSockets=4,d.globalAgent=new d.Agent,d.STATUS_CODES=m,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(k,D,i){(function(y){"use strict";i.fetch=d(y.fetch)&&d(y.ReadableStream),i.writableStream=d(y.WritableStream),i.abortController=d(y.AbortController),i.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),i.blobConstructor=!0}catch(l){}var p;function S(){if(p!==void 0)return p;if(y.XMLHttpRequest){p=new y.XMLHttpRequest;try{p.open("GET",y.XDomainRequest?"/":"https://example.com")}catch(l){p=null}}else p=null;return p}function A(l){var o=S();if(!o)return!1;try{return o.responseType=l,o.responseType===l}catch(n){}return!1}var m=typeof y.ArrayBuffer!="undefined",f=m&&d(y.ArrayBuffer.prototype.slice);i.arraybuffer=i.fetch||m&&A("arraybuffer"),i.msstream=!i.fetch&&f&&A("ms-stream"),i.mozchunkedarraybuffer=!i.fetch&&m&&A("moz-chunked-arraybuffer"),i.overrideMimeType=i.fetch||(S()?d(S().overrideMimeType):!1),i.vbArray=d(y.VBArray);function d(l){return typeof l=="function"}p=null}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],233:[function(k,D,i){(function(y,p,S){"use strict";var A=k("babel-runtime/core-js/object/keys"),m=f(A);function f(h){return h&&h.__esModule?h:{default:h}}var d=k("./capability"),l=k("inherits"),o=k("./response"),n=k("readable-stream"),t=k("to-arraybuffer"),a=o.IncomingMessage,e=o.readyStates;function u(h,g){return d.fetch&&g?"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 g=this;n.Writable.call(g),g._opts=h,g._body=[],g._headers={},h.auth&&g.setHeader("Authorization","Basic "+new S(h.auth).toString("base64")),(0,m.default)(h.headers).forEach(function(w){g.setHeader(w,h.headers[w])});var v,b=!0;if(h.mode==="disable-fetch"||"requestTimeout"in h&&!d.abortController)b=!1,v=!0;else if(h.mode==="prefer-streaming")v=!1;else if(h.mode==="allow-wrong-content-type")v=!d.overrideMimeType;else if(!h.mode||h.mode==="default"||h.mode==="prefer-fast")v=!0;else throw new Error("Invalid value for opts.mode");g._mode=u(v,b),g._fetchTimer=null,g.on("finish",function(){g._onFinish()})};l(r,n.Writable),r.prototype.setHeader=function(h,g){var v=this,b=h.toLowerCase();if(c.indexOf(b)!==-1)return;v._headers[b]={name:h,value:g}},r.prototype.getHeader=function(h){var g=this._headers[h.toLowerCase()];return g?g.value:null},r.prototype.removeHeader=function(h){var g=this;delete g._headers[h.toLowerCase()]},r.prototype._onFinish=function(){var h=this;if(h._destroyed)return;var g=h._opts,v=h._headers,b=null;g.method!=="GET"&&g.method!=="HEAD"&&(d.arraybuffer?b=t(S.concat(h._body)):d.blobConstructor?b=new p.Blob(h._body.map(function(C){return t(C)}),{type:(v["content-type"]||{}).value||""}):b=S.concat(h._body).toString());var w=[];if((0,m.default)(v).forEach(function(C){var I=v[C].name,_=v[C].value;Array.isArray(_)?_.forEach(function(F){w.push([I,F])}):w.push([I,_])}),h._mode==="fetch"){var x=null,T=null;if(d.abortController){var O=new AbortController;x=O.signal,h._fetchAbortController=O,"requestTimeout"in g&&g.requestTimeout!==0&&(h._fetchTimer=p.setTimeout(function(){h.emit("requestTimeout"),h._fetchAbortController&&h._fetchAbortController.abort()},g.requestTimeout))}p.fetch(h._opts.url,{method:h._opts.method,headers:w,body:b||void 0,mode:"cors",credentials:g.withCredentials?"include":"same-origin",signal:x}).then(function(C){h._fetchResponse=C,h._connect()},function(C){p.clearTimeout(h._fetchTimer),h._destroyed||h.emit("error",C)})}else{var E=h._xhr=new p.XMLHttpRequest;try{E.open(h._opts.method,h._opts.url,!0)}catch(C){y.nextTick(function(){h.emit("error",C)});return}"responseType"in E&&(E.responseType=h._mode.split(":")[0]),"withCredentials"in E&&(E.withCredentials=!!g.withCredentials),h._mode==="text"&&"overrideMimeType"in E&&E.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in g&&(E.timeout=g.requestTimeout,E.ontimeout=function(){h.emit("requestTimeout")}),w.forEach(function(C){E.setRequestHeader(C[0],C[1])}),h._response=null,E.onreadystatechange=function(){switch(E.readyState){case e.LOADING:case e.DONE:h._onXHRProgress();break}},h._mode==="moz-chunked-arraybuffer"&&(E.onprogress=function(){h._onXHRProgress()}),E.onerror=function(){if(h._destroyed)return;h.emit("error",new Error("XHR error"))};try{E.send(b)}catch(C){y.nextTick(function(){h.emit("error",C)});return}}};function s(h){try{var g=h.status;return g!==null&&g!==0}catch(v){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 a(h._xhr,h._fetchResponse,h._mode,h._fetchTimer),h._response.on("error",function(g){h.emit("error",g)}),h.emit("response",h._response)},r.prototype._write=function(h,g,v){var b=this;b._body.push(h),v()},r.prototype.abort=r.prototype.destroy=function(){var h=this;h._destroyed=!0,p.clearTimeout(h._fetchTimer),h._response&&(h._response._destroyed=!0),h._xhr?h._xhr.abort():h._fetchAbortController&&h._fetchAbortController.abort()},r.prototype.end=function(h,g,v){var b=this;typeof h=="function"&&(v=h,h=void 0),n.Writable.prototype.end.call(b,h,g,v)},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,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},k("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(k,D,i){(function(y,p,S){"use strict";var A=k("babel-runtime/core-js/promise"),m=f(A);function f(a){return a&&a.__esModule?a:{default:a}}var d=k("./capability"),l=k("inherits"),o=k("readable-stream"),n=i.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},t=i.IncomingMessage=function(a,e,u,r){var s=this;if(o.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 x(){g.read().then(function(T){if(s._destroyed)return;if(T.done){p.clearTimeout(r),s.push(null);return}s.push(new S(T.value)),x()}).catch(function(T){p.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(x,T){s.headers[T.toLowerCase()]=x,s.rawHeaders.push(T,x)}),d.writableStream){var h=new WritableStream({write:function(T){return new m.default(function(O,E){s._destroyed?E():s.push(new S(T))?O():s._resumeFetch=O})},close:function(){p.clearTimeout(r),s._destroyed||s.push(null)},abort:function(T){s._destroyed||s.emit("error",T)}});try{e.body.pipeTo(h).catch(function(x){p.clearTimeout(r),s._destroyed||s.emit("error",x)});return}catch(x){}}var g=e.body.getReader();c()}else{s._xhr=a,s._pos=0,s.url=a.responseURL,s.statusCode=a.status,s.statusMessage=a.statusText;var v=a.getAllResponseHeaders().split(/\r?\n/);if(v.forEach(function(x){var T=x.match(/^([^:]+):\s*(.*)/);if(T){var O=T[1].toLowerCase();O==="set-cookie"?(s.headers[O]===void 0&&(s.headers[O]=[]),s.headers[O].push(T[2])):s.headers[O]!==void 0?s.headers[O]+=", "+T[2]:s.headers[O]=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 w=b.match(/;\s*charset=([^;])(;|$)/);w&&(s._charset=w[1].toLowerCase())}s._charset||(s._charset="utf-8")}}};l(t,o.Readable),t.prototype._read=function(){var a=this,e=a._resumeFetch;e&&(a._resumeFetch=null,e())},t.prototype._onXHRProgress=function(){var a=this,e=a._xhr,u=null;switch(a._mode){case"text:vbarray":if(e.readyState!==n.DONE)break;try{u=new p.VBArray(e.responseBody).toArray()}catch(g){}if(u!==null){a.push(new S(u));break}case"text":try{u=e.responseText}catch(g){a._mode="text:vbarray";break}if(u.length>a._pos){var r=u.substr(a._pos);if(a._charset==="x-user-defined"){for(var s=new S(r.length),c=0;c<r.length;c++)s[c]=r.charCodeAt(c)&255;a.push(s)}else a.push(r,a._charset);a._pos=u.length}break;case"arraybuffer":if(e.readyState!==n.DONE||!e.response)break;u=e.response,a.push(new S(new Uint8Array(u)));break;case"moz-chunked-arraybuffer":if(u=e.response,e.readyState!==n.LOADING||!u)break;a.push(new S(new Uint8Array(u)));break;case"ms-stream":if(u=e.response,e.readyState!==n.LOADING)break;var h=new p.MSStreamReader;h.onprogress=function(){h.result.byteLength>a._pos&&(a.push(new S(new Uint8Array(h.result.slice(a._pos)))),a._pos=h.result.byteLength)},h.onload=function(){a.push(null)},h.readAsArrayBuffer(u);break}a._xhr.readyState===n.DONE&&a._mode!=="ms-stream"&&a.push(null)}}).call(this,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{},k("buffer").Buffer)},{"./capability":232,_process:208,"babel-runtime/core-js/promise":61,buffer:73,inherits:196,"readable-stream":223}],235:[function(k,D,i){"use strict";var y=k("safe-buffer").Buffer,p=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 g;;)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(g)return;h=(""+h).toLowerCase(),g=!0}}function A(h){var g=S(h);if(typeof g!="string"&&(y.isEncoding===p||!p(h)))throw new Error("Unknown encoding: "+h);return g||h}i.StringDecoder=m;function m(h){this.encoding=A(h);var g;switch(this.encoding){case"utf16le":this.text=a,this.end=e,g=4;break;case"utf8":this.fillLast=o,g=4;break;case"base64":this.text=u,this.end=r,g=3;break;default:this.write=s,this.end=c;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=y.allocUnsafe(g)}m.prototype.write=function(h){if(h.length===0)return"";var g,v;if(this.lastNeed){if(g=this.fillLast(h),g===void 0)return"";v=this.lastNeed,this.lastNeed=0}else v=0;return v<h.length?g?g+this.text(h,v):this.text(h,v):g||""},m.prototype.end=t,m.prototype.text=n,m.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,g,v){var b=g.length-1;if(b<v)return 0;var w=f(g[b]);return w>=0?(w>0&&(h.lastNeed=w-1),w):--b<v||w===-2?0:(w=f(g[b]),w>=0?(w>0&&(h.lastNeed=w-2),w):--b<v||w===-2?0:(w=f(g[b]),w>=0?(w>0&&(w===2?w=0:h.lastNeed=w-3),w):0))}function l(h,g,v){if((g[0]&192)!==128)return h.lastNeed=0,"\uFFFD";if(h.lastNeed>1&&g.length>1){if((g[1]&192)!==128)return h.lastNeed=1,"\uFFFD";if(h.lastNeed>2&&g.length>2&&(g[2]&192)!==128)return h.lastNeed=2,"\uFFFD"}}function o(h){var g=this.lastTotal-this.lastNeed,v=l(this,h,g);if(v!==void 0)return v;if(this.lastNeed<=h.length)return h.copy(this.lastChar,g,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);h.copy(this.lastChar,g,0,h.length),this.lastNeed-=h.length}function n(h,g){var v=d(this,h,g);if(!this.lastNeed)return h.toString("utf8",g);this.lastTotal=v;var b=h.length-(v-this.lastNeed);return h.copy(this.lastChar,0,b),h.toString("utf8",g,b)}function t(h){var g=h&&h.length?this.write(h):"";return this.lastNeed?g+"\uFFFD":g}function a(h,g){if((h.length-g)%2===0){var v=h.toString("utf16le",g);if(v){var b=v.charCodeAt(v.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],v.slice(0,-1)}return v}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=h[h.length-1],h.toString("utf16le",g,h.length-1)}function e(h){var g=h&&h.length?this.write(h):"";if(this.lastNeed){var v=this.lastTotal-this.lastNeed;return g+this.lastChar.toString("utf16le",0,v)}return g}function u(h,g){var v=(h.length-g)%3;return v===0?h.toString("base64",g):(this.lastNeed=3-v,this.lastTotal=3,v===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",g,h.length-v))}function r(h){var g=h&&h.length?this.write(h):"";return this.lastNeed?g+this.lastChar.toString("base64",0,3-this.lastNeed):g}function s(h){return h.toString(this.encoding)}function c(h){return h&&h.length?this.write(h):""}},{"safe-buffer":228}],236:[function(k,D,i){(function(y,p){var S=k("process/browser.js").nextTick,A=Function.prototype.apply,m=Array.prototype.slice,f={},d=0;i.setTimeout=function(){return new l(A.call(setTimeout,window,arguments),clearTimeout)},i.setInterval=function(){return new l(A.call(setInterval,window,arguments),clearInterval)},i.clearTimeout=i.clearInterval=function(o){o.close()};function l(o,n){this._id=o,this._clearFn=n}l.prototype.unref=l.prototype.ref=function(){},l.prototype.close=function(){this._clearFn.call(window,this._id)},i.enroll=function(o,n){clearTimeout(o._idleTimeoutId),o._idleTimeout=n},i.unenroll=function(o){clearTimeout(o._idleTimeoutId),o._idleTimeout=-1},i._unrefActive=i.active=function(o){clearTimeout(o._idleTimeoutId);var n=o._idleTimeout;n>=0&&(o._idleTimeoutId=setTimeout(function(){o._onTimeout&&o._onTimeout()},n))},i.setImmediate=typeof y=="function"?y:function(o){var n=d++,t=arguments.length<2?!1:m.call(arguments,1);return f[n]=!0,S(function(){f[n]&&(t?o.apply(null,t):o.call(null),i.clearImmediate(n))}),n},i.clearImmediate=typeof p=="function"?p:function(o){delete f[o]}}).call(this,k("timers").setImmediate,k("timers").clearImmediate)},{"process/browser.js":208,timers:236}],237:[function(k,D,i){var y=k("buffer").Buffer;D.exports=function(p){if(p instanceof Uint8Array){if(p.byteOffset===0&&p.byteLength===p.buffer.byteLength)return p.buffer;if(typeof p.buffer.slice=="function")return p.buffer.slice(p.byteOffset,p.byteOffset+p.byteLength)}if(y.isBuffer(p)){for(var S=new Uint8Array(p.length),A=p.length,m=0;m<A;m++)S[m]=p[m];return S.buffer}else throw new Error("Argument must be a Buffer")}},{buffer:73}],238:[function(k,D,i){"use strict";var y=k("punycode"),p=k("./util");i.parse=g,i.resolve=b,i.resolveObject=w,i.format=v,i.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 A=/^([a-z0-9.+-]+:)/i,m=/:[0-9]*$/,f=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,d=["<",">",'"',"`"," ","\r",`
`," "],l=["{","}","|","\\","^","`"].concat(d),o=["'"].concat(l),n=["%","/","?",";","#"].concat(o),t=["/","?","#"],a=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=k("querystring");function g(x,T,O){if(x&&p.isObject(x)&&x instanceof S)return x;var E=new S;return E.parse(x,T,O),E}S.prototype.parse=function(x,T,O){if(!p.isString(x))throw new TypeError("Parameter 'url' must be a string, not "+typeof x);var E=x.indexOf("?"),C=E!==-1&&E<x.indexOf("#")?"?":"#",I=x.split(C),_=/\\/g;I[0]=I[0].replace(_,"/"),x=I.join(C);var F=x;if(F=F.trim(),!O&&x.split("#").length===1){var R=f.exec(F);if(R)return this.path=F,this.href=F,this.pathname=R[1],R[2]?(this.search=R[2],T?this.query=h.parse(this.search.substr(1)):this.query=this.search.substr(1)):T&&(this.search="",this.query={}),this}var B=A.exec(F);if(B){B=B[0];var M=B.toLowerCase();this.protocol=M,F=F.substr(B.length)}if(O||B||F.match(/^\/\/[^@\/]+@[^@\/]+/)){var X=F.substr(0,2)==="//";X&&!(B&&s[B])&&(F=F.substr(2),this.slashes=!0)}if(!s[B]&&(X||B&&!c[B])){for(var P=-1,z=0;z<t.length;z++){var W=F.indexOf(t[z]);W!==-1&&(P===-1||W<P)&&(P=W)}var U,V;P===-1?V=F.lastIndexOf("@"):V=F.lastIndexOf("@",P),V!==-1&&(U=F.slice(0,V),F=F.slice(V+1),this.auth=decodeURIComponent(U)),P=-1;for(var z=0;z<n.length;z++){var W=F.indexOf(n[z]);W!==-1&&(P===-1||W<P)&&(P=W)}P===-1&&(P=F.length),this.host=F.slice(0,P),F=F.slice(P),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(/\./),z=0,te=G.length;z<te;z++){var $=G[z];if(!$)continue;if(!$.match(e)){for(var le="",re=0,Se=$.length;re<Se;re++)$.charCodeAt(re)>127?le+="x":le+=$[re];if(!le.match(e)){var Re=G.slice(0,z),Pe=G.slice(z+1),Je=$.match(u);Je&&(Re.push(Je[1]),Pe.unshift(Je[2])),Pe.length&&(F="/"+Pe.join(".")+F),this.hostname=Re.join(".");break}}}this.hostname.length>a?this.hostname="":this.hostname=this.hostname.toLowerCase(),Q||(this.hostname=y.toASCII(this.hostname));var Ve=this.port?":"+this.port:"",ct=this.hostname||"";this.host=ct+Ve,this.href+=this.host,Q&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),F[0]!=="/"&&(F="/"+F))}if(!r[M])for(var z=0,te=o.length;z<te;z++){var Ue=o[z];if(F.indexOf(Ue)===-1)continue;var ue=encodeURIComponent(Ue);ue===Ue&&(ue=escape(Ue)),F=F.split(Ue).join(ue)}var rt=F.indexOf("#");rt!==-1&&(this.hash=F.substr(rt),F=F.slice(0,rt));var ge=F.indexOf("?");if(ge!==-1?(this.search=F.substr(ge),this.query=F.substr(ge+1),T&&(this.query=h.parse(this.query)),F=F.slice(0,ge)):T&&(this.search="",this.query={}),F&&(this.pathname=F),c[M]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var Ve=this.pathname||"",Z=this.search||"";this.path=Ve+Z}return this.href=this.format(),this};function v(x){return p.isString(x)&&(x=g(x)),x instanceof S?x.format():S.prototype.format.call(x)}S.prototype.format=function(){var x=this.auth||"";x&&(x=encodeURIComponent(x),x=x.replace(/%3A/i,":"),x+="@");var T=this.protocol||"",O=this.pathname||"",E=this.hash||"",C=!1,I="";this.host?C=x+this.host:this.hostname&&(C=x+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(C+=":"+this.port)),this.query&&p.isObject(this.query)&&Object.keys(this.query).length&&(I=h.stringify(this.query));var _=this.search||I&&"?"+I||"";return T&&T.substr(-1)!==":"&&(T+=":"),this.slashes||(!T||c[T])&&C!==!1?(C="//"+(C||""),O&&O.charAt(0)!=="/"&&(O="/"+O)):C||(C=""),E&&E.charAt(0)!=="#"&&(E="#"+E),_&&_.charAt(0)!=="?"&&(_="?"+_),O=O.replace(/[?#]/g,function(F){return encodeURIComponent(F)}),_=_.replace("#","%23"),T+C+O+_+E};function b(x,T){return g(x,!1,!0).resolve(T)}S.prototype.resolve=function(x){return this.resolveObject(g(x,!1,!0)).format()};function w(x,T){return x?g(x,!1,!0).resolveObject(T):T}S.prototype.resolveObject=function(x){if(p.isString(x)){var T=new S;T.parse(x,!1,!0),x=T}for(var O=new S,E=Object.keys(this),C=0;C<E.length;C++){var I=E[C];O[I]=this[I]}if(O.hash=x.hash,x.href==="")return O.href=O.format(),O;if(x.slashes&&!x.protocol){for(var _=Object.keys(x),F=0;F<_.length;F++){var R=_[F];R!=="protocol"&&(O[R]=x[R])}return c[O.protocol]&&O.hostname&&!O.pathname&&(O.path=O.pathname="/"),O.href=O.format(),O}if(x.protocol&&x.protocol!==O.protocol){if(!c[x.protocol]){for(var B=Object.keys(x),M=0;M<B.length;M++){var X=B[M];O[X]=x[X]}return O.href=O.format(),O}if(O.protocol=x.protocol,!x.host&&!s[x.protocol]){for(var te=(x.pathname||"").split("/");te.length&&!(x.host=te.shift()););x.host||(x.host=""),x.hostname||(x.hostname=""),te[0]!==""&&te.unshift(""),te.length<2&&te.unshift(""),O.pathname=te.join("/")}else O.pathname=x.pathname;if(O.search=x.search,O.query=x.query,O.host=x.host||"",O.auth=x.auth,O.hostname=x.hostname||x.host,O.port=x.port,O.pathname||O.search){var P=O.pathname||"",z=O.search||"";O.path=P+z}return O.slashes=O.slashes||x.slashes,O.href=O.format(),O}var W=O.pathname&&O.pathname.charAt(0)==="/",U=x.host||x.pathname&&x.pathname.charAt(0)==="/",V=U||W||O.host&&x.pathname,Q=V,G=O.pathname&&O.pathname.split("/")||[],te=x.pathname&&x.pathname.split("/")||[],$=O.protocol&&!c[O.protocol];if($&&(O.hostname="",O.port=null,O.host&&(G[0]===""?G[0]=O.host:G.unshift(O.host)),O.host="",x.protocol&&(x.hostname=null,x.port=null,x.host&&(te[0]===""?te[0]=x.host:te.unshift(x.host)),x.host=null),V=V&&(te[0]===""||G[0]==="")),U)O.host=x.host||x.host===""?x.host:O.host,O.hostname=x.hostname||x.hostname===""?x.hostname:O.hostname,O.search=x.search,O.query=x.query,G=te;else if(te.length)G||(G=[]),G.pop(),G=G.concat(te),O.search=x.search,O.query=x.query;else if(!p.isNullOrUndefined(x.search)){if($){O.hostname=O.host=G.shift();var le=O.host&&O.host.indexOf("@")>0?O.host.split("@"):!1;le&&(O.auth=le.shift(),O.host=O.hostname=le.shift())}return O.search=x.search,O.query=x.query,(!p.isNull(O.pathname)||!p.isNull(O.search))&&(O.path=(O.pathname?O.pathname:"")+(O.search?O.search:"")),O.href=O.format(),O}if(!G.length)return O.pathname=null,O.search?O.path="/"+O.search:O.path=null,O.href=O.format(),O;for(var re=G.slice(-1)[0],Se=(O.host||x.host||G.length>1)&&(re==="."||re==="..")||re==="",Re=0,Pe=G.length;Pe>=0;Pe--)re=G[Pe],re==="."?G.splice(Pe,1):re===".."?(G.splice(Pe,1),Re++):Re&&(G.splice(Pe,1),Re--);if(!V&&!Q)for(;Re--;Re)G.unshift("..");V&&G[0]!==""&&(!G[0]||G[0].charAt(0)!=="/")&&G.unshift(""),Se&&G.join("/").substr(-1)!=="/"&&G.push("");var Je=G[0]===""||G[0]&&G[0].charAt(0)==="/";if($){O.hostname=O.host=Je?"":G.length?G.shift():"";var le=O.host&&O.host.indexOf("@")>0?O.host.split("@"):!1;le&&(O.auth=le.shift(),O.host=O.hostname=le.shift())}return V=V||O.host&&G.length,V&&!Je&&G.unshift(""),G.length?O.pathname=G.join("/"):(O.pathname=null,O.path=null),(!p.isNull(O.pathname)||!p.isNull(O.search))&&(O.path=(O.pathname?O.pathname:"")+(O.search?O.search:"")),O.auth=x.auth||O.auth,O.slashes=O.slashes||x.slashes,O.href=O.format(),O},S.prototype.parseHost=function(){var x=this.host,T=m.exec(x);T&&(T=T[0],T!==":"&&(this.port=T.substr(1)),x=x.substr(0,x.length-T.length)),x&&(this.hostname=x)}},{"./util":239,punycode:209,querystring:212}],239:[function(k,D,i){"use strict";D.exports={isString:function(p){return typeof p=="string"},isObject:function(p){return typeof p=="object"&&p!==null},isNull:function(p){return p===null},isNullOrUndefined:function(p){return p==null}}},{}],240:[function(k,D,i){(function(y){D.exports=p;function p(A,m){if(S("noDeprecation"))return A;var f=!1;function d(){if(!f){if(S("throwDeprecation"))throw new Error(m);S("traceDeprecation")?console.trace(m):console.warn(m),f=!0}return A.apply(this,arguments)}return d}function S(A){try{if(!y.localStorage)return!1}catch(f){return!1}var m=y.localStorage[A];return m==null?!1:String(m).toLowerCase()==="true"}}).call(this,typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],241:[function(k,D,i){typeof Object.create=="function"?D.exports=function(p,S){p.super_=S,p.prototype=Object.create(S.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}})}:D.exports=function(p,S){p.super_=S;var A=function(){};A.prototype=S.prototype,p.prototype=new A,p.prototype.constructor=p}},{}],242:[function(k,D,i){D.exports=function(p){return p&&typeof p=="object"&&typeof p.copy=="function"&&typeof p.fill=="function"&&typeof p.readUInt8=="function"}},{}],243:[function(k,D,i){(function(y,p){var S=/%[sdj%]/g;i.format=function(P){if(!b(P)){for(var z=[],W=0;W<arguments.length;W++)z.push(f(arguments[W]));return z.join(" ")}for(var W=1,U=arguments,V=U.length,Q=String(P).replace(S,function(te){if(te==="%%")return"%";if(W>=V)return te;switch(te){case"%s":return String(U[W++]);case"%d":return Number(U[W++]);case"%j":try{return JSON.stringify(U[W++])}catch($){return"[Circular]"}default:return te}}),G=U[W];W<V;G=U[++W])h(G)||!O(G)?Q+=" "+G:Q+=" "+f(G);return Q},i.deprecate=function(P,z){if(x(p.process))return function(){return i.deprecate(P,z).apply(this,arguments)};if(y.noDeprecation===!0)return P;var W=!1;function U(){if(!W){if(y.throwDeprecation)throw new Error(z);y.traceDeprecation?console.trace(z):console.error(z),W=!0}return P.apply(this,arguments)}return U};var A={},m;i.debuglog=function(P){if(x(m)&&(m=y.env.NODE_DEBUG||""),P=P.toUpperCase(),!A[P])if(new RegExp("\\b"+P+"\\b","i").test(m)){var z=y.pid;A[P]=function(){var W=i.format.apply(i,arguments);console.error("%s %d: %s",P,z,W)}}else A[P]=function(){};return A[P]};function f(P,z){var W={seen:[],stylize:l};return arguments.length>=3&&(W.depth=arguments[2]),arguments.length>=4&&(W.colors=arguments[3]),c(z)?W.showHidden=z:z&&i._extend(W,z),x(W.showHidden)&&(W.showHidden=!1),x(W.depth)&&(W.depth=2),x(W.colors)&&(W.colors=!1),x(W.customInspect)&&(W.customInspect=!0),W.colors&&(W.stylize=d),n(W,P,W.depth)}i.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(P,z){var W=f.styles[z];return W?"["+f.colors[W][0]+"m"+P+"["+f.colors[W][1]+"m":P}function l(P,z){return P}function o(P){var z={};return P.forEach(function(W,U){z[W]=!0}),z}function n(P,z,W){if(P.customInspect&&z&&I(z.inspect)&&z.inspect!==i.inspect&&!(z.constructor&&z.constructor.prototype===z)){var U=z.inspect(W,P);return b(U)||(U=n(P,U,W)),U}var V=t(P,z);if(V)return V;var Q=Object.keys(z),G=o(Q);if(P.showHidden&&(Q=Object.getOwnPropertyNames(z)),C(z)&&(Q.indexOf("message")>=0||Q.indexOf("description")>=0))return a(z);if(Q.length===0){if(I(z)){var te=z.name?": "+z.name:"";return P.stylize("[Function"+te+"]","special")}if(T(z))return P.stylize(RegExp.prototype.toString.call(z),"regexp");if(E(z))return P.stylize(Date.prototype.toString.call(z),"date");if(C(z))return a(z)}var $="",le=!1,re=["{","}"];if(s(z)&&(le=!0,re=["[","]"]),I(z)){var Se=z.name?": "+z.name:"";$=" [Function"+Se+"]"}if(T(z)&&($=" "+RegExp.prototype.toString.call(z)),E(z)&&($=" "+Date.prototype.toUTCString.call(z)),C(z)&&($=" "+a(z)),Q.length===0&&(!le||z.length==0))return re[0]+$+re[1];if(W<0)return T(z)?P.stylize(RegExp.prototype.toString.call(z),"regexp"):P.stylize("[Object]","special");P.seen.push(z);var Re;return le?Re=e(P,z,W,G,Q):Re=Q.map(function(Pe){return u(P,z,W,G,Pe,le)}),P.seen.pop(),r(Re,$,re)}function t(P,z){if(x(z))return P.stylize("undefined","undefined");if(b(z)){var W="'"+JSON.stringify(z).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return P.stylize(W,"string")}if(v(z))return P.stylize(""+z,"number");if(c(z))return P.stylize(""+z,"boolean");if(h(z))return P.stylize("null","null")}function a(P){return"["+Error.prototype.toString.call(P)+"]"}function e(P,z,W,U,V){for(var Q=[],G=0,te=z.length;G<te;++G)X(z,String(G))?Q.push(u(P,z,W,U,String(G),!0)):Q.push("");return V.forEach(function($){$.match(/^\d+$/)||Q.push(u(P,z,W,U,$,!0))}),Q}function u(P,z,W,U,V,Q){var G,te,$;if($=Object.getOwnPropertyDescriptor(z,V)||{value:z[V]},$.get?$.set?te=P.stylize("[Getter/Setter]","special"):te=P.stylize("[Getter]","special"):$.set&&(te=P.stylize("[Setter]","special")),X(U,V)||(G="["+V+"]"),te||(P.seen.indexOf($.value)<0?(h(W)?te=n(P,$.value,null):te=n(P,$.value,W-1),te.indexOf(`
`)>-1&&(Q?te=te.split(`
`).map(function(le){return" "+le}).join(`
`).substr(2):te=`
`+te.split(`
`).map(function(le){return" "+le}).join(`
`))):te=P.stylize("[Circular]","special")),x(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=P.stylize(G,"name")):(G=G.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),G=P.stylize(G,"string"))}return G+": "+te}function r(P,z,W){var U=0,V=P.reduce(function(Q,G){return U++,G.indexOf(`
`)>=0&&U++,Q+G.replace(/\u001b\[\d\d?m/g,"").length+1},0);return V>60?W[0]+(z===""?"":z+`
`)+" "+P.join(`,
`)+" "+W[1]:W[0]+z+" "+P.join(", ")+" "+W[1]}function s(P){return Array.isArray(P)}i.isArray=s;function c(P){return typeof P=="boolean"}i.isBoolean=c;function h(P){return P===null}i.isNull=h;function g(P){return P==null}i.isNullOrUndefined=g;function v(P){return typeof P=="number"}i.isNumber=v;function b(P){return typeof P=="string"}i.isString=b;function w(P){return typeof P=="symbol"}i.isSymbol=w;function x(P){return P===void 0}i.isUndefined=x;function T(P){return O(P)&&F(P)==="[object RegExp]"}i.isRegExp=T;function O(P){return typeof P=="object"&&P!==null}i.isObject=O;function E(P){return O(P)&&F(P)==="[object Date]"}i.isDate=E;function C(P){return O(P)&&(F(P)==="[object Error]"||P instanceof Error)}i.isError=C;function I(P){return typeof P=="function"}i.isFunction=I;function _(P){return P===null||typeof P=="boolean"||typeof P=="number"||typeof P=="string"||typeof P=="symbol"||typeof P=="undefined"}i.isPrimitive=_,i.isBuffer=k("./support/isBuffer");function F(P){return Object.prototype.toString.call(P)}function R(P){return P<10?"0"+P.toString(10):P.toString(10)}var B=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function M(){var P=new Date,z=[R(P.getHours()),R(P.getMinutes()),R(P.getSeconds())].join(":");return[P.getDate(),B[P.getMonth()],z].join(" ")}i.log=function(){console.log("%s - %s",M(),i.format.apply(i,arguments))},i.inherits=k("inherits"),i._extend=function(P,z){if(!z||!O(z))return P;for(var W=Object.keys(z),U=W.length;U--;)P[W[U]]=z[W[U]];return P};function X(P,z){return Object.prototype.hasOwnProperty.call(P,z)}}).call(this,k("_process"),typeof global!="undefined"?global:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{"./support/isBuffer":242,_process:208,inherits:241}],244:[function(k,D,i){"use strict";(function(){"use strict";i.stripBOM=function(y){return y[0]==="\uFEFF"?y.substring(1):y}}).call(void 0)},{}],245:[function(k,D,i){"use strict";var y=k("babel-runtime/helpers/typeof"),p=m(y),S=k("babel-runtime/core-js/object/keys"),A=m(S);function m(f){return f&&f.__esModule?f:{default:f}}(function(){"use strict";var f,d,l,o,n,t={}.hasOwnProperty;f=k("xmlbuilder"),d=k("./defaults").defaults,o=function(e){return typeof e=="string"&&(e.indexOf("&")>=0||e.indexOf(">")>=0||e.indexOf("<")>=0)},n=function(e){return"<![CDATA["+l(e)+"]]>"},l=function(e){return e.replace("]]>","]]]]><![CDATA[>")},i.Builder=function(){function a(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 a.prototype.buildObject=function(e){var u,r,s,c,h;return u=this.options.attrkey,r=this.options.charkey,(0,A.default)(e).length===1&&this.options.rootName===d["0.2"].rootName?(h=(0,A.default)(e)[0],e=e[h]):h=this.options.rootName,s=function(g){return function(v,b){var w,x,T,O,E,C;if((typeof b=="undefined"?"undefined":(0,p.default)(b))!=="object")g.options.cdata&&o(b)?v.raw(n(b)):v.txt(b);else if(Array.isArray(b))for(O in b){if(!t.call(b,O))continue;x=b[O];for(E in x)T=x[E],v=s(v.ele(E),T).up()}else for(E in b){if(!t.call(b,E))continue;if(x=b[E],E===u){if((typeof x=="undefined"?"undefined":(0,p.default)(x))==="object")for(w in x)C=x[w],v=v.att(w,C)}else if(E===r)g.options.cdata&&o(x)?v=v.raw(n(x)):v=v.txt(x);else if(Array.isArray(x))for(O in x){if(!t.call(x,O))continue;T=x[O],typeof T=="string"?g.options.cdata&&o(T)?v=v.ele(E).raw(n(T)).up():v=v.ele(E,T).up():v=s(v.ele(E),T).up()}else(typeof x=="undefined"?"undefined":(0,p.default)(x))==="object"?v=s(v.ele(E),x).up():typeof x=="string"&&g.options.cdata&&o(x)?v=v.ele(E).raw(n(x)).up():(x==null&&(x=""),v=v.ele(E,x.toString()).up())}return v}}(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)},a}()}).call(void 0)},{"./defaults":246,"babel-runtime/core-js/object/keys":60,"babel-runtime/helpers/typeof":67,xmlbuilder:282}],246:[function(k,D,i){"use strict";(function(){i.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(k,D,i){"use strict";var y=k("babel-runtime/core-js/promise"),p=o(y),S=k("babel-runtime/core-js/object/get-own-property-names"),A=o(S),m=k("babel-runtime/core-js/object/keys"),f=o(m),d=k("babel-runtime/helpers/typeof"),l=o(d);function o(n){return n&&n.__esModule?n:{default:n}}(function(){"use strict";var n,t,a,e,u,r,s,c,h=function(w,x){return function(){return w.apply(x,arguments)}},g=function(w,x){for(var T in x)v.call(x,T)&&(w[T]=x[T]);function O(){this.constructor=w}return O.prototype=x.prototype,w.prototype=new O,w.__super__=x.prototype,w},v={}.hasOwnProperty;s=k("sax"),a=k("events"),n=k("./bom"),r=k("./processors"),c=k("timers").setImmediate,t=k("./defaults").defaults,e=function(w){return(typeof w=="undefined"?"undefined":(0,l.default)(w))==="object"&&w!=null&&(0,f.default)(w).length===0},u=function(w,x,T){var O,E,C;for(O=0,E=w.length;O<E;O++)C=w[O],x=C(x,T);return x},i.Parser=function(b){g(w,b);function w(x){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,O,E;if(!(this instanceof i.Parser))return new i.Parser(x);this.options={},O=t["0.2"];for(T in O){if(!v.call(O,T))continue;E=O[T],this.options[T]=E}for(T in x){if(!v.call(x,T))continue;E=x[T],this.options[T]=E}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 w.prototype.processAsync=function(){var x,T;try{return this.remaining.length<=this.options.chunkSize?(x=this.remaining,this.remaining="",this.saxParser=this.saxParser.write(x),this.saxParser.close()):(x=this.remaining.substr(0,this.options.chunkSize),this.remaining=this.remaining.substr(this.options.chunkSize,this.remaining.length),this.saxParser=this.saxParser.write(x),c(this.processAsync))}catch(O){if(T=O,!this.saxParser.errThrown)return this.saxParser.errThrown=!0,this.emit(T)}},w.prototype.assignOrPush=function(x,T,O){return T in x?(x[T]instanceof Array||(x[T]=[x[T]]),x[T].push(O)):this.options.explicitArray?x[T]=[O]:x[T]=O},w.prototype.reset=function(){var x,T,O,E;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(C){return function(I){if(C.saxParser.resume(),!C.saxParser.errThrown)return C.saxParser.errThrown=!0,C.emit("error",I)}}(this),this.saxParser.onend=function(C){return function(){if(!C.saxParser.ended)return C.saxParser.ended=!0,C.emit("end",C.resultObject)}}(this),this.saxParser.ended=!1,this.EXPLICIT_CHARKEY=this.options.explicitCharkey,this.resultObject=null,E=[],x=this.options.attrkey,T=this.options.charkey,this.saxParser.onopentag=function(C){return function(I){var _,F,R,B,M;if(R={},R[T]="",!C.options.ignoreAttrs){M=I.attributes;for(_ in M){if(!v.call(M,_))continue;!(x in R)&&!C.options.mergeAttrs&&(R[x]={}),F=C.options.attrValueProcessors?u(C.options.attrValueProcessors,I.attributes[_],_):I.attributes[_],B=C.options.attrNameProcessors?u(C.options.attrNameProcessors,_):_,C.options.mergeAttrs?C.assignOrPush(R,B,F):R[x][B]=F}}return R["#name"]=C.options.tagNameProcessors?u(C.options.tagNameProcessors,I.name):I.name,C.options.xmlns&&(R[C.options.xmlnskey]={uri:I.uri,local:I.local}),E.push(R)}}(this),this.saxParser.onclosetag=function(C){return function(){var I,_,F,R,B,M,X,P,z,W;if(M=E.pop(),B=M["#name"],(!C.options.explicitChildren||!C.options.preserveChildrenOrder)&&delete M["#name"],M.cdata===!0&&(I=M.cdata,delete M.cdata),z=E[E.length-1],M[T].match(/^\s*$/)&&!I?(_=M[T],delete M[T]):(C.options.trim&&(M[T]=M[T].trim()),C.options.normalize&&(M[T]=M[T].replace(/\s{2,}/g," ").trim()),M[T]=C.options.valueProcessors?u(C.options.valueProcessors,M[T],B):M[T],(0,f.default)(M).length===1&&T in M&&!C.EXPLICIT_CHARKEY&&(M=M[T])),e(M)&&(M=C.options.emptyTag!==""?C.options.emptyTag:_),C.options.validator!=null&&(W="/"+function(){var U,V,Q;for(Q=[],U=0,V=E.length;U<V;U++)R=E[U],Q.push(R["#name"]);return Q}().concat(B).join("/"),function(){var U;try{return M=C.options.validator(W,z&&z[B],M)}catch(V){return U=V,C.emit("error",U)}}()),C.options.explicitChildren&&!C.options.mergeAttrs&&(typeof M=="undefined"?"undefined":(0,l.default)(M))==="object"){if(!C.options.preserveChildrenOrder)R={},C.options.attrkey in M&&(R[C.options.attrkey]=M[C.options.attrkey],delete M[C.options.attrkey]),!C.options.charsAsChildren&&C.options.charkey in M&&(R[C.options.charkey]=M[C.options.charkey],delete M[C.options.charkey]),(0,A.default)(M).length>0&&(R[C.options.childkey]=M),M=R;else if(z){z[C.options.childkey]=z[C.options.childkey]||[],X={};for(F in M){if(!v.call(M,F))continue;X[F]=M[F]}z[C.options.childkey].push(X),delete M["#name"],(0,f.default)(M).length===1&&T in M&&!C.EXPLICIT_CHARKEY&&(M=M[T])}}return E.length>0?C.assignOrPush(z,B,M):(C.options.explicitRoot&&(P=M,M={},M[B]=P),C.resultObject=M,C.saxParser.ended=!0,C.emit("end",C.resultObject))}}(this),O=function(C){return function(I){var _,F;if(F=E[E.length-1],F)return F[T]+=I,C.options.explicitChildren&&C.options.preserveChildrenOrder&&C.options.charsAsChildren&&(C.options.includeWhiteChars||I.replace(/\\n/g,"").trim()!=="")&&(F[C.options.childkey]=F[C.options.childkey]||[],_={"#name":"__text__"},_[T]=I,C.options.normalize&&(_[T]=_[T].replace(/\s{2,}/g," ").trim()),F[C.options.childkey].push(_)),F}}(this),this.saxParser.ontext=O,this.saxParser.oncdata=function(C){return function(I){var _;if(_=O(I),_)return _.cdata=!0}}(this)},w.prototype.parseString=function(x,T){var O;T!=null&&typeof T=="function"&&(this.on("end",function(E){return this.reset(),T(null,E)}),this.on("error",function(E){return this.reset(),T(E)}));try{return x=x.toString(),x.trim()===""?(this.emit("end",null),!0):(x=n.stripBOM(x),this.options.async?(this.remaining=x,c(this.processAsync),this.saxParser):this.saxParser.write(x).close())}catch(E){if(O=E,this.saxParser.errThrown||this.saxParser.ended){if(this.saxParser.ended)throw O}else return this.emit("error",O),this.saxParser.errThrown=!0}},w.prototype.parseStringPromise=function(x){return new p.default(function(T){return function(O,E){return T.parseString(x,function(C,I){return C?E(C):O(I)})}}(this))},w}(a),i.parseString=function(b,w,x){var T,O,E;return x!=null?(typeof x=="function"&&(T=x),(typeof w=="undefined"?"undefined":(0,l.default)(w))==="object"&&(O=w)):(typeof w=="function"&&(T=w),O={}),E=new i.Parser(O),E.parseString(b,T)},i.parseStringPromise=function(b,w){var x,T;return(typeof w=="undefined"?"undefined":(0,l.default)(w))==="object"&&(x=w),T=new i.Parser(x),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(k,D,i){"use strict";(function(){"use strict";var y;y=new RegExp(/(?!xmlns)^.*:/),i.normalize=function(p){return p.toLowerCase()},i.firstCharLowerCase=function(p){return p.charAt(0).toLowerCase()+p.slice(1)},i.stripPrefix=function(p){return p.replace(y,"")},i.parseNumbers=function(p){return isNaN(p)||(p=p%1===0?parseInt(p,10):parseFloat(p)),p},i.parseBooleans=function(p){return/^(?:true|false)$/i.test(p)&&(p=p.toLowerCase()==="true"),p}}).call(void 0)},{}],249:[function(k,D,i){"use strict";(function(){"use strict";var y,p,S,A,m=function(l,o){for(var n in o)f.call(o,n)&&(l[n]=o[n]);function t(){this.constructor=l}return t.prototype=o.prototype,l.prototype=new t,l.__super__=o.prototype,l},f={}.hasOwnProperty;p=k("./defaults"),y=k("./builder"),S=k("./parser"),A=k("./processors"),i.defaults=p.defaults,i.processors=A,i.ValidationError=function(d){m(l,d);function l(o){this.message=o}return l}(Error),i.Builder=y.Builder,i.Parser=S.Parser,i.parseString=S.parseString,i.parseStringPromise=S.parseStringPromise}).call(void 0)},{"./builder":245,"./defaults":246,"./parser":247,"./processors":248}],250:[function(k,D,i){"use strict";(function(){D.exports={Disconnected:1,Preceding:2,Following:4,Contains:8,ContainedBy:16,ImplementationSpecific:32}}).call(void 0)},{}],251:[function(k,D,i){"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(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/get-prototype-of"),p=d(y),S=k("babel-runtime/helpers/typeof"),A=d(S),m=k("babel-runtime/core-js/object/assign"),f=d(m);function d(l){return l&&l.__esModule?l:{default:l}}(function(){var l,o,n,t,a,e,u,r=[].slice,s={}.hasOwnProperty;l=function(){var h,g,v,b,w,x;if(x=arguments[0],w=2<=arguments.length?r.call(arguments,1):[],a(f.default))f.default.apply(null,arguments);else for(h=0,v=w.length;h<v;h++)if(b=w[h],b!=null)for(g in b){if(!s.call(b,g))continue;x[g]=b[g]}return x},a=function(h){return!!h&&Object.prototype.toString.call(h)==="[object Function]"},e=function(h){var g;return!!h&&((g=typeof h=="undefined"?"undefined":(0,A.default)(h))==="function"||g==="object")},n=function(h){return a(Array.isArray)?Array.isArray(h):Object.prototype.toString.call(h)==="[object Array]"},t=function(h){var g;if(n(h))return!h.length;for(g in h){if(!s.call(h,g))continue;return!1}return!0},u=function(h){var g,v;return e(h)&&(v=(0,p.default)(h))&&(g=v.constructor)&&typeof g=="function"&&g instanceof g&&Function.prototype.toString.call(g)===Function.prototype.toString.call(Object)},o=function(h){return a(h.valueOf)?h.valueOf():h},D.exports.assign=l,D.exports.isFunction=a,D.exports.isObject=e,D.exports.isArray=n,D.exports.isEmpty=t,D.exports.isPlainObject=u,D.exports.getValue=o}).call(void 0)},{"babel-runtime/core-js/object/assign":54,"babel-runtime/core-js/object/get-prototype-of":59,"babel-runtime/helpers/typeof":67}],253:[function(k,D,i){"use strict";(function(){D.exports={None:0,OpenTag:1,InsideTag:2,CloseTag:3}}).call(void 0)},{}],254:[function(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/create"),p=S(y);function S(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,f;A=k("./NodeType"),f=k("./XMLNode"),D.exports=m=function(){function d(l,o,n){if(this.parent=l,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),o==null)throw new Error("Missing attribute name. "+this.debugInfo(o));this.name=this.stringify.name(o),this.value=this.stringify.attValue(n),this.type=A.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(o){return this.value=o||""}}),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,p.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(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/create"),p=S(y);function S(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,f,d=function(n,t){for(var a in t)l.call(t,a)&&(n[a]=t[a]);function e(){this.constructor=n}return e.prototype=t.prototype,n.prototype=new e,n.__super__=t.prototype,n},l={}.hasOwnProperty;A=k("./NodeType"),f=k("./XMLCharacterData"),D.exports=m=function(o){d(n,o);function n(t,a){if(n.__super__.constructor.call(this,t),a==null)throw new Error("Missing CDATA text. "+this.debugInfo());this.name="#cdata-section",this.type=A.CData,this.value=this.stringify.cdata(a)}return n.prototype.clone=function(){return(0,p.default)(this)},n.prototype.toString=function(t){return this.options.writer.cdata(this,this.options.writer.filterOptions(t))},n}(f)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],256:[function(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/create"),p=S(y);function S(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,f=function(o,n){for(var t in n)d.call(n,t)&&(o[t]=n[t]);function a(){this.constructor=o}return a.prototype=n.prototype,o.prototype=new a,o.__super__=n.prototype,o},d={}.hasOwnProperty;m=k("./XMLNode"),D.exports=A=function(l){f(o,l);function o(n){o.__super__.constructor.call(this,n),this.value=""}return Object.defineProperty(o.prototype,"data",{get:function(){return this.value},set:function(t){return this.value=t||""}}),Object.defineProperty(o.prototype,"length",{get:function(){return this.value.length}}),Object.defineProperty(o.prototype,"textContent",{get:function(){return this.value},set:function(t){return this.value=t||""}}),o.prototype.clone=function(){return(0,p.default)(this)},o.prototype.substringData=function(n,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.appendData=function(n){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.insertData=function(n,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.deleteData=function(n,t){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.replaceData=function(n,t,a){throw new Error("This DOM method is not implemented."+this.debugInfo())},o.prototype.isEqualNode=function(n){return o.__super__.isEqualNode.apply(this,arguments).isEqualNode(n)?!(n.data!==this.data):!1},o}(m)}).call(void 0)},{"./XMLNode":273,"babel-runtime/core-js/object/create":55}],257:[function(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/create"),p=S(y);function S(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,f,d=function(n,t){for(var a in t)l.call(t,a)&&(n[a]=t[a]);function e(){this.constructor=n}return e.prototype=t.prototype,n.prototype=new e,n.__super__=t.prototype,n},l={}.hasOwnProperty;A=k("./NodeType"),m=k("./XMLCharacterData"),D.exports=f=function(o){d(n,o);function n(t,a){if(n.__super__.constructor.call(this,t),a==null)throw new Error("Missing comment text. "+this.debugInfo());this.name="#comment",this.type=A.Comment,this.value=this.stringify.comment(a)}return n.prototype.clone=function(){return(0,p.default)(this)},n.prototype.toString=function(t){return this.options.writer.comment(this,this.options.writer.filterOptions(t))},n}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],258:[function(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=m(y),S=k("babel-runtime/core-js/object/create"),A=m(S);function m(f){return f&&f.__esModule?f:{default:f}}(function(){var f,d,l;d=k("./XMLDOMErrorHandler"),l=k("./XMLDOMStringList"),D.exports=f=function(){function o(){var n;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=n=(0,A.default)(this.defaultParams)}return Object.defineProperty(o.prototype,"parameterNames",{get:function(){return new l((0,p.default)(this.defaultParams))}}),o.prototype.getParameter=function(n){return this.params.hasOwnProperty(n)?this.params[n]:null},o.prototype.canSetParameter=function(n,t){return!0},o.prototype.setParameter=function(n,t){return t!=null?this.params[n]=t:delete this.params[n]},o}()}).call(void 0)},{"./XMLDOMErrorHandler":259,"./XMLDOMStringList":261,"babel-runtime/core-js/object/create":55,"babel-runtime/core-js/object/keys":60}],259:[function(k,D,i){"use strict";(function(){var y;D.exports=y=function(){function p(){}return p.prototype.handleError=function(S){throw new Error(S)},p}()}).call(void 0)},{}],260:[function(k,D,i){"use strict";(function(){var y;D.exports=y=function(){function p(){}return p.prototype.hasFeature=function(S,A){return!0},p.prototype.createDocumentType=function(S,A,m){throw new Error("This DOM method is not implemented.")},p.prototype.createDocument=function(S,A,m){throw new Error("This DOM method is not implemented.")},p.prototype.createHTMLDocument=function(S){throw new Error("This DOM method is not implemented.")},p.prototype.getFeature=function(S,A){throw new Error("This DOM method is not implemented.")},p}()}).call(void 0)},{}],261:[function(k,D,i){"use strict";(function(){var y;D.exports=y=function(){function p(S){this.arr=S||[]}return Object.defineProperty(p.prototype,"length",{get:function(){return this.arr.length}}),p.prototype.item=function(S){return this.arr[S]||null},p.prototype.contains=function(S){return this.arr.indexOf(S)!==-1},p}()}).call(void 0)},{}],262:[function(k,D,i){"use strict";(function(){var y,p,S,A=function(d,l){for(var o in l)m.call(l,o)&&(d[o]=l[o]);function n(){this.constructor=d}return n.prototype=l.prototype,d.prototype=new n,d.__super__=l.prototype,d},m={}.hasOwnProperty;S=k("./XMLNode"),y=k("./NodeType"),D.exports=p=function(f){A(d,f);function d(l,o,n,t,a,e){if(d.__super__.constructor.call(this,l),o==null)throw new Error("Missing DTD element name. "+this.debugInfo());if(n==null)throw new Error("Missing DTD attribute name. "+this.debugInfo(o));if(!t)throw new Error("Missing DTD attribute type. "+this.debugInfo(o));if(!a)throw new Error("Missing DTD attribute default. "+this.debugInfo(o));if(a.indexOf("#")!==0&&(a="#"+a),!a.match(/^(#REQUIRED|#IMPLIED|#FIXED|#DEFAULT)$/))throw new Error("Invalid default value type; expected: #REQUIRED, #IMPLIED, #FIXED or #DEFAULT. "+this.debugInfo(o));if(e&&!a.match(/^(#FIXED|#DEFAULT)$/))throw new Error("Default value only applies to #FIXED or #DEFAULT. "+this.debugInfo(o));this.elementName=this.stringify.name(o),this.type=y.AttributeDeclaration,this.attributeName=this.stringify.name(n),this.attributeType=this.stringify.dtdAttType(t),e&&(this.defaultValue=this.stringify.dtdAttDefault(e)),this.defaultValueType=a}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(k,D,i){"use strict";(function(){var y,p,S,A=function(d,l){for(var o in l)m.call(l,o)&&(d[o]=l[o]);function n(){this.constructor=d}return n.prototype=l.prototype,d.prototype=new n,d.__super__=l.prototype,d},m={}.hasOwnProperty;S=k("./XMLNode"),y=k("./NodeType"),D.exports=p=function(f){A(d,f);function d(l,o,n){if(d.__super__.constructor.call(this,l),o==null)throw new Error("Missing DTD element name. "+this.debugInfo());n||(n="(#PCDATA)"),Array.isArray(n)&&(n="("+n.join(",")+")"),this.name=this.stringify.name(o),this.type=y.ElementDeclaration,this.value=this.stringify.dtdElementValue(n)}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(k,D,i){"use strict";(function(){var y,p,S,A,m=function(l,o){for(var n in o)f.call(o,n)&&(l[n]=o[n]);function t(){this.constructor=l}return t.prototype=o.prototype,l.prototype=new t,l.__super__=o.prototype,l},f={}.hasOwnProperty;A=k("./Utility").isObject,S=k("./XMLNode"),y=k("./NodeType"),D.exports=p=function(d){m(l,d);function l(o,n,t,a){if(l.__super__.constructor.call(this,o),t==null)throw new Error("Missing DTD entity name. "+this.debugInfo(t));if(a==null)throw new Error("Missing DTD entity value. "+this.debugInfo(t));if(this.pe=!!n,this.name=this.stringify.name(t),this.type=y.EntityDeclaration,!A(a))this.value=this.stringify.dtdEntityValue(a),this.internal=!0;else{if(!a.pubID&&!a.sysID)throw new Error("Public and/or system identifiers are required for an external entity. "+this.debugInfo(t));if(a.pubID&&!a.sysID)throw new Error("System identifier is required for a public external entity. "+this.debugInfo(t));if(this.internal=!1,a.pubID!=null&&(this.pubID=this.stringify.dtdPubID(a.pubID)),a.sysID!=null&&(this.sysID=this.stringify.dtdSysID(a.sysID)),a.nData!=null&&(this.nData=this.stringify.dtdNData(a.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(o){return this.options.writer.dtdEntity(this,this.options.writer.filterOptions(o))},l}(S)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],265:[function(k,D,i){"use strict";(function(){var y,p,S,A=function(d,l){for(var o in l)m.call(l,o)&&(d[o]=l[o]);function n(){this.constructor=d}return n.prototype=l.prototype,d.prototype=new n,d.__super__=l.prototype,d},m={}.hasOwnProperty;S=k("./XMLNode"),y=k("./NodeType"),D.exports=p=function(f){A(d,f);function d(l,o,n){if(d.__super__.constructor.call(this,l),o==null)throw new Error("Missing DTD notation name. "+this.debugInfo(o));if(!n.pubID&&!n.sysID)throw new Error("Public or system identifiers are required for an external entity. "+this.debugInfo(o));this.name=this.stringify.name(o),this.type=y.NotationDeclaration,n.pubID!=null&&(this.pubID=this.stringify.dtdPubID(n.pubID)),n.sysID!=null&&(this.sysID=this.stringify.dtdSysID(n.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(k,D,i){"use strict";(function(){var y,p,S,A,m=function(l,o){for(var n in o)f.call(o,n)&&(l[n]=o[n]);function t(){this.constructor=l}return t.prototype=o.prototype,l.prototype=new t,l.__super__=o.prototype,l},f={}.hasOwnProperty;A=k("./Utility").isObject,S=k("./XMLNode"),y=k("./NodeType"),D.exports=p=function(d){m(l,d);function l(o,n,t,a){var e;l.__super__.constructor.call(this,o),A(n)&&(e=n,n=e.version,t=e.encoding,a=e.standalone),n||(n="1.0"),this.type=y.Declaration,this.version=this.stringify.xmlVersion(n),t!=null&&(this.encoding=this.stringify.xmlEncoding(t)),a!=null&&(this.standalone=this.stringify.xmlStandalone(a))}return l.prototype.toString=function(o){return this.options.writer.declaration(this,this.options.writer.filterOptions(o))},l}(S)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLNode":273}],267:[function(k,D,i){"use strict";(function(){var y,p,S,A,m,f,d,l,o,n=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;o=k("./Utility").isObject,l=k("./XMLNode"),y=k("./NodeType"),p=k("./XMLDTDAttList"),A=k("./XMLDTDEntity"),S=k("./XMLDTDElement"),m=k("./XMLDTDNotation"),d=k("./XMLNamedNodeMap"),D.exports=f=function(a){n(e,a);function e(u,r,s){var c,h,g,v,b,w;if(e.__super__.constructor.call(this,u),this.type=y.DocType,u.children){for(v=u.children,h=0,g=v.length;h<g;h++)if(c=v[h],c.type===y.Element){this.name=c.name;break}}this.documentObject=u,o(r)&&(b=r,r=b.pubID,s=b.sysID),s==null&&(w=[r,s],s=w[0],r=w[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,g;for(h={},g=this.children,s=0,c=g.length;s<c;s++)r=g[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,g;for(h={},g=this.children,s=0,c=g.length;s<c;s++)r=g[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 g;return g=new p(this,u,r,s,c,h),this.children.push(g),this},e.prototype.entity=function(u,r){var s;return s=new A(this,!1,u,r),this.children.push(s),this},e.prototype.pEntity=function(u,r){var s;return s=new A(this,!0,u,r),this.children.push(s),this},e.prototype.notation=function(u,r){var s;return s=new m(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(k,D,i){"use strict";(function(){var y,p,S,A,m,f,d,l,o=function(a,e){for(var u in e)n.call(e,u)&&(a[u]=e[u]);function r(){this.constructor=a}return r.prototype=e.prototype,a.prototype=new r,a.__super__=e.prototype,a},n={}.hasOwnProperty;l=k("./Utility").isPlainObject,S=k("./XMLDOMImplementation"),p=k("./XMLDOMConfiguration"),m=k("./XMLNode"),y=k("./NodeType"),d=k("./XMLStringifier"),f=k("./XMLStringWriter"),D.exports=A=function(t){o(a,t);function a(e){a.__super__.constructor.call(this,null),this.name="#document",this.type=y.Document,this.documentURI=null,this.domConfig=new p,e||(e={}),e.writer||(e.writer=new f),this.options=e,this.stringify=new d(e)}return Object.defineProperty(a.prototype,"implementation",{value:new S}),Object.defineProperty(a.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(a.prototype,"documentElement",{get:function(){return this.rootObject||null}}),Object.defineProperty(a.prototype,"inputEncoding",{get:function(){return null}}),Object.defineProperty(a.prototype,"strictErrorChecking",{get:function(){return!1}}),Object.defineProperty(a.prototype,"xmlEncoding",{get:function(){return this.children.length!==0&&this.children[0].type===y.Declaration?this.children[0].encoding:null}}),Object.defineProperty(a.prototype,"xmlStandalone",{get:function(){return this.children.length!==0&&this.children[0].type===y.Declaration?this.children[0].standalone==="yes":!1}}),Object.defineProperty(a.prototype,"xmlVersion",{get:function(){return this.children.length!==0&&this.children[0].type===y.Declaration?this.children[0].version:"1.0"}}),Object.defineProperty(a.prototype,"URL",{get:function(){return this.documentURI}}),Object.defineProperty(a.prototype,"origin",{get:function(){return null}}),Object.defineProperty(a.prototype,"compatMode",{get:function(){return null}}),Object.defineProperty(a.prototype,"characterSet",{get:function(){return null}}),Object.defineProperty(a.prototype,"contentType",{get:function(){return null}}),a.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))},a.prototype.toString=function(e){return this.options.writer.document(this,this.options.writer.filterOptions(e))},a.prototype.createElement=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.createDocumentFragment=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.createTextNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.createComment=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.createCDATASection=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.createProcessingInstruction=function(e,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.createAttribute=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.createEntityReference=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.importNode=function(e,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.createElementNS=function(e,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.createAttributeNS=function(e,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByTagNameNS=function(e,u){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementById=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.adoptNode=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.normalizeDocument=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.renameNode=function(e,u,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.getElementsByClassName=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.createEvent=function(e){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.createRange=function(){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.createNodeIterator=function(e,u,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},a.prototype.createTreeWalker=function(e,u,r){throw new Error("This DOM method is not implemented."+this.debugInfo())},a}(m)}).call(void 0)},{"./NodeType":251,"./Utility":252,"./XMLDOMConfiguration":258,"./XMLDOMImplementation":260,"./XMLNode":273,"./XMLStringWriter":278,"./XMLStringifier":279}],269:[function(k,D,i){"use strict";(function(){var y,p,S,A,m,f,d,l,o,n,t,a,e,u,r,s,c,h,g,v,b,w,x,T,O={}.hasOwnProperty;T=k("./Utility"),w=T.isObject,b=T.isFunction,x=T.isPlainObject,v=T.getValue,y=k("./NodeType"),a=k("./XMLDocument"),u=k("./XMLElement"),A=k("./XMLCData"),m=k("./XMLComment"),s=k("./XMLRaw"),g=k("./XMLText"),r=k("./XMLProcessingInstruction"),n=k("./XMLDeclaration"),t=k("./XMLDocType"),f=k("./XMLDTDAttList"),l=k("./XMLDTDEntity"),d=k("./XMLDTDElement"),o=k("./XMLDTDNotation"),S=k("./XMLAttribute"),h=k("./XMLStringifier"),c=k("./XMLStringWriter"),p=k("./WriterState"),D.exports=e=function(){function E(C,I,_){var F;this.name="?xml",this.type=y.Document,C||(C={}),F={},C.writer?x(C.writer)&&(F=C.writer,C.writer=new c):C.writer=new c,this.options=C,this.writer=C.writer,this.writerOptions=this.writer.filterOptions(F),this.stringify=new h(C),this.onDataCallback=I||function(){},this.onEndCallback=_||function(){},this.currentNode=null,this.currentLevel=-1,this.openTags={},this.documentStarted=!1,this.documentCompleted=!1,this.root=null}return E.prototype.createChildNode=function(C){var I,_,F,R,B,M,X,P;switch(C.type){case y.CData:this.cdata(C.value);break;case y.Comment:this.comment(C.value);break;case y.Element:F={},X=C.attribs;for(_ in X){if(!O.call(X,_))continue;I=X[_],F[_]=I.value}this.node(C.name,F);break;case y.Dummy:this.dummy();break;case y.Raw:this.raw(C.value);break;case y.Text:this.text(C.value);break;case y.ProcessingInstruction:this.instruction(C.target,C.value);break;default:throw new Error("This XML node type is not supported in a JS object: "+C.constructor.name)}for(P=C.children,B=0,M=P.length;B<M;B++)R=P[B],this.createChildNode(R),R.type===y.Element&&this.up();return this},E.prototype.dummy=function(){return this},E.prototype.node=function(C,I,_){var F;if(C==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(C));return this.openCurrent(),C=v(C),I==null&&(I={}),I=v(I),w(I)||(F=[I,_],_=F[0],I=F[1]),this.currentNode=new u(this,C,I),this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,_!=null&&this.text(_),this},E.prototype.element=function(C,I,_){var F,R,B,M,X,P;if(this.currentNode&&this.currentNode.type===y.DocType)this.dtdElement.apply(this,arguments);else if(Array.isArray(C)||w(C)||b(C))for(M=this.options.noValidation,this.options.noValidation=!0,P=new a(this.options).element("TEMP_ROOT"),P.element(C),this.options.noValidation=M,X=P.children,R=0,B=X.length;R<B;R++)F=X[R],this.createChildNode(F),F.type===y.Element&&this.up();else this.node(C,I,_);return this},E.prototype.attribute=function(C,I){var _,F;if(!this.currentNode||this.currentNode.children)throw new Error("att() can only be used immediately after an ele() call in callback mode. "+this.debugInfo(C));if(C!=null&&(C=v(C)),w(C))for(_ in C){if(!O.call(C,_))continue;F=C[_],this.attribute(_,F)}else b(I)&&(I=I.apply()),this.options.keepNullAttributes&&I==null?this.currentNode.attribs[C]=new S(this,C,""):I!=null&&(this.currentNode.attribs[C]=new S(this,C,I));return this},E.prototype.text=function(C){var I;return this.openCurrent(),I=new g(this,C),this.onData(this.writer.text(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.cdata=function(C){var I;return this.openCurrent(),I=new A(this,C),this.onData(this.writer.cdata(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.comment=function(C){var I;return this.openCurrent(),I=new m(this,C),this.onData(this.writer.comment(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.raw=function(C){var I;return this.openCurrent(),I=new s(this,C),this.onData(this.writer.raw(I,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.instruction=function(C,I){var _,F,R,B,M;if(this.openCurrent(),C!=null&&(C=v(C)),I!=null&&(I=v(I)),Array.isArray(C))for(_=0,B=C.length;_<B;_++)F=C[_],this.instruction(F);else if(w(C))for(F in C){if(!O.call(C,F))continue;R=C[F],this.instruction(F,R)}else b(I)&&(I=I.apply()),M=new r(this,C,I),this.onData(this.writer.processingInstruction(M,this.writerOptions,this.currentLevel+1),this.currentLevel+1);return this},E.prototype.declaration=function(C,I,_){var F;if(this.openCurrent(),this.documentStarted)throw new Error("declaration() must be the first node.");return F=new n(this,C,I,_),this.onData(this.writer.declaration(F,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.doctype=function(C,I,_){if(this.openCurrent(),C==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,I,_),this.currentNode.rootNodeName=C,this.currentNode.children=!1,this.currentLevel++,this.openTags[this.currentLevel]=this.currentNode,this},E.prototype.dtdElement=function(C,I){var _;return this.openCurrent(),_=new d(this,C,I),this.onData(this.writer.dtdElement(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.attList=function(C,I,_,F,R){var B;return this.openCurrent(),B=new f(this,C,I,_,F,R),this.onData(this.writer.dtdAttList(B,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.entity=function(C,I){var _;return this.openCurrent(),_=new l(this,!1,C,I),this.onData(this.writer.dtdEntity(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.pEntity=function(C,I){var _;return this.openCurrent(),_=new l(this,!0,C,I),this.onData(this.writer.dtdEntity(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.prototype.notation=function(C,I){var _;return this.openCurrent(),_=new o(this,C,I),this.onData(this.writer.dtdNotation(_,this.writerOptions,this.currentLevel+1),this.currentLevel+1),this},E.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},E.prototype.end=function(){for(;this.currentLevel>=0;)this.up();return this.onEnd()},E.prototype.openCurrent=function(){if(this.currentNode)return this.currentNode.children=!0,this.openNode(this.currentNode)},E.prototype.openNode=function(C){var I,_,F,R;if(!C.isOpen){if(!this.root&&this.currentLevel===0&&C.type===y.Element&&(this.root=C),_="",C.type===y.Element){this.writerOptions.state=p.OpenTag,_=this.writer.indent(C,this.writerOptions,this.currentLevel)+"<"+C.name,R=C.attribs;for(F in R){if(!O.call(R,F))continue;I=R[F],_+=this.writer.attribute(I,this.writerOptions,this.currentLevel)}_+=(C.children?">":"/>")+this.writer.endline(C,this.writerOptions,this.currentLevel),this.writerOptions.state=p.InsideTag}else this.writerOptions.state=p.OpenTag,_=this.writer.indent(C,this.writerOptions,this.currentLevel)+"<!DOCTYPE "+C.rootNodeName,C.pubID&&C.sysID?_+=' PUBLIC "'+C.pubID+'" "'+C.sysID+'"':C.sysID&&(_+=' SYSTEM "'+C.sysID+'"'),C.children?(_+=" [",this.writerOptions.state=p.InsideTag):(this.writerOptions.state=p.CloseTag,_+=">"),_+=this.writer.endline(C,this.writerOptions,this.currentLevel);return this.onData(_,this.currentLevel),C.isOpen=!0}},E.prototype.closeNode=function(C){var I;if(!C.isClosed)return I="",this.writerOptions.state=p.CloseTag,C.type===y.Element?I=this.writer.indent(C,this.writerOptions,this.currentLevel)+"</"+C.name+">"+this.writer.endline(C,this.writerOptions,this.currentLevel):I=this.writer.indent(C,this.writerOptions,this.currentLevel)+"]>"+this.writer.endline(C,this.writerOptions,this.currentLevel),this.writerOptions.state=p.None,this.onData(I,this.currentLevel),C.isClosed=!0},E.prototype.onData=function(C,I){return this.documentStarted=!0,this.onDataCallback(C,I+1)},E.prototype.onEnd=function(){return this.documentCompleted=!0,this.onEndCallback()},E.prototype.debugInfo=function(C){return C==null?"":"node: <"+C+">"},E.prototype.ele=function(){return this.element.apply(this,arguments)},E.prototype.nod=function(C,I,_){return this.node(C,I,_)},E.prototype.txt=function(C){return this.text(C)},E.prototype.dat=function(C){return this.cdata(C)},E.prototype.com=function(C){return this.comment(C)},E.prototype.ins=function(C,I){return this.instruction(C,I)},E.prototype.dec=function(C,I,_){return this.declaration(C,I,_)},E.prototype.dtd=function(C,I,_){return this.doctype(C,I,_)},E.prototype.e=function(C,I,_){return this.element(C,I,_)},E.prototype.n=function(C,I,_){return this.node(C,I,_)},E.prototype.t=function(C){return this.text(C)},E.prototype.d=function(C){return this.cdata(C)},E.prototype.c=function(C){return this.comment(C)},E.prototype.r=function(C){return this.raw(C)},E.prototype.i=function(C,I){return this.instruction(C,I)},E.prototype.att=function(){return this.currentNode&&this.currentNode.type===y.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},E.prototype.a=function(){return this.currentNode&&this.currentNode.type===y.DocType?this.attList.apply(this,arguments):this.attribute.apply(this,arguments)},E.prototype.ent=function(C,I){return this.entity(C,I)},E.prototype.pent=function(C,I){return this.pEntity(C,I)},E.prototype.not=function(C,I){return this.notation(C,I)},E}()}).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(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/create"),p=S(y);function S(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,f,d=function(n,t){for(var a in t)l.call(t,a)&&(n[a]=t[a]);function e(){this.constructor=n}return e.prototype=t.prototype,n.prototype=new e,n.__super__=t.prototype,n},l={}.hasOwnProperty;f=k("./XMLNode"),A=k("./NodeType"),D.exports=m=function(o){d(n,o);function n(t){n.__super__.constructor.call(this,t),this.type=A.Dummy}return n.prototype.clone=function(){return(0,p.default)(this)},n.prototype.toString=function(t){return""},n}(f)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],271:[function(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/create"),p=S(y);function S(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,f,d,l,o,n,t,a,e=function(s,c){for(var h in c)u.call(c,h)&&(s[h]=c[h]);function g(){this.constructor=s}return g.prototype=c.prototype,s.prototype=new g,s.__super__=c.prototype,s},u={}.hasOwnProperty;a=k("./Utility"),t=a.isObject,n=a.isFunction,o=a.getValue,l=k("./XMLNode"),A=k("./NodeType"),m=k("./XMLAttribute"),d=k("./XMLNamedNodeMap"),D.exports=f=function(r){e(s,r);function s(c,h,g){var v,b,w,x;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=A.Element,this.attribs={},this.schemaTypeInfo=null,g!=null&&this.attribute(g),c.type===A.Document&&(this.isRoot=!0,this.documentObject=c,c.rootObject=this,c.children)){for(x=c.children,b=0,w=x.length;b<w;b++)if(v=x[b],v.type===A.DocType){v.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,g,v;g=(0,p.default)(this),g.isRoot&&(g.documentObject=null),g.attribs={},v=this.attribs;for(h in v){if(!u.call(v,h))continue;c=v[h],g.attribs[h]=c.clone()}return g.children=[],this.children.forEach(function(b){var w;return w=b.clone(),w.parent=g,g.children.push(w)}),g},s.prototype.attribute=function(c,h){var g,v;if(c!=null&&(c=o(c)),t(c))for(g in c){if(!u.call(c,g))continue;v=c[g],this.attribute(g,v)}else n(h)&&(h=h.apply()),this.options.keepNullAttributes&&h==null?this.attribs[c]=new m(this,c,""):h!=null&&(this.attribs[c]=new m(this,c,h));return this},s.prototype.removeAttribute=function(c){var h,g,v;if(c==null)throw new Error("Missing attribute name. "+this.debugInfo());if(c=o(c),Array.isArray(c))for(g=0,v=c.length;g<v;g++)h=c[g],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,g){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,g){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,g,v;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=g=0,v=this.attribs.length-1;0<=v?g<=v:g>=v;h=0<=v?++g:--g)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(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/keys"),p=S(y);function S(A){return A&&A.__esModule?A:{default:A}}(function(){var A;D.exports=A=function(){function m(f){this.nodes=f}return Object.defineProperty(m.prototype,"length",{get:function(){return(0,p.default)(this.nodes).length||0}}),m.prototype.clone=function(){return this.nodes=null},m.prototype.getNamedItem=function(f){return this.nodes[f]},m.prototype.setNamedItem=function(f){var d;return d=this.nodes[f.nodeName],this.nodes[f.nodeName]=f,d||null},m.prototype.removeNamedItem=function(f){var d;return d=this.nodes[f],delete this.nodes[f],d||null},m.prototype.item=function(f){return this.nodes[(0,p.default)(this.nodes)[f]]||null},m.prototype.getNamedItemNS=function(f,d){throw new Error("This DOM method is not implemented.")},m.prototype.setNamedItemNS=function(f){throw new Error("This DOM method is not implemented.")},m.prototype.removeNamedItemNS=function(f,d){throw new Error("This DOM method is not implemented.")},m}()}).call(void 0)},{"babel-runtime/core-js/object/keys":60}],273:[function(k,D,i){"use strict";(function(){var y,p,S,A,m,f,d,l,o,n,t,a,e,u,r,s,c,h,g,v={}.hasOwnProperty;g=k("./Utility"),h=g.isObject,c=g.isFunction,s=g.isEmpty,r=g.getValue,l=null,S=null,A=null,m=null,f=null,e=null,u=null,a=null,d=null,p=null,t=null,o=null,y=null,D.exports=n=function(){function b(w){this.parent=w,this.parent&&(this.options=this.parent.options,this.stringify=this.parent.stringify),this.value=null,this.children=[],this.baseURI=null,l||(l=k("./XMLElement"),S=k("./XMLCData"),A=k("./XMLComment"),m=k("./XMLDeclaration"),f=k("./XMLDocType"),e=k("./XMLRaw"),u=k("./XMLText"),a=k("./XMLProcessingInstruction"),d=k("./XMLDummy"),p=k("./NodeType"),t=k("./XMLNodeList"),o=k("./XMLNamedNodeMap"),y=k("./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 x;return x=this.parent.children.indexOf(this),this.parent.children[x-1]||null}}),Object.defineProperty(b.prototype,"nextSibling",{get:function(){var x;return x=this.parent.children.indexOf(this),this.parent.children[x+1]||null}}),Object.defineProperty(b.prototype,"ownerDocument",{get:function(){return this.document()||null}}),Object.defineProperty(b.prototype,"textContent",{get:function(){var x,T,O,E,C;if(this.nodeType===p.Element||this.nodeType===p.DocumentFragment){for(C="",E=this.children,T=0,O=E.length;T<O;T++)x=E[T],x.textContent&&(C+=x.textContent);return C}else return null},set:function(x){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),b.prototype.setParent=function(w){var x,T,O,E,C;for(this.parent=w,w&&(this.options=w.options,this.stringify=w.stringify),E=this.children,C=[],T=0,O=E.length;T<O;T++)x=E[T],C.push(x.setParent(this));return C},b.prototype.element=function(w,x,T){var O,E,C,I,_,F,R,B,M,X,P;if(F=null,x===null&&T==null&&(M=[{},null],x=M[0],T=M[1]),x==null&&(x={}),x=r(x),h(x)||(X=[x,T],T=X[0],x=X[1]),w!=null&&(w=r(w)),Array.isArray(w))for(C=0,R=w.length;C<R;C++)E=w[C],F=this.element(E);else if(c(w))F=this.element(w.apply());else if(h(w))for(_ in w){if(!v.call(w,_))continue;if(P=w[_],c(P)&&(P=P.apply()),!this.options.ignoreDecorators&&this.stringify.convertAttKey&&_.indexOf(this.stringify.convertAttKey)===0)F=this.attribute(_.substr(this.stringify.convertAttKey.length),P);else if(!this.options.separateArrayItems&&Array.isArray(P)&&s(P))F=this.dummy();else if(h(P)&&s(P))F=this.element(_);else if(!this.options.keepNullNodes&&P==null)F=this.dummy();else if(!this.options.separateArrayItems&&Array.isArray(P))for(I=0,B=P.length;I<B;I++)E=P[I],O={},O[_]=E,F=this.element(O);else h(P)?!this.options.ignoreDecorators&&this.stringify.convertTextKey&&_.indexOf(this.stringify.convertTextKey)===0?F=this.element(P):(F=this.element(_),F.element(P)):F=this.element(_,P)}else!this.options.keepNullNodes&&T===null?F=this.dummy():!this.options.ignoreDecorators&&this.stringify.convertTextKey&&w.indexOf(this.stringify.convertTextKey)===0?F=this.text(T):!this.options.ignoreDecorators&&this.stringify.convertCDataKey&&w.indexOf(this.stringify.convertCDataKey)===0?F=this.cdata(T):!this.options.ignoreDecorators&&this.stringify.convertCommentKey&&w.indexOf(this.stringify.convertCommentKey)===0?F=this.comment(T):!this.options.ignoreDecorators&&this.stringify.convertRawKey&&w.indexOf(this.stringify.convertRawKey)===0?F=this.raw(T):!this.options.ignoreDecorators&&this.stringify.convertPIKey&&w.indexOf(this.stringify.convertPIKey)===0?F=this.instruction(w.substr(this.stringify.convertPIKey.length),T):F=this.node(w,x,T);if(F==null)throw new Error("Could not create any elements with: "+w+". "+this.debugInfo());return F},b.prototype.insertBefore=function(w,x,T){var O,E,C,I,_;if(w!=null?w.type:void 0)return C=w,I=x,C.setParent(this),I?(E=children.indexOf(I),_=children.splice(E),children.push(C),Array.prototype.push.apply(children,_)):children.push(C),C;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(w));return E=this.parent.children.indexOf(this),_=this.parent.children.splice(E),O=this.parent.element(w,x,T),Array.prototype.push.apply(this.parent.children,_),O},b.prototype.insertAfter=function(w,x,T){var O,E,C;if(this.isRoot)throw new Error("Cannot insert elements at root level. "+this.debugInfo(w));return E=this.parent.children.indexOf(this),C=this.parent.children.splice(E+1),O=this.parent.element(w,x,T),Array.prototype.push.apply(this.parent.children,C),O},b.prototype.remove=function(){var w,x;if(this.isRoot)throw new Error("Cannot remove the root element. "+this.debugInfo());return w=this.parent.children.indexOf(this),[].splice.apply(this.parent.children,[w,w-w+1].concat(x=[])),this.parent},b.prototype.node=function(w,x,T){var O,E;return w!=null&&(w=r(w)),x||(x={}),x=r(x),h(x)||(E=[x,T],T=E[0],x=E[1]),O=new l(this,w,x),T!=null&&O.text(T),this.children.push(O),O},b.prototype.text=function(w){var x;return h(w)&&this.element(w),x=new u(this,w),this.children.push(x),this},b.prototype.cdata=function(w){var x;return x=new S(this,w),this.children.push(x),this},b.prototype.comment=function(w){var x;return x=new A(this,w),this.children.push(x),this},b.prototype.commentBefore=function(w){var x,T,O;return T=this.parent.children.indexOf(this),O=this.parent.children.splice(T),x=this.parent.comment(w),Array.prototype.push.apply(this.parent.children,O),this},b.prototype.commentAfter=function(w){var x,T,O;return T=this.parent.children.indexOf(this),O=this.parent.children.splice(T+1),x=this.parent.comment(w),Array.prototype.push.apply(this.parent.children,O),this},b.prototype.raw=function(w){var x;return x=new e(this,w),this.children.push(x),this},b.prototype.dummy=function(){var w;return w=new d(this),w},b.prototype.instruction=function(w,x){var T,O,E,C,I;if(w!=null&&(w=r(w)),x!=null&&(x=r(x)),Array.isArray(w))for(C=0,I=w.length;C<I;C++)T=w[C],this.instruction(T);else if(h(w))for(T in w){if(!v.call(w,T))continue;O=w[T],this.instruction(T,O)}else c(x)&&(x=x.apply()),E=new a(this,w,x),this.children.push(E);return this},b.prototype.instructionBefore=function(w,x){var T,O,E;return O=this.parent.children.indexOf(this),E=this.parent.children.splice(O),T=this.parent.instruction(w,x),Array.prototype.push.apply(this.parent.children,E),this},b.prototype.instructionAfter=function(w,x){var T,O,E;return O=this.parent.children.indexOf(this),E=this.parent.children.splice(O+1),T=this.parent.instruction(w,x),Array.prototype.push.apply(this.parent.children,E),this},b.prototype.declaration=function(w,x,T){var O,E;return O=this.document(),E=new m(O,w,x,T),O.children.length===0?O.children.unshift(E):O.children[0].type===p.Declaration?O.children[0]=E:O.children.unshift(E),O.root()||O},b.prototype.dtd=function(w,x){var T,O,E,C,I,_,F,R,B,M;for(O=this.document(),E=new f(O,w,x),B=O.children,C=I=0,F=B.length;I<F;C=++I)if(T=B[C],T.type===p.DocType)return O.children[C]=E,E;for(M=O.children,C=_=0,R=M.length;_<R;C=++_)if(T=M[C],T.isRoot)return O.children.splice(C,0,E),E;return O.children.push(E),E},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 w;for(w=this;w;){if(w.type===p.Document)return w.rootObject;if(w.isRoot)return w;w=w.parent}},b.prototype.document=function(){var w;for(w=this;w;){if(w.type===p.Document)return w;w=w.parent}},b.prototype.end=function(w){return this.document().end(w)},b.prototype.prev=function(){var w;if(w=this.parent.children.indexOf(this),w<1)throw new Error("Already at the first node. "+this.debugInfo());return this.parent.children[w-1]},b.prototype.next=function(){var w;if(w=this.parent.children.indexOf(this),w===-1||w===this.parent.children.length-1)throw new Error("Already at the last node. "+this.debugInfo());return this.parent.children[w+1]},b.prototype.importDocument=function(w){var x;return x=w.root().clone(),x.parent=this,x.isRoot=!1,this.children.push(x),this},b.prototype.debugInfo=function(w){var x,T;return w=w||this.name,w==null&&!((x=this.parent)!=null?x.name:void 0)?"":w==null?"parent: <"+this.parent.name+">":((T=this.parent)!=null?T.name:void 0)?"node: <"+w+">, parent: <"+this.parent.name+">":"node: <"+w+">"},b.prototype.ele=function(w,x,T){return this.element(w,x,T)},b.prototype.nod=function(w,x,T){return this.node(w,x,T)},b.prototype.txt=function(w){return this.text(w)},b.prototype.dat=function(w){return this.cdata(w)},b.prototype.com=function(w){return this.comment(w)},b.prototype.ins=function(w,x){return this.instruction(w,x)},b.prototype.doc=function(){return this.document()},b.prototype.dec=function(w,x,T){return this.declaration(w,x,T)},b.prototype.e=function(w,x,T){return this.element(w,x,T)},b.prototype.n=function(w,x,T){return this.node(w,x,T)},b.prototype.t=function(w){return this.text(w)},b.prototype.d=function(w){return this.cdata(w)},b.prototype.c=function(w){return this.comment(w)},b.prototype.r=function(w){return this.raw(w)},b.prototype.i=function(w,x){return this.instruction(w,x)},b.prototype.u=function(){return this.up()},b.prototype.importXMLBuilder=function(w){return this.importDocument(w)},b.prototype.replaceChild=function(w,x){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.removeChild=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.appendChild=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.hasChildNodes=function(){return this.children.length!==0},b.prototype.cloneNode=function(w){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(w,x){return!0},b.prototype.hasAttributes=function(){return this.attribs.length!==0},b.prototype.compareDocumentPosition=function(w){var x,T;return x=this,x===w?0:this.document()!==w.document()?(T=y.Disconnected|y.ImplementationSpecific,Math.random()<.5?T|=y.Preceding:T|=y.Following,T):x.isAncestor(w)?y.Contains|y.Preceding:x.isDescendant(w)?y.Contains|y.Following:x.isPreceding(w)?y.Preceding:y.Following},b.prototype.isSameNode=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.lookupPrefix=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isDefaultNamespace=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.lookupNamespaceURI=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.isEqualNode=function(w){var x,T,O;if(w.nodeType!==this.nodeType)return!1;if(w.children.length!==this.children.length)return!1;for(x=T=0,O=this.children.length-1;0<=O?T<=O:T>=O;x=0<=O?++T:--T)if(!this.children[x].isEqualNode(w.children[x]))return!1;return!0},b.prototype.getFeature=function(w,x){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.setUserData=function(w,x,T){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.getUserData=function(w){throw new Error("This DOM method is not implemented."+this.debugInfo())},b.prototype.contains=function(w){return w?w===this||this.isDescendant(w):!1},b.prototype.isDescendant=function(w){var x,T,O,E,C;for(C=this.children,O=0,E=C.length;O<E;O++){if(x=C[O],w===x)return!0;if(T=x.isDescendant(w),T)return!0}return!1},b.prototype.isAncestor=function(w){return w.isDescendant(this)},b.prototype.isPreceding=function(w){var x,T;return x=this.treePosition(w),T=this.treePosition(this),x===-1||T===-1?!1:x<T},b.prototype.isFollowing=function(w){var x,T;return x=this.treePosition(w),T=this.treePosition(this),x===-1||T===-1?!1:x>T},b.prototype.treePosition=function(w){var x,T;return T=0,x=!1,this.foreachTreeNode(this.document(),function(O){if(T++,!x&&O===w)return x=!0}),x?T:-1},b.prototype.foreachTreeNode=function(w,x){var T,O,E,C,I;for(w||(w=this.document()),C=w.children,O=0,E=C.length;O<E;O++){if(T=C[O],I=x(T))return I;if(I=this.foreachTreeNode(T,x),I)return I}},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(k,D,i){"use strict";(function(){var y;D.exports=y=function(){function p(S){this.nodes=S}return Object.defineProperty(p.prototype,"length",{get:function(){return this.nodes.length||0}}),p.prototype.clone=function(){return this.nodes=null},p.prototype.item=function(S){return this.nodes[S]||null},p}()}).call(void 0)},{}],275:[function(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/create"),p=S(y);function S(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,f,d=function(n,t){for(var a in t)l.call(t,a)&&(n[a]=t[a]);function e(){this.constructor=n}return e.prototype=t.prototype,n.prototype=new e,n.__super__=t.prototype,n},l={}.hasOwnProperty;A=k("./NodeType"),m=k("./XMLCharacterData"),D.exports=f=function(o){d(n,o);function n(t,a,e){if(n.__super__.constructor.call(this,t),a==null)throw new Error("Missing instruction target. "+this.debugInfo());this.type=A.ProcessingInstruction,this.target=this.stringify.insTarget(a),this.name=this.target,e&&(this.value=this.stringify.insValue(e))}return n.prototype.clone=function(){return(0,p.default)(this)},n.prototype.toString=function(t){return this.options.writer.processingInstruction(this,this.options.writer.filterOptions(t))},n.prototype.isEqualNode=function(t){return n.__super__.isEqualNode.apply(this,arguments).isEqualNode(t)?!(t.target!==this.target):!1},n}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],276:[function(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/create"),p=S(y);function S(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,f,d=function(n,t){for(var a in t)l.call(t,a)&&(n[a]=t[a]);function e(){this.constructor=n}return e.prototype=t.prototype,n.prototype=new e,n.__super__=t.prototype,n},l={}.hasOwnProperty;A=k("./NodeType"),m=k("./XMLNode"),D.exports=f=function(o){d(n,o);function n(t,a){if(n.__super__.constructor.call(this,t),a==null)throw new Error("Missing raw text. "+this.debugInfo());this.type=A.Raw,this.value=this.stringify.raw(a)}return n.prototype.clone=function(){return(0,p.default)(this)},n.prototype.toString=function(t){return this.options.writer.raw(this,this.options.writer.filterOptions(t))},n}(m)}).call(void 0)},{"./NodeType":251,"./XMLNode":273,"babel-runtime/core-js/object/create":55}],277:[function(k,D,i){"use strict";(function(){var y,p,S,A,m=function(l,o){for(var n in o)f.call(o,n)&&(l[n]=o[n]);function t(){this.constructor=l}return t.prototype=o.prototype,l.prototype=new t,l.__super__=o.prototype,l},f={}.hasOwnProperty;y=k("./NodeType"),A=k("./XMLWriterBase"),p=k("./WriterState"),D.exports=S=function(d){m(l,d);function l(o,n){this.stream=o,l.__super__.constructor.call(this,n)}return l.prototype.endline=function(o,n,t){return o.isLastRootNode&&n.state===p.CloseTag?"":l.__super__.endline.call(this,o,n,t)},l.prototype.document=function(o,n){var t,a,e,u,r,s,c,h,g;for(c=o.children,a=e=0,r=c.length;e<r;a=++e)t=c[a],t.isLastRootNode=a===o.children.length-1;for(n=this.filterOptions(n),h=o.children,g=[],u=0,s=h.length;u<s;u++)t=h[u],g.push(this.writeChildNode(t,n,0));return g},l.prototype.attribute=function(o,n,t){return this.stream.write(l.__super__.attribute.call(this,o,n,t))},l.prototype.cdata=function(o,n,t){return this.stream.write(l.__super__.cdata.call(this,o,n,t))},l.prototype.comment=function(o,n,t){return this.stream.write(l.__super__.comment.call(this,o,n,t))},l.prototype.declaration=function(o,n,t){return this.stream.write(l.__super__.declaration.call(this,o,n,t))},l.prototype.docType=function(o,n,t){var a,e,u,r;if(t||(t=0),this.openNode(o,n,t),n.state=p.OpenTag,this.stream.write(this.indent(o,n,t)),this.stream.write("<!DOCTYPE "+o.root().name),o.pubID&&o.sysID?this.stream.write(' PUBLIC "'+o.pubID+'" "'+o.sysID+'"'):o.sysID&&this.stream.write(' SYSTEM "'+o.sysID+'"'),o.children.length>0){for(this.stream.write(" ["),this.stream.write(this.endline(o,n,t)),n.state=p.InsideTag,r=o.children,e=0,u=r.length;e<u;e++)a=r[e],this.writeChildNode(a,n,t+1);n.state=p.CloseTag,this.stream.write("]")}return n.state=p.CloseTag,this.stream.write(n.spaceBeforeSlash+">"),this.stream.write(this.endline(o,n,t)),n.state=p.None,this.closeNode(o,n,t)},l.prototype.element=function(o,n,t){var a,e,u,r,s,c,h,g,v,b;t||(t=0),this.openNode(o,n,t),n.state=p.OpenTag,this.stream.write(this.indent(o,n,t)+"<"+o.name),v=o.attribs;for(h in v){if(!f.call(v,h))continue;a=v[h],this.attribute(a,n,t)}if(u=o.children.length,r=u===0?null:o.children[0],u===0||o.children.every(function(w){return(w.type===y.Text||w.type===y.Raw)&&w.value===""}))n.allowEmpty?(this.stream.write(">"),n.state=p.CloseTag,this.stream.write("</"+o.name+">")):(n.state=p.CloseTag,this.stream.write(n.spaceBeforeSlash+"/>"));else if(n.pretty&&u===1&&(r.type===y.Text||r.type===y.Raw)&&r.value!=null)this.stream.write(">"),n.state=p.InsideTag,n.suppressPrettyCount++,g=!0,this.writeChildNode(r,n,t+1),n.suppressPrettyCount--,g=!1,n.state=p.CloseTag,this.stream.write("</"+o.name+">");else{for(this.stream.write(">"+this.endline(o,n,t)),n.state=p.InsideTag,b=o.children,s=0,c=b.length;s<c;s++)e=b[s],this.writeChildNode(e,n,t+1);n.state=p.CloseTag,this.stream.write(this.indent(o,n,t)+"</"+o.name+">")}return this.stream.write(this.endline(o,n,t)),n.state=p.None,this.closeNode(o,n,t)},l.prototype.processingInstruction=function(o,n,t){return this.stream.write(l.__super__.processingInstruction.call(this,o,n,t))},l.prototype.raw=function(o,n,t){return this.stream.write(l.__super__.raw.call(this,o,n,t))},l.prototype.text=function(o,n,t){return this.stream.write(l.__super__.text.call(this,o,n,t))},l.prototype.dtdAttList=function(o,n,t){return this.stream.write(l.__super__.dtdAttList.call(this,o,n,t))},l.prototype.dtdElement=function(o,n,t){return this.stream.write(l.__super__.dtdElement.call(this,o,n,t))},l.prototype.dtdEntity=function(o,n,t){return this.stream.write(l.__super__.dtdEntity.call(this,o,n,t))},l.prototype.dtdNotation=function(o,n,t){return this.stream.write(l.__super__.dtdNotation.call(this,o,n,t))},l}(A)}).call(void 0)},{"./NodeType":251,"./WriterState":253,"./XMLWriterBase":281}],278:[function(k,D,i){"use strict";(function(){var y,p,S=function(f,d){for(var l in d)A.call(d,l)&&(f[l]=d[l]);function o(){this.constructor=f}return o.prototype=d.prototype,f.prototype=new o,f.__super__=d.prototype,f},A={}.hasOwnProperty;p=k("./XMLWriterBase"),D.exports=y=function(m){S(f,m);function f(d){f.__super__.constructor.call(this,d)}return f.prototype.document=function(d,l){var o,n,t,a,e;for(l=this.filterOptions(l),a="",e=d.children,n=0,t=e.length;n<t;n++)o=e[n],a+=this.writeChildNode(o,l,0);return l.pretty&&a.slice(-l.newline.length)===l.newline&&(a=a.slice(0,-l.newline.length)),a},f}(p)}).call(void 0)},{"./XMLWriterBase":281}],279:[function(k,D,i){"use strict";(function(){var y,p=function(m,f){return function(){return m.apply(f,arguments)}},S={}.hasOwnProperty;D.exports=y=function(){function A(m){this.assertLegalName=p(this.assertLegalName,this),this.assertLegalChar=p(this.assertLegalChar,this);var f,d,l;m||(m={}),this.options=m,this.options.version||(this.options.version="1.0"),d=m.stringify||{};for(f in d){if(!S.call(d,f))continue;l=d[f],this[f]=l}}return A.prototype.name=function(m){return this.options.noValidation?m:this.assertLegalName(""+m||"")},A.prototype.text=function(m){return this.options.noValidation?m:this.assertLegalChar(this.textEscape(""+m||""))},A.prototype.cdata=function(m){return this.options.noValidation?m:(m=""+m||"",m=m.replace("]]>","]]]]><![CDATA[>"),this.assertLegalChar(m))},A.prototype.comment=function(m){if(this.options.noValidation)return m;if(m=""+m||"",m.match(/--/))throw new Error("Comment text cannot contain double-hypen: "+m);return this.assertLegalChar(m)},A.prototype.raw=function(m){return this.options.noValidation?m:""+m||""},A.prototype.attValue=function(m){return this.options.noValidation?m:this.assertLegalChar(this.attEscape(m=""+m||""))},A.prototype.insTarget=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.insValue=function(m){if(this.options.noValidation)return m;if(m=""+m||"",m.match(/\?>/))throw new Error("Invalid processing instruction value: "+m);return this.assertLegalChar(m)},A.prototype.xmlVersion=function(m){if(this.options.noValidation)return m;if(m=""+m||"",!m.match(/1\.[0-9]+/))throw new Error("Invalid version number: "+m);return m},A.prototype.xmlEncoding=function(m){if(this.options.noValidation)return m;if(m=""+m||"",!m.match(/^[A-Za-z](?:[A-Za-z0-9._-])*$/))throw new Error("Invalid encoding: "+m);return this.assertLegalChar(m)},A.prototype.xmlStandalone=function(m){return this.options.noValidation?m:m?"yes":"no"},A.prototype.dtdPubID=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.dtdSysID=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.dtdElementValue=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.dtdAttType=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.dtdAttDefault=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.dtdEntityValue=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.dtdNData=function(m){return this.options.noValidation?m:this.assertLegalChar(""+m||"")},A.prototype.convertAttKey="@",A.prototype.convertPIKey="?",A.prototype.convertTextKey="#text",A.prototype.convertCDataKey="#cdata",A.prototype.convertCommentKey="#comment",A.prototype.convertRawKey="#raw",A.prototype.assertLegalChar=function(m){var f,d;if(this.options.noValidation)return m;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=m.match(f))throw new Error("Invalid character in string: "+m+" at index "+d.index)}else if(this.options.version==="1.1"&&(f=/[\0\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,d=m.match(f)))throw new Error("Invalid character in string: "+m+" at index "+d.index);return m},A.prototype.assertLegalName=function(m){var f;if(this.options.noValidation)return m;if(this.assertLegalChar(m),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])*$/,!m.match(f))throw new Error("Invalid character in name");return m},A.prototype.textEscape=function(m){var f;return this.options.noValidation?m:(f=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,m.replace(f,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#xD;"))},A.prototype.attEscape=function(m){var f;return this.options.noValidation?m:(f=this.options.noDoubleEncoding?/(?!&\S+;)&/g:/&/g,m.replace(f,"&amp;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/\t/g,"&#x9;").replace(/\n/g,"&#xA;").replace(/\r/g,"&#xD;"))},A}()}).call(void 0)},{}],280:[function(k,D,i){"use strict";var y=k("babel-runtime/core-js/object/create"),p=S(y);function S(A){return A&&A.__esModule?A:{default:A}}(function(){var A,m,f,d=function(n,t){for(var a in t)l.call(t,a)&&(n[a]=t[a]);function e(){this.constructor=n}return e.prototype=t.prototype,n.prototype=new e,n.__super__=t.prototype,n},l={}.hasOwnProperty;A=k("./NodeType"),m=k("./XMLCharacterData"),D.exports=f=function(o){d(n,o);function n(t,a){if(n.__super__.constructor.call(this,t),a==null)throw new Error("Missing element text. "+this.debugInfo());this.name="#text",this.type=A.Text,this.value=this.stringify.text(a)}return Object.defineProperty(n.prototype,"isElementContentWhitespace",{get:function(){throw new Error("This DOM method is not implemented."+this.debugInfo())}}),Object.defineProperty(n.prototype,"wholeText",{get:function(){var a,e,u;for(u="",e=this.previousSibling;e;)u=e.data+u,e=e.previousSibling;for(u+=this.data,a=this.nextSibling;a;)u=u+a.data,a=a.nextSibling;return u}}),n.prototype.clone=function(){return(0,p.default)(this)},n.prototype.toString=function(t){return this.options.writer.text(this,this.options.writer.filterOptions(t))},n.prototype.splitText=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n.prototype.replaceWholeText=function(t){throw new Error("This DOM method is not implemented."+this.debugInfo())},n}(m)}).call(void 0)},{"./NodeType":251,"./XMLCharacterData":256,"babel-runtime/core-js/object/create":55}],281:[function(k,D,i){"use strict";(function(){var y,p,S,A,m,f,d,l,o,n,t,a,e,u,r,s,c,h={}.hasOwnProperty;c=k("./Utility").assign,y=k("./NodeType"),o=k("./XMLDeclaration"),n=k("./XMLDocType"),S=k("./XMLCData"),A=k("./XMLComment"),a=k("./XMLElement"),u=k("./XMLRaw"),r=k("./XMLText"),e=k("./XMLProcessingInstruction"),t=k("./XMLDummy"),m=k("./XMLDTDAttList"),f=k("./XMLDTDElement"),d=k("./XMLDTDEntity"),l=k("./XMLDTDNotation"),p=k("./WriterState"),D.exports=s=function(){function g(v){var b,w,x;v||(v={}),this.options=v,w=v.writer||{};for(b in w){if(!h.call(w,b))continue;x=w[b],this["_"+b]=this[b],this[b]=x}}return g.prototype.filterOptions=function(v){var b,w,x,T,O,E,C,I;return v||(v={}),v=c({},this.options,v),b={writer:this},b.pretty=v.pretty||!1,b.allowEmpty=v.allowEmpty||!1,b.indent=(w=v.indent)!=null?w:" ",b.newline=(x=v.newline)!=null?x:`
`,b.offset=(T=v.offset)!=null?T:0,b.dontPrettyTextNodes=(O=(E=v.dontPrettyTextNodes)!=null?E:v.dontprettytextnodes)!=null?O:0,b.spaceBeforeSlash=(C=(I=v.spaceBeforeSlash)!=null?I:v.spacebeforeslash)!=null?C:"",b.spaceBeforeSlash===!0&&(b.spaceBeforeSlash=" "),b.suppressPrettyCount=0,b.user={},b.state=p.None,b},g.prototype.indent=function(v,b,w){var x;return!b.pretty||b.suppressPrettyCount?"":b.pretty&&(x=(w||0)+b.offset+1,x>0)?new Array(x).join(b.indent):""},g.prototype.endline=function(v,b,w){return!b.pretty||b.suppressPrettyCount?"":b.newline},g.prototype.attribute=function(v,b,w){var x;return this.openAttribute(v,b,w),x=" "+v.name+'="'+v.value+'"',this.closeAttribute(v,b,w),x},g.prototype.cdata=function(v,b,w){var x;return this.openNode(v,b,w),b.state=p.OpenTag,x=this.indent(v,b,w)+"<![CDATA[",b.state=p.InsideTag,x+=v.value,b.state=p.CloseTag,x+="]]>"+this.endline(v,b,w),b.state=p.None,this.closeNode(v,b,w),x},g.prototype.comment=function(v,b,w){var x;return this.openNode(v,b,w),b.state=p.OpenTag,x=this.indent(v,b,w)+"<!-- ",b.state=p.InsideTag,x+=v.value,b.state=p.CloseTag,x+=" -->"+this.endline(v,b,w),b.state=p.None,this.closeNode(v,b,w),x},g.prototype.declaration=function(v,b,w){var x;return this.openNode(v,b,w),b.state=p.OpenTag,x=this.indent(v,b,w)+"<?xml",b.state=p.InsideTag,x+=' version="'+v.version+'"',v.encoding!=null&&(x+=' encoding="'+v.encoding+'"'),v.standalone!=null&&(x+=' standalone="'+v.standalone+'"'),b.state=p.CloseTag,x+=b.spaceBeforeSlash+"?>",x+=this.endline(v,b,w),b.state=p.None,this.closeNode(v,b,w),x},g.prototype.docType=function(v,b,w){var x,T,O,E,C;if(w||(w=0),this.openNode(v,b,w),b.state=p.OpenTag,E=this.indent(v,b,w),E+="<!DOCTYPE "+v.root().name,v.pubID&&v.sysID?E+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.sysID&&(E+=' SYSTEM "'+v.sysID+'"'),v.children.length>0){for(E+=" [",E+=this.endline(v,b,w),b.state=p.InsideTag,C=v.children,T=0,O=C.length;T<O;T++)x=C[T],E+=this.writeChildNode(x,b,w+1);b.state=p.CloseTag,E+="]"}return b.state=p.CloseTag,E+=b.spaceBeforeSlash+">",E+=this.endline(v,b,w),b.state=p.None,this.closeNode(v,b,w),E},g.prototype.element=function(v,b,w){var x,T,O,E,C,I,_,F,R,B,M,X,P,z;w||(w=0),B=!1,M="",this.openNode(v,b,w),b.state=p.OpenTag,M+=this.indent(v,b,w)+"<"+v.name,X=v.attribs;for(R in X){if(!h.call(X,R))continue;x=X[R],M+=this.attribute(x,b,w)}if(O=v.children.length,E=O===0?null:v.children[0],O===0||v.children.every(function(W){return(W.type===y.Text||W.type===y.Raw)&&W.value===""}))b.allowEmpty?(M+=">",b.state=p.CloseTag,M+="</"+v.name+">"+this.endline(v,b,w)):(b.state=p.CloseTag,M+=b.spaceBeforeSlash+"/>"+this.endline(v,b,w));else if(b.pretty&&O===1&&(E.type===y.Text||E.type===y.Raw)&&E.value!=null)M+=">",b.state=p.InsideTag,b.suppressPrettyCount++,B=!0,M+=this.writeChildNode(E,b,w+1),b.suppressPrettyCount--,B=!1,b.state=p.CloseTag,M+="</"+v.name+">"+this.endline(v,b,w);else{if(b.dontPrettyTextNodes){for(P=v.children,C=0,_=P.length;C<_;C++)if(T=P[C],(T.type===y.Text||T.type===y.Raw)&&T.value!=null){b.suppressPrettyCount++,B=!0;break}}for(M+=">"+this.endline(v,b,w),b.state=p.InsideTag,z=v.children,I=0,F=z.length;I<F;I++)T=z[I],M+=this.writeChildNode(T,b,w+1);b.state=p.CloseTag,M+=this.indent(v,b,w)+"</"+v.name+">",B&&b.suppressPrettyCount--,M+=this.endline(v,b,w),b.state=p.None}return this.closeNode(v,b,w),M},g.prototype.writeChildNode=function(v,b,w){switch(v.type){case y.CData:return this.cdata(v,b,w);case y.Comment:return this.comment(v,b,w);case y.Element:return this.element(v,b,w);case y.Raw:return this.raw(v,b,w);case y.Text:return this.text(v,b,w);case y.ProcessingInstruction:return this.processingInstruction(v,b,w);case y.Dummy:return"";case y.Declaration:return this.declaration(v,b,w);case y.DocType:return this.docType(v,b,w);case y.AttributeDeclaration:return this.dtdAttList(v,b,w);case y.ElementDeclaration:return this.dtdElement(v,b,w);case y.EntityDeclaration:return this.dtdEntity(v,b,w);case y.NotationDeclaration:return this.dtdNotation(v,b,w);default:throw new Error("Unknown XML node type: "+v.constructor.name)}},g.prototype.processingInstruction=function(v,b,w){var x;return this.openNode(v,b,w),b.state=p.OpenTag,x=this.indent(v,b,w)+"<?",b.state=p.InsideTag,x+=v.target,v.value&&(x+=" "+v.value),b.state=p.CloseTag,x+=b.spaceBeforeSlash+"?>",x+=this.endline(v,b,w),b.state=p.None,this.closeNode(v,b,w),x},g.prototype.raw=function(v,b,w){var x;return this.openNode(v,b,w),b.state=p.OpenTag,x=this.indent(v,b,w),b.state=p.InsideTag,x+=v.value,b.state=p.CloseTag,x+=this.endline(v,b,w),b.state=p.None,this.closeNode(v,b,w),x},g.prototype.text=function(v,b,w){var x;return this.openNode(v,b,w),b.state=p.OpenTag,x=this.indent(v,b,w),b.state=p.InsideTag,x+=v.value,b.state=p.CloseTag,x+=this.endline(v,b,w),b.state=p.None,this.closeNode(v,b,w),x},g.prototype.dtdAttList=function(v,b,w){var x;return this.openNode(v,b,w),b.state=p.OpenTag,x=this.indent(v,b,w)+"<!ATTLIST",b.state=p.InsideTag,x+=" "+v.elementName+" "+v.attributeName+" "+v.attributeType,v.defaultValueType!=="#DEFAULT"&&(x+=" "+v.defaultValueType),v.defaultValue&&(x+=' "'+v.defaultValue+'"'),b.state=p.CloseTag,x+=b.spaceBeforeSlash+">"+this.endline(v,b,w),b.state=p.None,this.closeNode(v,b,w),x},g.prototype.dtdElement=function(v,b,w){var x;return this.openNode(v,b,w),b.state=p.OpenTag,x=this.indent(v,b,w)+"<!ELEMENT",b.state=p.InsideTag,x+=" "+v.name+" "+v.value,b.state=p.CloseTag,x+=b.spaceBeforeSlash+">"+this.endline(v,b,w),b.state=p.None,this.closeNode(v,b,w),x},g.prototype.dtdEntity=function(v,b,w){var x;return this.openNode(v,b,w),b.state=p.OpenTag,x=this.indent(v,b,w)+"<!ENTITY",b.state=p.InsideTag,v.pe&&(x+=" %"),x+=" "+v.name,v.value?x+=' "'+v.value+'"':(v.pubID&&v.sysID?x+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.sysID&&(x+=' SYSTEM "'+v.sysID+'"'),v.nData&&(x+=" NDATA "+v.nData)),b.state=p.CloseTag,x+=b.spaceBeforeSlash+">"+this.endline(v,b,w),b.state=p.None,this.closeNode(v,b,w),x},g.prototype.dtdNotation=function(v,b,w){var x;return this.openNode(v,b,w),b.state=p.OpenTag,x=this.indent(v,b,w)+"<!NOTATION",b.state=p.InsideTag,x+=" "+v.name,v.pubID&&v.sysID?x+=' PUBLIC "'+v.pubID+'" "'+v.sysID+'"':v.pubID?x+=' PUBLIC "'+v.pubID+'"':v.sysID&&(x+=' SYSTEM "'+v.sysID+'"'),b.state=p.CloseTag,x+=b.spaceBeforeSlash+">"+this.endline(v,b,w),b.state=p.None,this.closeNode(v,b,w),x},g.prototype.openNode=function(v,b,w){},g.prototype.closeNode=function(v,b,w){},g.prototype.openAttribute=function(v,b,w){},g.prototype.closeAttribute=function(v,b,w){},g}()}).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(k,D,i){"use strict";(function(){var y,p,S,A,m,f,d,l,o,n;n=k("./Utility"),l=n.assign,o=n.isFunction,S=k("./XMLDOMImplementation"),A=k("./XMLDocument"),m=k("./XMLDocumentCB"),d=k("./XMLStringWriter"),f=k("./XMLStreamWriter"),y=k("./NodeType"),p=k("./WriterState"),D.exports.create=function(t,a,e,u){var r,s;if(t==null)throw new Error("Root element needs a name.");return u=l({},a,e,u),r=new A(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,a,e){var u;return o(t)&&(u=[t,a],a=u[0],e=u[1],t={}),a?new m(t,a,e):new A(t)},D.exports.stringWriter=function(t){return new d(t)},D.exports.streamWriter=function(t,a){return new f(t,a)},D.exports.implementation=new S,D.exports.nodeType=y,D.exports.writerState=p}).call(void 0)},{"./NodeType":251,"./Utility":252,"./WriterState":253,"./XMLDOMImplementation":260,"./XMLDocument":268,"./XMLDocumentCB":269,"./XMLStreamWriter":277,"./XMLStringWriter":278}],283:[function(k,D,i){D.exports=p;var y=Object.prototype.hasOwnProperty;function p(){for(var S={},A=0;A<arguments.length;A++){var m=arguments[A];for(var f in m)y.call(m,f)&&(S[f]=m[f])}return S}},{}],284:[function(k,D,i){"use strict";var y=k("buffer").Buffer,p=k("./sha"),S=k("./md5"),A={sha1:p,md5:S},m=64,f=y.alloc(m);f.fill(0);function d(n,t,a){y.isBuffer(t)||(t=y.from(t)),y.isBuffer(a)||(a=y.from(a)),t.length>m?t=n(t):t.length<m&&(t=y.concat([t,f],m));for(var e=y.alloc(m),u=y.alloc(m),r=0;r<m;r++)e[r]=t[r]^54,u[r]=t[r]^92;var s=n(y.concat([e,a]));return n(y.concat([u,s]))}function l(n,t){n=n||"sha1";var a=A[n],e=[],u=0;return a||o("algorithm:",n,"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(a,t,c):a(c);return e=null,s?h.toString(s):h}}}function o(){var n=[].slice.call(arguments).join(" ");throw new Error([n,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
`))}i.createHash=function(n){return l(n)},i.createHmac=function(n,t){return l(n,t)},i.createCredentials=function(){o("sorry,createCredentials is not implemented yet")},i.createCipher=function(){o("sorry,createCipher is not implemented yet")},i.createCipheriv=function(){o("sorry,createCipheriv is not implemented yet")},i.createDecipher=function(){o("sorry,createDecipher is not implemented yet")},i.createDecipheriv=function(){o("sorry,createDecipheriv is not implemented yet")},i.createSign=function(){o("sorry,createSign is not implemented yet")},i.createVerify=function(){o("sorry,createVerify is not implemented yet")},i.createDiffieHellman=function(){o("sorry,createDiffieHellman is not implemented yet")},i.pbkdf2=function(){o("sorry,pbkdf2 is not implemented yet")}},{"./md5":286,"./sha":287,buffer:73}],285:[function(k,D,i){"use strict";var y=k("buffer").Buffer,p=4,S=y.alloc(p);S.fill(0);var A=8;function m(l,o){if(l.length%p!==0){var n=l.length+(p-l.length%p);l=y.concat([l,S],n)}for(var t=[],a=o?l.readInt32BE:l.readInt32LE,e=0;e<l.length;e+=p)t.push(a.call(l,e));return t}function f(l,o,n){for(var t=y.alloc(o),a=n?t.writeInt32BE:t.writeInt32LE,e=0;e<l.length;e++)a.call(t,l[e],e*4,!0);return t}function d(l,o,n,t){y.isBuffer(l)||(l=y.from(l));var a=o(m(l,t),l.length*A);return f(a,n,t)}D.exports={hash:d}},{buffer:73}],286:[function(k,D,i){"use strict";var y=k("./helpers");function p(){return hex_md5("abc")=="900150983cd24fb0d6963f7d28e17f72"}function S(t,a){t[a>>5]|=128<<a%32,t[(a+64>>>9<<4)+14]=a;for(var e=1732584193,u=-271733879,r=-1732584194,s=271733878,c=0;c<t.length;c+=16){var h=e,g=u,v=r,b=s;e=m(e,u,r,s,t[c+0],7,-680876936),s=m(s,e,u,r,t[c+1],12,-389564586),r=m(r,s,e,u,t[c+2],17,606105819),u=m(u,r,s,e,t[c+3],22,-1044525330),e=m(e,u,r,s,t[c+4],7,-176418897),s=m(s,e,u,r,t[c+5],12,1200080426),r=m(r,s,e,u,t[c+6],17,-1473231341),u=m(u,r,s,e,t[c+7],22,-45705983),e=m(e,u,r,s,t[c+8],7,1770035416),s=m(s,e,u,r,t[c+9],12,-1958414417),r=m(r,s,e,u,t[c+10],17,-42063),u=m(u,r,s,e,t[c+11],22,-1990404162),e=m(e,u,r,s,t[c+12],7,1804603682),s=m(s,e,u,r,t[c+13],12,-40341101),r=m(r,s,e,u,t[c+14],17,-1502002290),u=m(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=o(e,h),u=o(u,g),r=o(r,v),s=o(s,b)}return Array(e,u,r,s)}function A(t,a,e,u,r,s){return o(n(o(o(a,t),o(u,s)),r),e)}function m(t,a,e,u,r,s,c){return A(a&e|~a&u,t,a,r,s,c)}function f(t,a,e,u,r,s,c){return A(a&u|e&~u,t,a,r,s,c)}function d(t,a,e,u,r,s,c){return A(a^e^u,t,a,r,s,c)}function l(t,a,e,u,r,s,c){return A(e^(a|~u),t,a,r,s,c)}function o(t,a){var e=(t&65535)+(a&65535),u=(t>>16)+(a>>16)+(e>>16);return u<<16|e&65535}function n(t,a){return t<<a|t>>>32-a}D.exports=function(a){return y.hash(a,S,16)}},{"./helpers":285}],287:[function(k,D,i){"use strict";var y=k("./helpers");function p(d,l){d[l>>5]|=128<<24-l%32,d[(l+64>>9<<4)+15]=l;for(var o=Array(80),n=1732584193,t=-271733879,a=-1732584194,e=271733878,u=-1009589776,r=0;r<d.length;r+=16){for(var s=n,c=t,h=a,g=e,v=u,b=0;b<80;b++){b<16?o[b]=d[r+b]:o[b]=f(o[b-3]^o[b-8]^o[b-14]^o[b-16],1);var w=m(m(f(n,5),S(b,t,a,e)),m(m(u,o[b]),A(b)));u=e,e=a,a=f(t,30),t=n,n=w}n=m(n,s),t=m(t,c),a=m(a,h),e=m(e,g),u=m(u,v)}return Array(n,t,a,e,u)}function S(d,l,o,n){return d<20?l&o|~l&n:d<40?l^o^n:d<60?l&o|l&n|o&n:l^o^n}function A(d){return d<20?1518500249:d<40?1859775393:d<60?-1894007588:-899497514}function m(d,l){var o=(d&65535)+(l&65535),n=(d>>16)+(l>>16)+(o>>16);return n<<16|o&65535}function f(d,l){return d<<l|d>>>32-l}D.exports=function(l){return y.hash(l,p,20,!0)}},{"./helpers":285}],288:[function(k,D,i){"use strict";D.exports=function(){return function(){}}},{}],289:[function(k,D,i){(function(y){"use strict";var p=k("babel-runtime/helpers/typeof"),S=A(p);function A(n){return n&&n.__esModule?n:{default:n}}var m=k("stream"),f=m.Stream,d=k("../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 o(n){return n instanceof f}D.exports.writableStream=function(t){return o(t)&&typeof t._write=="function"&&(0,S.default)(t._writableState)==="object"}}).call(this,{isBuffer:k("../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(k,D,i){"use strict";i.encodeURIComponent=function(y){try{return encodeURIComponent(y)}catch(p){return y}},i.escape=k("escape-html"),i.timestamp=function(p){if(p){var S=p;return typeof S=="string"&&(S=Number(S)),String(p).length===10&&(S*=1e3),new Date(S)}return Math.round(Date.now()/1e3)}},{"escape-html":191}],291:[function(k,D,i){(function(y,p){"use strict";var S=k("babel-runtime/core-js/json/stringify"),A=d(S),m=k("babel-runtime/helpers/typeof"),f=d(m);function d(b){return b&&b.__esModule?b:{default:b}}var l=k("util"),o=k("url"),n=k("http"),t=k("https"),a=k("debug")("urllib"),e=k("humanize-ms"),u,r=0,s=Math.pow(2,31)-10,c=/^https?:\/\//i;function h(b,w){return b===void 0?w:b}function g(b,w){return function(x,T,O){if(x)return w(x);b({data:T,status:O.statusCode,headers:O.headers,res:O})}}i.TIMEOUTS=[e("300s"),e("300s")];var v=["json","text"];i.request=function(w,x,T){return arguments.length===2&&typeof x=="function"&&(T=x,x=null),typeof T=="function"?i.requestWithCallback(w,x,T):(u||(u=k("any-promise")),new u(function(O,E){i.requestWithCallback(w,x,g(O,E))}))},i.requestWithCallback=function(w,x,T){if(!w||typeof w!="string"&&(typeof w=="undefined"?"undefined":(0,f.default)(w))!=="object"){var O=l.format("expect request url to be a string or a http request options, but got %j",w);throw new Error(O)}arguments.length===2&&typeof x=="function"&&(T=x,x=null),x=x||{},r>=s&&(r=0);var E=++r;x.requestUrls=x.requestUrls||[];var C={requestId:E,url:w,args:x,ctx:x.ctx};x.emitter&&x.emitter.emit("request",C),x.timeout=x.timeout||i.TIMEOUTS,x.maxRedirects=x.maxRedirects||10,x.streaming=x.streaming||x.customResponse;var I=Date.now(),_;typeof w=="string"?(c.test(w)||(w="http://"+w),_=o.parse(w)):_=w;var F=(x.type||x.method||_.method||"GET").toUpperCase(),R=_.port||80,B=n,M=h(x.agent,i.agent),X=x.fixJSONCtlChars;_.protocol==="https:"&&(B=t,M=h(x.httpsAgent,i.httpsAgent),_.port||(R=443));var P={host:_.hostname||_.host||"localhost",path:_.path||"/",method:F,port:R,agent:M,headers:x.headers||{},lookup:x.lookup};Array.isArray(x.timeout)?P.requestTimeout=x.timeout[x.timeout.length-1]:typeof x.timeout!="undefined"&&(P.requestTimeout=x.timeout);for(var z=["pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","secureProtocol","secureOptions"],W=0;W<z.length;W++){var U=z[W];x.hasOwnProperty(U)&&(P[U]=x[U])}P.rejectUnauthorized===!1&&!P.hasOwnProperty("secureOptions")&&(P.secureOptions=k("constants").SSL_OP_NO_TLSv1_2);var V=x.auth||_.auth;V&&(P.auth=V);var Q=x.content||x.data,G=F==="GET"||F==="HEAD"||x.dataAsQueryString;if(!x.content&&(Q&&!(typeof Q=="string"||p.isBuffer(Q))))if(G)Q=x.nestedQuerystring?qs.stringify(Q):querystring.stringify(Q);else{var te=P.headers["Content-Type"]||P.headers["content-type"];te||(x.contentType==="json"?te="application/json":te="application/x-www-form-urlencoded",P.headers["Content-Type"]=te),parseContentType(te).type==="application/json"?Q=(0,A.default)(Q):Q=x.nestedQuerystring?qs.stringify(Q):querystring.stringify(Q)}G&&Q&&(P.path+=(_.query?"&":"?")+Q,Q=null);var $=0;if(Q){var le=Q.length;p.isBuffer(Q)||(le=p.byteLength(Q)),$=P.headers["Content-Length"]=le}x.dataType==="json"&&(P.headers.Accept="application/json"),typeof x.beforeRequest=="function"&&x.beforeRequest(P);var re=null,Se=null,Re=null,Pe=!1,Je=!1,Ve=0,ct=-1,Ue=!1,ue="",rt="",ge=null;x.timing&&(ge={queuing:0,dnslookup:0,connected:0,requestSent:0,waiting:0,contentDownload:0});function Z(){re&&(clearTimeout(re),re=null)}function Y(){Se&&(clearTimeout(Se),Se=null)}function ee(Fe,ft,et){if(Y(),!T){console.warn("[urllib:warn] [%s] [%s] [worker:%s] %s %s callback twice!!!",Date(),E,y.pid,P.method,w),Fe&&console.warn(`[urllib:warn] [%s] [%s] [worker:%s] %s: %s
stack: %s`,Date(),E,y.pid,Fe.name,Fe.message,Fe.stack);return}var wt=T;T=null;var Ht={};if(et&&(ct=et.statusCode,Ht=et.headers),ct===401&&Ht["www-authenticate"]&&(!x.headers||!x.headers.Authorization)&&x.digestAuth){var Dt=Ht["www-authenticate"];if(Dt.indexOf("Digest ")>=0)return a("Request#%d %s: got digest auth header WWW-Authenticate: %s",E,w,Dt),x.headers=x.headers||{},x.headers.Authorization=digestAuthHeader(P.method,P.path,Dt,x.digestAuth),a("Request#%d %s: auth with digest header: %s",E,w,x.headers.Authorization),et.headers["set-cookie"]&&(x.headers.Cookie=et.headers["set-cookie"].join(";")),i.requestWithCallback(w,x,wt)}var Tt=Date.now()-I;ge&&(ge.contentDownload=Tt),a("[%sms] done, %s bytes HTTP %s %s %s %s, keepAliveSocket: %s, timing: %j",Tt,Ve,ct,P.method,P.host,P.path,Je,ge);var Bt={status:ct,statusCode:ct,headers:Ht,size:Ve,aborted:Ue,rt:Tt,keepAliveSocket:Je,data:ft,requestUrls:x.requestUrls,timing:ge,remoteAddress:ue,remotePort:rt};if(Fe){var Ke="";M&&typeof M.getCurrentStatus=="function"&&(Ke=", agent status: "+(0,A.default)(M.getCurrentStatus())),Fe.message+=", "+P.method+" "+w+" "+ct+" (connected: "+Pe+", keepalive socket: "+Je+Ke+`)
headers: `+(0,A.default)(Ht),Fe.data=ft,Fe.path=P.path,Fe.status=ct,Fe.headers=Ht,Fe.res=Bt}wt(Fe,ft,x.streaming?et:Bt),x.emitter&&(C.url=w,C.socket=pt&&pt.connection,C.options=P,C.size=$,x.emitter.emit("response",{requestId:E,error:Fe,ctx:x.ctx,req:C,res:Bt}))}function fe(Fe){var ft=null;if(x.followRedirect&&statuses.redirect[Fe.statusCode]){x._followRedirectCount=(x._followRedirectCount||0)+1;var et=Fe.headers.location;if(!et)ft=new Error("Got statusCode "+Fe.statusCode+" but cannot resolve next location from headers"),ft.name="FollowRedirectError";else if(x._followRedirectCount>x.maxRedirects)ft=new Error("Exceeded maxRedirects. Probably stuck in a redirect loop "+w),ft.name="MaxRedirectError";else{var wt=x.formatRedirectUrl?x.formatRedirectUrl(w,et):o.resolve(w,et);a("Request#%d %s: `redirected` from %s to %s",E,P.path,w,wt),Y(),x.headers&&x.headers.Host&&c.test(et)&&(x.headers.Host=null);var Ht=T;return T=null,i.requestWithCallback(wt,x,Ht),{redirect:!0,error:null}}}return{redirect:!1,error:ft}}!P.headers["User-Agent"]&&!P.headers["user-agent"]&&(P.headers["User-Agent"]=navigator.userAgent),x.gzip&&(!P.headers["Accept-Encoding"]&&!P.headers["accept-encoding"]&&(P.headers["Accept-Encoding"]="gzip"));function be(Fe,ft,et){var wt=Fe.headers["content-encoding"];return et(null,ft,wt)}var Ce=x.writeStream;a("Request#%d %s %s with headers %j, options.path: %s",E,F,w,P.headers,P.path),x.requestUrls.push(w);function Te(Fe){if(ge&&(ge.waiting=Date.now()-I),a("Request#%d %s `req response` event emit: status %d, headers: %j",E,w,Fe.statusCode,Fe.headers),x.streaming){var ft=fe(Fe);if(ft.redirect){Fe.resume();return}return ft.error?(Fe.resume(),ee(ft.error,null,Fe)):ee(null,null,Fe)}if(Fe.on("close",function(){a("Request#%d %s: `res close` event emit, total size %d",E,w,Ve)}),Fe.on("error",function(){a("Request#%d %s: `res error` event emit, total size %d",E,w,Ve)}),Fe.on("aborted",function(){Ue=!0,a("Request#%d %s: `res aborted` event emit, total size %d",E,w,Ve)}),Ce){var ft=fe(Fe);if(ft.redirect){Fe.resume();return}return ft.error?(Fe.resume(),Ce.end(),ee(ft.error,null,Fe)):(x.consumeWriteStream===!1?Fe.on("end",ee.bind(null,null,null,Fe)):isNode010||isNode012?first([[Ce,"close"],[Fe,"aborted"]],function(Ht,Dt,Tt){a("Request#%d %s: writeStream or res %s event emitted",E,w,Tt),ee(Re||null,null,Fe)}):Ce.on("close",function(){a("Request#%d %s: writeStream close event emitted",E,w),ee(Re||null,null,Fe)}),Fe.pipe(Ce))}var et=[];Fe.on("data",function(wt){a("Request#%d %s: `res data` event emit, size %d",E,w,wt.length),Ve+=wt.length,et.push(wt)}),Fe.on("end",function(){var wt=p.concat(et,Ve);if(a("Request#%d %s: `res end` event emit, total size %d, _dumped: %s",E,w,Ve,Fe._dumped),Re)return ee(Re,wt,Fe);var Ht=fe(Fe);if(Ht.error)return ee(Ht.error,wt,Fe);if(Ht.redirect)return;be(Fe,wt,function(Dt,Tt,Bt){if(Dt)return ee(Dt,wt,Fe);if(!Bt&&v.indexOf(x.dataType)>=0){try{Tt=decodeBodyByCharset(Tt,Fe)}catch(de){return a("decodeBodyByCharset error: %s",de),ee(null,Tt,Fe)}if(x.dataType==="json")if(Ve===0)Tt=null;else{var Ke=parseJSON(Tt,X);Ke.error?Dt=Ke.error:Tt=Ke.data}}Ue&&a("Request#%d %s: Remote socket was terminated before `response.end()` was called",E,w),ee(Dt,Tt,Fe)})})}var he,ye;Array.isArray(x.timeout)?(he=e(x.timeout[0]),ye=e(x.timeout[1])):he=ye=e(x.timeout),a("ConnectTimeout: %d, ResponseTimeout: %d",he,ye);function Ie(){a("Connect timer ticking, timeout: %d",he),re=setTimeout(function(){re=null,ct===-1&&(ct=-2);var Fe="Connect timeout for "+he+"ms",ft="ConnectionTimeoutError";pt.socket||(ft="SocketAssignTimeoutError",Fe+=", working sockets is full"),Re=new Error(Fe),Re.name=ft,Re.requestId=E,a("ConnectTimeout: Request#%d %s %s: %s, connected: %s",E,w,Re.name,Fe,Pe),st()},he)}function tt(){a("Response timer ticking, timeout: %d",ye),Se=setTimeout(function(){Se=null;var Fe="Response timeout for "+ye+"ms",ft="ResponseTimeoutError";Re=new Error(Fe),Re.name=ft,Re.requestId=E,a("ResponseTimeout: Request#%d %s %s: %s, connected: %s",E,w,Re.name,Fe,Pe),st()},ye)}var pt;P.mode=x.mode?x.mode:"";try{pt=B.request(P,Te)}catch(Fe){return ee(Fe)}typeof window=="undefined"?Ie():pt.on("requestTimeout",function(){ct===-1&&(ct=-2);var Fe="Connect timeout for "+he+"ms",ft="ConnectionTimeoutError";Re=new Error(Fe),Re.name=ft,Re.requestId=E,st()});function st(){a("Request#%d %s abort, connected: %s",E,w,Pe),pt.socket||(Re.noSocket=!0,ee(Re)),pt.abort()}return ge&&pt.on("finish",function(){ge.requestSent=Date.now()-I}),pt.once("socket",function(Fe){ge&&(ge.queuing=Date.now()-I),isNode010&&Fe.socket&&(Fe=Fe.socket);var ft=Fe.readyState;if(ft==="opening"){Fe.once("lookup",function(et,wt,Ht){a("Request#%d %s lookup: %s, %s, %s",E,w,et,wt,Ht),ge&&(ge.dnslookup=Date.now()-I),wt&&(ue=wt)}),Fe.once("connect",function(){ge&&(ge.connected=Date.now()-I),Z(),tt(),a("Request#%d %s new socket connected",E,w),Pe=!0,ue||(ue=Fe.remoteAddress),rt=Fe.remotePort});return}a("Request#%d %s reuse socket connected, readyState: %s",E,w,ft),Pe=!0,Je=!0,ue||(ue=Fe.remoteAddress),rt=Fe.remotePort,Z(),tt()}),pt.on("error",function(Fe){(Fe.name==="Error"||Fe.name==="TypeError")&&(Fe.name=Pe?"ResponseError":"RequestError"),Fe.message+=' (req "error")',a("Request#%d %s `req error` event emit, %s: %s",E,w,Fe.name,Fe.message),ee(Re||Fe)}),Ce&&Ce.once("error",function(Fe){Fe.message+=' (writeStream "error")',Re=Fe,a("Request#%d %s `writeStream error` event emit, %s: %s",E,w,Fe.name,Fe.message),st()}),x.stream?(x.stream.pipe(pt),x.stream.once("error",function(Fe){Fe.message+=' (stream "error")',Re=Fe,a("Request#%d %s `readStream error` event emit, %s: %s",E,w,Fe.name,Fe.message),st()})):pt.end(Q),pt.requestId=E,pt}}).call(this,k("_process"),k("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(k,D,i){var y=i("hX1E"),p=y.normalizeRadian,S=Math.PI*2;function A(m,f,d,l,o,n,t,a,e){if(t===0)return!1;var u=t;a-=m,e-=f;var r=Math.sqrt(a*a+e*e);if(r-u>d||r+u<d)return!1;if(Math.abs(l-o)%S<1e-4)return!0;if(n){var s=l;l=p(o),o=p(s)}else l=p(l),o=p(o);l>o&&(o+=S);var c=Math.atan2(e,a);return c<0&&(c+=S),c>=l&&c<=o||c+S>=l&&c+S<=o}D.containStroke=A},n4Lv:function(k,D,i){var y=i("7hqr"),p=y.isDimensionStacked,S=i("bYtY"),A=S.map;function m(l,o,n){var t=l.getBaseAxis(),a=l.getOtherAxis(t),e=f(a,n),u=t.dim,r=a.dim,s=o.mapDimension(r),c=o.mapDimension(u),h=r==="x"||r==="radius"?1:0,g=A(l.dimensions,function(w){return o.mapDimension(w)}),v,b=o.getCalculationInfo("stackResultDimension");return(v|=p(o,g[0]))&&(g[0]=b),(v|=p(o,g[1]))&&(g[1]=b),{dataDimsForPoint:g,valueStart:e,valueAxisDim:r,baseAxisDim:u,stacked:!!v,valueDim:s,baseDim:c,baseDataOffset:h,stackedOverDimension:o.getCalculationInfo("stackedOverDimension")}}function f(l,o){var n=0,t=l.scale.getExtent();return o==="start"?n=t[0]:o==="end"?n=t[1]:t[0]>0?n=t[0]:t[1]<0&&(n=t[1]),n}function d(l,o,n,t){var a=NaN;l.stacked&&(a=n.get(n.getCalculationInfo("stackedOverDimension"),t)),isNaN(a)&&(a=l.valueStart);var e=l.baseDataOffset,u=[];return u[e]=n.get(l.baseDim,t),u[1-e]=a,o.dataToPoint(u)}D.prepareDataCoordInfo=m,D.getStackedOnPoint=d},n6Mw:function(k,D,i){var y=i("SrGk"),p=i("bYtY"),S=i("Fofx");function A(f,d){y.call(this,f,d,"clipPath","__clippath_in_use__")}p.inherits(A,y),A.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)},A.prototype.updateDom=function(f,d,l){if(d&&d.length>0){var o=this.getDefs(!0),n=d[0],t,a,e=l?"_textDom":"_dom";n[e]?(a=n[e].getAttribute("id"),t=n[e],o.contains(t)||o.appendChild(t)):(a="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,t=this.createElement("clipPath"),t.setAttribute("id",a),o.appendChild(t),n[e]=t);var u=this.getSvgProxy(n);if(n.transform&&n.parent.invTransform&&!l){var r=Array.prototype.slice.call(n.transform);S.mul(n.transform,n.parent.invTransform,n.transform),u.brush(n),n.transform=r}else u.brush(n);var s=this.getSvgElement(n);t.innerHTML="",t.appendChild(s.cloneNode()),f.setAttribute("clip-path","url(#"+a+")"),d.length>1&&this.updateDom(t,d.slice(1),l)}else f&&f.setAttribute("clip-path","none")},A.prototype.markUsed=function(f){var d=this;f.__clipPaths&&p.each(f.__clipPaths,function(l){l._dom&&y.prototype.markUsed.call(d,l._dom),l._textDom&&y.prototype.markUsed.call(d,l._textDom)})};var m=A;k.exports=m},nCxF:function(k,D,i){var y=i("QBsz"),p=y.min,S=y.max,A=y.scale,m=y.distance,f=y.add,d=y.clone,l=y.sub;function o(n,t,a,e){var u=[],r=[],s=[],c=[],h,g,v,b;if(e){v=[Infinity,Infinity],b=[-Infinity,-Infinity];for(var w=0,x=n.length;w<x;w++)p(v,v,n[w]),S(b,b,n[w]);p(v,v,e[0]),S(b,b,e[1])}for(var w=0,x=n.length;w<x;w++){var T=n[w];if(a)h=n[w?w-1:x-1],g=n[(w+1)%x];else if(w===0||w===x-1){u.push(d(n[w]));continue}else h=n[w-1],g=n[w+1];l(r,g,h),A(r,r,t);var O=m(T,h),E=m(T,g),C=O+E;C!==0&&(O/=C,E/=C),A(s,r,-O),A(c,r,E);var I=f([],T,s),_=f([],T,c);e&&(S(I,I,v),p(I,I,b),S(_,_,v),p(_,_,b)),u.push(I),u.push(_)}return a&&u.push(u.shift()),u}k.exports=o},nKiI:function(k,D,i){var y=i("bYtY"),p=i("mFDi"),S=i("OELB"),A=S.parsePercent,m=S.MAX_SAFE_INTEGER,f=i("+TT/"),d=i("VaxA"),l=Math.max,o=Math.min,n=y.retrieve,t=y.each,a=["itemStyle","borderWidth"],e=["itemStyle","gapWidth"],u=["upperLabel","show"],r=["upperLabel","height"],s={seriesType:"treemap",reset:function(I,_,F,R){var B=F.getWidth(),M=F.getHeight(),X=I.option,P=f.getLayoutRect(I.getBoxLayoutParams(),{width:F.getWidth(),height:F.getHeight()}),z=X.size||[],W=A(n(P.width,z[0]),B),U=A(n(P.height,z[1]),M),V=R&&R.type,Q=["treemapZoomToNode","treemapRootToNode"],G=d.retrieveTargetInfo(R,Q,I),te=V==="treemapRender"||V==="treemapMove"?R.rootRect:null,$=I.getViewRoot(),le=d.getPathToRoot($);if(V!=="treemapMove"){var re=V==="treemapZoomToNode"?T(I,G,$,W,U):te?[te.width,te.height]:[W,U],Se=X.sort;Se&&Se!=="asc"&&Se!=="desc"&&(Se="desc");var Re={squareRatio:X.squareRatio,sort:Se,leafDepth:X.leafDepth};$.hostTree.clearLayouts();var Pe={x:0,y:0,width:re[0],height:re[1],area:re[0]*re[1]};$.setLayout(Pe),c($,Re,!1,0);var Pe=$.getLayout();t(le,function(Ve,ct){var Ue=(le[ct+1]||$).getValue();Ve.setLayout(y.extend({dataExtent:[Ue,Ue],borderWidth:0,upperHeight:0},Pe))})}var Je=I.getData().tree.root;Je.setLayout(O(P,te,G),!0),I.setLayoutInfo(P),E(Je,new p(-P.x,-P.y,B,M),le,$,0)}};function c(I,_,F,R){var B,M;if(I.isRemoved())return;var X=I.getLayout();B=X.width,M=X.height;var P=I.getModel(),z=P.get(a),W=P.get(e)/2,U=C(P),V=Math.max(z,U),Q=z-W,G=V-W,P=I.getModel();I.setLayout({borderWidth:z,upperHeight:V,upperLabelHeight:U},!0),B=l(B-2*Q,0),M=l(M-Q-G,0);var te=B*M,$=h(I,P,te,_,F,R);if(!$.length)return;var le={x:Q,y:G,width:B,height:M},re=o(B,M),Se=Infinity,Re=[];Re.area=0;for(var Pe=0,Je=$.length;Pe<Je;){var Ve=$[Pe];Re.push(Ve),Re.area+=Ve.getLayout().area;var ct=w(Re,re,_.squareRatio);ct<=Se?(Pe++,Se=ct):(Re.area-=Re.pop().getLayout().area,x(Re,re,le,W,!1),re=o(le.width,le.height),Re.length=Re.area=0,Se=Infinity)}if(Re.length&&x(Re,re,le,W,!0),!F){var Ue=P.get("childrenVisibleMin");Ue!=null&&te<Ue&&(F=!0)}for(var Pe=0,Je=$.length;Pe<Je;Pe++)c($[Pe],_,F,R+1)}function h(I,_,F,R,B,M){var X=I.children||[],P=R.sort;P!=="asc"&&P!=="desc"&&(P=null);var z=R.leafDepth!=null&&R.leafDepth<=M;if(B&&!z)return I.viewChildren=[];X=y.filter(X,function(G){return!G.isRemoved()}),v(X,P);var W=b(_,X,P);if(W.sum===0)return I.viewChildren=[];if(W.sum=g(_,F,W.sum,P,X),W.sum===0)return I.viewChildren=[];for(var U=0,V=X.length;U<V;U++){var Q=X[U].getValue()/W.sum*F;X[U].setLayout({area:Q})}return z&&(X.length&&I.setLayout({isLeafRoot:!0},!0),X.length=0),I.viewChildren=X,I.setLayout({dataExtent:W.dataExtent},!0),X}function g(I,_,F,R,B){if(!R)return F;for(var M=I.get("visibleMin"),X=B.length,P=X,z=X-1;z>=0;z--){var W=B[R==="asc"?X-z-1:z].getValue();W/F*_<M&&(P=z,F-=W)}return R==="asc"?B.splice(0,X-P):B.splice(P,X-P),F}function v(I,_){return _&&I.sort(function(F,R){var B=_==="asc"?F.getValue()-R.getValue():R.getValue()-F.getValue();return B===0?_==="asc"?F.dataIndex-R.dataIndex:R.dataIndex-F.dataIndex:B}),I}function b(I,_,F){for(var R=0,B=0,M=_.length;B<M;B++)R+=_[B].getValue();var X=I.get("visualDimension"),P;if(!_||!_.length)P=[NaN,NaN];else if(X==="value"&&F)P=[_[_.length-1].getValue(),_[0].getValue()],F==="asc"&&P.reverse();else{var P=[Infinity,-Infinity];t(_,function(W){var U=W.getValue(X);U<P[0]&&(P[0]=U),U>P[1]&&(P[1]=U)})}return{sum:R,dataExtent:P}}function w(I,_,F){for(var R=0,B=Infinity,M=0,X,P=I.length;M<P;M++)X=I[M].getLayout().area,X&&(X<B&&(B=X),X>R&&(R=X));var z=I.area*I.area,W=_*_*F;return z?l(W*R/z,z/(W*B)):Infinity}function x(I,_,F,R,B){var M=_===F.width?0:1,X=1-M,P=["x","y"],z=["width","height"],W=F[P[M]],U=_?I.area/_:0;(B||U>F[z[X]])&&(U=F[z[X]]);for(var V=0,Q=I.length;V<Q;V++){var G=I[V],te={},$=U?G.getLayout().area/U:0,le=te[z[X]]=l(U-2*R,0),re=F[P[M]]+F[z[M]]-W,Se=V===Q-1||re<$?re:$,Re=te[z[M]]=l(Se-2*R,0);te[P[X]]=F[P[X]]+o(R,le/2),te[P[M]]=W+o(R,Re/2),W+=Se,G.setLayout(te,!0)}F[P[X]]+=U,F[z[X]]-=U}function T(I,_,F,R,B){var M=(_||{}).node,X=[R,B];if(!M||M===F)return X;for(var P,z=R*B,W=z*I.option.zoomToNodeRatio;P=M.parentNode;){for(var U=0,V=P.children,Q=0,G=V.length;Q<G;Q++)U+=V[Q].getValue();var te=M.getValue();if(te===0)return X;W*=U/te;var $=P.getModel(),le=$.get(a),re=Math.max(le,C($,le));W+=4*le*le+(3*le+re)*Math.pow(W,.5),W>m&&(W=m),M=P}W<z&&(W=z);var Se=Math.pow(W/z,.5);return[R*Se,B*Se]}function O(I,_,F){if(_)return{x:_.x,y:_.y};var R={x:0,y:0};if(!F)return R;var B=F.node,M=B.getLayout();if(!M)return R;for(var X=[M.width/2,M.height/2],P=B;P;){var z=P.getLayout();X[0]+=z.x,X[1]+=z.y,P=P.parentNode}return{x:I.width/2-X[0],y:I.height/2-X[1]}}function E(I,_,F,R,B){var M=I.getLayout(),X=F[B],P=X&&X===I;if(X&&!P||B===F.length&&I!==R)return;I.setLayout({isInView:!0,invisible:!P&&!_.intersect(M),isAboveViewRoot:P},!0);var z=new p(_.x-M.x,_.y-M.y,_.width,_.height);t(I.viewChildren||[],function(W){E(W,z,F,R,B+1)})}function C(I){return I.get(u)?I.get(r):0}k.exports=s},nPnh:function(k,D){var i=Math.round;function y(A,m,f){if(!m)return;var d=m.x1,l=m.x2,o=m.y1,n=m.y2;A.x1=d,A.x2=l,A.y1=o,A.y2=n;var t=f&&f.lineWidth;if(!t)return;i(d*2)===i(l*2)&&(A.x1=A.x2=S(d,t,!0)),i(o*2)===i(n*2)&&(A.y1=A.y2=S(o,t,!0))}function p(A,m,f){if(!m)return;var d=m.x,l=m.y,o=m.width,n=m.height;A.x=d,A.y=l,A.width=o,A.height=n;var t=f&&f.lineWidth;if(!t)return;A.x=S(d,t,!0),A.y=S(l,t,!0),A.width=Math.max(S(d+o,t,!1)-A.x,o===0?0:1),A.height=Math.max(S(l+n,t,!1)-A.y,n===0?0:1)}function S(A,m,f){if(!m)return A;var d=i(A*2);return(d+i(m))%2===0?d/2:(d+(f?1:-1))/2}D.subPixelOptimizeLine=y,D.subPixelOptimizeRect=p,D.subPixelOptimize=S},nRaC:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("0fbx"),A=i.n(S),m=i("OaEy"),f=i("R9oj")},nVVt:function(k,D){k.exports={MODE_NUMBER:1<<0,MODE_ALPHA_NUM:1<<1,MODE_8BIT_BYTE:1<<2,MODE_KANJI:1<<3}},nVfU:function(k,D,i){var y=i("bYtY"),p=i("OELB"),S=p.parsePercent,A=i("7hqr"),m=A.isDimensionStacked,f=i("zM3Q"),d="__ec_stack_",l=.5,o=typeof Float32Array!="undefined"?Float32Array:Array;function n(x){return x.get("stack")||d+x.seriesIndex}function t(x){return x.dim+x.index}function a(x){var T=[],O=x.axis,E="axis0";if(O.type!=="category")return;for(var C=O.getBandWidth(),I=0;I<x.count||0;I++)T.push(y.defaults({bandWidth:C,axisKey:E,stackId:d+I},x));for(var _=s(T),F=[],I=0;I<x.count;I++){var R=_[E][d+I];R.offsetCenter=R.offset+R.width/2,F.push(R)}return F}function e(x,T){var O=[];return T.eachSeriesByType(x,function(E){v(E)&&!b(E)&&O.push(E)}),O}function u(x){var T={};y.each(x,function(R){var B=R.coordinateSystem,M=B.getBaseAxis();if(M.type!=="time"&&M.type!=="value")return;for(var X=R.getData(),P=M.dim+"_"+M.index,z=X.mapDimension(M.dim),W=0,U=X.count();W<U;++W){var V=X.get(z,W);T[P]?T[P].push(V):T[P]=[V]}});var O=[];for(var E in T)if(T.hasOwnProperty(E)){var C=T[E];if(C){C.sort(function(R,B){return R-B});for(var I=null,_=1;_<C.length;++_){var F=C[_]-C[_-1];F>0&&(I=I===null?F:Math.min(I,F))}O[E]=I}}return O}function r(x){var T=u(x),O=[];return y.each(x,function(E){var C=E.coordinateSystem,I=C.getBaseAxis(),_=I.getExtent(),F;if(I.type==="category")F=I.getBandWidth();else if(I.type==="value"||I.type==="time"){var R=I.dim+"_"+I.index,B=T[R],M=Math.abs(_[1]-_[0]),X=I.scale.getExtent(),P=Math.abs(X[1]-X[0]);F=B?M/P*B:M}else{var z=E.getData();F=Math.abs(_[1]-_[0])/z.count()}var W=S(E.get("barWidth"),F),U=S(E.get("barMaxWidth"),F),V=S(E.get("barMinWidth")||1,F),Q=E.get("barGap"),G=E.get("barCategoryGap");O.push({bandWidth:F,barWidth:W,barMaxWidth:U,barMinWidth:V,barGap:Q,barCategoryGap:G,axisKey:t(I),stackId:n(E)})}),s(O)}function s(x){var T={};y.each(x,function(E,C){var I=E.axisKey,_=E.bandWidth,F=T[I]||{bandWidth:_,remainedWidth:_,autoWidthCount:0,categoryGap:"20%",gap:"30%",stacks:{}},R=F.stacks;T[I]=F;var B=E.stackId;R[B]||F.autoWidthCount++,R[B]=R[B]||{width:0,maxWidth:0};var M=E.barWidth;M&&!R[B].width&&(R[B].width=M,M=Math.min(F.remainedWidth,M),F.remainedWidth-=M);var X=E.barMaxWidth;X&&(R[B].maxWidth=X);var P=E.barMinWidth;P&&(R[B].minWidth=P);var z=E.barGap;z!=null&&(F.gap=z);var W=E.barCategoryGap;W!=null&&(F.categoryGap=W)});var O={};return y.each(T,function(E,C){O[C]={};var I=E.stacks,_=E.bandWidth,F=S(E.categoryGap,_),R=S(E.gap,1),B=E.remainedWidth,M=E.autoWidthCount,X=(B-F)/(M+(M-1)*R);X=Math.max(X,0),y.each(I,function(U){var V=U.maxWidth,Q=U.minWidth;if(U.width){var G=U.width;V&&(G=Math.min(G,V)),Q&&(G=Math.max(G,Q)),U.width=G,B-=G+R*G,M--}else{var G=X;V&&V<G&&(G=Math.min(V,B)),Q&&Q>G&&(G=Q),G!==X&&(U.width=G,B-=G+R*G,M--)}}),X=(B-F)/(M+(M-1)*R),X=Math.max(X,0);var P=0,z;y.each(I,function(U,V){U.width||(U.width=X),z=U,P+=U.width*(1+R)}),z&&(P-=z.width*R);var W=-P/2;y.each(I,function(U,V){O[C][V]=O[C][V]||{bandWidth:_,offset:W,width:U.width},W+=U.width*(1+R)})}),O}function c(x,T,O){if(x&&T){var E=x[t(T)];return E!=null&&O!=null&&(E=E[n(O)]),E}}function h(x,T){var O=e(x,T),E=r(O),C={},I={};y.each(O,function(_){var F=_.getData(),R=_.coordinateSystem,B=R.getBaseAxis(),M=n(_),X=E[t(B)][M],P=X.offset,z=X.width,W=R.getOtherAxis(B),U=_.get("barMinHeight")||0;C[M]=C[M]||[],I[M]=I[M]||[],F.setLayout({bandWidth:X.bandWidth,offset:P,size:z});for(var V=F.mapDimension(W.dim),Q=F.mapDimension(B.dim),G=m(F,V),te=W.isHorizontal(),$=w(B,W,G),le=0,re=F.count();le<re;le++){var Se=F.get(V,le),Re=F.get(Q,le),Pe=Se>=0?"p":"n",Je=$;G&&(C[M][Re]||(C[M][Re]={p:$,n:$}),Je=C[M][Re][Pe]);var Ve,ct,Ue,ue;if(te){var rt=R.dataToPoint([Se,Re]);Ve=Je,ct=rt[1]+P,Ue=rt[0]-$,ue=z,Math.abs(Ue)<U&&(Ue=(Ue<0?-1:1)*U),isNaN(Ue)||G&&(C[M][Re][Pe]+=Ue)}else{var rt=R.dataToPoint([Re,Se]);Ve=rt[0]+P,ct=Je,Ue=z,ue=rt[1]-$,Math.abs(ue)<U&&(ue=(ue<=0?-1:1)*U),isNaN(ue)||G&&(C[M][Re][Pe]+=ue)}F.setItemLayout(le,{x:Ve,y:ct,width:Ue,height:ue})}},this)}var g={seriesType:"bar",plan:f(),reset:function(x){if(!v(x)||!b(x))return;var T=x.getData(),O=x.coordinateSystem,E=O.grid.getRect(),C=O.getBaseAxis(),I=O.getOtherAxis(C),_=T.mapDimension(I.dim),F=T.mapDimension(C.dim),R=I.isHorizontal(),B=R?0:1,M=c(r([x]),C,x).width;return M>l||(M=l),{progress:X};function X(P,z){for(var W=P.count,U=new o(W*2),V=new o(W*2),Q=new o(W),G,te=[],$=[],le=0,re=0;(G=P.next())!=null;)$[B]=z.get(_,G),$[1-B]=z.get(F,G),te=O.dataToPoint($,null,te),V[le]=R?E.x+E.width:te[0],U[le++]=te[0],V[le]=R?te[1]:E.y+E.height,U[le++]=te[1],Q[re++]=G;z.setLayout({largePoints:U,largeDataIndices:Q,largeBackgroundPoints:V,barWidth:M,valueAxisStart:w(C,I,!1),backgroundStart:R?E.x:E.y,valueAxisHorizontal:R})}}};function v(x){return x.coordinateSystem&&x.coordinateSystem.type==="cartesian2d"}function b(x){return x.pipelineContext&&x.pipelineContext.large}function w(x,T,O){return T.toGlobalCoord(T.dataToCoord(T.type==="log"?1:0))}D.getLayoutOnAxis=a,D.prepareLayoutBarSeries=e,D.makeColumnLayout=r,D.retrieveColumnLayout=c,D.layout=h,D.largeLayout=g},ngQI:function(k,D,i){"use strict";i.d(D,"a",function(){return hu}),i.d(D,"b",function(){return bs}),i.d(D,"c",function(){return on});var y=i("q1tI"),p=i.n(y),S=i("dI71"),A=i("wx14"),m=i("ANjH"),f=i("/MKj");function d(je,ae){if(je.length!==ae.length)return!1;for(var Oe=0;Oe<je.length;Oe++)if(je[Oe]!==ae[Oe])return!1;return!0}function l(je,ae){var Oe=Object(y.useState)(function(){return{inputs:ae,result:je()}})[0],Ze=Object(y.useRef)(!0),yt=Object(y.useRef)(Oe),Xt=Ze.current||Boolean(ae&&yt.current.inputs&&d(ae,yt.current.inputs)),tr=Xt?yt.current:{inputs:ae,result:je()};return Object(y.useEffect)(function(){Ze.current=!1,yt.current=tr},[tr]),tr.result}function o(je,ae){return l(function(){return je},ae)}var n=l,t=o,a=i("9R94"),e=function(ae){var Oe=ae.top,Ze=ae.right,yt=ae.bottom,Xt=ae.left,tr=Ze-Xt,or=yt-Oe,Wr={top:Oe,right:Ze,bottom:yt,left:Xt,width:tr,height:or,x:Xt,y:Oe,center:{x:(Ze+Xt)/2,y:(yt+Oe)/2}};return Wr},u=function(ae,Oe){return{top:ae.top-Oe.top,left:ae.left-Oe.left,bottom:ae.bottom+Oe.bottom,right:ae.right+Oe.right}},r=function(ae,Oe){return{top:ae.top+Oe.top,left:ae.left+Oe.left,bottom:ae.bottom-Oe.bottom,right:ae.right-Oe.right}},s=function(ae,Oe){return{top:ae.top+Oe.y,left:ae.left+Oe.x,bottom:ae.bottom+Oe.y,right:ae.right+Oe.x}},c={top:0,right:0,bottom:0,left:0},h=function(ae){var Oe=ae.borderBox,Ze=ae.margin,yt=Ze===void 0?c:Ze,Xt=ae.border,tr=Xt===void 0?c:Xt,or=ae.padding,Wr=or===void 0?c:or,un=e(u(Oe,yt)),zr=e(r(Oe,tr)),jr=e(r(zr,Wr));return{marginBox:un,borderBox:e(Oe),paddingBox:zr,contentBox:jr,margin:yt,border:tr,padding:Wr}},g=function(ae){var Oe=ae.slice(0,-2),Ze=ae.slice(-2);if(Ze!=="px")return 0;var yt=Number(Oe);return isNaN(yt)&&Object(a.a)(!1),yt},v=function(){return{x:window.pageXOffset,y:window.pageYOffset}},b=function(ae,Oe){var Ze=ae.borderBox,yt=ae.border,Xt=ae.margin,tr=ae.padding,or=s(Ze,Oe);return h({borderBox:or,border:yt,margin:Xt,padding:tr})},w=function(ae,Oe){return Oe===void 0&&(Oe=v()),b(ae,Oe)},x=function(ae,Oe){var Ze={top:g(Oe.marginTop),right:g(Oe.marginRight),bottom:g(Oe.marginBottom),left:g(Oe.marginLeft)},yt={top:g(Oe.paddingTop),right:g(Oe.paddingRight),bottom:g(Oe.paddingBottom),left:g(Oe.paddingLeft)},Xt={top:g(Oe.borderTopWidth),right:g(Oe.borderRightWidth),bottom:g(Oe.borderBottomWidth),left:g(Oe.borderLeftWidth)};return h({borderBox:ae,margin:Ze,padding:yt,border:Xt})},T=function(ae){var Oe=ae.getBoundingClientRect(),Ze=window.getComputedStyle(ae);return x(Oe,Ze)},O=Number.isNaN||function(ae){return typeof ae=="number"&&ae!==ae};function E(je,ae){return je===ae?!0:!!(O(je)&&O(ae))}function C(je,ae){if(je.length!==ae.length)return!1;for(var Oe=0;Oe<je.length;Oe++)if(!E(je[Oe],ae[Oe]))return!1;return!0}function I(je,ae){ae===void 0&&(ae=C);var Oe,Ze=[],yt,Xt=!1;function tr(){for(var or=[],Wr=0;Wr<arguments.length;Wr++)or[Wr]=arguments[Wr];return Xt&&Oe===this&&ae(or,Ze)||(yt=je.apply(this,or),Xt=!0,Oe=this,Ze=or),yt}return tr}var _=I,F=function(ae){var Oe=[],Ze=null,yt=function(){for(var tr=arguments.length,or=new Array(tr),Wr=0;Wr<tr;Wr++)or[Wr]=arguments[Wr];if(Oe=or,Ze)return;Ze=requestAnimationFrame(function(){Ze=null,ae.apply(void 0,Oe)})};return yt.cancel=function(){if(!Ze)return;cancelAnimationFrame(Ze),Ze=null},yt},R=F,B=i("i8i4"),M=i.n(B),X=!0,P=/[ \t]{2,}/g,z=/^[ \t]*/gm,W=function(ae){return ae.replace(P," ").replace(z,"").trim()},U=function(ae){return W(`
%creact-beautiful-dnd
%c`+W(ae)+`
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
`)},V=function(ae){return[U(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(je,ae){var Oe;if(X)return;if(typeof window!="undefined"&&window[Q])return;(Oe=console)[je].apply(Oe,V(ae))}var te=G.bind(null,"warn"),$=G.bind(null,"error");function le(){}function re(je,ae){return Object(A.a)({},je,{},ae)}function Se(je,ae,Oe){var Ze=ae.map(function(yt){var Xt=re(Oe,yt.options);return je.addEventListener(yt.eventName,yt.fn,Xt),function(){je.removeEventListener(yt.eventName,yt.fn,Xt)}});return function(){Ze.forEach(function(Xt){Xt()})}}var Re=!0,Pe="Invariant failed";function Je(je){this.message=je}Je.prototype.toString=function(){return this.message};function Ve(je,ae){if(je)return;throw Re?new Je(Pe):new Je(Pe+": "+(ae||""))}var ct=function(je){Object(S.a)(ae,je);function ae(){for(var Ze,yt=arguments.length,Xt=new Array(yt),tr=0;tr<yt;tr++)Xt[tr]=arguments[tr];return Ze=je.call.apply(je,[this].concat(Xt))||this,Ze.callbacks=null,Ze.unbind=le,Ze.onWindowError=function(or){var Wr=Ze.getCallbacks();Wr.isDragging()&&Wr.tryAbort();var un=or.error;un instanceof Je&&or.preventDefault()},Ze.getCallbacks=function(){if(!Ze.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return Ze.callbacks},Ze.setCallbacks=function(or){Ze.callbacks=or},Ze}var Oe=ae.prototype;return Oe.componentDidMount=function(){this.unbind=Se(window,[{eventName:"error",fn:this.onWindowError}])},Oe.componentWillUnmount=function(){this.unbind()},Oe.componentDidCatch=function(yt){if(yt instanceof Je){this.setState({});return}throw yt},Oe.render=function(){return this.props.children(this.setCallbacks)},ae}(p.a.Component),Ue=`
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},rt=function(ae){return`
You have lifted an item in position `+ue(ae.source.index)+`
`},ge=function(ae,Oe){var Ze=ae.droppableId===Oe.droppableId,yt=ue(ae.index),Xt=ue(Oe.index);return Ze?`
You have moved the item from position `+yt+`
to position `+Xt+`
`:`
You have moved the item from position `+yt+`
in list `+ae.droppableId+`
to list `+Oe.droppableId+`
in position `+Xt+`
`},Z=function(ae,Oe,Ze){var yt=Oe.droppableId===Ze.droppableId;return yt?`
The item `+ae+`
has been combined with `+Ze.draggableId:`
The item `+ae+`
in list `+Oe.droppableId+`
has been combined with `+Ze.draggableId+`
in list `+Ze.droppableId+`
`},Y=function(ae){var Oe=ae.destination;if(Oe)return ge(ae.source,Oe);var Ze=ae.combine;return Ze?Z(ae.draggableId,ae.source,Ze):"You are over an area that cannot be dropped on"},ee=function(ae){return`
The item has returned to its starting position
of `+ue(ae.index)+`
`},fe=function(ae){if(ae.reason==="CANCEL")return`
Movement cancelled.
`+ee(ae.source)+`
`;var Oe=ae.destination,Ze=ae.combine;return Oe?`
You have dropped the item.
`+ge(ae.source,Oe)+`
`:Ze?`
You have dropped the item.
`+Z(ae.draggableId,ae.source,Ze)+`
`:`
The item has been dropped while not over a drop area.
`+ee(ae.source)+`
`},be={dragHandleUsageInstructions:Ue,onDragStart:rt,onDragUpdate:Y,onDragEnd:fe},Ce={x:0,y:0},Te=function(ae,Oe){return{x:ae.x+Oe.x,y:ae.y+Oe.y}},he=function(ae,Oe){return{x:ae.x-Oe.x,y:ae.y-Oe.y}},ye=function(ae,Oe){return ae.x===Oe.x&&ae.y===Oe.y},Ie=function(ae){return{x:ae.x!==0?-ae.x:0,y:ae.y!==0?-ae.y:0}},tt=function(ae,Oe,Ze){var yt;return Ze===void 0&&(Ze=0),yt={},yt[ae]=Oe,yt[ae==="x"?"y":"x"]=Ze,yt},pt=function(ae,Oe){return Math.sqrt(Math.pow(Oe.x-ae.x,2)+Math.pow(Oe.y-ae.y,2))},st=function(ae,Oe){return Math.min.apply(Math,Oe.map(function(Ze){return pt(ae,Ze)}))},Fe=function(ae){return function(Oe){return{x:ae(Oe.x),y:ae(Oe.y)}}},ft=function(ae,Oe){var Ze=e({top:Math.max(Oe.top,ae.top),right:Math.min(Oe.right,ae.right),bottom:Math.min(Oe.bottom,ae.bottom),left:Math.max(Oe.left,ae.left)});return Ze.width<=0||Ze.height<=0?null:Ze},et=function(ae,Oe){return{top:ae.top+Oe.y,left:ae.left+Oe.x,bottom:ae.bottom+Oe.y,right:ae.right+Oe.x}},wt=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}]},Ht={top:0,right:0,bottom:0,left:0},Dt=function(ae,Oe){return Oe?et(ae,Oe.scroll.diff.displacement):ae},Tt=function(ae,Oe,Ze){if(Ze&&Ze.increasedBy){var yt;return Object(A.a)({},ae,(yt={},yt[Oe.end]=ae[Oe.end]+Ze.increasedBy[Oe.line],yt))}return ae},Bt=function(ae,Oe){return Oe&&Oe.shouldClipSubject?ft(Oe.pageMarginBox,ae):e(ae)},Ke=function(ae){var Oe=ae.page,Ze=ae.withPlaceholder,yt=ae.axis,Xt=ae.frame,tr=Dt(Oe.marginBox,Xt),or=Tt(tr,yt,Ze),Wr=Bt(or,Xt);return{page:Oe,withPlaceholder:Ze,active:Wr}},de=function(ae,Oe){ae.frame||Ve(!1);var Ze=ae.frame,yt=he(Oe,Ze.scroll.initial),Xt=Ie(yt),tr=Object(A.a)({},Ze,{scroll:{initial:Ze.scroll.initial,current:Oe,diff:{value:yt,displacement:Xt},max:Ze.scroll.max}}),or=Ke({page:ae.subject.page,withPlaceholder:ae.subject.withPlaceholder,axis:ae.axis,frame:tr}),Wr=Object(A.a)({},ae,{frame:tr,subject:or});return Wr};function oe(je){return Number.isInteger?Number.isInteger(je):typeof je=="number"&&isFinite(je)&&Math.floor(je)===je}function lt(je){return Object.values?Object.values(je):Object.keys(je).map(function(ae){return je[ae]})}function qe(je,ae){if(je.findIndex)return je.findIndex(ae);for(var Oe=0;Oe<je.length;Oe++)if(ae(je[Oe]))return Oe;return-1}function pe(je,ae){if(je.find)return je.find(ae);var Oe=qe(je,ae);return Oe!==-1?je[Oe]:void 0}function Kt(je){return Array.prototype.slice.call(je)}var hr=_(function(je){return je.reduce(function(ae,Oe){return ae[Oe.descriptor.id]=Oe,ae},{})}),gt=_(function(je){return je.reduce(function(ae,Oe){return ae[Oe.descriptor.id]=Oe,ae},{})}),nr=_(function(je){return lt(je)}),mr=_(function(je){return lt(je)}),cn=_(function(je,ae){var Oe=mr(ae).filter(function(Ze){return je===Ze.descriptor.droppableId}).sort(function(Ze,yt){return Ze.descriptor.index-yt.descriptor.index});return Oe});function Ar(je){return je.at&&je.at.type==="REORDER"?je.at.destination:null}function xr(je){return je.at&&je.at.type==="COMBINE"?je.at.combine:null}var qt=_(function(je,ae){return ae.filter(function(Oe){return Oe.descriptor.id!==je.descriptor.id})}),ar=function(ae){var Oe=ae.isMovingForward,Ze=ae.draggable,yt=ae.destination,Xt=ae.insideDestination,tr=ae.previousImpact;if(!yt.isCombineEnabled)return null;var or=Ar(tr);if(!or)return null;function Wr(ki){var la={type:"COMBINE",combine:{draggableId:ki,droppableId:yt.descriptor.id}};return Object(A.a)({},tr,{at:la})}var un=tr.displaced.all,zr=un.length?un[0]:null;if(Oe)return zr?Wr(zr):null;var jr=qt(Ze,Xt);if(!zr){if(!jr.length)return null;var sn=jr[jr.length-1];return Wr(sn.descriptor.id)}var vn=qe(jr,function(ki){return ki.descriptor.id===zr});vn!==-1||Ve(!1);var Un=vn-1;if(Un<0)return null;var Ii=jr[Un];return Wr(Ii.descriptor.id)},Et=function(ae,Oe){return ae.descriptor.droppableId===Oe.descriptor.id},en={point:Ce,value:0},Mn={invisible:{},visible:{},all:[]},Yn={displaced:Mn,displacedBy:en,at:null},ci=function(ae,Oe){return function(Ze){return ae<=Ze&&Ze<=Oe}},Vi=function(ae){var Oe=ci(ae.top,ae.bottom),Ze=ci(ae.left,ae.right);return function(yt){var Xt=Oe(yt.top)&&Oe(yt.bottom)&&Ze(yt.left)&&Ze(yt.right);if(Xt)return!0;var tr=Oe(yt.top)||Oe(yt.bottom),or=Ze(yt.left)||Ze(yt.right),Wr=tr&&or;if(Wr)return!0;var un=yt.top<ae.top&&yt.bottom>ae.bottom,zr=yt.left<ae.left&&yt.right>ae.right,jr=un&&zr;if(jr)return!0;var sn=un&&or||zr&&tr;return sn}},jn=function(ae){var Oe=ci(ae.top,ae.bottom),Ze=ci(ae.left,ae.right);return function(yt){var Xt=Oe(yt.top)&&Oe(yt.bottom)&&Ze(yt.left)&&Ze(yt.right);return Xt}},Qn={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},$t={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},Ot=function(ae){return function(Oe){var Ze=ci(Oe.top,Oe.bottom),yt=ci(Oe.left,Oe.right);return function(Xt){return ae===Qn?Ze(Xt.top)&&Ze(Xt.bottom):yt(Xt.left)&&yt(Xt.right)}}},ke=function(ae,Oe){var Ze=Oe.frame?Oe.frame.scroll.diff.displacement:Ce;return et(ae,Ze)},Me=function(ae,Oe,Ze){return Oe.subject.active?Ze(Oe.subject.active)(ae):!1},Be=function(ae,Oe,Ze){return Ze(Oe)(ae)},at=function(ae){var Oe=ae.target,Ze=ae.destination,yt=ae.viewport,Xt=ae.withDroppableDisplacement,tr=ae.isVisibleThroughFrameFn,or=Xt?ke(Oe,Ze):Oe;return Me(or,Ze,tr)&&Be(or,yt,tr)},At=function(ae){return at(Object(A.a)({},ae,{isVisibleThroughFrameFn:Vi}))},Ct=function(ae){return at(Object(A.a)({},ae,{isVisibleThroughFrameFn:jn}))},Yt=function(ae){return at(Object(A.a)({},ae,{isVisibleThroughFrameFn:Ot(ae.destination.axis)}))},Pr=function(ae,Oe,Ze){if(typeof Ze=="boolean")return Ze;if(!Oe)return!0;var yt=Oe.invisible,Xt=Oe.visible;if(yt[ae])return!1;var tr=Xt[ae];return tr?tr.shouldAnimate:!0};function qr(je,ae){var Oe=je.page.marginBox,Ze={top:ae.point.y,right:0,bottom:0,left:ae.point.x};return e(u(Oe,Ze))}function An(je){var ae=je.afterDragging,Oe=je.destination,Ze=je.displacedBy,yt=je.viewport,Xt=je.forceShouldAnimate,tr=je.last;return ae.reduce(function(Wr,un){var zr=qr(un,Ze),jr=un.descriptor.id;Wr.all.push(jr);var sn=At({target:zr,destination:Oe,viewport:yt,withDroppableDisplacement:!0});if(!sn)return Wr.invisible[un.descriptor.id]=!0,Wr;var vn=Pr(jr,tr,Xt),Un={draggableId:jr,shouldAnimate:vn};return Wr.visible[jr]=Un,Wr},{all:[],visible:{},invisible:{}})}function Gt(je,ae){if(!je.length)return 0;var Oe=je[je.length-1].descriptor.index;return ae.inHomeList?Oe:Oe+1}function vt(je){var ae=je.insideDestination,Oe=je.inHomeList,Ze=je.displacedBy,yt=je.destination,Xt=Gt(ae,{inHomeList:Oe});return{displaced:Mn,displacedBy:Ze,at:{type:"REORDER",destination:{droppableId:yt.descriptor.id,index:Xt}}}}function bt(je){var ae=je.draggable,Oe=je.insideDestination,Ze=je.destination,yt=je.viewport,Xt=je.displacedBy,tr=je.last,or=je.index,Wr=je.forceShouldAnimate,un=Et(ae,Ze);if(or==null)return vt({insideDestination:Oe,inHomeList:un,displacedBy:Xt,destination:Ze});var zr=pe(Oe,function(Ii){return Ii.descriptor.index===or});if(!zr)return vt({insideDestination:Oe,inHomeList:un,displacedBy:Xt,destination:Ze});var jr=qt(ae,Oe),sn=Oe.indexOf(zr),vn=jr.slice(sn),Un=An({afterDragging:vn,destination:Ze,displacedBy:Xt,last:tr,viewport:yt.frame,forceShouldAnimate:Wr});return{displaced:Un,displacedBy:Xt,at:{type:"REORDER",destination:{droppableId:Ze.descriptor.id,index:or}}}}function fr(je,ae){return Boolean(ae.effected[je])}var Jt=function(ae){var Oe=ae.isMovingForward,Ze=ae.destination,yt=ae.draggables,Xt=ae.combine,tr=ae.afterCritical;if(!Ze.isCombineEnabled)return null;var or=Xt.draggableId,Wr=yt[or],un=Wr.descriptor.index,zr=fr(or,tr);return zr?Oe?un:un-1:Oe?un+1:un},Ut=function(ae){var Oe=ae.isMovingForward,Ze=ae.isInHomeList,yt=ae.insideDestination,Xt=ae.location;if(!yt.length)return null;var tr=Xt.index,or=Oe?tr+1:tr-1,Wr=yt[0].descriptor.index,un=yt[yt.length-1].descriptor.index,zr=Ze?un:un+1;return or<Wr||or>zr?null:or},er=function(ae){var Oe=ae.isMovingForward,Ze=ae.isInHomeList,yt=ae.draggable,Xt=ae.draggables,tr=ae.destination,or=ae.insideDestination,Wr=ae.previousImpact,un=ae.viewport,zr=ae.afterCritical,jr=Wr.at;if(jr||Ve(!1),jr.type==="REORDER"){var sn=Ut({isMovingForward:Oe,isInHomeList:Ze,location:jr.destination,insideDestination:or});return sn==null?null:bt({draggable:yt,insideDestination:or,destination:tr,viewport:un,last:Wr.displaced,displacedBy:Wr.displacedBy,index:sn})}var vn=Jt({isMovingForward:Oe,destination:tr,displaced:Wr.displaced,draggables:Xt,combine:jr.combine,afterCritical:zr});return vn==null?null:bt({draggable:yt,insideDestination:or,destination:tr,viewport:un,last:Wr.displaced,displacedBy:Wr.displacedBy,index:vn})},Mt=function(ae){var Oe=ae.displaced,Ze=ae.afterCritical,yt=ae.combineWith,Xt=ae.displacedBy,tr=Boolean(Oe.visible[yt]||Oe.invisible[yt]);return fr(yt,Ze)?tr?Ce:Ie(Xt.point):tr?Xt.point:Ce},Zt=function(ae){var Oe=ae.afterCritical,Ze=ae.impact,yt=ae.draggables,Xt=xr(Ze);Xt||Ve(!1);var tr=Xt.draggableId,or=yt[tr].page.borderBox.center,Wr=Mt({displaced:Ze.displaced,afterCritical:Oe,combineWith:tr,displacedBy:Ze.displacedBy});return Te(or,Wr)},Hr=function(ae,Oe){return Oe.margin[ae.start]+Oe.borderBox[ae.size]/2},Ir=function(ae,Oe){return Oe.margin[ae.end]+Oe.borderBox[ae.size]/2},Lr=function(ae,Oe,Ze){return Oe[ae.crossAxisStart]+Ze.margin[ae.crossAxisStart]+Ze.borderBox[ae.crossAxisSize]/2},dn=function(ae){var Oe=ae.axis,Ze=ae.moveRelativeTo,yt=ae.isMoving;return tt(Oe.line,Ze.marginBox[Oe.end]+Hr(Oe,yt),Lr(Oe,Ze.marginBox,yt))},gn=function(ae){var Oe=ae.axis,Ze=ae.moveRelativeTo,yt=ae.isMoving;return tt(Oe.line,Ze.marginBox[Oe.start]-Ir(Oe,yt),Lr(Oe,Ze.marginBox,yt))},ri=function(ae){var Oe=ae.axis,Ze=ae.moveInto,yt=ae.isMoving;return tt(Oe.line,Ze.contentBox[Oe.start]+Hr(Oe,yt),Lr(Oe,Ze.contentBox,yt))},Zn=function(ae){var Oe=ae.impact,Ze=ae.draggable,yt=ae.draggables,Xt=ae.droppable,tr=ae.afterCritical,or=cn(Xt.descriptor.id,yt),Wr=Ze.page,un=Xt.axis;if(!or.length)return ri({axis:un,moveInto:Xt.page,isMoving:Wr});var zr=Oe.displaced,jr=Oe.displacedBy,sn=zr.all[0];if(sn){var vn=yt[sn];if(fr(sn,tr))return gn({axis:un,moveRelativeTo:vn.page,isMoving:Wr});var Un=b(vn.page,jr.point);return gn({axis:un,moveRelativeTo:Un,isMoving:Wr})}var Ii=or[or.length-1];if(Ii.descriptor.id===Ze.descriptor.id)return Wr.borderBox.center;if(fr(Ii.descriptor.id,tr)){var ki=b(Ii.page,Ie(tr.displacedBy.point));return dn({axis:un,moveRelativeTo:ki,isMoving:Wr})}return dn({axis:un,moveRelativeTo:Ii.page,isMoving:Wr})},pi=function(ae,Oe){var Ze=ae.frame;return Ze?Te(Oe,Ze.scroll.diff.displacement):Oe},Ci=function(ae){var Oe=ae.impact,Ze=ae.draggable,yt=ae.droppable,Xt=ae.draggables,tr=ae.afterCritical,or=Ze.page.borderBox.center,Wr=Oe.at;return yt&&Wr?Wr.type==="REORDER"?Zn({impact:Oe,draggable:Ze,draggables:Xt,droppable:yt,afterCritical:tr}):Zt({impact:Oe,draggables:Xt,afterCritical:tr}):or},Ni=function(ae){var Oe=Ci(ae),Ze=ae.droppable,yt=Ze?pi(Ze,Oe):Oe;return yt},zi=function(ae,Oe){var Ze=he(Oe,ae.scroll.initial),yt=Ie(Ze),Xt=e({top:Oe.y,bottom:Oe.y+ae.frame.height,left:Oe.x,right:Oe.x+ae.frame.width}),tr={frame:Xt,scroll:{initial:ae.scroll.initial,max:ae.scroll.max,current:Oe,diff:{value:Ze,displacement:yt}}};return tr};function it(je,ae){return je.map(function(Oe){return ae[Oe]})}function Ne(je,ae){for(var Oe=0;Oe<ae.length;Oe++){var Ze=ae[Oe].visible[je];if(Ze)return Ze}return null}var He=function(ae){var Oe=ae.impact,Ze=ae.viewport,yt=ae.destination,Xt=ae.draggables,tr=ae.maxScrollChange,or=zi(Ze,Te(Ze.scroll.current,tr)),Wr=yt.frame?de(yt,Te(yt.frame.scroll.current,tr)):yt,un=Oe.displaced,zr=An({afterDragging:it(un.all,Xt),destination:yt,displacedBy:Oe.displacedBy,viewport:or.frame,last:un,forceShouldAnimate:!1}),jr=An({afterDragging:it(un.all,Xt),destination:Wr,displacedBy:Oe.displacedBy,viewport:Ze.frame,last:un,forceShouldAnimate:!1}),sn={},vn={},Un=[un,zr,jr];un.all.forEach(function(ki){var la=Ne(ki,Un);if(la){vn[ki]=la;return}sn[ki]=!0});var Ii=Object(A.a)({},Oe,{displaced:{all:un.all,invisible:sn,visible:vn}});return Ii},Ge=function(ae,Oe){return Te(ae.scroll.diff.displacement,Oe)},nt=function(ae){var Oe=ae.pageBorderBoxCenter,Ze=ae.draggable,yt=ae.viewport,Xt=Ge(yt,Oe),tr=he(Xt,Ze.page.borderBox.center);return Te(Ze.client.borderBox.center,tr)},$e=function(ae){var Oe=ae.draggable,Ze=ae.destination,yt=ae.newPageBorderBoxCenter,Xt=ae.viewport,tr=ae.withDroppableDisplacement,or=ae.onlyOnMainAxis,Wr=or===void 0?!1:or,un=he(yt,Oe.page.borderBox.center),zr=et(Oe.page.borderBox,un),jr={target:zr,destination:Ze,withDroppableDisplacement:tr,viewport:Xt};return Wr?Yt(jr):Ct(jr)},ot=function(ae){var Oe=ae.isMovingForward,Ze=ae.draggable,yt=ae.destination,Xt=ae.draggables,tr=ae.previousImpact,or=ae.viewport,Wr=ae.previousPageBorderBoxCenter,un=ae.previousClientSelection,zr=ae.afterCritical;if(!yt.isEnabled)return null;var jr=cn(yt.descriptor.id,Xt),sn=Et(Ze,yt),vn=ar({isMovingForward:Oe,draggable:Ze,destination:yt,insideDestination:jr,previousImpact:tr})||er({isMovingForward:Oe,isInHomeList:sn,draggable:Ze,draggables:Xt,destination:yt,insideDestination:jr,previousImpact:tr,viewport:or,afterCritical:zr});if(!vn)return null;var Un=Ni({impact:vn,draggable:Ze,droppable:yt,draggables:Xt,afterCritical:zr}),Ii=$e({draggable:Ze,destination:yt,newPageBorderBoxCenter:Un,viewport:or.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(Ii){var ki=nt({pageBorderBoxCenter:Un,draggable:Ze,viewport:or});return{clientSelection:ki,impact:vn,scrollJumpRequest:null}}var la=he(Un,Wr),Zi=He({impact:vn,viewport:or,destination:yt,draggables:Xt,maxScrollChange:la});return{clientSelection:un,impact:Zi,scrollJumpRequest:la}},Pt=function(ae){var Oe=ae.subject.active;return Oe||Ve(!1),Oe},xt=function(ae){var Oe=ae.isMovingForward,Ze=ae.pageBorderBoxCenter,yt=ae.source,Xt=ae.droppables,tr=ae.viewport,or=yt.subject.active;if(!or)return null;var Wr=yt.axis,un=ci(or[Wr.start],or[Wr.end]),zr=nr(Xt).filter(function(sn){return sn!==yt}).filter(function(sn){return sn.isEnabled}).filter(function(sn){return Boolean(sn.subject.active)}).filter(function(sn){return Vi(tr.frame)(Pt(sn))}).filter(function(sn){var vn=Pt(sn);return Oe?or[Wr.crossAxisEnd]<vn[Wr.crossAxisEnd]:vn[Wr.crossAxisStart]<or[Wr.crossAxisStart]}).filter(function(sn){var vn=Pt(sn),Un=ci(vn[Wr.start],vn[Wr.end]);return un(vn[Wr.start])||un(vn[Wr.end])||Un(or[Wr.start])||Un(or[Wr.end])}).sort(function(sn,vn){var Un=Pt(sn)[Wr.crossAxisStart],Ii=Pt(vn)[Wr.crossAxisStart];return Oe?Un-Ii:Ii-Un}).filter(function(sn,vn,Un){return Pt(sn)[Wr.crossAxisStart]===Pt(Un[0])[Wr.crossAxisStart]});if(!zr.length)return null;if(zr.length===1)return zr[0];var jr=zr.filter(function(sn){var vn=ci(Pt(sn)[Wr.start],Pt(sn)[Wr.end]);return vn(Ze[Wr.line])});return jr.length===1?jr[0]:jr.length>1?jr.sort(function(sn,vn){return Pt(sn)[Wr.start]-Pt(vn)[Wr.start]})[0]:zr.sort(function(sn,vn){var Un=st(Ze,wt(Pt(sn))),Ii=st(Ze,wt(Pt(vn)));return Un!==Ii?Un-Ii:Pt(sn)[Wr.start]-Pt(vn)[Wr.start]})[0]},rr=function(ae,Oe){var Ze=ae.page.borderBox.center;return fr(ae.descriptor.id,Oe)?he(Ze,Oe.displacedBy.point):Ze},Fr=function(ae,Oe){var Ze=ae.page.borderBox;return fr(ae.descriptor.id,Oe)?et(Ze,Ie(Oe.displacedBy.point)):Ze},Vr=function(ae){var Oe=ae.pageBorderBoxCenter,Ze=ae.viewport,yt=ae.destination,Xt=ae.insideDestination,tr=ae.afterCritical,or=Xt.filter(function(Wr){return Ct({target:Fr(Wr,tr),destination:yt,viewport:Ze.frame,withDroppableDisplacement:!0})}).sort(function(Wr,un){var zr=pt(Oe,pi(yt,rr(Wr,tr))),jr=pt(Oe,pi(yt,rr(un,tr)));return zr<jr?-1:jr<zr?1:Wr.descriptor.index-un.descriptor.index});return or[0]||null},fn=_(function(ae,Oe){var Ze=Oe[ae.line];return{value:Ze,point:tt(ae.line,Ze)}}),gr=function(ae,Oe,Ze){var yt=ae.axis;if(ae.descriptor.mode==="virtual")return tt(yt.line,Oe[yt.line]);var Xt=ae.subject.page.contentBox[yt.size],tr=cn(ae.descriptor.id,Ze),or=tr.reduce(function(zr,jr){return zr+jr.client.marginBox[yt.size]},0),Wr=or+Oe[yt.line],un=Wr-Xt;return un<=0?null:tt(yt.line,un)},Gn=function(ae,Oe){return Object(A.a)({},ae,{scroll:Object(A.a)({},ae.scroll,{max:Oe})})},Mr=function(ae,Oe,Ze){var yt=ae.frame;Et(Oe,ae)&&Ve(!1),ae.subject.withPlaceholder&&Ve(!1);var Xt=fn(ae.axis,Oe.displaceBy).point,tr=gr(ae,Xt,Ze),or={placeholderSize:Xt,increasedBy:tr,oldFrameMaxScroll:ae.frame?ae.frame.scroll.max:null};if(!yt){var Wr=Ke({page:ae.subject.page,withPlaceholder:or,axis:ae.axis,frame:ae.frame});return Object(A.a)({},ae,{subject:Wr})}var un=tr?Te(yt.scroll.max,tr):yt.scroll.max,zr=Gn(yt,un),jr=Ke({page:ae.subject.page,withPlaceholder:or,axis:ae.axis,frame:zr});return Object(A.a)({},ae,{subject:jr,frame:zr})},Rn=function(ae){var Oe=ae.subject.withPlaceholder;Oe||Ve(!1);var Ze=ae.frame;if(!Ze){var yt=Ke({page:ae.subject.page,axis:ae.axis,frame:null,withPlaceholder:null});return Object(A.a)({},ae,{subject:yt})}var Xt=Oe.oldFrameMaxScroll;Xt||Ve(!1);var tr=Gn(Ze,Xt),or=Ke({page:ae.subject.page,axis:ae.axis,frame:tr,withPlaceholder:null});return Object(A.a)({},ae,{subject:or,frame:tr})},bn=function(ae){var Oe=ae.previousPageBorderBoxCenter,Ze=ae.moveRelativeTo,yt=ae.insideDestination,Xt=ae.draggable,tr=ae.draggables,or=ae.destination,Wr=ae.viewport,un=ae.afterCritical;if(!Ze){if(yt.length)return null;var zr={displaced:Mn,displacedBy:en,at:{type:"REORDER",destination:{droppableId:or.descriptor.id,index:0}}},jr=Ni({impact:zr,draggable:Xt,droppable:or,draggables:tr,afterCritical:un}),sn=Et(Xt,or)?or:Mr(or,Xt,tr),vn=$e({draggable:Xt,destination:sn,newPageBorderBoxCenter:jr,viewport:Wr.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return vn?zr:null}var Un=Boolean(Oe[or.axis.line]<=Ze.page.borderBox.center[or.axis.line]),Ii=function(){var la=Ze.descriptor.index;return Ze.descriptor.id===Xt.descriptor.id||Un?la:la+1}(),ki=fn(or.axis,Xt.displaceBy);return bt({draggable:Xt,insideDestination:yt,destination:or,viewport:Wr,displacedBy:ki,last:Mn,index:Ii})},rn=function(ae){var Oe=ae.isMovingForward,Ze=ae.previousPageBorderBoxCenter,yt=ae.draggable,Xt=ae.isOver,tr=ae.draggables,or=ae.droppables,Wr=ae.viewport,un=ae.afterCritical,zr=xt({isMovingForward:Oe,pageBorderBoxCenter:Ze,source:Xt,droppables:or,viewport:Wr});if(!zr)return null;var jr=cn(zr.descriptor.id,tr),sn=Vr({pageBorderBoxCenter:Ze,viewport:Wr,destination:zr,insideDestination:jr,afterCritical:un}),vn=bn({previousPageBorderBoxCenter:Ze,destination:zr,draggable:yt,draggables:tr,moveRelativeTo:sn,insideDestination:jr,viewport:Wr,afterCritical:un});if(!vn)return null;var Un=Ni({impact:vn,draggable:yt,droppable:zr,draggables:tr,afterCritical:un}),Ii=nt({pageBorderBoxCenter:Un,draggable:yt,viewport:Wr});return{clientSelection:Ii,impact:vn,scrollJumpRequest:null}},ei=function(ae){var Oe=ae.at;return Oe?Oe.type==="REORDER"?Oe.destination.droppableId:Oe.combine.droppableId:null},fi=function(ae,Oe){var Ze=ei(ae);return Ze?Oe[Ze]:null},Mi=function(ae){var Oe=ae.state,Ze=ae.type,yt=fi(Oe.impact,Oe.dimensions.droppables),Xt=Boolean(yt),tr=Oe.dimensions.droppables[Oe.critical.droppable.id],or=yt||tr,Wr=or.axis.direction,un=Wr==="vertical"&&(Ze==="MOVE_UP"||Ze==="MOVE_DOWN")||Wr==="horizontal"&&(Ze==="MOVE_LEFT"||Ze==="MOVE_RIGHT");if(un&&!Xt)return null;var zr=Ze==="MOVE_DOWN"||Ze==="MOVE_RIGHT",jr=Oe.dimensions.draggables[Oe.critical.draggable.id],sn=Oe.current.page.borderBoxCenter,vn=Oe.dimensions,Un=vn.draggables,Ii=vn.droppables;return un?ot({isMovingForward:zr,previousPageBorderBoxCenter:sn,draggable:jr,destination:or,draggables:Un,viewport:Oe.viewport,previousClientSelection:Oe.current.client.selection,previousImpact:Oe.impact,afterCritical:Oe.afterCritical}):rn({isMovingForward:zr,previousPageBorderBoxCenter:sn,draggable:jr,isOver:or,draggables:Un,droppables:Ii,viewport:Oe.viewport,afterCritical:Oe.afterCritical})};function $r(je){return je.phase==="DRAGGING"||je.phase==="COLLECTING"}function En(je){var ae=ci(je.top,je.bottom),Oe=ci(je.left,je.right);return function(yt){return ae(yt.y)&&Oe(yt.x)}}function Hn(je,ae){return je.left<ae.right&&je.right>ae.left&&je.top<ae.bottom&&je.bottom>ae.top}function zt(je){var ae=je.pageBorderBox,Oe=je.draggable,Ze=je.candidates,yt=Oe.page.borderBox.center,Xt=Ze.map(function(tr){var or=tr.axis,Wr=tt(tr.axis.line,ae.center[or.line],tr.page.borderBox.center[or.crossAxisLine]);return{id:tr.descriptor.id,distance:pt(yt,Wr)}}).sort(function(tr,or){return or.distance-tr.distance});return Xt[0]?Xt[0].id:null}function _t(je){var ae=je.pageBorderBox,Oe=je.draggable,Ze=je.droppables,yt=nr(Ze).filter(function(Xt){if(!Xt.isEnabled)return!1;var tr=Xt.subject.active;if(!tr)return!1;if(!Hn(ae,tr))return!1;if(En(tr)(ae.center))return!0;var or=Xt.axis,Wr=tr.center[or.crossAxisLine],un=ae[or.crossAxisStart],zr=ae[or.crossAxisEnd],jr=ci(tr[or.crossAxisStart],tr[or.crossAxisEnd]),sn=jr(un),vn=jr(zr);return!sn&&!vn?!0:sn?un<Wr:zr>Wr});return yt.length?yt.length===1?yt[0].descriptor.id:zt({pageBorderBox:ae,draggable:Oe,candidates:yt}):null}var Ft=function(ae,Oe){return e(et(ae,Oe))},Wt=function(ae,Oe){var Ze=ae.frame;return Ze?Ft(Oe,Ze.scroll.diff.value):Oe};function Vt(je){var ae=je.displaced,Oe=je.id;return Boolean(ae.visible[Oe]||ae.invisible[Oe])}function Lt(je){var ae=je.draggable,Oe=je.closest,Ze=je.inHomeList;return Oe?Ze&&Oe.descriptor.index>ae.descriptor.index?Oe.descriptor.index-1:Oe.descriptor.index:null}var cr=function(ae){var Oe=ae.pageBorderBoxWithDroppableScroll,Ze=ae.draggable,yt=ae.destination,Xt=ae.insideDestination,tr=ae.last,or=ae.viewport,Wr=ae.afterCritical,un=yt.axis,zr=fn(yt.axis,Ze.displaceBy),jr=zr.value,sn=Oe[un.start],vn=Oe[un.end],Un=qt(Ze,Xt),Ii=pe(Un,function(la){var Zi=la.descriptor.id,Ya=la.page.borderBox.center[un.line],wa=fr(Zi,Wr),po=Vt({displaced:tr,id:Zi});return wa?po?vn<=Ya:sn<Ya-jr:po?vn<=Ya+jr:sn<Ya}),ki=Lt({draggable:Ze,closest:Ii,inHomeList:Et(Ze,yt)});return bt({draggable:Ze,insideDestination:Xt,destination:yt,viewport:or,last:tr,displacedBy:zr,index:ki})},vr=4,yr=function(ae){var Oe=ae.draggable,Ze=ae.pageBorderBoxWithDroppableScroll,yt=ae.previousImpact,Xt=ae.destination,tr=ae.insideDestination,or=ae.afterCritical;if(!Xt.isCombineEnabled)return null;var Wr=Xt.axis,un=fn(Xt.axis,Oe.displaceBy),zr=un.value,jr=Ze[Wr.start],sn=Ze[Wr.end],vn=qt(Oe,tr),Un=pe(vn,function(ki){var la=ki.descriptor.id,Zi=ki.page.borderBox,Ya=Zi[Wr.size],wa=Ya/vr,po=fr(la,or),Za=Vt({displaced:yt.displaced,id:la});return po?Za?sn>Zi[Wr.start]+wa&&sn<Zi[Wr.end]-wa:jr>Zi[Wr.start]-zr+wa&&jr<Zi[Wr.end]-zr-wa:Za?sn>Zi[Wr.start]+zr+wa&&sn<Zi[Wr.end]+zr-wa:jr>Zi[Wr.start]+wa&&jr<Zi[Wr.end]-wa});if(!Un)return null;var Ii={displacedBy:un,displaced:yt.displaced,at:{type:"COMBINE",combine:{draggableId:Un.descriptor.id,droppableId:Xt.descriptor.id}}};return Ii},Dr=function(ae){var Oe=ae.pageOffset,Ze=ae.draggable,yt=ae.draggables,Xt=ae.droppables,tr=ae.previousImpact,or=ae.viewport,Wr=ae.afterCritical,un=Ft(Ze.page.borderBox,Oe),zr=_t({pageBorderBox:un,draggable:Ze,droppables:Xt});if(!zr)return Yn;var jr=Xt[zr],sn=cn(jr.descriptor.id,yt),vn=Wt(jr,un);return yr({pageBorderBoxWithDroppableScroll:vn,draggable:Ze,previousImpact:tr,destination:jr,insideDestination:sn,afterCritical:Wr})||cr({pageBorderBoxWithDroppableScroll:vn,draggable:Ze,destination:jr,insideDestination:sn,last:tr.displaced,viewport:or,afterCritical:Wr})},Kn=function(ae,Oe){var Ze;return Object(A.a)({},ae,(Ze={},Ze[Oe.descriptor.id]=Oe,Ze))},Dn=function(ae){var Oe=ae.previousImpact,Ze=ae.impact,yt=ae.droppables,Xt=ei(Oe),tr=ei(Ze);if(!Xt)return yt;if(Xt===tr)return yt;var or=yt[Xt];if(!or.subject.withPlaceholder)return yt;var Wr=Rn(or);return Kn(yt,Wr)},di=function(ae){var Oe=ae.draggable,Ze=ae.draggables,yt=ae.droppables,Xt=ae.previousImpact,tr=ae.impact,or=Dn({previousImpact:Xt,impact:tr,droppables:yt}),Wr=ei(tr);if(!Wr)return or;var un=yt[Wr];if(Et(Oe,un))return or;if(un.subject.withPlaceholder)return or;var zr=Mr(un,Oe,Ze);return Kn(or,zr)},mn=function(ae){var Oe=ae.state,Ze=ae.clientSelection,yt=ae.dimensions,Xt=ae.viewport,tr=ae.impact,or=ae.scrollJumpRequest,Wr=Xt||Oe.viewport,un=yt||Oe.dimensions,zr=Ze||Oe.current.client.selection,jr=he(zr,Oe.initial.client.selection),sn={offset:jr,selection:zr,borderBoxCenter:Te(Oe.initial.client.borderBoxCenter,jr)},vn={selection:Te(sn.selection,Wr.scroll.current),borderBoxCenter:Te(sn.borderBoxCenter,Wr.scroll.current),offset:Te(sn.offset,Wr.scroll.diff.value)},Un={client:sn,page:vn};if(Oe.phase==="COLLECTING")return Object(A.a)({phase:"COLLECTING"},Oe,{dimensions:un,viewport:Wr,current:Un});var Ii=un.draggables[Oe.critical.draggable.id],ki=tr||Dr({pageOffset:vn.offset,draggable:Ii,draggables:un.draggables,droppables:un.droppables,previousImpact:Oe.impact,viewport:Wr,afterCritical:Oe.afterCritical}),la=di({draggable:Ii,impact:ki,previousImpact:Oe.impact,draggables:un.draggables,droppables:un.droppables}),Zi=Object(A.a)({},Oe,{current:Un,dimensions:{draggables:un.draggables,droppables:la},impact:ki,viewport:Wr,scrollJumpRequest:or||null,forceShouldAnimate:or?!1:null});return Zi};function Ur(je,ae){return je.map(function(Oe){return ae[Oe]})}var On=function(ae){var Oe=ae.impact,Ze=ae.viewport,yt=ae.draggables,Xt=ae.destination,tr=ae.forceShouldAnimate,or=Oe.displaced,Wr=Ur(or.all,yt),un=An({afterDragging:Wr,destination:Xt,displacedBy:Oe.displacedBy,viewport:Ze.frame,forceShouldAnimate:tr,last:or});return Object(A.a)({},Oe,{displaced:un})},zn=function(ae){var Oe=ae.impact,Ze=ae.draggable,yt=ae.droppable,Xt=ae.draggables,tr=ae.viewport,or=ae.afterCritical,Wr=Ni({impact:Oe,draggable:Ze,draggables:Xt,droppable:yt,afterCritical:or});return nt({pageBorderBoxCenter:Wr,draggable:Ze,viewport:tr})},qn=function(ae){var Oe=ae.state,Ze=ae.dimensions,yt=ae.viewport;Oe.movementMode==="SNAP"||Ve(!1);var Xt=Oe.impact,tr=yt||Oe.viewport,or=Ze||Oe.dimensions,Wr=or.draggables,un=or.droppables,zr=Wr[Oe.critical.draggable.id],jr=ei(Xt);jr||Ve(!1);var sn=un[jr],vn=On({impact:Xt,viewport:tr,destination:sn,draggables:Wr}),Un=zn({impact:vn,draggable:zr,droppable:sn,draggables:Wr,viewport:tr,afterCritical:Oe.afterCritical});return mn({impact:vn,clientSelection:Un,state:Oe,dimensions:or,viewport:tr})},oi=function(ae){return{index:ae.index,droppableId:ae.droppableId}},xi=function(ae){var Oe=ae.draggable,Ze=ae.home,yt=ae.draggables,Xt=ae.viewport,tr=fn(Ze.axis,Oe.displaceBy),or=cn(Ze.descriptor.id,yt),Wr=or.indexOf(Oe);Wr!==-1||Ve(!1);var un=or.slice(Wr+1),zr=un.reduce(function(Un,Ii){return Un[Ii.descriptor.id]=!0,Un},{}),jr={inVirtualList:Ze.descriptor.mode==="virtual",displacedBy:tr,effected:zr},sn=An({afterDragging:un,destination:Ze,displacedBy:tr,last:null,viewport:Xt.frame,forceShouldAnimate:!1}),vn={displaced:sn,displacedBy:tr,at:{type:"REORDER",destination:oi(Oe.descriptor)}};return{impact:vn,afterCritical:jr}},Di=function(ae,Oe){return{draggables:ae.draggables,droppables:Kn(ae.droppables,Oe)}},Li=function(ae){},aa=function(ae){},ma=function(ae){var Oe=ae.draggable,Ze=ae.offset,yt=ae.initialWindowScroll,Xt=b(Oe.client,Ze),tr=w(Xt,yt),or=Object(A.a)({},Oe,{placeholder:Object(A.a)({},Oe.placeholder,{client:Xt}),client:Xt,page:tr});return or},na=function(ae){var Oe=ae.frame;return Oe||Ve(!1),Oe},Aa=function(ae){var Oe=ae.additions,Ze=ae.updatedDroppables,yt=ae.viewport,Xt=yt.scroll.diff.value;return Oe.map(function(tr){var or=tr.descriptor.droppableId,Wr=Ze[or],un=na(Wr),zr=un.scroll.diff.value,jr=Te(Xt,zr),sn=ma({draggable:tr,offset:jr,initialWindowScroll:yt.scroll.initial});return sn})},yi=function(ae){var Oe=ae.state,Ze=ae.published;Li();var yt=Ze.modified.map(function(wa){var po=Oe.dimensions.droppables[wa.droppableId],Za=de(po,wa.scroll);return Za}),Xt=Object(A.a)({},Oe.dimensions.droppables,{},hr(yt)),tr=gt(Aa({additions:Ze.additions,updatedDroppables:Xt,viewport:Oe.viewport})),or=Object(A.a)({},Oe.dimensions.draggables,{},tr);Ze.removals.forEach(function(wa){delete or[wa]});var Wr={droppables:Xt,draggables:or},un=ei(Oe.impact),zr=un?Wr.droppables[un]:null,jr=Wr.draggables[Oe.critical.draggable.id],sn=Wr.droppables[Oe.critical.droppable.id],vn=xi({draggable:jr,home:sn,draggables:or,viewport:Oe.viewport}),Un=vn.impact,Ii=vn.afterCritical,ki=zr&&zr.isCombineEnabled?Oe.impact:Un,la=Dr({pageOffset:Oe.current.page.offset,draggable:Wr.draggables[Oe.critical.draggable.id],draggables:Wr.draggables,droppables:Wr.droppables,previousImpact:ki,viewport:Oe.viewport,afterCritical:Ii});aa();var Zi=Object(A.a)({phase:"DRAGGING"},Oe,{phase:"DRAGGING",impact:la,onLiftImpact:Un,dimensions:Wr,afterCritical:Ii,forceShouldAnimate:!1});if(Oe.phase==="COLLECTING")return Zi;var Ya=Object(A.a)({phase:"DROP_PENDING"},Zi,{phase:"DROP_PENDING",reason:Oe.reason,isWaiting:!1});return Ya},Ln=function(ae){return ae.movementMode==="SNAP"},ji=function(ae,Oe,Ze){var yt=Di(ae.dimensions,Oe);return!Ln(ae)||Ze?mn({state:ae,dimensions:yt}):qn({state:ae,dimensions:yt})};function ha(je){return je.isDragging&&je.movementMode==="SNAP"?Object(A.a)({phase:"DRAGGING"},je,{scrollJumpRequest:null}):je}var ea={phase:"IDLE",completed:null,shouldFlush:!1},ca=function(ae,Oe){if(ae===void 0&&(ae=ea),Oe.type==="FLUSH")return Object(A.a)({},ea,{shouldFlush:!0});if(Oe.type==="INITIAL_PUBLISH"){ae.phase==="IDLE"||Ve(!1);var Ze=Oe.payload,yt=Ze.critical,Xt=Ze.clientSelection,tr=Ze.viewport,or=Ze.dimensions,Wr=Ze.movementMode,un=or.draggables[yt.draggable.id],zr=or.droppables[yt.droppable.id],jr={selection:Xt,borderBoxCenter:un.client.borderBox.center,offset:Ce},sn={client:jr,page:{selection:Te(jr.selection,tr.scroll.initial),borderBoxCenter:Te(jr.selection,tr.scroll.initial),offset:Te(jr.selection,tr.scroll.diff.value)}},vn=nr(or.droppables).every(function(Ss){return!Ss.isFixedOnPage}),Un=xi({draggable:un,home:zr,draggables:or.draggables,viewport:tr}),Ii=Un.impact,ki=Un.afterCritical,la={phase:"DRAGGING",isDragging:!0,critical:yt,movementMode:Wr,dimensions:or,initial:sn,current:sn,isWindowScrollAllowed:vn,impact:Ii,afterCritical:ki,onLiftImpact:Ii,viewport:tr,scrollJumpRequest:null,forceShouldAnimate:null};return la}if(Oe.type==="COLLECTION_STARTING"){if(ae.phase==="COLLECTING"||ae.phase==="DROP_PENDING")return ae;ae.phase==="DRAGGING"||Ve(!1);var Zi=Object(A.a)({phase:"COLLECTING"},ae,{phase:"COLLECTING"});return Zi}if(Oe.type==="PUBLISH_WHILE_DRAGGING")return ae.phase==="COLLECTING"||ae.phase==="DROP_PENDING"||Ve(!1),yi({state:ae,published:Oe.payload});if(Oe.type==="MOVE"){if(ae.phase==="DROP_PENDING")return ae;$r(ae)||Ve(!1);var Ya=Oe.payload.client;return ye(Ya,ae.current.client.selection)?ae:mn({state:ae,clientSelection:Ya,impact:Ln(ae)?ae.impact:null})}if(Oe.type==="UPDATE_DROPPABLE_SCROLL"){if(ae.phase==="DROP_PENDING")return ha(ae);if(ae.phase==="COLLECTING")return ha(ae);$r(ae)||Ve(!1);var wa=Oe.payload,po=wa.id,Za=wa.newScroll,Xo=ae.dimensions.droppables[po];if(!Xo)return ae;var ls=de(Xo,Za);return ji(ae,ls,!1)}if(Oe.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(ae.phase==="DROP_PENDING")return ae;$r(ae)||Ve(!1);var N=Oe.payload,j=N.id,ie=N.isEnabled,se=ae.dimensions.droppables[j];se||Ve(!1),se.isEnabled!==ie||Ve(!1);var me=Object(A.a)({},se,{isEnabled:ie});return ji(ae,me,!0)}if(Oe.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(ae.phase==="DROP_PENDING")return ae;$r(ae)||Ve(!1);var ze=Oe.payload,It=ze.id,ir=ze.isCombineEnabled,wr=ae.dimensions.droppables[It];wr||Ve(!1),wr.isCombineEnabled!==ir||Ve(!1);var Or=Object(A.a)({},wr,{isCombineEnabled:ir});return ji(ae,Or,!0)}if(Oe.type==="MOVE_BY_WINDOW_SCROLL"){if(ae.phase==="DROP_PENDING"||ae.phase==="DROP_ANIMATING")return ae;$r(ae)||Ve(!1),ae.isWindowScrollAllowed||Ve(!1);var Bn=Oe.payload.newScroll;if(ye(ae.viewport.scroll.current,Bn))return ha(ae);var ti=zi(ae.viewport,Bn);return Ln(ae)?qn({state:ae,viewport:ti}):mn({state:ae,viewport:ti})}if(Oe.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!$r(ae))return ae;var Si=Oe.payload.maxScroll;if(ye(Si,ae.viewport.scroll.max))return ae;var Oi=Object(A.a)({},ae.viewport,{scroll:Object(A.a)({},ae.viewport.scroll,{max:Si})});return Object(A.a)({phase:"DRAGGING"},ae,{viewport:Oi})}if(Oe.type==="MOVE_UP"||Oe.type==="MOVE_DOWN"||Oe.type==="MOVE_LEFT"||Oe.type==="MOVE_RIGHT"){if(ae.phase==="COLLECTING"||ae.phase==="DROP_PENDING")return ae;ae.phase==="DRAGGING"||Ve(!1);var oa=Mi({state:ae,type:Oe.type});return oa?mn({state:ae,impact:oa.impact,clientSelection:oa.clientSelection,scrollJumpRequest:oa.scrollJumpRequest}):ae}if(Oe.type==="DROP_PENDING"){var Ta=Oe.payload.reason;ae.phase==="COLLECTING"||Ve(!1);var Ha=Object(A.a)({phase:"DROP_PENDING"},ae,{phase:"DROP_PENDING",isWaiting:!0,reason:Ta});return Ha}if(Oe.type==="DROP_ANIMATE"){var Ba=Oe.payload,Na=Ba.completed,$a=Ba.dropDuration,fo=Ba.newHomeClientOffset;ae.phase==="DRAGGING"||ae.phase==="DROP_PENDING"||Ve(!1);var es={phase:"DROP_ANIMATING",completed:Na,dropDuration:$a,newHomeClientOffset:fo,dimensions:ae.dimensions};return es}if(Oe.type==="DROP_COMPLETE"){var Bo=Oe.payload.completed;return{phase:"IDLE",completed:Bo,shouldFlush:!1}}return ae},kr=function(ae){return{type:"BEFORE_INITIAL_CAPTURE",payload:ae}},Sr=function(ae){return{type:"LIFT",payload:ae}},yn=function(ae){return{type:"INITIAL_PUBLISH",payload:ae}},dr=function(ae){return{type:"PUBLISH_WHILE_DRAGGING",payload:ae}},Rr=function(){return{type:"COLLECTION_STARTING",payload:null}},Gr=function(ae){return{type:"UPDATE_DROPPABLE_SCROLL",payload:ae}},ln=function(ae){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:ae}},kn=function(ae){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:ae}},kt=function(ae){return{type:"MOVE",payload:ae}},_r=function(ae){return{type:"MOVE_BY_WINDOW_SCROLL",payload:ae}},Nr=function(ae){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:ae}},Jr=function(){return{type:"MOVE_UP",payload:null}},xn=function(){return{type:"MOVE_DOWN",payload:null}},Tn=function(){return{type:"MOVE_RIGHT",payload:null}},wn=function(){return{type:"MOVE_LEFT",payload:null}},$n=function(){return{type:"FLUSH",payload:null}},Vn=function(ae){return{type:"DROP_ANIMATE",payload:ae}},mi=function(ae){return{type:"DROP_COMPLETE",payload:ae}},Ri=function(ae){return{type:"DROP",payload:ae}},vi=function(ae){return{type:"DROP_PENDING",payload:ae}},Bi=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function Gi(je){if(je.length<=1)return;for(var ae=je.map(function(or){return or.descriptor.index}),Oe={},Ze=1;Ze<ae.length;Ze++){var yt=ae[Ze],Xt=ae[Ze-1];yt!==Xt+1&&(Oe[yt]=!0)}if(!Object.keys(Oe).length)return;var tr=ae.map(function(or){var Wr=Boolean(Oe[or]);return Wr?"[\u{1F525}"+or+"]":""+or}).join(", ")}function ta(je,ae){if(!1)var Oe}var Pi=function(ae){return function(Oe){var Ze=Oe.getState,yt=Oe.dispatch;return function(Xt){return function(tr){if(tr.type!=="LIFT"){Xt(tr);return}var or=tr.payload,Wr=or.id,un=or.clientSelection,zr=or.movementMode,jr=Ze();jr.phase==="DROP_ANIMATING"&&yt(mi({completed:jr.completed})),Ze().phase==="IDLE"||Ve(!1),yt($n()),yt(kr({draggableId:Wr,movementMode:zr}));var sn={shouldPublishImmediately:zr==="SNAP"},vn={draggableId:Wr,scrollOptions:sn},Un=ae.startPublishing(vn),Ii=Un.critical,ki=Un.dimensions,la=Un.viewport;ta(Ii,ki),yt(yn({critical:Ii,dimensions:ki,clientSelection:un,movementMode:zr,viewport:la}))}}}},Ki=function(ae){return function(){return function(Oe){return function(Ze){Ze.type==="INITIAL_PUBLISH"&&ae.dragging(),Ze.type==="DROP_ANIMATE"&&ae.dropping(Ze.payload.completed.result.reason),(Ze.type==="FLUSH"||Ze.type==="DROP_COMPLETE")&&ae.resting(),Oe(Ze)}}}},Hi={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Qi={opacity:{drop:0,combining:.7},scale:{drop:.75}},da={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Oa=da.outOfTheWay+"s "+Hi.outOfTheWay,ra={fluid:"opacity "+Oa,snap:"transform "+Oa+", opacity "+Oa,drop:function(ae){var Oe=ae+"s "+Hi.drop;return"transform "+Oe+", opacity "+Oe},outOfTheWay:"transform "+Oa,placeholder:"height "+Oa+", width "+Oa+", margin "+Oa},Da=function(ae){return ye(ae,Ce)?null:"translate("+ae.x+"px, "+ae.y+"px)"},Ra={moveTo:Da,drop:function(ae,Oe){var Ze=Da(ae);return Ze?Oe?Ze+" scale("+Qi.scale.drop+")":Ze:null}},va=da.minDropTime,ga=da.maxDropTime,_a=ga-va,ya=1500,Ga=.6,Ia=function(ae){var Oe=ae.current,Ze=ae.destination,yt=ae.reason,Xt=pt(Oe,Ze);if(Xt<=0)return va;if(Xt>=ya)return ga;var tr=Xt/ya,or=va+_a*tr,Wr=yt==="CANCEL"?or*Ga:or;return Number(Wr.toFixed(2))},Wa=function(ae){var Oe=ae.impact,Ze=ae.draggable,yt=ae.dimensions,Xt=ae.viewport,tr=ae.afterCritical,or=yt.draggables,Wr=yt.droppables,un=ei(Oe),zr=un?Wr[un]:null,jr=Wr[Ze.descriptor.droppableId],sn=zn({impact:Oe,draggable:Ze,draggables:or,afterCritical:tr,droppable:zr||jr,viewport:Xt}),vn=he(sn,Ze.client.borderBox.center);return vn},no=function(ae){var Oe=ae.draggables,Ze=ae.reason,yt=ae.lastImpact,Xt=ae.home,tr=ae.viewport,or=ae.onLiftImpact;if(!yt.at||Ze!=="DROP"){var Wr=On({draggables:Oe,impact:or,destination:Xt,viewport:tr,forceShouldAnimate:!0});return{impact:Wr,didDropInsideDroppable:!1}}if(yt.at.type==="REORDER")return{impact:yt,didDropInsideDroppable:!0};var un=Object(A.a)({},yt,{displaced:Mn});return{impact:un,didDropInsideDroppable:!0}},io=function(ae){var Oe=ae.getState,Ze=ae.dispatch;return function(yt){return function(Xt){if(Xt.type!=="DROP"){yt(Xt);return}var tr=Oe(),or=Xt.payload.reason;if(tr.phase==="COLLECTING"){Ze(vi({reason:or}));return}if(tr.phase==="IDLE")return;var Wr=tr.phase==="DROP_PENDING"&&tr.isWaiting;Wr&&Ve(!1),tr.phase==="DRAGGING"||tr.phase==="DROP_PENDING"||Ve(!1);var un=tr.critical,zr=tr.dimensions,jr=zr.draggables[tr.critical.draggable.id],sn=no({reason:or,lastImpact:tr.impact,afterCritical:tr.afterCritical,onLiftImpact:tr.onLiftImpact,home:tr.dimensions.droppables[tr.critical.droppable.id],viewport:tr.viewport,draggables:tr.dimensions.draggables}),vn=sn.impact,Un=sn.didDropInsideDroppable,Ii=Un?Ar(vn):null,ki=Un?xr(vn):null,la={index:un.draggable.index,droppableId:un.droppable.id},Zi={draggableId:jr.descriptor.id,type:jr.descriptor.type,source:la,reason:or,mode:tr.movementMode,destination:Ii,combine:ki},Ya=Wa({impact:vn,draggable:jr,dimensions:zr,viewport:tr.viewport,afterCritical:tr.afterCritical}),wa={critical:tr.critical,afterCritical:tr.afterCritical,result:Zi,impact:vn},po=!ye(tr.current.client.offset,Ya)||Boolean(Zi.combine);if(!po){Ze(mi({completed:wa}));return}var Za=Ia({current:tr.current.client.offset,destination:Ya,reason:or}),Xo={newHomeClientOffset:Ya,dropDuration:Za,completed:wa};Ze(Vn(Xo))}}},uo=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function $i(je){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(Oe){if(Oe.target!==window&&Oe.target!==window.document)return;je()}}}function mo(je){var ae=je.onWindowScroll;function Oe(){ae(uo())}var Ze=R(Oe),yt=$i(Ze),Xt=le;function tr(){return Xt!==le}function or(){tr()&&Ve(!1),Xt=Se(window,[yt])}function Wr(){tr()||Ve(!1),Ze.cancel(),Xt(),Xt=le}return{start:or,stop:Wr,isActive:tr}}var Eo=function(ae){return ae.type==="DROP_COMPLETE"||ae.type==="DROP_ANIMATE"||ae.type==="FLUSH"},ao=function(ae){var Oe=mo({onWindowScroll:function(yt){ae.dispatch(_r({newScroll:yt}))}});return function(Ze){return function(yt){!Oe.isActive()&&yt.type==="INITIAL_PUBLISH"&&Oe.start(),Oe.isActive()&&Eo(yt)&&Oe.stop(),Ze(yt)}}},Co=function(ae){var Oe=!1,Ze=!1,yt=setTimeout(function(){Ze=!0}),Xt=function(or){if(Oe)return;if(Ze)return;Oe=!0,ae(or),clearTimeout(yt)};return Xt.wasCalled=function(){return Oe},Xt},Ko=function(){var ae=[],Oe=function(tr){var or=qe(ae,function(zr){return zr.timerId===tr});or!==-1||Ve(!1);var Wr=ae.splice(or,1),un=Wr[0];un.callback()},Ze=function(tr){var or=setTimeout(function(){return Oe(or)}),Wr={timerId:or,callback:tr};ae.push(Wr)},yt=function(){if(!ae.length)return;var tr=[].concat(ae);ae.length=0,tr.forEach(function(or){clearTimeout(or.timerId),or.callback()})};return{add:Ze,flush:yt}},to=function(ae,Oe){return ae==null&&Oe==null?!0:ae==null||Oe==null?!1:ae.droppableId===Oe.droppableId&&ae.index===Oe.index},Qo=function(ae,Oe){return ae==null&&Oe==null?!0:ae==null||Oe==null?!1:ae.draggableId===Oe.draggableId&&ae.droppableId===Oe.droppableId},bo=function(ae,Oe){if(ae===Oe)return!0;var Ze=ae.draggable.id===Oe.draggable.id&&ae.draggable.droppableId===Oe.draggable.droppableId&&ae.draggable.type===Oe.draggable.type&&ae.draggable.index===Oe.draggable.index,yt=ae.droppable.id===Oe.droppable.id&&ae.droppable.type===Oe.droppable.type;return Ze&&yt},xo=function(ae,Oe){Li(),Oe(),aa()},ts=function(ae,Oe){return{draggableId:ae.draggable.id,type:ae.droppable.type,source:{droppableId:ae.droppable.id,index:ae.draggable.index},mode:Oe}},ka=function(ae,Oe,Ze,yt){if(!ae){Ze(yt(Oe));return}var Xt=Co(Ze),tr={announce:Xt};ae(Oe,tr),Xt.wasCalled()||Ze(yt(Oe))},Io=function(ae,Oe){var Ze=Ko(),yt=null,Xt=function(vn,Un){yt&&Ve(!1),xo("onBeforeCapture",function(){var Ii=ae().onBeforeCapture;if(Ii){var ki={draggableId:vn,mode:Un};Ii(ki)}})},tr=function(vn,Un){yt&&Ve(!1),xo("onBeforeDragStart",function(){var Ii=ae().onBeforeDragStart;Ii&&Ii(ts(vn,Un))})},or=function(vn,Un){yt&&Ve(!1);var Ii=ts(vn,Un);yt={mode:Un,lastCritical:vn,lastLocation:Ii.source,lastCombine:null},Ze.add(function(){xo("onDragStart",function(){return ka(ae().onDragStart,Ii,Oe,be.onDragStart)})})},Wr=function(vn,Un){var Ii=Ar(Un),ki=xr(Un);yt||Ve(!1);var la=!bo(vn,yt.lastCritical);la&&(yt.lastCritical=vn);var Zi=!to(yt.lastLocation,Ii);Zi&&(yt.lastLocation=Ii);var Ya=!Qo(yt.lastCombine,ki);if(Ya&&(yt.lastCombine=ki),!la&&!Zi&&!Ya)return;var wa=Object(A.a)({},ts(vn,yt.mode),{combine:ki,destination:Ii});Ze.add(function(){xo("onDragUpdate",function(){return ka(ae().onDragUpdate,wa,Oe,be.onDragUpdate)})})},un=function(){yt||Ve(!1),Ze.flush()},zr=function(vn){yt||Ve(!1),yt=null,xo("onDragEnd",function(){return ka(ae().onDragEnd,vn,Oe,be.onDragEnd)})},jr=function(){if(!yt)return;var vn=Object(A.a)({},ts(yt.lastCritical,yt.mode),{combine:null,destination:null,reason:"CANCEL"});zr(vn)};return{beforeCapture:Xt,beforeStart:tr,start:or,update:Wr,flush:un,drop:zr,abort:jr}},Mo=function(ae,Oe){var Ze=Io(ae,Oe);return function(yt){return function(Xt){return function(tr){if(tr.type==="BEFORE_INITIAL_CAPTURE"){Ze.beforeCapture(tr.payload.draggableId,tr.payload.movementMode);return}if(tr.type==="INITIAL_PUBLISH"){var or=tr.payload.critical;Ze.beforeStart(or,tr.payload.movementMode),Xt(tr),Ze.start(or,tr.payload.movementMode);return}if(tr.type==="DROP_COMPLETE"){var Wr=tr.payload.completed.result;Ze.flush(),Xt(tr),Ze.drop(Wr);return}if(Xt(tr),tr.type==="FLUSH"){Ze.abort();return}var un=yt.getState();un.phase==="DRAGGING"&&Ze.update(un.critical,un.impact)}}}},is=function(ae){return function(Oe){return function(Ze){if(Ze.type!=="DROP_ANIMATION_FINISHED"){Oe(Ze);return}var yt=ae.getState();yt.phase==="DROP_ANIMATING"||Ve(!1),ae.dispatch(mi({completed:yt.completed}))}}},To=function(ae){var Oe=null,Ze=null;function yt(){Ze&&(cancelAnimationFrame(Ze),Ze=null),Oe&&(Oe(),Oe=null)}return function(Xt){return function(tr){if((tr.type==="FLUSH"||tr.type==="DROP_COMPLETE"||tr.type==="DROP_ANIMATION_FINISHED")&&yt(),Xt(tr),tr.type!=="DROP_ANIMATE")return;var or={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var un=ae.getState();un.phase==="DROP_ANIMATING"&&ae.dispatch(Bi())}};Ze=requestAnimationFrame(function(){Ze=null,Oe=Se(window,[or])})}}},Zo=function(ae){return function(){return function(Oe){return function(Ze){(Ze.type==="DROP_COMPLETE"||Ze.type==="FLUSH"||Ze.type==="DROP_ANIMATE")&&ae.stopPublishing(),Oe(Ze)}}}},Vo=function(ae){var Oe=!1;return function(){return function(Ze){return function(yt){if(yt.type==="INITIAL_PUBLISH"){Oe=!0,ae.tryRecordFocus(yt.payload.critical.draggable.id),Ze(yt),ae.tryRestoreFocusRecorded();return}if(Ze(yt),!Oe)return;if(yt.type==="FLUSH"){Oe=!1,ae.tryRestoreFocusRecorded();return}if(yt.type==="DROP_COMPLETE"){Oe=!1;var Xt=yt.payload.completed.result;Xt.combine&&ae.tryShiftRecord(Xt.draggableId,Xt.combine.draggableId),ae.tryRestoreFocusRecorded()}}}}},Lo=function(ae){return ae.type==="DROP_COMPLETE"||ae.type==="DROP_ANIMATE"||ae.type==="FLUSH"},ho=function(ae){return function(Oe){return function(Ze){return function(yt){if(Lo(yt)){ae.stop(),Ze(yt);return}if(yt.type==="INITIAL_PUBLISH"){Ze(yt);var Xt=Oe.getState();Xt.phase==="DRAGGING"||Ve(!1),ae.start(Xt);return}Ze(yt),ae.scroll(Oe.getState())}}}},ja=function(ae){return function(Oe){return function(Ze){if(Oe(Ze),Ze.type!=="PUBLISH_WHILE_DRAGGING")return;var yt=ae.getState();if(yt.phase!=="DROP_PENDING")return;if(yt.isWaiting)return;ae.dispatch(Ri({reason:yt.reason}))}}},mt=m.d,Cr=function(ae){var Oe=ae.dimensionMarshal,Ze=ae.focusMarshal,yt=ae.styleMarshal,Xt=ae.getResponders,tr=ae.announce,or=ae.autoScroller;return Object(m.e)(ca,mt(Object(m.a)(Ki(yt),Zo(Oe),Pi(Oe),io,is,To,ja,ho(or),ao,Vo(Ze),Mo(Xt,tr))))},tn=function(){return{additions:{},removals:{},modified:{}}};function Yr(je){var ae=je.registry,Oe=je.callbacks,Ze=tn(),yt=null,Xt=function(){if(yt)return;Oe.collectionStarting(),yt=requestAnimationFrame(function(){yt=null,Li();var zr=Ze,jr=zr.additions,sn=zr.removals,vn=zr.modified,Un=Object.keys(jr).map(function(la){return ae.draggable.getById(la).getDimension(Ce)}).sort(function(la,Zi){return la.descriptor.index-Zi.descriptor.index}),Ii=Object.keys(vn).map(function(la){var Zi=ae.droppable.getById(la),Ya=Zi.callbacks.getScrollWhileDragging();return{droppableId:la,scroll:Ya}}),ki={additions:Un,removals:Object.keys(sn),modified:Ii};Ze=tn(),aa(),Oe.publish(ki)})},tr=function(zr){var jr=zr.descriptor.id;Ze.additions[jr]=zr,Ze.modified[zr.descriptor.droppableId]=!0,Ze.removals[jr]&&delete Ze.removals[jr],Xt()},or=function(zr){var jr=zr.descriptor;Ze.removals[jr.id]=!0,Ze.modified[jr.droppableId]=!0,Ze.additions[jr.id]&&delete Ze.additions[jr.id],Xt()},Wr=function(){if(!yt)return;cancelAnimationFrame(yt),yt=null,Ze=tn()};return{add:tr,remove:or,stop:Wr}}var Xn=function(ae){var Oe=ae.scrollHeight,Ze=ae.scrollWidth,yt=ae.height,Xt=ae.width,tr=he({x:Ze,y:Oe},{x:Xt,y:yt}),or={x:Math.max(0,tr.x),y:Math.max(0,tr.y)};return or},hn=function(){var ae=document.documentElement;return ae||Ve(!1),ae},Xr=function(){var ae=hn(),Oe=Xn({scrollHeight:ae.scrollHeight,scrollWidth:ae.scrollWidth,width:ae.clientWidth,height:ae.clientHeight});return Oe},ni=function(){var ae=uo(),Oe=Xr(),Ze=ae.y,yt=ae.x,Xt=hn(),tr=Xt.clientWidth,or=Xt.clientHeight,Wr=yt+tr,un=Ze+or,zr=e({top:Ze,left:yt,right:Wr,bottom:un}),jr={frame:zr,scroll:{initial:ae,current:ae,max:Oe,diff:{value:Ce,displacement:Ce}}};return jr},nn=function(ae){var Oe=ae.critical,Ze=ae.scrollOptions,yt=ae.registry;Li();var Xt=ni(),tr=Xt.scroll.current,or=Oe.droppable,Wr=yt.droppable.getAllByType(or.type).map(function(sn){return sn.callbacks.getDimensionAndWatchScroll(tr,Ze)}),un=yt.draggable.getAllByType(Oe.draggable.type).map(function(sn){return sn.getDimension(tr)}),zr={draggables:gt(un),droppables:hr(Wr)};aa();var jr={dimensions:zr,critical:Oe,viewport:Xt};return jr};function Wn(je,ae,Oe){if(Oe.descriptor.id===ae.id)return!1;if(Oe.descriptor.type!==ae.type)return!1;var Ze=je.droppable.getById(Oe.descriptor.droppableId);return!(Ze.descriptor.mode!=="virtual")}var si=function(ae,Oe){var Ze=null,yt=Yr({callbacks:{publish:Oe.publishWhileDragging,collectionStarting:Oe.collectionStarting},registry:ae}),Xt=function(Un,Ii){if(ae.droppable.exists(Un)||Ve(!1),!Ze)return;Oe.updateDroppableIsEnabled({id:Un,isEnabled:Ii})},tr=function(Un,Ii){if(!Ze)return;ae.droppable.exists(Un)||Ve(!1),Oe.updateDroppableIsCombineEnabled({id:Un,isCombineEnabled:Ii})},or=function(Un,Ii){if(!Ze)return;ae.droppable.exists(Un)||Ve(!1),Oe.updateDroppableScroll({id:Un,newScroll:Ii})},Wr=function(Un,Ii){if(!Ze)return;ae.droppable.getById(Un).callbacks.scroll(Ii)},un=function(){if(!Ze)return;yt.stop();var Un=Ze.critical.droppable;ae.droppable.getAllByType(Un.type).forEach(function(Ii){return Ii.callbacks.dragStopped()}),Ze.unsubscribe(),Ze=null},zr=function(Un){Ze||Ve(!1);var Ii=Ze.critical.draggable;Un.type==="ADDITION"&&(Wn(ae,Ii,Un.value)&&yt.add(Un.value)),Un.type==="REMOVAL"&&(Wn(ae,Ii,Un.value)&&yt.remove(Un.value))},jr=function(Un){Ze&&Ve(!1);var Ii=ae.draggable.getById(Un.draggableId),ki=ae.droppable.getById(Ii.descriptor.droppableId),la={draggable:Ii.descriptor,droppable:ki.descriptor},Zi=ae.subscribe(zr);return Ze={critical:la,unsubscribe:Zi},nn({critical:la,registry:ae,scrollOptions:Un.scrollOptions})},sn={updateDroppableIsEnabled:Xt,updateDroppableIsCombineEnabled:tr,scrollDroppable:Wr,updateDroppableScroll:or,startPublishing:jr,stopPublishing:un};return sn},ui=function(ae,Oe){return ae.phase==="IDLE"?!0:ae.phase!=="DROP_ANIMATING"||ae.completed.result.draggableId===Oe?!1:ae.completed.result.reason==="DROP"},ai=function(ae){window.scrollBy(ae.x,ae.y)},Ei=_(function(je){return nr(je).filter(function(ae){return ae.isEnabled?!!ae.frame:!1})}),gi=function(ae,Oe){var Ze=pe(Ei(Oe),function(yt){return yt.frame||Ve(!1),En(yt.frame.pageMarginBox)(ae)});return Ze},Ti=function(ae){var Oe=ae.center,Ze=ae.destination,yt=ae.droppables;if(Ze){var Xt=yt[Ze];return Xt.frame?Xt:null}var tr=gi(Oe,yt);return tr},_i={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(ae){return Math.pow(ae,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},ia=function(ae,Oe){var Ze=ae[Oe.size]*_i.startFromPercentage,yt=ae[Oe.size]*_i.maxScrollAtPercentage,Xt={startScrollingFrom:Ze,maxScrollValueAt:yt};return Xt},Fi=function(ae){var Oe=ae.startOfRange,Ze=ae.endOfRange,yt=ae.current,Xt=Ze-Oe;if(Xt===0)return 0;var tr=yt-Oe,or=tr/Xt;return or},fa=1,za=function(ae,Oe){if(ae>Oe.startScrollingFrom)return 0;if(ae<=Oe.maxScrollValueAt)return _i.maxPixelScroll;if(ae===Oe.startScrollingFrom)return fa;var Ze=Fi({startOfRange:Oe.maxScrollValueAt,endOfRange:Oe.startScrollingFrom,current:ae}),yt=1-Ze,Xt=_i.maxPixelScroll*_i.ease(yt);return Math.ceil(Xt)},Ca=_i.durationDampening.accelerateAt,xa=_i.durationDampening.stopDampeningAt,Ma=function(ae,Oe){var Ze=Oe,yt=xa,Xt=Date.now(),tr=Xt-Ze;if(tr>=xa)return ae;if(tr<Ca)return fa;var or=Fi({startOfRange:Ca,endOfRange:yt,current:tr}),Wr=ae*_i.ease(or);return Math.ceil(Wr)},Pa=function(ae){var Oe=ae.distanceToEdge,Ze=ae.thresholds,yt=ae.dragStartTime,Xt=ae.shouldUseTimeDampening,tr=za(Oe,Ze);return tr===0?0:Xt?Math.max(Ma(tr,yt),fa):tr},Wo=function(ae){var Oe=ae.container,Ze=ae.distanceToEdges,yt=ae.dragStartTime,Xt=ae.axis,tr=ae.shouldUseTimeDampening,or=ia(Oe,Xt),Wr=Ze[Xt.end]<Ze[Xt.start];return Wr?Pa({distanceToEdge:Ze[Xt.end],thresholds:or,dragStartTime:yt,shouldUseTimeDampening:tr}):-1*Pa({distanceToEdge:Ze[Xt.start],thresholds:or,dragStartTime:yt,shouldUseTimeDampening:tr})},Oo=function(ae){var Oe=ae.container,Ze=ae.subject,yt=ae.proposedScroll,Xt=Ze.height>Oe.height,tr=Ze.width>Oe.width;return!tr&&!Xt?yt:tr&&Xt?null:{x:tr?0:yt.x,y:Xt?0:yt.y}},pa=Fe(function(je){return je===0?0:je}),Sa=function(ae){var Oe=ae.dragStartTime,Ze=ae.container,yt=ae.subject,Xt=ae.center,tr=ae.shouldUseTimeDampening,or={top:Xt.y-Ze.top,right:Ze.right-Xt.x,bottom:Ze.bottom-Xt.y,left:Xt.x-Ze.left},Wr=Wo({container:Ze,distanceToEdges:or,dragStartTime:Oe,axis:Qn,shouldUseTimeDampening:tr}),un=Wo({container:Ze,distanceToEdges:or,dragStartTime:Oe,axis:$t,shouldUseTimeDampening:tr}),zr=pa({x:un,y:Wr});if(ye(zr,Ce))return null;var jr=Oo({container:Ze,subject:yt,proposedScroll:zr});return jr?ye(jr,Ce)?null:jr:null},Ea=Fe(function(je){return je===0?0:je>0?1:-1}),Ka=function(){var je=function(Oe,Ze){return Oe<0?Oe:Oe>Ze?Oe-Ze:0};return function(ae){var Oe=ae.current,Ze=ae.max,yt=ae.change,Xt=Te(Oe,yt),tr={x:je(Xt.x,Ze.x),y:je(Xt.y,Ze.y)};return ye(tr,Ce)?null:tr}}(),so=function(ae){var Oe=ae.max,Ze=ae.current,yt=ae.change,Xt={x:Math.max(Ze.x,Oe.x),y:Math.max(Ze.y,Oe.y)},tr=Ea(yt),or=Ka({max:Xt,current:Ze,change:tr});return or?tr.x!==0&&or.x===0?!0:tr.y!==0&&or.y===0:!0},lo=function(ae,Oe){return so({current:ae.scroll.current,max:ae.scroll.max,change:Oe})},wo=function(ae,Oe){if(!lo(ae,Oe))return null;var Ze=ae.scroll.max,yt=ae.scroll.current;return Ka({current:yt,max:Ze,change:Oe})},No=function(ae,Oe){var Ze=ae.frame;return Ze?so({current:Ze.scroll.current,max:Ze.scroll.max,change:Oe}):!1},cs=function(ae,Oe){var Ze=ae.frame;return Ze&&No(ae,Oe)?Ka({current:Ze.scroll.current,max:Ze.scroll.max,change:Oe}):null},hs=function(ae){var Oe=ae.viewport,Ze=ae.subject,yt=ae.center,Xt=ae.dragStartTime,tr=ae.shouldUseTimeDampening,or=Sa({dragStartTime:Xt,container:Oe.frame,subject:Ze,center:yt,shouldUseTimeDampening:tr});return or&&lo(Oe,or)?or:null},Bs=function(ae){var Oe=ae.droppable,Ze=ae.subject,yt=ae.center,Xt=ae.dragStartTime,tr=ae.shouldUseTimeDampening,or=Oe.frame;if(!or)return null;var Wr=Sa({dragStartTime:Xt,container:or.pageMarginBox,subject:Ze,center:yt,shouldUseTimeDampening:tr});return Wr&&No(Oe,Wr)?Wr:null},rs=function(ae){var Oe=ae.state,Ze=ae.dragStartTime,yt=ae.shouldUseTimeDampening,Xt=ae.scrollWindow,tr=ae.scrollDroppable,or=Oe.current.page.borderBoxCenter,Wr=Oe.dimensions.draggables[Oe.critical.draggable.id],un=Wr.page.marginBox;if(Oe.isWindowScrollAllowed){var zr=Oe.viewport,jr=hs({dragStartTime:Ze,viewport:zr,subject:un,center:or,shouldUseTimeDampening:yt});if(jr){Xt(jr);return}}var sn=Ti({center:or,destination:ei(Oe.impact),droppables:Oe.dimensions.droppables});if(!sn)return;var vn=Bs({dragStartTime:Ze,droppable:sn,subject:un,center:or,shouldUseTimeDampening:yt});vn&&tr(sn.descriptor.id,vn)},ns=function(ae){var Oe=ae.scrollWindow,Ze=ae.scrollDroppable,yt=R(Oe),Xt=R(Ze),tr=null,or=function(jr){tr||Ve(!1);var sn=tr,vn=sn.shouldUseTimeDampening,Un=sn.dragStartTime;rs({state:jr,scrollWindow:yt,scrollDroppable:Xt,dragStartTime:Un,shouldUseTimeDampening:vn})},Wr=function(jr){Li(),tr&&Ve(!1);var sn=Date.now(),vn=!1,Un=function(){vn=!0};rs({state:jr,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:Un,scrollDroppable:Un}),tr={dragStartTime:sn,shouldUseTimeDampening:vn},aa(),vn&&or(jr)},un=function(){if(!tr)return;yt.cancel(),Xt.cancel(),tr=null};return{start:Wr,stop:un,scroll:or}},co=function(ae){var Oe=ae.move,Ze=ae.scrollDroppable,yt=ae.scrollWindow,Xt=function(zr,jr){var sn=Te(zr.current.client.selection,jr);Oe({client:sn})},tr=function(zr,jr){if(!No(zr,jr))return jr;var sn=cs(zr,jr);if(!sn)return Ze(zr.descriptor.id,jr),null;var vn=he(jr,sn);Ze(zr.descriptor.id,vn);var Un=he(jr,vn);return Un},or=function(zr,jr,sn){if(!zr)return sn;if(!lo(jr,sn))return sn;var vn=wo(jr,sn);if(!vn)return yt(sn),null;var Un=he(sn,vn);yt(Un);var Ii=he(sn,Un);return Ii},Wr=function(zr){var jr=zr.scrollJumpRequest;if(!jr)return;var sn=ei(zr.impact);sn||Ve(!1);var vn=tr(zr.dimensions.droppables[sn],jr);if(!vn)return;var Un=zr.viewport,Ii=or(zr.isWindowScrollAllowed,Un,vn);if(!Ii)return;Xt(zr,Ii)};return Wr},oo=function(ae){var Oe=ae.scrollDroppable,Ze=ae.scrollWindow,yt=ae.move,Xt=ns({scrollWindow:Ze,scrollDroppable:Oe}),tr=co({move:yt,scrollWindow:Ze,scrollDroppable:Oe}),or=function(zr){if(zr.phase!=="DRAGGING")return;if(zr.movementMode==="FLUID"){Xt.scroll(zr);return}if(!zr.scrollJumpRequest)return;tr(zr)},Wr={scroll:or,start:Xt.start,stop:Xt.stop};return Wr},eo="data-rbd",ss=function(){var je=eo+"-drag-handle";return{base:je,draggableId:je+"-draggable-id",contextId:je+"-context-id"}}(),xs=function(){var je=eo+"-draggable";return{base:je,contextId:je+"-context-id",id:je+"-id"}}(),Po=function(){var je=eo+"-droppable";return{base:je,contextId:je+"-context-id",id:je+"-id"}}(),el={contextId:eo+"-scroll-container-context-id"},zo=function(ae){return function(Oe){return"["+Oe+'="'+ae+'"]'}},Jo=function(ae,Oe){return ae.map(function(Ze){var yt=Ze.styles[Oe];return yt?Ze.selector+" { "+yt+" }":""}).join(" ")},ks="pointer-events: none;",as=function(ae){var Oe=zo(ae),Ze=function(){var Wr=`
cursor: -webkit-grab;
cursor: grab;
`;return{selector:Oe(ss.contextId),styles:{always:`
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
touch-action: manipulation;
`,resting:Wr,dragging:ks,dropAnimating:Wr}}}(),yt=function(){var Wr=`
transition: `+ra.outOfTheWay+`;
`;return{selector:Oe(xs.contextId),styles:{dragging:Wr,dropAnimating:Wr,userCancel:Wr}}}(),Xt={selector:Oe(Po.contextId),styles:{always:"overflow-anchor: none;"}},tr={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;
`}},or=[yt,Ze,Xt,tr];return{always:Jo(or,"always"),resting:Jo(or,"resting"),dragging:Jo(or,"dragging"),dropAnimating:Jo(or,"dropAnimating"),userCancel:Jo(or,"userCancel")}},fs=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},Ls=function(ae){var Oe=document.createElement("style");return ae&&Oe.setAttribute("nonce",ae),Oe.type="text/css",Oe};function yl(je,ae){var Oe=n(function(){return as(je)},[je]),Ze=Object(y.useRef)(null),yt=Object(y.useRef)(null),Xt=t(_(function(jr){var sn=yt.current;sn||Ve(!1),sn.textContent=jr}),[]),tr=t(function(jr){var sn=Ze.current;sn||Ve(!1),sn.textContent=jr},[]);fs(function(){!Ze.current&&!yt.current||Ve(!1);var jr=Ls(ae),sn=Ls(ae);return Ze.current=jr,yt.current=sn,jr.setAttribute(eo+"-always",je),sn.setAttribute(eo+"-dynamic",je),Sn().appendChild(jr),Sn().appendChild(sn),tr(Oe.always),Xt(Oe.resting),function(){var vn=function(Ii){var ki=Ii.current;ki||Ve(!1),Sn().removeChild(ki),Ii.current=null};vn(Ze),vn(yt)}},[ae,tr,Xt,Oe.always,Oe.resting,je]);var or=t(function(){return Xt(Oe.dragging)},[Xt,Oe.dragging]),Wr=t(function(jr){if(jr==="DROP"){Xt(Oe.dropAnimating);return}Xt(Oe.userCancel)},[Xt,Oe.dropAnimating,Oe.userCancel]),un=t(function(){if(!yt.current)return;Xt(Oe.resting)},[Xt,Oe.resting]),zr=n(function(){return{dragging:or,dropping:Wr,resting:un}},[or,Wr,un]);return zr}var Ks=function(ae){return ae&&ae.ownerDocument?ae.ownerDocument.defaultView:window};function Ws(je){return je instanceof Ks(je).HTMLElement}function ps(je,ae){var Oe="["+ss.contextId+'="'+je+'"]',Ze=Kt(document.querySelectorAll(Oe));if(!Ze.length)return null;var yt=pe(Ze,function(Xt){return Xt.getAttribute(ss.draggableId)===ae});return yt&&Ws(yt)?yt:null}function Ms(je){var ae=Object(y.useRef)({}),Oe=Object(y.useRef)(null),Ze=Object(y.useRef)(null),yt=Object(y.useRef)(!1),Xt=t(function(sn,vn){var Un={id:sn,focus:vn};return ae.current[sn]=Un,function(){var ki=ae.current,la=ki[sn];la!==Un&&delete ki[sn]}},[]),tr=t(function(sn){var vn=ps(je,sn);vn&&vn!==document.activeElement&&vn.focus()},[je]),or=t(function(sn,vn){Oe.current===sn&&(Oe.current=vn)},[]),Wr=t(function(){if(Ze.current)return;if(!yt.current)return;Ze.current=requestAnimationFrame(function(){Ze.current=null;var sn=Oe.current;sn&&tr(sn)})},[tr]),un=t(function(sn){Oe.current=null;var vn=document.activeElement;if(!vn)return;if(vn.getAttribute(ss.draggableId)!==sn)return;Oe.current=sn},[]);fs(function(){return yt.current=!0,function(){yt.current=!1;var sn=Ze.current;sn&&cancelAnimationFrame(sn)}},[]);var zr=n(function(){return{register:Xt,tryRecordFocus:un,tryRestoreFocusRecorded:Wr,tryShiftRecord:or}},[Xt,un,Wr,or]);return zr}function Zs(){var je={draggables:{},droppables:{}},ae=[];function Oe(jr){return ae.push(jr),function(){var vn=ae.indexOf(jr);if(vn===-1)return;ae.splice(vn,1)}}function Ze(jr){ae.length&&ae.forEach(function(sn){return sn(jr)})}function yt(jr){return je.draggables[jr]||null}function Xt(jr){var sn=yt(jr);return sn||Ve(!1),sn}var tr={register:function(sn){je.draggables[sn.descriptor.id]=sn,Ze({type:"ADDITION",value:sn})},update:function(sn,vn){var Un=je.draggables[vn.descriptor.id];if(!Un)return;if(Un.uniqueId!==sn.uniqueId)return;delete je.draggables[vn.descriptor.id],je.draggables[sn.descriptor.id]=sn},unregister:function(sn){var vn=sn.descriptor.id,Un=yt(vn);if(!Un)return;if(sn.uniqueId!==Un.uniqueId)return;delete je.draggables[vn],Ze({type:"REMOVAL",value:sn})},getById:Xt,findById:yt,exists:function(sn){return Boolean(yt(sn))},getAllByType:function(sn){return lt(je.draggables).filter(function(vn){return vn.descriptor.type===sn})}};function or(jr){return je.droppables[jr]||null}function Wr(jr){var sn=or(jr);return sn||Ve(!1),sn}var un={register:function(sn){je.droppables[sn.descriptor.id]=sn},unregister:function(sn){var vn=or(sn.descriptor.id);if(!vn)return;if(sn.uniqueId!==vn.uniqueId)return;delete je.droppables[sn.descriptor.id]},getById:Wr,findById:or,exists:function(sn){return Boolean(or(sn))},getAllByType:function(sn){return lt(je.droppables).filter(function(vn){return vn.descriptor.type===sn})}};function zr(){je.draggables={},je.droppables={},ae.length=0}return{draggable:tr,droppable:un,subscribe:Oe,clean:zr}}function zs(){var je=n(Zs,[]);return Object(y.useEffect)(function(){return function(){requestAnimationFrame(je.clean)}},[je]),je}var Es=p.a.createContext(null),Ds=function(){var ae=document.body;return ae||Ve(!1),ae},tl={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Us=function(ae){return"rbd-announcement-"+ae};function Go(je){var ae=n(function(){return Us(je)},[je]),Oe=Object(y.useRef)(null);Object(y.useEffect)(function(){var Xt=document.createElement("div");return Oe.current=Xt,Xt.id=ae,Xt.setAttribute("aria-live","assertive"),Xt.setAttribute("aria-atomic","true"),Object(A.a)(Xt.style,tl),Ds().appendChild(Xt),function(){setTimeout(function(){var Wr=Ds();Wr.contains(Xt)&&Wr.removeChild(Xt),Xt===Oe.current&&(Oe.current=null)})}},[ae]);var Ze=t(function(yt){var Xt=Oe.current;if(Xt){Xt.textContent=yt;return}},[]);return Ze}var Do=0,Ts={separator:"::"};function Ns(){Do=0}function Ao(je,ae){return ae===void 0&&(ae=Ts),n(function(){return""+je+ae.separator+Do++},[ae.separator,je])}function jt(je){var ae=je.contextId,Oe=je.uniqueId;return"rbd-hidden-text-"+ae+"-"+Oe}function sr(je){var ae=je.contextId,Oe=je.text,Ze=Ao("hidden-text",{separator:"-"}),yt=n(function(){return jt({contextId:ae,uniqueId:Ze})},[Ze,ae]);return Object(y.useEffect)(function(){var tr=document.createElement("div");return tr.id=yt,tr.textContent=Oe,tr.style.display="none",Ds().appendChild(tr),function(){var Wr=Ds();Wr.contains(tr)&&Wr.removeChild(tr)}},[yt,Oe]),yt}var _n=p.a.createContext(null),hi={react:"^16.8.5","react-dom":"^16.8.5"},Nt=/(\d+)\.(\d+)\.(\d+)/,ce=function(ae){var Oe=Nt.exec(ae);Oe!=null||Ve(!1);var Ze=Number(Oe[1]),yt=Number(Oe[2]),Xt=Number(Oe[3]);return{major:Ze,minor:yt,patch:Xt,raw:ae}},Ee=function(ae,Oe){return Oe.major>ae.major?!0:Oe.major<ae.major?!1:Oe.minor>ae.minor?!0:Oe.minor<ae.minor?!1:Oe.patch>=ae.patch},Le=function(ae,Oe){var Ze=ce(ae),yt=ce(Oe);if(Ee(Ze,yt))return},Qe=`
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
`,Rt=function(ae){var Oe=ae.doctype;if(!Oe)return;Oe.name.toLowerCase()!=="html",Oe.publicId!==""};function lr(je){}function Qr(je,ae){lr(function(){Object(y.useEffect)(function(){try{je()}catch(Oe){$(`
A setup problem was encountered.
> `+Oe.message+`
`)}},ae)})}function pn(){Qr(function(){Le(hi.react,p.a.version),Rt(document)},[])}function In(je){var ae=Object(y.useRef)(je);return Object(y.useEffect)(function(){ae.current=je}),ae}function li(){var je=null;function ae(){return Boolean(je)}function Oe(tr){return tr===je}function Ze(tr){je&&Ve(!1);var or={abandon:tr};return je=or,or}function yt(){je||Ve(!1),je=null}function Xt(){je&&(je.abandon(),yt())}return{isClaimed:ae,isActive:Oe,claim:Ze,release:yt,tryAbandon:Xt}}var bi=9,Ai=13,Yi=27,ua=32,Va=33,ro=34,So=35,Ro=36,jo=37,Cs=38,vs=39,os=40,Fo,yo=(Fo={},Fo[Ai]=!0,Fo[bi]=!0,Fo),As=function(ae){yo[ae.keyCode]&&ae.preventDefault()},$s=function(){var je="visibilitychange";if(typeof document=="undefined")return je;var ae=[je,"ms"+je,"webkit"+je,"moz"+je,"o"+je],Oe=pe(ae,function(Ze){return"on"+Ze in document});return Oe||je}(),ys=0,Fa=5;function ml(je,ae){return Math.abs(ae.x-je.x)>=Fa||Math.abs(ae.y-je.y)>=Fa}var cl={type:"IDLE"};function Ps(je){var ae=je.cancel,Oe=je.completed,Ze=je.getPhase,yt=je.setPhase;return[{eventName:"mousemove",fn:function(tr){var or=tr.button,Wr=tr.clientX,un=tr.clientY;if(or!==ys)return;var zr={x:Wr,y:un},jr=Ze();if(jr.type==="DRAGGING"){tr.preventDefault(),jr.actions.move(zr);return}jr.type==="PENDING"||Ve(!1);var sn=jr.point;if(!ml(sn,zr))return;tr.preventDefault();var vn=jr.actions.fluidLift(zr);yt({type:"DRAGGING",actions:vn})}},{eventName:"mouseup",fn:function(tr){var or=Ze();if(or.type!=="DRAGGING"){ae();return}tr.preventDefault(),or.actions.drop({shouldBlockNextClick:!0}),Oe()}},{eventName:"mousedown",fn:function(tr){Ze().type==="DRAGGING"&&tr.preventDefault(),ae()}},{eventName:"keydown",fn:function(tr){var or=Ze();if(or.type==="PENDING"){ae();return}if(tr.keyCode===Yi){tr.preventDefault(),ae();return}As(tr)}},{eventName:"resize",fn:ae},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){Ze().type==="PENDING"&&ae()}},{eventName:"webkitmouseforcedown",fn:function(tr){var or=Ze();if(or.type!=="IDLE"||Ve(!1),or.actions.shouldRespectForcePress()){ae();return}tr.preventDefault()}},{eventName:$s,fn:ae}]}function ws(je){var ae=Object(y.useRef)(cl),Oe=Object(y.useRef)(le),Ze=n(function(){return{eventName:"mousedown",fn:function(jr){if(jr.defaultPrevented)return;if(jr.button!==ys)return;if(jr.ctrlKey||jr.metaKey||jr.shiftKey||jr.altKey)return;var sn=je.findClosestDraggableId(jr);if(!sn)return;var vn=je.tryGetLock(sn,tr,{sourceEvent:jr});if(!vn)return;jr.preventDefault();var Un={x:jr.clientX,y:jr.clientY};Oe.current(),un(vn,Un)}}},[je]),yt=n(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(jr){if(jr.defaultPrevented)return;var sn=je.findClosestDraggableId(jr);if(!sn)return;var vn=je.findOptionsForDraggable(sn);if(!vn)return;if(vn.shouldRespectForcePress)return;if(!je.canGetLock(sn))return;jr.preventDefault()}}},[je]),Xt=t(function(){var jr={passive:!1,capture:!0};Oe.current=Se(window,[yt,Ze],jr)},[yt,Ze]),tr=t(function(){var zr=ae.current;if(zr.type==="IDLE")return;ae.current=cl,Oe.current(),Xt()},[Xt]),or=t(function(){var zr=ae.current;tr(),zr.type==="DRAGGING"&&zr.actions.cancel({shouldBlockNextClick:!0}),zr.type==="PENDING"&&zr.actions.abort()},[tr]),Wr=t(function(){var jr={capture:!0,passive:!1},sn=Ps({cancel:or,completed:tr,getPhase:function(){return ae.current},setPhase:function(Un){ae.current=Un}});Oe.current=Se(window,sn,jr)},[or,tr]),un=t(function(jr,sn){ae.current.type==="IDLE"||Ve(!1),ae.current={type:"PENDING",point:sn,actions:jr},Wr()},[Wr]);fs(function(){return Xt(),function(){Oe.current()}},[Xt])}var Ys;function Vl(){}var Nl=(Ys={},Ys[ro]=!0,Ys[Va]=!0,Ys[Ro]=!0,Ys[So]=!0,Ys);function hl(je,ae){function Oe(){ae(),je.cancel()}function Ze(){ae(),je.drop()}return[{eventName:"keydown",fn:function(Xt){if(Xt.keyCode===Yi){Xt.preventDefault(),Oe();return}if(Xt.keyCode===ua){Xt.preventDefault(),Ze();return}if(Xt.keyCode===os){Xt.preventDefault(),je.moveDown();return}if(Xt.keyCode===Cs){Xt.preventDefault(),je.moveUp();return}if(Xt.keyCode===vs){Xt.preventDefault(),je.moveRight();return}if(Xt.keyCode===jo){Xt.preventDefault(),je.moveLeft();return}if(Nl[Xt.keyCode]){Xt.preventDefault();return}As(Xt)}},{eventName:"mousedown",fn:Oe},{eventName:"mouseup",fn:Oe},{eventName:"click",fn:Oe},{eventName:"touchstart",fn:Oe},{eventName:"resize",fn:Oe},{eventName:"wheel",fn:Oe,options:{passive:!0}},{eventName:$s,fn:Oe}]}function Os(je){var ae=Object(y.useRef)(Vl),Oe=n(function(){return{eventName:"keydown",fn:function(Xt){if(Xt.defaultPrevented)return;if(Xt.keyCode!==ua)return;var tr=je.findClosestDraggableId(Xt);if(!tr)return;var or=je.tryGetLock(tr,zr,{sourceEvent:Xt});if(!or)return;Xt.preventDefault();var Wr=!0,un=or.snapLift();ae.current();function zr(){Wr||Ve(!1),Wr=!1,ae.current(),Ze()}ae.current=Se(window,hl(un,zr),{capture:!0,passive:!1})}}},[je]),Ze=t(function(){var Xt={passive:!1,capture:!0};ae.current=Se(window,[Oe],Xt)},[Oe]);fs(function(){return Ze(),function(){ae.current()}},[Ze])}var Vs={type:"IDLE"},_l=120,ol=.15;function Ho(je){var ae=je.cancel,Oe=je.getPhase;return[{eventName:"orientationchange",fn:ae},{eventName:"resize",fn:ae},{eventName:"contextmenu",fn:function(yt){yt.preventDefault()}},{eventName:"keydown",fn:function(yt){if(Oe().type!=="DRAGGING"){ae();return}yt.keyCode===Yi&&yt.preventDefault(),ae()}},{eventName:$s,fn:ae}]}function vo(je){var ae=je.cancel,Oe=je.completed,Ze=je.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(Xt){var tr=Ze();if(tr.type!=="DRAGGING"){ae();return}tr.hasMoved=!0;var or=Xt.touches[0],Wr=or.clientX,un=or.clientY,zr={x:Wr,y:un};Xt.preventDefault(),tr.actions.move(zr)}},{eventName:"touchend",fn:function(Xt){var tr=Ze();if(tr.type!=="DRAGGING"){ae();return}Xt.preventDefault(),tr.actions.drop({shouldBlockNextClick:!0}),Oe()}},{eventName:"touchcancel",fn:function(Xt){if(Ze().type!=="DRAGGING"){ae();return}Xt.preventDefault(),ae()}},{eventName:"touchforcechange",fn:function(Xt){var tr=Ze();tr.type!=="IDLE"||Ve(!1);var or=Xt.touches[0];if(!or)return;var Wr=or.force>=ol;if(!Wr)return;var un=tr.actions.shouldRespectForcePress();if(tr.type==="PENDING"){un&&ae();return}if(un){if(tr.hasMoved){Xt.preventDefault();return}ae();return}Xt.preventDefault()}},{eventName:$s,fn:ae}]}function $o(je){var ae=Object(y.useRef)(Vs),Oe=Object(y.useRef)(le),Ze=t(function(){return ae.current},[]),yt=t(function(vn){ae.current=vn},[]),Xt=n(function(){return{eventName:"touchstart",fn:function(vn){if(vn.defaultPrevented)return;var Un=je.findClosestDraggableId(vn);if(!Un)return;var Ii=je.tryGetLock(Un,or,{sourceEvent:vn});if(!Ii)return;var ki=vn.touches[0],la=ki.clientX,Zi=ki.clientY,Ya={x:la,y:Zi};Oe.current(),jr(Ii,Ya)}}},[je]),tr=t(function(){var vn={capture:!0,passive:!1};Oe.current=Se(window,[Xt],vn)},[Xt]),or=t(function(){var sn=ae.current;if(sn.type==="IDLE")return;sn.type==="PENDING"&&clearTimeout(sn.longPressTimerId),yt(Vs),Oe.current(),tr()},[tr,yt]),Wr=t(function(){var sn=ae.current;or(),sn.type==="DRAGGING"&&sn.actions.cancel({shouldBlockNextClick:!0}),sn.type==="PENDING"&&sn.actions.abort()},[or]),un=t(function(){var vn={capture:!0,passive:!1},Un={cancel:Wr,completed:or,getPhase:Ze},Ii=Se(window,vo(Un),vn),ki=Se(window,Ho(Un),vn);Oe.current=function(){Ii(),ki()}},[Wr,Ze,or]),zr=t(function(){var vn=Ze();vn.type==="PENDING"||Ve(!1);var Un=vn.actions.fluidLift(vn.point);yt({type:"DRAGGING",actions:Un,hasMoved:!1})},[Ze,yt]),jr=t(function(vn,Un){Ze().type==="IDLE"||Ve(!1);var Ii=setTimeout(zr,_l);yt({type:"PENDING",point:Un,actions:vn,longPressTimerId:Ii}),un()},[un,Ze,yt,zr]);fs(function(){return tr(),function(){Oe.current();var Un=Ze();Un.type==="PENDING"&&(clearTimeout(Un.longPressTimerId),yt(Vs))}},[Ze,tr,yt]),fs(function(){var vn=Se(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return vn},[])}function ms(je){lr(function(){var ae=In(je);Qr(function(){ae.current.length===je.length||Ve(!1)})})}var _s={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function qo(je,ae){if(ae==null)return!1;var Oe=Boolean(_s[ae.tagName.toLowerCase()]);if(Oe)return!0;var Ze=ae.getAttribute("contenteditable");return Ze==="true"||Ze===""?!0:ae===je?!1:qo(je,ae.parentElement)}function Is(je,ae){var Oe=ae.target;return Ws(Oe)?qo(je,Oe):!1}var Rs=function(ae){return e(ae.getBoundingClientRect()).center};function nl(je){return je instanceof Ks(je).Element}var Il=function(){var je="matches";if(typeof document=="undefined")return je;var ae=[je,"msMatchesSelector","webkitMatchesSelector"],Oe=pe(ae,function(Ze){return Ze in Element.prototype});return Oe||je}();function Tl(je,ae){return je==null?null:je[Il](ae)?je:Tl(je.parentElement,ae)}function Ul(je,ae){return je.closest?je.closest(ae):Tl(je,ae)}function Dl(je){return"["+ss.contextId+'="'+je+'"]'}function Rl(je,ae){var Oe=ae.target;if(!nl(Oe))return null;var Ze=Dl(je),yt=Ul(Oe,Ze);return yt&&Ws(yt)?yt:null}function Hl(je,ae){var Oe=Rl(je,ae);return Oe?Oe.getAttribute(ss.draggableId):null}function sl(je,ae){var Oe="["+xs.contextId+'="'+je+'"]',Ze=Kt(document.querySelectorAll(Oe)),yt=pe(Ze,function(Xt){return Xt.getAttribute(xs.id)===ae});return yt&&Ws(yt)?yt:null}function Gs(je){je.preventDefault()}function ll(je){var ae=je.expected,Oe=je.phase,Ze=je.isLockActive,yt=je.shouldWarn;return Ze()?!(ae!==Oe):!1}function Xs(je){var ae=je.lockAPI,Oe=je.store,Ze=je.registry,yt=je.draggableId;if(ae.isClaimed())return!1;var Xt=Ze.draggable.findById(yt);return Xt&&Xt.options.isEnabled?!!ui(Oe.getState(),yt):!1}function bl(je){var ae=je.lockAPI,Oe=je.contextId,Ze=je.store,yt=je.registry,Xt=je.draggableId,tr=je.forceSensorStop,or=je.sourceEvent,Wr=Xs({lockAPI:ae,store:Ze,registry:yt,draggableId:Xt});if(!Wr)return null;var un=yt.draggable.getById(Xt),zr=sl(Oe,un.descriptor.id);if(!zr)return null;if(or&&!un.options.canDragInteractiveElements&&Is(zr,or))return null;var jr=ae.claim(tr||le),sn="PRE_DRAG";function vn(){return un.options.shouldRespectForcePress}function Un(){return ae.isActive(jr)}function Ii(Za,Xo){ll({expected:Za,phase:sn,isLockActive:Un,shouldWarn:!0})&&Ze.dispatch(Xo())}var ki=Ii.bind(null,"DRAGGING");function la(Za){function Xo(){ae.release(),sn="COMPLETED"}sn!=="PRE_DRAG"&&(Xo(),sn==="PRE_DRAG"||Ve(!1)),Ze.dispatch(Sr(Za.liftActionArgs)),sn="DRAGGING";function ls(N,j){if(j===void 0&&(j={shouldBlockNextClick:!1}),Za.cleanup(),j.shouldBlockNextClick){var ie=Se(window,[{eventName:"click",fn:Gs,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(ie)}Xo(),Ze.dispatch(Ri({reason:N}))}return Object(A.a)({isActive:function(){return ll({expected:"DRAGGING",phase:sn,isLockActive:Un,shouldWarn:!1})},shouldRespectForcePress:vn,drop:function(j){return ls("DROP",j)},cancel:function(j){return ls("CANCEL",j)}},Za.actions)}function Zi(Za){var Xo=R(function(N){ki(function(){return kt({client:N})})}),ls=la({liftActionArgs:{id:Xt,clientSelection:Za,movementMode:"FLUID"},cleanup:function(){return Xo.cancel()},actions:{move:Xo}});return Object(A.a)({},ls,{move:Xo})}function Ya(){var Za={moveUp:function(){return ki(Jr)},moveRight:function(){return ki(Tn)},moveDown:function(){return ki(xn)},moveLeft:function(){return ki(wn)}};return la({liftActionArgs:{id:Xt,clientSelection:Rs(zr),movementMode:"SNAP"},cleanup:le,actions:Za})}function wa(){var Za=ll({expected:"PRE_DRAG",phase:sn,isLockActive:Un,shouldWarn:!0});Za&&ae.release()}var po={isActive:function(){return ll({expected:"PRE_DRAG",phase:sn,isLockActive:Un,shouldWarn:!1})},shouldRespectForcePress:vn,fluidLift:Zi,snapLift:Ya,abort:wa};return po}var kl=[ws,Os,$o];function Yl(je){var ae=je.contextId,Oe=je.store,Ze=je.registry,yt=je.customSensors,Xt=je.enableDefaultSensors,tr=[].concat(Xt?kl:[],yt||[]),or=Object(y.useState)(function(){return li()})[0],Wr=t(function(Zi,Ya){Zi.isDragging&&!Ya.isDragging&&or.tryAbandon()},[or]);fs(function(){var Zi=Oe.getState(),Ya=Oe.subscribe(function(){var wa=Oe.getState();Wr(Zi,wa),Zi=wa});return Ya},[or,Oe,Wr]),fs(function(){return or.tryAbandon},[or.tryAbandon]);var un=t(function(la){return Xs({lockAPI:or,registry:Ze,store:Oe,draggableId:la})},[or,Ze,Oe]),zr=t(function(la,Zi,Ya){return bl({lockAPI:or,registry:Ze,contextId:ae,store:Oe,draggableId:la,forceSensorStop:Zi,sourceEvent:Ya&&Ya.sourceEvent?Ya.sourceEvent:null})},[ae,or,Ze,Oe]),jr=t(function(la){return Hl(ae,la)},[ae]),sn=t(function(la){var Zi=Ze.draggable.findById(la);return Zi?Zi.options:null},[Ze.draggable]),vn=t(function(){if(!or.isClaimed())return;or.tryAbandon(),Oe.getState().phase!=="IDLE"&&Oe.dispatch($n())},[or,Oe]),Un=t(or.isClaimed,[or]),Ii=n(function(){return{canGetLock:un,tryGetLock:zr,findClosestDraggableId:jr,findOptionsForDraggable:sn,tryReleaseLock:vn,isLockClaimed:Un}},[un,zr,jr,sn,vn,Un]);ms(tr);for(var ki=0;ki<tr.length;ki++)tr[ki](Ii)}var Zl=function(ae){return{onBeforeCapture:ae.onBeforeCapture,onBeforeDragStart:ae.onBeforeDragStart,onDragStart:ae.onDragStart,onDragEnd:ae.onDragEnd,onDragUpdate:ae.onDragUpdate}};function wl(je){return je.current||Ve(!1),je.current}function Gl(je){var ae=je.contextId,Oe=je.setCallbacks,Ze=je.sensors,yt=je.nonce,Xt=je.dragHandleUsageInstructions,tr=Object(y.useRef)(null);pn();var or=In(je),Wr=t(function(){return Zl(or.current)},[or]),un=Go(ae),zr=sr({contextId:ae,text:Xt}),jr=yl(ae,yt),sn=t(function(N){wl(tr).dispatch(N)},[]),vn=n(function(){return Object(m.b)({publishWhileDragging:dr,updateDroppableScroll:Gr,updateDroppableIsEnabled:ln,updateDroppableIsCombineEnabled:kn,collectionStarting:Rr},sn)},[sn]),Un=zs(),Ii=n(function(){return si(Un,vn)},[Un,vn]),ki=n(function(){return oo(Object(A.a)({scrollWindow:ai,scrollDroppable:Ii.scrollDroppable},Object(m.b)({move:kt},sn)))},[Ii.scrollDroppable,sn]),la=Ms(ae),Zi=n(function(){return Cr({announce:un,autoScroller:ki,dimensionMarshal:Ii,focusMarshal:la,getResponders:Wr,styleMarshal:jr})},[un,ki,Ii,la,Wr,jr]);tr.current=Zi;var Ya=t(function(){var N=wl(tr),j=N.getState();j.phase!=="IDLE"&&N.dispatch($n())},[]),wa=t(function(){var N=wl(tr).getState();return N.isDragging||N.phase==="DROP_ANIMATING"},[]),po=n(function(){return{isDragging:wa,tryAbort:Ya}},[wa,Ya]);Oe(po);var Za=t(function(N){return ui(wl(tr).getState(),N)},[]),Xo=t(function(){return $r(wl(tr).getState())},[]),ls=n(function(){return{marshal:Ii,focus:la,contextId:ae,canLift:Za,isMovementAllowed:Xo,dragHandleUsageInstructionsId:zr,registry:Un}},[ae,Ii,zr,la,Za,Xo,Un]);return Yl({contextId:ae,store:Zi,registry:Un,customSensors:Ze,enableDefaultSensors:je.enableDefaultSensors!==!1}),Object(y.useEffect)(function(){return Ya},[Ya]),p.a.createElement(_n.Provider,{value:ls},p.a.createElement(f.a,{context:Es,store:Zi},je.children))}var tu=0;function Iu(){tu=0}function bu(){return n(function(){return""+tu++},[])}function du(){Iu(),Ns()}function hu(je){var ae=bu(),Oe=je.dragHandleUsageInstructions||be.dragHandleUsageInstructions;return p.a.createElement(ct,null,function(Ze){return p.a.createElement(Gl,{nonce:je.nonce,contextId:ae,setCallbacks:Ze,dragHandleUsageInstructions:Oe,enableDefaultSensors:je.enableDefaultSensors,sensors:je.sensors,onBeforeCapture:je.onBeforeCapture,onBeforeDragStart:je.onBeforeDragStart,onDragStart:je.onDragStart,onDragUpdate:je.onDragUpdate,onDragEnd:je.onDragEnd},je.children)})}var nu=function(ae){return function(Oe){return ae===Oe}},Sl=nu("scroll"),Ml=nu("auto"),Ll=nu("visible"),$l=function(ae,Oe){return Oe(ae.overflowX)||Oe(ae.overflowY)},Pl=function(ae,Oe){return Oe(ae.overflowX)&&Oe(ae.overflowY)},fu=function(ae){var Oe=window.getComputedStyle(ae),Ze={overflowX:Oe.overflowX,overflowY:Oe.overflowY};return $l(Ze,Sl)||$l(Ze,Ml)},xl=function(){return!1;var ae,Oe;if(!fu(ae))return!1;var Ze,yt;if(Pl(yt,Ll))return!1},El=function je(ae){return ae==null?null:ae===document.body?xl()?ae:null:ae===document.documentElement?null:fu(ae)?ae:je(ae.parentElement)},pu=function(ae){if(!ae)return;var Oe=El(ae.parentElement);if(!Oe)return},mu=function(ae){return{x:ae.scrollLeft,y:ae.scrollTop}},Lu=function je(ae){if(!ae)return!1;var Oe=window.getComputedStyle(ae);return Oe.position==="fixed"?!0:je(ae.parentElement)},Kl=function(ae){var Oe=El(ae),Ze=Lu(ae);return{closestScrollable:Oe,isFixedOnPage:Ze}},ql=function(ae){var Oe=ae.descriptor,Ze=ae.isEnabled,yt=ae.isCombineEnabled,Xt=ae.isFixedOnPage,tr=ae.direction,or=ae.client,Wr=ae.page,un=ae.closest,zr=function(){if(!un)return null;var Un=un.scrollSize,Ii=un.client,ki=Xn({scrollHeight:Un.scrollHeight,scrollWidth:Un.scrollWidth,height:Ii.paddingBox.height,width:Ii.paddingBox.width});return{pageMarginBox:un.page.marginBox,frameClient:Ii,scrollSize:Un,shouldClipSubject:un.shouldClipSubject,scroll:{initial:un.scroll,current:un.scroll,max:ki,diff:{value:Ce,displacement:Ce}}}}(),jr=tr==="vertical"?Qn:$t,sn=Ke({page:Wr,withPlaceholder:null,axis:jr,frame:zr}),vn={descriptor:Oe,isCombineEnabled:yt,isFixedOnPage:Xt,axis:jr,isEnabled:Ze,client:or,page:Wr,frame:zr,subject:sn};return vn},iu=function(ae,Oe){var Ze=T(ae);if(!Oe)return Ze;if(ae!==Oe)return Ze;var yt=Ze.paddingBox.top-Oe.scrollTop,Xt=Ze.paddingBox.left-Oe.scrollLeft,tr=yt+Oe.scrollHeight,or=Xt+Oe.scrollWidth,Wr={top:yt,right:or,bottom:tr,left:Xt},un=u(Wr,Ze.border),zr=h({borderBox:un,margin:Ze.margin,border:Ze.border,padding:Ze.padding});return zr},au=function(ae){var Oe=ae.ref,Ze=ae.descriptor,yt=ae.env,Xt=ae.windowScroll,tr=ae.direction,or=ae.isDropDisabled,Wr=ae.isCombineEnabled,un=ae.shouldClipSubject,zr=yt.closestScrollable,jr=iu(Oe,zr),sn=w(jr,Xt),vn=function(){if(!zr)return null;var Ii=T(zr),ki={scrollHeight:zr.scrollHeight,scrollWidth:zr.scrollWidth};return{client:Ii,page:w(Ii,Xt),scroll:mu(zr),scrollSize:ki,shouldClipSubject:un}}(),Un=ql({descriptor:Ze,isEnabled:!or,isCombineEnabled:Wr,isFixedOnPage:yt.isFixedOnPage,direction:tr,client:jr,page:sn,closest:vn});return Un},Ql={passive:!1},Ru={passive:!0},Nu=function(ae){return ae.shouldPublishImmediately?Ql:Ru};function Jl(je){var ae=Object(y.useContext)(je);return ae||Ve(!1),ae}var gu=function(ae){return ae&&ae.env.closestScrollable||null};function wu(je){var ae=Object(y.useRef)(null),Oe=Jl(_n),Ze=Ao("droppable"),yt=Oe.registry,Xt=Oe.marshal,tr=In(je),or=n(function(){return{id:je.droppableId,type:je.type,mode:je.mode}},[je.droppableId,je.mode,je.type]),Wr=Object(y.useRef)(or),un=n(function(){return _(function(wa,po){ae.current||Ve(!1);var Za={x:wa,y:po};Xt.updateDroppableScroll(or.id,Za)})},[or.id,Xt]),zr=t(function(){var wa=ae.current;return!wa||!wa.env.closestScrollable?Ce:mu(wa.env.closestScrollable)},[]),jr=t(function(){var wa=zr();un(wa.x,wa.y)},[zr,un]),sn=n(function(){return R(jr)},[jr]),vn=t(function(){var wa=ae.current,po=gu(wa);wa&&po||Ve(!1);var Za=wa.scrollOptions;if(Za.shouldPublishImmediately){jr();return}sn()},[sn,jr]),Un=t(function(wa,po){ae.current&&Ve(!1);var Za=tr.current,Xo=Za.getDroppableRef();Xo||Ve(!1);var ls=Kl(Xo),N={ref:Xo,descriptor:or,env:ls,scrollOptions:po};ae.current=N;var j=au({ref:Xo,descriptor:or,env:ls,windowScroll:wa,direction:Za.direction,isDropDisabled:Za.isDropDisabled,isCombineEnabled:Za.isCombineEnabled,shouldClipSubject:!Za.ignoreContainerClipping}),ie=ls.closestScrollable;return ie&&(ie.setAttribute(el.contextId,Oe.contextId),ie.addEventListener("scroll",vn,Nu(N.scrollOptions))),j},[Oe.contextId,or,vn,tr]),Ii=t(function(){var wa=ae.current,po=gu(wa);return wa&&po||Ve(!1),mu(po)},[]),ki=t(function(){var wa=ae.current;wa||Ve(!1);var po=gu(wa);if(ae.current=null,!po)return;sn.cancel(),po.removeAttribute(el.contextId),po.removeEventListener("scroll",vn,Nu(wa.scrollOptions))},[vn,sn]),la=t(function(wa){var po=ae.current;po||Ve(!1);var Za=gu(po);Za||Ve(!1),Za.scrollTop+=wa.y,Za.scrollLeft+=wa.x},[]),Zi=n(function(){return{getDimensionAndWatchScroll:Un,getScrollWhileDragging:Ii,dragStopped:ki,scroll:la}},[ki,Un,Ii,la]),Ya=n(function(){return{uniqueId:Ze,descriptor:or,callbacks:Zi}},[Zi,or,Ze]);fs(function(){return Wr.current=Ya.descriptor,yt.droppable.register(Ya),function(){ae.current&&ki(),yt.droppable.unregister(Ya)}},[Zi,or,ki,Ya,Xt,yt.droppable]),fs(function(){if(!ae.current)return;Xt.updateDroppableIsEnabled(Wr.current.id,!je.isDropDisabled)},[je.isDropDisabled,Xt]),fs(function(){if(!ae.current)return;Xt.updateDroppableIsCombineEnabled(Wr.current.id,je.isCombineEnabled)},[je.isCombineEnabled,Xt])}function vu(){}var ul={width:0,height:0,margin:Ht},Ol=function(ae){var Oe=ae.isAnimatingOpenOnMount,Ze=ae.placeholder,yt=ae.animate;return Oe||yt==="close"?ul:{height:Ze.client.borderBox.height,width:Ze.client.borderBox.width,margin:Ze.client.margin}},ru=function(ae){var Oe=ae.isAnimatingOpenOnMount,Ze=ae.placeholder,yt=ae.animate,Xt=Ol({isAnimatingOpenOnMount:Oe,placeholder:Ze,animate:yt});return{display:Ze.display,boxSizing:"border-box",width:Xt.width,height:Xt.height,marginTop:Xt.margin.top,marginRight:Xt.margin.right,marginBottom:Xt.margin.bottom,marginLeft:Xt.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:yt!=="none"?ra.placeholder:null}};function Du(je){var ae=Object(y.useRef)(null),Oe=t(function(){if(!ae.current)return;clearTimeout(ae.current),ae.current=null},[]),Ze=je.animate,yt=je.onTransitionEnd,Xt=je.onClose,tr=je.contextId,or=Object(y.useState)(je.animate==="open"),Wr=or[0],un=or[1];Object(y.useEffect)(function(){return Wr?Ze!=="open"?(Oe(),un(!1),vu):ae.current?vu:(ae.current=setTimeout(function(){ae.current=null,un(!1)}),Oe):vu},[Ze,Wr,Oe]);var zr=t(function(sn){if(sn.propertyName!=="height")return;yt(),Ze==="close"&&Xt()},[Ze,Xt,yt]),jr=ru({isAnimatingOpenOnMount:Wr,animate:je.animate,placeholder:je.placeholder});return p.a.createElement(je.placeholder.tagName,{style:jr,"data-rbd-placeholder-context-id":tr,onTransitionEnd:zr,ref:je.innerRef})}var Su=p.a.memo(Du),cu=p.a.createContext(null);function ou(je){je&&Ws(je)||Ve(!1)}function su(je){return typeof je=="boolean"}function xu(je,ae){ae.forEach(function(Oe){return Oe(je)})}var Au=[function(ae){var Oe=ae.props;Oe.droppableId||Ve(!1),typeof Oe.droppableId=="string"||Ve(!1)},function(ae){var Oe=ae.props;su(Oe.isDropDisabled)||Ve(!1),su(Oe.isCombineEnabled)||Ve(!1),su(Oe.ignoreContainerClipping)||Ve(!1)},function(ae){var Oe=ae.getDroppableRef;ou(Oe())}],ve=[function(ae){var Oe=ae.props,Ze=ae.getPlaceholderRef;if(!Oe.placeholder)return;var yt=Ze();if(yt)return}],q=[function(ae){var Oe=ae.props;Oe.renderClone||Ve(!1)},function(ae){var Oe=ae.getPlaceholderRef;Oe()&&Ve(!1)}];function L(je){Qr(function(){xu(je,Au),je.props.mode==="standard"&&xu(je,ve),je.props.mode==="virtual"&&xu(je,q)})}var K=function(je){Object(S.a)(ae,je);function ae(){for(var Ze,yt=arguments.length,Xt=new Array(yt),tr=0;tr<yt;tr++)Xt[tr]=arguments[tr];return Ze=je.call.apply(je,[this].concat(Xt))||this,Ze.state={isVisible:Boolean(Ze.props.on),data:Ze.props.on,animate:Ze.props.shouldAnimate&&Ze.props.on?"open":"none"},Ze.onClose=function(){if(Ze.state.animate!=="close")return;Ze.setState({isVisible:!1})},Ze}ae.getDerivedStateFromProps=function(yt,Xt){return yt.shouldAnimate?yt.on?{isVisible:!0,data:yt.on,animate:"open"}:Xt.isVisible?{isVisible:!0,data:Xt.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(yt.on),data:yt.on,animate:"none"}};var Oe=ae.prototype;return Oe.render=function(){if(!this.state.isVisible)return null;var yt={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(yt)},ae}(p.a.PureComponent),H={dragging:5e3,dropAnimating:4500},J=function(ae,Oe){return Oe?ra.drop(Oe.duration):ae?ra.snap:ra.fluid},ne=function(ae,Oe){return ae?Oe?Qi.opacity.drop:Qi.opacity.combining:null},we=function(ae){return ae.forceShouldAnimate!=null?ae.forceShouldAnimate:ae.mode==="SNAP"};function _e(je){var ae=je.dimension,Oe=ae.client,Ze=je.offset,yt=je.combineWith,Xt=je.dropping,tr=Boolean(yt),or=we(je),Wr=Boolean(Xt),un=Wr?Ra.drop(Ze,tr):Ra.moveTo(Ze),zr={position:"fixed",top:Oe.marginBox.top,left:Oe.marginBox.left,boxSizing:"border-box",width:Oe.borderBox.width,height:Oe.borderBox.height,transition:J(or,Xt),transform:un,opacity:ne(tr,Wr),zIndex:Wr?H.dropAnimating:H.dragging,pointerEvents:"none"};return zr}function Xe(je){return{transform:Ra.moveTo(je.offset),transition:je.shouldAnimateDisplacement?null:"none"}}function ut(je){return je.type==="DRAGGING"?_e(je):Xe(je)}function ht(je,ae,Oe){Oe===void 0&&(Oe=Ce);var Ze=window.getComputedStyle(ae),yt=ae.getBoundingClientRect(),Xt=x(yt,Ze),tr=w(Xt,Oe),or={client:Xt,tagName:ae.tagName.toLowerCase(),display:Ze.display},Wr={x:Xt.marginBox.width,y:Xt.marginBox.height},un={descriptor:je,placeholder:or,displaceBy:Wr,client:Xt,page:tr};return un}function Qt(je){var ae=Ao("draggable"),Oe=je.descriptor,Ze=je.registry,yt=je.getDraggableRef,Xt=je.canDragInteractiveElements,tr=je.shouldRespectForcePress,or=je.isEnabled,Wr=n(function(){return{canDragInteractiveElements:Xt,shouldRespectForcePress:tr,isEnabled:or}},[Xt,or,tr]),un=t(function(vn){var Un=yt();return Un||Ve(!1),ht(Oe,Un,vn)},[Oe,yt]),zr=n(function(){return{uniqueId:ae,descriptor:Oe,options:Wr,getDimension:un}},[Oe,un,Wr,ae]),jr=Object(y.useRef)(zr),sn=Object(y.useRef)(!0);fs(function(){return Ze.draggable.register(jr.current),function(){return Ze.draggable.unregister(jr.current)}},[Ze.draggable]),fs(function(){if(sn.current){sn.current=!1;return}var vn=jr.current;jr.current=zr,Ze.draggable.update(zr,vn)},[zr,Ze.draggable])}function Tr(je,ae,Oe){Qr(function(){function Ze(Xt){return"Draggable[id: "+Xt+"]: "}var yt=je.draggableId;if(yt||Ve(!1),typeof yt=="string"||Ve(!1),oe(je.index)||Ve(!1),je.mapped.type==="DRAGGING")return;ou(Oe()),je.isEnabled&&(ps(ae,yt)||Ve(!1))})}function br(je){lr(function(){var ae=Object(y.useRef)(je);Qr(function(){je===ae.current||Ve(!1)},[je])})}function Kr(je){je.preventDefault()}function Zr(je){var ae=Object(y.useRef)(null),Oe=t(function(N){ae.current=N},[]),Ze=t(function(){return ae.current},[]),yt=Jl(_n),Xt=yt.contextId,tr=yt.dragHandleUsageInstructionsId,or=yt.registry,Wr=Jl(cu),un=Wr.type,zr=Wr.droppableId,jr=n(function(){return{id:je.draggableId,index:je.index,type:un,droppableId:zr}},[je.draggableId,je.index,un,zr]),sn=je.children,vn=je.draggableId,Un=je.isEnabled,Ii=je.shouldRespectForcePress,ki=je.canDragInteractiveElements,la=je.isClone,Zi=je.mapped,Ya=je.dropAnimationFinished;if(Tr(je,Xt,Ze),br(la),!la){var wa=n(function(){return{descriptor:jr,registry:or,getDraggableRef:Ze,canDragInteractiveElements:ki,shouldRespectForcePress:Ii,isEnabled:Un}},[jr,or,Ze,ki,Ii,Un]);Qt(wa)}var po=n(function(){return Un?{tabIndex:0,role:"button","aria-describedby":tr,"data-rbd-drag-handle-draggable-id":vn,"data-rbd-drag-handle-context-id":Xt,draggable:!1,onDragStart:Kr}:null},[Xt,tr,vn,Un]),Za=t(function(N){if(Zi.type!=="DRAGGING")return;if(!Zi.dropping)return;if(N.propertyName!=="transform")return;Ya()},[Ya,Zi]),Xo=n(function(){var N=ut(Zi),j=Zi.type==="DRAGGING"&&Zi.dropping?Za:null,ie={innerRef:Oe,draggableProps:{"data-rbd-draggable-context-id":Xt,"data-rbd-draggable-id":vn,style:N,onTransitionEnd:j},dragHandleProps:po};return ie},[Xt,po,vn,Zi,Za,Oe]),ls=n(function(){return{draggableId:jr.id,type:jr.type,source:{index:jr.index,droppableId:jr.droppableId}}},[jr.droppableId,jr.id,jr.index,jr.type]);return sn(Xo,Zi.snapshot,ls)}var Pn=function(ae,Oe){return ae===Oe},Nn=function(ae){var Oe=ae.combine,Ze=ae.destination;return Ze?Ze.droppableId:Oe?Oe.droppableId:null},Jn=function(ae){return ae.combine?ae.combine.draggableId:null},wi=function(ae){return ae.at&&ae.at.type==="COMBINE"?ae.at.combine.draggableId:null};function sa(){var je=_(function(yt,Xt){return{x:yt,y:Xt}}),ae=_(function(yt,Xt,tr,or,Wr){return{isDragging:!0,isClone:Xt,isDropAnimating:Boolean(Wr),dropAnimation:Wr,mode:yt,draggingOver:tr,combineWith:or,combineTargetFor:null}}),Oe=_(function(yt,Xt,tr,or,Wr,un,zr){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:Wr,combineWith:un,mode:Xt,offset:yt,dimension:tr,forceShouldAnimate:zr,snapshot:ae(Xt,or,Wr,un,null)}}}),Ze=function(Xt,tr){if(Xt.isDragging){if(Xt.critical.draggable.id!==tr.draggableId)return null;var or=Xt.current.client.offset,Wr=Xt.dimensions.draggables[tr.draggableId],un=ei(Xt.impact),zr=wi(Xt.impact),jr=Xt.forceShouldAnimate;return Oe(je(or.x,or.y),Xt.movementMode,Wr,tr.isClone,un,zr,jr)}if(Xt.phase==="DROP_ANIMATING"){var sn=Xt.completed;if(sn.result.draggableId!==tr.draggableId)return null;var vn=tr.isClone,Un=Xt.dimensions.draggables[tr.draggableId],Ii=sn.result,ki=Ii.mode,la=Nn(Ii),Zi=Jn(Ii),Ya=Xt.dropDuration,wa={duration:Ya,curve:Hi.drop,moveTo:Xt.newHomeClientOffset,opacity:Zi?Qi.opacity.drop:null,scale:Zi?Qi.scale.drop:null};return{mapped:{type:"DRAGGING",offset:Xt.newHomeClientOffset,dimension:Un,dropping:wa,draggingOver:la,combineWith:Zi,mode:ki,forceShouldAnimate:null,snapshot:ae(ki,vn,la,Zi,wa)}}}return null};return Ze}function Wi(je){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:je,combineWith:null}}var Ji={mapped:{type:"SECONDARY",offset:Ce,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Wi(null)}};function La(){var je=_(function(tr,or){return{x:tr,y:or}}),ae=_(Wi),Oe=_(function(tr,or,Wr){return or===void 0&&(or=null),{mapped:{type:"SECONDARY",offset:tr,combineTargetFor:or,shouldAnimateDisplacement:Wr,snapshot:ae(or)}}}),Ze=function(or){return or?Oe(Ce,or,!0):null},yt=function(or,Wr,un,zr){var jr=un.displaced.visible[or],sn=Boolean(zr.inVirtualList&&zr.effected[or]),vn=xr(un),Un=vn&&vn.draggableId===or?Wr:null;if(!jr){if(!sn)return Ze(Un);if(un.displaced.invisible[or])return null;var Ii=Ie(zr.displacedBy.point),ki=je(Ii.x,Ii.y);return Oe(ki,Un,!0)}if(sn)return Ze(Un);var la=un.displacedBy.point,Zi=je(la.x,la.y);return Oe(Zi,Un,jr.shouldAnimate)},Xt=function(or,Wr){if(or.isDragging)return or.critical.draggable.id===Wr.draggableId?null:yt(Wr.draggableId,or.critical.draggable.id,or.impact,or.afterCritical);if(or.phase==="DROP_ANIMATING"){var un=or.completed;return un.result.draggableId===Wr.draggableId?null:yt(Wr.draggableId,un.result.draggableId,un.impact,un.afterCritical)}return null};return Xt}var Xa=function(){var ae=sa(),Oe=La(),Ze=function(Xt,tr){return ae(Xt,tr)||Oe(Xt,tr)||Ji};return Ze},Ua={dropAnimationFinished:Bi},ba=Object(f.c)(Xa,Ua,null,{context:Es,pure:!0,areStatePropsEqual:Pn})(Zr);function _o(je){var ae=Jl(cu),Oe=ae.isUsingCloneFor;return Oe===je.draggableId&&!je.isClone?null:p.a.createElement(ba,je)}function bs(je){var ae=typeof je.isDragDisabled=="boolean"?!je.isDragDisabled:!0,Oe=Boolean(je.disableInteractiveElementBlocking),Ze=Boolean(je.shouldRespectForcePress);return p.a.createElement(_o,Object(A.a)({},je,{isClone:!1,isEnabled:ae,canDragInteractiveElements:Oe,shouldRespectForcePress:Ze}))}function ds(je){var ae=Object(y.useContext)(_n);ae||Ve(!1);var Oe=ae.contextId,Ze=ae.isMovementAllowed,yt=Object(y.useRef)(null),Xt=Object(y.useRef)(null),tr=je.children,or=je.droppableId,Wr=je.type,un=je.mode,zr=je.direction,jr=je.ignoreContainerClipping,sn=je.isDropDisabled,vn=je.isCombineEnabled,Un=je.snapshot,Ii=je.useClone,ki=je.updateViewportMaxScroll,la=je.getContainerForClone,Zi=t(function(){return yt.current},[]),Ya=t(function(se){yt.current=se},[]),wa=t(function(){return Xt.current},[]),po=t(function(se){Xt.current=se},[]);L({props:je,getDroppableRef:Zi,getPlaceholderRef:wa});var Za=t(function(){Ze()&&ki({maxScroll:Xr()})},[Ze,ki]);wu({droppableId:or,type:Wr,mode:un,direction:zr,isDropDisabled:sn,isCombineEnabled:vn,ignoreContainerClipping:jr,getDroppableRef:Zi});var Xo=p.a.createElement(K,{on:je.placeholder,shouldAnimate:je.shouldAnimatePlaceholder},function(se){var me=se.onClose,ze=se.data,It=se.animate;return p.a.createElement(Su,{placeholder:ze,onClose:me,innerRef:po,animate:It,contextId:Oe,onTransitionEnd:Za})}),ls=n(function(){return{innerRef:Ya,placeholder:Xo,droppableProps:{"data-rbd-droppable-id":or,"data-rbd-droppable-context-id":Oe}}},[Oe,or,Xo,Ya]),N=Ii?Ii.dragging.draggableId:null,j=n(function(){return{droppableId:or,type:Wr,isUsingCloneFor:N}},[or,N,Wr]);function ie(){if(!Ii)return null;var se=Ii.dragging,me=Ii.render,ze=p.a.createElement(_o,{draggableId:se.draggableId,index:se.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(It,ir){return me(It,ir,se)});return M.a.createPortal(ze,la())}return p.a.createElement(cu.Provider,{value:j},tr(ls,Un),ie())}var rl=function(ae,Oe){return ae===Oe.droppable.type},xe=function(ae,Oe){return Oe.draggables[ae.draggable.id]},Ye=function(){var ae={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},Oe=Object(A.a)({},ae,{shouldAnimatePlaceholder:!1}),Ze=_(function(tr){return{draggableId:tr.id,type:tr.type,source:{index:tr.index,droppableId:tr.droppableId}}}),yt=_(function(tr,or,Wr,un,zr,jr){var sn=zr.descriptor.id,vn=zr.descriptor.droppableId===tr;if(vn){var Un=jr?{render:jr,dragging:Ze(zr.descriptor)}:null,Ii={isDraggingOver:Wr,draggingOverWith:Wr?sn:null,draggingFromThisWith:sn,isUsingPlaceholder:!0};return{placeholder:zr.placeholder,shouldAnimatePlaceholder:!1,snapshot:Ii,useClone:Un}}if(!or)return Oe;if(!un)return ae;var ki={isDraggingOver:Wr,draggingOverWith:sn,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:zr.placeholder,shouldAnimatePlaceholder:!0,snapshot:ki,useClone:null}}),Xt=function(or,Wr){var un=Wr.droppableId,zr=Wr.type,jr=!Wr.isDropDisabled,sn=Wr.renderClone;if(or.isDragging){var vn=or.critical;if(!rl(zr,vn))return Oe;var Un=xe(vn,or.dimensions),Ii=ei(or.impact)===un;return yt(un,jr,Ii,Ii,Un,sn)}if(or.phase==="DROP_ANIMATING"){var ki=or.completed;if(!rl(zr,ki.critical))return Oe;var la=xe(ki.critical,or.dimensions);return yt(un,jr,Nn(ki.result)===un,ei(ki.impact)===un,la,sn)}if(or.phase==="IDLE"&&or.completed&&!or.shouldFlush){var Zi=or.completed;if(!rl(zr,Zi.critical))return Oe;var Ya=ei(Zi.impact)===un,wa=Boolean(Zi.impact.at&&Zi.impact.at.type==="COMBINE"),po=Zi.critical.droppable.id===un;return Ya?wa?ae:Oe:po?ae:Oe}return Oe};return Xt},St={updateViewportMaxScroll:Nr};function ur(){return document.body||Ve(!1),document.body}var Br={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:ur},on=Object(f.c)(Ye,St,null,{context:Es,pure:!0,areStatePropsEqual:Pn})(ds);on.defaultProps=Br},ni6a:function(k,D,i){var y=i("pzxd"),p=i("mFDi"),S=i("gut8"),A=S.WILL_BE_RESTORED,m=new p,f=function(){};f.prototype={constructor:f,drawRectText:function(o,n){var t=this.style;n=t.textRect||n,this.__dirty&&y.normalizeTextStyle(t,!0);var a=t.text;if(a!=null&&(a+=""),!y.needDrawText(a,t))return;o.save();var e=this.transform;t.transformText?this.setTransform(o):e&&(m.copy(n),m.applyTransform(e),n=m),y.renderText(this,o,a,t,n,A),o.restore()}};var d=f;k.exports=d},nkfE:function(k,D,i){var y=i("bYtY"),p=i("ca2m"),S=i("bLfw"),A=i("+TT/"),m=A.getLayoutParams,f=A.mergeLayoutParam,d=i("jkPA"),l=["value","category","time","log"];function o(n,t,a,e){y.each(l,function(u){t.extend({type:n+"Axis."+u,mergeDefaultAndTheme:function(r,s){var c=this.layoutMode,h=c?m(r):{},g=s.getTheme();y.merge(r,g.get(u+"Axis")),y.merge(r,this.getDefaultOption()),r.type=a(n,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([{},p[u+"Axis"],e],!0)})}),S.registerSubTypeDefaulter(n+"Axis",y.curry(a,n))}k.exports=o},noeP:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("UOVi");y.registerAction("dataZoom",function(A,m){var f=S.createLinkedNodesFinder(p.bind(m.eachComponent,m,"dataZoom"),S.eachAxisDim,function(l,o){return l.get(o.axisIndex)}),d=[];m.eachComponent({mainType:"dataZoom",query:A},function(l,o){d.push.apply(d,f(l).nodes)}),p.each(d,function(l,o){l.setRawRange({start:A.start,end:A.end,startValue:A.startValue,endValue:A.endValue})})})},o40c:function(k,D,i){var y=i("IwbS"),p=i("OS9S"),S=i("loD1"),A=i("aKvl"),m=y.extendShape({shape:{polyline:!1,curveness:0,segs:[]},buildPath:function(o,n){var t=n.segs,a=n.curveness;if(n.polyline)for(var e=0;e<t.length;){var u=t[e++];if(u>0){o.moveTo(t[e++],t[e++]);for(var r=1;r<u;r++)o.lineTo(t[e++],t[e++])}}else for(var e=0;e<t.length;){var s=t[e++],c=t[e++],h=t[e++],g=t[e++];if(o.moveTo(s,c),a>0){var v=(s+h)/2-(c-g)*a,b=(c+g)/2-(h-s)*a;o.quadraticCurveTo(v,b,h,g)}else o.lineTo(h,g)}},findDataIndex:function(o,n){var t=this.shape,a=t.segs,e=t.curveness;if(t.polyline)for(var u=0,r=0;r<a.length;){var s=a[r++];if(s>0)for(var c=a[r++],h=a[r++],g=1;g<s;g++){var v=a[r++],b=a[r++];if(S.containStroke(c,h,v,b))return u}u++}else for(var u=0,r=0;r<a.length;){var c=a[r++],h=a[r++],v=a[r++],b=a[r++];if(e>0){var w=(c+v)/2-(h-b)*e,x=(h+b)/2-(v-c)*e;if(A.containStroke(c,h,w,x,v,b))return u}else if(S.containStroke(c,h,v,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(o){this.group.removeAll();var n=new m({rectHover:!0,cursor:"default"});n.setShape({segs:o.getLayout("linesPoints")}),this._setCommon(n,o),this.group.add(n),this._incremental=null},d.incrementalPrepareUpdate=function(o){this.group.removeAll(),this._clearIncremental(),o.count()>5e5?(this._incremental||(this._incremental=new p({silent:!0})),this.group.add(this._incremental)):this._incremental=null},d.incrementalUpdate=function(o,n){var t=new m;t.setShape({segs:n.getLayout("linesPoints")}),this._setCommon(t,n,!!this._incremental),this._incremental?this._incremental.addDisplayable(t,!0):(t.rectHover=!0,t.cursor="default",t.__startIndex=o.start,this.group.add(t))},d.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},d._setCommon=function(o,n,t){var a=n.hostModel;o.setShape({polyline:a.get("polyline"),curveness:a.get("lineStyle.curveness")}),o.useStyle(a.getModel("lineStyle").getLineStyle()),o.style.strokeNoScale=!0;var e=n.getVisual("color");e&&o.setStyle("stroke",e),o.setStyle("fill"),t||(o.seriesIndex=a.seriesIndex,o.on("mousemove",function(u){o.dataIndex=null;var r=o.findDataIndex(u.offsetX,u.offsetY);r>0&&(o.dataIndex=r+o.__startIndex)}))},d._clearIncremental=function(){var o=this._incremental;o&&o.clearDisplaybles()};var l=f;k.exports=l},oBaM:function(k,D,i){var y=i("T4UG"),p=i("5GtS"),S=i("bYtY"),A=i("7aKB"),m=A.encodeHTML,f=i("xKMd"),d=y.extend({type:"series.radar",dependencies:["radar"],init:function(o){d.superApply(this,"init",arguments),this.legendVisualProvider=new f(S.bind(this.getData,this),S.bind(this.getRawData,this))},getInitialData:function(o,n){return p(this,{generateCoord:"indicator_",generateCoordCount:Infinity})},formatTooltip:function(o){var n=this.getData(),t=this.coordinateSystem,a=t.getIndicatorAxes(),e=this.getData().getName(o);return m(e===""?this.name:e)+"<br/>"+S.map(a,function(u,r){var s=n.get(n.mapDimension(u.dim),o);return m(u.name+" : "+s)}).join("<br />")},getTooltipPosition:function(o){if(o!=null){for(var n=this.getData(),t=this.coordinateSystem,a=n.getValues(S.map(t.dimensions,function(s){return n.mapDimension(s)}),o,!0),e=0,u=a.length;e<u;e++)if(!isNaN(a[e])){var r=t.getIndicatorAxes();return t.coordToPoint(r[e].dataToCoord(a[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;k.exports=l},oE7X:function(k,D,i){var y=i("bLfw");y.registerSubTypeDefaulter("timeline",function(){return"slider"})},oIFs:function(k,D,i){},oRuE:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return y.pad.Iso10126={pad:function(S,A){var m=A*4,f=m-S.sigBytes%m;S.concat(y.lib.WordArray.random(f-1)).concat(y.lib.WordArray.create([f<<24],1))},unpad:function(S){var A=S.words[S.sigBytes-1>>>2]&255;S.sigBytes-=A}},y.pad.Iso10126})},oVpE:function(k,D,i){var y=i("bYtY"),p=i("IwbS"),S=i("mFDi"),A=i("6GrX"),m=A.calculateTextPosition,f=p.extendShape({type:"triangle",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(s,c){var h=c.cx,g=c.cy,v=c.width/2,b=c.height/2;s.moveTo(h,g-b),s.lineTo(h+v,g+b),s.lineTo(h-v,g+b),s.closePath()}}),d=p.extendShape({type:"diamond",shape:{cx:0,cy:0,width:0,height:0},buildPath:function(s,c){var h=c.cx,g=c.cy,v=c.width/2,b=c.height/2;s.moveTo(h,g-b),s.lineTo(h+v,g),s.lineTo(h,g+b),s.lineTo(h-v,g),s.closePath()}}),l=p.extendShape({type:"pin",shape:{x:0,y:0,width:0,height:0},buildPath:function(s,c){var h=c.x,g=c.y,v=c.width/5*3,b=Math.max(v,c.height),w=v/2,x=w*w/(b-w),T=g-b+w+x,O=Math.asin(x/w),E=Math.cos(O)*w,C=Math.sin(O),I=Math.cos(O),_=w*.6,F=w*.7;s.moveTo(h-E,T+x),s.arc(h,T,w,Math.PI-O,Math.PI*2+O),s.bezierCurveTo(h+E-C*_,T+x+I*_,h,g-F,h,g),s.bezierCurveTo(h,g-F,h-E+C*_,T+x+I*_,h-E,T+x),s.closePath()}}),o=p.extendShape({type:"arrow",shape:{x:0,y:0,width:0,height:0},buildPath:function(s,c){var h=c.height,g=c.width,v=c.x,b=c.y,w=g/3*2;s.moveTo(v,b),s.lineTo(v+w,b+h),s.lineTo(v,b+h/4*3),s.lineTo(v-w,b+h),s.lineTo(v,b),s.closePath()}}),n={line:p.Line,rect:p.Rect,roundRect:p.Rect,square:p.Rect,circle:p.Circle,diamond:d,pin:l,arrow:o,triangle:f},t={line:function(s,c,h,g,v){v.x1=s,v.y1=c+g/2,v.x2=s+h,v.y2=c+g/2},rect:function(s,c,h,g,v){v.x=s,v.y=c,v.width=h,v.height=g},roundRect:function(s,c,h,g,v){v.x=s,v.y=c,v.width=h,v.height=g,v.r=Math.min(h,g)/4},square:function(s,c,h,g,v){var b=Math.min(h,g);v.x=s,v.y=c,v.width=b,v.height=b},circle:function(s,c,h,g,v){v.cx=s+h/2,v.cy=c+g/2,v.r=Math.min(h,g)/2},diamond:function(s,c,h,g,v){v.cx=s+h/2,v.cy=c+g/2,v.width=h,v.height=g},pin:function(s,c,h,g,v){v.x=s+h/2,v.y=c+g/2,v.width=h,v.height=g},arrow:function(s,c,h,g,v){v.x=s+h/2,v.y=c+g/2,v.width=h,v.height=g},triangle:function(s,c,h,g,v){v.cx=s+h/2,v.cy=c+g/2,v.width=h,v.height=g}},a={};y.each(n,function(s,c){a[c]=new s});var e=p.extendShape({type:"symbol",shape:{symbolType:"",x:0,y:0,width:0,height:0},calculateTextPosition:function(s,c,h){var g=m(s,c,h),v=this.shape;return v&&v.symbolType==="pin"&&c.textPosition==="inside"&&(g.y=h.y+h.height*.4),g},buildPath:function(s,c,h){var g=c.symbolType;if(g!=="none"){var v=a[g];v||(g="rect",v=a[g]),t[g](c.x,c.y,c.width,c.height,v.shape),v.buildPath(s,v.shape,h)}}});function u(s,c){if(this.type!=="image"){var h=this.style,g=this.shape;g&&g.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,g,v,b,w){var x=s.indexOf("empty")===0;x&&(s=s.substr(5,1).toLowerCase()+s.substr(6));var T;return s.indexOf("image://")===0?T=p.makeImage(s.slice(8),new S(c,h,g,v),w?"center":"cover"):s.indexOf("path://")===0?T=p.makePath(s.slice(7),{},new S(c,h,g,v),w?"center":"cover"):T=new e({shape:{symbolType:s,x:c,y:h,width:g,height:v}}),T.__isEmptyBrush=x,T.setColor=u,T.setColor(b),T}D.createSymbol=r},oY9F:function(k,D,i){var y=i("OlYY"),p=y.extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}});k.exports=p},or5M:function(k,D,i){var y=i("1hJj"),p=i("QoRX"),S=i("xYSL"),A=1,m=2;function f(d,l,o,n,t,a){var e=o&A,u=d.length,r=l.length;if(u!=r&&!(e&&r>u))return!1;var s=a.get(d),c=a.get(l);if(s&&c)return s==l&&c==d;var h=-1,g=!0,v=o&m?new y:void 0;for(a.set(d,l),a.set(l,d);++h<u;){var b=d[h],w=l[h];if(n)var x=e?n(w,b,h,l,d,a):n(b,w,h,d,l,a);if(x!==void 0){if(x)continue;g=!1;break}if(v){if(!p(l,function(T,O){if(!S(v,O)&&(b===T||t(b,T,o,n,a)))return v.push(O)})){g=!1;break}}else if(!(b===w||t(b,w,o,n,a))){g=!1;break}}return a.delete(d),a.delete(l),g}k.exports=f},osHv:function(k,D,i){(function(y){y(i("VrN/"))})(function(y){"use strict";var p=y.Pos;function S(c,h){return c.line-h.line||c.ch-h.ch}var A="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",m=A+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",f=new RegExp("<(/?)(["+A+"]["+m+"]*)","g");function d(c,h,g,v){this.line=h,this.ch=g,this.cm=c,this.text=c.getLine(h),this.min=v?Math.max(v.from,c.firstLine()):c.firstLine(),this.max=v?Math.min(v.to-1,c.lastLine()):c.lastLine()}function l(c,h){var g=c.cm.getTokenTypeAt(p(c.line,h));return g&&/\btag\b/.test(g)}function o(c){return c.line>=c.max?void 0:(c.ch=0,c.text=c.cm.getLine(++c.line),!0)}function n(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(o(c))continue;return}if(!l(c,h+1)){c.ch=h+1;continue}var g=c.text.lastIndexOf("/",h),v=g>-1&&!/\S/.test(c.text.slice(g+1,h));return c.ch=h+1,v?"selfClose":"regular"}}function a(c){for(;;){var h=c.ch?c.text.lastIndexOf("<",c.ch-1):-1;if(h==-1){if(n(c))continue;return}if(!l(c,h+1)){c.ch=h;continue}f.lastIndex=h,c.ch=h;var g=f.exec(c.text);if(g&&g.index==h)return g}}function e(c){for(;;){f.lastIndex=c.ch;var h=f.exec(c.text);if(!h){if(o(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(n(c))continue;return}if(!l(c,h+1)){c.ch=h;continue}var g=c.text.lastIndexOf("/",h),v=g>-1&&!/\S/.test(c.text.slice(g+1,h));return c.ch=h+1,v?"selfClose":"regular"}}function r(c,h){for(var g=[];;){var v=e(c),b,w=c.line,x=c.ch-(v?v[0].length:0);if(!v||!(b=t(c)))return;if(b=="selfClose")continue;if(v[1]){for(var T=g.length-1;T>=0;--T)if(g[T]==v[2]){g.length=T;break}if(T<0&&(!h||h==v[2]))return{tag:v[2],from:p(w,x),to:p(c.line,c.ch)}}else g.push(v[2])}}function s(c,h){for(var g=[];;){var v=u(c);if(!v)return;if(v=="selfClose"){a(c);continue}var b=c.line,w=c.ch,x=a(c);if(!x)return;if(x[1])g.push(x[2]);else{for(var T=g.length-1;T>=0;--T)if(g[T]==x[2]){g.length=T;break}if(T<0&&(!h||h==x[2]))return{tag:x[2],from:p(c.line,c.ch),to:p(b,w)}}}}y.registerHelper("fold","xml",function(c,h){for(var g=new d(c,h.line,0);;){var v=e(g);if(!v||g.line!=h.line)return;var b=t(g);if(!b)return;if(!v[1]&&b!="selfClose"){var w=p(g.line,g.ch),x=r(g,v[2]);return x&&S(x.from,w)>0?{from:w,to:x.from}:null}}}),y.findMatchingTag=function(c,h,g){var v=new d(c,h.line,h.ch,g);if(v.text.indexOf(">")==-1&&v.text.indexOf("<")==-1)return;var b=t(v),w=b&&p(v.line,v.ch),x=b&&a(v);if(!b||!x||S(v,h)>0)return;var T={from:p(v.line,v.ch),to:w,tag:x[2]};return b=="selfClose"?{open:T,close:null,at:"open"}:x[1]?{open:s(v,x[2]),close:T,at:"close"}:(v=new d(c,w.line,w.ch,g),{open:T,close:r(v,x[2]),at:"open"})},y.findEnclosingTag=function(c,h,g,v){for(var b=new d(c,h.line,h.ch,g);;){var w=s(b,v);if(!w)break;var x=new d(c,h.line,h.ch,g),T=r(x,w.tag);if(T)return{open:w,close:T}}},y.scanForClosingTag=function(c,h,g,v){var b=new d(c,h.line,h.ch,v?{from:0,to:v}:null);return r(b,g)}})},ozfa:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("KxFI"),A=i.n(S)},"p+If":function(k,D,i){var y=i("ProS");i("cpOr"),i("rkZ5");var p=i("ZYIC"),S=i("7ph2");y.registerLayout(p),y.registerVisual(S)},"p/La":function(k,D){var i=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function y(p,S){p==="china"&&S.name==="\u53F0\u6E7E"&&S.geometries.push({type:"polygon",exterior:i[0]})}k.exports=y},p1MT:function(k,D,i){var y=i("Hw7h"),p=i("IwbS"),S=i("6Ic6"),A=i("OELB"),m=A.parsePercent,f=A.round,d=A.linearMap;function l(e,u){var r=e.get("center"),s=u.getWidth(),c=u.getHeight(),h=Math.min(s,c),g=m(r[0],u.getWidth()),v=m(r[1],u.getHeight()),b=m(e.get("radius"),h/2);return{cx:g,cy:v,r:b}}function o(e,u){return u&&(typeof u=="string"?e=u.replace("{value}",e!=null?e:""):typeof u=="function"&&(e=u(e))),e}var n=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,g=e.getModel("axisLine"),v=g.getModel("lineStyle"),b=e.get("clockwise"),w=-e.get("startAngle")/180*Math.PI,x=-e.get("endAngle")/180*Math.PI,T=(x-w)%n,O=w,E=v.get("width"),C=g.get("show"),I=0;C&&I<s.length;I++){var _=Math.min(Math.max(s[I][0],0),1),x=w+T*_,F=new p.Sector({shape:{startAngle:O,endAngle:x,cx:c.cx,cy:c.cy,clockwise:b,r0:c.r-E,r:c.r},silent:!0});F.setStyle({fill:s[I][1]}),F.setStyle(v.getLineStyle(["color","borderWidth","borderColor"])),h.add(F),O=x}var R=function(M){if(M<=0)return s[0][1];for(var X=0;X<s.length;X++)if(s[X][0]>=M&&(X===0?0:s[X-1][0])<M)return s[X][1];return s[X-1][1]};if(!b){var B=w;w=x,x=B}this._renderTicks(e,u,r,R,c,w,x,b),this._renderPointer(e,u,r,R,c,w,x,b),this._renderTitle(e,u,r,R,c),this._renderDetail(e,u,r,R,c)},_renderTicks:function(e,u,r,s,c,h,g,v){for(var b=this.group,w=c.cx,x=c.cy,T=c.r,O=+e.get("min"),E=+e.get("max"),C=e.getModel("splitLine"),I=e.getModel("axisTick"),_=e.getModel("axisLabel"),F=e.get("splitNumber"),R=I.get("splitNumber"),B=m(C.get("length"),T),M=m(I.get("length"),T),X=h,P=(g-h)/F,z=P/R,W=C.getModel("lineStyle").getLineStyle(),U=I.getModel("lineStyle").getLineStyle(),V=0;V<=F;V++){var Q=Math.cos(X),G=Math.sin(X);if(C.get("show")){var te=new p.Line({shape:{x1:Q*T+w,y1:G*T+x,x2:Q*(T-B)+w,y2:G*(T-B)+x},style:W,silent:!0});W.stroke==="auto"&&te.setStyle({stroke:s(V/F)}),b.add(te)}if(_.get("show")){var $=o(f(V/F*(E-O)+O),_.get("formatter")),le=_.get("distance"),re=s(V/F);b.add(new p.Text({style:p.setTextStyle({},_,{text:$,x:Q*(T-B-le)+w,y:G*(T-B-le)+x,textVerticalAlign:G<-.4?"top":G>.4?"bottom":"middle",textAlign:Q<-.4?"left":Q>.4?"right":"center"},{autoColor:re}),silent:!0}))}if(I.get("show")&&V!==F){for(var Se=0;Se<=R;Se++){var Q=Math.cos(X),G=Math.sin(X),Re=new p.Line({shape:{x1:Q*T+w,y1:G*T+x,x2:Q*(T-M)+w,y2:G*(T-M)+x},silent:!0,style:U});U.stroke==="auto"&&Re.setStyle({stroke:s((V+Se/R)/F)}),b.add(Re),X+=z}X-=z}else X+=P}},_renderPointer:function(e,u,r,s,c,h,g,v){var b=this.group,w=this._data;if(!e.get("pointer.show")){w&&w.eachItemGraphicEl(function(C){b.remove(C)});return}var x=[+e.get("min"),+e.get("max")],T=[h,g],O=e.getData(),E=O.mapDimension("value");O.diff(w).add(function(C){var I=new y({shape:{angle:h}});p.initProps(I,{shape:{angle:d(O.get(E,C),x,T,!0)}},e),b.add(I),O.setItemGraphicEl(C,I)}).update(function(C,I){var _=w.getItemGraphicEl(I);p.updateProps(_,{shape:{angle:d(O.get(E,C),x,T,!0)}},e),b.add(_),O.setItemGraphicEl(C,_)}).remove(function(C){var I=w.getItemGraphicEl(C);b.remove(I)}).execute(),O.eachItemGraphicEl(function(C,I){var _=O.getItemModel(I),F=_.getModel("pointer");C.setShape({x:c.cx,y:c.cy,width:m(F.get("width"),c.r),r:m(F.get("length"),c.r)}),C.useStyle(_.getModel("itemStyle").getItemStyle()),C.style.fill==="auto"&&C.setStyle("fill",s(d(O.get(E,I),x,[0,1],!0))),p.setHoverStyle(C,_.getModel("emphasis.itemStyle").getItemStyle())}),this._data=O},_renderTitle:function(e,u,r,s,c){var h=e.getData(),g=h.mapDimension("value"),v=e.getModel("title");if(v.get("show")){var b=v.get("offsetCenter"),w=c.cx+m(b[0],c.r),x=c.cy+m(b[1],c.r),T=+e.get("min"),O=+e.get("max"),E=e.getData().get(g,0),C=s(d(E,[T,O],[0,1],!0));this.group.add(new p.Text({silent:!0,style:p.setTextStyle({},v,{x:w,y:x,text:h.getName(0),textAlign:"center",textVerticalAlign:"middle"},{autoColor:C,forceRich:!0})}))}},_renderDetail:function(e,u,r,s,c){var h=e.getModel("detail"),g=+e.get("min"),v=+e.get("max");if(h.get("show")){var b=h.get("offsetCenter"),w=c.cx+m(b[0],c.r),x=c.cy+m(b[1],c.r),T=m(h.get("width"),c.r),O=m(h.get("height"),c.r),E=e.getData(),C=E.get(E.mapDimension("value"),0),I=s(d(C,[g,v],[0,1],!0));this.group.add(new p.Text({silent:!0,style:p.setTextStyle({},h,{x:w,y:x,text:o(C,h.get("formatter")),textWidth:isNaN(T)?null:T,textHeight:isNaN(O)?null:O,textAlign:"center",textVerticalAlign:"middle"},{autoColor:I,forceRich:!0})}))}}}),a=t;k.exports=a},"p77/":function(k,D,i){},pA7S:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("ETIr"),i("cv67"),i("K3mO"),i("OLod"))})(this,function(y){return function(){var p=y,S=p.lib,A=S.WordArray,m=S.BlockCipher,f=p.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],o=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],n=[{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],a=f.DES=m.extend({_doReset:function(){for(var c=this._key,h=c.words,g=[],v=0;v<56;v++){var b=d[v]-1;g[v]=h[b>>>5]>>>31-b%32&1}for(var w=this._subKeys=[],x=0;x<16;x++){for(var T=w[x]=[],O=o[x],v=0;v<24;v++)T[v/6|0]|=g[(l[v]-1+O)%28]<<31-v%6,T[4+(v/6|0)]|=g[28+(l[v+24]-1+O)%28]<<31-v%6;T[0]=T[0]<<1|T[0]>>>31;for(var v=1;v<7;v++)T[v]=T[v]>>>(v-1)*4+3;T[7]=T[7]<<5|T[7]>>>27}for(var E=this._invSubKeys=[],v=0;v<16;v++)E[v]=w[15-v]},encryptBlock:function(c,h){this._doCryptBlock(c,h,this._subKeys)},decryptBlock:function(c,h){this._doCryptBlock(c,h,this._invSubKeys)},_doCryptBlock:function(c,h,g){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 v=0;v<16;v++){for(var b=g[v],w=this._lBlock,x=this._rBlock,T=0,O=0;O<8;O++)T|=n[O][((x^b[O])&t[O])>>>0];this._lBlock=x,this._rBlock=w^T}var E=this._lBlock;this._lBlock=this._rBlock,this._rBlock=E,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}p.DES=m._createHelper(a);var r=f.TripleDES=m.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 g=h.slice(0,2),v=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=a.createEncryptor(A.create(g)),this._des2=a.createEncryptor(A.create(v)),this._des3=a.createEncryptor(A.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});p.TripleDES=m._createHelper(r)}(),y.TripleDES})},pC0b:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("xzDV"),A=i.n(S),m=i("5Dmo")},"pED+":function(k,D,i){},pG52:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("WXVj"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},pLH3:function(k,D,i){var y=i("ProS");i("ALo7"),i("TWL2");var p=i("mOdp"),S=i("JLnu"),A=i("0/Rx");y.registerVisual(p("funnel")),y.registerLayout(S),y.registerProcessor(A("funnel"))},pP6R:function(k,D,i){var y=i("ProS"),p="\0_ec_interaction_mutex";function S(d,l,o){var n=f(d);n[l]=o}function A(d,l,o){var n=f(d),t=n[l];t===o&&(n[l]=null)}function m(d,l){return!!f(d)[l]}function f(d){return d[p]||(d[p]={})}y.registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),D.take=S,D.release=A,D.isTaken=m},pSRY:function(k,D,i){var y=i("QkVE");function p(S){return y(this,S).has(S)}k.exports=p},pWdF:function(k,D,i){"use strict";i.d(D,"a",function(){return Au});var y=i("oBTY"),p=i("rAM+"),S=i("tJVT"),A=i("tS8v"),m=i("oZsa"),f=i("iZzK");function d(ve){return Function.toString.call(ve).indexOf("[native code]")!==-1}var l=i("cHpt");function o(ve,q,L){return Object(l.a)()?o=Reflect.construct:o=function(H,J,ne){var we=[null];we.push.apply(we,J);var _e=Function.bind.apply(H,we),Xe=new _e;return ne&&Object(f.a)(Xe,ne.prototype),Xe},o.apply(null,arguments)}function n(ve){var q=typeof Map=="function"?new Map:void 0;return n=function(K){if(K===null||!d(K))return K;if(typeof K!="function")throw new TypeError("Super expression must either be null or a function");if(typeof q!="undefined"){if(q.has(K))return q.get(K);q.set(K,H)}function H(){return o(K,arguments,Object(m.a)(this).constructor)}return H.prototype=Object.create(K.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),Object(f.a)(H,K)},n(ve)}var t=i("w4Tj"),a=i("yKVA"),e=i("879j"),u=i("jrin"),r=i("fWQN"),s=i("mtLc");function c(ve){return ve&&ve.__esModule&&Object.prototype.hasOwnProperty.call(ve,"default")?ve.default:ve}var h={exports:{}};(function(ve,q){(function(L){var K=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,H=/^(?=([^\/?#]*))\1([^]*)$/,J=/(?:\/|^)\.(?=\/)/g,ne=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,we={buildAbsoluteURL:function(Xe,ut,ht){if(ht=ht||{},Xe=Xe.trim(),ut=ut.trim(),!ut){if(!ht.alwaysNormalize)return Xe;var Qt=we.parseURL(Xe);if(!Qt)throw new Error("Error trying to parse base URL.");return Qt.path=we.normalizePath(Qt.path),we.buildURLFromParts(Qt)}var Tr=we.parseURL(ut);if(!Tr)throw new Error("Error trying to parse relative URL.");if(Tr.scheme)return ht.alwaysNormalize?(Tr.path=we.normalizePath(Tr.path),we.buildURLFromParts(Tr)):ut;var br=we.parseURL(Xe);if(!br)throw new Error("Error trying to parse base URL.");if(!br.netLoc&&br.path&&br.path[0]!=="/"){var Kr=H.exec(br.path);br.netLoc=Kr[1],br.path=Kr[2]}br.netLoc&&!br.path&&(br.path="/");var Zr={scheme:br.scheme,netLoc:Tr.netLoc,path:null,params:Tr.params,query:Tr.query,fragment:Tr.fragment};if(!Tr.netLoc&&(Zr.netLoc=br.netLoc,Tr.path[0]!=="/"))if(!Tr.path)Zr.path=br.path,Tr.params||(Zr.params=br.params,Tr.query||(Zr.query=br.query));else{var Pn=br.path,Nn=Pn.substring(0,Pn.lastIndexOf("/")+1)+Tr.path;Zr.path=we.normalizePath(Nn)}return Zr.path===null&&(Zr.path=ht.alwaysNormalize?we.normalizePath(Tr.path):Tr.path),we.buildURLFromParts(Zr)},parseURL:function(Xe){var ut=K.exec(Xe);return ut?{scheme:ut[1]||"",netLoc:ut[2]||"",path:ut[3]||"",params:ut[4]||"",query:ut[5]||"",fragment:ut[6]||""}:null},normalizePath:function(Xe){for(Xe=Xe.split("").reverse().join("").replace(J,"");Xe.length!==(Xe=Xe.replace(ne,"")).length;);return Xe.split("").reverse().join("")},buildURLFromParts:function(Xe){return Xe.scheme+Xe.netLoc+Xe.path+Xe.params+Xe.query+Xe.fragment}};ve.exports=we})()})(h);var g=h.exports;function v(ve,q){var L=Object.keys(ve);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(ve);q&&(K=K.filter(function(H){return Object.getOwnPropertyDescriptor(ve,H).enumerable})),L.push.apply(L,K)}return L}function b(ve){for(var q=1;q<arguments.length;q++){var L=arguments[q]!=null?arguments[q]:{};q%2?v(Object(L),!0).forEach(function(K){w(ve,K,L[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(ve,Object.getOwnPropertyDescriptors(L)):v(Object(L)).forEach(function(K){Object.defineProperty(ve,K,Object.getOwnPropertyDescriptor(L,K))})}return ve}function w(ve,q,L){return q=O(q),q in ve?Object.defineProperty(ve,q,{value:L,enumerable:!0,configurable:!0,writable:!0}):ve[q]=L,ve}function x(){return x=Object.assign?Object.assign.bind():function(ve){for(var q=1;q<arguments.length;q++){var L=arguments[q];for(var K in L)Object.prototype.hasOwnProperty.call(L,K)&&(ve[K]=L[K])}return ve},x.apply(this,arguments)}function T(ve,q){if(typeof ve!="object"||ve===null)return ve;var L=ve[Symbol.toPrimitive];if(L!==void 0){var K=L.call(ve,q||"default");if(typeof K!="object")return K;throw new TypeError("@@toPrimitive must return a primitive value.")}return(q==="string"?String:Number)(ve)}function O(ve){var q=T(ve,"string");return typeof q=="symbol"?q:String(q)}var E=Number.isFinite||function(ve){return typeof ve=="number"&&isFinite(ve)},C=Number.isSafeInteger||function(ve){return typeof ve=="number"&&Math.abs(ve)<=I},I=Number.MAX_SAFE_INTEGER||9007199254740991,_=function(ve){return ve.MEDIA_ATTACHING="hlsMediaAttaching",ve.MEDIA_ATTACHED="hlsMediaAttached",ve.MEDIA_DETACHING="hlsMediaDetaching",ve.MEDIA_DETACHED="hlsMediaDetached",ve.BUFFER_RESET="hlsBufferReset",ve.BUFFER_CODECS="hlsBufferCodecs",ve.BUFFER_CREATED="hlsBufferCreated",ve.BUFFER_APPENDING="hlsBufferAppending",ve.BUFFER_APPENDED="hlsBufferAppended",ve.BUFFER_EOS="hlsBufferEos",ve.BUFFER_FLUSHING="hlsBufferFlushing",ve.BUFFER_FLUSHED="hlsBufferFlushed",ve.MANIFEST_LOADING="hlsManifestLoading",ve.MANIFEST_LOADED="hlsManifestLoaded",ve.MANIFEST_PARSED="hlsManifestParsed",ve.LEVEL_SWITCHING="hlsLevelSwitching",ve.LEVEL_SWITCHED="hlsLevelSwitched",ve.LEVEL_LOADING="hlsLevelLoading",ve.LEVEL_LOADED="hlsLevelLoaded",ve.LEVEL_UPDATED="hlsLevelUpdated",ve.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",ve.LEVELS_UPDATED="hlsLevelsUpdated",ve.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",ve.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",ve.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",ve.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",ve.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",ve.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",ve.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",ve.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",ve.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",ve.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",ve.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",ve.CUES_PARSED="hlsCuesParsed",ve.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",ve.INIT_PTS_FOUND="hlsInitPtsFound",ve.FRAG_LOADING="hlsFragLoading",ve.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",ve.FRAG_LOADED="hlsFragLoaded",ve.FRAG_DECRYPTED="hlsFragDecrypted",ve.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",ve.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",ve.FRAG_PARSING_METADATA="hlsFragParsingMetadata",ve.FRAG_PARSED="hlsFragParsed",ve.FRAG_BUFFERED="hlsFragBuffered",ve.FRAG_CHANGED="hlsFragChanged",ve.FPS_DROP="hlsFpsDrop",ve.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",ve.ERROR="hlsError",ve.DESTROYING="hlsDestroying",ve.KEY_LOADING="hlsKeyLoading",ve.KEY_LOADED="hlsKeyLoaded",ve.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",ve.BACK_BUFFER_REACHED="hlsBackBufferReached",ve}({}),F=function(ve){return ve.NETWORK_ERROR="networkError",ve.MEDIA_ERROR="mediaError",ve.KEY_SYSTEM_ERROR="keySystemError",ve.MUX_ERROR="muxError",ve.OTHER_ERROR="otherError",ve}({}),R=function(ve){return ve.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",ve.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",ve.KEY_SYSTEM_NO_SESSION="keySystemNoSession",ve.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",ve.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",ve.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",ve.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",ve.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",ve.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",ve.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",ve.MANIFEST_LOAD_ERROR="manifestLoadError",ve.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",ve.MANIFEST_PARSING_ERROR="manifestParsingError",ve.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",ve.LEVEL_EMPTY_ERROR="levelEmptyError",ve.LEVEL_LOAD_ERROR="levelLoadError",ve.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",ve.LEVEL_PARSING_ERROR="levelParsingError",ve.LEVEL_SWITCH_ERROR="levelSwitchError",ve.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",ve.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",ve.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",ve.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",ve.FRAG_LOAD_ERROR="fragLoadError",ve.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",ve.FRAG_DECRYPT_ERROR="fragDecryptError",ve.FRAG_PARSING_ERROR="fragParsingError",ve.FRAG_GAP="fragGap",ve.REMUX_ALLOC_ERROR="remuxAllocError",ve.KEY_LOAD_ERROR="keyLoadError",ve.KEY_LOAD_TIMEOUT="keyLoadTimeOut",ve.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",ve.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",ve.BUFFER_APPEND_ERROR="bufferAppendError",ve.BUFFER_APPENDING_ERROR="bufferAppendingError",ve.BUFFER_STALLED_ERROR="bufferStalledError",ve.BUFFER_FULL_ERROR="bufferFullError",ve.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",ve.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",ve.INTERNAL_EXCEPTION="internalException",ve.INTERNAL_ABORTED="aborted",ve.UNKNOWN="unknown",ve}({}),B=function(){},M={trace:B,debug:B,log:B,warn:B,info:B,error:B},X=M;function P(ve){var q=self.console[ve];return q?q.bind(self.console,"[".concat(ve,"] >")):B}function z(ve){for(var q=arguments.length,L=new Array(q>1?q-1:0),K=1;K<q;K++)L[K-1]=arguments[K];L.forEach(function(H){X[H]=ve[H]?ve[H].bind(ve):P(H)})}function W(ve,q){if(self.console&&ve===!0||typeof ve=="object"){z(ve,"debug","log","info","warn","error");try{X.log('Debug logs enabled for "'.concat(q,'" in hls.js version ',"1.4.13"))}catch(L){X=M}}else X=M}var U=X,V=/^(\d+)x(\d+)$/,Q=/(.+?)=(".*?"|.*?)(?:,|$)/g,G=function(){function ve(q){Object(r.a)(this,ve),typeof q=="string"&&(q=ve.parseAttrList(q));for(var L in q)q.hasOwnProperty(L)&&(L.substring(0,2)==="X-"&&(this.clientAttrs=this.clientAttrs||[],this.clientAttrs.push(L)),this[L]=q[L])}return Object(s.a)(ve,[{key:"decimalInteger",value:function(L){var K=parseInt(this[L],10);return K>Number.MAX_SAFE_INTEGER?Infinity:K}},{key:"hexadecimalInteger",value:function(L){if(this[L]){var K=(this[L]||"0x").slice(2);K=(K.length&1?"0":"")+K;for(var H=new Uint8Array(K.length/2),J=0;J<K.length/2;J++)H[J]=parseInt(K.slice(J*2,J*2+2),16);return H}else return null}},{key:"hexadecimalIntegerAsNumber",value:function(L){var K=parseInt(this[L],16);return K>Number.MAX_SAFE_INTEGER?Infinity:K}},{key:"decimalFloatingPoint",value:function(L){return parseFloat(this[L])}},{key:"optionalFloat",value:function(L,K){var H=this[L];return H?parseFloat(H):K}},{key:"enumeratedString",value:function(L){return this[L]}},{key:"bool",value:function(L){return this[L]==="YES"}},{key:"decimalResolution",value:function(L){var K=V.exec(this[L]);return K===null?void 0:{width:parseInt(K[1],10),height:parseInt(K[2],10)}}}],[{key:"parseAttrList",value:function(L){var K,H={},J='"';for(Q.lastIndex=0;(K=Q.exec(L))!==null;){var ne=K[2];ne.indexOf(J)===0&&ne.lastIndexOf(J)===ne.length-1&&(ne=ne.slice(1,-1));var we=K[1].trim();H[we]=ne}return H}}]),ve}();function te(ve){return ve!=="ID"&&ve!=="CLASS"&&ve!=="START-DATE"&&ve!=="DURATION"&&ve!=="END-DATE"&&ve!=="END-ON-NEXT"}function $(ve){return ve==="SCTE35-OUT"||ve==="SCTE35-IN"}var le=function(){function ve(q,L){if(Object(r.a)(this,ve),this.attr=void 0,this._startDate=void 0,this._endDate=void 0,this._badValueForSameId=void 0,L){var K=L.attr;for(var H in K)if(Object.prototype.hasOwnProperty.call(q,H)&&q[H]!==K[H]){U.warn('DATERANGE tag attribute: "'.concat(H,'" does not match for tags with ID: "').concat(q.ID,'"')),this._badValueForSameId=H;break}q=x(new G({}),K,q)}if(this.attr=q,this._startDate=new Date(q["START-DATE"]),"END-DATE"in this.attr){var J=new Date(this.attr["END-DATE"]);E(J.getTime())&&(this._endDate=J)}}return Object(s.a)(ve,[{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(E(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&&E(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)}}]),ve}(),re=Object(s.a)(function ve(){Object(r.a)(this,ve),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 ve(q){Object(r.a)(this,ve),this._byteRange=null,this._url=null,this.baseurl=void 0,this.relurl=void 0,this.elementaryStreams=Object(u.a)(Object(u.a)(Object(u.a)({},Se.AUDIO,null),Se.VIDEO,null),Se.AUDIOVIDEO,null),this.baseurl=q}return Object(s.a)(ve,[{key:"setByteRange",value:function(L,K){var H=L.split("@",2),J=[];H.length===1?J[0]=K?K.byteRangeEndOffset:0:J[0]=parseInt(H[1]),J[1]=parseInt(H[0])+J[0],this._byteRange=J}},{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=g.buildAbsoluteURL(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url||""},set:function(L){this._url=L}}]),ve}(),Pe=function(ve){Object(a.a)(L,ve);var q=Object(e.a)(L);function L(K,H){var J;return Object(r.a)(this,L),J=q.call(this,H),J._decryptdata=null,J.rawProgramDateTime=null,J.programDateTime=null,J.tagList=[],J.duration=0,J.sn=0,J.levelkeys=void 0,J.type=void 0,J.loader=null,J.keyLoader=null,J.level=-1,J.cc=0,J.startPTS=void 0,J.endPTS=void 0,J.startDTS=void 0,J.endDTS=void 0,J.start=0,J.deltaPTS=void 0,J.maxStartPTS=void 0,J.minEndPTS=void 0,J.stats=new re,J.urlId=0,J.data=void 0,J.bitrateTest=!1,J.title=null,J.initSegment=null,J.endList=void 0,J.gap=void 0,J.type=K,J}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 J=this.levelkeys.identity;if(J)this._decryptdata=J.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(!E(this.programDateTime))return null;var H=E(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 J=Object.keys(this.levelkeys),ne=J.length;if(ne>1||ne===1&&this.levelkeys[J[0]].encrypted)return!0}return!1}},{key:"setKeyFormat",value:function(H){if(this.levelkeys){var J=this.levelkeys[H];J&&!this._decryptdata&&(this._decryptdata=J.getDecryptData(this.sn))}}},{key:"abortRequests",value:function(){var H,J;(H=this.loader)==null||H.abort(),(J=this.keyLoader)==null||J.abort()}},{key:"setElementaryStreamInfo",value:function(H,J,ne,we,_e){var Xe=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,ut=this.elementaryStreams,ht=ut[H];if(!ht){ut[H]={startPTS:J,endPTS:ne,startDTS:we,endDTS:_e,partial:Xe};return}ht.startPTS=Math.min(ht.startPTS,J),ht.endPTS=Math.max(ht.endPTS,ne),ht.startDTS=Math.min(ht.startDTS,we),ht.endDTS=Math.max(ht.endDTS,_e)}},{key:"clearElementaryStreamInfo",value:function(){var H=this.elementaryStreams;H[Se.AUDIO]=null,H[Se.VIDEO]=null,H[Se.AUDIOVIDEO]=null}}]),L}(Re),Je=function(ve){Object(a.a)(L,ve);var q=Object(e.a)(L);function L(K,H,J,ne,we){var _e;Object(r.a)(this,L),_e=q.call(this,J),_e.fragOffset=0,_e.duration=0,_e.gap=!1,_e.independent=!1,_e.relurl=void 0,_e.fragment=void 0,_e.index=void 0,_e.stats=new re,_e.duration=K.decimalFloatingPoint("DURATION"),_e.gap=K.bool("GAP"),_e.independent=K.bool("INDEPENDENT"),_e.relurl=K.enumeratedString("URI"),_e.fragment=H,_e.index=ne;var Xe=K.enumeratedString("BYTERANGE");return Xe&&_e.setByteRange(Xe,we),we&&(_e.fragOffset=we.fragOffset+we.duration),_e}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),Ve=10,ct=function(){function ve(q){Object(r.a)(this,ve),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=q}return Object(s.a)(ve,[{key:"reloaded",value:function(L){if(!L){this.advanced=!0,this.updated=!0;return}var K=this.lastPartSn-L.lastPartSn,H=this.lastPartIndex-L.lastPartIndex;this.updated=this.endSN!==L.endSN||!!H||!!K||!this.live,this.advanced=this.endSN>L.endSN||K>0||K===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?E(this.fragments[this.fragments.length-1].programDateTime):!1}},{key:"levelTargetDuration",get:function(){return this.averagetargetduration||this.targetduration||Ve}},{key:"drift",get:function(){var L=this.driftEndTime-this.driftStartTime;if(L>0){var K=this.driftEnd-this.driftStart;return K*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}}]),ve}();function Ue(ve){return Uint8Array.from(atob(ve),function(q){return q.charCodeAt(0)})}function ue(ve){var q=Z(ve).subarray(0,16),L=new Uint8Array(16);return L.set(q,16-q.length),L}function rt(ve){var q=function(K,H,J){var ne=K[H];K[H]=K[J],K[J]=ne};q(ve,0,3),q(ve,1,2),q(ve,4,5),q(ve,6,7)}function ge(ve){var q=ve.split(":"),L=null;if(q[0]==="data"&&q.length===2){var K=q[1].split(";"),H=K[K.length-1].split(",");if(H.length===2){var J=H[0]==="base64",ne=H[1];J?(K.splice(-1,1),L=Ue(ne)):L=ue(ne)}}return L}function Z(ve){return Uint8Array.from(unescape(encodeURIComponent(ve)),function(q){return q.charCodeAt(0)})}var Y={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},ee={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function fe(ve){switch(ve){case ee.FAIRPLAY:return Y.FAIRPLAY;case ee.PLAYREADY:return Y.PLAYREADY;case ee.WIDEVINE:return Y.WIDEVINE;case ee.CLEARKEY:return Y.CLEARKEY}}var be={WIDEVINE:"edef8ba979d64acea3c827dcd51d21ed"};function Ce(ve){if(ve===be.WIDEVINE)return Y.WIDEVINE}function Te(ve){switch(ve){case Y.FAIRPLAY:return ee.FAIRPLAY;case Y.PLAYREADY:return ee.PLAYREADY;case Y.WIDEVINE:return ee.WIDEVINE;case Y.CLEARKEY:return ee.CLEARKEY}}function he(ve){var q=ve.drmSystems,L=ve.widevineLicenseUrl,K=q?[Y.FAIRPLAY,Y.WIDEVINE,Y.PLAYREADY,Y.CLEARKEY].filter(function(H){return!!q[H]}):[];return!K[Y.WIDEVINE]&&L&&K.push(Y.WIDEVINE),K}var ye=function(){return typeof self!="undefined"&&self.navigator&&self.navigator.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null}();function Ie(ve,q,L,K){var H;switch(ve){case Y.FAIRPLAY:H=["cenc","sinf"];break;case Y.WIDEVINE:case Y.PLAYREADY:H=["cenc"];break;case Y.CLEARKEY:H=["cenc","keyids"];break;default:throw new Error("Unknown key-system: ".concat(ve))}return tt(H,q,L,K)}function tt(ve,q,L,K){var H={initDataTypes:ve,persistentState:K.persistentState||"not-allowed",distinctiveIdentifier:K.distinctiveIdentifier||"not-allowed",sessionTypes:K.sessionTypes||[K.sessionType||"temporary"],audioCapabilities:q.map(function(J){return{contentType:'audio/mp4; codecs="'.concat(J,'"'),robustness:K.audioRobustness||"",encryptionScheme:K.audioEncryptionScheme||null}}),videoCapabilities:L.map(function(J){return{contentType:'video/mp4; codecs="'.concat(J,'"'),robustness:K.videoRobustness||"",encryptionScheme:K.videoEncryptionScheme||null}})};return[H]}function pt(ve,q,L){return Uint8Array.prototype.slice?ve.slice(q,L):new Uint8Array(Array.prototype.slice.call(ve,q,L))}var st=function(q,L){return L+10<=q.length&&(q[L]===73&&q[L+1]===68&&q[L+2]===51&&(q[L+3]<255&&q[L+4]<255&&(q[L+6]<128&&q[L+7]<128&&q[L+8]<128&&q[L+9]<128)))},Fe=function(q,L){return L+10<=q.length&&(q[L]===51&&q[L+1]===68&&q[L+2]===73&&(q[L+3]<255&&q[L+4]<255&&(q[L+6]<128&&q[L+7]<128&&q[L+8]<128&&q[L+9]<128)))},ft=function(q,L){for(var K=L,H=0;st(q,L);){H+=10;var J=et(q,L+6);H+=J,Fe(q,L+10)&&(H+=10),L+=H}return H>0?q.subarray(K,K+H):void 0},et=function(q,L){var K=0;return K=(q[L]&127)<<21,K|=(q[L+1]&127)<<14,K|=(q[L+2]&127)<<7,K|=q[L+3]&127,K},wt=function(q,L){return st(q,L)&&et(q,L+6)+10<=q.length-L},Ht=function(q){for(var L=Bt(q),K=0;K<L.length;K++){var H=L[K];if(Dt(H))return qe(H)}return},Dt=function(q){return q&&q.key==="PRIV"&&q.info==="com.apple.streaming.transportStreamTimestamp"},Tt=function(q){var L=String.fromCharCode(q[0],q[1],q[2],q[3]),K=et(q,4),H=10;return{type:L,size:K,data:q.subarray(H,H+K)}},Bt=function(q){for(var L=0,K=[];st(q,L);){var H=et(q,L+6);L+=10;for(var J=L+H;L+8<J;){var ne=Tt(q.subarray(L)),we=Ke(ne);we&&K.push(we),L+=ne.size+10}Fe(q,L)&&(L+=10)}return K},Ke=function(q){return q.type==="PRIV"?de(q):q.type[0]==="W"?lt(q):oe(q)},de=function(q){if(q.size<2)return;var L=pe(q.data,!0),K=new Uint8Array(q.data.subarray(L.length+1));return{key:q.type,info:L,data:K.buffer}},oe=function(q){if(q.size<2)return;if(q.type==="TXXX"){var L=1,K=pe(q.data.subarray(L),!0);L+=K.length+1;var H=pe(q.data.subarray(L));return{key:q.type,info:K,data:H}}var J=pe(q.data.subarray(1));return{key:q.type,data:J}},lt=function(q){if(q.type==="WXXX"){if(q.size<2)return;var L=1,K=pe(q.data.subarray(L),!0);L+=K.length+1;var H=pe(q.data.subarray(L));return{key:q.type,info:K,data:H}}var J=pe(q.data);return{key:q.type,data:J}},qe=function(q){if(q.data.byteLength===8){var L=new Uint8Array(q.data),K=L[3]&1,H=(L[4]<<23)+(L[5]<<15)+(L[6]<<7)+L[7];return H/=45,K&&(H+=4772185884e-2),Math.round(H)}return},pe=function(q){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,K=hr();if(K){var H=K.decode(q);if(L){var J=H.indexOf("\0");return J!==-1?H.substring(0,J):H}return H.replace(/\0/g,"")}for(var ne=q.length,we,_e,Xe,ut="",ht=0;ht<ne;){if(we=q[ht++],we===0&&L)return ut;if(we===0||we===3)continue;switch(we>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:ut+=String.fromCharCode(we);break;case 12:case 13:_e=q[ht++],ut+=String.fromCharCode((we&31)<<6|_e&63);break;case 14:_e=q[ht++],Xe=q[ht++],ut+=String.fromCharCode((we&15)<<12|(_e&63)<<6|(Xe&63)<<0);break}}return ut},Kt;function hr(){return!Kt&&typeof self.TextDecoder!="undefined"&&(Kt=new self.TextDecoder("utf-8")),Kt}var gt={hexDump:function(q){for(var L="",K=0;K<q.length;K++){var H=q[K].toString(16);H.length<2&&(H="0"+H),L+=H}return L}},nr=Math.pow(2,32)-1,mr=[].push,cn={video:1,audio:2,id3:3,text:4};function Ar(ve){return String.fromCharCode.apply(null,ve)}function xr(ve,q){var L=ve[q]<<8|ve[q+1];return L<0?65536+L:L}function qt(ve,q){var L=ar(ve,q);return L<0?4294967296+L:L}function ar(ve,q){return ve[q]<<24|ve[q+1]<<16|ve[q+2]<<8|ve[q+3]}function Et(ve,q,L){ve[q]=L>>24,ve[q+1]=L>>16&255,ve[q+2]=L>>8&255,ve[q+3]=L&255}function en(ve,q){var L=[];if(!q.length)return L;for(var K=ve.byteLength,H=0;H<K;){var J=qt(ve,H),ne=Ar(ve.subarray(H+4,H+8)),we=J>1?H+J:K;if(ne===q[0])if(q.length===1)L.push(ve.subarray(H+8,we));else{var _e=en(ve.subarray(H+8,we),q.slice(1));_e.length&&mr.apply(L,_e)}H=we}return L}function Mn(ve){var q=[],L=ve[0],K=8,H=qt(ve,K);K+=4;var J=0,ne=0;L===0?K+=8:K+=16,K+=2;var we=ve.length+ne,_e=xr(ve,K);K+=2;for(var Xe=0;Xe<_e;Xe++){var ut=K,ht=qt(ve,ut);ut+=4;var Qt=ht&2147483647,Tr=(ht&2147483648)>>>31;if(Tr===1)return U.warn("SIDX has hierarchical references (not supported)"),null;var br=qt(ve,ut);ut+=4,q.push({referenceSize:Qt,subsegmentDuration:br,info:{duration:br/H,start:we,end:we+Qt-1}}),we+=Qt,ut+=4,K=ut}return{earliestPresentationTime:J,timescale:H,version:L,referencesCount:_e,references:q}}function Yn(ve){for(var q=[],L=en(ve,["moov","trak"]),K=0;K<L.length;K++){var H=L[K],J=en(H,["tkhd"])[0];if(J){var ne=J[0],we=ne===0?12:20,_e=qt(J,we),Xe=en(H,["mdia","mdhd"])[0];if(Xe){ne=Xe[0],we=ne===0?12:20;var ut=qt(Xe,we),ht=en(H,["mdia","hdlr"])[0];if(ht){var Qt=Ar(ht.subarray(8,12)),Tr={soun:Se.AUDIO,vide:Se.VIDEO}[Qt];if(Tr){var br=en(H,["mdia","minf","stbl","stsd"])[0],Kr=void 0;br&&(Kr=Ar(br.subarray(12,16))),q[_e]={timescale:ut,type:Tr},q[Tr]={timescale:ut,id:_e,codec:Kr}}}}}}var Zr=en(ve,["moov","mvex","trex"]);return Zr.forEach(function(Pn){var Nn=qt(Pn,4),Jn=q[Nn];Jn&&(Jn.default={duration:qt(Pn,12),flags:qt(Pn,20)})}),q}function ci(ve,q){if(!ve||!q)return ve;var L=q.keyId;if(L&&q.isCommonEncryption){var K=en(ve,["moov","trak"]);K.forEach(function(H){var J=en(H,["mdia","minf","stbl","stsd"])[0],ne=J.subarray(8),we=en(ne,["enca"]),_e=we.length>0;_e||(we=en(ne,["encv"])),we.forEach(function(Xe){var ut=_e?Xe.subarray(28):Xe.subarray(78),ht=en(ut,["sinf"]);ht.forEach(function(Qt){var Tr=Vi(Qt);if(Tr){var br=Tr.subarray(8,24);br.some(function(Kr){return Kr!==0})||(U.log("[eme] Patching keyId in 'enc".concat(_e?"a":"v",">sinf>>tenc' box: ").concat(gt.hexDump(br)," -> ").concat(gt.hexDump(L))),Tr.set(L,8))}})})})}return ve}function Vi(ve){var q=en(ve,["schm"])[0];if(q){var L=Ar(q.subarray(4,8));if(L==="cbcs"||L==="cenc")return en(ve,["schi","tenc"])[0]}return U.error("[eme] missing 'schm' box"),null}function jn(ve,q){return en(q,["moof","traf"]).reduce(function(L,K){var H=en(K,["tfdt"])[0],J=H[0],ne=en(K,["tfhd"]).reduce(function(we,_e){var Xe=qt(_e,4),ut=ve[Xe];if(ut){var ht=qt(H,4);if(J===1){if(ht===nr)return U.warn("[mp4-demuxer]: Ignoring assumed invalid signed 64-bit track fragment decode time"),we;ht*=nr+1,ht+=qt(H,8)}var Qt=ut.timescale||9e4,Tr=ht/Qt;if(E(Tr)&&(we===null||Tr<we))return Tr}return we},null);return ne!==null&&E(ne)&&(L===null||ne<L)?ne:L},null)}function Qn(ve,q){for(var L=0,K=0,H=0,J=en(ve,["moof","traf"]),ne=0;ne<J.length;ne++){var we=J[ne],_e=en(we,["tfhd"])[0],Xe=qt(_e,4),ut=q[Xe];if(!ut)continue;var ht=ut.default,Qt=qt(_e,0)|(ht==null?void 0:ht.flags),Tr=ht==null?void 0:ht.duration;Qt&8&&(Qt&2?Tr=qt(_e,12):Tr=qt(_e,8));for(var br=ut.timescale||9e4,Kr=en(we,["trun"]),Zr=0;Zr<Kr.length;Zr++){if(L=$t(Kr[Zr]),!L&&Tr){var Pn=qt(Kr[Zr],4);L=Tr*Pn}ut.type===Se.VIDEO?K+=L/br:ut.type===Se.AUDIO&&(H+=L/br)}}if(K===0&&H===0){for(var Nn=0,Jn=en(ve,["sidx"]),wi=0;wi<Jn.length;wi++){var sa=Mn(Jn[wi]);sa!=null&&sa.references&&(Nn+=sa.references.reduce(function(Wi,Ji){return Wi+Ji.info.duration||0},0))}return Nn}return K||H}function $t(ve){var q=qt(ve,0),L=8;q&1&&(L+=4),q&4&&(L+=4);for(var K=0,H=qt(ve,4),J=0;J<H;J++){if(q&256){var ne=qt(ve,L);K+=ne,L+=4}q&512&&(L+=4),q&1024&&(L+=4),q&2048&&(L+=4)}return K}function Ot(ve,q,L){en(q,["moof","traf"]).forEach(function(K){en(K,["tfhd"]).forEach(function(H){var J=qt(H,4),ne=ve[J];if(!ne)return;var we=ne.timescale||9e4;en(K,["tfdt"]).forEach(function(_e){var Xe=_e[0],ut=qt(_e,4);if(Xe===0)ut-=L*we,ut=Math.max(ut,0),Et(_e,4,ut);else{ut*=Math.pow(2,32),ut+=qt(_e,8),ut-=L*we,ut=Math.max(ut,0);var ht=Math.floor(ut/(nr+1)),Qt=Math.floor(ut%(nr+1));Et(_e,4,ht),Et(_e,8,Qt)}})})})}function ke(ve){var q={valid:null,remainder:null},L=en(ve,["moof"]);if(L){if(L.length<2)return q.remainder=ve,q}else return q;var K=L[L.length-1];return q.valid=pt(ve,0,K.byteOffset-8),q.remainder=pt(ve,K.byteOffset-8),q}function Me(ve,q){var L=new Uint8Array(ve.length+q.length);return L.set(ve),L.set(q,ve.length),L}function Be(ve,q){var L=[],K=q.samples,H=q.timescale,J=q.id,ne=!1,we=en(K,["moof"]);return we.map(function(_e){var Xe=_e.byteOffset-8,ut=en(_e,["traf"]);ut.map(function(ht){var Qt=en(ht,["tfdt"]).map(function(Tr){var br=Tr[0],Kr=qt(Tr,4);return br===1&&(Kr*=Math.pow(2,32),Kr+=qt(Tr,8)),Kr/H})[0];return Qt!==void 0&&(ve=Qt),en(ht,["tfhd"]).map(function(Tr){var br=qt(Tr,4),Kr=qt(Tr,0)&16777215,Zr=(Kr&1)!==0,Pn=(Kr&2)!==0,Nn=(Kr&8)!==0,Jn=0,wi=(Kr&16)!==0,sa=0,Wi=(Kr&32)!==0,Ji=8;br===J&&(Zr&&(Ji+=8),Pn&&(Ji+=4),Nn&&(Jn=qt(Tr,Ji),Ji+=4),wi&&(sa=qt(Tr,Ji),Ji+=4),Wi&&(Ji+=4),q.type==="video"&&(ne=at(q.codec)),en(ht,["trun"]).map(function(La){var Xa=La[0],Ua=qt(La,0)&16777215,ba=(Ua&1)!==0,_o=0,bs=(Ua&4)!==0,ds=(Ua&256)!==0,rl=0,xe=(Ua&512)!==0,Ye=0,St=(Ua&1024)!==0,ur=(Ua&2048)!==0,Br=0,on=qt(La,4),je=8;ba&&(_o=qt(La,je),je+=4),bs&&(je+=4);for(var ae=_o+Xe,Oe=0;Oe<on;Oe++){if(ds?(rl=qt(La,je),je+=4):rl=Jn,xe?(Ye=qt(La,je),je+=4):Ye=sa,St&&(je+=4),ur&&(Xa===0?Br=qt(La,je):Br=ar(La,je),je+=4),q.type===Se.VIDEO)for(var Ze=0;Ze<Ye;){var yt=qt(K,ae);if(ae+=4,At(ne,K[ae])){var Xt=K.subarray(ae,ae+yt);Ct(Xt,ne?2:1,ve+Br/H,L)}ae+=yt,Ze+=yt+4}ve+=rl/H}}))})})}),L}function at(ve){if(!ve)return!1;var q=ve.indexOf("."),L=q<0?ve:ve.substring(0,q);return L==="hvc1"||L==="hev1"||L==="dvh1"||L==="dvhe"}function At(ve,q){if(ve){var L=q>>1&63;return L===39||L===40}else{var K=q&31;return K===6}}function Ct(ve,q,L,K){var H=Yt(ve),J=0;J+=q;for(var ne=0,we=0,_e=!1,Xe=0;J<H.length;){ne=0;do{if(J>=H.length)break;Xe=H[J++],ne+=Xe}while(Xe===255);we=0;do{if(J>=H.length)break;Xe=H[J++],we+=Xe}while(Xe===255);var ut=H.length-J;if(!_e&&ne===4&&J<H.length){_e=!0;var ht=H[J++];if(ht===181){var Qt=xr(H,J);if(J+=2,Qt===49){var Tr=qt(H,J);if(J+=4,Tr===1195456820){var br=H[J++];if(br===3){var Kr=H[J++],Zr=31&Kr,Pn=64&Kr,Nn=Pn?2+Zr*3:0,Jn=new Uint8Array(Nn);if(Pn){Jn[0]=Kr;for(var wi=1;wi<Nn;wi++)Jn[wi]=H[J++]}K.push({type:br,payloadType:ne,pts:L,bytes:Jn})}}}}}else if(ne===5&&we<ut){if(_e=!0,we>16){for(var sa=[],Wi=0;Wi<16;Wi++){var Ji=H[J++].toString(16);sa.push(Ji.length==1?"0"+Ji:Ji),(Wi===3||Wi===5||Wi===7||Wi===9)&&sa.push("-")}for(var La=we-16,Xa=new Uint8Array(La),Ua=0;Ua<La;Ua++)Xa[Ua]=H[J++];K.push({payloadType:ne,pts:L,uuid:sa.join(""),userData:pe(Xa),userDataBytes:Xa})}}else if(we<ut)J+=we;else if(we>ut)break}}function Yt(ve){for(var q=ve.byteLength,L=[],K=1;K<q-2;)ve[K]===0&&ve[K+1]===0&&ve[K+2]===3?(L.push(K+2),K+=2):K++;if(L.length===0)return ve;var H=q-L.length,J=new Uint8Array(H),ne=0;for(K=0;K<H;ne++,K++)ne===L[0]&&(ne++,L.shift()),J[K]=ve[ne];return J}function Pr(ve){var q=ve[0],L="",K="",H=0,J=0,ne=0,we=0,_e=0,Xe=0;if(q===0){for(;Ar(ve.subarray(Xe,Xe+1))!=="\0";)L+=Ar(ve.subarray(Xe,Xe+1)),Xe+=1;for(L+=Ar(ve.subarray(Xe,Xe+1)),Xe+=1;Ar(ve.subarray(Xe,Xe+1))!=="\0";)K+=Ar(ve.subarray(Xe,Xe+1)),Xe+=1;K+=Ar(ve.subarray(Xe,Xe+1)),Xe+=1,H=qt(ve,12),J=qt(ve,16),we=qt(ve,20),_e=qt(ve,24),Xe=28}else if(q===1){Xe+=4,H=qt(ve,Xe),Xe+=4;var ut=qt(ve,Xe);Xe+=4;var ht=qt(ve,Xe);for(Xe+=4,ne=Math.pow(2,32)*ut+ht,C(ne)||(ne=Number.MAX_SAFE_INTEGER,U.warn("Presentation time exceeds safe integer limit and wrapped to max safe integer in parsing emsg box")),we=qt(ve,Xe),Xe+=4,_e=qt(ve,Xe),Xe+=4;Ar(ve.subarray(Xe,Xe+1))!=="\0";)L+=Ar(ve.subarray(Xe,Xe+1)),Xe+=1;for(L+=Ar(ve.subarray(Xe,Xe+1)),Xe+=1;Ar(ve.subarray(Xe,Xe+1))!=="\0";)K+=Ar(ve.subarray(Xe,Xe+1)),Xe+=1;K+=Ar(ve.subarray(Xe,Xe+1)),Xe+=1}var Qt=ve.subarray(Xe,ve.byteLength);return{schemeIdUri:L,value:K,timeScale:H,presentationTime:ne,presentationTimeDelta:J,eventDuration:we,id:_e,payload:Qt}}function qr(ve){for(var q=arguments.length,L=new Array(q>1?q-1:0),K=1;K<q;K++)L[K-1]=arguments[K];for(var H=L.length,J=8,ne=H;ne--;)J+=L[ne].byteLength;var we=new Uint8Array(J);for(we[0]=J>>24&255,we[1]=J>>16&255,we[2]=J>>8&255,we[3]=J&255,we.set(ve,4),ne=0,J=8;ne<H;ne++)we.set(L[ne],J),J+=L[ne].byteLength;return we}function An(ve,q,L){if(ve.byteLength!==16)throw new RangeError("Invalid system id");var K,H;if(q){K=1,H=new Uint8Array(q.length*16);for(var J=0;J<q.length;J++){var ne=q[J];if(ne.byteLength!==16)throw new RangeError("Invalid key");H.set(ne,J*16)}}else K=0,H=new Uint8Array;var we;K>0?(we=new Uint8Array(4),q.length>0&&new DataView(we.buffer).setUint32(0,q.length,!1)):we=new Uint8Array;var _e=new Uint8Array(4);return L&&L.byteLength>0&&new DataView(_e.buffer).setUint32(0,L.byteLength,!1),qr([112,115,115,104],new Uint8Array([K,0,0,0]),ve,we,H,_e,L||new Uint8Array)}function Gt(ve){if(!(ve instanceof ArrayBuffer)||ve.byteLength<32)return null;var q={version:0,systemId:"",kids:null,data:null},L=new DataView(ve),K=L.getUint32(0);if(ve.byteLength!==K&&K>44)return null;var H=L.getUint32(4);if(H!==1886614376)return null;if(q.version=L.getUint32(8)>>>24,q.version>1)return null;q.systemId=gt.hexDump(new Uint8Array(ve,12,16));var J=L.getUint32(28);if(q.version===0){if(K-32<J)return null;q.data=new Uint8Array(ve,32,J)}else if(q.version===1){q.kids=[];for(var ne=0;ne<J;ne++)q.kids.push(new Uint8Array(ve,32+ne*16,16))}return q}var vt={},bt=function(){function ve(q,L,K){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[1],J=arguments.length>4&&arguments[4]!==void 0?arguments[4]:null;Object(r.a)(this,ve),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=q,this.uri=L,this.keyFormat=K,this.keyFormatVersions=H,this.iv=J,this.encrypted=q?q!=="NONE":!1,this.isCommonEncryption=this.encrypted&&q!=="AES-128"}return Object(s.a)(ve,[{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 ee.FAIRPLAY:case ee.WIDEVINE:case ee.PLAYREADY:case ee.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&&U.warn('missing IV for initialization segment with method="'.concat(this.method,'" - compliance issue')),L=0);var K=fr(L),H=new ve(this.method,this.uri,"identity",this.keyFormatVersions,K);return H}var J=ge(this.uri);if(J)switch(this.keyFormat){case ee.WIDEVINE:this.pssh=J,J.length>=22&&(this.keyId=J.subarray(J.length-22,J.length-6));break;case ee.PLAYREADY:{var ne=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=An(ne,null,J);var we=new Uint16Array(J.buffer,J.byteOffset,J.byteLength/2),_e=String.fromCharCode.apply(null,Array.from(we)),Xe=_e.substring(_e.indexOf("<"),_e.length),ut=new DOMParser,ht=ut.parseFromString(Xe,"text/xml"),Qt=ht.getElementsByTagName("KID")[0];if(Qt){var Tr=Qt.childNodes[0]?Qt.childNodes[0].nodeValue:Qt.getAttribute("VALUE");if(Tr){var br=Ue(Tr).subarray(0,16);rt(br),this.keyId=br}}break}default:{var Kr=J.subarray(0,16);if(Kr.length!==16){var Zr=new Uint8Array(16);Zr.set(Kr,16-Kr.length),Kr=Zr}this.keyId=Kr;break}}if(!this.keyId||this.keyId.byteLength!==16){var Pn=vt[this.uri];if(!Pn){var Nn=Object.keys(vt).length%Number.MAX_SAFE_INTEGER;Pn=new Uint8Array(16);var Jn=new DataView(Pn.buffer,12,4);Jn.setUint32(0,Nn),vt[this.uri]=Pn}this.keyId=Pn}return this}}],[{key:"clearKeyUriToKeyIdMap",value:function(){vt={}}}]),ve}();function fr(ve){for(var q=new Uint8Array(16),L=12;L<16;L++)q[L]=ve>>8*(15-L)&255;return q}var Jt=/\{\$([a-zA-Z0-9-_]+)\}/g;function Ut(ve){return Jt.test(ve)}function er(ve,q,L){if(ve.variableList!==null||ve.hasVariableRefs)for(var K=L.length;K--;){var H=L[K],J=q[H];J&&(q[H]=Mt(ve,J))}}function Mt(ve,q){if(ve.variableList!==null||ve.hasVariableRefs){var L=ve.variableList;return q.replace(Jt,function(K){var H=K.substring(2,K.length-1),J=L==null?void 0:L[H];return J===void 0?(ve.playlistParsingError||(ve.playlistParsingError=new Error('Missing preceding EXT-X-DEFINE tag for Variable Reference: "'.concat(H,'"'))),K):J})}return q}function Zt(ve,q,L){var K=ve.variableList;K||(ve.variableList=K={});var H,J;if("QUERYPARAM"in q){H=q.QUERYPARAM;try{var ne=new self.URL(L).searchParams;if(ne.has(H))J=ne.get(H);else throw new Error('"'.concat(H,'" does not match any query parameter in URI: "').concat(L,'"'))}catch(we){ve.playlistParsingError||(ve.playlistParsingError=new Error("EXT-X-DEFINE QUERYPARAM: ".concat(we.message)))}}else H=q.NAME,J=q.VALUE;H in K?ve.playlistParsingError||(ve.playlistParsingError=new Error('EXT-X-DEFINE duplicate Variable Name declarations: "'.concat(H,'"'))):K[H]=J||""}function Hr(ve,q,L){var K=q.IMPORT;if(L&&K in L){var H=ve.variableList;H||(ve.variableList=H={}),H[K]=L[K]}else ve.playlistParsingError||(ve.playlistParsingError=new Error('EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "'.concat(K,'"')))}function Ir(){return typeof self=="undefined"?void 0:self.MediaSource||self.WebKitMediaSource}var Lr={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}},dn=Ir();function gn(ve,q){var L=Lr[q];return!!L&&L[ve.slice(0,4)]===!0}function ri(ve,q){var L;return(L=dn==null?void 0:dn.isTypeSupported("".concat(q||"video",'/mp4;codecs="').concat(ve,'"')))!=null?L:!1}var Zn=/#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,pi=/#EXT-X-MEDIA:(.*)/g,Ci=/^#EXT(?:INF|-X-TARGETDURATION):/m,Ni=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[\S ]*)/.source,/#EXT-X-BYTERANGE:*(.+)/.source,/#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/#.*/.source].join("|"),"g"),zi=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("|")),it=function(){function ve(){Object(r.a)(this,ve)}return Object(s.a)(ve,null,[{key:"findGroup",value:function(L,K){for(var H=0;H<L.length;H++){var J=L[H];if(J.id===K)return J}}},{key:"convertAVC1ToAVCOTI",value:function(L){var K=L.split(".");if(K.length>2){var H=K.shift()+".";return H+=parseInt(K.shift()).toString(16),H+=("000"+parseInt(K.shift()).toString(16)).slice(-4),H}return L}},{key:"resolve",value:function(L,K){return g.buildAbsoluteURL(K,L,{alwaysNormalize:!0})}},{key:"isMediaPlaylist",value:function(L){return Ci.test(L)}},{key:"parseMasterPlaylist",value:function(L,K){var H=Ut(L),J={contentSteering:null,levels:[],playlistParsingError:null,sessionData:null,sessionKeys:null,startTimeOffset:null,variableList:null,hasVariableRefs:H},ne=[];Zn.lastIndex=0;for(var we;(we=Zn.exec(L))!=null;)if(we[1]){var _e,Xe=new G(we[1]);er(J,Xe,["CODECS","SUPPLEMENTAL-CODECS","ALLOWED-CPC","PATHWAY-ID","STABLE-VARIANT-ID","AUDIO","VIDEO","SUBTITLES","CLOSED-CAPTIONS","NAME"]);var ut=Mt(J,we[2]),ht={attrs:Xe,bitrate:Xe.decimalInteger("AVERAGE-BANDWIDTH")||Xe.decimalInteger("BANDWIDTH"),name:Xe.NAME,url:ve.resolve(ut,K)},Qt=Xe.decimalResolution("RESOLUTION");Qt&&(ht.width=Qt.width,ht.height=Qt.height),Ge((Xe.CODECS||"").split(/[ ,]+/).filter(function(sa){return sa}),ht),ht.videoCodec&&ht.videoCodec.indexOf("avc1")!==-1&&(ht.videoCodec=ve.convertAVC1ToAVCOTI(ht.videoCodec)),(_e=ht.unknownCodecs)!=null&&_e.length||ne.push(ht),J.levels.push(ht)}else if(we[3]){var Tr=we[3],br=we[4];switch(Tr){case"SESSION-DATA":{var Kr=new G(br);er(J,Kr,["DATA-ID","LANGUAGE","VALUE","URI"]);var Zr=Kr["DATA-ID"];Zr&&(J.sessionData===null&&(J.sessionData={}),J.sessionData[Zr]=Kr);break}case"SESSION-KEY":{var Pn=Ne(br,K,J);Pn.encrypted&&Pn.isSupported()?(J.sessionKeys===null&&(J.sessionKeys=[]),J.sessionKeys.push(Pn)):U.warn('[Keys] Ignoring invalid EXT-X-SESSION-KEY tag: "'.concat(br,'"'));break}case"DEFINE":{{var Nn=new G(br);er(J,Nn,["NAME","VALUE","QUERYPARAM"]),Zt(J,Nn,K)}break}case"CONTENT-STEERING":{var Jn=new G(br);er(J,Jn,["SERVER-URI","PATHWAY-ID"]),J.contentSteering={uri:ve.resolve(Jn["SERVER-URI"],K),pathwayId:Jn["PATHWAY-ID"]||"."};break}case"START":{J.startTimeOffset=He(br);break}}}var wi=ne.length>0&&ne.length<J.levels.length;return J.levels=wi?ne:J.levels,J.levels.length===0&&(J.playlistParsingError=new Error("no levels found in manifest")),J}},{key:"parseMasterPlaylistMedia",value:function(L,K,H){var J,ne={},we=H.levels,_e={AUDIO:we.map(function(Zr){return{id:Zr.attrs.AUDIO,audioCodec:Zr.audioCodec}}),SUBTITLES:we.map(function(Zr){return{id:Zr.attrs.SUBTITLES,textCodec:Zr.textCodec}}),"CLOSED-CAPTIONS":[]},Xe=0;for(pi.lastIndex=0;(J=pi.exec(L))!==null;){var ut=new G(J[1]),ht=ut.TYPE;if(ht){var Qt=_e[ht],Tr=ne[ht]||[];ne[ht]=Tr,er(H,ut,["URI","GROUP-ID","LANGUAGE","ASSOC-LANGUAGE","STABLE-RENDITION-ID","NAME","INSTREAM-ID","CHARACTERISTICS","CHANNELS"]);var br={attrs:ut,bitrate:0,id:Xe++,groupId:ut["GROUP-ID"]||"",instreamId:ut["INSTREAM-ID"],name:ut.NAME||ut.LANGUAGE||"",type:ht,default:ut.bool("DEFAULT"),autoselect:ut.bool("AUTOSELECT"),forced:ut.bool("FORCED"),lang:ut.LANGUAGE,url:ut.URI?ve.resolve(ut.URI,K):""};if(Qt!=null&&Qt.length){var Kr=ve.findGroup(Qt,br.groupId)||Qt[0];nt(br,Kr,"audioCodec"),nt(br,Kr,"textCodec")}Tr.push(br)}}return ne}},{key:"parseLevelPlaylist",value:function(L,K,H,J,ne,we){var _e=new ct(K),Xe=_e.fragments,ut=null,ht=0,Qt=0,Tr=0,br=0,Kr=null,Zr=new Pe(J,K),Pn,Nn,Jn,wi=-1,sa=!1;for(Ni.lastIndex=0,_e.m3u8=L,_e.hasVariableRefs=Ut(L);(Pn=Ni.exec(L))!==null;){sa&&(sa=!1,Zr=new Pe(J,K),Zr.start=Tr,Zr.sn=ht,Zr.cc=br,Zr.level=H,ut&&(Zr.initSegment=ut,Zr.rawProgramDateTime=ut.rawProgramDateTime,ut.rawProgramDateTime=null));var Wi=Pn[1];if(Wi){Zr.duration=parseFloat(Wi);var Ji=(" "+Pn[2]).slice(1);Zr.title=Ji||null,Zr.tagList.push(Ji?["INF",Wi,Ji]:["INF",Wi])}else if(Pn[3]){if(E(Zr.duration)){Zr.start=Tr,Jn&&xt(Zr,Jn,_e),Zr.sn=ht,Zr.level=H,Zr.cc=br,Zr.urlId=ne,Xe.push(Zr);var La=(" "+Pn[3]).slice(1);Zr.relurl=Mt(_e,La),ot(Zr,Kr),Kr=Zr,Tr+=Zr.duration,ht++,Qt=0,sa=!0}}else if(Pn[4]){var Xa=(" "+Pn[4]).slice(1);Kr?Zr.setByteRange(Xa,Kr):Zr.setByteRange(Xa)}else if(Pn[5])Zr.rawProgramDateTime=(" "+Pn[5]).slice(1),Zr.tagList.push(["PROGRAM-DATE-TIME",Zr.rawProgramDateTime]),wi===-1&&(wi=Xe.length);else{if(Pn=Pn[0].match(zi),!Pn){U.warn("No matches on slow regex match for level playlist!");continue}for(Nn=1;Nn<Pn.length&&!(typeof Pn[Nn]!="undefined");Nn++);var Ua=(" "+Pn[Nn]).slice(1),ba=(" "+Pn[Nn+1]).slice(1),_o=Pn[Nn+2]?(" "+Pn[Nn+2]).slice(1):"";switch(Ua){case"PLAYLIST-TYPE":_e.type=ba.toUpperCase();break;case"MEDIA-SEQUENCE":ht=_e.startSN=parseInt(ba);break;case"SKIP":{var bs=new G(ba);er(_e,bs,["RECENTLY-REMOVED-DATERANGES"]);var ds=bs.decimalInteger("SKIPPED-SEGMENTS");if(E(ds)){_e.skippedSegments=ds;for(var rl=ds;rl--;)Xe.unshift(null);ht+=ds}var xe=bs.enumeratedString("RECENTLY-REMOVED-DATERANGES");xe&&(_e.recentlyRemovedDateranges=xe.split(" "));break}case"TARGETDURATION":_e.targetduration=Math.max(parseInt(ba),1);break;case"VERSION":_e.version=parseInt(ba);break;case"EXTM3U":break;case"ENDLIST":_e.live=!1;break;case"#":(ba||_o)&&Zr.tagList.push(_o?[ba,_o]:[ba]);break;case"DISCONTINUITY":br++,Zr.tagList.push(["DIS"]);break;case"GAP":Zr.gap=!0,Zr.tagList.push([Ua]);break;case"BITRATE":Zr.tagList.push([Ua,ba]);break;case"DATERANGE":{var Ye=new G(ba);er(_e,Ye,["ID","CLASS","START-DATE","END-DATE","SCTE35-CMD","SCTE35-OUT","SCTE35-IN"]),er(_e,Ye,Ye.clientAttrs);var St=new le(Ye,_e.dateRanges[Ye.ID]);St.isValid||_e.skippedSegments?_e.dateRanges[St.id]=St:U.warn('Ignoring invalid DATERANGE tag: "'.concat(ba,'"')),Zr.tagList.push(["EXT-X-DATERANGE",ba]);break}case"DEFINE":{{var ur=new G(ba);er(_e,ur,["NAME","VALUE","IMPORT","QUERYPARAM"]),"IMPORT"in ur?Hr(_e,ur,we):Zt(_e,ur,K)}break}case"DISCONTINUITY-SEQUENCE":br=parseInt(ba);break;case"KEY":{var Br=Ne(ba,K,_e);if(Br.isSupported()){if(Br.method==="NONE"){Jn=void 0;break}Jn||(Jn={}),Jn[Br.keyFormat]&&(Jn=x({},Jn)),Jn[Br.keyFormat]=Br}else U.warn('[Keys] Ignoring invalid EXT-X-KEY tag: "'.concat(ba,'"'));break}case"START":_e.startTimeOffset=He(ba);break;case"MAP":{var on=new G(ba);if(er(_e,on,["BYTERANGE","URI"]),Zr.duration){var je=new Pe(J,K);Pt(je,on,H,Jn),ut=je,Zr.initSegment=ut,ut.rawProgramDateTime&&!Zr.rawProgramDateTime&&(Zr.rawProgramDateTime=ut.rawProgramDateTime)}else Pt(Zr,on,H,Jn),ut=Zr,sa=!0;break}case"SERVER-CONTROL":{var ae=new G(ba);_e.canBlockReload=ae.bool("CAN-BLOCK-RELOAD"),_e.canSkipUntil=ae.optionalFloat("CAN-SKIP-UNTIL",0),_e.canSkipDateRanges=_e.canSkipUntil>0&&ae.bool("CAN-SKIP-DATERANGES"),_e.partHoldBack=ae.optionalFloat("PART-HOLD-BACK",0),_e.holdBack=ae.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{var Oe=new G(ba);_e.partTarget=Oe.decimalFloatingPoint("PART-TARGET");break}case"PART":{var Ze=_e.partList;Ze||(Ze=_e.partList=[]);var yt=Qt>0?Ze[Ze.length-1]:void 0,Xt=Qt++,tr=new G(ba);er(_e,tr,["BYTERANGE","URI"]);var or=new Je(tr,Zr,K,Xt,yt);Ze.push(or),Zr.duration+=or.duration;break}case"PRELOAD-HINT":{var Wr=new G(ba);er(_e,Wr,["URI"]),_e.preloadHint=Wr;break}case"RENDITION-REPORT":{var un=new G(ba);er(_e,un,["URI"]),_e.renditionReports=_e.renditionReports||[],_e.renditionReports.push(un);break}default:U.warn("line parsed but not handled: ".concat(Pn));break}}}Kr&&!Kr.relurl?(Xe.pop(),Tr-=Kr.duration,_e.partList&&(_e.fragmentHint=Kr)):_e.partList&&(ot(Zr,Kr),Zr.cc=br,_e.fragmentHint=Zr,Jn&&xt(Zr,Jn,_e));var zr=Xe.length,jr=Xe[0],sn=Xe[zr-1];if(Tr+=_e.skippedSegments*_e.targetduration,Tr>0&&zr&&sn){_e.averagetargetduration=Tr/zr;var vn=sn.sn;_e.endSN=vn!=="initSegment"?vn:0,_e.live||(sn.endList=!0),jr&&(_e.startCC=jr.cc)}else _e.endSN=0,_e.startCC=0;return _e.fragmentHint&&(Tr+=_e.fragmentHint.duration),_e.totalduration=Tr,_e.endCC=br,wi>0&&$e(Xe,wi),_e}}]),ve}();function Ne(ve,q,L){var K,H,J=new G(ve);er(L,J,["KEYFORMAT","KEYFORMATVERSIONS","URI","IV","URI"]);var ne=(K=J.METHOD)!=null?K:"",we=J.URI,_e=J.hexadecimalInteger("IV"),Xe=J.KEYFORMATVERSIONS,ut=(H=J.KEYFORMAT)!=null?H:"identity";we&&J.IV&&!_e&&U.error("Invalid IV: ".concat(J.IV));var ht=we?it.resolve(we,q):"",Qt=(Xe||"1").split("/").map(Number).filter(Number.isFinite);return new bt(ne,ht,ut,Qt,_e)}function He(ve){var q=new G(ve),L=q.decimalFloatingPoint("TIME-OFFSET");return E(L)?L:null}function Ge(ve,q){["video","audio","text"].forEach(function(L){var K=ve.filter(function(J){return gn(J,L)});if(K.length){var H=K.filter(function(J){return J.lastIndexOf("avc1",0)===0||J.lastIndexOf("mp4a",0)===0});q["".concat(L,"Codec")]=H.length>0?H[0]:K[0],ve=ve.filter(function(J){return K.indexOf(J)===-1})}}),q.unknownCodecs=ve}function nt(ve,q,L){var K=q[L];K&&(ve[L]=K)}function $e(ve,q){for(var L=ve[q],K=q;K--;){var H=ve[K];if(!H)return;H.programDateTime=L.programDateTime-H.duration*1e3,L=H}}function ot(ve,q){ve.rawProgramDateTime?ve.programDateTime=Date.parse(ve.rawProgramDateTime):q!=null&&q.programDateTime&&(ve.programDateTime=q.endProgramDateTime),E(ve.programDateTime)||(ve.programDateTime=null,ve.rawProgramDateTime=null)}function Pt(ve,q,L,K){ve.relurl=q.URI,q.BYTERANGE&&ve.setByteRange(q.BYTERANGE),ve.level=L,ve.sn="initSegment",K&&(ve.levelkeys=K),ve.initSegment=null}function xt(ve,q,L){ve.levelkeys=q;var K=L.encryptedFragments;(!K.length||K[K.length-1].levelkeys!==q)&&Object.keys(q).some(function(H){return q[H].isCommonEncryption})&&K.push(ve)}var rr={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},Fr={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};function Vr(ve){var q=ve.type;switch(q){case rr.AUDIO_TRACK:return Fr.AUDIO;case rr.SUBTITLE_TRACK:return Fr.SUBTITLE;default:return Fr.MAIN}}function fn(ve,q){var L=ve.url;return(L===void 0||L.indexOf("data:")===0)&&(L=q.url),L}var gr=function(){function ve(q){Object(r.a)(this,ve),this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.hls=q,this.registerListeners()}return Object(s.a)(ve,[{key:"startLoad",value:function(L){}},{key:"stopLoad",value:function(){this.destroyInternalLoaders()}},{key:"registerListeners",value:function(){var L=this.hls;L.on(_.MANIFEST_LOADING,this.onManifestLoading,this),L.on(_.LEVEL_LOADING,this.onLevelLoading,this),L.on(_.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),L.on(_.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(_.MANIFEST_LOADING,this.onManifestLoading,this),L.off(_.LEVEL_LOADING,this.onLevelLoading,this),L.off(_.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),L.off(_.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this)}},{key:"createInternalLoader",value:function(L){var K=this.hls.config,H=K.pLoader,J=K.loader,ne=H||J,we=new ne(K);return this.loaders[L.type]=we,we}},{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 K=this.loaders[L];K&&K.destroy(),this.resetInternalLoader(L)}}},{key:"destroy",value:function(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}},{key:"onManifestLoading",value:function(L,K){var H=K.url;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:rr.MANIFEST,url:H,deliveryDirectives:null})}},{key:"onLevelLoading",value:function(L,K){var H=K.id,J=K.level,ne=K.url,we=K.deliveryDirectives;this.load({id:H,level:J,responseType:"text",type:rr.LEVEL,url:ne,deliveryDirectives:we})}},{key:"onAudioTrackLoading",value:function(L,K){var H=K.id,J=K.groupId,ne=K.url,we=K.deliveryDirectives;this.load({id:H,groupId:J,level:null,responseType:"text",type:rr.AUDIO_TRACK,url:ne,deliveryDirectives:we})}},{key:"onSubtitleTrackLoading",value:function(L,K){var H=K.id,J=K.groupId,ne=K.url,we=K.deliveryDirectives;this.load({id:H,groupId:J,level:null,responseType:"text",type:rr.SUBTITLE_TRACK,url:ne,deliveryDirectives:we})}},{key:"load",value:function(L){var K=this,H,J=this.hls.config,ne=this.getInternalLoader(L);if(ne){var we=ne.context;if(we&&we.url===L.url){U.trace("[playlist-loader]: playlist request ongoing");return}U.log("[playlist-loader]: aborting previous loader for type: ".concat(L.type)),ne.abort()}var _e;if(L.type===rr.MANIFEST?_e=J.manifestLoadPolicy.default:_e=x({},J.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),ne=this.createInternalLoader(L),(H=L.deliveryDirectives)!=null&&H.part){var Xe;if(L.type===rr.LEVEL&&L.level!==null?Xe=this.hls.levels[L.level].details:L.type===rr.AUDIO_TRACK&&L.id!==null?Xe=this.hls.audioTracks[L.id].details:L.type===rr.SUBTITLE_TRACK&&L.id!==null&&(Xe=this.hls.subtitleTracks[L.id].details),Xe){var ut=Xe.partTarget,ht=Xe.targetduration;if(ut&&ht){var Qt=Math.max(ut*3,ht*.8)*1e3;_e=x({},_e,{maxTimeToFirstByteMs:Math.min(Qt,_e.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(Qt,_e.maxTimeToFirstByteMs)})}}}var Tr=_e.errorRetry||_e.timeoutRetry||{},br={loadPolicy:_e,timeout:_e.maxLoadTimeMs,maxRetry:Tr.maxNumRetry||0,retryDelay:Tr.retryDelayMs||0,maxRetryDelay:Tr.maxRetryDelayMs||0},Kr={onSuccess:function(Pn,Nn,Jn,wi){var sa=K.getInternalLoader(Jn);K.resetInternalLoader(Jn.type);var Wi=Pn.data;if(Wi.indexOf("#EXTM3U")!==0){K.handleManifestParsingError(Pn,Jn,new Error("no EXTM3U delimiter"),wi||null,Nn);return}Nn.parsing.start=performance.now(),it.isMediaPlaylist(Wi)?K.handleTrackOrLevelPlaylist(Pn,Nn,Jn,wi||null,sa):K.handleMasterPlaylist(Pn,Nn,Jn,wi)},onError:function(Pn,Nn,Jn,wi){K.handleNetworkError(Nn,Jn,!1,Pn,wi)},onTimeout:function(Pn,Nn,Jn){K.handleNetworkError(Nn,Jn,!0,void 0,Pn)}};ne.load(L,br,Kr)}},{key:"handleMasterPlaylist",value:function(L,K,H,J){var ne=this.hls,we=L.data,_e=fn(L,H),Xe=it.parseMasterPlaylist(we,_e);if(Xe.playlistParsingError){this.handleManifestParsingError(L,H,Xe.playlistParsingError,J,K);return}var ut=Xe.contentSteering,ht=Xe.levels,Qt=Xe.sessionData,Tr=Xe.sessionKeys,br=Xe.startTimeOffset,Kr=Xe.variableList;this.variableList=Kr;var Zr=it.parseMasterPlaylistMedia(we,_e,Xe),Pn=Zr.AUDIO,Nn=Pn===void 0?[]:Pn,Jn=Zr.SUBTITLES,wi=Zr["CLOSED-CAPTIONS"];if(Nn.length){var sa=Nn.some(function(Wi){return!Wi.url});!sa&&ht[0].audioCodec&&!ht[0].attrs.AUDIO&&(U.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),Nn.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new G({}),bitrate:0,url:""}))}ne.trigger(_.MANIFEST_LOADED,{levels:ht,audioTracks:Nn,subtitles:Jn,captions:wi,contentSteering:ut,url:_e,stats:K,networkDetails:J,sessionData:Qt,sessionKeys:Tr,startTimeOffset:br,variableList:Kr})}},{key:"handleTrackOrLevelPlaylist",value:function(L,K,H,J,ne){var we=this.hls,_e=H.id,Xe=H.level,ut=H.type,ht=fn(L,H),Qt=E(_e)?_e:0,Tr=E(Xe)?Xe:Qt,br=Vr(H),Kr=it.parseLevelPlaylist(L.data,ht,Tr,br,Qt,this.variableList);if(ut===rr.MANIFEST){var Zr={attrs:new G({}),bitrate:0,details:Kr,name:"",url:ht};we.trigger(_.MANIFEST_LOADED,{levels:[Zr],audioTracks:[],url:ht,stats:K,networkDetails:J,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}K.parsing.end=performance.now(),H.levelDetails=Kr,this.handlePlaylistLoaded(Kr,L,K,H,J,ne)}},{key:"handleManifestParsingError",value:function(L,K,H,J,ne){this.hls.trigger(_.ERROR,{type:F.NETWORK_ERROR,details:R.MANIFEST_PARSING_ERROR,fatal:K.type===rr.MANIFEST,url:L.url,err:H,error:H,reason:H.message,response:L,context:K,networkDetails:J,stats:ne})}},{key:"handleNetworkError",value:function(L,K){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,J=arguments.length>3?arguments[3]:void 0,ne=arguments.length>4?arguments[4]:void 0,we="A network ".concat(H?"timeout":"error"+(J?" (status "+J.code+")":"")," occurred while loading ").concat(L.type);L.type===rr.LEVEL?we+=": ".concat(L.level," id: ").concat(L.id):(L.type===rr.AUDIO_TRACK||L.type===rr.SUBTITLE_TRACK)&&(we+=" id: ".concat(L.id,' group-id: "').concat(L.groupId,'"'));var _e=new Error(we);U.warn("[playlist-loader]: ".concat(we));var Xe=R.UNKNOWN,ut=!1,ht=this.getInternalLoader(L);switch(L.type){case rr.MANIFEST:Xe=H?R.MANIFEST_LOAD_TIMEOUT:R.MANIFEST_LOAD_ERROR,ut=!0;break;case rr.LEVEL:Xe=H?R.LEVEL_LOAD_TIMEOUT:R.LEVEL_LOAD_ERROR,ut=!1;break;case rr.AUDIO_TRACK:Xe=H?R.AUDIO_TRACK_LOAD_TIMEOUT:R.AUDIO_TRACK_LOAD_ERROR,ut=!1;break;case rr.SUBTITLE_TRACK:Xe=H?R.SUBTITLE_TRACK_LOAD_TIMEOUT:R.SUBTITLE_LOAD_ERROR,ut=!1;break}ht&&this.resetInternalLoader(L.type);var Qt={type:F.NETWORK_ERROR,details:Xe,fatal:ut,url:L.url,loader:ht,context:L,error:_e,networkDetails:K,stats:ne};if(J){var Tr=(K==null?void 0:K.url)||L.url;Qt.response=b({url:Tr,data:void 0},J)}this.hls.trigger(_.ERROR,Qt)}},{key:"handlePlaylistLoaded",value:function(L,K,H,J,ne,we){var _e=this.hls,Xe=J.type,ut=J.level,ht=J.id,Qt=J.groupId,Tr=J.deliveryDirectives,br=fn(K,J),Kr=Vr(J),Zr=typeof J.level=="number"&&Kr===Fr.MAIN?ut:void 0;if(!L.fragments.length){var Pn=new Error("No Segments found in Playlist");_e.trigger(_.ERROR,{type:F.NETWORK_ERROR,details:R.LEVEL_EMPTY_ERROR,fatal:!1,url:br,error:Pn,reason:Pn.message,response:K,context:J,level:Zr,parent:Kr,networkDetails:ne,stats:H});return}L.targetduration||(L.playlistParsingError=new Error("Missing Target Duration"));var Nn=L.playlistParsingError;if(Nn){_e.trigger(_.ERROR,{type:F.NETWORK_ERROR,details:R.LEVEL_PARSING_ERROR,fatal:!1,url:br,error:Nn,reason:Nn.message,response:K,context:J,level:Zr,parent:Kr,networkDetails:ne,stats:H});return}L.live&&we&&(we.getCacheAge&&(L.ageHeader=we.getCacheAge()||0),(!we.getCacheAge||isNaN(L.ageHeader))&&(L.ageHeader=0));switch(Xe){case rr.MANIFEST:case rr.LEVEL:_e.trigger(_.LEVEL_LOADED,{details:L,level:Zr||0,id:ht||0,stats:H,networkDetails:ne,deliveryDirectives:Tr});break;case rr.AUDIO_TRACK:_e.trigger(_.AUDIO_TRACK_LOADED,{details:L,id:ht||0,groupId:Qt||"",stats:H,networkDetails:ne,deliveryDirectives:Tr});break;case rr.SUBTITLE_TRACK:_e.trigger(_.SUBTITLE_TRACK_LOADED,{details:L,id:ht||0,groupId:Qt||"",stats:H,networkDetails:ne,deliveryDirectives:Tr});break}}}]),ve}();function Gn(ve,q){var L;try{L=new Event("addtrack")}catch(K){L=document.createEvent("Event"),L.initEvent("addtrack",!1,!1)}L.track=ve,q.dispatchEvent(L)}function Mr(ve,q){var L=ve.mode;if(L==="disabled"&&(ve.mode="hidden"),ve.cues&&!ve.cues.getCueById(q.id))try{if(ve.addCue(q),!ve.cues.getCueById(q.id))throw new Error("addCue is failed for: ".concat(q))}catch(H){U.debug("[texttrack-utils]: ".concat(H));try{var K=new self.TextTrackCue(q.startTime,q.endTime,q.text);K.id=q.id,ve.addCue(K)}catch(J){U.debug("[texttrack-utils]: Legacy TextTrackCue fallback failed: ".concat(J))}}L==="disabled"&&(ve.mode=L)}function Rn(ve){var q=ve.mode;if(q==="disabled"&&(ve.mode="hidden"),ve.cues)for(var L=ve.cues.length;L--;)ve.removeCue(ve.cues[L]);q==="disabled"&&(ve.mode=q)}function bn(ve,q,L,K){var H=ve.mode;if(H==="disabled"&&(ve.mode="hidden"),ve.cues&&ve.cues.length>0)for(var J=ei(ve.cues,q,L),ne=0;ne<J.length;ne++)(!K||K(J[ne]))&&ve.removeCue(J[ne]);H==="disabled"&&(ve.mode=H)}function rn(ve,q){if(q<ve[0].startTime)return 0;var L=ve.length-1;if(q>ve[L].endTime)return-1;for(var K=0,H=L;K<=H;){var J=Math.floor((H+K)/2);if(q<ve[J].startTime)H=J-1;else if(q>ve[J].startTime&&K<L)K=J+1;else return J}return ve[K].startTime-q<q-ve[H].startTime?K:H}function ei(ve,q,L){var K=[],H=rn(ve,q);if(H>-1)for(var J=H,ne=ve.length;J<ne;J++){var we=ve[J];if(we.startTime>=q&&we.endTime<=L)K.push(we);else if(we.startTime>L)return K}return K}var fi={audioId3:"org.id3",dateRange:"com.apple.quicktime.HLS",emsg:"https://aomedia.org/emsg/ID3"},Mi=.25;function $r(){return typeof self=="undefined"?void 0:self.VTTCue||self.TextTrackCue}function En(ve,q,L,K,H){var J=new ve(q,L,"");try{J.value=K,H&&(J.type=H)}catch(ne){J=new ve(q,L,JSON.stringify(H?b({type:H},K):K))}return J}var Hn=function(){var ve=$r();try{ve&&new ve(0,Number.POSITIVE_INFINITY,"")}catch(q){return Number.MAX_VALUE}return Number.POSITIVE_INFINITY}();function zt(ve,q){return ve.getTime()/1e3-q}function _t(ve){return Uint8Array.from(ve.replace(/^0x/,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")).buffer}var Ft=function(){function ve(q){Object(r.a)(this,ve),this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=q,this._registerListeners()}return Object(s.a)(ve,[{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(_.MEDIA_ATTACHED,this.onMediaAttached,this),L.on(_.MEDIA_DETACHING,this.onMediaDetaching,this),L.on(_.MANIFEST_LOADING,this.onManifestLoading,this),L.on(_.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),L.on(_.BUFFER_FLUSHING,this.onBufferFlushing,this),L.on(_.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"_unregisterListeners",value:function(){var L=this.hls;L.off(_.MEDIA_ATTACHED,this.onMediaAttached,this),L.off(_.MEDIA_DETACHING,this.onMediaDetaching,this),L.off(_.MANIFEST_LOADING,this.onManifestLoading,this),L.off(_.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),L.off(_.BUFFER_FLUSHING,this.onBufferFlushing,this),L.off(_.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"onMediaAttached",value:function(L,K){this.media=K.media}},{key:"onMediaDetaching",value:function(){if(!this.id3Track)return;Rn(this.id3Track),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={}}},{key:"onManifestLoading",value:function(){this.dateRangeCuesAppended={}}},{key:"createTrack",value:function(L){var K=this.getID3Track(L.textTracks);return K.mode="hidden",K}},{key:"getID3Track",value:function(L){if(!this.media)return;for(var K=0;K<L.length;K++){var H=L[K];if(H.kind==="metadata"&&H.label==="id3")return Gn(H,this.media),H}return this.media.addTextTrack("metadata","id3")}},{key:"onFragParsingMetadata",value:function(L,K){if(!this.media)return;var H=this.hls.config,J=H.enableEmsgMetadataCues,ne=H.enableID3MetadataCues;if(!J&&!ne)return;var we=K.samples;this.id3Track||(this.id3Track=this.createTrack(this.media));var _e=$r();if(!_e)return;for(var Xe=0;Xe<we.length;Xe++){var ut=we[Xe].type;if(ut===fi.emsg&&!J||!ne)continue;var ht=Bt(we[Xe].data);if(ht){var Qt=we[Xe].pts,Tr=Qt+we[Xe].duration;Tr>Hn&&(Tr=Hn);var br=Tr-Qt;br<=0&&(Tr=Qt+Mi);for(var Kr=0;Kr<ht.length;Kr++){var Zr=ht[Kr];if(!Dt(Zr)){this.updateId3CueEnds(Qt,ut);var Pn=En(_e,Qt,Tr,Zr,ut);Pn&&this.id3Track.addCue(Pn)}}}}}},{key:"updateId3CueEnds",value:function(L,K){var H,J=(H=this.id3Track)==null?void 0:H.cues;if(J)for(var ne=J.length;ne--;){var we=J[ne];we.type===K&&we.startTime<L&&we.endTime===Hn&&(we.endTime=L)}}},{key:"onBufferFlushing",value:function(L,K){var H=K.startOffset,J=K.endOffset,ne=K.type,we=this.id3Track,_e=this.hls;if(!_e)return;var Xe=_e.config,ut=Xe.enableEmsgMetadataCues,ht=Xe.enableID3MetadataCues;if(we&&(ut||ht)){var Qt;ne==="audio"?Qt=function(br){return br.type===fi.audioId3&&ht}:ne==="video"?Qt=function(br){return br.type===fi.emsg&&ut}:Qt=function(br){return br.type===fi.audioId3&&ht||br.type===fi.emsg&&ut},bn(we,H,J,Qt)}}},{key:"onLevelUpdated",value:function(L,K){var H=this,J=K.details;if(!this.media||!J.hasProgramDateTime||!this.hls.config.enableDateRangeMetadataCues)return;var ne=this.dateRangeCuesAppended,we=this.id3Track,_e=J.dateRanges,Xe=Object.keys(_e);if(we)for(var ut=Object.keys(ne).filter(function(Nn){return!Xe.includes(Nn)}),ht=function(){var Jn=ut[Qt];Object.keys(ne[Jn].cues).forEach(function(wi){we.removeCue(ne[Jn].cues[wi])}),delete ne[Jn]},Qt=ut.length;Qt--;)ht();var Tr=J.fragments[J.fragments.length-1];if(Xe.length===0||!E(Tr==null?void 0:Tr.programDateTime))return;this.id3Track||(this.id3Track=this.createTrack(this.media));for(var br=Tr.programDateTime/1e3-Tr.start,Kr=$r(),Zr=function(){var Jn=Xe[_i8],wi=_e[Jn],sa=ne[Jn],Wi=(sa==null?void 0:sa.cues)||{},Ji=(sa==null?void 0:sa.durationKnown)||!1,La=zt(wi.startDate,br),Xa=Hn,Ua=wi.endDate;if(Ua)Xa=zt(Ua,br),Ji=!0;else if(wi.endOnNext&&!Ji){var ba=Xe.reduce(function(St,ur){var Br=_e[ur];return Br.class===wi.class&&Br.id!==ur&&Br.startDate>wi.startDate&&St.push(Br),St},[]).sort(function(St,ur){return St.startDate.getTime()-ur.startDate.getTime()})[0];ba&&(Xa=zt(ba.startDate,br),Ji=!0)}for(var _o=Object.keys(wi.attr),bs=0;bs<_o.length;bs++){var ds=_o[bs];if(!te(ds))continue;var rl=Wi[ds];if(rl)Ji&&!sa.durationKnown&&(rl.endTime=Xa);else if(Kr){var xe=wi.attr[ds];$(ds)&&(xe=_t(xe));var Ye=En(Kr,La,Xa,{key:ds,data:xe},fi.dateRange);Ye&&(Ye.id=Jn,H.id3Track.addCue(Ye),Wi[ds]=Ye)}}ne[Jn]={cues:Wi,dateRange:wi,durationKnown:Ji}},Pn=0;Pn<Xe.length;Pn++)Zr()}}]),ve}(),Wt=function(){function ve(q){var L=this;Object(r.a)(this,ve),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=q,this.config=q.config,this.registerListeners()}return Object(s.a)(ve,[{key:"latency",get:function(){return this._latency||0}},{key:"maxLatency",get:function(){var L=this.config,K=this.levelDetails;return L.liveMaxLatencyDuration!==void 0?L.liveMaxLatencyDuration:K?L.liveMaxLatencyDurationCount*K.targetduration:0}},{key:"targetLatency",get:function(){var L=this.levelDetails;if(L===null)return null;var K=L.holdBack,H=L.partHoldBack,J=L.targetduration,ne=this.config,we=ne.liveSyncDuration,_e=ne.liveSyncDurationCount,Xe=ne.lowLatencyMode,ut=this.hls.userConfig,ht=Xe&&H||K;(ut.liveSyncDuration||ut.liveSyncDurationCount||ht===0)&&(ht=we!==void 0?we:_e*J);var Qt=J,Tr=1;return ht+Math.min(this.stallCount*Tr,Qt)}},{key:"liveSyncPosition",get:function(){var L=this.estimateLiveEdge(),K=this.targetLatency,H=this.levelDetails;if(L===null||K===null||H===null)return null;var J=H.edge,ne=L-K-this.edgeStalled,we=J-H.totalduration,_e=J-(this.config.lowLatencyMode&&H.partTarget||H.targetduration);return Math.min(Math.max(we,ne),_e)}},{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 K=(this.config.lowLatencyMode&&L.partTarget||L.targetduration)*3;return Math.max(L.age-K,0)}},{key:"forwardBufferLength",get:function(){var L=this.media,K=this.levelDetails;if(!L||!K)return 0;var H=L.buffered.length;return(H?L.buffered.end(H-1):K.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(_.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(_.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.on(_.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(_.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.on(_.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){this.hls.off(_.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(_.MEDIA_DETACHING,this.onMediaDetaching,this),this.hls.off(_.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(_.LEVEL_UPDATED,this.onLevelUpdated,this),this.hls.off(_.ERROR,this.onError,this)}},{key:"onMediaAttached",value:function(L,K){this.media=K.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,K){var H=K.details;this.levelDetails=H,H.advanced&&this.timeupdate(),!H.live&&this.media&&this.media.removeEventListener("timeupdate",this.timeupdateHandler)}},{key:"onError",value:function(L,K){var H;if(K.details!==R.BUFFER_STALLED_ERROR)return;this.stallCount++,(H=this.levelDetails)!=null&&H.live&&U.warn("[playback-rate-controller]: Stall detected, adjusting target latency")}},{key:"timeupdate",value:function(){var L=this.media,K=this.levelDetails;if(!L||!K)return;this.currentTime=L.currentTime;var H=this.computeLatency();if(H===null)return;this._latency=H;var J=this.config,ne=J.lowLatencyMode,we=J.maxLiveSyncPlaybackRate;if(!ne||we===1)return;var _e=this.targetLatency;if(_e===null)return;var Xe=H-_e,ut=Math.min(this.maxLatency,_e+K.targetduration),ht=Xe<ut;if(K.live&&ht&&Xe>.05&&this.forwardBufferLength>1){var Qt=Math.min(2,Math.max(1,we)),Tr=Math.round(2/(1+Math.exp(-.75*Xe-this.edgeStalled))*20)/20;L.playbackRate=Math.min(Qt,Math.max(1,Tr))}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}}]),ve}(),Vt=["NONE","TYPE-0","TYPE-1",null],Lt={No:"",Yes:"YES",v2:"v2"};function cr(ve,q){var L=ve.canSkipUntil,K=ve.canSkipDateRanges,H=ve.endSN,J=q!==void 0?q-H:0;return L&&J<L?K?Lt.v2:Lt.Yes:Lt.No}var vr=function(){function ve(q,L,K){Object(r.a)(this,ve),this.msn=void 0,this.part=void 0,this.skip=void 0,this.msn=q,this.part=L,this.skip=K}return Object(s.a)(ve,[{key:"addDirectives",value:function(L){var K=new self.URL(L);return this.msn!==void 0&&K.searchParams.set("_HLS_msn",this.msn.toString()),this.part!==void 0&&K.searchParams.set("_HLS_part",this.part.toString()),this.skip&&K.searchParams.set("_HLS_skip",this.skip),K.href}}]),ve}(),yr=function(){function ve(q){Object(r.a)(this,ve),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=[q.url],this._attrs=[q.attrs],this.bitrate=q.bitrate,q.details&&(this.details=q.details),this.id=q.id||0,this.name=q.name,this.width=q.width||0,this.height=q.height||0,this.audioCodec=q.audioCodec,this.videoCodec=q.videoCodec,this.unknownCodecs=q.unknownCodecs,this.codecSet=[q.videoCodec,q.audioCodec].filter(function(L){return L}).join(",").replace(/\.[^.,]+/g,"")}return Object(s.a)(ve,[{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 K=L%this.url.length;this._urlId!==K&&(this.fragmentError=0,this.loadError=0,this.details=void 0,this._urlId=K)}},{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)}}]),ve}();function Dr(ve,q){var L=q.startPTS;if(E(L)){var K=0,H;q.sn>ve.sn?(K=L-ve.start,H=ve):(K=ve.start-L,H=q),H.duration!==K&&(H.duration=K)}else if(q.sn>ve.sn){var J=ve.cc===q.cc;J&&ve.minEndPTS?q.start=ve.start+(ve.minEndPTS-ve.start):q.start=ve.start+ve.duration}else q.start=Math.max(ve.start-q.duration,0)}function Kn(ve,q,L,K,H,J){var ne=K-L;ne<=0&&(U.warn("Fragment should have a positive duration",q),K=L+q.duration,J=H+q.duration);var we=L,_e=K,Xe=q.startPTS,ut=q.endPTS;if(E(Xe)){var ht=Math.abs(Xe-L);E(q.deltaPTS)?q.deltaPTS=Math.max(ht,q.deltaPTS):q.deltaPTS=ht,we=Math.max(L,Xe),L=Math.min(L,Xe),H=Math.min(H,q.startDTS),_e=Math.min(K,ut),K=Math.max(K,ut),J=Math.max(J,q.endDTS)}var Qt=L-q.start;q.start!==0&&(q.start=L),q.duration=K-q.start,q.startPTS=L,q.maxStartPTS=we,q.startDTS=H,q.endPTS=K,q.minEndPTS=_e,q.endDTS=J;var Tr=q.sn;if(!ve||Tr<ve.startSN||Tr>ve.endSN)return 0;var br,Kr=Tr-ve.startSN,Zr=ve.fragments;for(Zr[Kr]=q,br=Kr;br>0;br--)Dr(Zr[br],Zr[br-1]);for(br=Kr;br<Zr.length-1;br++)Dr(Zr[br],Zr[br+1]);return ve.fragmentHint&&Dr(Zr[Zr.length-1],ve.fragmentHint),ve.PTSKnown=ve.alignedSliding=!0,Qt}function Dn(ve,q){for(var L=null,K=ve.fragments,H=K.length-1;H>=0;H--){var J=K[H].initSegment;if(J){L=J;break}}ve.fragmentHint&&delete ve.fragmentHint.endPTS;var ne=0,we;if(Ur(ve,q,function(br,Kr){br.relurl&&(ne=br.cc-Kr.cc),E(br.startPTS)&&E(br.endPTS)&&(Kr.start=Kr.startPTS=br.startPTS,Kr.startDTS=br.startDTS,Kr.maxStartPTS=br.maxStartPTS,Kr.endPTS=br.endPTS,Kr.endDTS=br.endDTS,Kr.minEndPTS=br.minEndPTS,Kr.duration=br.endPTS-br.startPTS,Kr.duration&&(we=Kr),q.PTSKnown=q.alignedSliding=!0),Kr.elementaryStreams=br.elementaryStreams,Kr.loader=br.loader,Kr.stats=br.stats,Kr.urlId=br.urlId,br.initSegment&&(Kr.initSegment=br.initSegment,L=br.initSegment)}),L){var _e=q.fragmentHint?q.fragments.concat(q.fragmentHint):q.fragments;_e.forEach(function(br){var Kr;(!br.initSegment||br.initSegment.relurl===((Kr=L)==null?void 0:Kr.relurl))&&(br.initSegment=L)})}if(q.skippedSegments)if(q.deltaUpdateFailed=q.fragments.some(function(br){return!br}),q.deltaUpdateFailed){U.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(var Xe=q.skippedSegments;Xe--;)q.fragments.shift();q.startSN=q.fragments[0].sn,q.startCC=q.fragments[0].cc}else q.canSkipDateRanges&&(q.dateRanges=di(ve.dateRanges,q.dateRanges,q.recentlyRemovedDateranges));var ut=q.fragments;if(ne){U.warn("discontinuity sliding from playlist, take drift into account");for(var ht=0;ht<ut.length;ht++)ut[ht].cc+=ne}q.skippedSegments&&(q.startCC=q.fragments[0].cc),mn(ve.partList,q.partList,function(br,Kr){Kr.elementaryStreams=br.elementaryStreams,Kr.stats=br.stats}),we?Kn(q,we,we.startPTS,we.endPTS,we.startDTS,we.endDTS):On(ve,q),ut.length&&(q.totalduration=q.edge-ut[0].start),q.driftStartTime=ve.driftStartTime,q.driftStart=ve.driftStart;var Qt=q.advancedDateTime;if(q.advanced&&Qt){var Tr=q.edge;q.driftStart||(q.driftStartTime=Qt,q.driftStart=Tr),q.driftEndTime=Qt,q.driftEnd=Tr}else q.driftEndTime=ve.driftEndTime,q.driftEnd=ve.driftEnd,q.advancedDateTime=ve.advancedDateTime}function di(ve,q,L){var K=x({},ve);return L&&L.forEach(function(H){delete K[H]}),Object.keys(q).forEach(function(H){var J=new le(q[H].attr,K[H]);J.isValid?K[H]=J:U.warn('Ignoring invalid Playlist Delta Update DATERANGE tag: "'.concat(JSON.stringify(q[H].attr),'"'))}),K}function mn(ve,q,L){if(ve&&q)for(var K=0,H=0,J=ve.length;H<=J;H++){var ne=ve[H],we=q[H+K];ne&&we&&ne.index===we.index&&ne.fragment.sn===we.fragment.sn?L(ne,we):K--}}function Ur(ve,q,L){for(var K=q.skippedSegments,H=Math.max(ve.startSN,q.startSN)-q.startSN,J=(ve.fragmentHint?1:0)+(K?q.endSN:Math.min(ve.endSN,q.endSN))-q.startSN,ne=q.startSN-ve.startSN,we=q.fragmentHint?q.fragments.concat(q.fragmentHint):q.fragments,_e=ve.fragmentHint?ve.fragments.concat(ve.fragmentHint):ve.fragments,Xe=H;Xe<=J;Xe++){var ut=_e[ne+Xe],ht=we[Xe];K&&!ht&&Xe<K&&(ht=q.fragments[Xe]=ut),ut&&ht&&L(ut,ht)}}function On(ve,q){var L=q.startSN+q.skippedSegments-ve.startSN,K=ve.fragments;if(L<0||L>=K.length)return;zn(q,K[L].start)}function zn(ve,q){if(q){for(var L=ve.fragments,K=ve.skippedSegments;K<L.length;K++)L[K].start+=q;ve.fragmentHint&&(ve.fragmentHint.start+=q)}}function qn(ve){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Infinity,L=1e3*ve.targetduration;if(ve.updated){var K=ve.fragments,H=4;if(K.length&&L*H>q){var J=K[K.length-1].duration*1e3;J<L&&(L=J)}}else L/=2;return Math.round(L)}function oi(ve,q,L){if(!(ve!=null&&ve.details))return null;var K=ve.details,H=K.fragments[q-K.startSN];return H||(H=K.fragmentHint,H&&H.sn===q?H:q<K.startSN&&L&&L.sn===q?L:null)}function xi(ve,q,L){var K;return ve!=null&&ve.details?Di((K=ve.details)==null?void 0:K.partList,q,L):null}function Di(ve,q,L){if(ve)for(var K=ve.length;K--;){var H=ve[K];if(H.index===L&&H.fragment.sn===q)return H}return null}function Li(ve){switch(ve.details){case R.FRAG_LOAD_TIMEOUT:case R.KEY_LOAD_TIMEOUT:case R.LEVEL_LOAD_TIMEOUT:case R.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function aa(ve,q){var L=Li(q);return ve.default["".concat(L?"timeout":"error","Retry")]}function ma(ve,q){var L=ve.backoff==="linear"?1:Math.pow(2,q);return Math.min(L*ve.retryDelayMs,ve.maxRetryDelayMs)}function na(ve){return b(b({},ve),{errorRetry:null,timeoutRetry:null})}function Aa(ve,q,L,K){return!!ve&&q<ve.maxNumRetry&&(yi(K)||!!L)}function yi(ve){return ve===0&&navigator.onLine===!1||!!ve&&(ve<400||ve>499)}var Ln={search:function(q,L){for(var K=0,H=q.length-1,J=null,ne=null;K<=H;){J=(K+H)/2|0,ne=q[J];var we=L(ne);if(we>0)K=J+1;else if(we<0)H=J-1;else return ne}return null}};function ji(ve,q,L){if(q===null||!Array.isArray(ve)||!ve.length||!E(q))return null;var K=ve[0].programDateTime;if(q<(K||0))return null;var H=ve[ve.length-1].endProgramDateTime;if(q>=(H||0))return null;L=L||0;for(var J=0;J<ve.length;++J){var ne=ve[J];if(ca(q,L,ne))return ne}return null}function ha(ve,q){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,H=null;if(ve?H=q[ve.sn-q[0].sn+1]||null:L===0&&q[0].start===0&&(H=q[0]),H&&ea(L,K,H)===0)return H;var J=Ln.search(q,ea.bind(null,L,K));return J&&(J!==ve||!H)?J:H}function ea(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,L=arguments.length>2?arguments[2]:void 0;if(L.start<=ve&&L.start+L.duration>ve)return 0;var K=Math.min(q,L.duration+(L.deltaPTS?L.deltaPTS:0));return L.start+L.duration-K<=ve?1:L.start-K>ve&&L.start?-1:0}function ca(ve,q,L){var K=Math.min(q,L.duration+(L.deltaPTS?L.deltaPTS:0))*1e3,H=L.endProgramDateTime||0;return H-K>ve}function kr(ve,q){return Ln.search(ve,function(L){return L.cc<q?1:L.cc>q?-1:0})}var Sr=3e5,yn={DoNothing:0,SendEndCallback:1,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,InsertDiscontinuity:4,RetryRequest:5},dr={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,SwitchToSDR:4},Rr=function(){function ve(q){Object(r.a)(this,ve),this.hls=void 0,this.playlistError=0,this.penalizedRenditions={},this.log=void 0,this.warn=void 0,this.error=void 0,this.hls=q,this.log=U.log.bind(U,"[info]:"),this.warn=U.warn.bind(U,"[warning]:"),this.error=U.error.bind(U,"[error]:"),this.registerListeners()}return Object(s.a)(ve,[{key:"registerListeners",value:function(){var L=this.hls;L.on(_.ERROR,this.onError,this),L.on(_.MANIFEST_LOADING,this.onManifestLoading,this),L.on(_.LEVEL_UPDATED,this.onLevelUpdated,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;if(!L)return;L.off(_.ERROR,this.onError,this),L.off(_.ERROR,this.onErrorOut,this),L.off(_.MANIFEST_LOADING,this.onManifestLoading,this),L.off(_.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)===Fr.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,K){var H,J;if(K.fatal)return;var ne=this.hls,we=K.context;switch(K.details){case R.FRAG_LOAD_ERROR:case R.FRAG_LOAD_TIMEOUT:case R.KEY_LOAD_ERROR:case R.KEY_LOAD_TIMEOUT:K.errorAction=this.getFragRetryOrSwitchAction(K);return;case R.FRAG_PARSING_ERROR:if((H=K.frag)!=null&&H.gap){K.errorAction={action:yn.DoNothing,flags:dr.None};return}case R.FRAG_GAP:case R.FRAG_DECRYPT_ERROR:{K.errorAction=this.getFragRetryOrSwitchAction(K),K.errorAction.action=yn.SendAlternateToPenaltyBox;return}case R.LEVEL_EMPTY_ERROR:case R.LEVEL_PARSING_ERROR:{var _e,Xe,ut=K.parent===Fr.MAIN?K.level:ne.loadLevel;K.details===R.LEVEL_EMPTY_ERROR&&!!((_e=K.context)!=null&&(Xe=_e.levelDetails)!=null&&Xe.live)?K.errorAction=this.getPlaylistRetryOrSwitchAction(K,ut):(K.levelRetry=!1,K.errorAction=this.getLevelSwitchAction(K,ut))}return;case R.LEVEL_LOAD_ERROR:case R.LEVEL_LOAD_TIMEOUT:typeof(we==null?void 0:we.level)=="number"&&(K.errorAction=this.getPlaylistRetryOrSwitchAction(K,we.level));return;case R.AUDIO_TRACK_LOAD_ERROR:case R.AUDIO_TRACK_LOAD_TIMEOUT:case R.SUBTITLE_LOAD_ERROR:case R.SUBTITLE_TRACK_LOAD_TIMEOUT:if(we){var ht=ne.levels[ne.loadLevel];if(ht&&(we.type===rr.AUDIO_TRACK&&we.groupId===ht.audioGroupId||we.type===rr.SUBTITLE_TRACK&&we.groupId===ht.textGroupId)){K.errorAction=this.getPlaylistRetryOrSwitchAction(K,ne.loadLevel),K.errorAction.action=yn.SendAlternateToPenaltyBox,K.errorAction.flags=dr.MoveAllAlternatesMatchingHost;return}}return;case R.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:{var Qt=ne.levels[ne.loadLevel],Tr=Qt==null?void 0:Qt.attrs["HDCP-LEVEL"];Tr&&(K.errorAction={action:yn.SendAlternateToPenaltyBox,flags:dr.MoveAllAlternatesMatchingHDCP,hdcpLevel:Tr})}return;case R.BUFFER_ADD_CODEC_ERROR:case R.REMUX_ALLOC_ERROR:K.errorAction=this.getLevelSwitchAction(K,(J=K.level)!=null?J:ne.loadLevel);return;case R.INTERNAL_EXCEPTION:case R.BUFFER_APPENDING_ERROR:case R.BUFFER_APPEND_ERROR:case R.BUFFER_FULL_ERROR:case R.LEVEL_SWITCH_ERROR:case R.BUFFER_STALLED_ERROR:case R.BUFFER_SEEK_OVER_HOLE:case R.BUFFER_NUDGE_ON_STALL:K.errorAction={action:yn.DoNothing,flags:dr.None};return}if(K.type===F.KEY_SYSTEM_ERROR){var br=this.getVariantLevelIndex(K.frag);K.levelRetry=!1,K.errorAction=this.getLevelSwitchAction(K,br);return}}},{key:"getPlaylistRetryOrSwitchAction",value:function(L,K){var H,J=this.hls,ne=aa(J.config.playlistLoadPolicy,L),we=this.playlistError++,_e=(H=L.response)==null?void 0:H.code,Xe=Aa(ne,we,Li(L),_e);if(Xe)return{action:yn.RetryRequest,flags:dr.None,retryConfig:ne,retryCount:we};var ut=this.getLevelSwitchAction(L,K);return ne&&(ut.retryConfig=ne,ut.retryCount=we),ut}},{key:"getFragRetryOrSwitchAction",value:function(L){var K=this.hls,H=this.getVariantLevelIndex(L.frag),J=K.levels[H],ne=K.config,we=ne.fragLoadPolicy,_e=ne.keyLoadPolicy,Xe=aa(L.details.startsWith("key")?_e:we,L),ut=K.levels.reduce(function(Kr,Zr){return Kr+Zr.fragmentError},0);if(J){var ht;L.details!==R.FRAG_GAP&&J.fragmentError++;var Qt=(ht=L.response)==null?void 0:ht.code,Tr=Aa(Xe,ut,Li(L),Qt);if(Tr)return{action:yn.RetryRequest,flags:dr.None,retryConfig:Xe,retryCount:ut}}var br=this.getLevelSwitchAction(L,H);return Xe&&(br.retryConfig=Xe,br.retryCount=ut),br}},{key:"getLevelSwitchAction",value:function(L,K){var H=this.hls;K==null&&(K=H.loadLevel);var J=this.hls.levels[K];if(J&&(J.loadError++,H.autoLevelEnabled)){for(var ne,we,_e=-1,Xe=H.levels,ut=H.loadLevel,ht=H.minAutoLevel,Qt=H.maxAutoLevel,Tr=(ne=L.frag)==null?void 0:ne.type,br=(we=L.context)!=null?we:{},Kr=br.type,Zr=br.groupId,Pn=Xe.length;Pn--;){var Nn=(Pn+ut)%Xe.length;if(Nn!==ut&&Nn>=ht&&Nn<=Qt&&Xe[Nn].loadError===0){var Jn=Xe[Nn];if(L.details===R.FRAG_GAP&&L.frag){var wi=Xe[Nn].details;if(wi){var sa=ha(L.frag,wi.fragments,L.frag.start);if(sa!=null&&sa.gap)continue}}else{if(Kr===rr.AUDIO_TRACK&&Zr===Jn.audioGroupId||Kr===rr.SUBTITLE_TRACK&&Zr===Jn.textGroupId)continue;if(Tr===Fr.AUDIO&&J.audioGroupId===Jn.audioGroupId||Tr===Fr.SUBTITLE&&J.textGroupId===Jn.textGroupId)continue}_e=Nn;break}}if(_e>-1&&H.loadLevel!==_e)return L.levelRetry=!0,this.playlistError=0,{action:yn.SendAlternateToPenaltyBox,flags:dr.None,nextAutoLevel:_e}}return{action:yn.SendAlternateToPenaltyBox,flags:dr.MoveAllAlternatesMatchingHost}}},{key:"onErrorOut",value:function(L,K){var H;switch((H=K.errorAction)==null?void 0:H.action){case yn.DoNothing:break;case yn.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(K),!K.errorAction.resolved&&K.details!==R.FRAG_GAP&&(K.fatal=!0);break}if(K.fatal){this.hls.stopLoad();return}}},{key:"sendAlternateToPenaltyBox",value:function(L){var K=this.hls,H=L.errorAction;if(!H)return;var J=H.flags,ne=H.hdcpLevel,we=H.nextAutoLevel;switch(J){case dr.None:this.switchLevel(L,we);break;case dr.MoveAllAlternatesMatchingHost:H.resolved||(H.resolved=this.redundantFailover(L));break;case dr.MoveAllAlternatesMatchingHDCP:ne&&(K.maxHdcpLevel=Vt[Vt.indexOf(ne)-1],H.resolved=!0),this.warn('Restricting playback to HDCP-LEVEL of "'.concat(K.maxHdcpLevel,'" or lower'));break}H.resolved||this.switchLevel(L,we)}},{key:"switchLevel",value:function(L,K){K!==void 0&&L.errorAction&&(this.warn("switching to level ".concat(K," after ").concat(L.details)),this.hls.nextAutoLevel=K,L.errorAction.resolved=!0,this.hls.nextLoadLevel=this.hls.nextAutoLevel)}},{key:"redundantFailover",value:function(L){var K=this,H=this.hls,J=this.penalizedRenditions,ne=L.parent===Fr.MAIN?L.level:H.loadLevel,we=H.levels[ne],_e=we.url.length,Xe=L.frag?L.frag.urlId:we.urlId;we.urlId===Xe&&(!L.frag||we.details)&&this.penalizeRendition(we,L);for(var ut=function(){var br=(Xe+Qt)%_e,Kr=J[br];if(!Kr||Gr(Kr,L,J[Xe]))return K.warn("Switching to Redundant Stream ".concat(br+1,"/").concat(_e,': "').concat(we.url[br],'" after ').concat(L.details)),K.playlistError=0,H.levels.forEach(function(Zr){Zr.urlId=br}),H.nextLoadLevel=ne,{v:!0}},ht,Qt=1;Qt<_e;Qt++)if(ht=ut(),ht)return ht.v;return!1}},{key:"penalizeRendition",value:function(L,K){var H=this.penalizedRenditions,J=H[L.urlId]||{lastErrorPerfMs:0,errors:[],details:void 0};J.lastErrorPerfMs=performance.now(),J.errors.push(K),J.details=L.details,H[L.urlId]=J}}]),ve}();function Gr(ve,q,L){if(performance.now()-ve.lastErrorPerfMs>Sr)return!0;var K=ve.details;if(q.details===R.FRAG_GAP&&K&&q.frag){var H=q.frag.start,J=ha(null,K.fragments,H);if(J&&!J.gap)return!0}if(L&&ve.errors.length<L.errors.length){var ne=ve.errors[ve.errors.length-1];if(K&&ne.frag&&q.frag&&Math.abs(ne.frag.start-q.frag.start)>K.targetduration*3)return!0}return!1}var ln=function(){function ve(q,L){Object(r.a)(this,ve),this.hls=void 0,this.timer=-1,this.requestScheduled=-1,this.canLoad=!1,this.log=void 0,this.warn=void 0,this.log=U.log.bind(U,"".concat(L,":")),this.warn=U.warn.bind(U,"".concat(L,":")),this.hls=q}return Object(s.a)(ve,[{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,K){var H=K==null?void 0:K.renditionReports;if(H){for(var J=-1,ne=0;ne<H.length;ne++){var we=H[ne],_e=void 0;try{_e=new self.URL(we.URI,K.url).href}catch(Tr){U.warn("Could not construct new URL for Rendition Report: ".concat(Tr)),_e=we.URI||""}if(_e===L){J=ne;break}else _e===L.substring(0,_e.length)&&(J=ne)}if(J!==-1){var Xe=H[J],ut=parseInt(Xe["LAST-MSN"])||(K==null?void 0:K.lastPartSn),ht=parseInt(Xe["LAST-PART"])||(K==null?void 0:K.lastPartIndex);if(this.hls.config.lowLatencyMode){var Qt=Math.min(K.age-K.partTarget,K.targetduration);ht>=0&&Qt>K.partTarget&&(ht+=1)}return new vr(ut,ht>=0?ht:void 0,Lt.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,K,H){var J=this,ne=K.details,we=K.stats,_e=self.performance.now(),Xe=we.loading.first?Math.max(0,_e-we.loading.first):0;if(ne.advancedDateTime=Date.now()-Xe,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&&Dn(H,ne),!this.canLoad||!ne.live)return;var ut,ht=void 0,Qt=void 0;if(ne.canBlockReload&&ne.endSN&&ne.advanced){var Tr=this.hls.config.lowLatencyMode,br=ne.lastPartSn,Kr=ne.endSN,Zr=ne.lastPartIndex,Pn=Zr!==-1,Nn=br===Kr,Jn=Tr?0:Zr;Pn?(ht=Nn?Kr+1:br,Qt=Nn?Jn:Zr+1):ht=Kr+1;var wi=ne.age,sa=wi+ne.ageHeader,Wi=Math.min(sa-ne.partTarget,ne.targetduration*1.5);if(Wi>0){if(H&&Wi>H.tuneInGoal)this.warn("CDN Tune-in goal increased from: ".concat(H.tuneInGoal," to: ").concat(Wi," with playlist age: ").concat(ne.age)),Wi=0;else{var Ji=Math.floor(Wi/ne.targetduration);if(ht+=Ji,Qt!==void 0){var La=Math.round(Wi%ne.targetduration/ne.partTarget);Qt+=La}this.log("CDN Tune-in age: ".concat(ne.ageHeader,"s last advanced ").concat(wi.toFixed(2),"s goal: ").concat(Wi," skip sn ").concat(Ji," to part ").concat(Qt))}ne.tuneInGoal=Wi}if(ut=this.getDeliveryDirectives(ne,K.deliveryDirectives,ht,Qt),Tr||!Nn){this.loadPlaylist(ut);return}}else(ne.canBlockReload||ne.canSkipUntil)&&(ut=this.getDeliveryDirectives(ne,K.deliveryDirectives,ht,Qt));var Xa=this.hls.mainForwardBufferInfo,Ua=Xa?Xa.end-Xa.len:0,ba=(ne.edge-Ua)*1e3,_o=qn(ne,ba);ne.updated&&_e>this.requestScheduled+_o&&(this.requestScheduled=we.loading.start),ht!==void 0&&ne.canBlockReload?this.requestScheduled=we.loading.first+_o-(ne.partTarget*1e3||1e3):this.requestScheduled===-1||this.requestScheduled+_o<_e?this.requestScheduled=_e:this.requestScheduled-_e<=0&&(this.requestScheduled+=_o);var bs=this.requestScheduled-_e;bs=Math.max(0,bs),this.log("reload live playlist ".concat(L," in ").concat(Math.round(bs)," ms")),this.timer=self.setTimeout(function(){return J.loadPlaylist(ut)},bs)}else this.clearTimer()}},{key:"getDeliveryDirectives",value:function(L,K,H,J){var ne=cr(L,H);return K!=null&&K.skip&&L.deltaUpdateFailed&&(H=K.msn,J=K.part,ne=Lt.No),new vr(H,J,ne)}},{key:"checkRetry",value:function(L){var K=this,H=L.details,J=Li(L),ne=L.errorAction,we=ne||{},_e=we.action,Xe=we.retryCount,ut=Xe===void 0?0:Xe,ht=we.retryConfig,Qt=!!ne&&!!ht&&(_e===yn.RetryRequest||!ne.resolved&&_e===yn.SendAlternateToPenaltyBox);if(Qt){var Tr;if(this.requestScheduled=-1,ut>=ht.maxNumRetry)return!1;if(J&&(Tr=L.context)!=null&&Tr.deliveryDirectives)this.warn("Retrying playlist loading ".concat(ut+1,"/").concat(ht.maxNumRetry,' after "').concat(H,'" without delivery-directives')),this.loadPlaylist();else{var br=ma(ht,ut);this.timer=self.setTimeout(function(){return K.loadPlaylist()},br),this.warn("Retrying playlist loading ".concat(ut+1,"/").concat(ht.maxNumRetry,' after "').concat(H,'" in ').concat(br,"ms"))}L.levelRetry=!0,ne.resolved=!0}return Qt}}]),ve}(),kn,kt=function(ve){Object(a.a)(L,ve);var q=Object(e.a)(L);function L(K,H){var J;return Object(r.a)(this,L),J=q.call(this,K,"[level-controller]"),J._levels=[],J._firstLevel=-1,J._startLevel=void 0,J.currentLevel=null,J.currentLevelIndex=-1,J.manualLevelIndex=-1,J.steering=void 0,J.onParsedComplete=void 0,J.steering=H,J._registerListeners(),J}return Object(s.a)(L,[{key:"_registerListeners",value:function(){var H=this.hls;H.on(_.MANIFEST_LOADING,this.onManifestLoading,this),H.on(_.MANIFEST_LOADED,this.onManifestLoaded,this),H.on(_.LEVEL_LOADED,this.onLevelLoaded,this),H.on(_.LEVELS_UPDATED,this.onLevelsUpdated,this),H.on(_.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.on(_.FRAG_LOADED,this.onFragLoaded,this),H.on(_.ERROR,this.onError,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(_.MANIFEST_LOADING,this.onManifestLoading,this),H.off(_.MANIFEST_LOADED,this.onManifestLoaded,this),H.off(_.LEVEL_LOADED,this.onLevelLoaded,this),H.off(_.LEVELS_UPDATED,this.onLevelsUpdated,this),H.off(_.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.off(_.FRAG_LOADED,this.onFragLoaded,this),H.off(_.ERROR,this.onError,this)}},{key:"destroy",value:function(){this._unregisterListeners(),this.steering=null,this.resetLevels(),Object(t.a)(Object(m.a)(L.prototype),"destroy",this).call(this)}},{key:"startLoad",value:function(){var H=this._levels;H.forEach(function(J){J.loadError=0,J.fragmentError=0}),Object(t.a)(Object(m.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,J){this.resetLevels()}},{key:"onManifestLoaded",value:function(H,J){var ne=[],we={},_e;J.levels.forEach(function(Xe){var ut,ht=Xe.attrs;((ut=Xe.audioCodec)==null?void 0:ut.indexOf("mp4a.40.34"))!==-1&&(kn||(kn=/chrome|firefox/i.test(navigator.userAgent)),kn&&(Xe.audioCodec=void 0));var Qt=ht.AUDIO,Tr=ht.CODECS,br=ht["FRAME-RATE"],Kr=ht["PATHWAY-ID"],Zr=ht.RESOLUTION,Pn=ht.SUBTITLES,Nn="".concat(Kr||".","-"),Jn="".concat(Nn).concat(Xe.bitrate,"-").concat(Zr,"-").concat(br,"-").concat(Tr);_e=we[Jn],_e?_e.addFallback(Xe):(_e=new yr(Xe),we[Jn]=_e,ne.push(_e)),_r(_e,"audio",Qt),_r(_e,"text",Pn)}),this.filterAndSortMediaOptions(ne,J)}},{key:"filterAndSortMediaOptions",value:function(H,J){var ne=this,we=[],_e=[],Xe=!1,ut=!1,ht=!1,Qt=H.filter(function(Jn){var wi=Jn.audioCodec,sa=Jn.videoCodec,Wi=Jn.width,Ji=Jn.height,La=Jn.unknownCodecs;return Xe||(Xe=!!(Wi&&Ji)),ut||(ut=!!sa),ht||(ht=!!wi),!(La!=null&&La.length)&&(!wi||ri(wi,"audio"))&&(!sa||ri(sa,"video"))});if((Xe||ut)&&ht&&(Qt=Qt.filter(function(Jn){var wi=Jn.videoCodec,sa=Jn.width,Wi=Jn.height;return!!wi||!!(sa&&Wi)})),Qt.length===0){Promise.resolve().then(function(){if(ne.hls){var Jn=new Error("no level with compatible codecs found in manifest");ne.hls.trigger(_.ERROR,{type:F.MEDIA_ERROR,details:R.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:J.url,error:Jn,reason:Jn.message})}});return}J.audioTracks&&(we=J.audioTracks.filter(function(Jn){return!Jn.audioCodec||ri(Jn.audioCodec,"audio")}),Nr(we)),J.subtitles&&(_e=J.subtitles,Nr(_e));var Tr=Qt.slice(0);Qt.sort(function(Jn,wi){return Jn.attrs["HDCP-LEVEL"]!==wi.attrs["HDCP-LEVEL"]?(Jn.attrs["HDCP-LEVEL"]||"")>(wi.attrs["HDCP-LEVEL"]||"")?1:-1:Jn.bitrate!==wi.bitrate?Jn.bitrate-wi.bitrate:Jn.attrs["FRAME-RATE"]!==wi.attrs["FRAME-RATE"]?Jn.attrs.decimalFloatingPoint("FRAME-RATE")-wi.attrs.decimalFloatingPoint("FRAME-RATE"):Jn.attrs.SCORE!==wi.attrs.SCORE?Jn.attrs.decimalFloatingPoint("SCORE")-wi.attrs.decimalFloatingPoint("SCORE"):Xe&&Jn.height!==wi.height?Jn.height-wi.height:0});var br=Tr[0];if(this.steering&&(Qt=this.steering.filterParsedLevels(Qt),Qt.length!==Tr.length)){for(var Kr=0;Kr<Tr.length;Kr++)if(Tr[Kr].pathwayId===Qt[0].pathwayId){br=Tr[Kr];break}}this._levels=Qt;for(var Zr=0;Zr<Qt.length;Zr++)if(Qt[Zr]===br){this._firstLevel=Zr,this.log("manifest loaded, ".concat(Qt.length," level(s) found, first bitrate: ").concat(br.bitrate));break}var Pn=ht&&!ut,Nn={levels:Qt,audioTracks:we,subtitleTracks:_e,sessionData:J.sessionData,sessionKeys:J.sessionKeys,firstLevel:this._firstLevel,stats:J.stats,audio:ht,video:ut,altAudio:!Pn&&we.some(function(Jn){return!!Jn.url})};this.hls.trigger(_.MANIFEST_PARSED,Nn),(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 J=this._levels;if(J.length===0)return;if(H<0||H>=J.length){var ne=new Error("invalid level idx"),we=H<0;if(this.hls.trigger(_.ERROR,{type:F.OTHER_ERROR,details:R.LEVEL_SWITCH_ERROR,level:H,fatal:we,error:ne,reason:ne.message}),we)return;H=Math.min(H,J.length-1)}var _e=this.currentLevelIndex,Xe=this.currentLevel,ut=Xe?Xe.attrs["PATHWAY-ID"]:void 0,ht=J[H],Qt=ht.attrs["PATHWAY-ID"];if(this.currentLevelIndex=H,this.currentLevel=ht,_e===H&&ht.details&&Xe&&ut===Qt)return;this.log("Switching to level ".concat(H).concat(Qt?" with Pathway "+Qt:""," from level ").concat(_e).concat(ut?" with Pathway "+ut:""));var Tr=x({},ht,{level:H,maxBitrate:ht.maxBitrate,attrs:ht.attrs,uri:ht.uri,urlId:ht.urlId});delete Tr._attrs,delete Tr._urlId,this.hls.trigger(_.LEVEL_SWITCHING,Tr);var br=ht.details;if(!br||br.live){var Kr=this.switchParams(ht.uri,Xe==null?void 0:Xe.details);this.loadPlaylist(Kr)}}},{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,J){if(J.fatal||!J.context)return;J.context.type===rr.LEVEL&&J.context.level===this.level&&this.checkRetry(J)}},{key:"onFragLoaded",value:function(H,J){var ne=J.frag;if(ne!==void 0&&ne.type===Fr.MAIN){var we=this._levels[ne.level];we!==void 0&&(we.loadError=0)}}},{key:"onLevelLoaded",value:function(H,J){var ne,we=J.level,_e=J.details,Xe=this._levels[we];if(!Xe){var ut;this.warn("Invalid level index ".concat(we)),(ut=J.deliveryDirectives)!=null&&ut.skip&&(_e.deltaUpdateFailed=!0);return}we===this.currentLevelIndex?(Xe.fragmentError===0&&(Xe.loadError=0),this.playlistLoaded(we,J,Xe.details)):(ne=J.deliveryDirectives)!=null&&ne.skip&&(_e.deltaUpdateFailed=!0)}},{key:"onAudioTrackSwitched",value:function(H,J){var ne=this.currentLevel;if(!ne)return;var we=this.hls.audioTracks[J.id].groupId;if(ne.audioGroupIds&&ne.audioGroupId!==we){for(var _e=-1,Xe=0;Xe<ne.audioGroupIds.length;Xe++)if(ne.audioGroupIds[Xe]===we){_e=Xe;break}_e!==-1&&_e!==ne.urlId&&(ne.urlId=_e,this.canLoad&&this.startLoad())}}},{key:"loadPlaylist",value:function(H){Object(t.a)(Object(m.a)(L.prototype),"loadPlaylist",this).call(this);var J=this.currentLevelIndex,ne=this.currentLevel;if(ne&&this.shouldLoadPlaylist(ne)){var we=ne.urlId,_e=ne.uri;if(H)try{_e=H.addDirectives(_e)}catch(ut){this.warn("Could not construct new URL with HLS Delivery Directives: ".concat(ut))}var Xe=ne.attrs["PATHWAY-ID"];this.log("Loading level index ".concat(J).concat((H==null?void 0:H.msn)!==void 0?" at sn "+H.msn+" part "+H.part:""," with").concat(Xe?" Pathway "+Xe:""," URI ").concat(we+1,"/").concat(ne.url.length," ").concat(_e)),this.clearTimer(),this.hls.trigger(_.LEVEL_LOADING,{url:_e,level:J,id:we,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,J){var ne=this,we=function(ut,ht){return ht!==J},_e=this._levels.filter(function(Xe,ut){return ut!==H?!0:Xe.url.length>1&&J!==void 0?(Xe.url=Xe.url.filter(we),Xe.audioGroupIds&&(Xe.audioGroupIds=Xe.audioGroupIds.filter(we)),Xe.textGroupIds&&(Xe.textGroupIds=Xe.textGroupIds.filter(we)),Xe.urlId=0,!0):(ne.steering&&ne.steering.removeLevel(Xe),!1)});this.hls.trigger(_.LEVELS_UPDATED,{levels:_e})}},{key:"onLevelsUpdated",value:function(H,J){var ne=J.levels;ne.forEach(function(we,_e){var Xe=we.details;Xe!=null&&Xe.fragments&&Xe.fragments.forEach(function(ut){ut.level=_e})}),this._levels=ne}}]),L}(ln);function _r(ve,q,L){if(!L)return;q==="audio"?(ve.audioGroupIds||(ve.audioGroupIds=[]),ve.audioGroupIds[ve.url.length-1]=L):q==="text"&&(ve.textGroupIds||(ve.textGroupIds=[]),ve.textGroupIds[ve.url.length-1]=L)}function Nr(ve){var q={};ve.forEach(function(L){var K=L.groupId||"";L.id=q[K]=q[K]||0,q[K]++})}var Jr={NOT_LOADED:"NOT_LOADED",APPENDING:"APPENDING",PARTIAL:"PARTIAL",OK:"OK"},xn=function(){function ve(q){Object(r.a)(this,ve),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=q,this._registerListeners()}return Object(s.a)(ve,[{key:"_registerListeners",value:function(){var L=this.hls;L.on(_.BUFFER_APPENDED,this.onBufferAppended,this),L.on(_.FRAG_BUFFERED,this.onFragBuffered,this),L.on(_.FRAG_LOADED,this.onFragLoaded,this)}},{key:"_unregisterListeners",value:function(){var L=this.hls;L.off(_.BUFFER_APPENDED,this.onBufferAppended,this),L.off(_.FRAG_BUFFERED,this.onFragBuffered,this),L.off(_.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,K){var H=this.activePartLists[K];if(H)for(var J=H.length;J--;){var ne=H[J];if(!ne)break;var we=ne.end;if(ne.start<=L&&we!==null&&L<=we)return ne}return this.getBufferedFrag(L,K)}},{key:"getBufferedFrag",value:function(L,K){for(var H=this.fragments,J=Object.keys(H),ne=J.length;ne--;){var we=H[J[ne]];if((we==null?void 0:we.body.type)===K&&we.buffered){var _e=we.body;if(_e.start<=L&&L<=_e.end)return _e}}return null}},{key:"detectEvictedFragments",value:function(L,K,H,J){var ne=this;this.timeRanges&&(this.timeRanges[L]=K);var we=(J==null?void 0:J.fragment.sn)||-1;Object.keys(this.fragments).forEach(function(_e){var Xe=ne.fragments[_e];if(!Xe)return;if(we>=Xe.body.sn)return;if(!Xe.buffered&&!Xe.loaded){Xe.body.type===H&&ne.removeFragment(Xe.body);return}var ut=Xe.range[L];if(!ut)return;ut.time.some(function(ht){var Qt=!ne.isTimeBuffered(ht.startPTS,ht.endPTS,K);return Qt&&ne.removeFragment(Xe.body),Qt})})}},{key:"detectPartialFragments",value:function(L){var K=this,H=this.timeRanges,J=L.frag,ne=L.part;if(!H||J.sn==="initSegment")return;var we=wn(J),_e=this.fragments[we];if(!_e||_e.buffered&&J.gap)return;var Xe=!J.relurl;if(Object.keys(H).forEach(function(ht){var Qt=J.elementaryStreams[ht];if(!Qt)return;var Tr=H[ht],br=Xe||Qt.partial===!0;_e.range[ht]=K.getBufferedTimes(J,ne,br,Tr)}),_e.loaded=null,Object.keys(_e.range).length){_e.buffered=!0;var ut=_e.body.endList=J.endList||_e.body.endList;ut&&(this.endListFragments[_e.body.type]=_e),Tn(_e)||this.removeParts(J.sn-1,J.type)}else this.removeFragment(_e.body)}},{key:"removeParts",value:function(L,K){var H=this.activePartLists[K];if(!H)return;this.activePartLists[K]=H.filter(function(J){return J.fragment.sn>=L})}},{key:"fragBuffered",value:function(L,K){var H=wn(L),J=this.fragments[H];!J&&K&&(J=this.fragments[H]={body:L,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},L.gap&&(this.hasGaps=!0)),J&&(J.loaded=null,J.buffered=!0)}},{key:"getBufferedTimes",value:function(L,K,H,J){for(var ne={time:[],partial:H},we=L.start,_e=L.end,Xe=L.minEndPTS||_e,ut=L.maxStartPTS||we,ht=0;ht<J.length;ht++){var Qt=J.start(ht)-this.bufferPadding,Tr=J.end(ht)+this.bufferPadding;if(ut>=Qt&&Xe<=Tr){ne.time.push({startPTS:Math.max(we,J.start(ht)),endPTS:Math.min(_e,J.end(ht))});break}else if(we<Tr&&_e>Qt)ne.partial=!0,ne.time.push({startPTS:Math.max(we,J.start(ht)),endPTS:Math.min(_e,J.end(ht))});else if(_e<=Qt)break}return ne}},{key:"getPartialFragment",value:function(L){var K=null,H,J,ne,we=0,_e=this.bufferPadding,Xe=this.fragments;return Object.keys(Xe).forEach(function(ut){var ht=Xe[ut];if(!ht)return;Tn(ht)&&(J=ht.body.start-_e,ne=ht.body.end+_e,L>=J&&L<=ne&&(H=Math.min(L-J,ne-L),we<=H&&(K=ht.body,we=H)))}),K}},{key:"isEndListAppended",value:function(L){var K=this.endListFragments[L];return K!==void 0&&(K.buffered||Tn(K))}},{key:"getState",value:function(L){var K=wn(L),H=this.fragments[K];return H?H.buffered?Tn(H)?Jr.PARTIAL:Jr.OK:Jr.APPENDING:Jr.NOT_LOADED}},{key:"isTimeBuffered",value:function(L,K,H){for(var J,ne,we=0;we<H.length;we++){if(J=H.start(we)-this.bufferPadding,ne=H.end(we)+this.bufferPadding,L>=J&&K<=ne)return!0;if(K<=J)return!1}return!1}},{key:"onFragLoaded",value:function(L,K){var H=K.frag,J=K.part;if(H.sn==="initSegment"||H.bitrateTest)return;var ne=J?null:K,we=wn(H);this.fragments[we]={body:H,appendedPTS:null,loaded:ne,buffered:!1,range:Object.create(null)}}},{key:"onBufferAppended",value:function(L,K){var H=this,J=K.frag,ne=K.part,we=K.timeRanges;if(J.sn==="initSegment")return;var _e=J.type;if(ne){var Xe=this.activePartLists[_e];Xe||(this.activePartLists[_e]=Xe=[]),Xe.push(ne)}this.timeRanges=we,Object.keys(we).forEach(function(ut){var ht=we[ut];H.detectEvictedFragments(ut,ht,_e,ne)})}},{key:"onFragBuffered",value:function(L,K){this.detectPartialFragments(K)}},{key:"hasFragment",value:function(L){var K=wn(L);return!!this.fragments[K]}},{key:"hasParts",value:function(L){var K;return!!((K=this.activePartLists[L])!=null&&K.length)}},{key:"removeFragmentsInRange",value:function(L,K,H,J,ne){var we=this;if(J&&!this.hasGaps)return;Object.keys(this.fragments).forEach(function(_e){var Xe=we.fragments[_e];if(!Xe)return;var ut=Xe.body;if(ut.type!==H||J&&!ut.gap)return;ut.start<K&&ut.end>L&&(Xe.buffered||ne)&&we.removeFragment(ut)})}},{key:"removeFragment",value:function(L){var K=wn(L);L.stats.loaded=0,L.clearElementaryStreamInfo();var H=this.activePartLists[L.type];if(H){var J=L.sn;this.activePartLists[L.type]=H.filter(function(ne){return ne.fragment.sn!==J})}delete this.fragments[K],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}}]),ve}();function Tn(ve){var q,L,K;return ve.buffered&&(ve.body.gap||((q=ve.range.video)==null?void 0:q.partial)||((L=ve.range.audio)==null?void 0:L.partial)||((K=ve.range.audiovideo)==null?void 0:K.partial))}function wn(ve){return"".concat(ve.type,"_").concat(ve.level,"_").concat(ve.urlId,"_").concat(ve.sn)}var $n=Math.pow(2,17),Vn=function(){function ve(q){Object(r.a)(this,ve),this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=q}return Object(s.a)(ve,[{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,K){var H=this,J=L.url;if(!J)return Promise.reject(new vi({type:F.NETWORK_ERROR,details:R.FRAG_LOAD_ERROR,fatal:!1,frag:L,error:new Error("Fragment does not have a ".concat(J?"part list":"url")),networkDetails:null}));this.abort();var ne=this.config,we=ne.fLoader,_e=ne.loader;return new Promise(function(Xe,ut){if(H.loader&&H.loader.destroy(),L.gap)if(L.tagList.some(function(Kr){return Kr[0]==="GAP"})){ut(Ri(L));return}else L.gap=!1;var ht=H.loader=L.loader=we?new we(ne):new _e(ne),Qt=mi(L),Tr=na(ne.fragLoadPolicy.default),br={loadPolicy:Tr,timeout:Tr.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:L.sn==="initSegment"?Infinity:$n};L.stats=ht.stats,ht.load(Qt,br,{onSuccess:function(Zr,Pn,Nn,Jn){H.resetLoader(L,ht);var wi=Zr.data;Nn.resetIV&&L.decryptdata&&(L.decryptdata.iv=new Uint8Array(wi.slice(0,16)),wi=wi.slice(16)),Xe({frag:L,part:null,payload:wi,networkDetails:Jn})},onError:function(Zr,Pn,Nn,Jn){H.resetLoader(L,ht),ut(new vi({type:F.NETWORK_ERROR,details:R.FRAG_LOAD_ERROR,fatal:!1,frag:L,response:b({url:J,data:void 0},Zr),error:new Error("HTTP Error ".concat(Zr.code," ").concat(Zr.text)),networkDetails:Nn,stats:Jn}))},onAbort:function(Zr,Pn,Nn){H.resetLoader(L,ht),ut(new vi({type:F.NETWORK_ERROR,details:R.INTERNAL_ABORTED,fatal:!1,frag:L,error:new Error("Aborted"),networkDetails:Nn,stats:Zr}))},onTimeout:function(Zr,Pn,Nn){H.resetLoader(L,ht),ut(new vi({type:F.NETWORK_ERROR,details:R.FRAG_LOAD_TIMEOUT,fatal:!1,frag:L,error:new Error("Timeout after ".concat(br.timeout,"ms")),networkDetails:Nn,stats:Zr}))},onProgress:function(Zr,Pn,Nn,Jn){K&&K({frag:L,part:null,payload:Nn,networkDetails:Jn})}})})}},{key:"loadPart",value:function(L,K,H){var J=this;this.abort();var ne=this.config,we=ne.fLoader,_e=ne.loader;return new Promise(function(Xe,ut){if(J.loader&&J.loader.destroy(),L.gap||K.gap){ut(Ri(L,K));return}var ht=J.loader=L.loader=we?new we(ne):new _e(ne),Qt=mi(L,K),Tr=na(ne.fragLoadPolicy.default),br={loadPolicy:Tr,timeout:Tr.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:$n};K.stats=ht.stats,ht.load(Qt,br,{onSuccess:function(Zr,Pn,Nn,Jn){J.resetLoader(L,ht),J.updateStatsFromPart(L,K);var wi={frag:L,part:K,payload:Zr.data,networkDetails:Jn};H(wi),Xe(wi)},onError:function(Zr,Pn,Nn,Jn){J.resetLoader(L,ht),ut(new vi({type:F.NETWORK_ERROR,details:R.FRAG_LOAD_ERROR,fatal:!1,frag:L,part:K,response:b({url:Qt.url,data:void 0},Zr),error:new Error("HTTP Error ".concat(Zr.code," ").concat(Zr.text)),networkDetails:Nn,stats:Jn}))},onAbort:function(Zr,Pn,Nn){L.stats.aborted=K.stats.aborted,J.resetLoader(L,ht),ut(new vi({type:F.NETWORK_ERROR,details:R.INTERNAL_ABORTED,fatal:!1,frag:L,part:K,error:new Error("Aborted"),networkDetails:Nn,stats:Zr}))},onTimeout:function(Zr,Pn,Nn){J.resetLoader(L,ht),ut(new vi({type:F.NETWORK_ERROR,details:R.FRAG_LOAD_TIMEOUT,fatal:!1,frag:L,part:K,error:new Error("Timeout after ".concat(br.timeout,"ms")),networkDetails:Nn,stats:Zr}))}})})}},{key:"updateStatsFromPart",value:function(L,K){var H=L.stats,J=K.stats,ne=J.total;if(H.loaded+=J.loaded,ne){var we=Math.round(L.duration/K.duration),_e=Math.min(Math.round(H.loaded/ne),we),Xe=we-_e,ut=Xe*Math.round(H.loaded/_e);H.total=H.loaded+ut}else H.total=Math.max(H.loaded,H.total);var ht=H.loading,Qt=J.loading;ht.start?ht.first+=Qt.first-Qt.start:(ht.start=Qt.start,ht.first=Qt.first),ht.end=Qt.end}},{key:"resetLoader",value:function(L,K){L.loader=null,this.loader===K&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),K.destroy()}}]),ve}();function mi(ve){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,L=q||ve,K={frag:ve,part:q,responseType:"arraybuffer",url:L.url,headers:{},rangeStart:0,rangeEnd:0},H=L.byteRangeStartOffset,J=L.byteRangeEndOffset;if(E(H)&&E(J)){var ne,we=H,_e=J;if(ve.sn==="initSegment"&&((ne=ve.decryptdata)==null?void 0:ne.method)==="AES-128"){var Xe=J-H;Xe%16&&(_e=J+(16-Xe%16)),H!==0&&(K.resetIV=!0,we=H-16)}K.rangeStart=we,K.rangeEnd=_e}return K}function Ri(ve,q){var L=new Error("GAP ".concat(ve.gap?"tag":"attribute"," found")),K={type:F.MEDIA_ERROR,details:R.FRAG_GAP,fatal:!1,frag:ve,error:L,networkDetails:null};return q&&(K.part=q),(q||ve).stats.aborted=!0,new vi(K)}var vi=function(ve){Object(a.a)(L,ve);var q=Object(e.a)(L);function L(K){var H;return Object(r.a)(this,L),H=q.call(this,K.error.message),H.data=void 0,H.data=K,H}return Object(s.a)(L)}(n(Error)),Bi=function(){function ve(q){Object(r.a)(this,ve),this.config=void 0,this.keyUriToKeyInfo={},this.emeController=null,this.config=q}return Object(s.a)(ve,[{key:"abort",value:function(L){for(var K in this.keyUriToKeyInfo){var H=this.keyUriToKeyInfo[K].loader;if(H){if(L&&L!==H.context.frag.type)return;H.abort()}}}},{key:"detach",value:function(){for(var L in this.keyUriToKeyInfo){var K=this.keyUriToKeyInfo[L];(K.mediaKeySessionContext||K.decryptdata.isCommonEncryption)&&delete this.keyUriToKeyInfo[L]}}},{key:"destroy",value:function(){this.detach();for(var L in this.keyUriToKeyInfo){var K=this.keyUriToKeyInfo[L].loader;K&&K.destroy()}this.keyUriToKeyInfo={}}},{key:"createKeyLoadError",value:function(L){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:R.KEY_LOAD_ERROR,H=arguments.length>2?arguments[2]:void 0,J=arguments.length>3?arguments[3]:void 0,ne=arguments.length>4?arguments[4]:void 0;return new vi({type:F.NETWORK_ERROR,details:K,fatal:!1,frag:L,response:ne,error:H,networkDetails:J})}},{key:"loadClear",value:function(L,K){var H=this;if(this.emeController&&this.config.emeEnabled)for(var J=L.sn,ne=L.cc,we=function(){var ut=K[_e];if(ne<=ut.cc&&(J==="initSegment"||ut.sn==="initSegment"||J<ut.sn))return H.emeController.selectKeySystemFormat(ut).then(function(ht){ut.setKeyFormat(ht)}),1},_e=0;_e<K.length&&!we();_e++);}},{key:"load",value:function(L){var K=this;return!L.decryptdata&&L.encrypted&&this.emeController?this.emeController.selectKeySystemFormat(L).then(function(H){return K.loadInternal(L,H)}):this.loadInternal(L)}},{key:"loadInternal",value:function(L,K){var H,J;K&&L.setKeyFormat(K);var ne=L.decryptdata;if(!ne){var we=new Error(K?"Expected frag.decryptdata to be defined after setting format ".concat(K):"Missing decryption data on fragment in onKeyLoading");return Promise.reject(this.createKeyLoadError(L,R.KEY_LOAD_ERROR,we))}var _e=ne.uri;if(!_e)return Promise.reject(this.createKeyLoadError(L,R.KEY_LOAD_ERROR,new Error('Invalid key URI: "'.concat(_e,'"'))));var Xe=this.keyUriToKeyInfo[_e];if((H=Xe)!=null&&H.decryptdata.key)return ne.key=Xe.decryptdata.key,Promise.resolve({frag:L,keyInfo:Xe});if((J=Xe)!=null&&J.keyLoadPromise){var ut;switch((ut=Xe.mediaKeySessionContext)==null?void 0:ut.keyStatus){case void 0:case"status-pending":case"usable":case"usable-in-future":return Xe.keyLoadPromise.then(function(ht){return ne.key=ht.keyInfo.decryptdata.key,{frag:L,keyInfo:Xe}})}}Xe=this.keyUriToKeyInfo[_e]={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(Xe,L):this.loadKeyEME(Xe,L);case"AES-128":return this.loadKeyHTTP(Xe,L);default:return Promise.reject(this.createKeyLoadError(L,R.KEY_LOAD_ERROR,new Error('Key supplied with unsupported METHOD: "'.concat(ne.method,'"'))))}}},{key:"loadKeyEME",value:function(L,K){var H={frag:K,keyInfo:L};if(this.emeController&&this.config.emeEnabled){var J=this.emeController.loadKey(H);if(J)return(L.keyLoadPromise=J.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,K){var H=this,J=this.config,ne=J.loader,we=new ne(J);return K.keyLoader=L.loader=we,L.keyLoadPromise=new Promise(function(_e,Xe){var ut={keyInfo:L,frag:K,responseType:"arraybuffer",url:L.decryptdata.uri},ht=J.keyLoadPolicy.default,Qt={loadPolicy:ht,timeout:ht.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Tr={onSuccess:function(Kr,Zr,Pn,Nn){var Jn=Pn.frag,wi=Pn.keyInfo,sa=Pn.url;if(!Jn.decryptdata||wi!==H.keyUriToKeyInfo[sa])return Xe(H.createKeyLoadError(Jn,R.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),Nn));wi.decryptdata.key=Jn.decryptdata.key=new Uint8Array(Kr.data),Jn.keyLoader=null,wi.loader=null,_e({frag:Jn,keyInfo:wi})},onError:function(Kr,Zr,Pn,Nn){H.resetLoader(Zr),Xe(H.createKeyLoadError(K,R.KEY_LOAD_ERROR,new Error("HTTP Error ".concat(Kr.code," loading key ").concat(Kr.text)),Pn,b({url:ut.url,data:void 0},Kr)))},onTimeout:function(Kr,Zr,Pn){H.resetLoader(Zr),Xe(H.createKeyLoadError(K,R.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),Pn))},onAbort:function(Kr,Zr,Pn){H.resetLoader(Zr),Xe(H.createKeyLoadError(K,R.INTERNAL_ABORTED,new Error("key loading aborted"),Pn))}};we.load(ut,Qt,Tr)})}},{key:"resetLoader",value:function(L){var K=L.frag,H=L.keyInfo,J=L.url,ne=H.loader;K.keyLoader===ne&&(K.keyLoader=null,H.loader=null),delete this.keyUriToKeyInfo[J],ne&&ne.destroy()}}]),ve}(),Gi=function(){function ve(){Object(r.a)(this,ve),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}return Object(s.a)(ve,[{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(){}}]),ve}(),ta={length:0,start:function(){return 0},end:function(){return 0}},Pi=function(){function ve(){Object(r.a)(this,ve)}return Object(s.a)(ve,null,[{key:"isBuffered",value:function(L,K){try{if(L){for(var H=ve.getBuffered(L),J=0;J<H.length;J++)if(K>=H.start(J)&&K<=H.end(J))return!0}}catch(ne){}return!1}},{key:"bufferInfo",value:function(L,K,H){try{if(L){var J=ve.getBuffered(L),ne=[],we;for(we=0;we<J.length;we++)ne.push({start:J.start(we),end:J.end(we)});return this.bufferedInfo(ne,K,H)}}catch(_e){}return{len:0,start:K,end:K,nextStart:void 0}}},{key:"bufferedInfo",value:function(L,K,H){K=Math.max(0,K),L.sort(function(Zr,Pn){var Nn=Zr.start-Pn.start;return Nn||Pn.end-Zr.end});var J=[];if(H)for(var ne=0;ne<L.length;ne++){var we=J.length;if(we){var _e=J[we-1].end;L[ne].start-_e<H?L[ne].end>_e&&(J[we-1].end=L[ne].end):J.push(L[ne])}else J.push(L[ne])}else J=L;for(var Xe=0,ut,ht=K,Qt=K,Tr=0;Tr<J.length;Tr++){var br=J[Tr].start,Kr=J[Tr].end;if(K+H>=br&&K<Kr)ht=br,Qt=Kr,Xe=Qt-K;else if(K+H<br){ut=br;break}}return{len:Xe,start:ht||0,end:Qt||0,nextStart:ut}}},{key:"getBuffered",value:function(L){try{return L.buffered}catch(K){return U.log("failed to get media.buffered",K),ta}}}]),ve}(),Ki=Object(s.a)(function ve(q,L,K){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,J=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,ve),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=Hi(),this.buffering={audio:Hi(),video:Hi(),audiovideo:Hi()},this.level=q,this.sn=L,this.id=K,this.size=H,this.part=J,this.partial=ne});function Hi(){return{start:0,executeStart:0,executeEnd:0,end:0}}function Qi(ve,q){for(var L=null,K=0,H=ve.length;K<H;K++){var J=ve[K];if(J&&J.cc===q){L=J;break}}return L}function da(ve,q,L){return!!(q.details&&(L.endCC>L.startCC||ve&&ve.cc<L.startCC))}function Oa(ve,q){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,K=ve.fragments,H=q.fragments;if(!H.length||!K.length){U.log("No fragments to align");return}var J=Qi(K,H[0].cc);if(!J||J&&!J.startPTS){U.log("No frag in previous level to align on");return}return J}function ra(ve,q){if(ve){var L=ve.start+q;ve.start=ve.startPTS=L,ve.endPTS=L+ve.duration}}function Da(ve,q){for(var L=q.fragments,K=0,H=L.length;K<H;K++)ra(L[K],ve);q.fragmentHint&&ra(q.fragmentHint,ve),q.alignedSliding=!0}function Ra(ve,q,L){if(!q)return;va(ve,L,q),!L.alignedSliding&&q.details&&ga(L,q.details),!L.alignedSliding&&q.details&&!L.skippedSegments&&On(q.details,L)}function va(ve,q,L){if(da(ve,L,q)){var K=Oa(L.details,q);K&&E(K.start)&&(U.log("Adjusting PTS using last level due to CC increase within current level ".concat(q.url)),Da(K.start,q))}}function ga(ve,q){if(!q.fragments.length||!ve.hasProgramDateTime||!q.hasProgramDateTime)return;var L=q.fragments[0].programDateTime,K=ve.fragments[0].programDateTime,H=(K-L)/1e3+q.fragments[0].start;H&&E(H)&&(U.log("Adjusting PTS using programDateTime delta ".concat(K-L,"ms, sliding:").concat(H.toFixed(3)," ").concat(ve.url," ")),Da(H,ve))}function _a(ve,q){if(!ve.hasProgramDateTime||!q.hasProgramDateTime)return;var L=ve.fragments,K=q.fragments;if(!L.length||!K.length)return;var H=Math.round(K.length/2)-1,J=K[H],ne=Qi(L,J.cc)||L[Math.round(L.length/2)-1],we=J.programDateTime,_e=ne.programDateTime;if(we===null||_e===null)return;var Xe=(_e-we)/1e3-(ne.start-J.start);Da(Xe,ve)}var ya=function(){function ve(q,L){Object(r.a)(this,ve),this.subtle=void 0,this.aesIV=void 0,this.subtle=q,this.aesIV=L}return Object(s.a)(ve,[{key:"decrypt",value:function(L,K){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},K,L)}}]),ve}(),Ga=function(){function ve(q,L){Object(r.a)(this,ve),this.subtle=void 0,this.key=void 0,this.subtle=q,this.key=L}return Object(s.a)(ve,[{key:"expandKey",value:function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])}}]),ve}();function Ia(ve){var q=ve.byteLength,L=q&&new DataView(ve.buffer).getUint8(q-1);return L?pt(ve,0,q-L):ve}var Wa=function(){function ve(){Object(r.a)(this,ve),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)(ve,[{key:"uint8ArrayToUint32Array_",value:function(L){for(var K=new DataView(L),H=new Uint32Array(4),J=0;J<4;J++)H[J]=K.getUint32(J*4);return H}},{key:"initTable",value:function(){var L=this.sBox,K=this.invSBox,H=this.subMix,J=H[0],ne=H[1],we=H[2],_e=H[3],Xe=this.invSubMix,ut=Xe[0],ht=Xe[1],Qt=Xe[2],Tr=Xe[3],br=new Uint32Array(256),Kr=0,Zr=0,Pn=0;for(Pn=0;Pn<256;Pn++)Pn<128?br[Pn]=Pn<<1:br[Pn]=Pn<<1^283;for(Pn=0;Pn<256;Pn++){var Nn=Zr^Zr<<1^Zr<<2^Zr<<3^Zr<<4;Nn=Nn>>>8^Nn&255^99,L[Kr]=Nn,K[Nn]=Kr;var Jn=br[Kr],wi=br[Jn],sa=br[wi],Wi=br[Nn]*257^Nn*16843008;J[Kr]=Wi<<24|Wi>>>8,ne[Kr]=Wi<<16|Wi>>>16,we[Kr]=Wi<<8|Wi>>>24,_e[Kr]=Wi,Wi=sa*16843009^wi*65537^Jn*257^Kr*16843008,ut[Nn]=Wi<<24|Wi>>>8,ht[Nn]=Wi<<16|Wi>>>16,Qt[Nn]=Wi<<8|Wi>>>24,Tr[Nn]=Wi,Kr?(Kr=Jn^br[br[br[sa^Jn]]],Zr^=br[br[Zr]]):Kr=Zr=1}}},{key:"expandKey",value:function(L){for(var K=this.uint8ArrayToUint32Array_(L),H=!0,J=0;J<K.length&&H;)H=K[J]===this.key[J],J++;if(H)return;this.key=K;var ne=this.keySize=K.length;if(ne!==4&&ne!==6&&ne!==8)throw new Error("Invalid aes key size="+ne);var we=this.ksRows=(ne+6+1)*4,_e,Xe,ut=this.keySchedule=new Uint32Array(we),ht=this.invKeySchedule=new Uint32Array(we),Qt=this.sBox,Tr=this.rcon,br=this.invSubMix,Kr=br[0],Zr=br[1],Pn=br[2],Nn=br[3],Jn,wi;for(_e=0;_e<we;_e++){if(_e<ne){Jn=ut[_e]=K[_e];continue}wi=Jn,_e%ne===0?(wi=wi<<8|wi>>>24,wi=Qt[wi>>>24]<<24|Qt[wi>>>16&255]<<16|Qt[wi>>>8&255]<<8|Qt[wi&255],wi^=Tr[_e/ne|0]<<24):ne>6&&_e%ne===4&&(wi=Qt[wi>>>24]<<24|Qt[wi>>>16&255]<<16|Qt[wi>>>8&255]<<8|Qt[wi&255]),ut[_e]=Jn=(ut[_e-ne]^wi)>>>0}for(Xe=0;Xe<we;Xe++)_e=we-Xe,Xe&3?wi=ut[_e]:wi=ut[_e-4],Xe<4||_e<=4?ht[Xe]=wi:ht[Xe]=Kr[Qt[wi>>>24]]^Zr[Qt[wi>>>16&255]]^Pn[Qt[wi>>>8&255]]^Nn[Qt[wi&255]],ht[Xe]=ht[Xe]>>>0}},{key:"networkToHostOrderSwap",value:function(L){return L<<24|(L&65280)<<8|(L&16711680)>>8|L>>>24}},{key:"decrypt",value:function(L,K,H){for(var J=this.keySize+6,ne=this.invKeySchedule,we=this.invSBox,_e=this.invSubMix,Xe=_e[0],ut=_e[1],ht=_e[2],Qt=_e[3],Tr=this.uint8ArrayToUint32Array_(H),br=Tr[0],Kr=Tr[1],Zr=Tr[2],Pn=Tr[3],Nn=new Int32Array(L),Jn=new Int32Array(Nn.length),wi,sa,Wi,Ji,La,Xa,Ua,ba,_o,bs,ds,rl,xe,Ye,St=this.networkToHostOrderSwap;K<Nn.length;){for(_o=St(Nn[K]),bs=St(Nn[K+1]),ds=St(Nn[K+2]),rl=St(Nn[K+3]),La=_o^ne[0],Xa=rl^ne[1],Ua=ds^ne[2],ba=bs^ne[3],xe=4,Ye=1;Ye<J;Ye++)wi=Xe[La>>>24]^ut[Xa>>16&255]^ht[Ua>>8&255]^Qt[ba&255]^ne[xe],sa=Xe[Xa>>>24]^ut[Ua>>16&255]^ht[ba>>8&255]^Qt[La&255]^ne[xe+1],Wi=Xe[Ua>>>24]^ut[ba>>16&255]^ht[La>>8&255]^Qt[Xa&255]^ne[xe+2],Ji=Xe[ba>>>24]^ut[La>>16&255]^ht[Xa>>8&255]^Qt[Ua&255]^ne[xe+3],La=wi,Xa=sa,Ua=Wi,ba=Ji,xe=xe+4;wi=we[La>>>24]<<24^we[Xa>>16&255]<<16^we[Ua>>8&255]<<8^we[ba&255]^ne[xe],sa=we[Xa>>>24]<<24^we[Ua>>16&255]<<16^we[ba>>8&255]<<8^we[La&255]^ne[xe+1],Wi=we[Ua>>>24]<<24^we[ba>>16&255]<<16^we[La>>8&255]<<8^we[Xa&255]^ne[xe+2],Ji=we[ba>>>24]<<24^we[La>>16&255]<<16^we[Xa>>8&255]<<8^we[Ua&255]^ne[xe+3],Jn[K]=St(wi^br),Jn[K+1]=St(Ji^Kr),Jn[K+2]=St(Wi^Zr),Jn[K+3]=St(sa^Pn),br=_o,Kr=bs,Zr=ds,Pn=rl,K=K+4}return Jn.buffer}}]),ve}(),no=16,io=function(){function ve(q){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=L.removePKCS7Padding,H=K===void 0?!0:K;if(Object(r.a)(this,ve),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=q.enableSoftwareAES,this.removePKCS7Padding=H,H)try{var J=self.crypto;J&&(this.subtle=J.subtle||J.webkitSubtle)}catch(ne){}this.subtle===null&&(this.useSoftware=!0)}return Object(s.a)(ve,[{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,K=this.remainderData;if(!L||K)return this.reset(),null;var H=new Uint8Array(L);return this.reset(),this.removePKCS7Padding?Ia(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,K,H){var J=this;return this.useSoftware?new Promise(function(ne,we){J.softwareDecrypt(new Uint8Array(L),K,H);var _e=J.flush();_e?ne(_e.buffer):we(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(L),K,H)}},{key:"softwareDecrypt",value:function(L,K,H){var J=this.currentIV,ne=this.currentResult,we=this.remainderData;this.logOnce("JS AES decrypt"),we&&(L=Me(we,L),this.remainderData=null);var _e=this.getValidChunk(L);if(!_e.length)return null;J&&(H=J);var Xe=this.softwareDecrypter;Xe||(Xe=this.softwareDecrypter=new Wa),Xe.expandKey(K);var ut=ne;return this.currentResult=Xe.decrypt(_e.buffer,0,H),this.currentIV=pt(_e,-16).buffer,ut||null}},{key:"webCryptoDecrypt",value:function(L,K,H){var J=this,ne=this.subtle;return(this.key!==K||!this.fastAesKey)&&(this.key=K,this.fastAesKey=new Ga(ne,K)),this.fastAesKey.expandKey().then(function(we){if(!ne)return Promise.reject(new Error("web crypto not initialized"));J.logOnce("WebCrypto AES decrypt");var _e=new ya(ne,new Uint8Array(H));return _e.decrypt(L.buffer,we)}).catch(function(we){return U.warn("[decrypter]: WebCrypto Error, disable WebCrypto API, ".concat(we.name,": ").concat(we.message)),J.onWebCryptoError(L,K,H)})}},{key:"onWebCryptoError",value:function(L,K,H){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(L,K,H);var J=this.flush();if(J)return J.buffer;throw new Error("WebCrypto and softwareDecrypt: failed to decrypt data")}},{key:"getValidChunk",value:function(L){var K=L,H=L.length-L.length%no;return H!==L.length&&(K=pt(L,0,H),this.remainderData=pt(L,H)),K}},{key:"logOnce",value:function(L){if(!this.logEnabled)return;U.log("[decrypter]: ".concat(L)),this.logEnabled=!1}}]),ve}(),uo={toString:function(q){for(var L="",K=q.length,H=0;H<K;H++)L+="[".concat(q.start(H).toFixed(3),"-").concat(q.end(H).toFixed(3),"]");return L}},$i={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"},mo=function(ve){Object(a.a)(L,ve);var q=Object(e.a)(L);function L(K,H,J,ne,we){var _e;return Object(r.a)(this,L),_e=q.call(this),_e.hls=void 0,_e.fragPrevious=null,_e.fragCurrent=null,_e.fragmentTracker=void 0,_e.transmuxer=null,_e._state=$i.STOPPED,_e.playlistType=void 0,_e.media=null,_e.mediaBuffer=null,_e.config=void 0,_e.bitrateTest=!1,_e.lastCurrentTime=0,_e.nextLoadPosition=0,_e.startPosition=0,_e.startTimeOffset=null,_e.loadedmetadata=!1,_e.retryDate=0,_e.levels=null,_e.fragmentLoader=void 0,_e.keyLoader=void 0,_e.levelLastLoaded=null,_e.startFragRequested=!1,_e.decrypter=void 0,_e.initPTS=[],_e.onvseeking=null,_e.onvended=null,_e.logPrefix="",_e.log=void 0,_e.warn=void 0,_e.playlistType=we,_e.logPrefix=ne,_e.log=U.log.bind(U,"".concat(ne,":")),_e.warn=U.warn.bind(U,"".concat(ne,":")),_e.hls=K,_e.fragmentLoader=new Vn(K.config),_e.keyLoader=J,_e.fragmentTracker=H,_e.config=K.config,_e.decrypter=new io(K.config),K.on(_.MANIFEST_LOADED,_e.onManifestLoaded,Object(A.a)(_e)),_e}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=$i.STOPPED}},{key:"_streamEnded",value:function(H,J){if(J.live||H.nextStart||!H.end||!this.media)return!1;var ne=J.partList;if(ne!=null&&ne.length){var we=ne[ne.length-1],_e=Pi.isBuffered(this.media,we.start+we.duration/2);return _e}var Xe=J.fragments[J.fragments.length-1].type;return this.fragmentTracker.isEndListAppended(Xe)}},{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,J){var ne=this.media=this.mediaBuffer=J.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),ne.addEventListener("seeking",this.onvseeking),ne.addEventListener("ended",this.onvended);var we=this.config;this.levels&&we.autoStartLoad&&this.state===$i.STOPPED&&this.startLoad(we.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,J=this.fragCurrent,ne=this.media,we=this.mediaBuffer,_e=this.state,Xe=ne?ne.currentTime:0,ut=Pi.bufferInfo(we||ne,Xe,H.maxBufferHole);if(this.log("media seeking to ".concat(E(Xe)?Xe.toFixed(3):Xe,", state: ").concat(_e)),this.state===$i.ENDED)this.resetLoadingState();else if(J){var ht=H.maxFragLookUpTolerance,Qt=J.start-ht,Tr=J.start+J.duration+ht;if(!ut.len||Tr<ut.start||Qt>ut.end){var br=Xe>Tr;(Xe<Qt||br)&&(br&&J.loader&&(this.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),J.abortRequests(),this.resetLoadingState()),this.fragPrevious=null)}}ne&&(this.fragmentTracker.removeFragmentsInRange(Xe,Infinity,this.playlistType,!0),this.lastCurrentTime=Xe),!this.loadedmetadata&&!ut.len&&(this.nextLoadPosition=this.startPosition=Xe),this.tickImmediate()}},{key:"onMediaEnded",value:function(){this.startPosition=this.lastCurrentTime=0}},{key:"onManifestLoaded",value:function(H,J){this.startTimeOffset=J.startTimeOffset,this.initPTS=[]}},{key:"onHandlerDestroying",value:function(){this.stopLoad(),Object(t.a)(Object(m.a)(L.prototype),"onHandlerDestroying",this).call(this)}},{key:"onHandlerDestroyed",value:function(){this.state=$i.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(m.a)(L.prototype),"onHandlerDestroyed",this).call(this)}},{key:"loadFragment",value:function(H,J,ne){this._loadFragForPlayback(H,J,ne)}},{key:"_loadFragForPlayback",value:function(H,J,ne){var we=this,_e=function(ut){if(we.fragContextChanged(H)){we.warn("Fragment ".concat(H.sn).concat(ut.part?" p: "+ut.part.index:""," of level ").concat(H.level," was dropped during download.")),we.fragmentTracker.removeFragment(H);return}H.stats.chunkCount++,we._handleFragmentLoadProgress(ut)};this._doFragLoad(H,J,ne,_e).then(function(Xe){if(!Xe)return;var ut=we.state;if(we.fragContextChanged(H)){(ut===$i.FRAG_LOADING||!we.fragCurrent&&ut===$i.PARSING)&&(we.fragmentTracker.removeFragment(H),we.state=$i.IDLE);return}"payload"in Xe&&(we.log("Loaded fragment ".concat(H.sn," of level ").concat(H.level)),we.hls.trigger(_.FRAG_LOADED,Xe)),we._handleFragmentLoadComplete(Xe)}).catch(function(Xe){if(we.state===$i.STOPPED||we.state===$i.ERROR)return;we.warn(Xe),we.resetFragmentLoading(H)})}},{key:"clearTrackerIfNeeded",value:function(H){var J,ne=this.fragmentTracker,we=ne.getState(H);if(we===Jr.APPENDING){var _e=H.type,Xe=this.getFwdBufferInfo(this.mediaBuffer,_e),ut=Math.max(H.duration,Xe?Xe.len:this.config.maxBufferLength);this.reduceMaxBufferLength(ut)&&ne.removeFragment(H)}else((J=this.mediaBuffer)==null?void 0:J.buffered.length)===0?ne.removeAllFragments():ne.hasParts(H.type)&&(ne.detectPartialFragments({frag:H,part:null,stats:H.stats,id:H.type}),ne.getState(H)===Jr.PARTIAL&&ne.removeFragment(H))}},{key:"checkLiveUpdate",value:function(H){if(H.updated&&!H.live){var J=H.fragments[H.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:J,part:null,stats:J.stats,id:J.type})}H.fragments[0]||(H.deltaUpdateFailed=!0)}},{key:"flushMainBuffer",value:function(H,J){var ne=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!(H-J))return;var we={startOffset:H,endOffset:J,type:ne};this.hls.trigger(_.BUFFER_FLUSHING,we)}},{key:"_loadInitSegment",value:function(H,J){var ne=this;this._doFragLoad(H,J).then(function(we){if(!we||ne.fragContextChanged(H)||!ne.levels)throw new Error("init load aborted");return we}).then(function(we){var _e=ne.hls,Xe=we.payload,ut=H.decryptdata;if(Xe&&Xe.byteLength>0&&ut&&ut.key&&ut.iv&&ut.method==="AES-128"){var ht=self.performance.now();return ne.decrypter.decrypt(new Uint8Array(Xe),ut.key.buffer,ut.iv.buffer).catch(function(Qt){throw _e.trigger(_.ERROR,{type:F.MEDIA_ERROR,details:R.FRAG_DECRYPT_ERROR,fatal:!1,error:Qt,reason:Qt.message,frag:H}),Qt}).then(function(Qt){var Tr=self.performance.now();return _e.trigger(_.FRAG_DECRYPTED,{frag:H,payload:Qt,stats:{tstart:ht,tdecrypt:Tr}}),we.payload=Qt,we})}return we}).then(function(we){var _e=ne.fragCurrent,Xe=ne.hls,ut=ne.levels;if(!ut)throw new Error("init load aborted, missing levels");var ht=H.stats;ne.state=$i.IDLE,J.fragmentError=0,H.data=new Uint8Array(we.payload),ht.parsing.start=ht.buffering.start=self.performance.now(),ht.parsing.end=ht.buffering.end=self.performance.now(),we.frag===_e&&Xe.trigger(_.FRAG_BUFFERED,{stats:ht,frag:_e,part:null,id:H.type}),ne.tick()}).catch(function(we){if(ne.state===$i.STOPPED||ne.state===$i.ERROR)return;ne.warn(we),ne.resetFragmentLoading(H)})}},{key:"fragContextChanged",value:function(H){var J=this.fragCurrent;return!H||!J||H.level!==J.level||H.sn!==J.sn||H.urlId!==J.urlId}},{key:"fragBufferedComplete",value:function(H,J){var ne,we,_e,Xe,ut=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log("Buffered ".concat(H.type," sn: ").concat(H.sn).concat(J?" part: "+J.index:""," of ").concat(this.playlistType===Fr.MAIN?"level":"track"," ").concat(H.level," (frag:[").concat(((ne=H.startPTS)!=null?ne:NaN).toFixed(3),"-").concat(((we=H.endPTS)!=null?we:NaN).toFixed(3),"] > buffer:").concat(ut?uo.toString(Pi.getBuffered(ut)):"(detached)",")")),this.state=$i.IDLE,!ut)return;!this.loadedmetadata&&H.type==Fr.MAIN&&ut.buffered.length&&((_e=this.fragCurrent)==null?void 0:_e.sn)===((Xe=this.fragPrevious)==null?void 0:Xe.sn)&&(this.loadedmetadata=!0,this.seekToStartPos()),this.tick()}},{key:"seekToStartPos",value:function(){}},{key:"_handleFragmentLoadComplete",value:function(H){var J=this.transmuxer;if(!J)return;var ne=H.frag,we=H.part,_e=H.partsLoaded,Xe=!_e||_e.length===0||_e.some(function(ht){return!ht}),ut=new Ki(ne.level,ne.sn,ne.stats.chunkCount+1,0,we?we.index:-1,!Xe);J.flush(ut)}},{key:"_handleFragmentLoadProgress",value:function(H){}},{key:"_doFragLoad",value:function(H,J){var ne=this,we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,_e=arguments.length>3?arguments[3]:void 0,Xe,ut=J==null?void 0:J.details;if(!this.levels||!ut)throw new Error("frag load aborted, missing level".concat(ut?"":" detail","s"));var ht=null;if(H.encrypted&&!((Xe=H.decryptdata)!=null&&Xe.key)?(this.log("Loading key for ".concat(H.sn," of [").concat(ut.startSN,"-").concat(ut.endSN,"], ").concat(this.logPrefix==="[stream-controller]"?"level":"track"," ").concat(H.level)),this.state=$i.KEY_LOADING,this.fragCurrent=H,ht=this.keyLoader.load(H).then(function(Nn){if(!ne.fragContextChanged(Nn.frag))return ne.hls.trigger(_.KEY_LOADED,Nn),ne.state===$i.KEY_LOADING&&(ne.state=$i.IDLE),Nn}),this.hls.trigger(_.KEY_LOADING,{frag:H}),this.fragCurrent===null&&(ht=Promise.reject(new Error("frag load aborted, context changed in KEY_LOADING")))):!H.encrypted&&ut.encryptedFragments.length&&this.keyLoader.loadClear(H,ut.encryptedFragments),we=Math.max(H.start,we||0),this.config.lowLatencyMode&&H.sn!=="initSegment"){var Qt=ut.partList;if(Qt&&_e){we>H.end&&ut.fragmentHint&&(H=ut.fragmentHint);var Tr=this.getNextPart(Qt,H,we);if(Tr>-1){var br=Qt[Tr];this.log("Loading part sn: ".concat(H.sn," p: ").concat(br.index," cc: ").concat(H.cc," of playlist [").concat(ut.startSN,"-").concat(ut.endSN,"] parts [0-").concat(Tr,"-").concat(Qt.length-1,"] ").concat(this.logPrefix==="[stream-controller]"?"level":"track",": ").concat(H.level,", target: ").concat(parseFloat(we.toFixed(3)))),this.nextLoadPosition=br.start+br.duration,this.state=$i.FRAG_LOADING;var Kr;return ht?Kr=ht.then(function(Nn){return!Nn||ne.fragContextChanged(Nn.frag)?null:ne.doFragPartsLoad(H,br,J,_e)}).catch(function(Nn){return ne.handleFragLoadError(Nn)}):Kr=this.doFragPartsLoad(H,br,J,_e).catch(function(Nn){return ne.handleFragLoadError(Nn)}),this.hls.trigger(_.FRAG_LOADING,{frag:H,part:br,targetBufferTime:we}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):Kr}else if(!H.url||this.loadedEndOfParts(Qt,we))return Promise.resolve(null)}}this.log("Loading fragment ".concat(H.sn," cc: ").concat(H.cc," ").concat(ut?"of ["+ut.startSN+"-"+ut.endSN+"] ":"").concat(this.logPrefix==="[stream-controller]"?"level":"track",": ").concat(H.level,", target: ").concat(parseFloat(we.toFixed(3)))),E(H.sn)&&!this.bitrateTest&&(this.nextLoadPosition=H.start+H.duration),this.state=$i.FRAG_LOADING;var Zr=this.config.progressive,Pn;return Zr&&ht?Pn=ht.then(function(Nn){return!Nn||ne.fragContextChanged(Nn==null?void 0:Nn.frag)?null:ne.fragmentLoader.load(H,_e)}).catch(function(Nn){return ne.handleFragLoadError(Nn)}):Pn=Promise.all([this.fragmentLoader.load(H,Zr?_e:void 0),ht]).then(function(Nn){var Jn=Object(S.a)(Nn,1),wi=Jn[0];return!Zr&&wi&&_e&&_e(wi),wi}).catch(function(Nn){return ne.handleFragLoadError(Nn)}),this.hls.trigger(_.FRAG_LOADING,{frag:H,targetBufferTime:we}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):Pn}},{key:"doFragPartsLoad",value:function(H,J,ne,we){var _e=this;return new Promise(function(Xe,ut){var ht,Qt=[],Tr=(ht=ne.details)==null?void 0:ht.partList,br=function Kr(Zr){_e.fragmentLoader.loadPart(H,Zr,we).then(function(Pn){Qt[Zr.index]=Pn;var Nn=Pn.part;_e.hls.trigger(_.FRAG_LOADED,Pn);var Jn=xi(ne,H.sn,Zr.index+1)||Di(Tr,H.sn,Zr.index+1);if(Jn)Kr(Jn);else return Xe({frag:H,part:Nn,partsLoaded:Qt})}).catch(ut)};br(J)})}},{key:"handleFragLoadError",value:function(H){if("data"in H){var J=H.data;H.data&&J.details===R.INTERNAL_ABORTED?this.handleFragLoadAborted(J.frag,J.part):this.hls.trigger(_.ERROR,J)}else this.hls.trigger(_.ERROR,{type:F.OTHER_ERROR,details:R.INTERNAL_EXCEPTION,err:H,error:H,fatal:!0});return null}},{key:"_handleTransmuxerFlush",value:function(H){var J=this.getCurrentContext(H);if(!J||this.state!==$i.PARSING){!this.fragCurrent&&this.state!==$i.STOPPED&&this.state!==$i.ERROR&&(this.state=$i.IDLE);return}var ne=J.frag,we=J.part,_e=J.level,Xe=self.performance.now();ne.stats.parsing.end=Xe,we&&(we.stats.parsing.end=Xe),this.updateLevelTiming(ne,we,_e,H.partial)}},{key:"getCurrentContext",value:function(H){var J=this.levels,ne=this.fragCurrent,we=H.level,_e=H.sn,Xe=H.part;if(!(J!=null&&J[we]))return this.warn("Levels object was unset while buffering fragment ".concat(_e," of level ").concat(we,". The current chunk will not be buffered.")),null;var ut=J[we],ht=Xe>-1?xi(ut,_e,Xe):null,Qt=ht?ht.fragment:oi(ut,_e,ne);return Qt?(ne&&ne!==Qt&&(Qt.stats=ne.stats),{frag:Qt,part:ht,level:ut}):null}},{key:"bufferFragmentData",value:function(H,J,ne,we,_e){var Xe;if(!H||this.state!==$i.PARSING)return;var ut=H.data1,ht=H.data2,Qt=ut;if(ut&&ht&&(Qt=Me(ut,ht)),!((Xe=Qt)!=null&&Xe.length))return;var Tr={type:H.type,frag:J,part:ne,chunkMeta:we,parent:J.type,data:Qt};if(this.hls.trigger(_.BUFFER_APPENDING,Tr),H.dropped&&H.independent&&!ne){if(_e)return;this.flushBufferGap(J)}}},{key:"flushBufferGap",value:function(H){var J=this.media;if(!J)return;if(!Pi.isBuffered(J,J.currentTime)){this.flushMainBuffer(0,H.start);return}var ne=J.currentTime,we=Pi.bufferInfo(J,ne,0),_e=H.duration,Xe=Math.min(this.config.maxFragLookUpTolerance*2,_e*.25),ut=Math.max(Math.min(H.start-Xe,we.end-Xe),ne+Xe);H.start-ut>Xe&&this.flushMainBuffer(ut,H.start)}},{key:"getFwdBufferInfo",value:function(H,J){var ne=this.getLoadPosition();return E(ne)?this.getFwdBufferInfoAtPos(H,ne,J):null}},{key:"getFwdBufferInfoAtPos",value:function(H,J,ne){var we=this.config.maxBufferHole,_e=Pi.bufferInfo(H,J,we);if(_e.len===0&&_e.nextStart!==void 0){var Xe=this.fragmentTracker.getBufferedFrag(J,ne);if(Xe&&_e.nextStart<Xe.end)return Pi.bufferInfo(H,J,Math.max(_e.nextStart,we))}return _e}},{key:"getMaxBufferLength",value:function(H){var J=this.config,ne;return H?ne=Math.max(8*J.maxBufferSize/H,J.maxBufferLength):ne=J.maxBufferLength,Math.min(ne,J.maxMaxBufferLength)}},{key:"reduceMaxBufferLength",value:function(H){var J=this.config,ne=H||J.maxBufferLength;return J.maxMaxBufferLength>=ne?(J.maxMaxBufferLength/=2,this.warn("Reduce max buffer length to ".concat(J.maxMaxBufferLength,"s")),!0):!1}},{key:"getAppendedFrag",value:function(H){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fr.MAIN,ne=this.fragmentTracker.getAppendedFrag(H,Fr.MAIN);return ne&&"fragment"in ne?ne.fragment:ne}},{key:"getNextFragment",value:function(H,J){var ne=J.fragments,we=ne.length;if(!we)return null;var _e=this.config,Xe=ne[0].start,ut;if(J.live){var ht=_e.initialLiveManifestSize;if(we<ht)return this.warn("Not enough fragments to start playback (have: ".concat(we,", need: ").concat(ht,")")),null;!J.PTSKnown&&!this.startFragRequested&&this.startPosition===-1&&(ut=this.getInitialLiveFragment(J,ne),this.startPosition=ut?this.hls.liveSyncPosition||ut.start:H)}else H<=Xe&&(ut=ne[0]);if(!ut){var Qt=_e.lowLatencyMode?J.partEnd:J.fragmentEnd;ut=this.getFragmentAtPosition(H,Qt,J)}return this.mapToInitFragWhenRequired(ut)}},{key:"isLoopLoading",value:function(H,J){var ne=this.fragmentTracker.getState(H);return(ne===Jr.OK||ne===Jr.PARTIAL&&!!H.gap)&&this.nextLoadPosition>J}},{key:"getNextFragmentLoopLoading",value:function(H,J,ne,we,_e){var Xe=H.gap,ut=this.getNextFragment(this.nextLoadPosition,J);if(ut===null)return ut;if(H=ut,Xe&&H&&!H.gap&&ne.nextStart){var ht=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,ne.nextStart,we);if(ht!==null&&ne.len+ht.len>=_e)return this.log('buffer full after gaps in "'.concat(we,'" 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,J,ne){for(var we=-1,_e=!1,Xe=!0,ut=0,ht=H.length;ut<ht;ut++){var Qt=H[ut];if(Xe=Xe&&!Qt.independent,we>-1&&ne<Qt.start)break;var Tr=Qt.loaded;Tr?we=-1:(_e||Qt.independent||Xe)&&Qt.fragment===J&&(we=ut),_e=Tr}return we}},{key:"loadedEndOfParts",value:function(H,J){var ne=H[H.length-1];return ne&&J>ne.start&&ne.loaded}},{key:"getInitialLiveFragment",value:function(H,J){var ne=this.fragPrevious,we=null;if(ne){if(H.hasProgramDateTime&&(this.log("Live playlist, switching playlist, load frag with same PDT: ".concat(ne.programDateTime)),we=ji(J,ne.endProgramDateTime,this.config.maxFragLookUpTolerance)),!we){var _e=ne.sn+1;if(_e>=H.startSN&&_e<=H.endSN){var Xe=J[_e-H.startSN];ne.cc===Xe.cc&&(we=Xe,this.log("Live playlist, switching playlist, load frag with next SN: ".concat(we.sn)))}we||(we=kr(J,ne.cc),we&&this.log("Live playlist, switching playlist, load frag with same CC: ".concat(we.sn)))}}else{var ut=this.hls.liveSyncPosition;ut!==null&&(we=this.getFragmentAtPosition(ut,this.bitrateTest?H.fragmentEnd:H.edge,H))}return we}},{key:"getFragmentAtPosition",value:function(H,J,ne){var we=this.config,_e=this.fragPrevious,Xe=ne.fragments,ut=ne.endSN,ht=ne.fragmentHint,Qt=we.maxFragLookUpTolerance,Tr=ne.partList,br=!!(we.lowLatencyMode&&Tr!=null&&Tr.length&&ht);br&&ht&&!this.bitrateTest&&(Xe=Xe.concat(ht),ut=ht.sn);var Kr;if(H<J){var Zr=H>J-Qt?0:Qt;Kr=ha(_e,Xe,H,Zr)}else Kr=Xe[Xe.length-1];if(Kr){var Pn=Kr.sn-ne.startSN,Nn=this.fragmentTracker.getState(Kr);if((Nn===Jr.OK||Nn===Jr.PARTIAL&&Kr.gap)&&(_e=Kr),_e&&Kr.sn===_e.sn&&(!br||Tr[0].fragment.sn>Kr.sn)){var Jn=_e&&Kr.level===_e.level;if(Jn){var wi=Xe[Pn+1];Kr.sn<ut&&this.fragmentTracker.getState(wi)!==Jr.OK?Kr=wi:Kr=null}}}return Kr}},{key:"synchronizeToLiveEdge",value:function(H){var J=this.config,ne=this.media;if(!ne)return;var we=this.hls.liveSyncPosition,_e=ne.currentTime,Xe=H.fragments[0].start,ut=H.edge,ht=_e>=Xe-J.maxFragLookUpTolerance&&_e<=ut;if(we!==null&&ne.duration>we&&(_e<we||!ht)){var Qt=J.liveMaxLatencyDuration!==void 0?J.liveMaxLatencyDuration:J.liveMaxLatencyDurationCount*H.targetduration;(!ht&&ne.readyState<4||_e<ut-Qt)&&(this.loadedmetadata||(this.nextLoadPosition=we),ne.readyState&&(this.warn("Playback: ".concat(_e.toFixed(3)," is located too far from the end of live sliding playlist: ").concat(ut,", reset currentTime to : ").concat(we.toFixed(3))),ne.currentTime=we))}}},{key:"alignPlaylists",value:function(H,J){var ne=this.levels,we=this.levelLastLoaded,_e=this.fragPrevious,Xe=we!==null?ne[we]:null,ut=H.fragments.length;if(!ut)return this.warn("No fragments in live playlist"),0;var ht=H.fragments[0].start,Qt=!J,Tr=H.alignedSliding&&E(ht);if(Qt||!Tr&&!ht){Ra(_e,Xe,H);var br=H.fragments[0].start;return this.log("Live playlist sliding: ".concat(br.toFixed(2)," start-sn: ").concat(J?J.startSN:"na","->").concat(H.startSN," prev-sn: ").concat(_e?_e.sn:"na"," fragments: ").concat(ut)),br}return ht}},{key:"waitForCdnTuneIn",value:function(H){var J=3;return H.live&&H.canBlockReload&&H.partTarget&&H.tuneInGoal>Math.max(H.partHoldBack,H.partTarget*J)}},{key:"setStartPosition",value:function(H,J){var ne=this.startPosition;if(ne<J&&(ne=-1),ne===-1||this.lastCurrentTime===-1){var we=this.startTimeOffset!==null,_e=we?this.startTimeOffset:H.startTimeOffset;_e!==null&&E(_e)?(ne=J+_e,_e<0&&(ne+=H.totalduration),ne=Math.min(Math.max(J,ne),J+H.totalduration),this.log("Start time offset ".concat(_e," found in ").concat(we?"multivariant":"media"," playlist, adjust startPosition to ").concat(ne)),this.startPosition=ne):H.live?ne=this.hls.liveSyncPosition||J:this.startPosition=ne=0,this.lastCurrentTime=ne}this.nextLoadPosition=ne}},{key:"getLoadPosition",value:function(){var H=this.media,J=0;return this.loadedmetadata&&H?J=H.currentTime:this.nextLoadPosition&&(J=this.nextLoadPosition),J}},{key:"handleFragLoadAborted",value:function(H,J){this.transmuxer&&H.sn!=="initSegment"&&H.stats.aborted&&(this.warn("Fragment ".concat(H.sn).concat(J?" part "+J.index:""," of level ").concat(H.level," was aborted")),this.resetFragmentLoading(H))}},{key:"resetFragmentLoading",value:function(H){(!this.fragCurrent||!this.fragContextChanged(H)&&this.state!==$i.FRAG_LOADING_WAITING_RETRY)&&(this.state=$i.IDLE)}},{key:"onFragmentOrKeyLoadError",value:function(H,J){if(J.chunkMeta&&!J.frag){var ne=this.getCurrentContext(J.chunkMeta);ne&&(J.frag=ne.frag)}var we=J.frag;if(!we||we.type!==H||!this.levels)return;if(this.fragContextChanged(we)){var _e;this.warn("Frag load error must match current frag to retry ".concat(we.url," > ").concat((_e=this.fragCurrent)==null?void 0:_e.url));return}var Xe=J.details===R.FRAG_GAP;Xe&&this.fragmentTracker.fragBuffered(we,!0);var ut=J.errorAction,ht=ut||{},Qt=ht.action,Tr=ht.retryCount,br=Tr===void 0?0:Tr,Kr=ht.retryConfig;if(ut&&Qt===yn.RetryRequest&&Kr){var Zr;this.resetStartWhenNotLoaded((Zr=this.levelLastLoaded)!=null?Zr:we.level);var Pn=ma(Kr,br);this.warn("Fragment ".concat(we.sn," of ").concat(H," ").concat(we.level," errored with ").concat(J.details,", retrying loading ").concat(br+1,"/").concat(Kr.maxNumRetry," in ").concat(Pn,"ms")),ut.resolved=!0,this.retryDate=self.performance.now()+Pn,this.state=$i.FRAG_LOADING_WAITING_RETRY}else Kr&&ut?(this.resetFragmentErrors(H),br<Kr.maxNumRetry?Xe||(ut.resolved=!0):U.warn("".concat(J.details," reached or exceeded max retry (").concat(br,")"))):(ut==null?void 0:ut.action)===yn.SendAlternateToPenaltyBox?this.state=$i.WAITING_LEVEL:this.state=$i.ERROR;this.tickImmediate()}},{key:"reduceLengthAndFlushBuffer",value:function(H){if(this.state===$i.PARSING||this.state===$i.PARSED){var J=H.parent,ne=this.getFwdBufferInfo(this.mediaBuffer,J),we=ne&&ne.len>.5;we&&this.reduceMaxBufferLength(ne.len);var _e=!we;return _e&&this.warn("Buffer full error while media.currentTime is not buffered, flush ".concat(J," buffer")),H.frag&&(this.fragmentTracker.removeFragment(H.frag),this.nextLoadPosition=H.frag.start),this.resetLoadingState(),_e}return!1}},{key:"resetFragmentErrors",value:function(H){H===Fr.AUDIO&&(this.fragCurrent=null),this.loadedmetadata||(this.startFragRequested=!1),this.state!==$i.STOPPED&&(this.state=$i.IDLE)}},{key:"afterBufferFlushed",value:function(H,J,ne){if(!H)return;var we=Pi.getBuffered(H);this.fragmentTracker.detectEvictedFragments(J,we,ne),this.state===$i.ENDED&&this.resetLoadingState()}},{key:"resetLoadingState",value:function(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state=$i.IDLE}},{key:"resetStartWhenNotLoaded",value:function(H){if(!this.loadedmetadata){this.startFragRequested=!1;var J=this.levels?this.levels[H].details:null;J!=null&&J.live?(this.startPosition=-1,this.setStartPosition(J,0),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}},{key:"resetWhenMissingContext",value:function(H){var J;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((J=this.levelLastLoaded)!=null?J: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,J,ne,we){var _e=this,Xe,ut=ne.details;if(!ut){this.warn("level.details undefined");return}var ht=Object.keys(H.elementaryStreams).reduce(function(Tr,br){var Kr=H.elementaryStreams[br];if(Kr){var Zr=Kr.endPTS-Kr.startPTS;if(Zr<=0)return _e.warn("Could not parse fragment ".concat(H.sn," ").concat(br," duration reliably (").concat(Zr,")")),Tr||!1;var Pn=we?0:Kn(ut,H,Kr.startPTS,Kr.endPTS,Kr.startDTS,Kr.endDTS);return _e.hls.trigger(_.LEVEL_PTS_UPDATED,{details:ut,level:ne,drift:Pn,type:br,frag:H,start:Kr.startPTS,end:Kr.endPTS}),!0}return Tr},!1);if(ht)ne.fragmentError=0;else if(((Xe=this.transmuxer)==null?void 0:Xe.error)===null){var Qt=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(Qt.message),this.hls.trigger(_.ERROR,{type:F.MEDIA_ERROR,details:R.FRAG_PARSING_ERROR,fatal:!1,error:Qt,frag:H,reason:"Found no media in msn ".concat(H.sn,' of level "').concat(ne.url,'"')}),!this.hls)return;this.resetTransmuxer()}this.state=$i.PARSED,this.hls.trigger(_.FRAG_PARSED,{frag:H,part:J})}},{key:"resetTransmuxer",value:function(){this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null)}},{key:"recoverWorkerError",value:function(H){if(H.event==="demuxerWorker"){var J,ne,we;this.fragmentTracker.removeAllFragments(),this.resetTransmuxer(),this.resetStartWhenNotLoaded((J=(ne=this.levelLastLoaded)!=null?ne:(we=this.fragCurrent)==null?void 0:we.level)!=null?J:0),this.resetLoadingState()}}},{key:"state",get:function(){return this._state},set:function(H){var J=this._state;J!==H&&(this._state=H,this.log("".concat(J,"->").concat(H)))}}]),L}(Gi);function Eo(){return self.SourceBuffer||self.WebKitSourceBuffer}function ao(){var ve=Ir();if(!ve)return!1;var q=Eo(),L=ve&&typeof ve.isTypeSupported=="function"&&ve.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),K=!q||q.prototype&&typeof q.prototype.appendBuffer=="function"&&typeof q.prototype.remove=="function";return!!L&&!!K}function Co(){var ve,q=Eo();return typeof(q==null||(ve=q.prototype)==null?void 0:ve.changeType)=="function"}function Ko(){return typeof __HLS_WORKER_BUNDLE__=="function"}function to(){var ve=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"}),q=self.URL.createObjectURL(ve),L=new self.Worker(q);return{worker:L,objectURL:q}}function Qo(ve){var q=new self.URL(ve,self.location.href).href,L=new self.Worker(q);return{worker:L,scriptURL:q}}function bo(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:9e4;return{type:ve,id:-1,pid:-1,inputTimeScale:q,sequenceNumber:-1,samples:[],dropped:0}}var xo=function(){function ve(){Object(r.a)(this,ve),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)(ve,[{key:"resetInitSegment",value:function(L,K,H,J){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,K){return!1}},{key:"appendFrame",value:function(L,K,H){}},{key:"demux",value:function(L,K){this.cachedData&&(L=Me(this.cachedData,L),this.cachedData=null);var H=ft(L,0),J=H?H.length:0,ne,we=this._audioTrack,_e=this._id3Track,Xe=H?Ht(H):void 0,ut=L.length;for((this.basePTS===null||this.frameIndex===0&&E(Xe))&&(this.basePTS=ts(Xe,K,this.initPTS),this.lastPTS=this.basePTS),this.lastPTS===null&&(this.lastPTS=this.basePTS),H&&H.length>0&&_e.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:H,type:fi.audioId3,duration:Number.POSITIVE_INFINITY});J<ut;){if(this.canParse(L,J)){var ht=this.appendFrame(we,L,J);ht?(this.frameIndex++,this.lastPTS=ht.sample.pts,J+=ht.length,ne=J):J=ut}else wt(L,J)?(H=ft(L,J),_e.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:H,type:fi.audioId3,duration:Number.POSITIVE_INFINITY}),J+=H.length,ne=J):J++;if(J===ut&&ne!==ut){var Qt=pt(L,ne);this.cachedData?this.cachedData=Me(this.cachedData,Qt):this.cachedData=Qt}}return{audioTrack:we,videoTrack:bo(),id3Track:_e,textTrack:bo()}}},{key:"demuxSampleAes",value:function(L,K,H){return Promise.reject(new Error("[".concat(this,"] This demuxer does not support Sample-AES decryption")))}},{key:"flush",value:function(L){var K=this.cachedData;return K&&(this.cachedData=null,this.demux(K,0)),{audioTrack:this._audioTrack,videoTrack:bo(),id3Track:this._id3Track,textTrack:bo()}}},{key:"destroy",value:function(){}}]),ve}(),ts=function(q,L,K){if(E(q))return q*90;var H=K?K.baseTime*9e4/K.timescale:0;return L*9e4+H};function ka(ve,q,L,K){var H,J,ne,we,_e=navigator.userAgent.toLowerCase(),Xe=K,ut=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];H=((q[L+2]&192)>>>6)+1;var ht=(q[L+2]&60)>>>2;if(ht>ut.length-1){ve.trigger(_.ERROR,{type:F.MEDIA_ERROR,details:R.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:".concat(ht)});return}return ne=(q[L+2]&1)<<2,ne|=(q[L+3]&192)>>>6,U.log("manifest codec:".concat(K,", ADTS type:").concat(H,", samplingIndex:").concat(ht)),/firefox/i.test(_e)?ht>=6?(H=5,we=new Array(4),J=ht-3):(H=2,we=new Array(2),J=ht):_e.indexOf("android")!==-1?(H=2,we=new Array(2),J=ht):(H=5,we=new Array(4),K&&(K.indexOf("mp4a.40.29")!==-1||K.indexOf("mp4a.40.5")!==-1)||!K&&ht>=6?J=ht-3:((K&&K.indexOf("mp4a.40.2")!==-1&&(ht>=6&&ne===1||/vivaldi/i.test(_e))||!K&&ne===1)&&(H=2,we=new Array(2)),J=ht)),we[0]=H<<3,we[0]|=(ht&14)>>1,we[1]|=(ht&1)<<7,we[1]|=ne<<3,H===5&&(we[1]|=(J&14)>>1,we[2]=(J&1)<<7,we[2]|=2<<2,we[3]=0),{config:we,samplerate:ut[ht],channelCount:ne,codec:"mp4a.40."+H,manifestCodec:Xe}}function Io(ve,q){return ve[q]===255&&(ve[q+1]&246)===240}function Mo(ve,q){return ve[q+1]&1?7:9}function is(ve,q){return(ve[q+3]&3)<<11|ve[q+4]<<3|(ve[q+5]&224)>>>5}function To(ve,q){return q+5<ve.length}function Zo(ve,q){return q+1<ve.length&&Io(ve,q)}function Vo(ve,q){return To(ve,q)&&Io(ve,q)&&is(ve,q)<=ve.length-q}function Lo(ve,q){if(Zo(ve,q)){var L=Mo(ve,q);if(q+L>=ve.length)return!1;var K=is(ve,q);if(K<=L)return!1;var H=q+K;return H===ve.length||Zo(ve,H)}return!1}function ho(ve,q,L,K,H){if(!ve.samplerate){var J=ka(q,L,K,H);if(!J)return;ve.config=J.config,ve.samplerate=J.samplerate,ve.channelCount=J.channelCount,ve.codec=J.codec,ve.manifestCodec=J.manifestCodec,U.log("parsed codec:".concat(ve.codec,", rate:").concat(J.samplerate,", channels:").concat(J.channelCount))}}function ja(ve){return 1024*9e4/ve}function mt(ve,q){var L=Mo(ve,q);if(q+L<=ve.length){var K=is(ve,q)-L;if(K>0)return{headerLength:L,frameLength:K}}}function Cr(ve,q,L,K,H){var J=ja(ve.samplerate),ne=K+H*J,we=mt(q,L),_e;if(we){var Xe=we.frameLength,ut=we.headerLength,ht=ut+Xe,Qt=Math.max(0,L+ht-q.length);Qt?(_e=new Uint8Array(ht-ut),_e.set(q.subarray(L+ut,q.length),0)):_e=q.subarray(L+ut,L+ht);var Tr={unit:_e,pts:ne};return Qt||ve.samples.push(Tr),{sample:Tr,length:ht,missing:Qt}}var br=q.length-L;_e=new Uint8Array(br),_e.set(q.subarray(L,q.length),0);var Kr={unit:_e,pts:ne};return{sample:Kr,length:br,missing:-1}}var tn=function(ve){Object(a.a)(L,ve);var q=Object(e.a)(L);function L(K,H){var J;return Object(r.a)(this,L),J=q.call(this),J.observer=void 0,J.config=void 0,J.observer=K,J.config=H,J}return Object(s.a)(L,[{key:"resetInitSegment",value:function(H,J,ne,we){Object(t.a)(Object(m.a)(L.prototype),"resetInitSegment",this).call(this,H,J,ne,we),this._audioTrack={container:"audio/adts",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"aac",samples:[],manifestCodec:J,duration:we,inputTimeScale:9e4,dropped:0}}},{key:"canParse",value:function(H,J){return Vo(H,J)}},{key:"appendFrame",value:function(H,J,ne){ho(H,this.observer,J,ne,H.manifestCodec);var we=Cr(H,J,ne,this.basePTS,this.frameIndex);if(we&&we.missing===0)return we}}],[{key:"probe",value:function(H){if(!H)return!1;for(var J=ft(H,0)||[],ne=J.length,we=H.length;ne<we;ne++)if(Lo(H,ne))return U.log("ADTS sync word found !"),!0;return!1}}]),L}(xo),Yr=/\/emsg[-/]ID3/i,Xn=function(){function ve(q,L){Object(r.a)(this,ve),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)(ve,[{key:"resetTimeStamp",value:function(){}},{key:"resetInitSegment",value:function(L,K,H,J){var ne=this.videoTrack=bo("video",1),we=this.audioTrack=bo("audio",1),_e=this.txtTrack=bo("text",1);if(this.id3Track=bo("id3",1),this.timeOffset=0,!(L!=null&&L.byteLength))return;var Xe=Yn(L);if(Xe.video){var ut=Xe.video,ht=ut.id,Qt=ut.timescale,Tr=ut.codec;ne.id=ht,ne.timescale=_e.timescale=Qt,ne.codec=Tr}if(Xe.audio){var br=Xe.audio,Kr=br.id,Zr=br.timescale,Pn=br.codec;we.id=Kr,we.timescale=Zr,we.codec=Pn}_e.id=cn.text,ne.sampleDuration=0,ne.duration=we.duration=J}},{key:"resetContiguity",value:function(){this.remainderData=null}},{key:"demux",value:function(L,K){this.timeOffset=K;var H=L,J=this.videoTrack,ne=this.txtTrack;if(this.config.progressive){this.remainderData&&(H=Me(this.remainderData,L));var we=ke(H);this.remainderData=we.remainder,J.samples=we.valid||new Uint8Array}else J.samples=H;var _e=this.extractID3Track(J,K);return ne.samples=Be(K,J),{videoTrack:J,audioTrack:this.audioTrack,id3Track:_e,textTrack:this.txtTrack}}},{key:"flush",value:function(){var L=this.timeOffset,K=this.videoTrack,H=this.txtTrack;K.samples=this.remainderData||new Uint8Array,this.remainderData=null;var J=this.extractID3Track(K,this.timeOffset);return H.samples=Be(L,K),{videoTrack:K,audioTrack:bo(),id3Track:J,textTrack:bo()}}},{key:"extractID3Track",value:function(L,K){var H=this.id3Track;if(L.samples.length){var J=en(L.samples,["emsg"]);J&&J.forEach(function(ne){var we=Pr(ne);if(Yr.test(we.schemeIdUri)){var _e=E(we.presentationTime)?we.presentationTime/we.timeScale:K+we.presentationTimeDelta/we.timeScale,Xe=we.eventDuration===4294967295?Number.POSITIVE_INFINITY:we.eventDuration/we.timeScale;Xe<=.001&&(Xe=Number.POSITIVE_INFINITY);var ut=we.payload;H.samples.push({data:ut,len:ut.byteLength,dts:_e,pts:_e,type:fi.emsg,duration:Xe})}})}return H}},{key:"demuxSampleAes",value:function(L,K,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,en(L,["moof"]).length>0}}]),ve}(),hn=null,Xr=[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],ni=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],nn=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],Wn=[0,1,1,4];function si(ve,q,L,K,H){if(L+24>q.length)return;var J=ui(q,L);if(J&&L+J.frameLength<=q.length){var ne=J.samplesPerFrame*9e4/J.sampleRate,we=K+H*ne,_e={unit:q.subarray(L,L+J.frameLength),pts:we,dts:we};return ve.config=[],ve.channelCount=J.channelCount,ve.samplerate=J.sampleRate,ve.samples.push(_e),{sample:_e,length:J.frameLength,missing:0}}}function ui(ve,q){var L=ve[q+1]>>3&3,K=ve[q+1]>>1&3,H=ve[q+2]>>4&15,J=ve[q+2]>>2&3;if(L!==1&&H!==0&&H!==15&&J!==3){var ne=ve[q+2]>>1&1,we=ve[q+3]>>6,_e=L===3?3-K:K===3?3:4,Xe=Xr[_e*14+H-1]*1e3,ut=L===3?0:L===2?1:2,ht=ni[ut*3+J],Qt=we===3?1:2,Tr=nn[L][K],br=Wn[K],Kr=Tr*8*br,Zr=Math.floor(Tr*Xe/ht+ne)*br;if(hn===null){var Pn=navigator.userAgent||"",Nn=Pn.match(/Chrome\/(\d+)/i);hn=Nn?parseInt(Nn[1]):0}var Jn=!!hn&&hn<=87;return Jn&&K===2&&Xe>=224e3&&we===0&&(ve[q+3]=ve[q+3]|128),{sampleRate:ht,channelCount:Qt,frameLength:Zr,samplesPerFrame:Kr}}}function ai(ve,q){return ve[q]===255&&(ve[q+1]&224)===224&&(ve[q+1]&6)!==0}function Ei(ve,q){return q+1<ve.length&&ai(ve,q)}function gi(ve,q){var L=4;return ai(ve,q)&&L<=ve.length-q}function Ti(ve,q){if(q+1<ve.length&&ai(ve,q)){var L=4,K=ui(ve,q),H=L;K!=null&&K.frameLength&&(H=K.frameLength);var J=q+H;return J===ve.length||Ei(ve,J)}return!1}var _i=function(){function ve(q){Object(r.a)(this,ve),this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=q,this.bytesAvailable=q.byteLength,this.word=0,this.bitsAvailable=0}return Object(s.a)(ve,[{key:"loadWord",value:function(){var L=this.data,K=this.bytesAvailable,H=L.byteLength-K,J=new Uint8Array(4),ne=Math.min(4,K);if(ne===0)throw new Error("no bytes available");J.set(L.subarray(H,H+ne)),this.word=new DataView(J.buffer).getUint32(0),this.bitsAvailable=ne*8,this.bytesAvailable-=ne}},{key:"skipBits",value:function(L){var K;L=Math.min(L,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>L?(this.word<<=L,this.bitsAvailable-=L):(L-=this.bitsAvailable,K=L>>3,L-=K<<3,this.bytesAvailable-=K,this.loadWord(),this.word<<=L,this.bitsAvailable-=L)}},{key:"readBits",value:function(L){var K=Math.min(this.bitsAvailable,L),H=this.word>>>32-K;if(L>32&&U.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=K,this.bitsAvailable>0)this.word<<=K;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return K=L-K,K>0&&this.bitsAvailable?H<<K|this.readBits(K):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 K=8,H=8,J,ne=0;ne<L;ne++)H!==0&&(J=this.readEG(),H=(K+J+256)%256),K=H===0?K:H}},{key:"readSPS",value:function(){var L=0,K=0,H=0,J=0,ne,we,_e,Xe=this.readUByte.bind(this),ut=this.readBits.bind(this),ht=this.readUEG.bind(this),Qt=this.readBoolean.bind(this),Tr=this.skipBits.bind(this),br=this.skipEG.bind(this),Kr=this.skipUEG.bind(this),Zr=this.skipScalingList.bind(this);Xe();var Pn=Xe();if(ut(5),Tr(3),Xe(),Kr(),Pn===100||Pn===110||Pn===122||Pn===244||Pn===44||Pn===83||Pn===86||Pn===118||Pn===128){var Nn=ht();if(Nn===3&&Tr(1),Kr(),Kr(),Tr(1),Qt())for(we=Nn!==3?8:12,_e=0;_e<we;_e++)Qt()&&(_e<6?Zr(16):Zr(64))}Kr();var Jn=ht();if(Jn===0)ht();else if(Jn===1)for(Tr(1),br(),br(),ne=ht(),_e=0;_e<ne;_e++)br();Kr(),Tr(1);var wi=ht(),sa=ht(),Wi=ut(1);Wi===0&&Tr(1),Tr(1),Qt()&&(L=ht(),K=ht(),H=ht(),J=ht());var Ji=[1,1];if(Qt()&&Qt()){var La=Xe();switch(La){case 1:Ji=[1,1];break;case 2:Ji=[12,11];break;case 3:Ji=[10,11];break;case 4:Ji=[16,11];break;case 5:Ji=[40,33];break;case 6:Ji=[24,11];break;case 7:Ji=[20,11];break;case 8:Ji=[32,11];break;case 9:Ji=[80,33];break;case 10:Ji=[18,11];break;case 11:Ji=[15,11];break;case 12:Ji=[64,33];break;case 13:Ji=[160,99];break;case 14:Ji=[4,3];break;case 15:Ji=[3,2];break;case 16:Ji=[2,1];break;case 255:{Ji=[Xe()<<8|Xe(),Xe()<<8|Xe()];break}}}return{width:Math.ceil((wi+1)*16-L*2-K*2),height:(2-Wi)*(sa+1)*16-(Wi?2:4)*(H+J),pixelRatio:Ji}}},{key:"readSliceType",value:function(){return this.readUByte(),this.readUEG(),this.readUEG()}}]),ve}(),ia=function(){function ve(q,L,K){Object(r.a)(this,ve),this.keyData=void 0,this.decrypter=void 0,this.keyData=K,this.decrypter=new io(L,{removePKCS7Padding:!1})}return Object(s.a)(ve,[{key:"decryptBuffer",value:function(L){return this.decrypter.decrypt(L,this.keyData.key.buffer,this.keyData.iv.buffer)}},{key:"decryptAacSample",value:function(L,K,H){var J=this,ne=L[K].unit;if(ne.length<=16)return;var we=ne.subarray(16,ne.length-ne.length%16),_e=we.buffer.slice(we.byteOffset,we.byteOffset+we.length);this.decryptBuffer(_e).then(function(Xe){var ut=new Uint8Array(Xe);ne.set(ut,16),J.decrypter.isSync()||J.decryptAacSamples(L,K+1,H)})}},{key:"decryptAacSamples",value:function(L,K,H){for(;;K++){if(K>=L.length){H();return}if(L[K].unit.length<32)continue;if(this.decryptAacSample(L,K,H),!this.decrypter.isSync())return}}},{key:"getAvcEncryptedData",value:function(L){for(var K=Math.floor((L.length-48)/160)*16+16,H=new Int8Array(K),J=0,ne=32;ne<L.length-16;ne+=160,J+=16)H.set(L.subarray(ne,ne+16),J);return H}},{key:"getAvcDecryptedUnit",value:function(L,K){for(var H=new Uint8Array(K),J=0,ne=32;ne<L.length-16;ne+=160,J+=16)L.set(H.subarray(J,J+16),ne);return L}},{key:"decryptAvcSample",value:function(L,K,H,J,ne){var we=this,_e=Yt(ne.data),Xe=this.getAvcEncryptedData(_e);this.decryptBuffer(Xe.buffer).then(function(ut){ne.data=we.getAvcDecryptedUnit(_e,ut),we.decrypter.isSync()||we.decryptAvcSamples(L,K,H+1,J)})}},{key:"decryptAvcSamples",value:function(L,K,H,J){if(L instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;K++,H=0){if(K>=L.length){J();return}for(var ne=L[K].units;!(H>=ne.length);H++){var we=ne[H];if(we.data.length<=48||we.type!==1&&we.type!==5)continue;if(this.decryptAvcSample(L,K,H,J,we),!this.decrypter.isSync())return}}}}]),ve}(),Fi=188,fa=function(){function ve(q,L,K){Object(r.a)(this,ve),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=q,this.config=L,this.typeSupported=K}return Object(s.a)(ve,[{key:"resetInitSegment",value:function(L,K,H,J){this.pmtParsed=!1,this._pmtId=-1,this._avcTrack=ve.createTrack("video"),this._audioTrack=ve.createTrack("audio",J),this._id3Track=ve.createTrack("id3"),this._txtTrack=ve.createTrack("text"),this._audioTrack.segmentCodec="aac",this.aacOverFlow=null,this.avcSample=null,this.remainderData=null,this.audioCodec=K,this.videoCodec=H,this._duration=J}},{key:"resetTimeStamp",value:function(){}},{key:"resetContiguity",value:function(){var L=this._audioTrack,K=this._avcTrack,H=this._id3Track;L&&(L.pesData=null),K&&(K.pesData=null),H&&(H.pesData=null),this.aacOverFlow=null,this.avcSample=null,this.remainderData=null}},{key:"demux",value:function(L,K){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,J=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;H||(this.sampleAes=null);var ne,we=this._avcTrack,_e=this._audioTrack,Xe=this._id3Track,ut=this._txtTrack,ht=we.pid,Qt=we.pesData,Tr=_e.pid,br=Xe.pid,Kr=_e.pesData,Zr=Xe.pesData,Pn=null,Nn=this.pmtParsed,Jn=this._pmtId,wi=L.length;if(this.remainderData&&(L=Me(this.remainderData,L),wi=L.length,this.remainderData=null),wi<Fi&&!J)return this.remainderData=L,{audioTrack:_e,videoTrack:we,id3Track:Xe,textTrack:ut};var sa=Math.max(0,ve.syncOffset(L));wi-=(wi-sa)%Fi,wi<L.byteLength&&!J&&(this.remainderData=new Uint8Array(L.buffer,wi,L.buffer.byteLength-wi));for(var Wi=0,Ji=sa;Ji<wi;Ji+=Fi)if(L[Ji]===71){var La=!!(L[Ji+1]&64),Xa=Ca(L,Ji),Ua=(L[Ji+3]&48)>>4,ba=void 0;if(Ua>1){if(ba=Ji+5+L[Ji+4],ba===Ji+Fi)continue}else ba=Ji+4;switch(Xa){case ht:La&&(Qt&&(ne=Pa(Qt))&&this.parseAVCPES(we,ut,ne,!1),Qt={data:[],size:0}),Qt&&(Qt.data.push(L.subarray(ba,Ji+Fi)),Qt.size+=Ji+Fi-ba);break;case Tr:if(La){if(Kr&&(ne=Pa(Kr)))switch(_e.segmentCodec){case"aac":this.parseAACPES(_e,ne);break;case"mp3":this.parseMPEGPES(_e,ne);break}Kr={data:[],size:0}}Kr&&(Kr.data.push(L.subarray(ba,Ji+Fi)),Kr.size+=Ji+Fi-ba);break;case br:La&&(Zr&&(ne=Pa(Zr))&&this.parseID3PES(Xe,ne),Zr={data:[],size:0}),Zr&&(Zr.data.push(L.subarray(ba,Ji+Fi)),Zr.size+=Ji+Fi-ba);break;case 0:La&&(ba+=L[ba]+1),Jn=this._pmtId=xa(L,ba);break;case Jn:{La&&(ba+=L[ba]+1);var _o=Ma(L,ba,this.typeSupported,H);ht=_o.avc,ht>0&&(we.pid=ht),Tr=_o.audio,Tr>0&&(_e.pid=Tr,_e.segmentCodec=_o.segmentCodec),br=_o.id3,br>0&&(Xe.pid=br),Pn!==null&&!Nn&&(U.warn("MPEG-TS PMT found at ".concat(Ji," after unknown PID '").concat(Pn,"'. Backtracking to sync byte @").concat(sa," to parse all TS packets.")),Pn=null,Ji=sa-188),Nn=this.pmtParsed=!0;break}case 17:case 8191:break;default:Pn=Xa;break}}else Wi++;if(Wi>0){var bs=new Error("Found ".concat(Wi," TS packet/s that do not start with 0x47"));this.observer.emit(_.ERROR,_.ERROR,{type:F.MEDIA_ERROR,details:R.FRAG_PARSING_ERROR,fatal:!1,error:bs,reason:bs.message})}we.pesData=Qt,_e.pesData=Kr,Xe.pesData=Zr;var ds={audioTrack:_e,videoTrack:we,id3Track:Xe,textTrack:ut};return J&&this.extractRemainingSamples(ds),ds}},{key:"flush",value:function(){var L=this.remainderData;this.remainderData=null;var K;return L?K=this.demux(L,-1,!1,!0):K={videoTrack:this._avcTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(K),this.sampleAes?this.decrypt(K,this.sampleAes):K}},{key:"extractRemainingSamples",value:function(L){var K=L.audioTrack,H=L.videoTrack,J=L.id3Track,ne=L.textTrack,we=H.pesData,_e=K.pesData,Xe=J.pesData,ut;if(we&&(ut=Pa(we))?(this.parseAVCPES(H,ne,ut,!0),H.pesData=null):H.pesData=we,_e&&(ut=Pa(_e))){switch(K.segmentCodec){case"aac":this.parseAACPES(K,ut);break;case"mp3":this.parseMPEGPES(K,ut);break}K.pesData=null}else _e!=null&&_e.size&&U.log("last AAC PES packet truncated,might overlap between fragments"),K.pesData=_e;Xe&&(ut=Pa(Xe))?(this.parseID3PES(J,ut),J.pesData=null):J.pesData=Xe}},{key:"demuxSampleAes",value:function(L,K,H){var J=this.demux(L,H,!0,!this.config.progressive),ne=this.sampleAes=new ia(this.observer,this.config,K);return this.decrypt(J,ne)}},{key:"decrypt",value:function(L,K){return new Promise(function(H){var J=L.audioTrack,ne=L.videoTrack;J.samples&&J.segmentCodec==="aac"?K.decryptAacSamples(J.samples,0,function(){ne.samples?K.decryptAvcSamples(ne.samples,0,0,function(){H(L)}):H(L)}):ne.samples&&K.decryptAvcSamples(ne.samples,0,0,function(){H(L)})})}},{key:"destroy",value:function(){this._duration=0}},{key:"parseAVCPES",value:function(L,K,H,J){var ne=this,we=this.parseAVCNALu(L,H.data),_e=this.avcSample,Xe,ut=!1;H.data=null,_e&&we.length&&!L.audFound&&(Wo(_e,L),_e=this.avcSample=za(!1,H.pts,H.dts,"")),we.forEach(function(ht){var Qt;switch(ht.type){case 1:{var Tr=!1;Xe=!0;var br=ht.data;if(ut&&br.length>4){var Kr=new _i(br).readSliceType();(Kr===2||Kr===4||Kr===7||Kr===9)&&(Tr=!0)}if(Tr){var Zr;(Zr=_e)!=null&&Zr.frame&&!_e.key&&(Wo(_e,L),_e=ne.avcSample=null)}_e||(_e=ne.avcSample=za(!0,H.pts,H.dts,"")),_e.frame=!0,_e.key=Tr;break}case 5:Xe=!0,(Qt=_e)!=null&&Qt.frame&&!_e.key&&(Wo(_e,L),_e=ne.avcSample=null),_e||(_e=ne.avcSample=za(!0,H.pts,H.dts,"")),_e.key=!0,_e.frame=!0;break;case 6:{Xe=!0,Ct(ht.data,1,H.pts,K.samples);break}case 7:if(Xe=!0,ut=!0,!L.sps){var Pn=ht.data,Nn=new _i(Pn),Jn=Nn.readSPS();L.width=Jn.width,L.height=Jn.height,L.pixelRatio=Jn.pixelRatio,L.sps=[Pn],L.duration=ne._duration;for(var wi=Pn.subarray(1,4),sa="avc1.",Wi=0;Wi<3;Wi++){var Ji=wi[Wi].toString(16);Ji.length<2&&(Ji="0"+Ji),sa+=Ji}L.codec=sa}break;case 8:Xe=!0,L.pps||(L.pps=[ht.data]);break;case 9:Xe=!1,L.audFound=!0,_e&&Wo(_e,L),_e=ne.avcSample=za(!1,H.pts,H.dts,"");break;case 12:Xe=!0;break;default:Xe=!1,_e&&(_e.debug+="unknown NAL "+ht.type+" ");break}if(_e&&Xe){var La=_e.units;La.push(ht)}}),J&&_e&&(Wo(_e,L),this.avcSample=null)}},{key:"getLastNalUnit",value:function(L){var K,H=this.avcSample,J;if((!H||H.units.length===0)&&(H=L[L.length-1]),(K=H)!=null&&K.units){var ne=H.units;J=ne[ne.length-1]}return J}},{key:"parseAVCNALu",value:function(L,K){var H=K.byteLength,J=L.naluState||0,ne=J,we=[],_e=0,Xe,ut,ht,Qt=-1,Tr=0;for(J===-1&&(Qt=0,Tr=K[0]&31,J=0,_e=1);_e<H;){if(Xe=K[_e++],!J){J=Xe?0:1;continue}if(J===1){J=Xe?0:2;continue}if(!Xe)J=3;else if(Xe===1){if(Qt>=0){var br={data:K.subarray(Qt,_e-J-1),type:Tr};we.push(br)}else{var Kr=this.getLastNalUnit(L.samples);if(Kr&&(ne&&_e<=4-ne&&(Kr.state&&(Kr.data=Kr.data.subarray(0,Kr.data.byteLength-ne))),ut=_e-J-1,ut>0)){var Zr=new Uint8Array(Kr.data.byteLength+ut);Zr.set(Kr.data,0),Zr.set(K.subarray(0,ut),Kr.data.byteLength),Kr.data=Zr,Kr.state=0}}_e<H?(ht=K[_e]&31,Qt=_e,Tr=ht,J=0):J=-1}else J=0}if(Qt>=0&&J>=0){var Pn={data:K.subarray(Qt,H),type:Tr,state:J};we.push(Pn)}if(we.length===0){var Nn=this.getLastNalUnit(L.samples);if(Nn){var Jn=new Uint8Array(Nn.data.byteLength+K.byteLength);Jn.set(Nn.data,0),Jn.set(K,Nn.data.byteLength),Nn.data=Jn}}return L.naluState=J,we}},{key:"parseAACPES",value:function(L,K){var H=0,J=this.aacOverFlow,ne=K.data;if(J){this.aacOverFlow=null;var we=J.missing,_e=J.sample.unit.byteLength;if(we===-1){var Xe=new Uint8Array(_e+ne.byteLength);Xe.set(J.sample.unit,0),Xe.set(ne,_e),ne=Xe}else{var ut=_e-we;J.sample.unit.set(ne.subarray(0,we),ut),L.samples.push(J.sample),H=J.missing}}var ht,Qt;for(ht=H,Qt=ne.length;ht<Qt-1&&!Zo(ne,ht);ht++);if(ht!==H){var Tr,br=ht<Qt-1;br?Tr="AAC PES did not start with ADTS header,offset:".concat(ht):Tr="No ADTS header found in AAC PES";var Kr=new Error(Tr);if(U.warn("parsing error: ".concat(Tr)),this.observer.emit(_.ERROR,_.ERROR,{type:F.MEDIA_ERROR,details:R.FRAG_PARSING_ERROR,fatal:!1,levelRetry:br,error:Kr,reason:Tr}),!br)return}ho(L,this.observer,ne,ht,this.audioCodec);var Zr;if(K.pts!==void 0)Zr=K.pts;else if(J){var Pn=ja(L.samplerate);Zr=J.sample.pts+Pn}else{U.warn("[tsdemuxer]: AAC PES unknown PTS");return}for(var Nn=0,Jn;ht<Qt;)if(Jn=Cr(L,ne,ht,Zr,Nn),ht+=Jn.length,Jn.missing){this.aacOverFlow=Jn;break}else for(Nn++;ht<Qt-1&&!Zo(ne,ht);ht++);}},{key:"parseMPEGPES",value:function(L,K){var H=K.data,J=H.length,ne=0,we=0,_e=K.pts;if(_e===void 0){U.warn("[tsdemuxer]: MPEG PES unknown PTS");return}for(;we<J;)if(Ei(H,we)){var Xe=si(L,H,we,_e,ne);if(Xe)we+=Xe.length,ne++;else break}else we++}},{key:"parseID3PES",value:function(L,K){if(K.pts===void 0){U.warn("[tsdemuxer]: ID3 PES unknown PTS");return}var H=x({},K,{type:this._avcTrack?fi.emsg:fi.audioId3,duration:Number.POSITIVE_INFINITY});L.samples.push(H)}}],[{key:"probe",value:function(L){var K=ve.syncOffset(L);return K>0&&U.warn("MPEG2-TS detected but first sync word found @ offset ".concat(K)),K!==-1}},{key:"syncOffset",value:function(L){for(var K=L.length,H=Math.min(Fi*5,L.length-Fi)+1,J=0;J<H;){for(var ne=!1,we=-1,_e=0,Xe=J;Xe<K;Xe+=Fi)if(L[Xe]===71){if(_e++,we===-1&&(we=Xe,we!==0&&(H=Math.min(we+Fi*99,L.length-Fi)+1)),ne||(ne=Ca(L,Xe)===0),ne&&_e>1&&(we===0&&_e>2||Xe+Fi>H))return we}else{if(_e)return-1;break}J++}return-1}},{key:"createTrack",value:function(L,K){return{container:L==="video"||L==="audio"?"video/mp2t":void 0,type:L,id:cn[L],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:L==="audio"?K:void 0}}}]),ve}();function za(ve,q,L,K){return{key:ve,frame:!1,pts:q,dts:L,units:[],debug:K,length:0}}function Ca(ve,q){return((ve[q+1]&31)<<8)+ve[q+2]}function xa(ve,q){return(ve[q+10]&31)<<8|ve[q+11]}function Ma(ve,q,L,K){var H={audio:-1,avc:-1,id3:-1,segmentCodec:"aac"},J=(ve[q+1]&15)<<8|ve[q+2],ne=q+3+J-4,we=(ve[q+10]&15)<<8|ve[q+11];for(q+=12+we;q<ne;){var _e=Ca(ve,q);switch(ve[q]){case 207:if(!K){U.log("ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:H.audio===-1&&(H.audio=_e);break;case 21:H.id3===-1&&(H.id3=_e);break;case 219:if(!K){U.log("H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:H.avc===-1&&(H.avc=_e);break;case 3:case 4:L.mpeg!==!0&&L.mp3!==!0?U.log("MPEG audio found, not supported in this browser"):H.audio===-1&&(H.audio=_e,H.segmentCodec="mp3");break;case 36:U.warn("Unsupported HEVC stream type found");break}q+=((ve[q+3]&15)<<8|ve[q+4])+5}return H}function Pa(ve){var q=0,L,K,H,J,ne,we=ve.data;if(!ve||ve.size===0)return null;for(;we[0].length<19&&we.length>1;){var _e=new Uint8Array(we[0].length+we[1].length);_e.set(we[0]),_e.set(we[1],we[0].length),we[0]=_e,we.splice(1,1)}L=we[0];var Xe=(L[0]<<16)+(L[1]<<8)+L[2];if(Xe===1){if(K=(L[4]<<8)+L[5],K&&K>ve.size-6)return null;var ut=L[7];ut&192&&(J=(L[9]&14)*536870912+(L[10]&255)*4194304+(L[11]&254)*16384+(L[12]&255)*128+(L[13]&254)/2,ut&64?(ne=(L[14]&14)*536870912+(L[15]&255)*4194304+(L[16]&254)*16384+(L[17]&255)*128+(L[18]&254)/2,J-ne>60*9e4&&(U.warn("".concat(Math.round((J-ne)/9e4),"s delta between PTS and DTS, align them")),J=ne)):ne=J),H=L[8];var ht=H+9;if(ve.size<=ht)return null;ve.size-=ht;for(var Qt=new Uint8Array(ve.size),Tr=0,br=we.length;Tr<br;Tr++){L=we[Tr];var Kr=L.byteLength;if(ht)if(ht>Kr){ht-=Kr;continue}else L=L.subarray(ht),Kr-=ht,ht=0;Qt.set(L,q),q+=Kr}return K&&(K-=H+3),{data:Qt,pts:J,dts:ne,len:K}}return null}function Wo(ve,q){if(ve.units.length&&ve.frame){if(ve.pts===void 0){var L=q.samples,K=L.length;if(K){var H=L[K-1];ve.pts=H.pts,ve.dts=H.dts}else{q.dropped++;return}}q.samples.push(ve)}ve.debug.length&&U.log(ve.pts+"/"+ve.dts+":"+ve.debug)}var Oo=function(ve){Object(a.a)(L,ve);var q=Object(e.a)(L);function L(){return Object(r.a)(this,L),q.apply(this,arguments)}return Object(s.a)(L,[{key:"resetInitSegment",value:function(H,J,ne,we){Object(t.a)(Object(m.a)(L.prototype),"resetInitSegment",this).call(this,H,J,ne,we),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:J,duration:we,inputTimeScale:9e4,dropped:0}}},{key:"canParse",value:function(H,J){return gi(H,J)}},{key:"appendFrame",value:function(H,J,ne){return this.basePTS===null?void 0:si(H,J,ne,this.basePTS,this.frameIndex)}}],[{key:"probe",value:function(H){if(!H)return!1;for(var J=ft(H,0)||[],ne=J.length,we=H.length;ne<we;ne++)if(Ti(H,ne))return U.log("MPEG Audio sync word found !"),!0;return!1}}]),L}(xo),pa=function(){function ve(){Object(r.a)(this,ve)}return Object(s.a)(ve,null,[{key:"getSilentFrame",value:function(L,K){switch(L){case"mp4a.40.2":if(K===1)return new Uint8Array([0,200,0,128,35,128]);if(K===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(K===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(K===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(K===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(K===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(K===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(K===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(K===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}}]),ve}(),Sa=Math.pow(2,32)-1,Ea=function(){function ve(){Object(r.a)(this,ve)}return Object(s.a)(ve,null,[{key:"init",value:function(){ve.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 ve.types)ve.types.hasOwnProperty(L)&&(ve.types[L]=[L.charCodeAt(0),L.charCodeAt(1),L.charCodeAt(2),L.charCodeAt(3)]);var K=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]);ve.HDLR_TYPES={video:K,audio:H};var J=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]);ve.STTS=ve.STSC=ve.STCO=ne,ve.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),ve.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),ve.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),ve.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var we=new Uint8Array([105,115,111,109]),_e=new Uint8Array([97,118,99,49]),Xe=new Uint8Array([0,0,0,1]);ve.FTYP=ve.box(ve.types.ftyp,we,Xe,we,_e),ve.DINF=ve.box(ve.types.dinf,ve.box(ve.types.dref,J))}},{key:"box",value:function(L){for(var K=8,H=arguments.length,J=new Array(H>1?H-1:0),ne=1;ne<H;ne++)J[ne-1]=arguments[ne];for(var we=J.length,_e=we;we--;)K+=J[we].byteLength;var Xe=new Uint8Array(K);for(Xe[0]=K>>24&255,Xe[1]=K>>16&255,Xe[2]=K>>8&255,Xe[3]=K&255,Xe.set(L,4),we=0,K=8;we<_e;we++)Xe.set(J[we],K),K+=J[we].byteLength;return Xe}},{key:"hdlr",value:function(L){return ve.box(ve.types.hdlr,ve.HDLR_TYPES[L])}},{key:"mdat",value:function(L){return ve.box(ve.types.mdat,L)}},{key:"mdhd",value:function(L,K){K*=L;var H=Math.floor(K/(Sa+1)),J=Math.floor(K%(Sa+1));return ve.box(ve.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,J>>24,J>>16&255,J>>8&255,J&255,85,196,0,0]))}},{key:"mdia",value:function(L){return ve.box(ve.types.mdia,ve.mdhd(L.timescale,L.duration),ve.hdlr(L.type),ve.minf(L))}},{key:"mfhd",value:function(L){return ve.box(ve.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"?ve.box(ve.types.minf,ve.box(ve.types.smhd,ve.SMHD),ve.DINF,ve.stbl(L)):ve.box(ve.types.minf,ve.box(ve.types.vmhd,ve.VMHD),ve.DINF,ve.stbl(L))}},{key:"moof",value:function(L,K,H){return ve.box(ve.types.moof,ve.mfhd(L),ve.traf(H,K))}},{key:"moov",value:function(L){for(var K=L.length,H=[];K--;)H[K]=ve.trak(L[K]);return ve.box.apply(null,[ve.types.moov,ve.mvhd(L[0].timescale,L[0].duration)].concat(H).concat(ve.mvex(L)))}},{key:"mvex",value:function(L){for(var K=L.length,H=[];K--;)H[K]=ve.trex(L[K]);return ve.box.apply(null,[ve.types.mvex].concat(H))}},{key:"mvhd",value:function(L,K){K*=L;var H=Math.floor(K/(Sa+1)),J=Math.floor(K%(Sa+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,J>>24,J>>16&255,J>>8&255,J&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 ve.box(ve.types.mvhd,ne)}},{key:"sdtp",value:function(L){var K=L.samples||[],H=new Uint8Array(4+K.length),J,ne;for(J=0;J<K.length;J++)ne=K[J].flags,H[J+4]=ne.dependsOn<<4|ne.isDependedOn<<2|ne.hasRedundancy;return ve.box(ve.types.sdtp,H)}},{key:"stbl",value:function(L){return ve.box(ve.types.stbl,ve.stsd(L),ve.box(ve.types.stts,ve.STTS),ve.box(ve.types.stsc,ve.STSC),ve.box(ve.types.stsz,ve.STSZ),ve.box(ve.types.stco,ve.STCO))}},{key:"avc1",value:function(L){var K=[],H=[],J,ne,we;for(J=0;J<L.sps.length;J++)ne=L.sps[J],we=ne.byteLength,K.push(we>>>8&255),K.push(we&255),K=K.concat(Array.prototype.slice.call(ne));for(J=0;J<L.pps.length;J++)ne=L.pps[J],we=ne.byteLength,H.push(we>>>8&255),H.push(we&255),H=H.concat(Array.prototype.slice.call(ne));var _e=ve.box(ve.types.avcC,new Uint8Array([1,K[3],K[4],K[5],252|3,224|L.sps.length].concat(K).concat([L.pps.length]).concat(H))),Xe=L.width,ut=L.height,ht=L.pixelRatio[0],Qt=L.pixelRatio[1];return ve.box(ve.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,Xe>>8&255,Xe&255,ut>>8&255,ut&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]),_e,ve.box(ve.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),ve.box(ve.types.pasp,new Uint8Array([ht>>24,ht>>16&255,ht>>8&255,ht&255,Qt>>24,Qt>>16&255,Qt>>8&255,Qt&255])))}},{key:"esds",value:function(L){var K=L.config.length;return new Uint8Array([0,0,0,0,3,23+K,0,1,0,4,15+K,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([K]).concat(L.config).concat([6,1,2]))}},{key:"mp4a",value:function(L){var K=L.samplerate;return ve.box(ve.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,K>>8&255,K&255,0,0]),ve.box(ve.types.esds,ve.esds(L)))}},{key:"mp3",value:function(L){var K=L.samplerate;return ve.box(ve.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,K>>8&255,K&255,0,0]))}},{key:"stsd",value:function(L){return L.type==="audio"?L.segmentCodec==="mp3"&&L.codec==="mp3"?ve.box(ve.types.stsd,ve.STSD,ve.mp3(L)):ve.box(ve.types.stsd,ve.STSD,ve.mp4a(L)):ve.box(ve.types.stsd,ve.STSD,ve.avc1(L))}},{key:"tkhd",value:function(L){var K=L.id,H=L.duration*L.timescale,J=L.width,ne=L.height,we=Math.floor(H/(Sa+1)),_e=Math.floor(H%(Sa+1));return ve.box(ve.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,K>>24&255,K>>16&255,K>>8&255,K&255,0,0,0,0,we>>24,we>>16&255,we>>8&255,we&255,_e>>24,_e>>16&255,_e>>8&255,_e&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,J>>8&255,J&255,0,0,ne>>8&255,ne&255,0,0]))}},{key:"traf",value:function(L,K){var H=ve.sdtp(L),J=L.id,ne=Math.floor(K/(Sa+1)),we=Math.floor(K%(Sa+1));return ve.box(ve.types.traf,ve.box(ve.types.tfhd,new Uint8Array([0,0,0,0,J>>24,J>>16&255,J>>8&255,J&255])),ve.box(ve.types.tfdt,new Uint8Array([1,0,0,0,ne>>24,ne>>16&255,ne>>8&255,ne&255,we>>24,we>>16&255,we>>8&255,we&255])),ve.trun(L,H.length+16+20+8+16+8+8),H)}},{key:"trak",value:function(L){return L.duration=L.duration||4294967295,ve.box(ve.types.trak,ve.tkhd(L),ve.mdia(L))}},{key:"trex",value:function(L){var K=L.id;return ve.box(ve.types.trex,new Uint8Array([0,0,0,0,K>>24,K>>16&255,K>>8&255,K&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}},{key:"trun",value:function(L,K){var H=L.samples||[],J=H.length,ne=12+16*J,we=new Uint8Array(ne),_e,Xe,ut,ht,Qt,Tr;for(K+=8+ne,we.set([L.type==="video"?1:0,0,15,1,J>>>24&255,J>>>16&255,J>>>8&255,J&255,K>>>24&255,K>>>16&255,K>>>8&255,K&255],0),_e=0;_e<J;_e++)Xe=H[_e],ut=Xe.duration,ht=Xe.size,Qt=Xe.flags,Tr=Xe.cts,we.set([ut>>>24&255,ut>>>16&255,ut>>>8&255,ut&255,ht>>>24&255,ht>>>16&255,ht>>>8&255,ht&255,Qt.isLeading<<2|Qt.dependsOn,Qt.isDependedOn<<6|Qt.hasRedundancy<<4|Qt.paddingValue<<1|Qt.isNonSync,Qt.degradPrio&240<<8,Qt.degradPrio&15,Tr>>>24&255,Tr>>>16&255,Tr>>>8&255,Tr&255],12+16*_e);return ve.box(ve.types.trun,we)}},{key:"initSegment",value:function(L){ve.types||ve.init();var K=ve.moov(L),H=new Uint8Array(ve.FTYP.byteLength+K.byteLength);return H.set(ve.FTYP),H.set(K,ve.FTYP.byteLength),H}}]),ve}();Ea.types=void 0,Ea.HDLR_TYPES=void 0,Ea.STTS=void 0,Ea.STSC=void 0,Ea.STCO=void 0,Ea.STSZ=void 0,Ea.VMHD=void 0,Ea.SMHD=void 0,Ea.STSD=void 0,Ea.FTYP=void 0,Ea.DINF=void 0;var Ka=9e4;function so(ve,q){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,H=ve*q*L;return K?Math.round(H):H}function lo(ve,q){var L=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,K=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return so(ve,q,1/L,K)}function wo(ve){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return so(ve,1e3,1/Ka,q)}function No(ve){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return so(ve,Ka,1/q)}var cs=10*1e3,hs=1024,Bs=1152,rs=null,ns=null,co=function(){function ve(q,L,K){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:"";if(Object(r.a)(this,ve),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=q,this.config=L,this.typeSupported=K,this.ISGenerated=!1,rs===null){var J=navigator.userAgent||"",ne=J.match(/Chrome\/(\d+)/i);rs=ne?parseInt(ne[1]):0}if(ns===null){var we=navigator.userAgent.match(/Safari\/(\d+)/i);ns=we?parseInt(we[1]):0}}return Object(s.a)(ve,[{key:"destroy",value:function(){}},{key:"resetTimeStamp",value:function(L){U.log("[mp4-remuxer]: initPTS & initDTS reset"),this._initPTS=this._initDTS=L}},{key:"resetNextTimestamp",value:function(){U.log("[mp4-remuxer]: reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}},{key:"resetInitSegment",value:function(){U.log("[mp4-remuxer]: ISGenerated flag reset"),this.ISGenerated=!1}},{key:"getVideoStartPts",value:function(L){var K=!1,H=L.reduce(function(J,ne){var we=ne.pts-J;return we<-4294967296?(K=!0,oo(J,ne.pts)):we>0?J:ne.pts},L[0].pts);return K&&U.debug("PTS rollover detected"),H}},{key:"remux",value:function(L,K,H,J,ne,we,_e,Xe){var ut,ht,Qt,Tr,br,Kr,Zr=ne,Pn=ne,Nn=L.pid>-1,Jn=K.pid>-1,wi=K.samples.length,sa=L.samples.length>0,Wi=_e&&wi>0||wi>1,Ji=(!Nn||sa)&&(!Jn||Wi)||this.ISGenerated||_e;if(Ji){this.ISGenerated||(Qt=this.generateIS(L,K,ne,we));var La=this.isVideoContiguous,Xa=-1,Ua;if(Wi&&(Xa=eo(K.samples),!La&&this.config.forceKeyFrameOnDiscontinuity))if(Kr=!0,Xa>0){U.warn("[mp4-remuxer]: Dropped ".concat(Xa," out of ").concat(wi," video samples due to a missing keyframe"));var ba=this.getVideoStartPts(K.samples);K.samples=K.samples.slice(Xa),K.dropped+=Xa,Pn+=(K.samples[0].pts-ba)/K.inputTimeScale,Ua=Pn}else Xa===-1&&(U.warn("[mp4-remuxer]: No keyframe found out of ".concat(wi," video samples")),Kr=!1);if(this.ISGenerated){if(sa&&Wi){var _o=this.getVideoStartPts(K.samples),bs=oo(L.samples[0].pts,_o)-_o,ds=bs/K.inputTimeScale;Zr+=Math.max(0,ds),Pn+=Math.max(0,-ds)}if(sa){if(L.samplerate||(U.warn("[mp4-remuxer]: regenerate InitSegment as audio detected"),Qt=this.generateIS(L,K,ne,we)),ht=this.remuxAudio(L,Zr,this.isAudioContiguous,we,Jn||Wi||Xe===Fr.AUDIO?Pn:void 0),Wi){var rl=ht?ht.endPTS-ht.startPTS:0;K.inputTimeScale||(U.warn("[mp4-remuxer]: regenerate InitSegment as video detected"),Qt=this.generateIS(L,K,ne,we)),ut=this.remuxVideo(K,Pn,La,rl)}}else Wi&&(ut=this.remuxVideo(K,Pn,La,0));ut&&(ut.firstKeyFrame=Xa,ut.independent=Xa!==-1,ut.firstKeyFramePTS=Ua)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(H.samples.length&&(br=ss(H,ne,this._initPTS,this._initDTS)),J.samples.length&&(Tr=xs(J,ne,this._initPTS))),{audio:ht,video:ut,initSegment:Qt,independent:Kr,text:Tr,id3:br}}},{key:"generateIS",value:function(L,K,H,J){var ne=L.samples,we=K.samples,_e=this.typeSupported,Xe={},ut=this._initPTS,ht=!ut||J,Qt="audio/mp4",Tr,br,Kr;if(ht&&(Tr=br=Infinity),L.config&&ne.length){L.timescale=L.samplerate;switch(L.segmentCodec){case"mp3":_e.mpeg?(Qt="audio/mpeg",L.codec=""):_e.mp3&&(L.codec="mp3");break}Xe.audio={id:"audio",container:Qt,codec:L.codec,initSegment:L.segmentCodec==="mp3"&&_e.mpeg?new Uint8Array(0):Ea.initSegment([L]),metadata:{channelCount:L.channelCount}},ht&&(Kr=L.inputTimeScale,!ut||Kr!==ut.timescale?Tr=br=ne[0].pts-Math.round(Kr*H):ht=!1)}if(K.sps&&K.pps&&we.length&&(K.timescale=K.inputTimeScale,Xe.video={id:"main",container:"video/mp4",codec:K.codec,initSegment:Ea.initSegment([K]),metadata:{width:K.width,height:K.height}},ht))if(Kr=K.inputTimeScale,!ut||Kr!==ut.timescale){var Zr=this.getVideoStartPts(we),Pn=Math.round(Kr*H);br=Math.min(br,oo(we[0].dts,Zr)-Pn),Tr=Math.min(Tr,Zr-Pn)}else ht=!1;if(Object.keys(Xe).length)return this.ISGenerated=!0,ht?(this._initPTS={baseTime:Tr,timescale:Kr},this._initDTS={baseTime:br,timescale:Kr}):Tr=Kr=void 0,{tracks:Xe,initPTS:Tr,timescale:Kr}}},{key:"remuxVideo",value:function(L,K,H,J){var ne=L.inputTimeScale,we=L.samples,_e=[],Xe=we.length,ut=this._initPTS,ht=this.nextAvcDts,Qt=8,Tr=this.videoSampleDuration,br,Kr,Zr=Number.POSITIVE_INFINITY,Pn=Number.NEGATIVE_INFINITY,Nn=!1;if(!H||ht===null){var Jn=K*ne,wi=we[0].pts-oo(we[0].dts,we[0].pts);ht=Jn-wi}for(var sa=ut.baseTime*ne/ut.timescale,Wi=0;Wi<Xe;Wi++){var Ji=we[Wi];Ji.pts=oo(Ji.pts-sa,ht),Ji.dts=oo(Ji.dts-sa,ht),Ji.dts<we[Wi>0?Wi-1:Wi].dts&&(Nn=!0)}Nn&&we.sort(function(wr,Or){var Bn=wr.dts-Or.dts,ti=wr.pts-Or.pts;return Bn||ti}),br=we[0].dts,Kr=we[we.length-1].dts;var La=Kr-br,Xa=La?Math.round(La/(Xe-1)):Tr||L.inputTimeScale/30;if(H){var Ua=br-ht,ba=Ua>Xa,_o=Ua<-1;if((ba||_o)&&(ba?U.warn("AVC: ".concat(wo(Ua,!0)," ms (").concat(Ua,"dts) hole between fragments detected, filling it")):U.warn("AVC: ".concat(wo(-Ua,!0)," ms (").concat(Ua,"dts) overlapping between fragments detected")),!_o||ht>=we[0].pts)){br=ht;var bs=we[0].pts-Ua;we[0].dts=br,we[0].pts=bs,U.log("Video: First PTS/DTS adjusted: ".concat(wo(bs,!0),"/").concat(wo(br,!0),", delta: ").concat(wo(Ua,!0)," ms"))}}br=Math.max(0,br);for(var ds=0,rl=0,xe=0;xe<Xe;xe++){for(var Ye=we[xe],St=Ye.units,ur=St.length,Br=0,on=0;on<ur;on++)Br+=St[on].data.length;rl+=Br,ds+=ur,Ye.length=Br,Ye.dts=Math.max(Ye.dts,br),Zr=Math.min(Ye.pts,Zr),Pn=Math.max(Ye.pts,Pn)}Kr=we[Xe-1].dts;var je=rl+4*ds+8,ae;try{ae=new Uint8Array(je)}catch(wr){this.observer.emit(_.ERROR,_.ERROR,{type:F.MUX_ERROR,details:R.REMUX_ALLOC_ERROR,fatal:!1,error:wr,bytes:je,reason:"fail allocating video mdat ".concat(je)});return}var Oe=new DataView(ae.buffer);Oe.setUint32(0,je),ae.set(Ea.types.mdat,4);for(var Ze=!1,yt=Number.POSITIVE_INFINITY,Xt=Number.POSITIVE_INFINITY,tr=Number.NEGATIVE_INFINITY,or=Number.NEGATIVE_INFINITY,Wr=0;Wr<Xe;Wr++){for(var un=we[Wr],zr=un.units,jr=0,sn=0,vn=zr.length;sn<vn;sn++){var Un=zr[sn],Ii=Un.data,ki=Un.data.byteLength;Oe.setUint32(Qt,ki),Qt+=4,ae.set(Ii,Qt),Qt+=ki,jr+=4+ki}var la=void 0;if(Wr<Xe-1)Tr=we[Wr+1].dts-un.dts,la=we[Wr+1].pts-un.pts;else{var Zi=this.config,Ya=Wr>0?un.dts-we[Wr-1].dts:Xa;if(la=Wr>0?un.pts-we[Wr-1].pts:Xa,Zi.stretchShortVideoTrack&&this.nextAudioPts!==null){var wa=Math.floor(Zi.maxBufferHole*ne),po=(J?Zr+J*ne:this.nextAudioPts)-un.pts;po>wa?(Tr=po-Ya,Tr<0?Tr=Ya:Ze=!0,U.log("[mp4-remuxer]: It is approximately ".concat(po/90," ms to the next segment; using duration ").concat(Tr/90," ms for the last video frame."))):Tr=Ya}else Tr=Ya}var Za=Math.round(un.pts-un.dts);yt=Math.min(yt,Tr),tr=Math.max(tr,Tr),Xt=Math.min(Xt,la),or=Math.max(or,la),_e.push(new Po(un.key,Tr,jr,Za))}if(_e.length){if(rs){if(rs<70){var Xo=_e[0].flags;Xo.dependsOn=2,Xo.isNonSync=0}}else if(ns&&(or-Xt<tr-yt&&Xa/tr<.025&&_e[0].cts===0)){U.warn("Found irregular gaps in sample duration. Using PTS instead of DTS to determine MP4 sample duration.");for(var ls=br,N=0,j=_e.length;N<j;N++){var ie=ls+_e[N].duration,se=ls+_e[N].cts;if(N<j-1){var me=ie+_e[N+1].cts;_e[N].duration=me-se}else _e[N].duration=N?_e[N-1].duration:Xa;_e[N].cts=0,ls=ie}}}Tr=Ze||!Tr?Xa:Tr,this.nextAvcDts=ht=Kr+Tr,this.videoSampleDuration=Tr,this.isVideoContiguous=!0;var ze=Ea.moof(L.sequenceNumber++,br,x({},L,{samples:_e})),It="video",ir={data1:ze,data2:ae,startPTS:Zr/ne,endPTS:(Pn+Tr)/ne,startDTS:br/ne,endDTS:ht/ne,type:It,hasAudio:!1,hasVideo:!0,nb:_e.length,dropped:L.dropped};return L.samples=[],L.dropped=0,ir}},{key:"remuxAudio",value:function(L,K,H,J,ne){var we=L.inputTimeScale,_e=L.samplerate?L.samplerate:we,Xe=we/_e,ut=L.segmentCodec==="aac"?hs:Bs,ht=ut*Xe,Qt=this._initPTS,Tr=L.segmentCodec==="mp3"&&this.typeSupported.mpeg,br=[],Kr=ne!==void 0,Zr=L.samples,Pn=Tr?0:8,Nn=this.nextAudioPts||-1,Jn=K*we,wi=Qt.baseTime*we/Qt.timescale;if(this.isAudioContiguous=H=H||Zr.length&&Nn>0&&(J&&Math.abs(Jn-Nn)<9e3||Math.abs(oo(Zr[0].pts-wi,Jn)-Nn)<20*ht),Zr.forEach(function(Un){Un.pts=oo(Un.pts-wi,Jn)}),!H||Nn<0){if(Zr=Zr.filter(function(Un){return Un.pts>=0}),!Zr.length)return;ne===0?Nn=0:J&&!Kr?Nn=Math.max(0,Jn):Nn=Zr[0].pts}if(L.segmentCodec==="aac")for(var sa=this.config.maxAudioFramesDrift,Wi=0,Ji=Nn;Wi<Zr.length;Wi++){var La=Zr[Wi],Xa=La.pts,Ua=Xa-Ji,ba=Math.abs(1e3*Ua/we);if(Ua<=-sa*ht&&Kr)Wi===0&&(U.warn("Audio frame @ ".concat((Xa/we).toFixed(3),"s overlaps nextAudioPts by ").concat(Math.round(1e3*Ua/we)," ms.")),this.nextAudioPts=Nn=Ji=Xa);else if(Ua>=sa*ht&&ba<cs&&Kr){var _o=Math.round(Ua/ht);Ji=Xa-_o*ht,Ji<0&&(_o--,Ji+=ht),Wi===0&&(this.nextAudioPts=Nn=Ji),U.warn("[mp4-remuxer]: Injecting ".concat(_o," audio frame @ ").concat((Ji/we).toFixed(3),"s due to ").concat(Math.round(1e3*Ua/we)," ms gap."));for(var bs=0;bs<_o;bs++){var ds=Math.max(Ji,0),rl=pa.getSilentFrame(L.manifestCodec||L.codec,L.channelCount);rl||(U.log("[mp4-remuxer]: Unable to get silent frame for given audio codec; duplicating last frame instead."),rl=La.unit.subarray()),Zr.splice(Wi,0,{unit:rl,pts:ds}),Ji+=ht,Wi++}}La.pts=Ji,Ji+=ht}for(var xe=null,Ye=null,St,ur=0,Br=Zr.length;Br--;)ur+=Zr[Br].unit.byteLength;for(var on=0,je=Zr.length;on<je;on++){var ae=Zr[on],Oe=ae.unit,Ze=ae.pts;if(Ye!==null){var yt=br[on-1];yt.duration=Math.round((Ze-Ye)/Xe)}else if(H&&L.segmentCodec==="aac"&&(Ze=Nn),xe=Ze,ur>0){ur+=Pn;try{St=new Uint8Array(ur)}catch(Un){this.observer.emit(_.ERROR,_.ERROR,{type:F.MUX_ERROR,details:R.REMUX_ALLOC_ERROR,fatal:!1,error:Un,bytes:ur,reason:"fail allocating audio mdat ".concat(ur)});return}if(!Tr){var Xt=new DataView(St.buffer);Xt.setUint32(0,ur),St.set(Ea.types.mdat,4)}}else return;St.set(Oe,Pn);var tr=Oe.byteLength;Pn+=tr,br.push(new Po(!0,ut,tr,0)),Ye=Ze}var or=br.length;if(!or)return;var Wr=br[br.length-1];this.nextAudioPts=Nn=Ye+Xe*Wr.duration;var un=Tr?new Uint8Array(0):Ea.moof(L.sequenceNumber++,xe/Xe,x({},L,{samples:br}));L.samples=[];var zr=xe/we,jr=Nn/we,sn="audio",vn={data1:un,data2:St,startPTS:zr,endPTS:jr,startDTS:zr,endDTS:jr,type:sn,hasAudio:!0,hasVideo:!1,nb:or};return this.isAudioContiguous=!0,vn}},{key:"remuxEmptyAudio",value:function(L,K,H,J){var ne=L.inputTimeScale,we=L.samplerate?L.samplerate:ne,_e=ne/we,Xe=this.nextAudioPts,ut=this._initDTS,ht=ut.baseTime*9e4/ut.timescale,Qt=(Xe!==null?Xe:J.startDTS*ne)+ht,Tr=J.endDTS*ne+ht,br=_e*hs,Kr=Math.ceil((Tr-Qt)/br),Zr=pa.getSilentFrame(L.manifestCodec||L.codec,L.channelCount);if(U.warn("[mp4-remuxer]: remux empty Audio"),!Zr){U.trace("[mp4-remuxer]: Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec");return}for(var Pn=[],Nn=0;Nn<Kr;Nn++){var Jn=Qt+Nn*br;Pn.push({unit:Zr,pts:Jn,dts:Jn})}return L.samples=Pn,this.remuxAudio(L,K,H,!1)}}]),ve}();function oo(ve,q){var L;if(q===null)return ve;for(q<ve?L=-8589934592:L=8589934592;Math.abs(ve-q)>4294967296;)ve+=L;return ve}function eo(ve){for(var q=0;q<ve.length;q++)if(ve[q].key)return q;return-1}function ss(ve,q,L,K){var H=ve.samples.length;if(!H)return;for(var J=ve.inputTimeScale,ne=0;ne<H;ne++){var we=ve.samples[ne];we.pts=oo(we.pts-L.baseTime*J/L.timescale,q*J)/J,we.dts=oo(we.dts-K.baseTime*J/K.timescale,q*J)/J}var _e=ve.samples;return ve.samples=[],{samples:_e}}function xs(ve,q,L){var K=ve.samples.length;if(!K)return;for(var H=ve.inputTimeScale,J=0;J<K;J++){var ne=ve.samples[J];ne.pts=oo(ne.pts-L.baseTime*H/L.timescale,q*H)/H}ve.samples.sort(function(_e,Xe){return _e.pts-Xe.pts});var we=ve.samples;return ve.samples=[],{samples:we}}var Po=Object(s.a)(function ve(q,L,K,H){Object(r.a)(this,ve),this.size=void 0,this.duration=void 0,this.cts=void 0,this.flags=void 0,this.duration=L,this.size=K,this.cts=H,this.flags=new el(q)}),el=Object(s.a)(function ve(q){Object(r.a)(this,ve),this.isLeading=0,this.isDependedOn=0,this.hasRedundancy=0,this.degradPrio=0,this.dependsOn=1,this.isNonSync=1,this.dependsOn=q?2:1,this.isNonSync=q?0:1}),zo=function(){function ve(){Object(r.a)(this,ve),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)(ve,[{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,K,H,J){this.audioCodec=K,this.videoCodec=H,this.generateInitSegment(ci(L,J)),this.emitInitSegment=!0}},{key:"generateInitSegment",value:function(L){var K=this.audioCodec,H=this.videoCodec;if(!(L!=null&&L.byteLength)){this.initTracks=void 0,this.initData=void 0;return}var J=this.initData=Yn(L);K||(K=ks(J.audio,Se.AUDIO)),H||(H=ks(J.video,Se.VIDEO));var ne={};J.audio&&J.video?ne.audiovideo={container:"video/mp4",codec:K+","+H,initSegment:L,id:"main"}:J.audio?ne.audio={container:"audio/mp4",codec:K,initSegment:L,id:"audio"}:J.video?ne.video={container:"video/mp4",codec:H,initSegment:L,id:"main"}:U.warn("[passthrough-remuxer.ts]: initSegment does not contain moov or trak boxes."),this.initTracks=ne}},{key:"remux",value:function(L,K,H,J,ne,we){var _e,Xe,ut=this.initPTS,ht=this.lastEndTime,Qt={audio:void 0,video:void 0,text:J,id3:H,initSegment:void 0};E(ht)||(ht=this.lastEndTime=ne||0);var Tr=K.samples;if(!(Tr!=null&&Tr.length))return Qt;var br={initPTS:void 0,timescale:1},Kr=this.initData;if((_e=Kr)!=null&&_e.length||(this.generateInitSegment(Tr),Kr=this.initData),!((Xe=Kr)!=null&&Xe.length))return U.warn("[passthrough-remuxer.ts]: Failed to generate initSegment."),Qt;this.emitInitSegment&&(br.tracks=this.initTracks,this.emitInitSegment=!1);var Zr=Qn(Tr,Kr),Pn=jn(Kr,Tr),Nn=Pn===null?ne:Pn;(Jo(ut,Nn,ne,Zr)||br.timescale!==ut.timescale&&we)&&(br.initPTS=Nn-ne,ut&&ut.timescale===1&&U.warn("Adjusting initPTS by ".concat(br.initPTS-ut.baseTime)),this.initPTS=ut={baseTime:br.initPTS,timescale:1});var Jn=L?Nn-ut.baseTime/ut.timescale:ht,wi=Jn+Zr;Ot(Kr,Tr,ut.baseTime/ut.timescale),Zr>0?this.lastEndTime=wi:(U.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());var sa=!!Kr.audio,Wi=!!Kr.video,Ji="";sa&&(Ji+="audio"),Wi&&(Ji+="video");var La={data1:Tr,startPTS:Jn,startDTS:Jn,endPTS:wi,endDTS:wi,type:Ji,hasAudio:sa,hasVideo:Wi,nb:1,dropped:0};return Qt.audio=La.type==="audio"?La:void 0,Qt.video=La.type!=="audio"?La:void 0,Qt.initSegment=br,Qt.id3=ss(H,ne,ut,ut),J.samples.length&&(Qt.text=xs(J,ne,ut)),Qt}}]),ve}();function Jo(ve,q,L,K){if(ve===null)return!0;var H=Math.max(K,1),J=q-ve.baseTime/ve.timescale;return Math.abs(J-L)>H}function ks(ve,q){var L=ve==null?void 0:ve.codec;return L&&L.length>4?L:L==="hvc1"||L==="hev1"?"hvc1.1.6.L120.90":L==="av01"?"av01.0.04M.08":L==="avc1"||q===Se.VIDEO?"avc1.42e01e":"mp4a.40.5"}var as;try{as=self.performance.now.bind(self.performance)}catch(ve){U.debug("Unable to use Performance API on this environment"),as=typeof self!="undefined"&&self.Date.now}var fs=[{demux:Xn,remux:zo},{demux:fa,remux:co},{demux:tn,remux:co},{demux:Oo,remux:co}],Sn=function(){function ve(q,L,K,H,J){Object(r.a)(this,ve),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=q,this.typeSupported=L,this.config=K,this.vendor=H,this.id=J}return Object(s.a)(ve,[{key:"configure",value:function(L){this.transmuxConfig=L,this.decrypter&&this.decrypter.reset()}},{key:"push",value:function(L,K,H,J){var ne=this,we=H.transmuxing;we.executeStart=as();var _e=new Uint8Array(L),Xe=this.currentTransmuxState,ut=this.transmuxConfig;J&&(this.currentTransmuxState=J);var ht=J||Xe,Qt=ht.contiguous,Tr=ht.discontinuity,br=ht.trackSwitch,Kr=ht.accurateTimeOffset,Zr=ht.timeOffset,Pn=ht.initSegmentChange,Nn=ut.audioCodec,Jn=ut.videoCodec,wi=ut.defaultInitPts,sa=ut.duration,Wi=ut.initSegmentData,Ji=Ls(_e,K);if(Ji&&Ji.method==="AES-128"){var La=this.getDecrypter();if(La.isSync()){var Xa=La.softwareDecrypt(_e,Ji.key.buffer,Ji.iv.buffer),Ua=H.part>-1;if(Ua&&(Xa=La.flush()),!Xa)return we.executeEnd=as(),yl(H);_e=new Uint8Array(Xa)}else return this.decryptionPromise=La.webCryptoDecrypt(_e,Ji.key.buffer,Ji.iv.buffer).then(function(rl){var xe=ne.push(rl,null,H);return ne.decryptionPromise=null,xe}),this.decryptionPromise}var ba=this.needsProbing(Tr,br);if(ba){var _o=this.configureTransmuxer(_e);if(_o)return U.warn("[transmuxer] ".concat(_o.message)),this.observer.emit(_.ERROR,_.ERROR,{type:F.MEDIA_ERROR,details:R.FRAG_PARSING_ERROR,fatal:!1,error:_o,reason:_o.message}),we.executeEnd=as(),yl(H)}(Tr||br||Pn||ba)&&this.resetInitSegment(Wi,Nn,Jn,sa,K),(Tr||Pn||ba)&&this.resetInitialTimestamp(wi),Qt||this.resetContiguity();var bs=this.transmux(_e,Ji,Zr,Kr,H),ds=this.currentTransmuxState;return ds.contiguous=!0,ds.discontinuity=!1,ds.trackSwitch=!1,we.executeEnd=as(),bs}},{key:"flush",value:function(L){var K=this,H=L.transmuxing;H.executeStart=as();var J=this.decrypter,ne=this.currentTransmuxState,we=this.decryptionPromise;if(we)return we.then(function(){return K.flush(L)});var _e=[],Xe=ne.timeOffset;if(J){var ut=J.flush();ut&&_e.push(this.push(ut,null,L))}var ht=this.demuxer,Qt=this.remuxer;if(!ht||!Qt)return H.executeEnd=as(),[yl(L)];var Tr=ht.flush(Xe);return Ks(Tr)?Tr.then(function(br){return K.flushRemux(_e,br,L),_e}):(this.flushRemux(_e,Tr,L),_e)}},{key:"flushRemux",value:function(L,K,H){var J=K.audioTrack,ne=K.videoTrack,we=K.id3Track,_e=K.textTrack,Xe=this.currentTransmuxState,ut=Xe.accurateTimeOffset,ht=Xe.timeOffset;U.log("[transmuxer.ts]: Flushed fragment ".concat(H.sn).concat(H.part>-1?" p: "+H.part:""," of level ").concat(H.level));var Qt=this.remuxer.remux(J,ne,we,_e,ht,ut,!0,this.id);L.push({remuxResult:Qt,chunkMeta:H}),H.transmuxing.executeEnd=as()}},{key:"resetInitialTimestamp",value:function(L){var K=this.demuxer,H=this.remuxer;if(!K||!H)return;K.resetTimeStamp(L),H.resetTimeStamp(L)}},{key:"resetContiguity",value:function(){var L=this.demuxer,K=this.remuxer;if(!L||!K)return;L.resetContiguity(),K.resetNextTimestamp()}},{key:"resetInitSegment",value:function(L,K,H,J,ne){var we=this.demuxer,_e=this.remuxer;if(!we||!_e)return;we.resetInitSegment(L,K,H,J),_e.resetInitSegment(L,K,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,K,H,J,ne){var we;return K&&K.method==="SAMPLE-AES"?we=this.transmuxSampleAes(L,K,H,J,ne):we=this.transmuxUnencrypted(L,H,J,ne),we}},{key:"transmuxUnencrypted",value:function(L,K,H,J){var ne=this.demuxer.demux(L,K,!1,!this.config.progressive),we=ne.audioTrack,_e=ne.videoTrack,Xe=ne.id3Track,ut=ne.textTrack,ht=this.remuxer.remux(we,_e,Xe,ut,K,H,!1,this.id);return{remuxResult:ht,chunkMeta:J}}},{key:"transmuxSampleAes",value:function(L,K,H,J,ne){var we=this;return this.demuxer.demuxSampleAes(L,K,H).then(function(_e){var Xe=we.remuxer.remux(_e.audioTrack,_e.videoTrack,_e.id3Track,_e.textTrack,H,J,!1,we.id);return{remuxResult:Xe,chunkMeta:ne}})}},{key:"configureTransmuxer",value:function(L){for(var K=this.config,H=this.observer,J=this.typeSupported,ne=this.vendor,we,_e=0,Xe=fs.length;_e<Xe;_e++)if(fs[_e].demux.probe(L)){we=fs[_e];break}if(!we)return new Error("Failed to find demuxer by probing fragment data");var ut=this.demuxer,ht=this.remuxer,Qt=we.remux,Tr=we.demux;(!ht||!(ht instanceof Qt))&&(this.remuxer=new Qt(H,K,J,ne)),(!ut||!(ut instanceof Tr))&&(this.demuxer=new Tr(H,K,J),this.probe=Tr.probe)}},{key:"needsProbing",value:function(L,K){return!this.demuxer||!this.remuxer||L||K}},{key:"getDecrypter",value:function(){var L=this.decrypter;return L||(L=this.decrypter=new io(this.config)),L}}]),ve}();function Ls(ve,q){var L=null;return ve.byteLength>0&&q!=null&&q.key!=null&&q.iv!==null&&q.method!=null&&(L=q),L}var yl=function(q){return{remuxResult:{},chunkMeta:q}};function Ks(ve){return"then"in ve&&ve.then instanceof Function}var Ws=Object(s.a)(function ve(q,L,K,H,J){Object(r.a)(this,ve),this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=q,this.videoCodec=L,this.initSegmentData=K,this.duration=H,this.defaultInitPts=J||null}),ps=Object(s.a)(function ve(q,L,K,H,J,ne){Object(r.a)(this,ve),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=q,this.contiguous=L,this.accurateTimeOffset=K,this.trackSwitch=H,this.timeOffset=J,this.initSegmentChange=ne}),Ms={exports:{}};(function(ve){var q=Object.prototype.hasOwnProperty,L="~";function K(){}Object.create&&(K.prototype=Object.create(null),new K().__proto__||(L=!1));function H(_e,Xe,ut){this.fn=_e,this.context=Xe,this.once=ut||!1}function J(_e,Xe,ut,ht,Qt){if(typeof ut!="function")throw new TypeError("The listener must be a function");var Tr=new H(ut,ht||_e,Qt),br=L?L+Xe:Xe;return _e._events[br]?_e._events[br].fn?_e._events[br]=[_e._events[br],Tr]:_e._events[br].push(Tr):(_e._events[br]=Tr,_e._eventsCount++),_e}function ne(_e,Xe){--_e._eventsCount===0?_e._events=new K:delete _e._events[Xe]}function we(){this._events=new K,this._eventsCount=0}we.prototype.eventNames=function(){var Xe=[],ut,ht;if(this._eventsCount===0)return Xe;for(ht in ut=this._events)q.call(ut,ht)&&Xe.push(L?ht.slice(1):ht);return Object.getOwnPropertySymbols?Xe.concat(Object.getOwnPropertySymbols(ut)):Xe},we.prototype.listeners=function(Xe){var ut=L?L+Xe:Xe,ht=this._events[ut];if(!ht)return[];if(ht.fn)return[ht.fn];for(var Qt=0,Tr=ht.length,br=new Array(Tr);Qt<Tr;Qt++)br[Qt]=ht[Qt].fn;return br},we.prototype.listenerCount=function(Xe){var ut=L?L+Xe:Xe,ht=this._events[ut];return ht?ht.fn?1:ht.length:0},we.prototype.emit=function(Xe,ut,ht,Qt,Tr,br){var Kr=L?L+Xe:Xe;if(!this._events[Kr])return!1;var Zr=this._events[Kr],Pn=arguments.length,Nn,Jn;if(Zr.fn){Zr.once&&this.removeListener(Xe,Zr.fn,void 0,!0);switch(Pn){case 1:return Zr.fn.call(Zr.context),!0;case 2:return Zr.fn.call(Zr.context,ut),!0;case 3:return Zr.fn.call(Zr.context,ut,ht),!0;case 4:return Zr.fn.call(Zr.context,ut,ht,Qt),!0;case 5:return Zr.fn.call(Zr.context,ut,ht,Qt,Tr),!0;case 6:return Zr.fn.call(Zr.context,ut,ht,Qt,Tr,br),!0}for(Jn=1,Nn=new Array(Pn-1);Jn<Pn;Jn++)Nn[Jn-1]=arguments[Jn];Zr.fn.apply(Zr.context,Nn)}else{var wi=Zr.length,sa;for(Jn=0;Jn<wi;Jn++){Zr[Jn].once&&this.removeListener(Xe,Zr[Jn].fn,void 0,!0);switch(Pn){case 1:Zr[Jn].fn.call(Zr[Jn].context);break;case 2:Zr[Jn].fn.call(Zr[Jn].context,ut);break;case 3:Zr[Jn].fn.call(Zr[Jn].context,ut,ht);break;case 4:Zr[Jn].fn.call(Zr[Jn].context,ut,ht,Qt);break;default:if(!Nn)for(sa=1,Nn=new Array(Pn-1);sa<Pn;sa++)Nn[sa-1]=arguments[sa];Zr[Jn].fn.apply(Zr[Jn].context,Nn)}}}return!0},we.prototype.on=function(Xe,ut,ht){return J(this,Xe,ut,ht,!1)},we.prototype.once=function(Xe,ut,ht){return J(this,Xe,ut,ht,!0)},we.prototype.removeListener=function(Xe,ut,ht,Qt){var Tr=L?L+Xe:Xe;if(!this._events[Tr])return this;if(!ut)return ne(this,Tr),this;var br=this._events[Tr];if(br.fn)br.fn===ut&&(!Qt||br.once)&&(!ht||br.context===ht)&&ne(this,Tr);else{for(var Kr=0,Zr=[],Pn=br.length;Kr<Pn;Kr++)(br[Kr].fn!==ut||Qt&&!br[Kr].once||ht&&br[Kr].context!==ht)&&Zr.push(br[Kr]);Zr.length?this._events[Tr]=Zr.length===1?Zr[0]:Zr:ne(this,Tr)}return this},we.prototype.removeAllListeners=function(Xe){var ut;return Xe?(ut=L?L+Xe:Xe,this._events[ut]&&ne(this,ut)):(this._events=new K,this._eventsCount=0),this},we.prototype.off=we.prototype.removeListener,we.prototype.addListener=we.prototype.on,we.prefixed=L,we.EventEmitter=we,ve.exports=we})(Ms);var Zs=Ms.exports,zs=c(Zs),Es=Ir()||{isTypeSupported:function(){return!1}},Ds=function(){function ve(q,L,K,H){var J=this;Object(r.a)(this,ve),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=q.config;this.hls=q,this.id=L,this.useWorker=!!ne.enableWorker,this.onTransmuxComplete=K,this.onFlush=H;var we=function(Tr,br){br=br||{},br.frag=J.frag,br.id=J.id,Tr===_.ERROR&&(J.error=br.error),J.hls.trigger(Tr,br)};this.observer=new zs,this.observer.on(_.FRAG_DECRYPTED,we),this.observer.on(_.ERROR,we);var _e={mp4:Es.isTypeSupported("video/mp4"),mpeg:Es.isTypeSupported("audio/mpeg"),mp3:Es.isTypeSupported('audio/mp4; codecs="mp3"')},Xe=navigator.vendor;if(this.useWorker&&typeof Worker!="undefined"){var ut=ne.workerPath||Ko();if(ut){try{ne.workerPath?(U.log("loading Web Worker ".concat(ne.workerPath,' for "').concat(L,'"')),this.workerContext=Qo(ne.workerPath)):(U.log('injecting Web Worker for "'.concat(L,'"')),this.workerContext=to()),this.onwmsg=function(Qt){return J.onWorkerMessage(Qt)};var ht=this.workerContext.worker;ht.addEventListener("message",this.onwmsg),ht.onerror=function(Qt){var Tr=new Error("".concat(Qt.message," (").concat(Qt.filename,":").concat(Qt.lineno,")"));ne.enableWorker=!1,U.warn('Error in "'.concat(L,'" Web Worker, fallback to inline')),J.hls.trigger(_.ERROR,{type:F.OTHER_ERROR,details:R.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:Tr})},ht.postMessage({cmd:"init",typeSupported:_e,vendor:Xe,id:L,config:JSON.stringify(ne)})}catch(Qt){U.warn('Error setting up "'.concat(L,'" Web Worker, fallback to inline'),Qt),this.resetWorker(),this.error=null,this.transmuxer=new Sn(this.observer,_e,ne,Xe,L)}return}}this.transmuxer=new Sn(this.observer,_e,ne,Xe,L)}return Object(s.a)(ve,[{key:"resetWorker",value:function(){if(this.workerContext){var L=this.workerContext,K=L.worker,H=L.objectURL;H&&self.URL.revokeObjectURL(H),K.removeEventListener("message",this.onwmsg),K.onerror=null,K.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 K=this.observer;K&&K.removeAllListeners(),this.frag=null,this.observer=null,this.hls=null}},{key:"push",value:function(L,K,H,J,ne,we,_e,Xe,ut,ht){var Qt=this,Tr,br;ut.transmuxing.start=self.performance.now();var Kr=this.transmuxer,Zr=we?we.start:ne.start,Pn=ne.decryptdata,Nn=this.frag,Jn=!(Nn&&ne.cc===Nn.cc),wi=!(Nn&&ut.level===Nn.level),sa=Nn?ut.sn-Nn.sn:-1,Wi=this.part?ut.part-this.part.index:-1,Ji=sa===0&&ut.id>1&&ut.id===(Nn==null?void 0:Nn.stats.chunkCount),La=!wi&&(sa===1||sa===0&&(Wi===1||Ji&&Wi<=0)),Xa=self.performance.now();(wi||sa||ne.stats.parsing.start===0)&&(ne.stats.parsing.start=Xa),we&&(Wi||!La)&&(we.stats.parsing.start=Xa);var Ua=!(Nn&&((Tr=ne.initSegment)==null?void 0:Tr.url)===((br=Nn.initSegment)==null?void 0:br.url)),ba=new ps(Jn,La,Xe,wi,Zr,Ua);if(!La||Jn||Ua){U.log("[transmuxer-interface, ".concat(ne.type,"]: Starting new transmux session for sn: ").concat(ut.sn," p: ").concat(ut.part," level: ").concat(ut.level," id: ").concat(ut.id,`
discontinuity: `).concat(Jn,`
trackSwitch: `).concat(wi,`
contiguous: `).concat(La,`
accurateTimeOffset: `).concat(Xe,`
timeOffset: `).concat(Zr,`
initSegmentChange: `).concat(Ua));var _o=new Ws(H,J,K,_e,ht);this.configureTransmuxer(_o)}if(this.frag=ne,this.part=we,this.workerContext)this.workerContext.worker.postMessage({cmd:"demux",data:L,decryptdata:Pn,chunkMeta:ut,state:ba},L instanceof ArrayBuffer?[L]:[]);else if(Kr){var bs=Kr.push(L,Pn,ut,ba);Ks(bs)?(Kr.async=!0,bs.then(function(ds){Qt.handleTransmuxComplete(ds)}).catch(function(ds){Qt.transmuxerError(ds,ut,"transmuxer-interface push error")})):(Kr.async=!1,this.handleTransmuxComplete(bs))}}},{key:"flush",value:function(L){var K=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 J=H.flush(L),ne=Ks(J);ne||H.async?(Ks(J)||(J=Promise.resolve(J)),J.then(function(we){K.handleFlushResult(we,L)}).catch(function(we){K.transmuxerError(we,L,"transmuxer-interface flush error")})):this.handleFlushResult(J,L)}}},{key:"transmuxerError",value:function(L,K,H){if(!this.hls)return;this.error=L,this.hls.trigger(_.ERROR,{type:F.MEDIA_ERROR,details:R.FRAG_PARSING_ERROR,chunkMeta:K,fatal:!1,error:L,err:L,reason:H})}},{key:"handleFlushResult",value:function(L,K){var H=this;L.forEach(function(J){H.handleTransmuxComplete(J)}),this.onFlush(K)}},{key:"onWorkerMessage",value:function(L){var K=L.data,H=this.hls;switch(K.event){case"init":{var J,ne=(J=this.workerContext)==null?void 0:J.objectURL;ne&&self.URL.revokeObjectURL(ne);break}case"transmuxComplete":{this.handleTransmuxComplete(K.data);break}case"flush":{this.onFlush(K.data);break}case"workerLog":U[K.data.logType]&&U[K.data.logType](K.data.message);break;default:{K.data=K.data||{},K.data.frag=this.frag,K.data.id=this.id,H.trigger(K.event,K.data);break}}}},{key:"configureTransmuxer",value:function(L){var K=this.transmuxer;this.workerContext?this.workerContext.worker.postMessage({cmd:"configure",config:L}):K&&K.configure(L)}},{key:"handleTransmuxComplete",value:function(L){L.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(L)}}]),ve}(),tl=250,Us=2,Go=.1,Do=.05,Ts=function(){function ve(q,L,K,H){Object(r.a)(this,ve),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=q,this.media=L,this.fragmentTracker=K,this.hls=H}return Object(s.a)(ve,[{key:"destroy",value:function(){this.media=null,this.hls=this.fragmentTracker=null}},{key:"poll",value:function(L,K){var H=this.config,J=this.media,ne=this.stalled;if(J===null)return;var we=J.currentTime,_e=J.seeking,Xe=this.seeking&&!_e,ut=!this.seeking&&_e;if(this.seeking=_e,we!==L){if(this.moved=!0,ne!==null){if(this.stallReported){var ht=self.performance.now()-ne;U.warn("playback not stuck anymore @".concat(we,", after ").concat(Math.round(ht),"ms")),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}return}if(ut||Xe){this.stalled=null;return}if(J.paused&&!_e||J.ended||J.playbackRate===0||!Pi.getBuffered(J).length)return;var Qt=Pi.bufferInfo(J,we,0),Tr=Qt.len>0,br=Qt.nextStart||0;if(!Tr&&!br)return;if(_e){var Kr=Qt.len>Us,Zr=!br||K&&K.start<=we||br-we>Us&&!this.fragmentTracker.getPartialFragment(we);if(Kr||Zr)return;this.moved=!1}if(!this.moved&&this.stalled!==null){var Pn,Nn=Math.max(br,Qt.start||0)-we,Jn=this.hls.levels?this.hls.levels[this.hls.currentLevel]:null,wi=Jn==null||(Pn=Jn.details)==null?void 0:Pn.live,sa=wi?Jn.details.targetduration*2:Us,Wi=this.fragmentTracker.getPartialFragment(we);if(Nn>0&&(Nn<=sa||Wi)){this._trySkipBufferHole(Wi);return}}var Ji=self.performance.now();if(ne===null){this.stalled=Ji;return}var La=Ji-ne;if(!_e&&La>=tl&&(this._reportStall(Qt),!this.media))return;var Xa=Pi.bufferInfo(J,we,H.maxBufferHole);this._tryFixBufferStall(Xa,La)}},{key:"_tryFixBufferStall",value:function(L,K){var H=this.config,J=this.fragmentTracker,ne=this.media;if(ne===null)return;var we=ne.currentTime,_e=J.getPartialFragment(we);if(_e){var Xe=this._trySkipBufferHole(_e);if(Xe||!this.media)return}(L.len>H.maxBufferHole||L.nextStart&&L.nextStart-we<H.maxBufferHole)&&K>H.highBufferWatchdogPeriod*1e3&&(U.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())}},{key:"_reportStall",value:function(L){var K=this.hls,H=this.media,J=this.stallReported;if(!J&&H){this.stallReported=!0;var ne=new Error("Playback stalling at @".concat(H.currentTime," due to low buffer (").concat(JSON.stringify(L),")"));U.warn(ne.message),K.trigger(_.ERROR,{type:F.MEDIA_ERROR,details:R.BUFFER_STALLED_ERROR,fatal:!1,error:ne,buffer:L.len})}}},{key:"_trySkipBufferHole",value:function(L){var K=this.config,H=this.hls,J=this.media;if(J===null)return 0;var ne=J.currentTime,we=Pi.bufferInfo(J,ne,0),_e=ne<we.start?we.start:we.nextStart;if(_e){var Xe=we.len<=K.maxBufferHole,ut=we.len>0&&we.len<1&&J.readyState<3,ht=_e-ne;if(ht>0&&(Xe||ut)){if(ht>K.maxBufferHole){var Qt=this.fragmentTracker,Tr=!1;if(ne===0){var br=Qt.getAppendedFrag(0,Fr.MAIN);br&&_e<br.end&&(Tr=!0)}if(!Tr){var Kr=L||Qt.getAppendedFrag(ne,Fr.MAIN);if(Kr){for(var Zr=!1,Pn=Kr.end;Pn<_e;){var Nn=Qt.getPartialFragment(Pn);if(Nn)Pn+=Nn.duration;else{Zr=!0;break}}if(Zr)return 0}}}var Jn=Math.max(_e+Do,ne+Go);if(U.warn("skipping hole, adjusting currentTime from ".concat(ne," to ").concat(Jn)),this.moved=!0,this.stalled=null,J.currentTime=Jn,L&&!L.gap){var wi=new Error("fragment loaded with buffer holes, seeking from ".concat(ne," to ").concat(Jn));H.trigger(_.ERROR,{type:F.MEDIA_ERROR,details:R.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:wi,reason:wi.message,frag:L})}return Jn}}return 0}},{key:"_tryNudgeBuffer",value:function(){var L=this.config,K=this.hls,H=this.media,J=this.nudgeRetry;if(H===null)return;var ne=H.currentTime;if(this.nudgeRetry++,J<L.nudgeMaxRetry){var we=ne+(J+1)*L.nudgeOffset,_e=new Error("Nudging 'currentTime' from ".concat(ne," to ").concat(we));U.warn(_e.message),H.currentTime=we,K.trigger(_.ERROR,{type:F.MEDIA_ERROR,details:R.BUFFER_NUDGE_ON_STALL,error:_e,fatal:!1})}else{var Xe=new Error("Playhead still not moving while enough data buffered @".concat(ne," after ").concat(L.nudgeMaxRetry," nudges"));U.error(Xe.message),K.trigger(_.ERROR,{type:F.MEDIA_ERROR,details:R.BUFFER_STALLED_ERROR,error:Xe,fatal:!0})}}}]),ve}(),Ns=100,Ao=function(ve){Object(a.a)(L,ve);var q=Object(e.a)(L);function L(K,H,J){var ne;return Object(r.a)(this,L),ne=q.call(this,K,H,J,"[stream-controller]",Fr.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(_.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(_.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(_.MANIFEST_LOADING,this.onManifestLoading,this),H.on(_.MANIFEST_PARSED,this.onManifestParsed,this),H.on(_.LEVEL_LOADING,this.onLevelLoading,this),H.on(_.LEVEL_LOADED,this.onLevelLoaded,this),H.on(_.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),H.on(_.ERROR,this.onError,this),H.on(_.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.on(_.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.on(_.BUFFER_CREATED,this.onBufferCreated,this),H.on(_.BUFFER_FLUSHED,this.onBufferFlushed,this),H.on(_.LEVELS_UPDATED,this.onLevelsUpdated,this),H.on(_.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(_.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(_.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(_.MANIFEST_LOADING,this.onManifestLoading,this),H.off(_.MANIFEST_PARSED,this.onManifestParsed,this),H.off(_.LEVEL_LOADED,this.onLevelLoaded,this),H.off(_.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),H.off(_.ERROR,this.onError,this),H.off(_.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.off(_.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),H.off(_.BUFFER_CREATED,this.onBufferCreated,this),H.off(_.BUFFER_FLUSHED,this.onBufferFlushed,this),H.off(_.LEVELS_UPDATED,this.onLevelsUpdated,this),H.off(_.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"onHandlerDestroying",value:function(){this._unregisterListeners(),this.onMediaDetaching()}},{key:"startLoad",value:function(H){if(this.levels){var J=this.lastCurrentTime,ne=this.hls;if(this.stopLoad(),this.setInterval(Ns),this.level=-1,!this.startFragRequested){var we=ne.startLevel;we===-1&&(ne.config.testBandwidth&&this.levels.length>1?(we=0,this.bitrateTest=!0):we=ne.nextAutoLevel),this.level=ne.nextLoadLevel=we,this.loadedmetadata=!1}J>0&&H===-1&&(this.log("Override startPosition with lastCurrentTime @".concat(J.toFixed(3))),H=J),this.state=$i.IDLE,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=H,this.tick()}else this._forceStartLoad=!0,this.state=$i.STOPPED}},{key:"stopLoad",value:function(){this._forceStartLoad=!1,Object(t.a)(Object(m.a)(L.prototype),"stopLoad",this).call(this)}},{key:"doTick",value:function(){switch(this.state){case $i.WAITING_LEVEL:{var H,J=this.levels,ne=this.level,we=J==null||(H=J[ne])==null?void 0:H.details;if(we&&(!we.live||this.levelLastLoaded===this.level)){if(this.waitForCdnTuneIn(we))break;this.state=$i.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=$i.IDLE;break}break}case $i.FRAG_LOADING_WAITING_RETRY:{var _e,Xe=self.performance.now(),ut=this.retryDate;(!ut||Xe>=ut||(_e=this.media)!=null&&_e.seeking)&&(this.resetStartWhenNotLoaded(this.level),this.state=$i.IDLE)}break}this.state===$i.IDLE&&this.doTickIdle(),this.onTickEnd()}},{key:"onTickEnd",value:function(){Object(t.a)(Object(m.a)(L.prototype),"onTickEnd",this).call(this),this.checkBuffer(),this.checkFragmentChanged()}},{key:"doTickIdle",value:function(){var H=this.hls,J=this.levelLastLoaded,ne=this.levels,we=this.media,_e=H.config,Xe=H.nextLoadLevel;if(J===null||!we&&(this.startFragRequested||!_e.startFragPrefetch))return;if(this.altAudio&&this.audioOnly)return;if(!(ne!=null&&ne[Xe]))return;var ut=ne[Xe],ht=this.getMainFwdBufferInfo();if(ht===null)return;var Qt=this.getLevelDetails();if(Qt&&this._streamEnded(ht,Qt)){var Tr={};this.altAudio&&(Tr.type="video"),this.hls.trigger(_.BUFFER_EOS,Tr),this.state=$i.ENDED;return}H.loadLevel!==Xe&&H.manualLevel===-1&&this.log("Adapting to level ".concat(Xe," from level ").concat(this.level)),this.level=H.nextLoadLevel=Xe;var br=ut.details;if(!br||this.state===$i.WAITING_LEVEL||br.live&&this.levelLastLoaded!==Xe){this.level=Xe,this.state=$i.WAITING_LEVEL;return}var Kr=ht.len,Zr=this.getMaxBufferLength(ut.maxBitrate);if(Kr>=Zr)return;this.backtrackFragment&&this.backtrackFragment.start>ht.end&&(this.backtrackFragment=null);var Pn=this.backtrackFragment?this.backtrackFragment.start:ht.end,Nn=this.getNextFragment(Pn,br);if(this.couldBacktrack&&!this.fragPrevious&&Nn&&Nn.sn!=="initSegment"&&this.fragmentTracker.getState(Nn)!==Jr.OK){var Jn,wi=((Jn=this.backtrackFragment)!=null?Jn:Nn).sn,sa=wi-br.startSN,Wi=br.fragments[sa-1];Wi&&Nn.cc===Wi.cc&&(Nn=Wi,this.fragmentTracker.removeFragment(Wi))}else this.backtrackFragment&&ht.len&&(this.backtrackFragment=null);if(Nn&&this.isLoopLoading(Nn,Pn)){var Ji=Nn.gap;if(!Ji){var La=this.audioOnly&&!this.altAudio?Se.AUDIO:Se.VIDEO,Xa=(La===Se.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;Xa&&this.afterBufferFlushed(Xa,La,Fr.MAIN)}Nn=this.getNextFragmentLoopLoading(Nn,br,ht,Fr.MAIN,Zr)}if(!Nn)return;Nn.initSegment&&!Nn.initSegment.data&&!this.bitrateTest&&(Nn=Nn.initSegment),this.loadFragment(Nn,ut,Pn)}},{key:"loadFragment",value:function(H,J,ne){var we=this.fragmentTracker.getState(H);this.fragCurrent=H,we===Jr.NOT_LOADED||we===Jr.PARTIAL?H.sn==="initSegment"?this._loadInitSegment(H,J):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,J)):(this.startFragRequested=!0,Object(t.a)(Object(m.a)(L.prototype),"loadFragment",this).call(this,H,J,ne)):this.clearTrackerIfNeeded(H)}},{key:"getBufferedFrag",value:function(H){return this.fragmentTracker.getBufferedFrag(H,Fr.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,J=this.media;if(J!=null&&J.readyState){var ne,we=this.getAppendedFrag(J.currentTime);we&&we.start>1&&this.flushMainBuffer(0,we.start-1);var _e=this.getLevelDetails();if(_e!=null&&_e.live){var Xe=this.getMainFwdBufferInfo();if(!Xe||Xe.len<_e.targetduration*2)return}if(!J.paused&&H){var ut=this.hls.nextLoadLevel,ht=H[ut],Qt=this.fragLastKbps;Qt&&this.fragCurrent?ne=this.fragCurrent.duration*ht.maxBitrate/(1e3*Qt)+1:ne=0}else ne=0;var Tr=this.getBufferedFrag(J.currentTime+ne);if(Tr){var br=this.followingBufferedFrag(Tr);if(br){this.abortCurrentFrag();var Kr=br.maxStartPTS?br.maxStartPTS:br.start,Zr=br.duration,Pn=Math.max(Tr.end,Kr+Math.min(Math.max(Zr-this.config.maxFragLookUpTolerance,Zr*.5),Zr*.75));this.flushMainBuffer(Pn,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 $i.KEY_LOADING:case $i.FRAG_LOADING:case $i.FRAG_LOADING_WAITING_RETRY:case $i.PARSING:case $i.PARSED:this.state=$i.IDLE;break}this.nextLoadPosition=this.getLoadPosition()}},{key:"flushMainBuffer",value:function(H,J){Object(t.a)(Object(m.a)(L.prototype),"flushMainBuffer",this).call(this,H,J,this.altAudio?"video":null)}},{key:"onMediaAttached",value:function(H,J){Object(t.a)(Object(m.a)(L.prototype),"onMediaAttached",this).call(this,H,J);var ne=J.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 Ts(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(m.a)(L.prototype),"onMediaDetaching",this).call(this)}},{key:"onMediaPlaying",value:function(){this.tick()}},{key:"onMediaSeeked",value:function(){var H=this.media,J=H?H.currentTime:null;E(J)&&this.log("Media seeked to ".concat(J.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(_.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,J){var ne=!1,we=!1,_e;J.levels.forEach(function(Xe){_e=Xe.audioCodec,_e&&(_e.indexOf("mp4a.40.2")!==-1&&(ne=!0),_e.indexOf("mp4a.40.5")!==-1&&(we=!0))}),this.audioCodecSwitch=ne&&we&&!Co(),this.audioCodecSwitch&&this.log("Both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.levels=J.levels,this.startFragRequested=!1}},{key:"onLevelLoading",value:function(H,J){var ne=this.levels;if(!ne||this.state!==$i.IDLE)return;var we=ne[J.level];(!we.details||we.details.live&&this.levelLastLoaded!==J.level||this.waitForCdnTuneIn(we.details))&&(this.state=$i.WAITING_LEVEL)}},{key:"onLevelLoaded",value:function(H,J){var ne,we=this.levels,_e=J.level,Xe=J.details,ut=Xe.totalduration;if(!we){this.warn("Levels were reset while loading level ".concat(_e));return}this.log("Level ".concat(_e," loaded [").concat(Xe.startSN,",").concat(Xe.endSN,"]").concat(Xe.lastPartSn?"[part-".concat(Xe.lastPartSn,"-").concat(Xe.lastPartIndex,"]"):"",", cc [").concat(Xe.startCC,", ").concat(Xe.endCC,"] duration:").concat(ut));var ht=we[_e],Qt=this.fragCurrent;Qt&&(this.state===$i.FRAG_LOADING||this.state===$i.FRAG_LOADING_WAITING_RETRY)&&((Qt.level!==J.level||Qt.urlId!==ht.urlId)&&Qt.loader&&this.abortCurrentFrag());var Tr=0;if(Xe.live||(ne=ht.details)!=null&&ne.live){if(this.checkLiveUpdate(Xe),Xe.deltaUpdateFailed)return;Tr=this.alignPlaylists(Xe,ht.details)}if(ht.details=Xe,this.levelLastLoaded=_e,this.hls.trigger(_.LEVEL_UPDATED,{details:Xe,level:_e}),this.state===$i.WAITING_LEVEL){if(this.waitForCdnTuneIn(Xe))return;this.state=$i.IDLE}this.startFragRequested?Xe.live&&this.synchronizeToLiveEdge(Xe):this.setStartPosition(Xe,Tr),this.tick()}},{key:"_handleFragmentLoadProgress",value:function(H){var J,ne=H.frag,we=H.part,_e=H.payload,Xe=this.levels;if(!Xe){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 ut=Xe[ne.level],ht=ut.details;if(!ht){this.warn("Dropping fragment ".concat(ne.sn," of level ").concat(ne.level," after level details were reset")),this.fragmentTracker.removeFragment(ne);return}var Qt=ut.videoCodec,Tr=ht.PTSKnown||!ht.live,br=(J=ne.initSegment)==null?void 0:J.data,Kr=this._getAudioCodec(ut),Zr=this.transmuxer=this.transmuxer||new Ds(this.hls,Fr.MAIN,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)),Pn=we?we.index:-1,Nn=Pn!==-1,Jn=new Ki(ne.level,ne.sn,ne.stats.chunkCount,_e.byteLength,Pn,Nn),wi=this.initPTS[ne.cc];Zr.push(_e,br,Kr,Qt,ne,we,ht.totalduration,Tr,Jn,wi)}},{key:"onAudioTrackSwitching",value:function(H,J){var ne=this.altAudio,we=!!J.url;if(!we){if(this.mediaBuffer!==this.media){this.log("Switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var _e=this.fragCurrent;_e&&(this.log("Switching to main audio track, cancel main fragment load"),_e.abortRequests(),this.fragmentTracker.removeFragment(_e)),this.resetTransmuxer(),this.resetLoadingState()}else this.audioOnly&&this.resetTransmuxer();var Xe=this.hls;ne&&(Xe.trigger(_.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null}),this.fragmentTracker.removeAllFragments()),Xe.trigger(_.AUDIO_TRACK_SWITCHED,J)}}},{key:"onAudioTrackSwitched",value:function(H,J){var ne=J.id,we=!!this.hls.audioTracks[ne].url;if(we){var _e=this.videoBuffer;_e&&this.mediaBuffer!==_e&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=_e)}this.altAudio=we,this.tick()}},{key:"onBufferCreated",value:function(H,J){var ne=J.tracks,we,_e,Xe=!1;for(var ut in ne){var ht=ne[ut];if(ht.id==="main"){if(_e=ut,we=ht,ut==="video"){var Qt=ne[ut];Qt&&(this.videoBuffer=Qt.buffer)}}else Xe=!0}Xe&&we?(this.log("Alternate track found, use ".concat(_e,".buffered to schedule main fragment loading")),this.mediaBuffer=we.buffer):this.mediaBuffer=this.media}},{key:"onFragBuffered",value:function(H,J){var ne=J.frag,we=J.part;if(ne&&ne.type!==Fr.MAIN)return;if(this.fragContextChanged(ne)){this.warn("Fragment ".concat(ne.sn).concat(we?" p: "+we.index:""," of level ").concat(ne.level," finished buffering, but was aborted. state: ").concat(this.state)),this.state===$i.PARSED&&(this.state=$i.IDLE);return}var _e=we?we.stats:ne.stats;this.fragLastKbps=Math.round(8*_e.total/(_e.buffering.end-_e.loading.first)),ne.sn!=="initSegment"&&(this.fragPrevious=ne),this.fragBufferedComplete(ne,we)}},{key:"onError",value:function(H,J){var ne;if(J.fatal){this.state=$i.ERROR;return}switch(J.details){case R.FRAG_GAP:case R.FRAG_PARSING_ERROR:case R.FRAG_DECRYPT_ERROR:case R.FRAG_LOAD_ERROR:case R.FRAG_LOAD_TIMEOUT:case R.KEY_LOAD_ERROR:case R.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Fr.MAIN,J);break;case R.LEVEL_LOAD_ERROR:case R.LEVEL_LOAD_TIMEOUT:case R.LEVEL_PARSING_ERROR:!J.levelRetry&&this.state===$i.WAITING_LEVEL&&((ne=J.context)==null?void 0:ne.type)===rr.LEVEL&&(this.state=$i.IDLE);break;case R.BUFFER_FULL_ERROR:if(!J.parent||J.parent!=="main")return;this.reduceLengthAndFlushBuffer(J)&&this.flushMainBuffer(0,Number.POSITIVE_INFINITY);break;case R.INTERNAL_EXCEPTION:this.recoverWorkerError(J);break}}},{key:"checkBuffer",value:function(){var H=this.media,J=this.gapController;if(!H||!J||!H.readyState)return;if(this.loadedmetadata||!Pi.getBuffered(H).length){var ne=this.state!==$i.IDLE?this.fragCurrent:null;J.poll(this.lastCurrentTime,ne)}this.lastCurrentTime=H.currentTime}},{key:"onFragLoadEmergencyAborted",value:function(){this.state=$i.IDLE,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tickImmediate()}},{key:"onBufferFlushed",value:function(H,J){var ne=J.type;if(ne!==Se.AUDIO||this.audioOnly&&!this.altAudio){var we=(ne===Se.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;this.afterBufferFlushed(we,ne,Fr.MAIN)}}},{key:"onLevelsUpdated",value:function(H,J){this.levels=J.levels}},{key:"swapAudioCodec",value:function(){this.audioCodecSwap=!this.audioCodecSwap}},{key:"seekToStartPos",value:function(){var H=this.media;if(!H)return;var J=H.currentTime,ne=this.startPosition;if(ne>=0&&J<ne){if(H.seeking){this.log("could not seek to ".concat(ne,", already seeking at ").concat(J));return}var we=Pi.getBuffered(H),_e=we.length?we.start(0):0,Xe=_e-ne;Xe>0&&(Xe<this.config.maxBufferHole||Xe<this.config.maxFragLookUpTolerance)&&(this.log("adjusting start position by ".concat(Xe," to match buffer start")),ne+=Xe,this.startPosition=ne),this.log("seek to target start position ".concat(ne," from current time ").concat(J)),H.currentTime=ne}}},{key:"_getAudioCodec",value:function(H){var J=this.config.defaultAudioCodec||H.audioCodec;return this.audioCodecSwap&&J&&(this.log("Swapping audio codec"),J.indexOf("mp4a.40.5")!==-1?J="mp4a.40.2":J="mp4a.40.5"),J}},{key:"_loadBitrateTestFrag",value:function(H,J){var ne=this;H.bitrateTest=!0,this._doFragLoad(H,J).then(function(we){var _e=ne.hls;if(!we||ne.fragContextChanged(H))return;J.fragmentError=0,ne.state=$i.IDLE,ne.startFragRequested=!1,ne.bitrateTest=!1;var Xe=H.stats;Xe.parsing.start=Xe.parsing.end=Xe.buffering.start=Xe.buffering.end=self.performance.now(),_e.trigger(_.FRAG_LOADED,we),H.bitrateTest=!1})}},{key:"_handleTransmuxComplete",value:function(H){var J,ne="main",we=this.hls,_e=H.remuxResult,Xe=H.chunkMeta,ut=this.getCurrentContext(Xe);if(!ut){this.resetWhenMissingContext(Xe);return}var ht=ut.frag,Qt=ut.part,Tr=ut.level,br=_e.video,Kr=_e.text,Zr=_e.id3,Pn=_e.initSegment,Nn=Tr.details,Jn=this.altAudio?void 0:_e.audio;if(this.fragContextChanged(ht)){this.fragmentTracker.removeFragment(ht);return}if(this.state=$i.PARSING,Pn){if(Pn!=null&&Pn.tracks){var wi=ht.initSegment||ht;this._bufferInitSegment(Tr,Pn.tracks,wi,Xe),we.trigger(_.FRAG_PARSING_INIT_SEGMENT,{frag:wi,id:ne,tracks:Pn.tracks})}var sa=Pn.initPTS,Wi=Pn.timescale;E(sa)&&(this.initPTS[ht.cc]={baseTime:sa,timescale:Wi},we.trigger(_.INIT_PTS_FOUND,{frag:ht,id:ne,initPTS:sa,timescale:Wi}))}if(br&&Nn&&ht.sn!=="initSegment"){var Ji=Nn.fragments[ht.sn-1-Nn.startSN],La=ht.sn===Nn.startSN,Xa=!Ji||ht.cc>Ji.cc;if(_e.independent!==!1){var Ua=br.startPTS,ba=br.endPTS,_o=br.startDTS,bs=br.endDTS;if(Qt)Qt.elementaryStreams[br.type]={startPTS:Ua,endPTS:ba,startDTS:_o,endDTS:bs};else if(br.firstKeyFrame&&br.independent&&Xe.id===1&&!Xa&&(this.couldBacktrack=!0),br.dropped&&br.independent){var ds=this.getMainFwdBufferInfo(),rl=(ds?ds.end:this.getLoadPosition())+this.config.maxBufferHole,xe=br.firstKeyFramePTS?br.firstKeyFramePTS:Ua;if(!La&&rl<xe-this.config.maxBufferHole&&!Xa){this.backtrack(ht);return}else Xa&&(ht.gap=!0);ht.setElementaryStreamInfo(br.type,ht.start,ba,ht.start,bs,!0)}ht.setElementaryStreamInfo(br.type,Ua,ba,_o,bs),this.backtrackFragment&&(this.backtrackFragment=ht),this.bufferFragmentData(br,ht,Qt,Xe,La||Xa)}else if(La||Xa)ht.gap=!0;else{this.backtrack(ht);return}}if(Jn){var Ye=Jn.startPTS,St=Jn.endPTS,ur=Jn.startDTS,Br=Jn.endDTS;Qt&&(Qt.elementaryStreams[Se.AUDIO]={startPTS:Ye,endPTS:St,startDTS:ur,endDTS:Br}),ht.setElementaryStreamInfo(Se.AUDIO,Ye,St,ur,Br),this.bufferFragmentData(Jn,ht,Qt,Xe)}if(Nn&&Zr!=null&&(J=Zr.samples)!=null&&J.length){var on={id:ne,frag:ht,details:Nn,samples:Zr.samples};we.trigger(_.FRAG_PARSING_METADATA,on)}if(Nn&&Kr){var je={id:ne,frag:ht,details:Nn,samples:Kr.samples};we.trigger(_.FRAG_PARSING_USERDATA,je)}}},{key:"_bufferInitSegment",value:function(H,J,ne,we){var _e=this;if(this.state!==$i.PARSING)return;this.audioOnly=!!J.audio&&!J.video,this.altAudio&&!this.audioOnly&&delete J.audio;var Xe=J.audio,ut=J.video,ht=J.audiovideo;if(Xe){var Qt=H.audioCodec,Tr=navigator.userAgent.toLowerCase();this.audioCodecSwitch&&(Qt&&(Qt.indexOf("mp4a.40.5")!==-1?Qt="mp4a.40.2":Qt="mp4a.40.5"),Xe.metadata.channelCount!==1&&Tr.indexOf("firefox")===-1&&(Qt="mp4a.40.5")),Tr.indexOf("android")!==-1&&Xe.container!=="audio/mpeg"&&(Qt="mp4a.40.2",this.log("Android: force audio codec to ".concat(Qt))),H.audioCodec&&H.audioCodec!==Qt&&this.log('Swapping manifest audio codec "'.concat(H.audioCodec,'" for "').concat(Qt,'"')),Xe.levelCodec=Qt,Xe.id="main",this.log("Init audio buffer, container:".concat(Xe.container,", codecs[selected/level/parsed]=[").concat(Qt||"","/").concat(H.audioCodec||"","/").concat(Xe.codec,"]"))}ut&&(ut.levelCodec=H.videoCodec,ut.id="main",this.log("Init video buffer, container:".concat(ut.container,", codecs[level/parsed]=[").concat(H.videoCodec||"","/").concat(ut.codec,"]"))),ht&&this.log("Init audiovideo buffer, container:".concat(ht.container,", codecs[level/parsed]=[").concat(H.attrs.CODECS||"","/").concat(ht.codec,"]")),this.hls.trigger(_.BUFFER_CODECS,J),Object.keys(J).forEach(function(br){var Kr=J[br],Zr=Kr.initSegment;Zr!=null&&Zr.byteLength&&_e.hls.trigger(_.BUFFER_APPENDING,{type:br,data:Zr,frag:ne,part:null,chunkMeta:we,parent:ne.type})}),this.tick()}},{key:"getMainFwdBufferInfo",value:function(){return this.getFwdBufferInfo(this.mediaBuffer?this.mediaBuffer:this.media,Fr.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=$i.IDLE}},{key:"checkFragmentChanged",value:function(){var H=this.media,J=null;if(H&&H.readyState>1&&H.seeking===!1){var ne=H.currentTime;if(Pi.isBuffered(H,ne)?J=this.getAppendedFrag(ne):Pi.isBuffered(H,ne+.1)&&(J=this.getAppendedFrag(ne+.1)),J){this.backtrackFragment=null;var we=this.fragPlaying,_e=J.level;(!we||J.sn!==we.sn||we.level!==_e||J.urlId!==we.urlId)&&(this.fragPlaying=J,this.hls.trigger(_.FRAG_CHANGED,{frag:J}),(!we||we.level!==_e)&&this.hls.trigger(_.LEVEL_SWITCHED,{level:_e}))}}}},{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 J=H.currentTime,ne=this.currentFrag;if(ne&&E(J)&&E(ne.programDateTime)){var we=ne.programDateTime+(J-ne.start)*1e3;return new Date(we)}}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}(mo),jt=function(){function ve(q){var L=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Object(r.a)(this,ve),this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=q,this.alpha_=q?Math.exp(Math.log(.5)/q):0,this.estimate_=L,this.totalWeight_=K}return Object(s.a)(ve,[{key:"sample",value:function(L,K){var H=Math.pow(this.alpha_,L);this.estimate_=K*(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_}}]),ve}(),sr=function(){function ve(q,L,K){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:100;Object(r.a)(this,ve),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_=K,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new jt(q),this.fast_=new jt(L),this.defaultTTFB_=H,this.ttfb_=new jt(q)}return Object(s.a)(ve,[{key:"update",value:function(L,K){var H=this.slow_,J=this.fast_,ne=this.ttfb_;H.halfLife!==L&&(this.slow_=new jt(L,H.getEstimate(),H.getTotalWeight())),J.halfLife!==K&&(this.fast_=new jt(K,J.getEstimate(),J.getTotalWeight())),ne.halfLife!==L&&(this.ttfb_=new jt(L,ne.getEstimate(),ne.getTotalWeight()))}},{key:"sample",value:function(L,K){L=Math.max(L,this.minDelayMs_);var H=8*K,J=L/1e3,ne=H/J;this.fast_.sample(J,ne),this.slow_.sample(J,ne)}},{key:"sampleTTFB",value:function(L){var K=L/1e3,H=Math.sqrt(2)*Math.exp(-Math.pow(K,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(){}}]),ve}(),_n=function(){function ve(q){Object(r.a)(this,ve),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=q;var L=q.config;this.bwEstimator=new sr(L.abrEwmaSlowVoD,L.abrEwmaFastVoD,L.abrEwmaDefaultEstimate),this.registerListeners()}return Object(s.a)(ve,[{key:"registerListeners",value:function(){var L=this.hls;L.on(_.FRAG_LOADING,this.onFragLoading,this),L.on(_.FRAG_LOADED,this.onFragLoaded,this),L.on(_.FRAG_BUFFERED,this.onFragBuffered,this),L.on(_.LEVEL_SWITCHING,this.onLevelSwitching,this),L.on(_.LEVEL_LOADED,this.onLevelLoaded,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(_.FRAG_LOADING,this.onFragLoading,this),L.off(_.FRAG_LOADED,this.onFragLoaded,this),L.off(_.FRAG_BUFFERED,this.onFragBuffered,this),L.off(_.LEVEL_SWITCHING,this.onLevelSwitching,this),L.off(_.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,K){var H,J=K.frag;if(this.ignoreFragment(J))return;this.fragCurrent=J,this.partCurrent=(H=K.part)!=null?H:null,this.clearTimer(),this.timer=self.setInterval(this.onCheck,100)}},{key:"onLevelSwitching",value:function(L,K){this.clearTimer()}},{key:"getTimeToLoadFrag",value:function(L,K,H,J){var ne=L+H/K,we=J?this.lastLevelLoadSec:0;return ne+we}},{key:"onLevelLoaded",value:function(L,K){var H=this.hls.config,J=K.stats,ne=J.total,we=J.bwEstimate;E(ne)&&E(we)&&(this.lastLevelLoadSec=8*ne/we),K.details.live?this.bwEstimator.update(H.abrEwmaSlowLive,H.abrEwmaFastLive):this.bwEstimator.update(H.abrEwmaSlowVoD,H.abrEwmaFastVoD)}},{key:"_abandonRulesCheck",value:function(){var L=this.fragCurrent,K=this.partCurrent,H=this.hls,J=H.autoLevelEnabled,ne=H.media;if(!L||!ne)return;var we=performance.now(),_e=K?K.stats:L.stats,Xe=K?K.duration:L.duration,ut=we-_e.loading.start;if(_e.aborted||_e.loaded&&_e.loaded===_e.total||L.level===0){this.clearTimer(),this._nextAutoLevel=-1;return}if(!J||ne.paused||!ne.playbackRate||!ne.readyState)return;var ht=H.mainForwardBufferInfo;if(ht===null)return;var Qt=this.bwEstimator.getEstimateTTFB(),Tr=Math.abs(ne.playbackRate);if(ut<=Math.max(Qt,1e3*(Xe/(Tr*2))))return;var br=ht.len/Tr;if(br>=2*Xe/Tr)return;var Kr=_e.loading.first?_e.loading.first-_e.loading.start:-1,Zr=_e.loaded&&Kr>-1,Pn=this.bwEstimator.getEstimate(),Nn=H.levels,Jn=H.minAutoLevel,wi=Nn[L.level],sa=_e.total||Math.max(_e.loaded,Math.round(Xe*wi.maxBitrate/8)),Wi=ut-Kr;Wi<1&&Zr&&(Wi=Math.min(ut,_e.loaded*8/Pn));var Ji=Zr?_e.loaded*1e3/Wi:0,La=Ji?(sa-_e.loaded)/Ji:sa*8/Pn+Qt/1e3;if(La<=br)return;var Xa=Ji?Ji*8:Pn,Ua=Number.POSITIVE_INFINITY,ba;for(ba=L.level-1;ba>Jn;ba--){var _o=Nn[ba].maxBitrate;if(Ua=this.getTimeToLoadFrag(Qt/1e3,Xa,Xe*_o,!Nn[ba].details),Ua<br)break}if(Ua>=La)return;if(Ua>Xe*10)return;H.nextLoadLevel=ba,Zr?this.bwEstimator.sample(ut-Math.min(Qt,Kr),_e.loaded):this.bwEstimator.sampleTTFB(ut),this.clearTimer(),U.warn("[abr] Fragment ".concat(L.sn).concat(K?" part "+K.index:""," of level ").concat(L.level,` is loading too slowly;
Time to underbuffer: `).concat(br.toFixed(3),` s
Estimated load time for current fragment: `).concat(La.toFixed(3),` s
Estimated load time for down switch fragment: `).concat(Ua.toFixed(3),` s
TTFB estimate: `).concat(Kr,`
Current BW estimate: `).concat(E(Pn)?(Pn/1024).toFixed(3):"Unknown",` Kb/s
New BW estimate: `).concat((this.bwEstimator.getEstimate()/1024).toFixed(3),` Kb/s
Aborting and switching to level `).concat(ba)),L.loader&&(this.fragCurrent=this.partCurrent=null,L.abortRequests()),H.trigger(_.FRAG_LOAD_EMERGENCY_ABORTED,{frag:L,part:K,stats:_e})}},{key:"onFragLoaded",value:function(L,K){var H=K.frag,J=K.part,ne=J?J.stats:H.stats;if(H.type===Fr.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 we=J?J.duration:H.duration,_e=this.hls.levels[H.level],Xe=(_e.loaded?_e.loaded.bytes:0)+ne.loaded,ut=(_e.loaded?_e.loaded.duration:0)+we;_e.loaded={bytes:Xe,duration:ut},_e.realBitrate=Math.round(8*Xe/ut)}if(H.bitrateTest){var ht={stats:ne,frag:H,part:J,id:H.type};this.onFragBuffered(_.FRAG_BUFFERED,ht),H.bitrateTest=!1}}},{key:"onFragBuffered",value:function(L,K){var H=K.frag,J=K.part,ne=J!=null&&J.stats.loaded?J.stats:H.stats;if(ne.aborted)return;if(this.ignoreFragment(H))return;var we=ne.parsing.end-ne.loading.start-Math.min(ne.loading.first-ne.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(we,ne.loaded),ne.bwEstimate=this.bwEstimator.getEstimate(),H.bitrateTest?this.bitrateTestDelay=we/1e3:this.bitrateTestDelay=0}},{key:"ignoreFragment",value:function(L){return L.type!==Fr.MAIN||L.sn==="initSegment"}},{key:"clearTimer",value:function(){self.clearInterval(this.timer)}},{key:"nextAutoLevel",get:function(){var L=this._nextAutoLevel,K=this.bwEstimator;if(L!==-1&&!K.canEstimate())return L;var H=this.getNextABRAutoLevel();if(L!==-1){var J=this.hls.levels;if(J.length>Math.max(L,H)&&J[L].loadError<=J[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,K=this.partCurrent,H=this.hls,J=H.maxAutoLevel,ne=H.config,we=H.minAutoLevel,_e=H.media,Xe=K?K.duration:L?L.duration:0,ut=_e&&_e.playbackRate!==0?Math.abs(_e.playbackRate):1,ht=this.bwEstimator?this.bwEstimator.getEstimate():ne.abrEwmaDefaultEstimate,Qt=H.mainForwardBufferInfo,Tr=(Qt?Qt.len:0)/ut,br=this.findBestLevel(ht,we,J,Tr,ne.abrBandWidthFactor,ne.abrBandWidthUpFactor);if(br>=0)return br;U.trace("[abr] ".concat(Tr?"rebuffering expected":"buffer is empty",", finding optimal quality level"));var Kr=Xe?Math.min(Xe,ne.maxStarvationDelay):ne.maxStarvationDelay,Zr=ne.abrBandWidthFactor,Pn=ne.abrBandWidthUpFactor;if(!Tr){var Nn=this.bitrateTestDelay;if(Nn){var Jn=Xe?Math.min(Xe,ne.maxLoadingDelay):ne.maxLoadingDelay;Kr=Jn-Nn,U.trace("[abr] bitrate test took ".concat(Math.round(1e3*Nn),"ms, set first fragment max fetchDuration to ").concat(Math.round(1e3*Kr)," ms")),Zr=Pn=1}}return br=this.findBestLevel(ht,we,J,Tr+Kr,Zr,Pn),Math.max(br,0)}},{key:"findBestLevel",value:function(L,K,H,J,ne,we){for(var _e,Xe=this.fragCurrent,ut=this.partCurrent,ht=this.lastLoadedFragLevel,Qt=this.hls.levels,Tr=Qt[ht],br=!!(Tr!=null&&(_e=Tr.details)!=null&&_e.live),Kr=Tr==null?void 0:Tr.codecSet,Zr=ut?ut.duration:Xe?Xe.duration:0,Pn=this.bwEstimator.getEstimateTTFB()/1e3,Nn=K,Jn=-1,wi=H;wi>=K;wi--){var sa=Qt[wi];if(!sa||Kr&&sa.codecSet!==Kr){sa&&(Nn=Math.min(wi,Nn),Jn=Math.max(wi,Jn));continue}Jn!==-1&&U.trace("[abr] Skipped level(s) ".concat(Nn,"-").concat(Jn,' with CODECS:"').concat(Qt[Jn].attrs.CODECS,'"; not compatible with "').concat(Tr.attrs.CODECS,'"'));var Wi=sa.details,Ji=(ut?Wi==null?void 0:Wi.partTarget:Wi==null?void 0:Wi.averagetargetduration)||Zr,La=void 0;wi<=ht?La=ne*L:La=we*L;var Xa=Qt[wi].maxBitrate,Ua=this.getTimeToLoadFrag(Pn,La,Xa*Ji,Wi===void 0);if(U.trace("[abr] level:".concat(wi," adjustedbw-bitrate:").concat(Math.round(La-Xa)," avgDuration:").concat(Ji.toFixed(1)," maxFetchDuration:").concat(J.toFixed(1)," fetchDuration:").concat(Ua.toFixed(1))),La>Xa&&(Ua===0||!E(Ua)||br&&!this.bitrateTestDelay||Ua<J))return wi}return-1}}]),ve}(),hi=function(){function ve(){Object(r.a)(this,ve),this.chunks=[],this.dataLength=0}return Object(s.a)(ve,[{key:"push",value:function(L){this.chunks.push(L),this.dataLength+=L.length}},{key:"flush",value:function(){var L=this.chunks,K=this.dataLength,H;if(L.length)L.length===1?H=L[0]:H=Nt(L,K);else return new Uint8Array(0);return this.reset(),H}},{key:"reset",value:function(){this.chunks.length=0,this.dataLength=0}}]),ve}();function Nt(ve,q){for(var L=new Uint8Array(q),K=0,H=0;H<ve.length;H++){var J=ve[H];L.set(J,K),K+=J.length}return L}var ce=100,Ee=function(ve){Object(a.a)(L,ve);var q=Object(e.a)(L);function L(K,H,J){var ne;return Object(r.a)(this,L),ne=q.call(this,K,H,J,"[audio-stream-controller]",Fr.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(_.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(_.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(_.MANIFEST_LOADING,this.onManifestLoading,this),H.on(_.LEVEL_LOADED,this.onLevelLoaded,this),H.on(_.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),H.on(_.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.on(_.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.on(_.ERROR,this.onError,this),H.on(_.BUFFER_RESET,this.onBufferReset,this),H.on(_.BUFFER_CREATED,this.onBufferCreated,this),H.on(_.BUFFER_FLUSHED,this.onBufferFlushed,this),H.on(_.INIT_PTS_FOUND,this.onInitPtsFound,this),H.on(_.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(_.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(_.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(_.MANIFEST_LOADING,this.onManifestLoading,this),H.off(_.LEVEL_LOADED,this.onLevelLoaded,this),H.off(_.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),H.off(_.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),H.off(_.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.off(_.ERROR,this.onError,this),H.off(_.BUFFER_RESET,this.onBufferReset,this),H.off(_.BUFFER_CREATED,this.onBufferCreated,this),H.off(_.BUFFER_FLUSHED,this.onBufferFlushed,this),H.off(_.INIT_PTS_FOUND,this.onInitPtsFound,this),H.off(_.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"onInitPtsFound",value:function(H,J){var ne=J.frag,we=J.id,_e=J.initPTS,Xe=J.timescale;if(we==="main"){var ut=ne.cc;this.initPTS[ne.cc]={baseTime:_e,timescale:Xe},this.log("InitPTS for cc: ".concat(ut," found from main: ").concat(_e)),this.videoTrackCC=ut,this.state===$i.WAITING_INIT_PTS&&this.tick()}}},{key:"startLoad",value:function(H){if(!this.levels){this.startPosition=H,this.state=$i.STOPPED;return}var J=this.lastCurrentTime;this.stopLoad(),this.setInterval(ce),J>0&&H===-1?(this.log("Override startPosition with lastCurrentTime @".concat(J.toFixed(3))),H=J,this.state=$i.IDLE):(this.loadedmetadata=!1,this.state=$i.WAITING_TRACK),this.nextLoadPosition=this.startPosition=this.lastCurrentTime=H,this.tick()}},{key:"doTick",value:function(){switch(this.state){case $i.IDLE:this.doTickIdle();break;case $i.WAITING_TRACK:{var H,J=this.levels,ne=this.trackId,we=J==null||(H=J[ne])==null?void 0:H.details;if(we){if(this.waitForCdnTuneIn(we))break;this.state=$i.WAITING_INIT_PTS}break}case $i.FRAG_LOADING_WAITING_RETRY:{var _e,Xe=performance.now(),ut=this.retryDate;(!ut||Xe>=ut||(_e=this.media)!=null&&_e.seeking)&&(this.log("RetryDate reached, switch back to IDLE state"),this.resetStartWhenNotLoaded(this.trackId),this.state=$i.IDLE);break}case $i.WAITING_INIT_PTS:{var ht=this.waitingData;if(ht){var Qt=ht.frag,Tr=ht.part,br=ht.cache,Kr=ht.complete;if(this.initPTS[Qt.cc]!==void 0){this.waitingData=null,this.waitingVideoCC=-1,this.state=$i.FRAG_LOADING;var Zr=br.flush(),Pn={frag:Qt,part:Tr,payload:Zr,networkDetails:null};this._handleFragmentLoadProgress(Pn),Kr&&Object(t.a)(Object(m.a)(L.prototype),"_handleFragmentLoadComplete",this).call(this,Pn)}else if(this.videoTrackCC!==this.waitingVideoCC)this.log("Waiting fragment cc (".concat(Qt.cc,") cancelled because video is at cc ").concat(this.videoTrackCC)),this.clearWaitingFragment();else{var Nn=this.getLoadPosition(),Jn=Pi.bufferInfo(this.mediaBuffer,Nn,this.config.maxBufferHole),wi=ea(Jn.end,this.config.maxFragLookUpTolerance,Qt);wi<0&&(this.log("Waiting fragment cc (".concat(Qt.cc,") @ ").concat(Qt.start," cancelled because another fragment at ").concat(Jn.end," is needed")),this.clearWaitingFragment())}}else this.state=$i.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=$i.IDLE)}},{key:"resetLoadingState",value:function(){this.clearWaitingFragment(),Object(t.a)(Object(m.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,J=this.levels,ne=this.media,we=this.trackId,_e=H.config;if(!(J!=null&&J[we]))return;if(!ne&&(this.startFragRequested||!_e.startFragPrefetch))return;var Xe=J[we],ut=Xe.details;if(!ut||ut.live&&this.levelLastLoaded!==we||this.waitForCdnTuneIn(ut)){this.state=$i.WAITING_TRACK;return}var ht=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&ht&&(this.bufferFlushed=!1,this.afterBufferFlushed(ht,Se.AUDIO,Fr.AUDIO));var Qt=this.getFwdBufferInfo(ht,Fr.AUDIO);if(Qt===null)return;var Tr=this.bufferedTrack,br=this.switchingTrack;if(!br&&this._streamEnded(Qt,ut)){H.trigger(_.BUFFER_EOS,{type:"audio"}),this.state=$i.ENDED;return}var Kr=this.getFwdBufferInfo(this.videoBuffer?this.videoBuffer:this.media,Fr.MAIN),Zr=Qt.len,Pn=this.getMaxBufferLength(Kr==null?void 0:Kr.len);if(Zr>=Pn&&!br)return;var Nn=ut.fragments,Jn=Nn[0].start,wi=Qt.end;if(br&&ne){var sa=this.getLoadPosition();Tr&&br.attrs!==Tr.attrs&&(wi=sa),ut.PTSKnown&&sa<Jn&&((Qt.end>Jn||Qt.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),ne.currentTime=Jn+.05))}var Wi=this.getNextFragment(wi,ut),Ji=!1;if(Wi&&this.isLoopLoading(Wi,wi)&&(Ji=!!Wi.gap,Wi=this.getNextFragmentLoopLoading(Wi,ut,Qt,Fr.MAIN,Pn)),!Wi){this.bufferFlushed=!0;return}var La=Kr&&Wi.start>Kr.end+ut.targetduration;if(La||!(Kr!=null&&Kr.len)&&Qt.len){var Xa=this.getAppendedFrag(Wi.start,Fr.MAIN);if(Xa===null)return;if(Ji||(Ji=!!Xa.gap||!!La&&Kr.len===0),La&&!Ji||Ji&&Qt.nextStart&&Qt.nextStart<Xa.end)return}this.loadFragment(Wi,Xe,wi)}},{key:"getMaxBufferLength",value:function(H){var J=Object(t.a)(Object(m.a)(L.prototype),"getMaxBufferLength",this).call(this);return H?Math.min(Math.max(J,H),this.config.maxMaxBufferLength):J}},{key:"onMediaDetaching",value:function(){this.videoBuffer=null,Object(t.a)(Object(m.a)(L.prototype),"onMediaDetaching",this).call(this)}},{key:"onAudioTracksUpdated",value:function(H,J){var ne=J.audioTracks;this.resetTransmuxer(),this.levels=ne.map(function(we){return new yr(we)})}},{key:"onAudioTrackSwitching",value:function(H,J){var ne=!!J.url;this.trackId=J.id;var we=this.fragCurrent;we&&(we.abortRequests(),this.removeUnbufferedFrags(we.start)),this.resetLoadingState(),ne?this.setInterval(ce):this.resetTransmuxer(),ne?(this.switchingTrack=J,this.state=$i.IDLE):(this.switchingTrack=null,this.bufferedTrack=J,this.state=$i.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,J){this.mainDetails=J.details,this.cachedTrackLoadedData!==null&&(this.hls.trigger(_.AUDIO_TRACK_LOADED,this.cachedTrackLoadedData),this.cachedTrackLoadedData=null)}},{key:"onAudioTrackLoaded",value:function(H,J){var ne;if(this.mainDetails==null){this.cachedTrackLoadedData=J;return}var we=this.levels,_e=J.details,Xe=J.id;if(!we){this.warn("Audio tracks were reset while loading level ".concat(Xe));return}this.log("Track ".concat(Xe," loaded [").concat(_e.startSN,",").concat(_e.endSN,"]").concat(_e.lastPartSn?"[part-".concat(_e.lastPartSn,"-").concat(_e.lastPartIndex,"]"):"",",duration:").concat(_e.totalduration));var ut=we[Xe],ht=0;if(_e.live||(ne=ut.details)!=null&&ne.live){this.checkLiveUpdate(_e);var Qt=this.mainDetails;if(_e.deltaUpdateFailed||!Qt)return;!ut.details&&_e.hasProgramDateTime&&Qt.hasProgramDateTime?(_a(_e,Qt),ht=_e.fragments[0].start):ht=this.alignPlaylists(_e,ut.details)}ut.details=_e,this.levelLastLoaded=Xe,!this.startFragRequested&&(this.mainDetails||!_e.live)&&this.setStartPosition(ut.details,ht),this.state===$i.WAITING_TRACK&&!this.waitForCdnTuneIn(_e)&&(this.state=$i.IDLE),this.tick()}},{key:"_handleFragmentLoadProgress",value:function(H){var J,ne=H.frag,we=H.part,_e=H.payload,Xe=this.config,ut=this.trackId,ht=this.levels;if(!ht){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 Qt=ht[ut];if(!Qt){this.warn("Audio track is undefined on fragment load progress");return}var Tr=Qt.details;if(!Tr){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(ne.start);return}var br=Xe.defaultAudioCodec||Qt.audioCodec||"mp4a.40.2",Kr=this.transmuxer;Kr||(Kr=this.transmuxer=new Ds(this.hls,Fr.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));var Zr=this.initPTS[ne.cc],Pn=(J=ne.initSegment)==null?void 0:J.data;if(Zr!==void 0){var Nn=!1,Jn=we?we.index:-1,wi=Jn!==-1,sa=new Ki(ne.level,ne.sn,ne.stats.chunkCount,_e.byteLength,Jn,wi);Kr.push(_e,Pn,br,"",ne,we,Tr.totalduration,Nn,sa,Zr)}else{this.log("Unknown video PTS for cc ".concat(ne.cc,", waiting for video PTS before demuxing audio frag ").concat(ne.sn," of [").concat(Tr.startSN," ,").concat(Tr.endSN,"],track ").concat(ut));var Wi=this.waitingData=this.waitingData||{frag:ne,part:we,cache:new hi,complete:!1},Ji=Wi.cache;Ji.push(new Uint8Array(_e)),this.waitingVideoCC=this.videoTrackCC,this.state=$i.WAITING_INIT_PTS}}},{key:"_handleFragmentLoadComplete",value:function(H){if(this.waitingData){this.waitingData.complete=!0;return}Object(t.a)(Object(m.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,J){var ne=J.tracks.audio;ne&&(this.mediaBuffer=ne.buffer||null),J.tracks.video&&(this.videoBuffer=J.tracks.video.buffer||null)}},{key:"onFragBuffered",value:function(H,J){var ne=J.frag,we=J.part;if(ne.type!==Fr.AUDIO){if(!this.loadedmetadata&&ne.type===Fr.MAIN){var _e=this.videoBuffer||this.media;if(_e){var Xe=Pi.getBuffered(_e);Xe.length&&(this.loadedmetadata=!0)}}return}if(this.fragContextChanged(ne)){this.warn("Fragment ".concat(ne.sn).concat(we?" p: "+we.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 ut=this.switchingTrack;ut&&(this.bufferedTrack=ut,this.switchingTrack=null,this.hls.trigger(_.AUDIO_TRACK_SWITCHED,b({},ut)))}this.fragBufferedComplete(ne,we)}},{key:"onError",value:function(H,J){var ne;if(J.fatal){this.state=$i.ERROR;return}switch(J.details){case R.FRAG_GAP:case R.FRAG_PARSING_ERROR:case R.FRAG_DECRYPT_ERROR:case R.FRAG_LOAD_ERROR:case R.FRAG_LOAD_TIMEOUT:case R.KEY_LOAD_ERROR:case R.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Fr.AUDIO,J);break;case R.AUDIO_TRACK_LOAD_ERROR:case R.AUDIO_TRACK_LOAD_TIMEOUT:case R.LEVEL_PARSING_ERROR:!J.levelRetry&&this.state===$i.WAITING_TRACK&&((ne=J.context)==null?void 0:ne.type)===rr.AUDIO_TRACK&&(this.state=$i.IDLE);break;case R.BUFFER_FULL_ERROR:if(!J.parent||J.parent!=="audio")return;this.reduceLengthAndFlushBuffer(J)&&(this.bufferedTrack=null,Object(t.a)(Object(m.a)(L.prototype),"flushMainBuffer",this).call(this,0,Number.POSITIVE_INFINITY,"audio"));break;case R.INTERNAL_EXCEPTION:this.recoverWorkerError(J);break}}},{key:"onBufferFlushed",value:function(H,J){var ne=J.type;ne===Se.AUDIO&&(this.bufferFlushed=!0,this.state===$i.ENDED&&(this.state=$i.IDLE))}},{key:"_handleTransmuxComplete",value:function(H){var J,ne="audio",we=this.hls,_e=H.remuxResult,Xe=H.chunkMeta,ut=this.getCurrentContext(Xe);if(!ut){this.resetWhenMissingContext(Xe);return}var ht=ut.frag,Qt=ut.part,Tr=ut.level,br=Tr.details,Kr=_e.audio,Zr=_e.text,Pn=_e.id3,Nn=_e.initSegment;if(this.fragContextChanged(ht)||!br){this.fragmentTracker.removeFragment(ht);return}if(this.state=$i.PARSING,this.switchingTrack&&Kr&&this.completeAudioSwitch(this.switchingTrack),Nn!=null&&Nn.tracks){var Jn=ht.initSegment||ht;this._bufferInitSegment(Nn.tracks,Jn,Xe),we.trigger(_.FRAG_PARSING_INIT_SEGMENT,{frag:Jn,id:ne,tracks:Nn.tracks})}if(Kr){var wi=Kr.startPTS,sa=Kr.endPTS,Wi=Kr.startDTS,Ji=Kr.endDTS;Qt&&(Qt.elementaryStreams[Se.AUDIO]={startPTS:wi,endPTS:sa,startDTS:Wi,endDTS:Ji}),ht.setElementaryStreamInfo(Se.AUDIO,wi,sa,Wi,Ji),this.bufferFragmentData(Kr,ht,Qt,Xe)}if(Pn!=null&&(J=Pn.samples)!=null&&J.length){var La=x({id:ne,frag:ht,details:br},Pn);we.trigger(_.FRAG_PARSING_METADATA,La)}if(Zr){var Xa=x({id:ne,frag:ht,details:br},Zr);we.trigger(_.FRAG_PARSING_USERDATA,Xa)}}},{key:"_bufferInitSegment",value:function(H,J,ne){if(this.state!==$i.PARSING)return;H.video&&delete H.video;var we=H.audio;if(!we)return;we.levelCodec=we.codec,we.id="audio",this.log("Init audio buffer, container:".concat(we.container,", codecs[parsed]=[").concat(we.codec,"]")),this.hls.trigger(_.BUFFER_CODECS,H);var _e=we.initSegment;if(_e!=null&&_e.byteLength){var Xe={type:"audio",frag:J,part:null,chunkMeta:ne,parent:J.type,data:_e};this.hls.trigger(_.BUFFER_APPENDING,Xe)}this.tick()}},{key:"loadFragment",value:function(H,J,ne){var we=this.fragmentTracker.getState(H);if(this.fragCurrent=H,this.switchingTrack||we===Jr.NOT_LOADED||we===Jr.PARTIAL){var _e;H.sn==="initSegment"?this._loadInitSegment(H,J):(_e=J.details)!=null&&_e.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=$i.WAITING_INIT_PTS):(this.startFragRequested=!0,Object(t.a)(Object(m.a)(L.prototype),"loadFragment",this).call(this,H,J,ne))}else this.clearTrackerIfNeeded(H)}},{key:"completeAudioSwitch",value:function(H){var J=this.hls,ne=this.media,we=this.bufferedTrack,_e=we==null?void 0:we.attrs,Xe=H.attrs;ne&&_e&&(_e.CHANNELS!==Xe.CHANNELS||_e.NAME!==Xe.NAME||_e.LANGUAGE!==Xe.LANGUAGE)&&(this.log("Switching audio track : flushing all audio"),Object(t.a)(Object(m.a)(L.prototype),"flushMainBuffer",this).call(this,0,Number.POSITIVE_INFINITY,"audio")),this.bufferedTrack=H,this.switchingTrack=null,J.trigger(_.AUDIO_TRACK_SWITCHED,b({},H))}}]),L}(mo),Le=function(ve){Object(a.a)(L,ve);var q=Object(e.a)(L);function L(K){var H;return Object(r.a)(this,L),H=q.call(this,K,"[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(_.MANIFEST_LOADING,this.onManifestLoading,this),H.on(_.MANIFEST_PARSED,this.onManifestParsed,this),H.on(_.LEVEL_LOADING,this.onLevelLoading,this),H.on(_.LEVEL_SWITCHING,this.onLevelSwitching,this),H.on(_.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.on(_.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var H=this.hls;H.off(_.MANIFEST_LOADING,this.onManifestLoading,this),H.off(_.MANIFEST_PARSED,this.onManifestParsed,this),H.off(_.LEVEL_LOADING,this.onLevelLoading,this),H.off(_.LEVEL_SWITCHING,this.onLevelSwitching,this),H.off(_.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),H.off(_.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(m.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,J){this.tracks=J.audioTracks||[]}},{key:"onAudioTrackLoaded",value:function(H,J){var ne=J.id,we=J.groupId,_e=J.details,Xe=this.tracksInGroup[ne];if(!Xe||Xe.groupId!==we){this.warn("Track with id:".concat(ne," and group:").concat(we," not found in active group ").concat(Xe.groupId));return}var ut=Xe.details;Xe.details=J.details,this.log("audio-track ".concat(ne,' "').concat(Xe.name,'" lang:').concat(Xe.lang," group:").concat(we," loaded [").concat(_e.startSN,"-").concat(_e.endSN,"]")),ne===this.trackId&&this.playlistLoaded(ne,J,ut)}},{key:"onLevelLoading",value:function(H,J){this.switchLevel(J.level)}},{key:"onLevelSwitching",value:function(H,J){this.switchLevel(J.level)}},{key:"switchLevel",value:function(H){var J=this.hls.levels[H];if(!(J!=null&&J.audioGroupIds))return;var ne=J.audioGroupIds[J.urlId];if(this.groupId!==ne){this.groupId=ne||null;var we=this.tracks.filter(function(Xe){return!ne||Xe.groupId===ne});this.selectDefaultTrack&&!we.some(function(Xe){return Xe.default})&&(this.selectDefaultTrack=!1),this.tracksInGroup=we;var _e={audioTracks:we};this.log("Updating audio tracks, ".concat(we.length," track(s) found in group:").concat(ne)),this.hls.trigger(_.AUDIO_TRACKS_UPDATED,_e),this.selectInitialTrack()}else this.shouldReloadPlaylist(this.currentTrack)&&this.setAudioTrack(this.trackId)}},{key:"onError",value:function(H,J){if(J.fatal||!J.context)return;J.context.type===rr.AUDIO_TRACK&&J.context.id===this.trackId&&J.context.groupId===this.groupId&&(this.requestScheduled=-1,this.checkRetry(J))}},{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 J=this.tracksInGroup;if(H<0||H>=J.length){this.warn("Invalid id passed to audio-track controller");return}this.clearTimer();var ne=this.currentTrack;J[this.trackId];var we=J[H],_e=we.groupId,Xe=we.name;if(this.log("Switching to audio-track ".concat(H,' "').concat(Xe,'" lang:').concat(we.lang," group:").concat(_e)),this.trackId=H,this.currentTrack=we,this.selectDefaultTrack=!1,this.hls.trigger(_.AUDIO_TRACK_SWITCHING,b({},we)),we.details&&!we.details.live)return;var ut=this.switchParams(we.url,ne==null?void 0:ne.details);this.loadPlaylist(ut)}},{key:"selectInitialTrack",value:function(){var H=this.tracksInGroup,J=this.findTrackId(this.currentTrack)|this.findTrackId(null);if(J!==-1)this.setAudioTrack(J);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(_.ERROR,{type:F.MEDIA_ERROR,details:R.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:ne})}}},{key:"findTrackId",value:function(H){for(var J=this.tracksInGroup,ne=0;ne<J.length;ne++){var we=J[ne];if(!this.selectDefaultTrack||we.default){if(!H||H.attrs["STABLE-RENDITION-ID"]!==void 0&&H.attrs["STABLE-RENDITION-ID"]===we.attrs["STABLE-RENDITION-ID"])return we.id;if(H.name===we.name&&H.lang===we.lang)return we.id}}return-1}},{key:"loadPlaylist",value:function(H){Object(t.a)(Object(m.a)(L.prototype),"loadPlaylist",this).call(this);var J=this.tracksInGroup[this.trackId];if(this.shouldLoadPlaylist(J)){var ne=J.id,we=J.groupId,_e=J.url;if(H)try{_e=H.addDirectives(_e)}catch(Xe){this.warn("Could not construct new URL with HLS Delivery Directives: ".concat(Xe))}this.log("loading audio-track playlist ".concat(ne,' "').concat(J.name,'" lang:').concat(J.lang," group:").concat(we)),this.clearTimer(),this.hls.trigger(_.AUDIO_TRACK_LOADING,{url:_e,id:ne,groupId:we,deliveryDirectives:H||null})}}}]),L}(ln);function Qe(ve,q){if(ve.length!==q.length)return!1;for(var L=0;L<ve.length;L++)if(!Rt(ve[L].attrs,q[L].attrs))return!1;return!0}function Rt(ve,q){var L=ve["STABLE-RENDITION-ID"];return L?L===q["STABLE-RENDITION-ID"]:!["LANGUAGE","NAME","CHARACTERISTICS","AUTOSELECT","DEFAULT","FORCED"].some(function(K){return ve[K]!==q[K]})}var lr=500,Qr=function(ve){Object(a.a)(L,ve);var q=Object(e.a)(L);function L(K,H,J){var ne;return Object(r.a)(this,L),ne=q.call(this,K,H,J,"[subtitle-stream-controller]",Fr.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(_.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(_.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(_.MANIFEST_LOADING,this.onManifestLoading,this),H.on(_.LEVEL_LOADED,this.onLevelLoaded,this),H.on(_.ERROR,this.onError,this),H.on(_.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),H.on(_.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),H.on(_.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.on(_.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),H.on(_.BUFFER_FLUSHING,this.onBufferFlushing,this),H.on(_.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"_unregisterListeners",value:function(){var H=this.hls;H.off(_.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(_.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(_.MANIFEST_LOADING,this.onManifestLoading,this),H.off(_.LEVEL_LOADED,this.onLevelLoaded,this),H.off(_.ERROR,this.onError,this),H.off(_.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),H.off(_.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),H.off(_.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.off(_.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),H.off(_.BUFFER_FLUSHING,this.onBufferFlushing,this),H.off(_.FRAG_BUFFERED,this.onFragBuffered,this)}},{key:"startLoad",value:function(H){this.stopLoad(),this.state=$i.IDLE,this.setInterval(lr),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(m.a)(L.prototype),"onMediaDetaching",this).call(this)}},{key:"onLevelLoaded",value:function(H,J){this.mainDetails=J.details}},{key:"onSubtitleFragProcessed",value:function(H,J){var ne=J.frag,we=J.success;if(this.fragPrevious=ne,this.state=$i.IDLE,!we)return;var _e=this.tracksBuffered[this.currentTrackId];if(!_e)return;for(var Xe,ut=ne.start,ht=0;ht<_e.length;ht++)if(ut>=_e[ht].start&&ut<=_e[ht].end){Xe=_e[ht];break}var Qt=ne.start+ne.duration;Xe?Xe.end=Qt:(Xe={start:ut,end:Qt},_e.push(Xe)),this.fragmentTracker.fragBuffered(ne)}},{key:"onBufferFlushing",value:function(H,J){var ne=J.startOffset,we=J.endOffset;if(ne===0&&we!==Number.POSITIVE_INFINITY){var _e=we-1;if(_e<=0)return;J.endOffsetSubtitles=Math.max(0,_e),this.tracksBuffered.forEach(function(Xe){for(var ut=0;ut<Xe.length;){if(Xe[ut].end<=_e){Xe.shift();continue}else if(Xe[ut].start<_e)Xe[ut].start=_e;else break;ut++}}),this.fragmentTracker.removeFragmentsInRange(ne,_e,Fr.SUBTITLE)}}},{key:"onFragBuffered",value:function(H,J){if(!this.loadedmetadata&&J.frag.type===Fr.MAIN){var ne;(ne=this.media)!=null&&ne.buffered.length&&(this.loadedmetadata=!0)}}},{key:"onError",value:function(H,J){var ne=J.frag;(ne==null?void 0:ne.type)===Fr.SUBTITLE&&(this.fragCurrent&&this.fragCurrent.abortRequests(),this.state!==$i.STOPPED&&(this.state=$i.IDLE))}},{key:"onSubtitleTracksUpdated",value:function(H,J){var ne=this,we=J.subtitleTracks;if(Qe(this.levels,we)){this.levels=we.map(function(_e){return new yr(_e)});return}this.tracksBuffered=[],this.levels=we.map(function(_e){var Xe=new yr(_e);return ne.tracksBuffered[Xe.id]=[],Xe}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,Fr.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}},{key:"onSubtitleTrackSwitch",value:function(H,J){if(this.currentTrackId=J.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(lr)}},{key:"onSubtitleTrackLoaded",value:function(H,J){var ne,we=J.details,_e=J.id,Xe=this.currentTrackId,ut=this.levels;if(!ut.length)return;var ht=ut[Xe];if(_e>=ut.length||_e!==Xe||!ht)return;this.mediaBuffer=this.mediaBufferTimeRanges;var Qt=0;if(we.live||(ne=ht.details)!=null&&ne.live){var Tr=this.mainDetails;if(we.deltaUpdateFailed||!Tr)return;var br=Tr.fragments[0];ht.details?(Qt=this.alignPlaylists(we,ht.details),Qt===0&&br&&(Qt=br.start,zn(we,Qt))):we.hasProgramDateTime&&Tr.hasProgramDateTime?(_a(we,Tr),Qt=we.fragments[0].start):br&&(Qt=br.start,zn(we,Qt))}if(ht.details=we,this.levelLastLoaded=_e,!this.startFragRequested&&(this.mainDetails||!we.live)&&this.setStartPosition(ht.details,Qt),this.tick(),we.live&&!this.fragCurrent&&this.media&&this.state===$i.IDLE){var Kr=ha(null,we.fragments,this.media.currentTime,0);Kr||(this.warn("Subtitle playlist not aligned with playback"),ht.details=void 0)}}},{key:"_handleFragmentLoadComplete",value:function(H){var J=this,ne=H.frag,we=H.payload,_e=ne.decryptdata,Xe=this.hls;if(this.fragContextChanged(ne))return;if(we&&we.byteLength>0&&_e&&_e.key&&_e.iv&&_e.method==="AES-128"){var ut=performance.now();this.decrypter.decrypt(new Uint8Array(we),_e.key.buffer,_e.iv.buffer).catch(function(ht){throw Xe.trigger(_.ERROR,{type:F.MEDIA_ERROR,details:R.FRAG_DECRYPT_ERROR,fatal:!1,error:ht,reason:ht.message,frag:ne}),ht}).then(function(ht){var Qt=performance.now();Xe.trigger(_.FRAG_DECRYPTED,{frag:ne,payload:ht,stats:{tstart:ut,tdecrypt:Qt}})}).catch(function(ht){J.warn("".concat(ht.name,": ").concat(ht.message)),J.state=$i.IDLE})}}},{key:"doTick",value:function(){if(!this.media){this.state=$i.IDLE;return}if(this.state===$i.IDLE){var H=this.currentTrackId,J=this.levels,ne=J[H];if(!J.length||!ne||!ne.details)return;var we=this.config,_e=this.getLoadPosition(),Xe=Pi.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],_e,we.maxBufferHole),ut=Xe.end,ht=Xe.len,Qt=this.getFwdBufferInfo(this.media,Fr.MAIN),Tr=ne.details,br=this.getMaxBufferLength(Qt==null?void 0:Qt.len)+Tr.levelTargetDuration;if(ht>br)return;var Kr=Tr.fragments,Zr=Kr.length,Pn=Tr.edge,Nn=null,Jn=this.fragPrevious;if(ut<Pn){var wi=we.maxFragLookUpTolerance,sa=ut>Pn-wi?0:wi;Nn=ha(Jn,Kr,Math.max(Kr[0].start,ut),sa),!Nn&&Jn&&Jn.start<Kr[0].start&&(Nn=Kr[0])}else Nn=Kr[Zr-1];if(!Nn)return;if(Nn=this.mapToInitFragWhenRequired(Nn),Nn.sn!=="initSegment"){var Wi=Nn.sn-Tr.startSN,Ji=Kr[Wi-1];Ji&&Ji.cc===Nn.cc&&this.fragmentTracker.getState(Ji)===Jr.NOT_LOADED&&(Nn=Ji)}this.fragmentTracker.getState(Nn)===Jr.NOT_LOADED&&this.loadFragment(Nn,ne,ut)}}},{key:"getMaxBufferLength",value:function(H){var J=Object(t.a)(Object(m.a)(L.prototype),"getMaxBufferLength",this).call(this);return H?Math.max(J,H):J}},{key:"loadFragment",value:function(H,J,ne){this.fragCurrent=H,H.sn==="initSegment"?this._loadInitSegment(H,J):(this.startFragRequested=!0,Object(t.a)(Object(m.a)(L.prototype),"loadFragment",this).call(this,H,J,ne))}},{key:"mediaBufferTimeRanges",get:function(){return new pn(this.tracksBuffered[this.currentTrackId]||[])}}]),L}(mo),pn=Object(s.a)(function ve(q){Object(r.a)(this,ve),this.buffered=void 0;var L=function(H,J,ne){if(J=J>>>0,J>ne-1)throw new DOMException("Failed to execute '".concat(H,"' on 'TimeRanges': The index provided (").concat(J,") is greater than the maximum bound (").concat(ne,")"));return q[J][H]};this.buffered={get length(){return q.length},end:function(H){return L("end",H,q.length)},start:function(H){return L("start",H,q.length)}}}),In=function(ve){Object(a.a)(L,ve);var q=Object(e.a)(L);function L(K){var H;return Object(r.a)(this,L),H=q.call(this,K,"[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(m.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(_.MEDIA_ATTACHED,this.onMediaAttached,this),H.on(_.MEDIA_DETACHING,this.onMediaDetaching,this),H.on(_.MANIFEST_LOADING,this.onManifestLoading,this),H.on(_.MANIFEST_PARSED,this.onManifestParsed,this),H.on(_.LEVEL_LOADING,this.onLevelLoading,this),H.on(_.LEVEL_SWITCHING,this.onLevelSwitching,this),H.on(_.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.on(_.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var H=this.hls;H.off(_.MEDIA_ATTACHED,this.onMediaAttached,this),H.off(_.MEDIA_DETACHING,this.onMediaDetaching,this),H.off(_.MANIFEST_LOADING,this.onManifestLoading,this),H.off(_.MANIFEST_PARSED,this.onManifestParsed,this),H.off(_.LEVEL_LOADING,this.onLevelLoading,this),H.off(_.LEVEL_SWITCHING,this.onLevelSwitching,this),H.off(_.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),H.off(_.ERROR,this.onError,this)}},{key:"onMediaAttached",value:function(H,J){if(this.media=J.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=li(this.media.textTracks);H.forEach(function(J){Rn(J)}),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,J){this.tracks=J.subtitleTracks}},{key:"onSubtitleTrackLoaded",value:function(H,J){var ne=J.id,we=J.details,_e=this.trackId,Xe=this.tracksInGroup[_e];if(!Xe){this.warn("Invalid subtitle track id ".concat(ne));return}var ut=Xe.details;Xe.details=J.details,this.log("subtitle track ".concat(ne," loaded [").concat(we.startSN,"-").concat(we.endSN,"]")),ne===this.trackId&&this.playlistLoaded(ne,J,ut)}},{key:"onLevelLoading",value:function(H,J){this.switchLevel(J.level)}},{key:"onLevelSwitching",value:function(H,J){this.switchLevel(J.level)}},{key:"switchLevel",value:function(H){var J=this.hls.levels[H];if(!(J!=null&&J.textGroupIds))return;var ne=J.textGroupIds[J.urlId],we=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;if(this.groupId!==ne){var _e=this.tracks.filter(function(ht){return!ne||ht.groupId===ne});this.tracksInGroup=_e;var Xe=this.findTrackId(we==null?void 0:we.name)||this.findTrackId();this.groupId=ne||null;var ut={subtitleTracks:_e};this.log("Updating subtitle tracks, ".concat(_e.length,' track(s) found in "').concat(ne,'" group-id')),this.hls.trigger(_.SUBTITLE_TRACKS_UPDATED,ut),Xe!==-1&&this.setSubtitleTrack(Xe,we)}else this.shouldReloadPlaylist(we)&&this.setSubtitleTrack(this.trackId,we)}},{key:"findTrackId",value:function(H){for(var J=this.tracksInGroup,ne=0;ne<J.length;ne++){var we=J[ne];if((!this.selectDefaultTrack||we.default)&&(!H||H===we.name))return we.id}return-1}},{key:"onError",value:function(H,J){if(J.fatal||!J.context)return;J.context.type===rr.SUBTITLE_TRACK&&J.context.id===this.trackId&&J.context.groupId===this.groupId&&this.checkRetry(J)}},{key:"subtitleTracks",get:function(){return this.tracksInGroup}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(H){this.selectDefaultTrack=!1;var J=this.tracksInGroup?this.tracksInGroup[this.trackId]:void 0;this.setSubtitleTrack(H,J)}},{key:"loadPlaylist",value:function(H){Object(t.a)(Object(m.a)(L.prototype),"loadPlaylist",this).call(this);var J=this.tracksInGroup[this.trackId];if(this.shouldLoadPlaylist(J)){var ne=J.id,we=J.groupId,_e=J.url;if(H)try{_e=H.addDirectives(_e)}catch(Xe){this.warn("Could not construct new URL with HLS Delivery Directives: ".concat(Xe))}this.log("Loading subtitle playlist for id ".concat(ne)),this.hls.trigger(_.SUBTITLE_TRACK_LOADING,{url:_e,id:ne,groupId:we,deliveryDirectives:H||null})}}},{key:"toggleTrackModes",value:function(H){var J=this,ne=this.media,we=this.trackId;if(!ne)return;var _e=li(ne.textTracks),Xe=_e.filter(function(Qt){return Qt.groupId===J.groupId});if(H===-1)[].slice.call(_e).forEach(function(Qt){Qt.mode="disabled"});else{var ut=Xe[we];ut&&(ut.mode="disabled")}var ht=Xe[H];ht&&(ht.mode=this.subtitleDisplay?"showing":"hidden")}},{key:"setSubtitleTrack",value:function(H,J){var ne,we=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=H;return}if(this.trackId!==H&&this.toggleTrackModes(H),this.trackId===H&&(H===-1||(ne=we[H])!=null&&ne.details)||H<-1||H>=we.length)return;this.clearTimer();var _e=we[H];if(this.log("Switching to subtitle-track ".concat(H)+(_e?' "'.concat(_e.name,'" lang:').concat(_e.lang," group:").concat(_e.groupId):"")),this.trackId=H,_e){var Xe=_e.id,ut=_e.groupId,ht=ut===void 0?"":ut,Qt=_e.name,Tr=_e.type,br=_e.url;this.hls.trigger(_.SUBTITLE_TRACK_SWITCH,{id:Xe,groupId:ht,name:Qt,type:Tr,url:br});var Kr=this.switchParams(_e.url,J==null?void 0:J.details);this.loadPlaylist(Kr)}else this.hls.trigger(_.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,J=li(this.media.textTracks),ne=0;ne<J.length;ne++)if(J[ne].mode==="hidden")H=ne;else if(J[ne].mode==="showing"){H=ne;break}this.subtitleTrack!==H&&(this.subtitleTrack=H)}}]),L}(ln);function li(ve){for(var q=[],L=0;L<ve.length;L++){var K=ve[L];(K.kind==="subtitles"||K.kind==="captions")&&K.label&&q.push(ve[L])}return q}var bi=function(){function ve(q){Object(r.a)(this,ve),this.buffers=void 0,this.queues={video:[],audio:[],audiovideo:[]},this.buffers=q}return Object(s.a)(ve,[{key:"append",value:function(L,K){var H=this.queues[K];H.push(L),H.length===1&&this.buffers[K]&&this.executeNext(K)}},{key:"insertAbort",value:function(L,K){var H=this.queues[K];H.unshift(L),this.executeNext(K)}},{key:"appendBlocker",value:function(L){var K,H=new Promise(function(ne){K=ne}),J={execute:K,onStart:function(){},onComplete:function(){},onError:function(){}};return this.append(J,L),H}},{key:"executeNext",value:function(L){var K=this.buffers,H=this.queues,J=K[L],ne=H[L];if(ne.length){var we=ne[0];try{we.execute()}catch(_e){U.warn("[buffer-operation-queue]: Unhandled exception executing the current operation"),we.onError(_e),J!=null&&J.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]}}]),ve}(),Ai=Ir(),Yi=/([ha]vc.)(?:\.[^.,]+)+/,ua=function(){function ve(q){var L=this;Object(r.a)(this,ve),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 K=L.media,H=L.mediaSource;U.log("[buffer-controller]: Media source opened"),K&&(K.removeEventListener("emptied",L._onMediaEmptied),L.updateMediaElementDuration(),L.hls.trigger(_.MEDIA_ATTACHED,{media:K})),H&&H.removeEventListener("sourceopen",L._onMediaSourceOpen),L.checkPendingTracks()},this._onMediaSourceClose=function(){U.log("[buffer-controller]: Media source closed")},this._onMediaSourceEnded=function(){U.log("[buffer-controller]: Media source ended")},this._onMediaEmptied=function(){var K=L.media,H=L._objectUrl;K&&K.src!==H&&U.error("Media element src was set while attaching MediaSource (".concat(H," > ").concat(K.src,")"))},this.hls=q,this._initSourceBuffer(),this.registerListeners()}return Object(s.a)(ve,[{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(_.MEDIA_ATTACHING,this.onMediaAttaching,this),L.on(_.MEDIA_DETACHING,this.onMediaDetaching,this),L.on(_.MANIFEST_LOADING,this.onManifestLoading,this),L.on(_.MANIFEST_PARSED,this.onManifestParsed,this),L.on(_.BUFFER_RESET,this.onBufferReset,this),L.on(_.BUFFER_APPENDING,this.onBufferAppending,this),L.on(_.BUFFER_CODECS,this.onBufferCodecs,this),L.on(_.BUFFER_EOS,this.onBufferEos,this),L.on(_.BUFFER_FLUSHING,this.onBufferFlushing,this),L.on(_.LEVEL_UPDATED,this.onLevelUpdated,this),L.on(_.FRAG_PARSED,this.onFragParsed,this),L.on(_.FRAG_CHANGED,this.onFragChanged,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(_.MEDIA_ATTACHING,this.onMediaAttaching,this),L.off(_.MEDIA_DETACHING,this.onMediaDetaching,this),L.off(_.MANIFEST_LOADING,this.onManifestLoading,this),L.off(_.MANIFEST_PARSED,this.onManifestParsed,this),L.off(_.BUFFER_RESET,this.onBufferReset,this),L.off(_.BUFFER_APPENDING,this.onBufferAppending,this),L.off(_.BUFFER_CODECS,this.onBufferCodecs,this),L.off(_.BUFFER_EOS,this.onBufferEos,this),L.off(_.BUFFER_FLUSHING,this.onBufferFlushing,this),L.off(_.LEVEL_UPDATED,this.onLevelUpdated,this),L.off(_.FRAG_PARSED,this.onFragParsed,this),L.off(_.FRAG_CHANGED,this.onFragChanged,this)}},{key:"_initSourceBuffer",value:function(){this.sourceBuffer={},this.operationQueue=new bi(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,K){var H=2;(K.audio&&!K.video||!K.altAudio||!1)&&(H=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=H,U.log("".concat(this.bufferCodecEventsExpected," bufferCodec event(s) expected"))}},{key:"onMediaAttaching",value:function(L,K){var H=this.media=K.media;if(H&&Ai){var J=this.mediaSource=new Ai;J.addEventListener("sourceopen",this._onMediaSourceOpen),J.addEventListener("sourceended",this._onMediaSourceEnded),J.addEventListener("sourceclose",this._onMediaSourceClose),H.src=self.URL.createObjectURL(J),this._objectUrl=H.src,H.addEventListener("emptied",this._onMediaEmptied)}}},{key:"onMediaDetaching",value:function(){var L=this.media,K=this.mediaSource,H=this._objectUrl;if(K){if(U.log("[buffer-controller]: media source detaching"),K.readyState==="open")try{K.endOfStream()}catch(J){U.warn("[buffer-controller]: onMediaDetaching: ".concat(J.message," while calling endOfStream"))}this.onBufferReset(),K.removeEventListener("sourceopen",this._onMediaSourceOpen),K.removeEventListener("sourceended",this._onMediaSourceEnded),K.removeEventListener("sourceclose",this._onMediaSourceClose),L&&(L.removeEventListener("emptied",this._onMediaEmptied),H&&self.URL.revokeObjectURL(H),L.src===H?(L.removeAttribute("src"),L.load()):U.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(_.MEDIA_DETACHED,void 0)}},{key:"onBufferReset",value:function(){var L=this;this.getSourceBufferTypes().forEach(function(K){var H=L.sourceBuffer[K];try{H&&(L.removeBufferListeners(K),L.mediaSource&&L.mediaSource.removeSourceBuffer(H),L.sourceBuffer[K]=void 0)}catch(J){U.warn("[buffer-controller]: Failed to reset the ".concat(K," buffer"),J)}}),this._initSourceBuffer()}},{key:"onBufferCodecs",value:function(L,K){var H=this,J=this.getSourceBufferTypes().length;if(Object.keys(K).forEach(function(ne){if(J){var we=H.tracks[ne];if(we&&typeof we.buffer.changeType=="function"){var _e=K[ne],Xe=_e.id,ut=_e.codec,ht=_e.levelCodec,Qt=_e.container,Tr=_e.metadata,br=(we.levelCodec||we.codec).replace(Yi,"$1"),Kr=(ht||ut).replace(Yi,"$1");if(br!==Kr){var Zr="".concat(Qt,";codecs=").concat(ht||ut);H.appendChangeType(ne,Zr),U.log("[buffer-controller]: switching codec ".concat(br," to ").concat(Kr)),H.tracks[ne]={buffer:we.buffer,codec:ut,container:Qt,levelCodec:ht,metadata:Tr,id:Xe}}}}else H.pendingTracks[ne]=K[ne]}),J)return;this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&this.mediaSource.readyState==="open"&&this.checkPendingTracks()}},{key:"appendChangeType",value:function(L,K){var H=this,J=this.operationQueue,ne={execute:function(){var _e=H.sourceBuffer[L];_e&&(U.log("[buffer-controller]: changing ".concat(L," sourceBuffer type to ").concat(K)),_e.changeType(K)),J.shiftAndExecuteNext(L)},onStart:function(){},onComplete:function(){},onError:function(_e){U.warn("[buffer-controller]: Failed to change ".concat(L," SourceBuffer type"),_e)}};J.append(ne,L)}},{key:"onBufferAppending",value:function(L,K){var H=this,J=this.hls,ne=this.operationQueue,we=this.tracks,_e=K.data,Xe=K.type,ut=K.frag,ht=K.part,Qt=K.chunkMeta,Tr=Qt.buffering[Xe],br=self.performance.now();Tr.start=br;var Kr=ut.stats.buffering,Zr=ht?ht.stats.buffering:null;Kr.start===0&&(Kr.start=br),Zr&&Zr.start===0&&(Zr.start=br);var Pn=we.audio,Nn=!1;Xe==="audio"&&(Pn==null?void 0:Pn.container)==="audio/mpeg"&&(Nn=!this.lastMpegAudioChunk||Qt.id===1||this.lastMpegAudioChunk.sn!==Qt.sn,this.lastMpegAudioChunk=Qt);var Jn=ut.start,wi={execute:function(){if(Tr.executeStart=self.performance.now(),Nn){var Wi=H.sourceBuffer[Xe];if(Wi){var Ji=Jn-Wi.timestampOffset;Math.abs(Ji)>=.1&&(U.log("[buffer-controller]: Updating audio SourceBuffer timestampOffset to ".concat(Jn," (delta: ").concat(Ji,") sn: ").concat(ut.sn,")")),Wi.timestampOffset=Jn)}}H.appendExecutor(_e,Xe)},onStart:function(){},onComplete:function(){var Wi=self.performance.now();Tr.executeEnd=Tr.end=Wi,Kr.first===0&&(Kr.first=Wi),Zr&&Zr.first===0&&(Zr.first=Wi);var Ji=H.sourceBuffer,La={};for(var Xa in Ji)La[Xa]=Pi.getBuffered(Ji[Xa]);H.appendError=0,H.hls.trigger(_.BUFFER_APPENDED,{type:Xe,frag:ut,part:ht,chunkMeta:Qt,parent:ut.type,timeRanges:La})},onError:function(Wi){U.error("[buffer-controller]: Error encountered while trying to append to the ".concat(Xe," SourceBuffer"),Wi);var Ji={type:F.MEDIA_ERROR,parent:ut.type,details:R.BUFFER_APPEND_ERROR,frag:ut,part:ht,chunkMeta:Qt,error:Wi,err:Wi,fatal:!1};Wi.code===DOMException.QUOTA_EXCEEDED_ERR?Ji.details=R.BUFFER_FULL_ERROR:(H.appendError++,Ji.details=R.BUFFER_APPEND_ERROR,H.appendError>J.config.appendErrorMaxRetry&&(U.error("[buffer-controller]: Failed ".concat(J.config.appendErrorMaxRetry," times to append segment in sourceBuffer")),Ji.fatal=!0)),J.trigger(_.ERROR,Ji)}};ne.append(wi,Xe)}},{key:"onBufferFlushing",value:function(L,K){var H=this,J=this.operationQueue,ne=function(_e){return{execute:H.removeExecutor.bind(H,_e,K.startOffset,K.endOffset),onStart:function(){},onComplete:function(){H.hls.trigger(_.BUFFER_FLUSHED,{type:_e})},onError:function(ut){U.warn("[buffer-controller]: Failed to remove from ".concat(_e," SourceBuffer"),ut)}}};K.type?J.append(ne(K.type),K.type):this.getSourceBufferTypes().forEach(function(we){J.append(ne(we),we)})}},{key:"onFragParsed",value:function(L,K){var H=this,J=K.frag,ne=K.part,we=[],_e=ne?ne.elementaryStreams:J.elementaryStreams;_e[Se.AUDIOVIDEO]?we.push("audiovideo"):(_e[Se.AUDIO]&&we.push("audio"),_e[Se.VIDEO]&&we.push("video"));var Xe=function(){var ht=self.performance.now();J.stats.buffering.end=ht,ne&&(ne.stats.buffering.end=ht);var Qt=ne?ne.stats:J.stats;H.hls.trigger(_.FRAG_BUFFERED,{frag:J,part:ne,stats:Qt,id:J.type})};we.length===0&&U.warn("Fragments must have at least one ElementaryStreamType set. type: ".concat(J.type," level: ").concat(J.level," sn: ").concat(J.sn)),this.blockBuffers(Xe,we)}},{key:"onFragChanged",value:function(L,K){this.flushBackBuffer()}},{key:"onBufferEos",value:function(L,K){var H=this,J=this.getSourceBufferTypes().reduce(function(ne,we){var _e=H.sourceBuffer[we];return _e&&(!K.type||K.type===we)&&(_e.ending=!0,_e.ended||(_e.ended=!0,U.log("[buffer-controller]: ".concat(we," sourceBuffer now EOS")))),ne&&!!(!_e||_e.ended)},!0);J&&(U.log("[buffer-controller]: Queueing mediaSource.endOfStream()"),this.blockBuffers(function(){H.getSourceBufferTypes().forEach(function(we){var _e=H.sourceBuffer[we];_e&&(_e.ending=!1)});var ne=H.mediaSource;if(!ne||ne.readyState!=="open"){ne&&U.info("[buffer-controller]: Could not call mediaSource.endOfStream(). mediaSource.readyState: ".concat(ne.readyState));return}U.log("[buffer-controller]: Calling mediaSource.endOfStream()"),ne.endOfStream()}))}},{key:"onLevelUpdated",value:function(L,K){var H=K.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,K=this.details,H=this.media,J=this.sourceBuffer;if(!H||K===null)return;var ne=this.getSourceBufferTypes();if(!ne.length)return;var we=K.live&&L.config.liveBackBufferLength!==null?L.config.liveBackBufferLength:L.config.backBufferLength;if(!E(we)||we<0)return;var _e=H.currentTime,Xe=K.levelTargetDuration,ut=Math.max(we,Xe),ht=Math.floor(_e/Xe)*Xe-ut;ne.forEach(function(Qt){var Tr=J[Qt];if(Tr){var br=Pi.getBuffered(Tr);if(br.length>0&&ht>br.start(0)){if(L.trigger(_.BACK_BUFFER_REACHED,{bufferEnd:ht}),K.live)L.trigger(_.LIVE_BACK_BUFFER_REACHED,{bufferEnd:ht});else if(Tr.ended&&br.end(br.length-1)-_e<Xe*2){U.info("[buffer-controller]: Cannot flush ".concat(Qt," back buffer while SourceBuffer is in ended state"));return}L.trigger(_.BUFFER_FLUSHING,{startOffset:0,endOffset:ht,type:Qt})}}})}},{key:"updateMediaElementDuration",value:function(){if(!this.details||!this.media||!this.mediaSource||this.mediaSource.readyState!=="open")return;var L=this.details,K=this.hls,H=this.media,J=this.mediaSource,ne=L.fragments[0].start+L.totalduration,we=H.duration,_e=E(J.duration)?J.duration:0;L.live&&K.config.liveDurationInfinity?(U.log("[buffer-controller]: Media Source duration is set to Infinity"),J.duration=Infinity,this.updateSeekableRange(L)):(ne>_e&&ne>we||!E(we))&&(U.log("[buffer-controller]: Updating Media Source duration to ".concat(ne.toFixed(3))),J.duration=ne)}},{key:"updateSeekableRange",value:function(L){var K=this.mediaSource,H=L.fragments,J=H.length;if(J&&L.live&&K!=null&&K.setLiveSeekableRange){var ne=Math.max(0,H[0].start),we=Math.max(ne,ne+L.totalduration);K.setLiveSeekableRange(ne,we)}}},{key:"checkPendingTracks",value:function(){var L=this.bufferCodecEventsExpected,K=this.operationQueue,H=this.pendingTracks,J=Object.keys(H).length;if(J&&!L||J===2){this.createSourceBuffers(H),this.pendingTracks={};var ne=this.getSourceBufferTypes();if(ne.length)this.hls.trigger(_.BUFFER_CREATED,{tracks:this.tracks}),ne.forEach(function(_e){K.executeNext(_e)});else{var we=new Error("could not create source buffer for media codec(s)");this.hls.trigger(_.ERROR,{type:F.MEDIA_ERROR,details:R.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:we,reason:we.message})}}}},{key:"createSourceBuffers",value:function(L){var K=this.sourceBuffer,H=this.mediaSource;if(!H)throw Error("createSourceBuffers called when mediaSource was null");for(var J in L)if(!K[J]){var ne=L[J];if(!ne)throw Error("source buffer exists for track ".concat(J,", however track does not"));var we=ne.levelCodec||ne.codec,_e="".concat(ne.container,";codecs=").concat(we);U.log("[buffer-controller]: creating sourceBuffer(".concat(_e,")"));try{var Xe=K[J]=H.addSourceBuffer(_e),ut=J;this.addBufferListener(ut,"updatestart",this._onSBUpdateStart),this.addBufferListener(ut,"updateend",this._onSBUpdateEnd),this.addBufferListener(ut,"error",this._onSBUpdateError),this.tracks[J]={buffer:Xe,codec:we,container:ne.container,levelCodec:ne.levelCodec,metadata:ne.metadata,id:ne.id}}catch(ht){U.error("[buffer-controller]: error while trying to add sourceBuffer: ".concat(ht.message)),this.hls.trigger(_.ERROR,{type:F.MEDIA_ERROR,details:R.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:ht,mimeType:_e})}}}},{key:"_onSBUpdateStart",value:function(L){var K=this.operationQueue,H=K.current(L);H.onStart()}},{key:"_onSBUpdateEnd",value:function(L){var K=this.operationQueue,H=K.current(L);H.onComplete(),K.shiftAndExecuteNext(L)}},{key:"_onSBUpdateError",value:function(L,K){var H=new Error("".concat(L," SourceBuffer error"));U.error("[buffer-controller]: ".concat(H),K),this.hls.trigger(_.ERROR,{type:F.MEDIA_ERROR,details:R.BUFFER_APPENDING_ERROR,error:H,fatal:!1});var J=this.operationQueue.current(L);J&&J.onError(K)}},{key:"removeExecutor",value:function(L,K,H){var J=this.media,ne=this.mediaSource,we=this.operationQueue,_e=this.sourceBuffer,Xe=_e[L];if(!J||!ne||!Xe){U.warn("[buffer-controller]: Attempting to remove from the ".concat(L," SourceBuffer, but it does not exist")),we.shiftAndExecuteNext(L);return}var ut=E(J.duration)?J.duration:Infinity,ht=E(ne.duration)?ne.duration:Infinity,Qt=Math.max(0,K),Tr=Math.min(H,ut,ht);Tr>Qt&&!Xe.ending?(Xe.ended=!1,U.log("[buffer-controller]: Removing [".concat(Qt,",").concat(Tr,"] from the ").concat(L," SourceBuffer")),Xe.remove(Qt,Tr)):we.shiftAndExecuteNext(L)}},{key:"appendExecutor",value:function(L,K){var H=this.operationQueue,J=this.sourceBuffer,ne=J[K];if(!ne){U.warn("[buffer-controller]: Attempting to append to the ".concat(K," SourceBuffer, but it does not exist")),H.shiftAndExecuteNext(K);return}ne.ended=!1,ne.appendBuffer(L)}},{key:"blockBuffers",value:function(L){var K=this,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.getSourceBufferTypes();if(!H.length){U.log("[buffer-controller]: Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(L);return}var J=this.operationQueue,ne=H.map(function(we){return J.appendBlocker(we)});Promise.all(ne).then(function(){L(),H.forEach(function(we){var _e=K.sourceBuffer[we];_e!=null&&_e.updating||J.shiftAndExecuteNext(we)})})}},{key:"getSourceBufferTypes",value:function(){return Object.keys(this.sourceBuffer)}},{key:"addBufferListener",value:function(L,K,H){var J=this.sourceBuffer[L];if(!J)return;var ne=H.bind(this,L);this.listeners[L].push({event:K,listener:ne}),J.addEventListener(K,ne)}},{key:"removeBufferListeners",value:function(L){var K=this.sourceBuffer[L];if(!K)return;this.listeners[L].forEach(function(H){K.removeEventListener(H.event,H.listener)})}}]),ve}(),Va={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},ro=function(q){var L=q;return Va.hasOwnProperty(q)&&(L=Va[q]),String.fromCharCode(L)},So=15,Ro=100,jo={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},Cs={17:2,18:4,21:6,22:8,23:10,19:13,20:15},vs={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},os={25:2,26:4,29:6,30:8,31:10,27:13,28:15},Fo=["white","green","blue","cyan","red","yellow","magenta","black","transparent"],yo=function(){function ve(){Object(r.a)(this,ve),this.time=null,this.verboseLevel=0}return Object(s.a)(ve,[{key:"log",value:function(L,K){if(this.verboseLevel>=L){var H=typeof K=="function"?K():K;U.log("".concat(this.time," [").concat(L,"] ").concat(H))}}}]),ve}(),As=function(q){for(var L=[],K=0;K<q.length;K++)L.push(q[K].toString(16));return L},$s=function(){function ve(q,L,K,H,J){Object(r.a)(this,ve),this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=q||"white",this.underline=L||!1,this.italics=K||!1,this.background=H||"black",this.flash=J||!1}return Object(s.a)(ve,[{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 K=["foreground","underline","italics","background","flash"],H=0;H<K.length;H++){var J=K[H];L.hasOwnProperty(J)&&(this[J]=L[J])}}},{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}}]),ve}(),ys=function(){function ve(q,L,K,H,J,ne){Object(r.a)(this,ve),this.uchar=void 0,this.penState=void 0,this.uchar=q||" ",this.penState=new $s(L,K,H,J,ne)}return Object(s.a)(ve,[{key:"reset",value:function(){this.uchar=" ",this.penState.reset()}},{key:"setChar",value:function(L,K){this.uchar=L,this.penState.copy(K)}},{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()}}]),ve}(),Fa=function(){function ve(q){Object(r.a)(this,ve),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<Ro;L++)this.chars.push(new ys);this.logger=q,this.pos=0,this.currPenState=new $s}return Object(s.a)(ve,[{key:"equals",value:function(L){for(var K=!0,H=0;H<Ro;H++)if(!this.chars[H].equals(L.chars[H])){K=!1;break}return K}},{key:"copy",value:function(L){for(var K=0;K<Ro;K++)this.chars[K].copy(L.chars[K])}},{key:"isEmpty",value:function(){for(var L=!0,K=0;K<Ro;K++)if(!this.chars[K].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>Ro&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=Ro)}},{key:"moveCursor",value:function(L){var K=this.pos+L;if(L>1)for(var H=this.pos+1;H<K+1;H++)this.chars[H].setPenState(this.currPenState);this.setCursor(K)}},{key:"backSpace",value:function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)}},{key:"insertChar",value:function(L){var K=this;L>=144&&this.backSpace();var H=ro(L);if(this.pos>=Ro){this.logger.log(0,function(){return"Cannot insert "+L.toString(16)+" ("+H+") at position "+K.pos+". Skipping it!"});return}this.chars[this.pos].setChar(H,this.currPenState),this.moveCursor(1)}},{key:"clearFromPos",value:function(L){var K;for(K=L;K<Ro;K++)this.chars[K].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=[],K=!0,H=0;H<Ro;H++){var J=this.chars[H].uchar;J!==" "&&(K=!1),L.push(J)}return K?"":L.join("")}},{key:"setPenStyles",value:function(L){this.currPenState.setStyles(L);var K=this.chars[this.pos];K.setPenState(this.currPenState)}}]),ve}(),ml=function(){function ve(q){Object(r.a)(this,ve),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<So;L++)this.rows.push(new Fa(q));this.logger=q,this.currRow=So-1,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}return Object(s.a)(ve,[{key:"reset",value:function(){for(var L=0;L<So;L++)this.rows[L].clear();this.currRow=So-1}},{key:"equals",value:function(L){for(var K=!0,H=0;H<So;H++)if(!this.rows[H].equals(L.rows[H])){K=!1;break}return K}},{key:"copy",value:function(L){for(var K=0;K<So;K++)this.rows[K].copy(L.rows[K])}},{key:"isEmpty",value:function(){for(var L=!0,K=0;K<So;K++)if(!this.rows[K].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 K=this.rows[this.currRow];K.insertChar(L)}},{key:"setPen",value:function(L){var K=this.rows[this.currRow];K.setPenStyles(L)}},{key:"moveCursor",value:function(L){var K=this.rows[this.currRow];K.moveCursor(L)}},{key:"setCursor",value:function(L){this.logger.log(2,"setCursor: "+L);var K=this.rows[this.currRow];K.setCursor(L)}},{key:"setPAC",value:function(L){this.logger.log(2,function(){return"pacData = "+JSON.stringify(L)});var K=L.row-1;if(this.nrRollUpRows&&K<this.nrRollUpRows-1&&(K=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==K){for(var H=0;H<So;H++)this.rows[H].clear();var J=this.currRow+1-this.nrRollUpRows,ne=this.lastOutputScreen;if(ne){var we=ne.rows[J].cueStartTime,_e=this.logger.time;if(we&&_e!==null&&we<_e)for(var Xe=0;Xe<this.nrRollUpRows;Xe++)this.rows[K-this.nrRollUpRows+Xe+1].copy(ne.rows[J+Xe])}}this.currRow=K;var ut=this.rows[this.currRow];if(L.indent!==null){var ht=L.indent,Qt=Math.max(ht-1,0);ut.setCursor(L.indent),L.color=ut.chars[Qt].penState.foreground}var Tr={foreground:L.color,underline:L.underline,italics:L.italics,background:"black",flash:!1};this.setPen(Tr)}},{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 K=this.currRow+1-this.nrRollUpRows,H=this.rows.splice(K,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 K=[],H="",J=-1,ne=0;ne<So;ne++){var we=this.rows[ne].getTextString();we&&(J=ne+1,L?K.push("Row "+J+": '"+we+"'"):K.push(we.trim()))}return K.length>0&&(L?H="["+K.join(" | ")+"]":H=K.join(`
`)),H}},{key:"getTextAndFormat",value:function(){return this.rows}}]),ve}(),cl=function(){function ve(q,L,K){Object(r.a)(this,ve),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=q,this.outputFilter=L,this.mode=null,this.verbose=0,this.displayedMemory=new ml(K),this.nonDisplayedMemory=new ml(K),this.lastOutputScreen=new ml(K),this.currRollUpRow=this.displayedMemory.rows[So-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=K}return Object(s.a)(ve,[{key:"reset",value:function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[So-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 K=this,H=0;H<L.length;H++)this.writeScreen.insertChar(L[H]);var J=this.writeScreen===this.displayedMemory?"DISP":"NON_DISP";this.logger.log(2,function(){return J+": "+K.writeScreen.getDisplayText(!0)}),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,function(){return"DISPLAYED: "+K.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 K=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=K,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 K={flash:!1};if(K.underline=L%2===1,K.italics=L>=46,K.italics)K.foreground="white";else{var H=Math.floor(L/2)-16,J=["white","green","blue","cyan","red","yellow","magenta"];K.foreground=J[H]}this.logger.log(2,"MIDROW: "+JSON.stringify(K)),this.writeScreen.setPen(K)}},{key:"outputDataUpdate",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,K=this.logger.time;if(K===null)return;this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=K:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,K,this.lastOutputScreen),L&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:K),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))}}]),ve}(),Ps=function(){function ve(q,L,K){Object(r.a)(this,ve),this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var H=new yo;this.channels=[null,new cl(q,L,H),new cl(q+1,K,H)],this.cmdHistory=Vl(),this.logger=H}return Object(s.a)(ve,[{key:"getHandler",value:function(L){return this.channels[L].getHandler()}},{key:"setHandler",value:function(L,K){this.channels[L].setHandler(K)}},{key:"addData",value:function(L,K){var H,J,ne,we=!1;this.logger.time=L;for(var _e=0;_e<K.length;_e+=2){if(J=K[_e]&127,ne=K[_e+1]&127,J===0&&ne===0)continue;if(this.logger.log(3,"["+As([K[_e],K[_e+1]])+"] -> ("+As([J,ne])+")"),H=this.parseCmd(J,ne),H||(H=this.parseMidrow(J,ne)),H||(H=this.parsePAC(J,ne)),H||(H=this.parseBackgroundAttributes(J,ne)),!H&&(we=this.parseChars(J,ne),we)){var Xe=this.currentChannel;if(Xe&&Xe>0){var ut=this.channels[Xe];ut.insertChars(we)}else this.logger.log(2,"No channel found yet. TEXT-MODE?")}!H&&!we&&this.logger.log(2,"Couldn't parse cleaned data "+As([J,ne])+" orig: "+As([K[_e],K[_e+1]]))}}},{key:"parseCmd",value:function(L,K){var H=this.cmdHistory,J=(L===20||L===28||L===21||L===29)&&K>=32&&K<=47,ne=(L===23||L===31)&&K>=33&&K<=35;if(!(J||ne))return!1;if(Ys(L,K,H))return ws(null,null,H),this.logger.log(3,"Repeated command ("+As([L,K])+") is dropped"),!0;var we=L===20||L===21||L===23?1:2,_e=this.channels[we];return L===20||L===21||L===28||L===29?K===32?_e.ccRCL():K===33?_e.ccBS():K===34?_e.ccAOF():K===35?_e.ccAON():K===36?_e.ccDER():K===37?_e.ccRU(2):K===38?_e.ccRU(3):K===39?_e.ccRU(4):K===40?_e.ccFON():K===41?_e.ccRDC():K===42?_e.ccTR():K===43?_e.ccRTD():K===44?_e.ccEDM():K===45?_e.ccCR():K===46?_e.ccENM():K===47&&_e.ccEOC():_e.ccTO(K-32),ws(L,K,H),this.currentChannel=we,!0}},{key:"parseMidrow",value:function(L,K){var H=0;if((L===17||L===25)&&K>=32&&K<=47){if(L===17?H=1:H=2,H!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;var J=this.channels[H];return J?(J.ccMIDROW(K),this.logger.log(3,"MIDROW ("+As([L,K])+")"),!0):!1}return!1}},{key:"parsePAC",value:function(L,K){var H,J=this.cmdHistory,ne=(L>=17&&L<=23||L>=25&&L<=31)&&K>=64&&K<=127,we=(L===16||L===24)&&K>=64&&K<=95;if(!(ne||we))return!1;if(Ys(L,K,J))return ws(null,null,J),!0;var _e=L<=23?1:2;K>=64&&K<=95?H=_e===1?jo[L]:vs[L]:H=_e===1?Cs[L]:os[L];var Xe=this.channels[_e];return Xe?(Xe.setPAC(this.interpretPAC(H,K)),ws(L,K,J),this.currentChannel=_e,!0):!1}},{key:"interpretPAC",value:function(L,K){var H,J={color:null,italics:!1,indent:null,underline:!1,row:L};return K>95?H=K-96:H=K-64,J.underline=(H&1)===1,H<=13?J.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(H/2)]:H<=15?(J.italics=!0,J.color="white"):J.indent=Math.floor((H-16)/2)*4,J}},{key:"parseChars",value:function(L,K){var H,J=null,ne=null;if(L>=25?(H=2,ne=L-8):(H=1,ne=L),ne>=17&&ne<=19){var we;ne===17?we=K+80:ne===18?we=K+112:we=K+144,this.logger.log(2,"Special char '"+ro(we)+"' in channel "+H),J=[we]}else L>=32&&L<=127&&(J=K===0?[L]:[L,K]);if(J){var _e=As(J);this.logger.log(3,"Char codes = "+_e.join(",")),ws(L,K,this.cmdHistory)}return J}},{key:"parseBackgroundAttributes",value:function(L,K){var H=(L===16||L===24)&&K>=32&&K<=47,J=(L===23||L===31)&&K>=45&&K<=47;if(!(H||J))return!1;var ne,we={};L===16||L===24?(ne=Math.floor((K-32)/2),we.background=Fo[ne],K%2===1&&(we.background=we.background+"_semi")):K===45?we.background="transparent":(we.foreground="black",K===47&&(we.underline=!0));var _e=L<=23?1:2,Xe=this.channels[_e];return Xe.setBkgData(we),ws(L,K,this.cmdHistory),!0}},{key:"reset",value:function(){for(var L=0;L<Object.keys(this.channels).length;L++){var K=this.channels[L];K&&K.reset()}this.cmdHistory=Vl()}},{key:"cueSplitAtTime",value:function(L){for(var K=0;K<this.channels.length;K++){var H=this.channels[K];H&&H.cueSplitAtTime(L)}}}]),ve}();function ws(ve,q,L){L.a=ve,L.b=q}function Ys(ve,q,L){return L.a===ve&&L.b===q}function Vl(){return{a:null,b:null}}var Nl=function(){function ve(q,L){Object(r.a)(this,ve),this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=q,this.trackName=L}return Object(s.a)(ve,[{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,K,H){(this.startTime===null||this.startTime>L)&&(this.startTime=L),this.endTime=K,this.screen=H,this.timelineController.createCaptionsTrack(this.trackName)}},{key:"reset",value:function(){this.cueRanges=[],this.startTime=null}}]),ve}(),hl=function(){if(typeof self!="undefined"&&self.VTTCue)return self.VTTCue;var ve=["","lr","rl"],q=["start","middle","end","left","right"];function L(we,_e){if(typeof _e!="string")return!1;if(!Array.isArray(we))return!1;var Xe=_e.toLowerCase();return~we.indexOf(Xe)?Xe:!1}function K(we){return L(ve,we)}function H(we){return L(q,we)}function J(we){for(var _e=arguments.length,Xe=new Array(_e>1?_e-1:0),ut=1;ut<_e;ut++)Xe[ut-1]=arguments[ut];for(var ht=1;ht<arguments.length;ht++){var Qt=arguments[ht];for(var Tr in Qt)we[Tr]=Qt[Tr]}return we}function ne(we,_e,Xe){var ut=this,ht={enumerable:!0};ut.hasBeenReset=!1;var Qt="",Tr=!1,br=we,Kr=_e,Zr=Xe,Pn=null,Nn="",Jn=!0,wi="auto",sa="start",Wi=50,Ji="middle",La=50,Xa="middle";Object.defineProperty(ut,"id",J({},ht,{get:function(){return Qt},set:function(ba){Qt=""+ba}})),Object.defineProperty(ut,"pauseOnExit",J({},ht,{get:function(){return Tr},set:function(ba){Tr=!!ba}})),Object.defineProperty(ut,"startTime",J({},ht,{get:function(){return br},set:function(ba){if(typeof ba!="number")throw new TypeError("Start time must be set to a number.");br=ba,this.hasBeenReset=!0}})),Object.defineProperty(ut,"endTime",J({},ht,{get:function(){return Kr},set:function(ba){if(typeof ba!="number")throw new TypeError("End time must be set to a number.");Kr=ba,this.hasBeenReset=!0}})),Object.defineProperty(ut,"text",J({},ht,{get:function(){return Zr},set:function(ba){Zr=""+ba,this.hasBeenReset=!0}})),Object.defineProperty(ut,"region",J({},ht,{get:function(){return Pn},set:function(ba){Pn=ba,this.hasBeenReset=!0}})),Object.defineProperty(ut,"vertical",J({},ht,{get:function(){return Nn},set:function(ba){var _o=K(ba);if(_o===!1)throw new SyntaxError("An invalid or illegal string was specified.");Nn=_o,this.hasBeenReset=!0}})),Object.defineProperty(ut,"snapToLines",J({},ht,{get:function(){return Jn},set:function(ba){Jn=!!ba,this.hasBeenReset=!0}})),Object.defineProperty(ut,"line",J({},ht,{get:function(){return wi},set:function(ba){if(typeof ba!="number"&&ba!=="auto")throw new SyntaxError("An invalid number or illegal string was specified.");wi=ba,this.hasBeenReset=!0}})),Object.defineProperty(ut,"lineAlign",J({},ht,{get:function(){return sa},set:function(ba){var _o=H(ba);if(!_o)throw new SyntaxError("An invalid or illegal string was specified.");sa=_o,this.hasBeenReset=!0}})),Object.defineProperty(ut,"position",J({},ht,{get:function(){return Wi},set:function(ba){if(ba<0||ba>100)throw new Error("Position must be between 0 and 100.");Wi=ba,this.hasBeenReset=!0}})),Object.defineProperty(ut,"positionAlign",J({},ht,{get:function(){return Ji},set:function(ba){var _o=H(ba);if(!_o)throw new SyntaxError("An invalid or illegal string was specified.");Ji=_o,this.hasBeenReset=!0}})),Object.defineProperty(ut,"size",J({},ht,{get:function(){return La},set:function(ba){if(ba<0||ba>100)throw new Error("Size must be between 0 and 100.");La=ba,this.hasBeenReset=!0}})),Object.defineProperty(ut,"align",J({},ht,{get:function(){return Xa},set:function(ba){var _o=H(ba);if(!_o)throw new SyntaxError("An invalid or illegal string was specified.");Xa=_o,this.hasBeenReset=!0}})),ut.displayState=void 0}return ne.prototype.getCueAsHTML=function(){var we=self.WebVTT;return we.convertCueToDOMTree(self,this.text)},ne}(),Os=function(){function ve(){Object(r.a)(this,ve)}return Object(s.a)(ve,[{key:"decode",value:function(L,K){if(!L)return"";if(typeof L!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(L))}}]),ve}();function Vs(ve){function q(K,H,J,ne){return(K|0)*3600+(H|0)*60+(J|0)+parseFloat(ne||0)}var L=ve.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return L?parseFloat(L[2])>59?q(L[2],L[3],0,L[4]):q(L[1],L[2],L[3],L[4]):null}var _l=function(){function ve(){Object(r.a)(this,ve),this.values=Object.create(null)}return Object(s.a)(ve,[{key:"set",value:function(L,K){!this.get(L)&&K!==""&&(this.values[L]=K)}},{key:"get",value:function(L,K,H){return H?this.has(L)?this.values[L]:K[H]:this.has(L)?this.values[L]:K}},{key:"has",value:function(L){return L in this.values}},{key:"alt",value:function(L,K,H){for(var J=0;J<H.length;++J)if(K===H[J]){this.set(L,K);break}}},{key:"integer",value:function(L,K){/^-?\d+$/.test(K)&&this.set(L,parseInt(K,10))}},{key:"percent",value:function(L,K){if(/^([\d]{1,3})(\.[\d]*)?%$/.test(K)){var H=parseFloat(K);if(H>=0&&H<=100)return this.set(L,H),!0}return!1}}]),ve}();function ol(ve,q,L,K){var H=K?ve.split(K):[ve];for(var J in H){if(typeof H[J]!="string")continue;var ne=H[J].split(L);if(ne.length!==2)continue;var we=ne[0],_e=ne[1];q(we,_e)}}var Ho=new hl(0,0,""),vo=Ho.align==="middle"?"middle":"center";function $o(ve,q,L){var K=ve;function H(){var we=Vs(ve);if(we===null)throw new Error("Malformed timestamp: "+K);return ve=ve.replace(/^[^\sa-zA-Z-]+/,""),we}function J(we,_e){var Xe=new _l;ol(we,function(Qt,Tr){var br;switch(Qt){case"region":for(var Kr=L.length-1;Kr>=0;Kr--)if(L[Kr].id===Tr){Xe.set(Qt,L[Kr].region);break}break;case"vertical":Xe.alt(Qt,Tr,["rl","lr"]);break;case"line":br=Tr.split(","),Xe.integer(Qt,br[0]),Xe.percent(Qt,br[0])&&Xe.set("snapToLines",!1),Xe.alt(Qt,br[0],["auto"]),br.length===2&&Xe.alt("lineAlign",br[1],["start",vo,"end"]);break;case"position":br=Tr.split(","),Xe.percent(Qt,br[0]),br.length===2&&Xe.alt("positionAlign",br[1],["start",vo,"end","line-left","line-right","auto"]);break;case"size":Xe.percent(Qt,Tr);break;case"align":Xe.alt(Qt,Tr,["start",vo,"end","left","right"]);break}},/:/,/\s/),_e.region=Xe.get("region",null),_e.vertical=Xe.get("vertical","");var ut=Xe.get("line","auto");ut==="auto"&&Ho.line===-1&&(ut=-1),_e.line=ut,_e.lineAlign=Xe.get("lineAlign","start"),_e.snapToLines=Xe.get("snapToLines",!0),_e.size=Xe.get("size",100),_e.align=Xe.get("align",vo);var ht=Xe.get("position","auto");ht==="auto"&&Ho.position===50&&(ht=_e.align==="start"||_e.align==="left"?0:_e.align==="end"||_e.align==="right"?100:50),_e.position=ht}function ne(){ve=ve.replace(/^\s+/,"")}if(ne(),q.startTime=H(),ne(),ve.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+K);ve=ve.slice(3),ne(),q.endTime=H(),ne(),J(ve,q)}function ms(ve){return ve.replace(/<br(?: \/)?>/gi,`
`)}var _s=function(){function ve(){Object(r.a)(this,ve),this.state="INITIAL",this.buffer="",this.decoder=new Os,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}return Object(s.a)(ve,[{key:"parse",value:function(L){var K=this;L&&(K.buffer+=K.decoder.decode(L,{stream:!0}));function H(){var ut=K.buffer,ht=0;for(ut=ms(ut);ht<ut.length&&ut[ht]!=="\r"&&ut[ht]!==`
`;)++ht;var Qt=ut.slice(0,ht);return ut[ht]==="\r"&&++ht,ut[ht]===`
`&&++ht,K.buffer=ut.slice(ht),Qt}function J(ut){ol(ut,function(ht,Qt){},/:/)}try{var ne="";if(K.state==="INITIAL"){if(!/\r\n|\n/.test(K.buffer))return this;ne=H();var we=ne.match(/^()?WEBVTT([ \t].*)?$/);if(!(we!=null&&we[0]))throw new Error("Malformed WebVTT signature.");K.state="HEADER"}for(var _e=!1;K.buffer;){if(!/\r\n|\n/.test(K.buffer))return this;_e?_e=!1:ne=H();switch(K.state){case"HEADER":/:/.test(ne)?J(ne):ne||(K.state="ID");continue;case"NOTE":ne||(K.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(ne)){K.state="NOTE";break}if(!ne)continue;if(K.cue=new hl(0,0,""),K.state="CUE",ne.indexOf("-->")===-1){K.cue.id=ne;continue}case"CUE":if(!K.cue){K.state="BADCUE";continue}try{$o(ne,K.cue,K.regionList)}catch(ut){K.cue=null,K.state="BADCUE";continue}K.state="CUETEXT";continue;case"CUETEXT":{var Xe=ne.indexOf("-->")!==-1;if(!ne||Xe&&(_e=!0)){K.oncue&&K.cue&&K.oncue(K.cue),K.cue=null,K.state="ID";continue}if(K.cue===null)continue;K.cue.text&&(K.cue.text+=`
`),K.cue.text+=ne}continue;case"BADCUE":ne||(K.state="ID")}}}catch(ut){K.state==="CUETEXT"&&K.cue&&K.oncue&&K.oncue(K.cue),K.cue=null,K.state=K.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(K){L.onparsingerror&&L.onparsingerror(K)}return L.onflush&&L.onflush(),this}}]),ve}(),qo=/\r\n|\n\r|\n|\r/g,Is=function(q,L){var K=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return q.slice(K,K+L.length)===L},Rs=function(q){var L=parseInt(q.slice(-3)),K=parseInt(q.slice(-6,-4)),H=parseInt(q.slice(-9,-7)),J=q.length>9?parseInt(q.substring(0,q.indexOf(":"))):0;if(!E(L)||!E(K)||!E(H)||!E(J))throw Error("Malformed X-TIMESTAMP-MAP: Local:".concat(q));return L+=1e3*K,L+=60*1e3*H,L+=60*60*1e3*J,L},nl=function(q){for(var L=5381,K=q.length;K;)L=L*33^q.charCodeAt(--K);return(L>>>0).toString()};function Il(ve,q,L){return nl(ve.toString())+nl(q.toString())+nl(L)}var Tl=function(q,L,K){var H=q[L],J=q[H.prevCC];if(!J||!J.new&&H.new){q.ccOffset=q.presentationOffset=H.start,H.new=!1;return}for(;(ne=J)!=null&&ne.new;){var ne;q.ccOffset+=H.start-J.start,H.new=!1,H=J,J=q[H.prevCC]}q.presentationOffset=K};function Ul(ve,q,L,K,H,J,ne){var we=new _s,_e=pe(new Uint8Array(ve)).trim().replace(qo,`
`).split(`
`),Xe=[],ut=q?No(q.baseTime,q.timescale):0,ht="00:00.000",Qt=0,Tr=0,br,Kr=!0;we.oncue=function(Zr){var Pn=L[K],Nn=L.ccOffset,Jn=(Qt-ut)/9e4;if(Pn!=null&&Pn.new&&(Tr!==void 0?Nn=L.ccOffset=Pn.start:Tl(L,K,Jn)),Jn){if(!q){br=new Error("Missing initPTS for VTT MPEGTS");return}Nn=Jn-L.presentationOffset}var wi=Zr.endTime-Zr.startTime,sa=oo((Zr.startTime+Nn-Tr)*9e4,H*9e4)/9e4;Zr.startTime=Math.max(sa,0),Zr.endTime=Math.max(sa+wi,0);var Wi=Zr.text.trim();Zr.text=decodeURIComponent(encodeURIComponent(Wi)),Zr.id||(Zr.id=Il(Zr.startTime,Zr.endTime,Wi)),Zr.endTime>0&&Xe.push(Zr)},we.onparsingerror=function(Zr){br=Zr},we.onflush=function(){if(br){ne(br);return}J(Xe)},_e.forEach(function(Zr){if(Kr)if(Is(Zr,"X-TIMESTAMP-MAP=")){Kr=!1,Zr.slice(16).split(",").forEach(function(Pn){Is(Pn,"LOCAL:")?ht=Pn.slice(6):Is(Pn,"MPEGTS:")&&(Qt=parseInt(Pn.slice(7)))});try{Tr=Rs(ht)/1e3}catch(Pn){br=Pn}return}else Zr===""&&(Kr=!1);we.parse(Zr+`
`)}),we.flush()}var Dl="stpp.ttml.im1t",Rl=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Hl=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,sl={left:"start",center:"center",right:"end",start:"start",end:"end"};function Gs(ve,q,L,K){var H=en(new Uint8Array(ve),["mdat"]);if(H.length===0){K(new Error("Could not parse IMSC1 mdat"));return}var J=H.map(function(we){return pe(we)}),ne=lo(q.baseTime,1,q.timescale);try{J.forEach(function(we){return L(ll(we,ne))})}catch(we){K(we)}}function ll(ve,q){var L=new DOMParser,K=L.parseFromString(ve,"text/xml"),H=K.getElementsByTagName("tt")[0];if(!H)throw new Error("Invalid ttml");var J={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},ne=Object.keys(J).reduce(function(ht,Qt){return ht[Qt]=H.getAttribute("ttp:".concat(Qt))||J[Qt],ht},{}),we=H.getAttribute("xml:space")!=="preserve",_e=bl(Xs(H,"styling","style")),Xe=bl(Xs(H,"layout","region")),ut=Xs(H,"body","[begin]");return[].map.call(ut,function(ht){var Qt=kl(ht,we);if(!Qt||!ht.hasAttribute("begin"))return null;var Tr=Gl(ht.getAttribute("begin"),ne),br=Gl(ht.getAttribute("dur"),ne),Kr=Gl(ht.getAttribute("end"),ne);if(Tr===null)throw wl(ht);if(Kr===null){if(br===null)throw wl(ht);Kr=Tr+br}var Zr=new hl(Tr-q,Kr-q,Qt);Zr.id=Il(Zr.startTime,Zr.endTime,Zr.text);var Pn=Xe[ht.getAttribute("region")],Nn=_e[ht.getAttribute("style")],Jn=Yl(Pn,Nn,_e),wi=Jn.textAlign;if(wi){var sa=sl[wi];sa&&(Zr.lineAlign=sa),Zr.align=wi}return x(Zr,Jn),Zr}).filter(function(ht){return ht!==null})}function Xs(ve,q,L){var K=ve.getElementsByTagName(q)[0];return K?[].slice.call(K.querySelectorAll(L)):[]}function bl(ve){return ve.reduce(function(q,L){var K=L.getAttribute("xml:id");return K&&(q[K]=L),q},{})}function kl(ve,q){return[].slice.call(ve.childNodes).reduce(function(L,K,H){var J;return K.nodeName==="br"&&H?L+`
`:(J=K.childNodes)!=null&&J.length?kl(K,q):q?L+K.textContent.trim().replace(/\s+/g," "):L+K.textContent},"")}function Yl(ve,q,L){var K="http://www.w3.org/ns/ttml#styling",H=null,J=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],ne=ve!=null&&ve.hasAttribute("style")?ve.getAttribute("style"):null;return ne&&L.hasOwnProperty(ne)&&(H=L[ne]),J.reduce(function(we,_e){var Xe=Zl(q,K,_e)||Zl(ve,K,_e)||Zl(H,K,_e);return Xe&&(we[_e]=Xe),we},{})}function Zl(ve,q,L){return ve&&ve.hasAttributeNS(q,L)?ve.getAttributeNS(q,L):null}function wl(ve){return new Error("Could not parse ttml timestamp ".concat(ve))}function Gl(ve,q){if(!ve)return null;var L=Vs(ve);return L===null&&(Rl.test(ve)?L=tu(ve,q):Hl.test(ve)&&(L=Iu(ve,q))),L}function tu(ve,q){var L=Rl.exec(ve),K=(L[4]|0)+(L[5]|0)/q.subFrameRate;return(L[1]|0)*3600+(L[2]|0)*60+(L[3]|0)+K/q.frameRate}function Iu(ve,q){var L=Hl.exec(ve),K=Number(L[1]),H=L[2];switch(H){case"h":return K*3600;case"m":return K*60;case"ms":return K*1e3;case"f":return K/q.frameRate;case"t":return K/q.tickRate}return K}var bu=function(){function ve(q){if(Object(r.a)(this,ve),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=nu(),this.captionsProperties=void 0,this.hls=q,this.config=q.config,this.Cues=q.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 Nl(this,"textTrack1"),K=new Nl(this,"textTrack2"),H=new Nl(this,"textTrack3"),J=new Nl(this,"textTrack4");this.cea608Parser1=new Ps(1,L,K),this.cea608Parser2=new Ps(3,H,J)}q.on(_.MEDIA_ATTACHING,this.onMediaAttaching,this),q.on(_.MEDIA_DETACHING,this.onMediaDetaching,this),q.on(_.MANIFEST_LOADING,this.onManifestLoading,this),q.on(_.MANIFEST_LOADED,this.onManifestLoaded,this),q.on(_.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),q.on(_.FRAG_LOADING,this.onFragLoading,this),q.on(_.FRAG_LOADED,this.onFragLoaded,this),q.on(_.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),q.on(_.FRAG_DECRYPTED,this.onFragDecrypted,this),q.on(_.INIT_PTS_FOUND,this.onInitPtsFound,this),q.on(_.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),q.on(_.BUFFER_FLUSHING,this.onBufferFlushing,this)}return Object(s.a)(ve,[{key:"destroy",value:function(){var L=this.hls;L.off(_.MEDIA_ATTACHING,this.onMediaAttaching,this),L.off(_.MEDIA_DETACHING,this.onMediaDetaching,this),L.off(_.MANIFEST_LOADING,this.onManifestLoading,this),L.off(_.MANIFEST_LOADED,this.onManifestLoaded,this),L.off(_.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),L.off(_.FRAG_LOADING,this.onFragLoading,this),L.off(_.FRAG_LOADED,this.onFragLoaded,this),L.off(_.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),L.off(_.FRAG_DECRYPTED,this.onFragDecrypted,this),L.off(_.INIT_PTS_FOUND,this.onInitPtsFound,this),L.off(_.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),L.off(_.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.cea608Parser1=this.cea608Parser2=null}},{key:"addCues",value:function(L,K,H,J,ne){for(var we=!1,_e=ne.length;_e--;){var Xe=ne[_e],ut=hu(Xe[0],Xe[1],K,H);if(ut>=0&&(Xe[0]=Math.min(Xe[0],K),Xe[1]=Math.max(Xe[1],H),we=!0,ut/(H-K)>.5))return}if(we||ne.push([K,H]),this.config.renderTextTracksNatively){var ht=this.captionsTracks[L];this.Cues.newCue(ht,K,H,J)}else{var Qt=this.Cues.newCue(null,K,H,J);this.hls.trigger(_.CUES_PARSED,{type:"captions",cues:Qt,track:L})}}},{key:"onInitPtsFound",value:function(L,K){var H=this,J=K.frag,ne=K.id,we=K.initPTS,_e=K.timescale,Xe=this.unparsedVttFrags;ne==="main"&&(this.initPTS[J.cc]={baseTime:we,timescale:_e}),Xe.length&&(this.unparsedVttFrags=[],Xe.forEach(function(ut){H.onFragLoaded(_.FRAG_LOADED,ut)}))}},{key:"getExistingTrack",value:function(L){var K=this.media;if(K)for(var H=0;H<K.textTracks.length;H++){var J=K.textTracks[H];if(J[L])return J}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 K=this.captionsProperties,H=this.captionsTracks,J=this.media,ne=K[L],we=ne.label,_e=ne.languageCode,Xe=this.getExistingTrack(L);if(Xe)H[L]=Xe,Rn(H[L]),Gn(H[L],J);else{var ut=this.createTextTrack("captions",we,_e);ut&&(ut[L]=!0,H[L]=ut)}}},{key:"createNonNativeTrack",value:function(L){if(this.nonNativeCaptionsTracks[L])return;var K=this.captionsProperties[L];if(!K)return;var H=K.label,J={_id:L,label:H,kind:"captions",default:K.media?!!K.media.default:!1,closedCaptions:K.media};this.nonNativeCaptionsTracks[L]=J,this.hls.trigger(_.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[J]})}},{key:"createTextTrack",value:function(L,K,H){var J=this.media;return J?J.addTextTrack(L,K,H):void 0}},{key:"onMediaAttaching",value:function(L,K){this.media=K.media,this._cleanTracks()}},{key:"onMediaDetaching",value:function(){var L=this.captionsTracks;Object.keys(L).forEach(function(K){Rn(L[K]),delete L[K]}),this.nonNativeCaptionsTracks={}}},{key:"onManifestLoading",value:function(){this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=nu(),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 K=L.textTracks;if(K)for(var H=0;H<K.length;H++)Rn(K[H])}},{key:"onSubtitleTracksUpdated",value:function(L,K){var H=this,J=K.subtitleTracks||[],ne=J.some(function(ut){return ut.textCodec===Dl});if(this.config.enableWebVTT||ne&&this.config.enableIMSC1){var we=Qe(this.tracks,J);if(we){this.tracks=J;return}if(this.textTracks=[],this.tracks=J,this.config.renderTextTracksNatively){var _e=this.media?this.media.textTracks:null;this.tracks.forEach(function(ut,ht){var Qt;if(_e&&ht<_e.length){for(var Tr=null,br=0;br<_e.length;br++)if(du(_e[br],ut)){Tr=_e[br];break}Tr&&(Qt=Tr)}if(Qt)Rn(Qt);else{var Kr=H._captionsOrSubtitlesFromCharacteristics(ut);Qt=H.createTextTrack(Kr,ut.name,ut.lang),Qt&&(Qt.mode="disabled")}Qt&&(Qt.groupId=ut.groupId,H.textTracks.push(Qt))})}else if(this.tracks.length){var Xe=this.tracks.map(function(ut){return{label:ut.name,kind:ut.type.toLowerCase(),default:ut.default,subtitleTrack:ut}});this.hls.trigger(_.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:Xe})}}}},{key:"_captionsOrSubtitlesFromCharacteristics",value:function(L){if(L.attrs.CHARACTERISTICS){var K=/transcribes-spoken-dialog/gi.test(L.attrs.CHARACTERISTICS),H=/describes-music-and-sound/gi.test(L.attrs.CHARACTERISTICS);if(K&&H)return"captions"}return"subtitles"}},{key:"onManifestLoaded",value:function(L,K){var H=this;this.config.enableCEA708Captions&&K.captions&&K.captions.forEach(function(J){var ne=/(?:CC|SERVICE)([1-4])/.exec(J.instreamId);if(!ne)return;var we="textTrack".concat(ne[1]),_e=H.captionsProperties[we];if(!_e)return;_e.label=J.name,J.lang&&(_e.languageCode=J.lang),_e.media=J})}},{key:"closedCaptionsForLevel",value:function(L){var K=this.hls.levels[L.level];return K==null?void 0:K.attrs["CLOSED-CAPTIONS"]}},{key:"onFragLoading",value:function(L,K){var H=this.cea608Parser1,J=this.cea608Parser2,ne=this.lastSn,we=this.lastPartIndex;if(!this.enabled||!(H&&J))return;if(K.frag.type===Fr.MAIN){var _e,Xe,ut=K.frag.sn,ht=(_e=K==null||(Xe=K.part)==null?void 0:Xe.index)!=null?_e:-1;ut===ne+1||ut===ne&&ht===we+1||(H.reset(),J.reset()),this.lastSn=ut,this.lastPartIndex=ht}}},{key:"onFragLoaded",value:function(L,K){var H=K.frag,J=K.payload;if(H.type===Fr.SUBTITLE)if(J.byteLength){var ne=H.decryptdata,we="stats"in K;if(ne==null||!ne.encrypted||we){var _e=this.tracks[H.level],Xe=this.vttCCs;Xe[H.cc]||(Xe[H.cc]={start:H.start,prevCC:this.prevCC,new:!0},this.prevCC=H.cc),_e&&_e.textCodec===Dl?this._parseIMSC1(H,J):this._parseVTTs(K)}}else this.hls.trigger(_.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:H,error:new Error("Empty subtitle payload")})}},{key:"_parseIMSC1",value:function(L,K){var H=this,J=this.hls;Gs(K,this.initPTS[L.cc],function(ne){H._appendCues(ne,L.level),J.trigger(_.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:L})},function(ne){U.log("Failed to parse IMSC1: ".concat(ne)),J.trigger(_.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:L,error:ne})})}},{key:"_parseVTTs",value:function(L){var K=this,H,J=L.frag,ne=L.payload,we=this.initPTS,_e=this.unparsedVttFrags,Xe=we.length-1;if(!we[J.cc]&&Xe===-1){_e.push(L);return}var ut=this.hls,ht=(H=J.initSegment)!=null&&H.data?Me(J.initSegment.data,new Uint8Array(ne)):ne;Ul(ht,this.initPTS[J.cc],this.vttCCs,J.cc,J.start,function(Qt){K._appendCues(Qt,J.level),ut.trigger(_.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:J})},function(Qt){var Tr=Qt.message==="Missing initPTS for VTT MPEGTS";if(Tr?_e.push(L):K._fallbackToIMSC1(J,ne),U.log("Failed to parse VTT cue: ".concat(Qt)),Tr&&Xe>J.cc)return;ut.trigger(_.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:J,error:Qt})})}},{key:"_fallbackToIMSC1",value:function(L,K){var H=this,J=this.tracks[L.level];J.textCodec||Gs(K,this.initPTS[L.cc],function(){J.textCodec=Dl,H._parseIMSC1(L,K)},function(){J.textCodec="wvtt"})}},{key:"_appendCues",value:function(L,K){var H=this.hls;if(this.config.renderTextTracksNatively){var J=this.textTracks[K];if(!J||J.mode==="disabled")return;L.forEach(function(_e){return Mr(J,_e)})}else{var ne=this.tracks[K];if(!ne)return;var we=ne.default?"default":"subtitles"+K;H.trigger(_.CUES_PARSED,{type:"subtitles",cues:L,track:we})}}},{key:"onFragDecrypted",value:function(L,K){var H=K.frag;H.type===Fr.SUBTITLE&&this.onFragLoaded(_.FRAG_LOADED,K)}},{key:"onSubtitleTracksCleared",value:function(){this.tracks=[],this.captionsTracks={}}},{key:"onFragParsingUserdata",value:function(L,K){var H=this.cea608Parser1,J=this.cea608Parser2;if(!this.enabled||!(H&&J))return;var ne=K.frag,we=K.samples;if(ne.type===Fr.MAIN&&this.closedCaptionsForLevel(ne)==="NONE")return;for(var _e=0;_e<we.length;_e++){var Xe=we[_e].bytes;if(Xe){var ut=this.extractCea608Data(Xe);H.addData(we[_e].pts,ut[0]),J.addData(we[_e].pts,ut[1])}}}},{key:"onBufferFlushing",value:function(L,K){var H=K.startOffset,J=K.endOffset,ne=K.endOffsetSubtitles,we=K.type,_e=this.media;if(!_e||_e.currentTime<J)return;if(!we||we==="video"){var Xe=this.captionsTracks;Object.keys(Xe).forEach(function(ht){return bn(Xe[ht],H,J)})}if(this.config.renderTextTracksNatively&&(H===0&&ne!==void 0)){var ut=this.textTracks;Object.keys(ut).forEach(function(ht){return bn(ut[ht],H,ne)})}}},{key:"extractCea608Data",value:function(L){for(var K=[[],[]],H=L[0]&31,J=2,ne=0;ne<H;ne++){var we=L[J++],_e=127&L[J++],Xe=127&L[J++];if(_e===0&&Xe===0)continue;var ut=(4&we)!==0;if(ut){var ht=3&we;(ht===0||ht===1)&&(K[ht].push(_e),K[ht].push(Xe))}}return K}}]),ve}();function du(ve,q){return!!ve&&ve.label===q.name&&!(ve.textTrack1||ve.textTrack2)}function hu(ve,q,L,K){return Math.min(q,K)-Math.max(ve,L)}function nu(){return{ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!0}}}var Sl=function(){function ve(q){Object(r.a)(this,ve),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=q,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)(ve,[{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(_.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),L.on(_.MEDIA_ATTACHING,this.onMediaAttaching,this),L.on(_.MANIFEST_PARSED,this.onManifestParsed,this),L.on(_.BUFFER_CODECS,this.onBufferCodecs,this),L.on(_.MEDIA_DETACHING,this.onMediaDetaching,this)}},{key:"unregisterListener",value:function(){var L=this.hls;L.off(_.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),L.off(_.MEDIA_ATTACHING,this.onMediaAttaching,this),L.off(_.MANIFEST_PARSED,this.onManifestParsed,this),L.off(_.BUFFER_CODECS,this.onBufferCodecs,this),L.off(_.MEDIA_DETACHING,this.onMediaDetaching,this)}},{key:"onFpsDropLevelCapping",value:function(L,K){var H=this.hls.levels[K.droppedLevel];this.isLevelAllowed(H)&&this.restrictedLevels.push({bitrate:H.bitrate,height:H.height,width:H.width})}},{key:"onMediaAttaching",value:function(L,K){this.media=K.media instanceof HTMLVideoElement?K.media:null,this.clientRect=null}},{key:"onManifestParsed",value:function(L,K){var H=this.hls;this.restrictedLevels=[],this.firstLevel=K.firstLevel,H.config.capLevelToPlayerSize&&K.video&&this.startCapping()}},{key:"onBufferCodecs",value:function(L,K){var H=this.hls;H.config.capLevelToPlayerSize&&K.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 K=this.hls;K.autoLevelCapping=this.getMaxLevel(L.length-1),K.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=K.autoLevelCapping}}}},{key:"getMaxLevel",value:function(L){var K=this,H=this.hls.levels;if(!H.length)return-1;var J=H.filter(function(ne,we){return K.isLevelAllowed(ne)&&we<=L});return this.clientRect=null,ve.getMaxLevelByMediaSize(J,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,K={width:0,height:0};if(L){var H=L.getBoundingClientRect();K.width=H.width,K.height=H.height,!K.width&&!K.height&&(K.width=H.right-H.left||L.width||0,K.height=H.bottom-H.top||L.height||0)}return this.clientRect=K,K}},{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(K){}return L}},{key:"isLevelAllowed",value:function(L){var K=this.restrictedLevels;return!K.some(function(H){return L.bitrate===H.bitrate&&L.width===H.width&&L.height===H.height})}}],[{key:"getMaxLevelByMediaSize",value:function(L,K,H){if(!(L!=null&&L.length))return-1;for(var J=function(ut,ht){return ht?ut.width!==ht.width||ut.height!==ht.height:!0},ne=L.length-1,we=0;we<L.length;we+=1){var _e=L[we];if((_e.width>=K||_e.height>=H)&&J(_e,L[we+1])){ne=we;break}}return ne}}]),ve}(),Ml=function(){function ve(q){Object(r.a)(this,ve),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=q,this.registerListeners()}return Object(s.a)(ve,[{key:"setStreamController",value:function(L){this.streamController=L}},{key:"registerListeners",value:function(){this.hls.on(_.MEDIA_ATTACHING,this.onMediaAttaching,this)}},{key:"unregisterListeners",value:function(){this.hls.off(_.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,K){var H=this.hls.config;if(H.capLevelOnFPSDrop){var J=K.media instanceof self.HTMLVideoElement?K.media:null;this.media=J,J&&typeof J.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),H.fpsDroppedMonitoringPeriod)}}},{key:"checkFPS",value:function(L,K,H){var J=performance.now();if(K){if(this.lastTime){var ne=J-this.lastTime,we=H-this.lastDroppedFrames,_e=K-this.lastDecodedFrames,Xe=1e3*we/ne,ut=this.hls;if(ut.trigger(_.FPS_DROP,{currentDropped:we,currentDecoded:_e,totalDroppedFrames:H}),Xe>0&&we>ut.config.fpsDroppedMonitoringThreshold*_e){var ht=ut.currentLevel;U.warn("drop FPS ratio greater than max allowed value for currentLevel: "+ht),ht>0&&(ut.autoLevelCapping===-1||ut.autoLevelCapping>=ht)&&(ht=ht-1,ut.trigger(_.FPS_DROP_LEVEL_CAPPING,{level:ht,droppedLevel:ut.currentLevel}),ut.autoLevelCapping=ht,this.streamController.nextLevelSwitch())}}this.lastTime=J,this.lastDroppedFrames=H,this.lastDecodedFrames=K}}},{key:"checkFPSInterval",value:function(){var L=this.media;if(L)if(this.isVideoPlaybackQualityAvailable){var K=L.getVideoPlaybackQuality();this.checkFPS(L,K.totalVideoFrames,K.droppedVideoFrames)}else this.checkFPS(L,L.webkitDecodedFrameCount,L.webkitDroppedFrameCount)}}]),ve}(),Ll="[eme]",$l=function(){function ve(q){Object(r.a)(this,ve),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=ve.CDMCleanupPromise?[ve.CDMCleanupPromise]:[],this.onMediaEncrypted=this._onMediaEncrypted.bind(this),this.onWaitingForKey=this._onWaitingForKey.bind(this),this.debug=U.debug.bind(U,Ll),this.log=U.log.bind(U,Ll),this.warn=U.warn.bind(U,Ll),this.error=U.error.bind(U,Ll),this.hls=q,this.config=q.config,this.registerListeners()}return Object(s.a)(ve,[{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(_.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(_.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(_.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(_.MANIFEST_LOADED,this.onManifestLoaded,this)}},{key:"unregisterListeners",value:function(){this.hls.off(_.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(_.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(_.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(_.MANIFEST_LOADED,this.onManifestLoaded,this)}},{key:"getLicenseServerUrl",value:function(L){var K=this.config,H=K.drmSystems,J=K.widevineLicenseUrl,ne=H[L];if(ne)return ne.licenseUrl;if(L===Y.WIDEVINE&&J)return J;throw new Error('no license server URL configured for key-system "'.concat(L,'"'))}},{key:"getServerCertificateUrl",value:function(L){var K=this.config.drmSystems,H=K[L];if(H)return H.serverCertificateUrl;this.log('No Server Certificate in config.drmSystems["'.concat(L,'"]'))}},{key:"attemptKeySystemAccess",value:function(L){var K=this,H=this.hls.levels,J=function(Xe,ut,ht){return!!Xe&&ht.indexOf(Xe)===ut},ne=H.map(function(_e){return _e.audioCodec}).filter(J),we=H.map(function(_e){return _e.videoCodec}).filter(J);return ne.length+we.length===0&&we.push("avc1.42e01e"),new Promise(function(_e,Xe){var ut=function ht(Qt){var Tr=Qt.shift();K.getMediaKeysPromise(Tr,ne,we).then(function(br){return _e({keySystem:Tr,mediaKeys:br})}).catch(function(br){Qt.length?ht(Qt):br instanceof Pl?Xe(br):Xe(new Pl({type:F.KEY_SYSTEM_ERROR,details:R.KEY_SYSTEM_NO_ACCESS,error:br,fatal:!0},br.message))})};ut(L)})}},{key:"requestMediaKeySystemAccess",value:function(L,K){var H=this.config.requestMediaKeySystemAccessFunc;if(!(typeof H=="function")){var J="Configured requestMediaKeySystemAccess is not a function ".concat(H);return ye===null&&self.location.protocol==="http:"&&(J="navigator.requestMediaKeySystemAccess is not available over insecure protocol ".concat(location.protocol)),Promise.reject(new Error(J))}return H(L,K)}},{key:"getMediaKeysPromise",value:function(L,K,H){var J=this,ne=Ie(L,K,H,this.config.drmSystemOptions),we=this.keySystemAccessPromises[L],_e=we==null?void 0:we.keySystemAccess;if(!_e){this.log('Requesting encrypted media "'.concat(L,'" key-system access with config: ').concat(JSON.stringify(ne))),_e=this.requestMediaKeySystemAccess(L,ne);var Xe=this.keySystemAccessPromises[L]={keySystemAccess:_e};return _e.catch(function(ut){J.log('Failed to obtain access to key-system "'.concat(L,'": ').concat(ut))}),_e.then(function(ut){J.log('Access for key-system "'.concat(ut.keySystem,'" obtained'));var ht=J.fetchServerCertificate(L);return J.log('Create media-keys for "'.concat(L,'"')),Xe.mediaKeys=ut.createMediaKeys().then(function(Qt){return J.log('Media-keys created for "'.concat(L,'"')),ht.then(function(Tr){return Tr?J.setMediaKeysServerCertificate(Qt,L,Tr):Qt})}),Xe.mediaKeys.catch(function(Qt){J.error('Failed to create media-keys for "'.concat(L,'"}: ').concat(Qt))}),Xe.mediaKeys})}return _e.then(function(){return we.mediaKeys})}},{key:"createMediaKeySessionContext",value:function(L){var K=L.decryptdata,H=L.keySystem,J=L.mediaKeys;this.log('Creating key-system session "'.concat(H,'" keyId: ').concat(gt.hexDump(K.keyId||[])));var ne=J.createSession(),we={decryptdata:K,keySystem:H,mediaKeys:J,mediaKeysSession:ne,keyStatus:"status-pending"};return this.mediaKeySessions.push(we),we}},{key:"renewKeySession",value:function(L){var K=L.decryptdata;if(K.pssh){var H=this.createMediaKeySessionContext(L),J=this.getKeyIdString(K),ne="cenc";this.keyIdToKeySessionPromise[J]=this.generateRequestWithPreferredKeySession(H,ne,K.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 gt.hexDump(L.keyId)}},{key:"updateKeySession",value:function(L,K){var H,J=L.mediaKeysSession;return this.log('Updating key-session "'.concat(J.sessionId,'" for keyID ').concat(gt.hexDump(((H=L.decryptdata)==null?void 0:H.keyId)||[]),`
} (data length: `).concat(K&&K.byteLength,")")),J.update(K)}},{key:"selectKeySystemFormat",value:function(L){var K=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(K.join(", "))),this.keyFormatPromise=this.getKeyFormatPromise(K)),this.keyFormatPromise}},{key:"getKeyFormatPromise",value:function(L){var K=this;return new Promise(function(H,J){var ne=he(K.config),we=L.map(fe).filter(function(_e){return!!_e&&ne.indexOf(_e)!==-1});return K.getKeySystemSelectionPromise(we).then(function(_e){var Xe=_e.keySystem,ut=Te(Xe);ut?H(ut):J(new Error('Unable to find format for key-system "'.concat(Xe,'"')))}).catch(J)})}},{key:"loadKey",value:function(L){var K=this,H=L.keyInfo.decryptdata,J=this.getKeyIdString(H),ne="(keyId: ".concat(J,' format: "').concat(H.keyFormat,'" method: ').concat(H.method," uri: ").concat(H.uri,")");this.log("Starting session for key ".concat(ne));var we=this.keyIdToKeySessionPromise[J];return we||(we=this.keyIdToKeySessionPromise[J]=this.getKeySystemForKeyPromise(H).then(function(_e){var Xe=_e.keySystem,ut=_e.mediaKeys;return K.throwIfDestroyed(),K.log("Handle encrypted media sn: ".concat(L.frag.sn," ").concat(L.frag.type,": ").concat(L.frag.level," using key ").concat(ne)),K.attemptSetMediaKeys(Xe,ut).then(function(){K.throwIfDestroyed();var ht=K.createMediaKeySessionContext({keySystem:Xe,mediaKeys:ut,decryptdata:H}),Qt="cenc";return K.generateRequestWithPreferredKeySession(ht,Qt,H.pssh,"playlist-key")})}),we.catch(function(_e){return K.handleError(_e)})),we}},{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 Pl?this.hls.trigger(_.ERROR,L.data):this.hls.trigger(_.ERROR,{type:F.KEY_SYSTEM_ERROR,details:R.KEY_SYSTEM_NO_KEYS,error:L,fatal:!0})}},{key:"getKeySystemForKeyPromise",value:function(L){var K=this.getKeyIdString(L),H=this.keyIdToKeySessionPromise[K];if(!H){var J=fe(L.keyFormat),ne=J?[J]:he(this.config);return this.attemptKeySystemAccess(ne)}return H}},{key:"getKeySystemSelectionPromise",value:function(L){if(L.length||(L=he(this.config)),L.length===0)throw new Pl({type:F.KEY_SYSTEM_ERROR,details:R.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 K=this,H=L.initDataType,J=L.initData;if(this.debug('"'.concat(L.type,'" event: init data type: "').concat(H,'"')),J===null)return;var ne,we;if(H==="sinf"&&this.config.drmSystems[Y.FAIRPLAY]){var _e=Ar(new Uint8Array(J));try{var Xe=Ue(JSON.parse(_e).sinf),ut=Vi(new Uint8Array(Xe));if(!ut)return;ne=ut.subarray(8,24),we=Y.FAIRPLAY}catch(Jn){this.warn('Failed to parse sinf "encrypted" event message initData');return}}else{var ht=Gt(J);if(ht===null)return;ht.version===0&&ht.systemId===be.WIDEVINE&&ht.data&&(ne=ht.data.subarray(8,24)),we=Ce(ht.systemId)}if(!we||!ne)return;for(var Qt=gt.hexDump(ne),Tr=this.keyIdToKeySessionPromise,br=this.mediaKeySessions,Kr=Tr[Qt],Zr=function(){var wi=br[Nn],sa=wi.decryptdata;if(sa.pssh||!sa.keyId)return 0;var Wi=gt.hexDump(sa.keyId);if(Qt===Wi||sa.uri.replace(/-/g,"").indexOf(Qt)!==-1)return Kr=Tr[Wi],delete Tr[Wi],sa.pssh=new Uint8Array(J),sa.keyId=ne,Kr=Tr[Qt]=Kr.then(function(){return K.generateRequestWithPreferredKeySession(wi,H,J,"encrypted-event-key-match")}),1},Pn,Nn=0;Nn<br.length;Nn++){if(Pn=Zr(),Pn===0)continue;if(Pn===1)break}Kr||(Kr=Tr[Qt]=this.getKeySystemSelectionPromise([we]).then(function(Jn){var wi=Jn.keySystem,sa=Jn.mediaKeys,Wi;K.throwIfDestroyed();var Ji=new bt("ISO-23001-7",Qt,(Wi=Te(wi))!=null?Wi:"");return Ji.pssh=new Uint8Array(J),Ji.keyId=ne,K.attemptSetMediaKeys(wi,sa).then(function(){K.throwIfDestroyed();var La=K.createMediaKeySessionContext({decryptdata:Ji,keySystem:wi,mediaKeys:sa});return K.generateRequestWithPreferredKeySession(La,H,J,"encrypted-event-no-match")})})),Kr.catch(function(Jn){return K.handleError(Jn)})}},{key:"_onWaitingForKey",value:function(L){this.log('"'.concat(L.type,'" event'))}},{key:"attemptSetMediaKeys",value:function(L,K){var H=this,J=this.setMediaKeysQueue.slice();this.log('Setting media-keys for "'.concat(L,'"'));var ne=Promise.all(J).then(function(){if(!H.media)throw new Error("Attempted to set mediaKeys without media element attached");return H.media.setMediaKeys(K)});return this.setMediaKeysQueue.push(ne),ne.then(function(){H.log('Media-keys set for "'.concat(L,'"')),J.push(ne),H.setMediaKeysQueue=H.setMediaKeysQueue.filter(function(we){return J.indexOf(we)===-1})})}},{key:"generateRequestWithPreferredKeySession",value:function(L,K,H,J){var ne=this,we,_e,Xe=(we=this.config.drmSystems)==null||(_e=we[L.keySystem])==null?void 0:_e.generateRequest;if(Xe)try{var ut=Xe.call(this.hls,K,H,L);if(!ut)throw new Error("Invalid response from configured generateRequest filter");K=ut.initDataType,H=L.decryptdata.pssh=ut.initData?new Uint8Array(ut.initData):null}catch(Kr){var ht;if(this.warn(Kr.message),(ht=this.hls)!=null&&ht.config.debug)throw Kr}if(H===null)return this.log('Skipping key-session request for "'.concat(J,'" (no initData)')),Promise.resolve(L);var Qt=this.getKeyIdString(L.decryptdata);this.log('Generating key-session request for "'.concat(J,'": ').concat(Qt," (init data type: ").concat(K," length: ").concat(H?H.byteLength:null,")"));var Tr=new zs;L.mediaKeysSession.onmessage=function(Kr){var Zr=L.mediaKeysSession;if(!Zr){Tr.emit("error",new Error("invalid state"));return}var Pn=Kr.messageType,Nn=Kr.message;ne.log('"'.concat(Pn,'" message event for session "').concat(Zr.sessionId,'" message size: ').concat(Nn.byteLength)),Pn==="license-request"||Pn==="license-renewal"?ne.renewLicense(L,Nn).catch(function(Jn){ne.handleError(Jn),Tr.emit("error",Jn)}):Pn==="license-release"?L.keySystem===Y.FAIRPLAY&&(ne.updateKeySession(L,Z("acknowledged")),ne.removeSession(L)):ne.warn('unhandled media key message type "'.concat(Pn,'"'))},L.mediaKeysSession.onkeystatuseschange=function(Kr){var Zr=L.mediaKeysSession;if(!Zr){Tr.emit("error",new Error("invalid state"));return}ne.onKeyStatusChange(L);var Pn=L.keyStatus;Tr.emit("keyStatus",Pn),Pn==="expired"&&(ne.warn("".concat(L.keySystem," expired for key ").concat(Qt)),ne.renewKeySession(L))};var br=new Promise(function(Kr,Zr){Tr.on("error",Zr),Tr.on("keyStatus",function(Pn){Pn.startsWith("usable")?Kr():Pn==="output-restricted"?Zr(new Pl({type:F.KEY_SYSTEM_ERROR,details:R.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED,fatal:!1},"HDCP level output restricted")):Pn==="internal-error"?Zr(new Pl({type:F.KEY_SYSTEM_ERROR,details:R.KEY_SYSTEM_STATUS_INTERNAL_ERROR,fatal:!0},'key status changed to "'.concat(Pn,'"'))):Pn==="expired"?Zr(new Error("key expired while generating request")):ne.warn('unhandled key status change "'.concat(Pn,'"'))})});return L.mediaKeysSession.generateRequest(K,H).then(function(){var Kr;ne.log('Request generated for key-session "'.concat((Kr=L.mediaKeysSession)==null?void 0:Kr.sessionId,'" keyId: ').concat(Qt))}).catch(function(Kr){throw new Pl({type:F.KEY_SYSTEM_ERROR,details:R.KEY_SYSTEM_NO_SESSION,error:Kr,fatal:!1},"Error generating key-session request: ".concat(Kr))}).then(function(){return br}).catch(function(Kr){throw Tr.removeAllListeners(),ne.removeSession(L),Kr}).then(function(){return Tr.removeAllListeners(),L})}},{key:"onKeyStatusChange",value:function(L){var K=this;L.mediaKeysSession.keyStatuses.forEach(function(H,J){K.log('key status change "'.concat(H,'" for keyStatuses keyId: ').concat(gt.hexDump("buffer"in J?new Uint8Array(J.buffer,J.byteOffset,J.byteLength):new Uint8Array(J))," session keyId: ").concat(gt.hexDump(new Uint8Array(L.decryptdata.keyId||[]))," uri: ").concat(L.decryptdata.uri)),L.keyStatus=H})}},{key:"fetchServerCertificate",value:function(L){var K=this.config,H=K.loader,J=new H(K),ne=this.getServerCertificateUrl(L);return ne?(this.log('Fetching serverCertificate for "'.concat(L,'"')),new Promise(function(we,_e){var Xe={responseType:"arraybuffer",url:ne},ut=K.certLoadPolicy.default,ht={loadPolicy:ut,timeout:ut.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},Qt={onSuccess:function(br,Kr,Zr,Pn){we(br.data)},onError:function(br,Kr,Zr,Pn){_e(new Pl({type:F.KEY_SYSTEM_ERROR,details:R.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:Zr,response:b({url:Xe.url,data:void 0},br)},'"'.concat(L,'" certificate request failed (').concat(ne,"). Status: ").concat(br.code," (").concat(br.text,")")))},onTimeout:function(br,Kr,Zr){_e(new Pl({type:F.KEY_SYSTEM_ERROR,details:R.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:Zr,response:{url:Xe.url,data:void 0}},'"'.concat(L,'" certificate request timed out (').concat(ne,")")))},onAbort:function(br,Kr,Zr){_e(new Error("aborted"))}};J.load(Xe,ht,Qt)})):Promise.resolve()}},{key:"setMediaKeysServerCertificate",value:function(L,K,H){var J=this;return new Promise(function(ne,we){L.setServerCertificate(H).then(function(_e){J.log("setServerCertificate ".concat(_e?"success":"not supported by CDM"," (").concat(H==null?void 0:H.byteLength,') on "').concat(K,'"')),ne(L)}).catch(function(_e){we(new Pl({type:F.KEY_SYSTEM_ERROR,details:R.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:_e,fatal:!0},_e.message))})})}},{key:"renewLicense",value:function(L,K){var H=this;return this.requestLicense(L,new Uint8Array(K)).then(function(J){return H.updateKeySession(L,new Uint8Array(J)).catch(function(ne){throw new Pl({type:F.KEY_SYSTEM_ERROR,details:R.KEY_SYSTEM_SESSION_UPDATE_FAILED,error:ne,fatal:!0},ne.message)})})}},{key:"setupLicenseXHR",value:function(L,K,H,J){var ne=this,we=this.config.licenseXhrSetup;return we?Promise.resolve().then(function(){if(!H.decryptdata)throw new Error("Key removed");return we.call(ne.hls,L,K,H,J)}).catch(function(_e){if(!H.decryptdata)throw _e;return L.open("POST",K,!0),we.call(ne.hls,L,K,H,J)}).then(function(_e){L.readyState||L.open("POST",K,!0);var Xe=_e||J;return{xhr:L,licenseChallenge:Xe}}):(L.open("POST",K,!0),Promise.resolve({xhr:L,licenseChallenge:J}))}},{key:"requestLicense",value:function(L,K){var H=this,J=this.config.keyLoadPolicy.default;return new Promise(function(ne,we){var _e=H.getLicenseServerUrl(L.keySystem);H.log("Sending license request to URL: ".concat(_e));var Xe=new XMLHttpRequest;Xe.responseType="arraybuffer",Xe.onreadystatechange=function(){if(!H.hls||!L.mediaKeysSession)return we(new Error("invalid state"));if(Xe.readyState===4)if(Xe.status===200){H._requestLicenseFailureCount=0;var ut=Xe.response;H.log("License received ".concat(ut instanceof ArrayBuffer?ut.byteLength:ut));var ht=H.config.licenseResponseCallback;if(ht)try{ut=ht.call(H.hls,Xe,_e,L)}catch(Kr){H.error(Kr)}ne(ut)}else{var Qt=J.errorRetry,Tr=Qt?Qt.maxNumRetry:0;if(H._requestLicenseFailureCount++,H._requestLicenseFailureCount>Tr||Xe.status>=400&&Xe.status<500)we(new Pl({type:F.KEY_SYSTEM_ERROR,details:R.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0,networkDetails:Xe,response:{url:_e,data:void 0,code:Xe.status,text:Xe.statusText}},"License Request XHR failed (".concat(_e,"). Status: ").concat(Xe.status," (").concat(Xe.statusText,")")));else{var br=Tr-H._requestLicenseFailureCount+1;H.warn("Retrying license request, ".concat(br," attempts left")),H.requestLicense(L,K).then(ne,we)}}},L.licenseXhr&&L.licenseXhr.readyState!==XMLHttpRequest.DONE&&L.licenseXhr.abort(),L.licenseXhr=Xe,H.setupLicenseXHR(Xe,_e,L,K).then(function(ut){var ht=ut.xhr,Qt=ut.licenseChallenge;ht.send(Qt)})})}},{key:"onMediaAttached",value:function(L,K){if(!this.config.emeEnabled)return;var H=K.media;this.media=H,H.addEventListener("encrypted",this.onMediaEncrypted),H.addEventListener("waitingforkey",this.onWaitingForKey)}},{key:"onMediaDetached",value:function(){var L=this,K=this.media,H=this.mediaKeySessions;K&&(K.removeEventListener("encrypted",this.onMediaEncrypted),K.removeEventListener("waitingforkey",this.onWaitingForKey),this.media=null),this._requestLicenseFailureCount=0,this.setMediaKeysQueue=[],this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},bt.clearKeyUriToKeyIdMap();var J=H.length;ve.CDMCleanupPromise=Promise.all(H.map(function(ne){return L.removeSession(ne)}).concat(K==null?void 0:K.setMediaKeys(null).catch(function(ne){L.log("Could not clear media keys: ".concat(ne,". media.src: ").concat(K==null?void 0:K.src))}))).then(function(){J&&(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(K==null?void 0:K.src))})}},{key:"onManifestLoading",value:function(){this.keyFormatPromise=null}},{key:"onManifestLoaded",value:function(L,K){var H=K.sessionKeys;if(!H||!this.config.emeEnabled)return;if(!this.keyFormatPromise){var J=H.reduce(function(ne,we){return ne.indexOf(we.keyFormat)===-1&&ne.push(we.keyFormat),ne},[]);this.log("Selecting key-system from session-keys ".concat(J.join(", "))),this.keyFormatPromise=this.getKeyFormatPromise(J)}}},{key:"removeSession",value:function(L){var K=this,H=L.mediaKeysSession,J=L.licenseXhr;if(H){this.log("Remove licenses and keys and close session ".concat(H.sessionId)),H.onmessage=null,H.onkeystatuseschange=null,J&&J.readyState!==XMLHttpRequest.DONE&&J.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(we){K.log("Could not remove session: ".concat(we))}).then(function(){return H.close()}).catch(function(we){K.log("Could not close session: ".concat(we))})}}}]),ve}();$l.CDMCleanupPromise=void 0;var Pl=function(ve){Object(a.a)(L,ve);var q=Object(e.a)(L);function L(K,H){var J;return Object(r.a)(this,L),J=q.call(this,H),J.data=void 0,K.error||(K.error=new Error(H)),J.data=K,K.err=K.error,J}return Object(s.a)(L)}(n(Error)),fu=1,xl={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},El="h",pu=function(){function ve(q){var L=this;Object(r.a)(this,ve),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(J){try{L.apply(J,{ot:xl.MANIFEST,su:!L.initialized})}catch(ne){U.warn("Could not generate manifest CMCD data.",ne)}},this.applyFragmentData=function(J){try{var ne=J.frag,we=L.hls.levels[ne.level],_e=L.getObjectType(ne),Xe={d:ne.duration*1e3,ot:_e};(_e===xl.VIDEO||_e===xl.AUDIO||_e==xl.MUXED)&&(Xe.br=we.bitrate/1e3,Xe.tb=L.getTopBandwidth(_e)/1e3,Xe.bl=L.getBufferLength(_e)),L.apply(J,Xe)}catch(ut){U.warn("Could not generate segment CMCD data.",ut)}},this.hls=q;var K=this.config=q.config,H=K.cmcd;H!=null&&(K.pLoader=this.createPlaylistLoader(),K.fLoader=this.createFragmentLoader(),this.sid=H.sessionId||ve.uuid(),this.cid=H.contentId,this.useHeaders=H.useHeaders===!0,this.registerListeners())}return Object(s.a)(ve,[{key:"registerListeners",value:function(){var L=this.hls;L.on(_.MEDIA_ATTACHED,this.onMediaAttached,this),L.on(_.MEDIA_DETACHED,this.onMediaDetached,this),L.on(_.BUFFER_CREATED,this.onBufferCreated,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;L.off(_.MEDIA_ATTACHED,this.onMediaAttached,this),L.off(_.MEDIA_DETACHED,this.onMediaDetached,this),L.off(_.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,K){this.media=K.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,K){var H,J;this.audioBuffer=(H=K.tracks.audio)==null?void 0:H.buffer,this.videoBuffer=(J=K.tracks.video)==null?void 0:J.buffer}},{key:"createData",value:function(){var L;return{v:fu,sf:El,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 K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};x(K,this.createData());var H=K.ot===xl.INIT||K.ot===xl.VIDEO||K.ot===xl.MUXED;if(this.starved&&H&&(K.bs=!0,K.su=!0,this.starved=!1),K.su==null&&(K.su=this.buffering),this.useHeaders){var J=ve.toHeaders(K);if(!Object.keys(J).length)return;L.headers||(L.headers={}),x(L.headers,J)}else{var ne=ve.toQuery(K);if(!ne)return;L.url=ve.appendQueryToUri(L.url,ne)}}},{key:"getObjectType",value:function(L){var K=L.type;return K==="subtitle"?xl.TIMED_TEXT:L.sn==="initSegment"?xl.INIT:K==="audio"?xl.AUDIO:K==="main"?this.hls.audioTracks.length?xl.VIDEO:xl.MUXED:void 0}},{key:"getTopBandwidth",value:function(L){var K=0,H,J=this.hls;if(L===xl.AUDIO)H=J.audioTracks;else{var ne=J.maxAutoLevel,we=ne>-1?ne+1:J.levels.length;H=J.levels.slice(0,we)}var _e=Object(p.a)(H),Xe;try{for(_e.s();!(Xe=_e.n()).done;){var ut=Xe.value;ut.bitrate>K&&(K=ut.bitrate)}}catch(ht){_e.e(ht)}finally{_e.f()}return K>0?K:NaN}},{key:"getBufferLength",value:function(L){var K=this.hls.media,H=L===xl.AUDIO?this.audioBuffer:this.videoBuffer;if(!H||!K)return NaN;var J=Pi.bufferInfo(H,K.currentTime,this.config.maxBufferHole);return J.len*1e3}},{key:"createPlaylistLoader",value:function(){var L=this.config.pLoader,K=this.applyPlaylistData,H=L||this.config.loader;return function(){function J(ne){Object(r.a)(this,J),this.loader=void 0,this.loader=new H(ne)}return Object(s.a)(J,[{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(we,_e,Xe){K(we),this.loader.load(we,_e,Xe)}}]),J}()}},{key:"createFragmentLoader",value:function(){var L=this.config.fLoader,K=this.applyFragmentData,H=L||this.config.loader;return function(){function J(ne){Object(r.a)(this,J),this.loader=void 0,this.loader=new H(ne)}return Object(s.a)(J,[{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(we,_e,Xe){K(we),this.loader.load(we,_e,Xe)}}]),J}()}}],[{key:"uuid",value:function(){var L=URL.createObjectURL(new Blob),K=L.toString();return URL.revokeObjectURL(L),K.slice(K.lastIndexOf("/")+1)}},{key:"serialize",value:function(L){var K=[],H=function(Nn){return!Number.isNaN(Nn)&&Nn!=null&&Nn!==""&&Nn!==!1},J=function(Nn){return Math.round(Nn)},ne=function(Nn){return J(Nn/100)*100},we=function(Nn){return encodeURIComponent(Nn)},_e={br:J,d:J,bl:ne,dl:ne,mtp:ne,nor:we,rtp:ne,tb:J},Xe=Object.keys(L||{}).sort(),ut=Object(p.a)(Xe),ht;try{for(ut.s();!(ht=ut.n()).done;){var Qt=ht.value,Tr=L[Qt];if(!H(Tr))continue;if(Qt==="v"&&Tr===1)continue;if(Qt=="pr"&&Tr===1)continue;var br=_e[Qt];br&&(Tr=br(Tr));var Kr=typeof Tr,Zr=void 0;Qt==="ot"||Qt==="sf"||Qt==="st"?Zr="".concat(Qt,"=").concat(Tr):Kr==="boolean"?Zr=Qt:Kr==="number"?Zr="".concat(Qt,"=").concat(Tr):Zr="".concat(Qt,"=").concat(JSON.stringify(Tr)),K.push(Zr)}}catch(Pn){ut.e(Pn)}finally{ut.f()}return K.join(",")}},{key:"toHeaders",value:function(L){for(var K=Object.keys(L),H={},J=["Object","Request","Session","Status"],ne=[{},{},{},{}],we={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},_e=0,Xe=K;_e<Xe.length;_e++){var ut=Xe[_e],ht=we[ut]!=null?we[ut]:1;ne[ht][ut]=L[ut]}for(var Qt=0;Qt<ne.length;Qt++){var Tr=ve.serialize(ne[Qt]);Tr&&(H["CMCD-".concat(J[Qt])]=Tr)}return H}},{key:"toQuery",value:function(L){return"CMCD=".concat(encodeURIComponent(ve.serialize(L)))}},{key:"appendQueryToUri",value:function(L,K){if(!K)return L;var H=L.includes("?")?"&":"?";return"".concat(L).concat(H).concat(K)}}]),ve}(),mu=3e5,Lu=function(){function ve(q){Object(r.a)(this,ve),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=q,this.log=U.log.bind(U,"[content-steering]:"),this.registerListeners()}return Object(s.a)(ve,[{key:"registerListeners",value:function(){var L=this.hls;L.on(_.MANIFEST_LOADING,this.onManifestLoading,this),L.on(_.MANIFEST_LOADED,this.onManifestLoaded,this),L.on(_.MANIFEST_PARSED,this.onManifestParsed,this),L.on(_.ERROR,this.onError,this)}},{key:"unregisterListeners",value:function(){var L=this.hls;if(!L)return;L.off(_.MANIFEST_LOADING,this.onManifestLoading,this),L.off(_.MANIFEST_LOADED,this.onManifestLoaded,this),L.off(_.MANIFEST_PARSED,this.onManifestParsed,this),L.off(_.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 K=this.levels;K&&(this.levels=K.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,K){var H=K.contentSteering;if(H===null)return;this.pathwayId=H.pathwayId,this.uri=H.uri,this.started&&this.startLoad()}},{key:"onManifestParsed",value:function(L,K){this.audioTracks=K.audioTracks,this.subtitleTracks=K.subtitleTracks}},{key:"onError",value:function(L,K){var H=K.errorAction;if((H==null?void 0:H.action)===yn.SendAlternateToPenaltyBox&&H.flags===dr.MoveAllAlternatesMatchingHost){var J=this.pathwayPriority,ne=this.pathwayId;this.penalizedPathways[ne]||(this.penalizedPathways[ne]=performance.now()),!J&&this.levels&&(J=this.levels.reduce(function(we,_e){return we.indexOf(_e.pathwayId)===-1&&we.push(_e.pathwayId),we},[])),J&&J.length>1&&(this.updatePathwayPriority(J),H.resolved=this.pathwayId!==ne)}}},{key:"filterParsedLevels",value:function(L){this.levels=L;var K=this.getLevelsForPathway(this.pathwayId);if(K.length===0){var H=L[0].pathwayId;this.log("No levels found in Pathway ".concat(this.pathwayId,'. Setting initial Pathway to "').concat(H,'"')),K=this.getLevelsForPathway(H),this.pathwayId=H}return K.length!==L.length?(this.log("Found ".concat(K.length,"/").concat(L.length,' levels in Pathway "').concat(this.pathwayId,'"')),K):L}},{key:"getLevelsForPathway",value:function(L){return this.levels===null?[]:this.levels.filter(function(K){return L===K.pathwayId})}},{key:"updatePathwayPriority",value:function(L){this.pathwayPriority=L;var K,H=this.penalizedPathways,J=performance.now();Object.keys(H).forEach(function(ht){J-H[ht]>mu&&delete H[ht]});for(var ne=0;ne<L.length;ne++){var we=L[ne];if(H[we])continue;if(we===this.pathwayId)return;var _e=this.hls.nextLoadLevel,Xe=this.hls.levels[_e];if(K=this.getLevelsForPathway(we),K.length>0){this.log('Setting Pathway to "'.concat(we,'"')),this.pathwayId=we,this.hls.trigger(_.LEVELS_UPDATED,{levels:K});var ut=this.hls.levels[_e];Xe&&ut&&this.levels&&(ut.attrs["STABLE-VARIANT-ID"]!==Xe.attrs["STABLE-VARIANT-ID"]&&ut.bitrate!==Xe.bitrate&&this.log("Unstable Pathways change from bitrate ".concat(Xe.bitrate," to ").concat(ut.bitrate)),this.hls.nextLoadLevel=_e);break}}}},{key:"clonePathways",value:function(L){var K=this,H=this.levels;if(!H)return;var J={},ne={};L.forEach(function(we){var _e=we.ID,Xe=we["BASE-ID"],ut=we["URI-REPLACEMENT"];if(H.some(function(Qt){return Qt.pathwayId===_e}))return;var ht=K.getLevelsForPathway(Xe).map(function(Qt){var Tr=x({},Qt);Tr.details=void 0,Tr.url=ql(Qt.uri,Qt.attrs["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",ut);var br=new G(Qt.attrs);br["PATHWAY-ID"]=_e;var Kr=br.AUDIO&&"".concat(br.AUDIO,"_clone_").concat(_e),Zr=br.SUBTITLES&&"".concat(br.SUBTITLES,"_clone_").concat(_e);Kr&&(J[br.AUDIO]=Kr,br.AUDIO=Kr),Zr&&(ne[br.SUBTITLES]=Zr,br.SUBTITLES=Zr),Tr.attrs=br;var Pn=new yr(Tr);return _r(Pn,"audio",Kr),_r(Pn,"text",Zr),Pn});H.push.apply(H,Object(y.a)(ht)),Kl(K.audioTracks,J,ut,_e),Kl(K.subtitleTracks,ne,ut,_e)})}},{key:"loadSteeringManifest",value:function(L){var K=this,H=this.hls.config,J=H.loader;this.loader&&this.loader.destroy(),this.loader=new J(H);var ne;try{ne=new self.URL(L)}catch(Tr){this.enabled=!1,this.log("Failed to parse Steering Manifest URI: ".concat(L));return}if(ne.protocol!=="data:"){var we=(this.hls.bandwidthEstimate||H.abrEwmaDefaultEstimate)|0;ne.searchParams.set("_HLS_pathway",this.pathwayId),ne.searchParams.set("_HLS_throughput",""+we)}var _e={responseType:"json",url:ne.href},Xe=H.steeringManifestLoadPolicy.default,ut=Xe.errorRetry||Xe.timeoutRetry||{},ht={loadPolicy:Xe,timeout:Xe.maxLoadTimeMs,maxRetry:ut.maxNumRetry||0,retryDelay:ut.retryDelayMs||0,maxRetryDelay:ut.maxRetryDelayMs||0},Qt={onSuccess:function(br,Kr,Zr,Pn){K.log('Loaded steering manifest: "'.concat(ne,'"'));var Nn=br.data;if(Nn.VERSION!==1){K.log("Steering VERSION ".concat(Nn.VERSION," not supported!"));return}K.updated=performance.now(),K.timeToLoad=Nn.TTL;var Jn=Nn["RELOAD-URI"],wi=Nn["PATHWAY-CLONES"],sa=Nn["PATHWAY-PRIORITY"];if(Jn)try{K.uri=new self.URL(Jn,ne).href}catch(Wi){K.enabled=!1,K.log("Failed to parse Steering Manifest RELOAD-URI: ".concat(Jn));return}K.scheduleRefresh(K.uri||Zr.url),wi&&K.clonePathways(wi),sa&&K.updatePathwayPriority(sa)},onError:function(br,Kr,Zr,Pn){if(K.log("Error loading steering manifest: ".concat(br.code," ").concat(br.text," (").concat(Kr.url,")")),K.stopLoad(),br.code===410){K.enabled=!1,K.log("Steering manifest ".concat(Kr.url," no longer available"));return}var Nn=K.timeToLoad*1e3;if(br.code===429){var Jn=K.loader;if(typeof(Jn==null?void 0:Jn.getResponseHeader)=="function"){var wi=Jn.getResponseHeader("Retry-After");wi&&(Nn=parseFloat(wi)*1e3)}K.log("Steering manifest ".concat(Kr.url," rate limited"));return}K.scheduleRefresh(K.uri||Kr.url,Nn)},onTimeout:function(br,Kr,Zr){K.log("Timeout loading steering manifest (".concat(Kr.url,")")),K.scheduleRefresh(K.uri||Kr.url)}};this.log("Requesting steering manifest: ".concat(ne)),this.loader.load(_e,ht,Qt)}},{key:"scheduleRefresh",value:function(L){var K=this,H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.timeToLoad*1e3;self.clearTimeout(this.reloadTimer),this.reloadTimer=self.setTimeout(function(){K.loadSteeringManifest(L)},H)}}]),ve}();function Kl(ve,q,L,K){if(!ve)return;Object.keys(q).forEach(function(H){var J=ve.filter(function(ne){return ne.groupId===H}).map(function(ne){var we=x({},ne);return we.details=void 0,we.attrs=new G(we.attrs),we.url=we.attrs.URI=ql(ne.url,ne.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",L),we.groupId=we.attrs["GROUP-ID"]=q[H],we.attrs["PATHWAY-ID"]=K,we});ve.push.apply(ve,Object(y.a)(J))})}function ql(ve,q,L,K){var H=K.HOST,J=K.PARAMS,ne=K[L],we;q&&(we=ne==null?void 0:ne[q],we&&(ve=we));var _e=new self.URL(ve);return H&&!we&&(_e.host=H),J&&Object.keys(J).sort().forEach(function(Xe){Xe&&_e.searchParams.set(Xe,J[Xe])}),_e.href}var iu=/^age:\s*[\d.]+\s*$/im,au=function(){function ve(q){Object(r.a)(this,ve),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=q&&q.xhrSetup||null,this.stats=new re,this.retryDelay=0}return Object(s.a)(ve,[{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,K,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=K,this.callbacks=H,this.loadInternal()}},{key:"loadInternal",value:function(){var L=this,K=this.config,H=this.context;if(!K)return;var J=this.loader=new self.XMLHttpRequest,ne=this.stats;ne.loading.first=0,ne.loaded=0,ne.aborted=!1;var we=this.xhrSetup;we?Promise.resolve().then(function(){return L.stats.aborted?void 0:we(J,H.url)}).catch(function(_e){return J.open("GET",H.url,!0),we(J,H.url)}).then(function(){if(L.stats.aborted)return;L.openAndSendXhr(J,H,K)}).catch(function(_e){L.callbacks.onError({code:J.status,text:_e.message},H,J,ne);return}):this.openAndSendXhr(J,H,K)}},{key:"openAndSendXhr",value:function(L,K,H){L.readyState||L.open("GET",K.url,!0);var J=this.context.headers,ne=H.loadPolicy,we=ne.maxTimeToFirstByteMs,_e=ne.maxLoadTimeMs;if(J)for(var Xe in J)L.setRequestHeader(Xe,J[Xe]);K.rangeEnd&&L.setRequestHeader("Range","bytes="+K.rangeStart+"-"+(K.rangeEnd-1)),L.onreadystatechange=this.readystatechange.bind(this),L.onprogress=this.loadprogress.bind(this),L.responseType=K.responseType,self.clearTimeout(this.requestTimeout),H.timeout=we&&E(we)?we:_e,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),H.timeout),L.send()}},{key:"readystatechange",value:function(){var L=this.context,K=this.loader,H=this.stats;if(!L||!K)return;var J=K.readyState,ne=this.config;if(H.aborted)return;if(J>=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)))),J===4)){self.clearTimeout(this.requestTimeout),K.onreadystatechange=null,K.onprogress=null;var we=K.status,_e=K.responseType!=="text";if(we>=200&&we<300&&(_e&&K.response||K.responseText!==null)){H.loading.end=Math.max(self.performance.now(),H.loading.first);var Xe=_e?K.response:K.responseText,ut=K.responseType==="arraybuffer"?Xe.byteLength:Xe.length;if(H.loaded=H.total=ut,H.bwEstimate=H.total*8e3/(H.loading.end-H.loading.first),!this.callbacks)return;var ht=this.callbacks.onProgress;if(ht&&ht(H,L,Xe,K),!this.callbacks)return;var Qt={url:K.responseURL,data:Xe,code:we};this.callbacks.onSuccess(Qt,H,L,K)}else{var Tr=ne.loadPolicy.errorRetry,br=H.retry;Aa(Tr,br,!1,we)?this.retry(Tr):(U.error("".concat(we," while loading ").concat(L.url)),this.callbacks.onError({code:we,text:K.statusText},L,K,H))}}}},{key:"loadtimeout",value:function(){var L,K=(L=this.config)==null?void 0:L.loadPolicy.timeoutRetry,H=this.stats.retry;if(Aa(K,H,!0))this.retry(K);else{U.warn("timeout while loading ".concat(this.context.url));var J=this.callbacks;J&&(this.abortInternal(),J.onTimeout(this.stats,this.context,this.loader))}}},{key:"retry",value:function(L){var K=this.context,H=this.stats;this.retryDelay=ma(L,H.retry),H.retry++,U.warn("".concat(status?"HTTP Status "+status:"Timeout"," while loading ").concat(K.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 K=this.stats;K.loaded=L.loaded,L.lengthComputable&&(K.total=L.total)}},{key:"getCacheAge",value:function(){var L=null;if(this.loader&&iu.test(this.loader.getAllResponseHeaders())){var K=this.loader.getResponseHeader("age");L=K?parseFloat(K):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}}]),ve}();function Ql(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch(ve){}return!1}var Ru=/(\d+)-(\d+)\/(\d+)/,Nu=function(){function ve(q){Object(r.a)(this,ve),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=q.fetchSetup||vu,this.controller=new self.AbortController,this.stats=new re}return Object(s.a)(ve,[{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,K,H){var J=this,ne=this.stats;if(ne.loading.start)throw new Error("Loader can only be used once.");ne.loading.start=self.performance.now();var we=Jl(L,this.controller.signal),_e=H.onProgress,Xe=L.responseType==="arraybuffer",ut=Xe?"byteLength":"length",ht=K.loadPolicy,Qt=ht.maxTimeToFirstByteMs,Tr=ht.maxLoadTimeMs;this.context=L,this.config=K,this.callbacks=H,this.request=this.fetchSetup(L,we),self.clearTimeout(this.requestTimeout),K.timeout=Qt&&E(Qt)?Qt:Tr,this.requestTimeout=self.setTimeout(function(){J.abortInternal(),H.onTimeout(ne,L,J.response)},K.timeout),self.fetch(this.request).then(function(br){J.response=J.loader=br;var Kr=Math.max(self.performance.now(),ne.loading.start);if(self.clearTimeout(J.requestTimeout),K.timeout=Tr,J.requestTimeout=self.setTimeout(function(){J.abortInternal(),H.onTimeout(ne,L,J.response)},Tr-(Kr-ne.loading.start)),!br.ok){var Zr=br.status,Pn=br.statusText;throw new ul(Pn||"fetch, bad network response",Zr,br)}return ne.loading.first=Kr,ne.total=wu(br.headers)||ne.total,_e&&E(K.highWaterMark)?J.loadProgressively(br,ne,L,K.highWaterMark,_e):Xe?br.arrayBuffer():L.responseType==="json"?br.json():br.text()}).then(function(br){var Kr=J.response;self.clearTimeout(J.requestTimeout),ne.loading.end=Math.max(self.performance.now(),ne.loading.first);var Zr=br[ut];Zr&&(ne.loaded=ne.total=Zr);var Pn={url:Kr.url,data:br,code:Kr.status};_e&&!E(K.highWaterMark)&&_e(ne,L,br,Kr),H.onSuccess(Pn,ne,L,Kr)}).catch(function(br){if(self.clearTimeout(J.requestTimeout),ne.aborted)return;var Kr=br&&br.code||0,Zr=br?br.message:null;H.onError({code:Kr,text:Zr},L,br?br.details:null,ne)})}},{key:"getCacheAge",value:function(){var L=null;if(this.response){var K=this.response.headers.get("age");L=K?parseFloat(K):null}return L}},{key:"getResponseHeader",value:function(L){return this.response?this.response.headers.get(L):null}},{key:"loadProgressively",value:function(L,K,H){var J=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,ne=arguments.length>4?arguments[4]:void 0,we=new hi,_e=L.body.getReader(),Xe=function ut(){return _e.read().then(function(ht){if(ht.done)return we.dataLength&&ne(K,H,we.flush(),L),Promise.resolve(new ArrayBuffer(0));var Qt=ht.value,Tr=Qt.length;return K.loaded+=Tr,Tr<J||we.dataLength?(we.push(Qt),we.dataLength>=J&&ne(K,H,we.flush(),L)):ne(K,H,Qt,L),ut()}).catch(function(){return Promise.reject()})};return Xe()}}]),ve}();function Jl(ve,q){var L={method:"GET",mode:"cors",credentials:"same-origin",signal:q,headers:new self.Headers(x({},ve.headers))};return ve.rangeEnd&&L.headers.set("Range","bytes="+ve.rangeStart+"-"+String(ve.rangeEnd-1)),L}function gu(ve){var q=Ru.exec(ve);if(q)return parseInt(q[2])-parseInt(q[1])+1}function wu(ve){var q=ve.get("Content-Range");if(q){var L=gu(q);if(E(L))return L}var K=ve.get("Content-Length");if(K)return parseInt(K)}function vu(ve,q){return new self.Request(ve.url,q)}var ul=function(ve){Object(a.a)(L,ve);var q=Object(e.a)(L);function L(K,H,J){var ne;return Object(r.a)(this,L),ne=q.call(this,K),ne.code=void 0,ne.details=void 0,ne.code=H,ne.details=J,ne}return Object(s.a)(L)}(n(Error)),Ol=/\s/,ru={newCue:function(q,L,K,H){for(var J=[],ne,we,_e,Xe,ut,ht=self.VTTCue||self.TextTrackCue,Qt=0;Qt<H.rows.length;Qt++)if(ne=H.rows[Qt],_e=!0,Xe=0,ut="",!ne.isEmpty()){for(var Tr,br=0;br<ne.chars.length;br++)Ol.test(ne.chars[br].uchar)&&_e?Xe++:(ut+=ne.chars[br].uchar,_e=!1);ne.cueStartTime=L,L===K&&(K+=1e-4),Xe>=16?Xe--:Xe++;var Kr=ms(ut.trim()),Zr=Il(L,K,Kr);q!=null&&(Tr=q.cues)!=null&&Tr.getCueById(Zr)||(we=new ht(L,K,Kr),we.id=Zr,we.line=Qt+1,we.align="left",we.position=10+Math.min(80,Math.floor(Xe*8/32)*10),J.push(we))}return q&&J.length&&(J.sort(function(Pn,Nn){return Pn.line==="auto"||Nn.line==="auto"?0:Pn.line>8&&Nn.line>8?Nn.line-Pn.line:Pn.line-Nn.line}),J.forEach(function(Pn){return Mr(q,Pn)})),J}},Du={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},Su=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:au,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:_n,bufferController:ua,capLevelController:Sl,errorController:Rr,fpsController:Ml,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:ye,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableID3MetadataCues:!0,certLoadPolicy:{default:Du},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},cu()),{},{subtitleStreamController:Qr,subtitleTrackController:In,timelineController:bu,audioStreamController:Ee,audioTrackController:Le,emeController:$l,cmcdController:pu,contentSteeringController:Lu});function cu(){return{cueHandler:ru,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 ou(ve,q){if((q.liveSyncDurationCount||q.liveMaxLatencyDurationCount)&&(q.liveSyncDuration||q.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(q.liveMaxLatencyDurationCount!==void 0&&(q.liveSyncDurationCount===void 0||q.liveMaxLatencyDurationCount<=q.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(q.liveMaxLatencyDuration!==void 0&&(q.liveSyncDuration===void 0||q.liveMaxLatencyDuration<=q.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');var L=su(ve),K=["manifest","level","frag"],H=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return K.forEach(function(J){var ne="".concat(J==="level"?"playlist":J,"LoadPolicy"),we=q[ne]===void 0,_e=[];H.forEach(function(Xe){var ut="".concat(J,"Loading").concat(Xe),ht=q[ut];if(ht!==void 0&&we){_e.push(ut);var Qt=L[ne].default;q[ne]={default:Qt};switch(Xe){case"TimeOut":Qt.maxLoadTimeMs=ht,Qt.maxTimeToFirstByteMs=ht;break;case"MaxRetry":Qt.errorRetry.maxNumRetry=ht,Qt.timeoutRetry.maxNumRetry=ht;break;case"RetryDelay":Qt.errorRetry.retryDelayMs=ht,Qt.timeoutRetry.retryDelayMs=ht;break;case"MaxRetryTimeout":Qt.errorRetry.maxRetryDelayMs=ht,Qt.timeoutRetry.maxRetryDelayMs=ht;break}}}),_e.length&&U.warn('hls.js config: "'.concat(_e.join('", "'),'" setting(s) are deprecated, use "').concat(ne,'": ').concat(JSON.stringify(q[ne])))}),b(b({},L),q)}function su(ve){return ve&&typeof ve=="object"?Array.isArray(ve)?ve.map(su):Object.keys(ve).reduce(function(q,L){return q[L]=su(ve[L]),q},{}):ve}function xu(ve){var q=ve.loader;if(q!==Nu&&q!==au)U.log("[config]: Custom loader detected, cannot enable progressive streaming"),ve.progressive=!1;else{var L=Ql();L&&(ve.loader=Nu,ve.progressive=!0,ve.enableSoftwareAES=!0,U.log("[config]: Progressive streaming enabled, using FetchLoader"))}}var Au=function(){function ve(){var q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Object(r.a)(this,ve),this.config=void 0,this.userConfig=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new zs,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,W(q.debug||!1,"Hls instance");var L=this.config=ou(ve.DefaultConfig,q);this.userConfig=q,this._autoLevelCapping=-1,L.progressive&&xu(L);var K=L.abrController,H=L.bufferController,J=L.capLevelController,ne=L.errorController,we=L.fpsController,_e=new ne(this),Xe=this.abrController=new K(this),ut=this.bufferController=new H(this),ht=this.capLevelController=new J(this),Qt=new we(this),Tr=new gr(this),br=new Ft(this),Kr=L.contentSteeringController,Zr=Kr?new Kr(this):null,Pn=this.levelController=new kt(this,Zr),Nn=new xn(this),Jn=new Bi(this.config),wi=this.streamController=new Ao(this,Nn,Jn);ht.setStreamController(wi),Qt.setStreamController(wi);var sa=[Tr,Pn,wi];Zr&&sa.splice(1,0,Zr),this.networkControllers=sa;var Wi=[Xe,ut,ht,Qt,br,Nn];this.audioTrackController=this.createController(L.audioTrackController,sa);var Ji=L.audioStreamController;Ji&&sa.push(new Ji(this,Nn,Jn)),this.subtitleTrackController=this.createController(L.subtitleTrackController,sa);var La=L.subtitleStreamController;La&&sa.push(new La(this,Nn,Jn)),this.createController(L.timelineController,Wi),Jn.emeController=this.emeController=this.createController(L.emeController,Wi),this.cmcdController=this.createController(L.cmcdController,Wi),this.latencyController=this.createController(Wt,Wi),this.coreComponents=Wi,sa.push(_e);var Xa=_e.onErrorOut;typeof Xa=="function"&&this.on(_.ERROR,Xa,_e)}return Object(s.a)(ve,[{key:"createController",value:function(L,K){if(L){var H=new L(this);return K&&K.push(H),H}return null}},{key:"on",value:function(L,K){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this;this._emitter.on(L,K,H)}},{key:"once",value:function(L,K){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this;this._emitter.once(L,K,H)}},{key:"removeAllListeners",value:function(L){this._emitter.removeAllListeners(L)}},{key:"off",value:function(L,K){var H=arguments.length>2&&arguments[2]!==void 0?arguments[2]:this,J=arguments.length>3?arguments[3]:void 0;this._emitter.off(L,K,H,J)}},{key:"listeners",value:function(L){return this._emitter.listeners(L)}},{key:"emit",value:function(L,K,H){return this._emitter.emit(L,K,H)}},{key:"trigger",value:function(L,K){if(this.config.debug)return this.emit(L,L,K);try{return this.emit(L,L,K)}catch(H){U.error("An internal error happened while handling event "+L+'. Error message: "'+H.message+'". Here is a stacktrace:',H),this.trigger(_.ERROR,{type:F.OTHER_ERROR,details:R.INTERNAL_EXCEPTION,fatal:!1,event:L,error:H})}return!1}},{key:"listenerCount",value:function(L){return this._emitter.listenerCount(L)}},{key:"destroy",value:function(){U.log("destroy"),this.trigger(_.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this.url=null,this.networkControllers.forEach(function(K){return K.destroy()}),this.networkControllers.length=0,this.coreComponents.forEach(function(K){return K.destroy()}),this.coreComponents.length=0;var L=this.config;L.xhrSetup=L.fetchSetup=void 0,this.userConfig=null}},{key:"attachMedia",value:function(L){U.log("attachMedia"),this._media=L,this.trigger(_.MEDIA_ATTACHING,{media:L})}},{key:"detachMedia",value:function(){U.log("detachMedia"),this.trigger(_.MEDIA_DETACHING,void 0),this._media=null}},{key:"loadSource",value:function(L){this.stopLoad();var K=this.media,H=this.url,J=this.url=g.buildAbsoluteURL(self.location.href,L,{alwaysNormalize:!0});U.log("loadSource:".concat(J)),K&&H&&(H!==J||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(K)),this.trigger(_.MANIFEST_LOADING,{url:L})}},{key:"startLoad",value:function(){var L=arguments.length>0&&arguments[0]!==void 0?arguments[0]:-1;U.log("startLoad(".concat(L,")")),this.networkControllers.forEach(function(K){K.startLoad(L)})}},{key:"stopLoad",value:function(){U.log("stopLoad"),this.networkControllers.forEach(function(L){L.stopLoad()})}},{key:"swapAudioCodec",value:function(){U.log("swapAudioCodec"),this.streamController.swapAudioCodec()}},{key:"recoverMediaError",value:function(){U.log("recoverMediaError");var L=this._media;this.detachMedia(),L&&this.attachMedia(L)}},{key:"removeLevel",value:function(L){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;this.levelController.removeLevel(L,K)}},{key:"levels",get:function(){var L=this.levelController.levels;return L||[]}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(L){U.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){U.log("set nextLevel:".concat(L)),this.levelController.manualLevel=L,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(L){U.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){U.log("set firstLevel:".concat(L)),this.levelController.firstLevel=L}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(L){U.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 K=!!L;K!==this.config.capLevelToPlayerSize&&(K?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=K)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(L){this._autoLevelCapping!==L&&(U.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){Vt.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,K=this.config.minAutoBitrate;if(!L)return 0;for(var H=L.length,J=0;J<H;J++)if(L[J].maxBitrate>=K)return J;return 0}},{key:"maxAutoLevel",get:function(){var L=this.levels,K=this.autoLevelCapping,H=this.maxHdcpLevel,J;if(K===-1&&L&&L.length?J=L.length-1:J=K,H)for(var ne=J;ne--;){var we=L[ne].attrs["HDCP-LEVEL"];if(we&&we<=H)return ne}return J}},{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 K=this.audioTrackController;K&&(K.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 K=this.subtitleTrackController;K&&(K.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 K=this.subtitleTrackController;K&&(K.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.13"}},{key:"isSupported",value:function(){return ao()}},{key:"Events",get:function(){return _}},{key:"ErrorTypes",get:function(){return F}},{key:"ErrorDetails",get:function(){return R}},{key:"DefaultConfig",get:function(){return ve.defaultConfig?ve.defaultConfig:Su},set:function(L){ve.defaultConfig=L}}]),ve}();Au.defaultConfig=void 0},pmaE:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("IwbS"),A=i("DEFe"),m="__seriesMapHighDown",f="__seriesMapCallKey",d=y.extendChartView({type:"map",render:function(n,t,a,e){if(e&&e.type==="mapToggleSelect"&&e.from===this.uid)return;var u=this.group;if(u.removeAll(),n.getHostGeoModel())return;if(e&&e.type==="geoRoam"&&e.componentType==="series"&&e.seriesId===n.id){var r=this._mapDraw;r&&u.add(r.group)}else if(n.needsDrawMap){var r=this._mapDraw||new A(a,!0);u.add(r.group),r.draw(n,t,a,this,e),this._mapDraw=r}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;n.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(n,t,a)},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(n,t,a){var e=n.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,g=c.offset,v=new S.Circle({style:{fill:n.getData().getVisual("color")},shape:{cx:h[0]+g*9,cy:h[1],r:3},silent:!0,z2:8+(g?0:S.Z2_EMPHASIS_LIFT+1)});if(!g){var b=n.mainSeries.getData(),w=e.getName(s),x=b.indexOfName(w),T=e.getItemModel(s),O=T.getModel("label"),E=T.getModel("emphasis.label"),C=b.getItemGraphicEl(x),I=p.retrieve2(n.getFormattedLabel(x,"normal"),w),_=p.retrieve2(n.getFormattedLabel(x,"emphasis"),I),F=C[m],R=Math.random();if(!F){F=C[m]={};var B=p.curry(l,!0),M=p.curry(l,!1);C.on("mouseover",B).on("mouseout",M).on("emphasis",B).on("normal",M)}C[f]=R,p.extend(F,{recordVersion:R,circle:v,labelModel:O,hoverLabelModel:E,emphasisText:_,normalText:I}),o(F,!1)}u.add(v)})}});function l(n){var t=this[m];t&&t.recordVersion===this[f]&&o(t,n)}function o(n,t){var a=n.circle,e=n.labelModel,u=n.hoverLabelModel,r=n.emphasisText,s=n.normalText;t?(a.style.extendFrom(S.setTextStyle({},u,{text:u.get("show")?r:null},{isRectText:!0,useInsideStyle:!1},!0)),a.__mapOriginalZ2=a.z2,a.z2+=S.Z2_EMPHASIS_LIFT):(S.setTextStyle(a.style,e,{text:e.get("show")?s:null,textPosition:e.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),a.dirty(!1),a.__mapOriginalZ2!=null&&(a.z2=a.__mapOriginalZ2,a.__mapOriginalZ2=null))}k.exports=d},pwpV:function(k,D,i){},pzxd:function(k,D,i){var y=i("bYtY"),p=y.retrieve2,S=y.retrieve3,A=y.each,m=y.normalizeCssArray,f=y.isString,d=y.isObject,l=i("6GrX"),o=i("VpOo"),n=i("Xnb7"),t=i("fW2E"),a=i("gut8"),e=a.ContextCachedBy,u=a.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"]],g={},v={};function b(V){return w(V),A(V.rich,w),V}function w(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=m(V.textPadding))}}function x(V,Q,G,te,$,le){te.rich?O(V,Q,G,te,$,le):T(V,Q,G,te,$,le)}function T(V,Q,G,te,$,le){"use strict";var re=_(te),Se,Re=!1,Pe=Q.__attrCachedBy===e.PLAIN_TEXT;le!==u?(le&&(Se=le.style,Re=!re&&Pe&&Se),Q.__attrCachedBy=re?e.NONE:e.PLAIN_TEXT):Pe&&(Q.__attrCachedBy=e.NONE);var Je=te.font||r;(!Re||Je!==(Se.font||r))&&(Q.font=Je);var Ve=V.__computedFont;V.__styleFont!==Je&&(V.__styleFont=Je,Ve=V.__computedFont=Q.font);var ct=te.textPadding,Ue=te.textLineHeight,ue=V.__textCotentBlock;(!ue||V.__dirtyText)&&(ue=V.__textCotentBlock=l.parsePlainText(G,Ve,ct,Ue,te.truncate));var rt=ue.outerHeight,ge=ue.lines,Z=ue.lineHeight,Y=B(v,V,te,$),ee=Y.baseX,fe=Y.baseY,be=Y.textAlign||"left",Ce=Y.textVerticalAlign;C(Q,te,$,ee,fe);var Te=l.adjustTextY(fe,rt,Ce),he=ee,ye=Te;if(re||ct){var Ie=l.getWidth(G,Ve),tt=Ie;ct&&(tt+=ct[1]+ct[3]);var pt=l.adjustTextX(ee,tt,be);re&&F(V,Q,te,pt,Te,tt,rt),ct&&(he=W(ee,be,ct),ye+=ct[0])}Q.textAlign=be,Q.textBaseline="middle",Q.globalAlpha=te.opacity||1;for(var st=0;st<h.length;st++){var Fe=h[st],ft=Fe[0],et=Fe[1],wt=te[ft];(!Re||wt!==Se[ft])&&(Q[et]=t(Q,et,wt||Fe[2]))}ye+=Z/2;var Ht=te.textStrokeWidth,Dt=Re?Se.textStrokeWidth:null,Tt=!Re||Ht!==Dt,Bt=!Re||Tt||te.textStroke!==Se.textStroke,Ke=X(te.textStroke,Ht),de=P(te.textFill);if(Ke&&(Tt&&(Q.lineWidth=Ht),Bt&&(Q.strokeStyle=Ke)),de&&((!Re||te.textFill!==Se.textFill)&&(Q.fillStyle=de)),ge.length===1)Ke&&Q.strokeText(ge[0],he,ye),de&&Q.fillText(ge[0],he,ye);else for(var st=0;st<ge.length;st++)Ke&&Q.strokeText(ge[st],he,ye),de&&Q.fillText(ge[st],he,ye),ye+=Z}function O(V,Q,G,te,$,le){le!==u&&(Q.__attrCachedBy=e.NONE);var re=V.__textCotentBlock;(!re||V.__dirtyText)&&(re=V.__textCotentBlock=l.parseRichText(G,te)),E(V,Q,re,te,$)}function E(V,Q,G,te,$){var le=G.width,re=G.outerWidth,Se=G.outerHeight,Re=te.textPadding,Pe=B(v,V,te,$),Je=Pe.baseX,Ve=Pe.baseY,ct=Pe.textAlign,Ue=Pe.textVerticalAlign;C(Q,te,$,Je,Ve);var ue=l.adjustTextX(Je,re,ct),rt=l.adjustTextY(Ve,Se,Ue),ge=ue,Z=rt;Re&&(ge+=Re[3],Z+=Re[0]);var Y=ge+le;_(te)&&F(V,Q,te,ue,rt,re,Se);for(var ee=0;ee<G.lines.length;ee++){for(var fe=G.lines[ee],be=fe.tokens,Ce=be.length,Te=fe.lineHeight,he=fe.width,ye=0,Ie=ge,tt=Y,pt=Ce-1,st;ye<Ce&&(st=be[ye],!st.textAlign||st.textAlign==="left");)I(V,Q,st,te,Te,Z,Ie,"left"),he-=st.width,Ie+=st.width,ye++;for(;pt>=0&&(st=be[pt],st.textAlign==="right");)I(V,Q,st,te,Te,Z,tt,"right"),he-=st.width,tt-=st.width,pt--;for(Ie+=(le-(Ie-ge)-(Y-tt)-he)/2;ye<=pt;)st=be[ye],I(V,Q,st,te,Te,Z,Ie+st.width/2,"center"),Ie+=st.width,ye++;Z+=Te}}function C(V,Q,G,te,$){if(G&&Q.textRotation){var le=Q.textOrigin;le==="center"?(te=G.width/2+G.x,$=G.height/2+G.y):le&&(te=le[0]+G.x,$=le[1]+G.y),V.translate(te,$),V.rotate(-Q.textRotation),V.translate(-te,-$)}}function I(V,Q,G,te,$,le,re,Se){var Re=te.rich[G.styleName]||{};Re.text=G.text;var Pe=G.textVerticalAlign,Je=le+$/2;Pe==="top"?Je=le+G.height/2:Pe==="bottom"&&(Je=le+$-G.height/2),!G.isLineHolder&&_(Re)&&F(V,Q,Re,Se==="right"?re-G.width:Se==="center"?re-G.width/2:re,Je-G.height/2,G.width,G.height);var Ve=G.textPadding;Ve&&(re=W(re,Se,Ve),Je-=G.height/2-Ve[2]-G.textHeight/2),M(Q,"shadowBlur",S(Re.textShadowBlur,te.textShadowBlur,0)),M(Q,"shadowColor",Re.textShadowColor||te.textShadowColor||"transparent"),M(Q,"shadowOffsetX",S(Re.textShadowOffsetX,te.textShadowOffsetX,0)),M(Q,"shadowOffsetY",S(Re.textShadowOffsetY,te.textShadowOffsetY,0)),M(Q,"textAlign",Se),M(Q,"textBaseline","middle"),M(Q,"font",G.font||r);var ct=X(Re.textStroke||te.textStroke,ue),Ue=P(Re.textFill||te.textFill),ue=p(Re.textStrokeWidth,te.textStrokeWidth);ct&&(M(Q,"lineWidth",ue),M(Q,"strokeStyle",ct),Q.strokeText(G.text,re,Je)),Ue&&(M(Q,"fillStyle",Ue),Q.fillText(G.text,re,Je))}function _(V){return!!(V.textBackgroundColor||V.textBorderWidth&&V.textBorderColor)}function F(V,Q,G,te,$,le,re){var Se=G.textBackgroundColor,Re=G.textBorderWidth,Pe=G.textBorderColor,Je=f(Se);if(M(Q,"shadowBlur",G.textBoxShadowBlur||0),M(Q,"shadowColor",G.textBoxShadowColor||"transparent"),M(Q,"shadowOffsetX",G.textBoxShadowOffsetX||0),M(Q,"shadowOffsetY",G.textBoxShadowOffsetY||0),Je||Re&&Pe){Q.beginPath();var Ve=G.textBorderRadius;Ve?o.buildPath(Q,{x:te,y:$,width:le,height:re,r:Ve}):Q.rect(te,$,le,re),Q.closePath()}if(Je)if(M(Q,"fillStyle",Se),G.fillOpacity!=null){var ct=Q.globalAlpha;Q.globalAlpha=G.fillOpacity*G.opacity,Q.fill(),Q.globalAlpha=ct}else Q.fill();else if(d(Se)){var Ue=Se.image;Ue=n.createOrUpdateImage(Ue,null,V,R,Se),Ue&&n.isImageReady(Ue)&&Q.drawImage(Ue,te,$,le,re)}if(Re&&Pe)if(M(Q,"lineWidth",Re),M(Q,"strokeStyle",Pe),G.strokeOpacity!=null){var ct=Q.globalAlpha;Q.globalAlpha=G.strokeOpacity*G.opacity,Q.stroke(),Q.globalAlpha=ct}else Q.stroke()}function R(V,Q){Q.image=V}function B(V,Q,G,te){var $=G.x||0,le=G.y||0,re=G.textAlign,Se=G.textVerticalAlign;if(te){var Re=G.textPosition;if(Re instanceof Array)$=te.x+z(Re[0],te.width),le=te.y+z(Re[1],te.height);else{var Pe=Q&&Q.calculateTextPosition?Q.calculateTextPosition(g,G,te):l.calculateTextPosition(g,G,te);$=Pe.x,le=Pe.y,re=re||Pe.textAlign,Se=Se||Pe.textVerticalAlign}var Je=G.textOffset;Je&&($+=Je[0],le+=Je[1])}return V=V||{},V.baseX=$,V.baseY=le,V.textAlign=re,V.textVerticalAlign=Se,V}function M(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 P(V){return V==null||V==="none"?null:V.image||V.colorStops?"#000":V}function z(V,Q){return typeof V=="string"?V.lastIndexOf("%")>=0?parseFloat(V)/100*Q:parseFloat(V):V}function W(V,Q,G){return Q==="right"?V-G[1]:Q==="center"?V+G[3]/2-G[1]/2:V+G[3]}function U(V,Q){return V!=null&&(V||Q.textBackgroundColor||Q.textBorderWidth&&Q.textBorderColor||Q.textPadding)}D.normalizeTextStyle=b,D.renderText=x,D.getBoxPosition=B,D.getStroke=X,D.getFill=P,D.parsePercent=z,D.needDrawText=U},"q/+u":function(k,D,i){var y=i("ProS"),p=i("9wZj"),S=i("yWXo"),A=i("h8O9");y.extendChartView({type:"scatter",render:function(m,f,d){var l=m.getData(),o=this._updateSymbolDraw(l,m);o.updateData(l,{clipShape:this._getClipShape(m)}),this._finished=!0},incrementalPrepareRender:function(m,f,d){var l=m.getData(),o=this._updateSymbolDraw(l,m);o.incrementalPrepareUpdate(l),this._finished=!1},incrementalRender:function(m,f,d){this._symbolDraw.incrementalUpdate(m,f.getData(),{clipShape:this._getClipShape(f)}),this._finished=m.end===f.getData().count()},updateTransform:function(m,f,d){var l=m.getData();if(this.group.dirty(),!this._finished||l.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var o=A().reset(m);o.progress&&o.progress({start:0,end:l.count()},l),this._symbolDraw.updateLayout(l)},_getClipShape:function(m){var f=m.coordinateSystem,d=f&&f.getArea&&f.getArea();return m.get("clip",!0)?d:null},_updateSymbolDraw:function(m,f){var d=this._symbolDraw,l=f.pipelineContext,o=l.large;return(!d||o!==this._isLargeDraw)&&(d&&d.remove(),d=this._symbolDraw=o?new S:new p,this._isLargeDraw=o,this.group.removeAll()),this.group.add(d.group),d},remove:function(m,f){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},dispose:function(){}})},q3GZ:function(k,D){var i=["lineStyle","normal","opacity"],y={seriesType:"parallel",reset:function(p,S,A){var m=p.getModel("itemStyle"),f=p.getModel("lineStyle"),d=S.get("color"),l=f.get("color")||m.get("color")||d[p.seriesIndex%d.length],o=p.get("inactiveOpacity"),n=p.get("activeOpacity"),t=p.getModel("lineStyle").getLineStyle(),a=p.coordinateSystem,e=p.getData(),u={normal:t.opacity,active:n,inactive:o};e.setVisual("color",l);function r(s,c){a.eachActiveState(c,function(h,g){var v=u[h];if(h==="normal"&&c.hasItemOption){var b=c.getItemModel(g).get(i,!0);b!=null&&(v=b)}c.setItemVisual(g,"opacity",v)},s.start,s.end)}return{progress:r}}};k.exports=y},q4HE:function(k,D){var i="\\ud800-\\udfff",y="\\u0300-\\u036f",p="\\ufe20-\\ufe2f",S="\\u20d0-\\u20ff",A=y+p+S,m="\\ufe0e\\ufe0f",f="["+i+"]",d="["+A+"]",l="\\ud83c[\\udffb-\\udfff]",o="(?:"+d+"|"+l+")",n="[^"+i+"]",t="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",e="\\u200d",u=o+"?",r="["+m+"]?",s="(?:"+e+"(?:"+[n,t,a].join("|")+")"+r+u+")*",c=r+u+s,h="(?:"+[n+d+"?",d,t,a,f].join("|")+")",g=RegExp(l+"(?="+l+")|"+h+c,"g");function v(b){for(var w=g.lastIndex=0;g.test(b);)++w;return w}k.exports=v},q7KB:function(k,D,i){},qBft:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return y.pad.AnsiX923={pad:function(S,A){var m=S.sigBytes,f=A*4,d=f-m%f,l=m+d-1;S.clamp(),S.words[l>>>2]|=d<<24-l%4*8,S.sigBytes+=d},unpad:function(S){var A=S.words[S.sigBytes-1>>>2]&255;S.sigBytes-=A}},y.pad.Ansix923})},qH13:function(k,D,i){var y=i("ItGF"),p=i("QBsz"),S=p.applyTransform,A=i("mFDi"),m=i("Qe9p"),f=i("6GrX"),d=i("pzxd"),l=i("ni6a"),o=i("Gev7"),n=i("Dagg"),t=i("dqUG"),a=i("y+Vt"),e=i("IMiH"),u=i("QuXc"),r=i("06Qe"),s=e.CMD,c=Math.round,h=Math.sqrt,g=Math.abs,v=Math.cos,b=Math.sin,w=Math.max;if(!y.canvasSupported){var x=",",T="progid:DXImageTransform.Microsoft",O=21600,E=O/2,C=1e5,I=1e3,_=function(fe){fe.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px;",fe.coordsize=O+","+O,fe.coordorigin="0,0"},F=function(fe){return String(fe).replace(/&/g,"&amp;").replace(/"/g,"&quot;")},R=function(fe,be,Ce){return"rgb("+[fe,be,Ce].join(",")+")"},B=function(fe,be){be&&fe&&be.parentNode!==fe&&fe.appendChild(be)},M=function(fe,be){be&&fe&&be.parentNode===fe&&fe.removeChild(be)},X=function(fe,be,Ce){return(parseFloat(fe)||0)*C+(parseFloat(be)||0)*I+Ce},P=d.parsePercent,z=function(fe,be,Ce){var Te=m.parse(be);Ce=+Ce,isNaN(Ce)&&(Ce=1),Te&&(fe.color=R(Te[0],Te[1],Te[2]),fe.opacity=Ce*Te[3])},W=function(fe){var be=m.parse(fe);return[R(be[0],be[1],be[2]),be[3]]},U=function(fe,be,Ce){var Te=be.fill;if(Te!=null)if(Te instanceof u){var he,ye=0,Ie=[0,0],tt=0,pt=1,st=Ce.getBoundingRect(),Fe=st.width,ft=st.height;if(Te.type==="linear"){he="gradient";var et=Ce.transform,wt=[Te.x*Fe,Te.y*ft],Ht=[Te.x2*Fe,Te.y2*ft];et&&(S(wt,wt,et),S(Ht,Ht,et));var Dt=Ht[0]-wt[0],Tt=Ht[1]-wt[1];ye=Math.atan2(Dt,Tt)*180/Math.PI,ye<0&&(ye+=360),ye<1e-6&&(ye=0)}else{he="gradientradial";var wt=[Te.x*Fe,Te.y*ft],et=Ce.transform,Bt=Ce.scale,Ke=Fe,de=ft;Ie=[(wt[0]-st.x)/Ke,(wt[1]-st.y)/de],et&&S(wt,wt,et),Ke/=Bt[0]*O,de/=Bt[1]*O;var oe=w(Ke,de);tt=2*0/oe,pt=2*Te.r/oe-tt}var lt=Te.colorStops.slice();lt.sort(function(qt,ar){return qt.offset-ar.offset});for(var qe=lt.length,pe=[],Kt=[],hr=0;hr<qe;hr++){var gt=lt[hr],nr=W(gt.color);Kt.push(gt.offset*pt+tt+" "+nr[0]),(hr===0||hr===qe-1)&&pe.push(nr)}if(qe>=2){var mr=pe[0][0],cn=pe[1][0],Ar=pe[0][1]*be.opacity,xr=pe[1][1]*be.opacity;fe.type=he,fe.method="none",fe.focus="100%",fe.angle=ye,fe.color=mr,fe.color2=cn,fe.colors=Kt.join(","),fe.opacity=xr,fe.opacity2=Ar}he==="radial"&&(fe.focusposition=Ie.join(","))}else z(fe,Te,be.opacity)},V=function(fe,be){be.lineDash&&(fe.dashstyle=be.lineDash.join(" ")),be.stroke!=null&&!(be.stroke instanceof u)&&z(fe,be.stroke,be.opacity)},Q=function(fe,be,Ce,Te){var he=be==="fill",ye=fe.getElementsByTagName(be)[0];Ce[be]!=null&&Ce[be]!=="none"&&(he||!he&&Ce.lineWidth)?(fe[he?"filled":"stroked"]="true",Ce[be]instanceof u&&M(fe,ye),ye||(ye=r.createNode(be)),he?U(ye,Ce,Te):V(ye,Ce),B(fe,ye)):(fe[he?"filled":"stroked"]="false",M(fe,ye))},G=[[],[],[]],te=function(fe,be){var Ce=s.M,Te=s.C,he=s.L,ye=s.A,Ie=s.Q,tt=[],pt,st,Fe,ft,et,wt,Ht=fe.data,Dt=fe.len();for(ft=0;ft<Dt;){Fe=Ht[ft++],st="",pt=0;switch(Fe){case Ce:st=" m ",pt=1,et=Ht[ft++],wt=Ht[ft++],G[0][0]=et,G[0][1]=wt;break;case he:st=" l ",pt=1,et=Ht[ft++],wt=Ht[ft++],G[0][0]=et,G[0][1]=wt;break;case Ie:case Te:st=" c ",pt=3;var Tt=Ht[ft++],Bt=Ht[ft++],Ke=Ht[ft++],de=Ht[ft++],oe,lt;Fe===Ie?(oe=Ke,lt=de,Ke=(Ke+2*Tt)/3,de=(de+2*Bt)/3,Tt=(et+2*Tt)/3,Bt=(wt+2*Bt)/3):(oe=Ht[ft++],lt=Ht[ft++]),G[0][0]=Tt,G[0][1]=Bt,G[1][0]=Ke,G[1][1]=de,G[2][0]=oe,G[2][1]=lt,et=oe,wt=lt;break;case ye:var qe=0,pe=0,Kt=1,hr=1,gt=0;be&&(qe=be[4],pe=be[5],Kt=h(be[0]*be[0]+be[1]*be[1]),hr=h(be[2]*be[2]+be[3]*be[3]),gt=Math.atan2(-be[1]/hr,be[0]/Kt));var nr=Ht[ft++],mr=Ht[ft++],cn=Ht[ft++],Ar=Ht[ft++],xr=Ht[ft++]+gt,qt=Ht[ft++]+xr+gt;ft++;var ar=Ht[ft++],Et=nr+v(xr)*cn,en=mr+b(xr)*Ar,Tt=nr+v(qt)*cn,Bt=mr+b(qt)*Ar,Mn=ar?" wa ":" at ";Math.abs(Et-Tt)<1e-4&&(Math.abs(qt-xr)>.01?ar&&(Et+=270/O):Math.abs(en-mr)<1e-4?ar&&Et<nr||!ar&&Et>nr?Bt-=270/O:Bt+=270/O:ar&&en<mr||!ar&&en>mr?Tt+=270/O:Tt-=270/O),tt.push(Mn,c(((nr-cn)*Kt+qe)*O-E),x,c(((mr-Ar)*hr+pe)*O-E),x,c(((nr+cn)*Kt+qe)*O-E),x,c(((mr+Ar)*hr+pe)*O-E),x,c((Et*Kt+qe)*O-E),x,c((en*hr+pe)*O-E),x,c((Tt*Kt+qe)*O-E),x,c((Bt*hr+pe)*O-E)),et=Tt,wt=Bt;break;case s.R:var Yn=G[0],ci=G[1];Yn[0]=Ht[ft++],Yn[1]=Ht[ft++],ci[0]=Yn[0]+Ht[ft++],ci[1]=Yn[1]+Ht[ft++],be&&(S(Yn,Yn,be),S(ci,ci,be)),Yn[0]=c(Yn[0]*O-E),ci[0]=c(ci[0]*O-E),Yn[1]=c(Yn[1]*O-E),ci[1]=c(ci[1]*O-E),tt.push(" m ",Yn[0],x,Yn[1]," l ",ci[0],x,Yn[1]," l ",ci[0],x,ci[1]," l ",Yn[0],x,ci[1]);break;case s.Z:tt.push(" x ")}if(pt>0){tt.push(st);for(var Vi=0;Vi<pt;Vi++){var jn=G[Vi];be&&S(jn,jn,be),tt.push(c(jn[0]*O-E),x,c(jn[1]*O-E),Vi<pt-1?x:"")}}}return tt.join("")};a.prototype.brushVML=function(ee){var fe=this.style,be=this._vmlEl;be||(be=r.createNode("shape"),_(be),this._vmlEl=be),Q(be,"fill",fe,this),Q(be,"stroke",fe,this);var Ce=this.transform,Te=Ce!=null,he=be.getElementsByTagName("stroke")[0];if(he){var ye=fe.lineWidth;if(Te&&!fe.strokeNoScale){var Ie=Ce[0]*Ce[3]-Ce[1]*Ce[2];ye*=h(g(Ie))}he.weight=ye+"px"}var tt=this.path||(this.path=new e);this.__dirtyPath&&(tt.beginPath(),tt.subPixelOptimize=!1,this.buildPath(tt,this.shape),tt.toStatic(),this.__dirtyPath=!1),be.path=te(tt,this.transform),be.style.zIndex=X(this.zlevel,this.z,this.z2),B(ee,be),fe.text!=null?this.drawRectText(ee,this.getBoundingRect()):this.removeRectText(ee)},a.prototype.onRemove=function(ee){M(ee,this._vmlEl),this.removeRectText(ee)},a.prototype.onAdd=function(ee){B(ee,this._vmlEl),this.appendRectText(ee)};var $=function(fe){return typeof fe=="object"&&fe.tagName&&fe.tagName.toUpperCase()==="IMG"};n.prototype.brushVML=function(ee){var fe=this.style,be=fe.image,Ce,Te;if($(be)){var he=be.src;if(he===this._imageSrc)Ce=this._imageWidth,Te=this._imageHeight;else{var ye=be.runtimeStyle,Ie=ye.width,tt=ye.height;ye.width="auto",ye.height="auto",Ce=be.width,Te=be.height,ye.width=Ie,ye.height=tt,this._imageSrc=he,this._imageWidth=Ce,this._imageHeight=Te}be=he}else be===this._imageSrc&&(Ce=this._imageWidth,Te=this._imageHeight);if(!be)return;var pt=fe.x||0,st=fe.y||0,Fe=fe.width,ft=fe.height,et=fe.sWidth,wt=fe.sHeight,Ht=fe.sx||0,Dt=fe.sy||0,Tt=et&&wt,Bt=this._vmlEl;Bt||(Bt=r.doc.createElement("div"),_(Bt),this._vmlEl=Bt);var Ke=Bt.style,de=!1,oe,lt=1,qe=1;if(this.transform&&(oe=this.transform,lt=h(oe[0]*oe[0]+oe[1]*oe[1]),qe=h(oe[2]*oe[2]+oe[3]*oe[3]),de=oe[1]||oe[2]),de){var pe=[pt,st],Kt=[pt+Fe,st],hr=[pt,st+ft],gt=[pt+Fe,st+ft];S(pe,pe,oe),S(Kt,Kt,oe),S(hr,hr,oe),S(gt,gt,oe);var nr=w(pe[0],Kt[0],hr[0],gt[0]),mr=w(pe[1],Kt[1],hr[1],gt[1]),cn=[];cn.push("M11=",oe[0]/lt,x,"M12=",oe[2]/qe,x,"M21=",oe[1]/lt,x,"M22=",oe[3]/qe,x,"Dx=",c(pt*lt+oe[4]),x,"Dy=",c(st*qe+oe[5])),Ke.padding="0 "+c(nr)+"px "+c(mr)+"px 0",Ke.filter=T+".Matrix("+cn.join("")+", SizingMethod=clip)"}else oe&&(pt=pt*lt+oe[4],st=st*qe+oe[5]),Ke.filter="",Ke.left=c(pt)+"px",Ke.top=c(st)+"px";var Ar=this._imageEl,xr=this._cropEl;Ar||(Ar=r.doc.createElement("div"),this._imageEl=Ar);var qt=Ar.style;if(Tt){if(Ce&&Te)qt.width=c(lt*Ce*Fe/et)+"px",qt.height=c(qe*Te*ft/wt)+"px";else{var ar=new Image,Et=this;ar.onload=function(){ar.onload=null,Ce=ar.width,Te=ar.height,qt.width=c(lt*Ce*Fe/et)+"px",qt.height=c(qe*Te*ft/wt)+"px",Et._imageWidth=Ce,Et._imageHeight=Te,Et._imageSrc=be},ar.src=be}xr||(xr=r.doc.createElement("div"),xr.style.overflow="hidden",this._cropEl=xr);var en=xr.style;en.width=c((Fe+Ht*Fe/et)*lt),en.height=c((ft+Dt*ft/wt)*qe),en.filter=T+".Matrix(Dx="+-Ht*Fe/et*lt+",Dy="+-Dt*ft/wt*qe+")",xr.parentNode||Bt.appendChild(xr),Ar.parentNode!==xr&&xr.appendChild(Ar)}else qt.width=c(lt*Fe)+"px",qt.height=c(qe*ft)+"px",Bt.appendChild(Ar),xr&&xr.parentNode&&(Bt.removeChild(xr),this._cropEl=null);var Mn="",Yn=fe.opacity;Yn<1&&(Mn+=".Alpha(opacity="+c(Yn*100)+") "),Mn+=T+".AlphaImageLoader(src="+be+", SizingMethod=scale)",qt.filter=Mn,Bt.style.zIndex=X(this.zlevel,this.z,this.z2),B(ee,Bt),fe.text!=null&&this.drawRectText(ee,this.getBoundingRect())},n.prototype.onRemove=function(ee){M(ee,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(ee)},n.prototype.onAdd=function(ee){B(ee,this._vmlEl),this.appendRectText(ee)};var le="normal",re={},Se=0,Re=100,Pe=document.createElement("div"),Je=function(fe){var be=re[fe];if(!be){Se>Re&&(Se=0,re={});var Ce=Pe.style,Te;try{Ce.font=fe,Te=Ce.fontFamily.split(",")[0]}catch(he){}be={style:Ce.fontStyle||le,variant:Ce.fontVariant||le,weight:Ce.fontWeight||le,size:parseFloat(Ce.fontSize||12)|0,family:Te||"Microsoft YaHei"},re[fe]=be,Se++}return be},Ve;f.$override("measureText",function(ee,fe){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=fe}catch(Ce){}return Ve.innerHTML="",Ve.appendChild(be.createTextNode(ee)),{width:Ve.offsetWidth}});for(var ct=new A,Ue=function(fe,be,Ce,Te){var he=this.style;this.__dirty&&d.normalizeTextStyle(he,!0);var ye=he.text;if(ye!=null&&(ye+=""),!ye)return;if(he.rich){var Ie=f.parseRichText(ye,he);ye=[];for(var tt=0;tt<Ie.lines.length;tt++){for(var pt=Ie.lines[tt].tokens,st=[],Fe=0;Fe<pt.length;Fe++)st.push(pt[Fe].text);ye.push(st.join(""))}ye=ye.join(`
`)}var ft,et,wt=he.textAlign,Ht=he.textVerticalAlign,Dt=Je(he.font),Tt=Dt.style+" "+Dt.variant+" "+Dt.weight+" "+Dt.size+'px "'+Dt.family+'"';Ce=Ce||f.getBoundingRect(ye,Tt,wt,Ht,he.textPadding,he.textLineHeight);var Bt=this.transform;if(Bt&&!Te&&(ct.copy(be),ct.applyTransform(Bt),be=ct),Te)ft=be.x,et=be.y;else{var Ke=he.textPosition;if(Ke instanceof Array)ft=be.x+P(Ke[0],be.width),et=be.y+P(Ke[1],be.height),wt=wt||"left";else{var de=this.calculateTextPosition?this.calculateTextPosition({},he,be):f.calculateTextPosition({},he,be);ft=de.x,et=de.y,wt=wt||de.textAlign,Ht=Ht||de.textVerticalAlign}}ft=f.adjustTextX(ft,Ce.width,wt),et=f.adjustTextY(et,Ce.height,Ht),et+=Ce.height/2;var oe=r.createNode,lt=this._textVmlEl,qe,pe,Kt;lt?(Kt=lt.firstChild,qe=Kt.nextSibling,pe=qe.nextSibling):(lt=oe("line"),qe=oe("path"),pe=oe("textpath"),Kt=oe("skew"),pe.style["v-text-align"]="left",_(lt),qe.textpathok=!0,pe.on=!0,lt.from="0 0",lt.to="1000 0.05",B(lt,Kt),B(lt,qe),B(lt,pe),this._textVmlEl=lt);var hr=[ft,et],gt=lt.style;Bt&&Te?(S(hr,hr,Bt),Kt.on=!0,Kt.matrix=Bt[0].toFixed(3)+x+Bt[2].toFixed(3)+x+Bt[1].toFixed(3)+x+Bt[3].toFixed(3)+",0,0",Kt.offset=(c(hr[0])||0)+","+(c(hr[1])||0),Kt.origin="0 0",gt.left="0px",gt.top="0px"):(Kt.on=!1,gt.left=c(ft)+"px",gt.top=c(et)+"px"),pe.string=F(ye);try{pe.style.font=Tt}catch(nr){}Q(lt,"fill",{fill:he.textFill,opacity:he.opacity},this),Q(lt,"stroke",{stroke:he.textStroke,opacity:he.opacity,lineDash:he.lineDash||null},this),lt.style.zIndex=X(this.zlevel,this.z,this.z2),B(fe,lt)},ue=function(fe){M(fe,this._textVmlEl),this._textVmlEl=null},rt=function(fe){B(fe,this._textVmlEl)},ge=[l,o,n,a,t],Z=0;Z<ge.length;Z++){var Y=ge[Z].prototype;Y.drawRectText=Ue,Y.removeRectText=ue,Y.appendRectText=rt}t.prototype.brushVML=function(ee){var fe=this.style;fe.text!=null?this.drawRectText(ee,{x:fe.x||0,y:fe.y||0,width:0,height:0},this.getBoundingRect(),!0):this.removeRectText(ee)},t.prototype.onRemove=function(ee){this.removeRectText(ee)},t.prototype.onAdd=function(ee){this.appendRectText(ee)}}},qJCg:function(k,D,i){var y=i("BlVb"),p=i("mFDi"),S=i("IwbS"),A=S.linePolygonIntersect,m={lineX:f(0),lineY:f(1),rect:{point:function(o,n,t){return o&&t.boundingRect.contain(o[0],o[1])},rect:function(o,n,t){return o&&t.boundingRect.intersect(o)}},polygon:{point:function(o,n,t){return o&&t.boundingRect.contain(o[0],o[1])&&y.contain(t.range,o[0],o[1])},rect:function(o,n,t){var a=t.range;if(!o||a.length<=1)return!1;var e=o.x,u=o.y,r=o.width,s=o.height,c=a[0];if(y.contain(a,e,u)||y.contain(a,e+r,u)||y.contain(a,e,u+s)||y.contain(a,e+r,u+s)||p.create(o).contain(c[0],c[1])||A(e,u,e+r,u,a)||A(e,u,e,u+s,a)||A(e+r,u,e+r,u+s,a)||A(e,u+s,e+r,u+s,a))return!0}}};function f(o){var n=["x","y"],t=["width","height"];return{point:function(a,e,u){if(a){var r=u.range,s=a[o];return d(s,r)}},rect:function(a,e,u){if(a){var r=u.range,s=[a[n[o]],a[n[o]]+a[t[o]]];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(o,n){return n[0]<=o&&o<=n[1]}var l=m;k.exports=l},qM6L:function(k,D,i){(function(y,p){k.exports=D=p(i("Ib8C"))})(this,function(y){return function(){var p=y,S=p.lib,A=S.WordArray,m=p.enc,f=m.Utf16=m.Utf16BE={stringify:function(o){for(var n=o.words,t=o.sigBytes,a=[],e=0;e<t;e+=2){var u=n[e>>>2]>>>16-e%4*8&65535;a.push(String.fromCharCode(u))}return a.join("")},parse:function(o){for(var n=o.length,t=[],a=0;a<n;a++)t[a>>>1]|=o.charCodeAt(a)<<16-a%2*16;return A.create(t,n*2)}};m.Utf16LE={stringify:function(o){for(var n=o.words,t=o.sigBytes,a=[],e=0;e<t;e+=2){var u=d(n[e>>>2]>>>16-e%4*8&65535);a.push(String.fromCharCode(u))}return a.join("")},parse:function(o){for(var n=o.length,t=[],a=0;a<n;a++)t[a>>>1]|=d(o.charCodeAt(a)<<16-a%2*16);return A.create(t,n*2)}};function d(l){return l<<8&4278255360|l>>>8&16711935}}(),y.enc.Utf16})},qMZE:function(k,D,i){var y=i("JEkh"),p=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}}}});k.exports=p},qOx5:function(k,D,i){"use strict";i.d(D,"a",function(){return f});var y=i("Kwbf");function p(d,l){var o=new Set;return d.forEach(function(n){l.has(n)||o.add(n)}),o}function S(d){var l=d||{},o=l.disabled,n=l.disableCheckbox,t=l.checkable;return!!(o||n)||t===!1}function A(d,l,o,n){for(var t=new Set(d),a=new Set,e=0;e<=o;e+=1){var u=l.get(e)||new Set;u.forEach(function(h){var g=h.key,v=h.node,b=h.children,w=b===void 0?[]:b;t.has(g)&&!n(v)&&w.filter(function(x){return!n(x.node)}).forEach(function(x){t.add(x.key)})})}for(var r=new Set,s=o;s>=0;s-=1){var c=l.get(s)||new Set;c.forEach(function(h){var g=h.parent,v=h.node;if(n(v)||!h.parent||r.has(h.parent.key))return;if(n(h.parent.node)){r.add(g.key);return}var b=!0,w=!1;(g.children||[]).filter(function(x){return!n(x.node)}).forEach(function(x){var T=x.key,O=t.has(T);b&&!O&&(b=!1),!w&&(O||a.has(T))&&(w=!0)}),b&&t.add(g.key),w&&a.add(g.key),r.add(g.key)})}return{checkedKeys:Array.from(t),halfCheckedKeys:Array.from(p(a,t))}}function m(d,l,o,n,t){for(var a=new Set(d),e=new Set(l),u=0;u<=n;u+=1){var r=o.get(u)||new Set;r.forEach(function(g){var v=g.key,b=g.node,w=g.children,x=w===void 0?[]:w;!a.has(v)&&!e.has(v)&&!t(b)&&x.filter(function(T){return!t(T.node)}).forEach(function(T){a.delete(T.key)})})}e=new Set;for(var s=new Set,c=n;c>=0;c-=1){var h=o.get(c)||new Set;h.forEach(function(g){var v=g.parent,b=g.node;if(t(b)||!g.parent||s.has(g.parent.key))return;if(t(g.parent.node)){s.add(v.key);return}var w=!0,x=!1;(v.children||[]).filter(function(T){return!t(T.node)}).forEach(function(T){var O=T.key,E=a.has(O);w&&!E&&(w=!1),!x&&(E||e.has(O))&&(x=!0)}),w||a.delete(v.key),x&&e.add(v.key),s.add(v.key)})}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(p(e,a))}}function f(d,l,o,n){var t=[],a;n?a=n:a=S;var e=new Set(d.filter(function(c){var h=!!o[c];return h||t.push(c),h})),u=new Map,r=0;Object.keys(o).forEach(function(c){var h=o[c],g=h.level,v=u.get(g);v||(v=new Set,u.set(g,v)),v.add(h),r=Math.max(r,g)}),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=A(e,u,r,a):s=m(e,l.halfCheckedKeys,u,r,a),s}},qPY4:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("u4NN"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},qWUW:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("DL4k")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="CaretDownOutlined";var n=A.forwardRef(o);D.default=n},qWt2:function(k,D,i){var y=i("ProS"),p=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}}});k.exports=p},qZFw:function(k,D,i){var y=i("bYtY"),p=i("6GrX"),S=i("hM6l"),A=i("4NO4"),m=A.makeInner,f=m();function d(o,n){n=n||[0,360],S.call(this,"angle",o,n),this.type="category"}d.prototype={constructor:d,pointToData:function(o,n){return this.polar.pointToData(o,n)[this.dim==="radius"?0:1]},dataToAngle:S.prototype.dataToCoord,angleToData:S.prototype.coordToData,calculateCategoryInterval:function(){var o=this,n=o.getLabelModel(),t=o.scale,a=t.getExtent(),e=t.count();if(a[1]-a[0]<1)return 0;var u=a[0],r=o.dataToCoord(u+1)-o.dataToCoord(u),s=Math.abs(r),c=p.getBoundingRect(u,n.getFont(),"center","top"),h=Math.max(c.height,7),g=h/s;isNaN(g)&&(g=Infinity);var v=Math.max(0,Math.floor(g)),b=f(o.model),w=b.lastAutoInterval,x=b.lastTickCount;return w!=null&&x!=null&&Math.abs(w-v)<=1&&Math.abs(x-e)<=1&&w>v?v=w:(b.lastTickCount=e,b.lastAutoInterval=v),v}},y.inherits(d,S);var l=d;k.exports=l},qZTm:function(k,D,i){var y=i("fR/l"),p=i("MvSz"),S=i("7GkX");function A(m){return y(m,S,p)}k.exports=A},qgGe:function(k,D,i){var y=i("bYtY"),p=i("T4UG"),S=i("Bsck"),A=i("VaxA"),m=A.wrapTreePathInfo,f=p.extend({type:"series.sunburst",_viewRoot:null,getInitialData:function(l,o){var n={name:l.name,children:l.data};d(n);var t=l.levels||[],a={};return a.levels=t,S.createTree(n,this,a).data},optionUpdated:function(){this.resetViewRoot()},getDataParams:function(l){var o=p.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(l);return o.treePathInfo=m(n,this),o},defaultOption:{zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,percentPrecision:2,stillShowZeroSum:!0,highlightPolicy:"descendant",nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},highlight:{itemStyle:{opacity:1}},downplay:{itemStyle:{opacity:.5},label:{opacity:.6}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicOut",data:[],levels:[],sort:"desc"},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(l){l?this._viewRoot=l:l=this._viewRoot;var o=this.getRawData().tree.root;(!l||l!==o&&!o.contains(l))&&(this._viewRoot=o)}});function d(l){var o=0;y.each(l.children,function(t){d(t);var a=t.value;y.isArray(a)&&(a=a[0]),o+=a});var n=l.value;y.isArray(n)&&(n=n[0]),(n==null||isNaN(n))&&(n=o),n<0&&(n=0),y.isArray(l.value)?l.value[0]=n:l.value=n}k.exports=f},qj72:function(k,D,i){var y=i("bYtY");function p(A,m){return m=m||[0,0],y.map(["x","y"],function(f,d){var l=this.getAxis(f),o=m[d],n=A[d]/2;return l.type==="category"?l.getBandWidth():Math.abs(l.dataToCoord(o-n)-l.dataToCoord(o+n))},this)}function S(A){var m=A.grid.getRect();return{coordSys:{type:"cartesian2d",x:m.x,y:m.y,width:m.width,height:m.height},api:{coord:function(f){return A.dataToPoint(f)},size:y.bind(p,A)}}}k.exports=S},"qt/9":function(k,D,i){var y=i("ProS"),p=i("bYtY");i("Wqna"),i("1tlw"),i("Mylv");var S=i("nVfU"),A=S.layout,m=i("f5Yq");i("Ae16"),y.registerLayout(p.curry(A,"pictorialBar")),y.registerVisual(m("pictorialBar","roundRect"))},qu8F:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("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 p=y.lib.BlockCipherMode.extend();function S(f){if((f>>24&255)===255){var d=f>>16&255,l=f>>8&255,o=f&255;d===255?(d=0,l===255?(l=0,o===255?o=0:++o):++l):++d,f=0,f+=d<<16,f+=l<<8,f+=o}else f+=1<<24;return f}function A(f){return(f[0]=S(f[0]))===0&&(f[1]=S(f[1])),f}var m=p.Encryptor=p.extend({processBlock:function(d,l){var o=this._cipher,n=o.blockSize,t=this._iv,a=this._counter;t&&(a=this._counter=t.slice(0),this._iv=void 0),A(a);var e=a.slice(0);o.encryptBlock(e,0);for(var u=0;u<n;u++)d[l+u]^=e[u]}});return p.Decryptor=m,p}(),y.mode.CTRGladman})},qwVE:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("K4ya"),A=i("XxSj"),m=y.PRIORITY.VISUAL.COMPONENT;y.registerVisual(m,{createOnAllSeries:!0,reset:function(d,l){var o=[];return l.eachComponent("visualMap",function(n){var t=d.pipelineContext;if(!n.isTargetSeries(d)||t&&t.large)return;o.push(S.incrementalApplyVisual(n.stateList,n.targetVisuals,p.bind(n.getValueState,n),n.getDataDimension(d.getData())))}),o}}),y.registerVisual(m,{createOnAllSeries:!0,reset:function(d,l){var o=d.getData(),n=[];l.eachComponent("visualMap",function(t){if(t.isTargetSeries(d)){var a=t.getVisualMeta(p.bind(f,null,d,t))||{stops:[],outerColors:[]},e=t.getDataDimension(o),u=o.getDimensionInfo(e);u!=null&&(a.dimension=u.index,n.push(a))}}),d.getData().setVisual("visualMeta",n)}});function f(d,l,o,n){for(var t=l.targetVisuals[n],a=A.prepareVisualTypes(t),e={color:d.getData().getVisual("color")},u=0,r=a.length;u<r;u++){var s=a[u],c=t[s==="opacity"?"__alphaForOpacity":s];c&&c.applyVisual(o,h,g)}return e.color;function h(v){return e[v]}function g(v,b){e[v]=b}}},"r+aA":function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("s2MQ")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="EyeInvisibleOutlined";var n=A.forwardRef(o);D.default=n},"r/2G":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("+Zaj"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},r1uz:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("ETIr"),i("cv67"),i("K3mO"),i("OLod"))})(this,function(y){return function(){var p=y,S=p.lib,A=S.BlockCipher,m=p.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]],o={pbox:[],sbox:[]};function n(r,s){var c=s>>24&255,h=s>>16&255,g=s>>8&255,v=s&255,b=r.sbox[0][c]+r.sbox[1][h];return b=b^r.sbox[2][g],b=b+r.sbox[3][v],b}function t(r,s,c){for(var h=s,g=c,v,b=0;b<f;++b)h=h^r.pbox[b],g=n(r,h)^g,v=h,h=g,g=v;return v=h,h=g,g=v,g=g^r.pbox[f],h=h^r.pbox[f+1],{left:h,right:g}}function a(r,s,c){for(var h=s,g=c,v,b=f+1;b>1;--b)h=h^r.pbox[b],g=n(r,h)^g,v=h,h=g,g=v;return v=h,h=g,g=v,g=g^r.pbox[1],h=h^r.pbox[0],{left:h,right:g}}function e(r,s,c){for(var h=0;h<4;h++){r.sbox[h]=[];for(var g=0;g<256;g++)r.sbox[h][g]=l[h][g]}for(var v=0,b=0;b<f+2;b++)r.pbox[b]=d[b]^s[v],v++,v>=c&&(v=0);for(var w=0,x=0,T=0,O=0;O<f+2;O+=2)T=t(r,w,x),w=T.left,x=T.right,r.pbox[O]=w,r.pbox[O+1]=x;for(var E=0;E<4;E++)for(var C=0;C<256;C+=2)T=t(r,w,x),w=T.left,x=T.right,r.sbox[E][C]=w,r.sbox[E][C+1]=x;return!0}var u=m.Blowfish=A.extend({_doReset:function(){if(this._keyPriorReset===this._key)return;var s=this._keyPriorReset=this._key,c=s.words,h=s.sigBytes/4;e(o,c,h)},encryptBlock:function(s,c){var h=t(o,s[c],s[c+1]);s[c]=h.left,s[c+1]=h.right},decryptBlock:function(s,c){var h=a(o,s[c],s[c+1]);s[c]=h.left,s[c+1]=h.right},blockSize:64/32,keySize:128/32,ivSize:64/32});p.Blowfish=A._createHelper(u)}(),y.Blowfish})},r6Bn:function(k,D,i){var y=i("bYtY"),p=i("ItGF"),S=i("4fz+"),A=i("BPZU");function m(l,o){return l.zlevel===o.zlevel?l.z===o.z?l.z2-o.z2:l.z-o.z:l.zlevel-o.zlevel}var f=function(){this._roots=[],this._displayList=[],this._displayListLen=0};f.prototype={constructor:f,traverse:function(o,n){for(var t=0;t<this._roots.length;t++)this._roots[t].traverse(o,n)},getDisplayList:function(o,n){return n=n||!1,o&&this.updateDisplayList(n),this._displayList},updateDisplayList:function(o){this._displayListLen=0;for(var n=this._roots,t=this._displayList,a=0,e=n.length;a<e;a++)this._updateAndAddDisplayable(n[a],null,o);t.length=this._displayListLen,p.canvasSupported&&A(t,m)},_updateAndAddDisplayable:function(o,n,t){if(o.ignore&&!t)return;o.beforeUpdate(),o.__dirty&&o.update(),o.afterUpdate();var a=o.clipPath;if(a){n?n=n.slice():n=[];for(var e=a,u=o;e;)e.parent=u,e.updateTransform(),n.push(e),u=e,e=e.clipPath}if(o.isGroup){for(var r=o._children,s=0;s<r.length;s++){var c=r[s];o.__dirty&&(c.__dirty=!0),this._updateAndAddDisplayable(c,n,t)}o.__dirty=!1}else o.__clipPaths=n,this._displayList[this._displayListLen++]=o},addRoot:function(o){if(o.__storage===this)return;o instanceof S&&o.addChildrenToStorage(this),this.addToStorage(o),this._roots.push(o)},delRoot:function(o){if(o==null){for(var n=0;n<this._roots.length;n++){var t=this._roots[n];t instanceof S&&t.delChildrenFromStorage(this)}this._roots=[],this._displayList=[],this._displayListLen=0;return}if(o instanceof Array){for(var n=0,a=o.length;n<a;n++)this.delRoot(o[n]);return}var e=y.indexOf(this._roots,o);e>=0&&(this.delFromStorage(o),this._roots.splice(e,1),o instanceof S&&o.delChildrenFromStorage(this))},addToStorage:function(o){return o&&(o.__storage=this,o.dirty(!1)),this},delFromStorage:function(o){return o&&(o.__storage=null),this},dispose:function(){this._renderList=this._roots=null},displayableSortFunc:m};var d=f;k.exports=d},rA99:function(k,D,i){var y=i("y+Vt"),p=i("QBsz"),S=i("Sj9i"),A=S.quadraticSubdivide,m=S.cubicSubdivide,f=S.quadraticAt,d=S.cubicAt,l=S.quadraticDerivativeAt,o=S.cubicDerivativeAt,n=[];function t(e,u,r){var s=e.cpx2,c=e.cpy2;return s===null||c===null?[(r?o:d)(e.x1,e.cpx1,e.cpx2,e.x2,u),(r?o: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 a=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,g=r.y2,v=r.cpx1,b=r.cpy1,w=r.cpx2,x=r.cpy2,T=r.percent;if(T===0)return;u.moveTo(s,c),w==null||x==null?(T<1&&(A(s,v,h,T,n),v=n[1],h=n[2],A(c,b,g,T,n),b=n[1],g=n[2]),u.quadraticCurveTo(v,b,h,g)):(T<1&&(m(s,v,w,h,T,n),v=n[1],w=n[2],h=n[3],m(c,b,x,g,T,n),b=n[1],x=n[2],g=n[3]),u.bezierCurveTo(v,b,w,x,h,g))},pointAt:function(u){return t(this.shape,u,!1)},tangentAt:function(u){var r=t(this.shape,u,!0);return p.normalize(r,r)}});k.exports=a},"rAM+":function(k,D,i){"use strict";i.d(D,"a",function(){return p});var y=i("Qw5x");function p(S,A){var m;if(typeof Symbol=="undefined"||S[Symbol.iterator]==null){if(Array.isArray(S)||(m=Object(y.a)(S))||A&&S&&typeof S.length=="number"){m&&(S=m);var f=0,d=function(){};return{s:d,n:function(){return f>=S.length?{done:!0}:{done:!1,value:S[f++]}},e:function(a){throw a},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,o=!1,n;return{s:function(){m=S[Symbol.iterator]()},n:function(){var a=m.next();return l=a.done,a},e:function(a){o=!0,n=a},f:function(){try{!l&&m.return!=null&&m.return()}finally{if(o)throw n}}}}},rEGp:function(k,D){function i(y){var p=-1,S=Array(y.size);return y.forEach(function(A){S[++p]=A}),S}k.exports=i},rHrb:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.CopyToClipboard=void 0;var y=S(i("q1tI")),p=S(i("+QRC"));function S(g){return g&&g.__esModule?g:{default:g}}function A(g){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?A=function(b){return typeof b}:A=function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b},A(g)}function m(g,v){var b=Object.keys(g);if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(g);v&&(w=w.filter(function(x){return Object.getOwnPropertyDescriptor(g,x).enumerable})),b.push.apply(b,w)}return b}function f(g){for(var v=1;v<arguments.length;v++){var b=arguments[v]!=null?arguments[v]:{};v%2?m(b,!0).forEach(function(w){c(g,w,b[w])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(b)):m(b).forEach(function(w){Object.defineProperty(g,w,Object.getOwnPropertyDescriptor(b,w))})}return g}function d(g,v){if(g==null)return{};var b=l(g,v),w,x;if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(g);for(x=0;x<T.length;x++){if(w=T[x],v.indexOf(w)>=0)continue;if(!Object.prototype.propertyIsEnumerable.call(g,w))continue;b[w]=g[w]}}return b}function l(g,v){if(g==null)return{};var b={},w=Object.keys(g),x,T;for(T=0;T<w.length;T++){if(x=w[T],v.indexOf(x)>=0)continue;b[x]=g[x]}return b}function o(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}function n(g,v){for(var b=0;b<v.length;b++){var w=v[b];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(g,w.key,w)}}function t(g,v,b){return v&&n(g.prototype,v),b&&n(g,b),g}function a(g,v){return v&&(A(v)==="object"||typeof v=="function")?v:u(g)}function e(g){return e=Object.setPrototypeOf?Object.getPrototypeOf:function(b){return b.__proto__||Object.getPrototypeOf(b)},e(g)}function u(g){if(g===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return g}function r(g,v){if(typeof v!="function"&&v!==null)throw new TypeError("Super expression must either be null or a function");g.prototype=Object.create(v&&v.prototype,{constructor:{value:g,writable:!0,configurable:!0}}),v&&s(g,v)}function s(g,v){return s=Object.setPrototypeOf||function(w,x){return w.__proto__=x,w},s(g,v)}function c(g,v,b){return v in g?Object.defineProperty(g,v,{value:b,enumerable:!0,configurable:!0,writable:!0}):g[v]=b,g}var h=function(g){r(v,g);function v(){var b,w;o(this,v);for(var x=arguments.length,T=new Array(x),O=0;O<x;O++)T[O]=arguments[O];return w=a(this,(b=e(v)).call.apply(b,[this].concat(T))),c(u(w),"onClick",function(E){var C=w.props,I=C.text,_=C.onCopy,F=C.children,R=C.options,B=y.default.Children.only(F),M=(0,p.default)(I,R);_&&_(I,M),B&&B.props&&typeof B.props.onClick=="function"&&B.props.onClick(E)}),w}return t(v,[{key:"render",value:function(){var w=this.props,x=w.text,T=w.onCopy,O=w.options,E=w.children,C=d(w,["text","onCopy","options","children"]),I=y.default.Children.only(E);return y.default.cloneElement(I,f({},C,{onClick:this.onClick}))}}]),v}(y.default.PureComponent);D.CopyToClipboard=h,c(h,"defaultProps",{onCopy:void 0,options:void 0})},rLCj:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("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"},A=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:A}))};f.displayName="ReloadOutlined";var d=D.a=p.forwardRef(f)},rUJ1:function(k,D){var i=/[&<>"']/,y=/[&<>"']/g,p=/[<>"']|&(?!#?\w+;)/,S=/[<>"']|&(?!#?\w+;)/g,A={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},m=function(E){return A[E]};function f(O,E){if(E){if(i.test(O))return O.replace(y,m)}else if(p.test(O))return O.replace(S,m);return O}var d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;function l(O){return O.replace(d,function(E,C){return C=C.toLowerCase(),C==="colon"?":":C.charAt(0)==="#"?C.charAt(1)==="x"?String.fromCharCode(parseInt(C.substring(2),16)):String.fromCharCode(+C.substring(1)):""})}var o=/(^|[^\[])\^/g;function n(O,E){O=O.source||O,E=E||"";var C={replace:function(_,F){return F=F.source||F,F=F.replace(o,"$1"),O=O.replace(_,F),C},getRegex:function(){return new RegExp(O,E)}};return C}var t=/[^\w:]/g,a=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function e(O,E,C){if(O){var I;try{I=decodeURIComponent(l(C)).replace(t,"").toLowerCase()}catch(_){return null}if(I.indexOf("javascript:")===0||I.indexOf("vbscript:")===0||I.indexOf("data:")===0)return null}E&&!a.test(C)&&(C=h(E,C));try{C=encodeURI(C).replace(/%25/g,"%")}catch(_){return null}return C}var u={},r=/^[^:]+:\/*[^/]*$/,s=/^([^:]+:)[\s\S]*$/,c=/^([^:]+:\/*[^/]*)[\s\S]*$/;function h(O,E){u[" "+O]||(r.test(O)?u[" "+O]=O+"/":u[" "+O]=w(O,"/",!0)),O=u[" "+O];var C=O.indexOf(":")===-1;return E.substring(0,2)==="//"?C?E:O.replace(s,"$1")+E:E.charAt(0)==="/"?C?E:O.replace(c,"$1")+E:O+E}var g={exec:function(){}};function v(O){for(var E=1,C,I;E<arguments.length;E++){C=arguments[E];for(I in C)Object.prototype.hasOwnProperty.call(C,I)&&(O[I]=C[I])}return O}function b(O,E){var C=O.replace(/\|/g,function(F,R,B){for(var M=!1,X=R;--X>=0&&B[X]==="\\";)M=!M;return M?"|":" |"}),I=C.split(/ \|/),_=0;if(I.length>E)I.splice(E);else for(;I.length<E;)I.push("");for(;_<I.length;_++)I[_]=I[_].trim().replace(/\\\|/g,"|");return I}function w(O,E,C){var I=O.length;if(I===0)return"";for(var _=0;_<I;){var F=O.charAt(I-_-1);if(F===E&&!C)_++;else if(F!==E&&C)_++;else break}return O.substr(0,I-_)}function x(O,E){if(O.indexOf(E[1])===-1)return-1;for(var C=O.length,I=0,_=0;_<C;_++)if(O[_]==="\\")_++;else if(O[_]===E[0])I++;else if(O[_]===E[1]&&(I--,I<0))return _;return-1}function T(O){O&&O.sanitize&&!O.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")}k.exports={escape:f,unescape:l,edit:n,cleanUrl:e,resolveUrl:h,noopTest:g,merge:v,splitCells:b,rtrim:w,findClosingBracket:x,checkSanitizeDeprecation:T}},rcnY:function(k,D,i){var y=i("aRTE");function p(S,A){this.totalCount=S,this.dataCount=A}p.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],p.getRSBlocks=function(S,A){var m=p.getRsBlockTable(S,A);if(m==null)throw new Error("bad rs block @ typeNumber:"+S+"/errorCorrectLevel:"+A);for(var f=m.length/3,d=new Array,l=0;l<f;l++)for(var o=m[l*3+0],n=m[l*3+1],t=m[l*3+2],a=0;a<o;a++)d.push(new p(n,t));return d},p.getRsBlockTable=function(S,A){switch(A){case y.L:return p.RS_BLOCK_TABLE[(S-1)*4+0];case y.M:return p.RS_BLOCK_TABLE[(S-1)*4+1];case y.Q:return p.RS_BLOCK_TABLE[(S-1)*4+2];case y.H:return p.RS_BLOCK_TABLE[(S-1)*4+3];default:return}},k.exports=p},rdUC:function(k,D,i){var y=i("MFOe"),p=y.Global;k.exports={name:"localStorage",read:A,write:m,each:f,remove:d,clearAll:l};function S(){return p.localStorage}function A(o){return S().getItem(o)}function m(o,n){return S().setItem(o,n)}function f(o){for(var n=S().length-1;n>=0;n--){var t=S().key(n);o(A(t),t)}}function d(o){return S().removeItem(o)}function l(){return S().clear()}},rdor:function(k,D,i){var y=i("lOQZ"),p=y.circularLayout;function S(A){A.eachSeriesByType("graph",function(m){m.get("layout")==="circular"&&p(m,"symbolSize")})}k.exports=S},rfSb:function(k,D,i){var y=i("T4UG"),p=i("sdST"),S=i("L0Ub"),A=S.getDimensionTypeByAxis,m=i("YXkt"),f=i("bYtY"),d=i("4NO4"),l=d.groupData,o=i("7aKB"),n=o.encodeHTML,t=i("xKMd"),a=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(B){return B[2]}),h=[];c.buckets.each(function(B,M){h.push({name:M,dataList:B})});for(var g=h.length,v=-1,b=-1,w=0;w<g;++w){var x=h[w].dataList.length;x>v&&(v=x,b=w)}for(var T=0;T<g;++T){if(T===b)continue;for(var O=h[T].name,E=0;E<v;++E){for(var C=h[b].dataList[E][0],I=h[T].dataList.length,_=-1,F=0;F<I;++F){var R=h[T].dataList[F][0];if(R===C){_=F;break}}_===-1&&(r[s]=[],r[s][0]=C,r[s][1]=0,r[s][2]=O,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"),g=f.filter(r.data,function(C){return C[2]!==void 0}),v=this.fixData(g||[]),b=[],w=this.nameMap=f.createHashMap(),x=0,T=0;T<v.length;++T)b.push(v[T][a]),w.get(v[T][a])||(w.set(v[T][a],x),x++);var O=p(v,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:A(h)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}),E=new m(O,this);return E.initData(v),E},getLayerSeries:function(){for(var r=this.getData(),s=r.count(),c=[],h=0;h<s;++h)c[h]=h;var g=r.mapDimension("single"),v=l(c,function(w){return r.get("name",w)}),b=[];return v.buckets.each(function(w,x){w.sort(function(T,O){return r.get(g,T)-r.get(g,O)}),b.push({name:x,indices:w})}),b},getAxisTooltipData:function(r,s,c){f.isArray(r)||(r=r?[r]:[]);for(var h=this.getData(),g=this.getLayerSeries(),v=[],b=g.length,w,x=0;x<b;++x){for(var T=Number.MAX_VALUE,O=-1,E=g[x].indices.length,C=0;C<E;++C){var I=h.get(r[0],g[x].indices[C]),_=Math.abs(I-s);_<=T&&(w=I,T=_,O=g[x].indices[C])}v.push(O)}return{dataIndices:v,nestestValue:w}},formatTooltip:function(r){var s=this.getData(),c=s.getName(r),h=s.get(s.mapDimension("value"),r);return(isNaN(h)||h==null)&&(h="-"),n(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;k.exports=u},rkZ5:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("ProS"),A=i("c8qY"),m=i("D9ME"),f=i("fls0"),d=i("RSch"),l=i("akwb"),o=i("o40c"),n=i("ZYIC"),t=i("sK/D"),a=t.createClipPath,e=S.extendChartView({type:"lines",init:function(){},render:function(u,r,s){var c=u.getData(),h=this._updateLineDraw(c,u),g=u.get("zlevel"),v=u.get("effect.trailLength"),b=s.getZr(),w=b.painter.getType()==="svg";w||b.painter.getLayer(g).clear(!0),this._lastZlevel!=null&&!w&&b.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(u)&&v&&(w||b.configLayer(g,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(v/10+.9,1),0)})),h.updateData(c);var x=u.get("clip",!0)&&a(u.coordinateSystem,!1,u);x?this.group.setClipPath(x):this.group.removeClipPath(),this._lastZlevel=g,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 g=n.reset(u);g.progress&&g.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"),g=r.pipelineContext,v=g.large;return(!s||c!==this._hasEffet||h!==this._isPolyline||v!==this._isLargeDraw)&&(s&&s.remove(),s=this._lineDraw=v?new o:new A(h?c?l:d:c?m:f),this._hasEffet=c,this._isPolyline=h,this._isLargeDraw=v,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(){}});k.exports=e},rmlV:function(k,D,i){var y=i("y+Vt"),p=y.extend({type:"ellipse",shape:{cx:0,cy:0,rx:0,ry:0},buildPath:function(A,m){var f=.5522848,d=m.cx,l=m.cy,o=m.rx,n=m.ry,t=o*f,a=n*f;A.moveTo(d-o,l),A.bezierCurveTo(d-o,l-a,d-t,l-n,d,l-n),A.bezierCurveTo(d+t,l-n,d+o,l-a,d+o,l),A.bezierCurveTo(d+o,l+a,d+t,l+n,d,l+n),A.bezierCurveTo(d-t,l+n,d-o,l+a,d-o,l),A.closePath()}});k.exports=p},rnVJ:function(k,D,i){var y=i("bYtY"),p=["rect","polygon","keep","clear"];function S(m,f){var d=m&&m.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 o=m&&m.toolbox;y.isArray(o)&&(o=o[0]),o||(o={feature:{}},m.toolbox=[o]);var n=o.feature||(o.feature={}),t=n.brush||(n.brush={}),a=t.type||(t.type=[]);a.push.apply(a,l),A(a),f&&!a.length&&a.push.apply(a,p)}function A(m){var f={};y.each(m,function(d){f[d]=1}),m.length=0,y.each(f,function(d,l){m.push(l)})}k.exports=S},rwxt:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=i("GdRQ");function p(d,l){if(!(d instanceof l))throw new TypeError("Cannot call a class as a function")}function S(d,l){for(var o=0;o<l.length;o++){var n=l[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(d,n.key,n)}}function A(d,l,o){return l&&S(d.prototype,l),o&&S(d,o),d}var m=!y.supportsCursorURIs||y.isTouchDevice,f=function(){function d(){p(this,d),this._target=null,this._canvas=document.createElement("canvas"),m&&(this._canvas.style.position="fixed",this._canvas.style.zIndex="65535",this._canvas.style.pointerEvents="none",this._canvas.style.visibility="hidden"),this._position={x:0,y:0},this._hotSpot={x:0,y:0},this._eventHandlers={mouseover:this._handleMouseOver.bind(this),mouseleave:this._handleMouseLeave.bind(this),mousemove:this._handleMouseMove.bind(this),mouseup:this._handleMouseUp.bind(this)}}return A(d,[{key:"attach",value:function(o){if(this._target&&this.detach(),this._target=o,m){document.body.appendChild(this._canvas);var n={capture:!0,passive:!0};this._target.addEventListener("mouseover",this._eventHandlers.mouseover,n),this._target.addEventListener("mouseleave",this._eventHandlers.mouseleave,n),this._target.addEventListener("mousemove",this._eventHandlers.mousemove,n),this._target.addEventListener("mouseup",this._eventHandlers.mouseup,n)}this.clear()}},{key:"detach",value:function(){if(!this._target)return;if(m){var o={capture:!0,passive:!0};this._target.removeEventListener("mouseover",this._eventHandlers.mouseover,o),this._target.removeEventListener("mouseleave",this._eventHandlers.mouseleave,o),this._target.removeEventListener("mousemove",this._eventHandlers.mousemove,o),this._target.removeEventListener("mouseup",this._eventHandlers.mouseup,o),document.body.removeChild(this._canvas)}this._target=null}},{key:"change",value:function(o,n,t,a,e){if(a===0||e===0){this.clear();return}this._position.x=this._position.x+this._hotSpot.x-n,this._position.y=this._position.y+this._hotSpot.y-t,this._hotSpot.x=n,this._hotSpot.y=t;var u=this._canvas.getContext("2d");this._canvas.width=a,this._canvas.height=e;var r;try{r=new ImageData(new Uint8ClampedArray(o),a,e)}catch(c){r=u.createImageData(a,e),r.data.set(new Uint8ClampedArray(o))}if(u.clearRect(0,0,a,e),u.putImageData(r,0,0),m)this._updatePosition();else{var s=this._canvas.toDataURL();this._target.style.cursor="url("+s+")"+n+" "+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(o,n){if(!m)return;window.visualViewport?(this._position.x=o+window.visualViewport.offsetLeft,this._position.y=n+window.visualViewport.offsetTop):(this._position.x=o,this._position.y=n),this._updatePosition();var t=document.elementFromPoint(o,n);this._updateVisibility(t)}},{key:"_handleMouseOver",value:function(o){this._handleMouseMove(o)}},{key:"_handleMouseLeave",value:function(o){this._updateVisibility(o.relatedTarget)}},{key:"_handleMouseMove",value:function(o){this._updateVisibility(o.target),this._position.x=o.clientX-this._hotSpot.x,this._position.y=o.clientY-this._hotSpot.y,this._updatePosition()}},{key:"_handleMouseUp",value:function(o){var n=this,t=document.elementFromPoint(o.clientX,o.clientY);this._updateVisibility(t),this._captureIsActive()&&window.setTimeout(function(){if(!n._target)return;t=document.elementFromPoint(o.clientX,o.clientY),n._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(o){return o?o===this._target?!0:this._target.contains(o)?!(window.getComputedStyle(o).cursor!=="none"):!1:!1}},{key:"_updateVisibility",value:function(o){this._captureIsActive()&&(o=document.captureElement),this._shouldShowCursor(o)?this._showCursor():this._hideCursor()}},{key:"_updatePosition",value:function(){this._canvas.style.left=this._position.x+"px",this._canvas.style.top=this._position.y+"px"}},{key:"_captureIsActive",value:function(){return document.captureElement&&document.documentElement.contains(document.captureElement)}}]),d}();D.default=f},rySg:function(k,D,i){i("SMc4"),i("8nMs")},s2MQ:function(k,D,i){"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(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("IwbS"),A=i("gPAo"),m=i("VaxA"),f=i("9hCq"),d=i("SgGq"),l=i("mFDi"),o=i("Fofx"),n=i("5s0K"),t=i("KCsZ"),a=i("7aKB"),e=a.windowOpen,u=p.bind,r=S.Group,s=S.Rect,c=p.each,h=3,g=["label"],v=["emphasis","label"],b=["upperLabel"],w=["emphasis","upperLabel"],x=10,T=1,O=2,E=t([["fill","color"],["stroke","strokeColor"],["lineWidth","strokeWidth"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),C=function(B){var M=E(B);return M.stroke=M.fill=M.lineWidth=null,M},I=y.extendChartView({type:"treemap",init:function(B,M){this._containerGroup,this._storage=_(),this._oldTree,this._breadcrumb,this._controller,this._state="ready"},render:function(B,M,X,P){var z=M.findComponents({mainType:"series",subType:"treemap",query:P});if(p.indexOf(z,B)<0)return;this.seriesModel=B,this.api=X,this.ecModel=M;var W=["treemapZoomToNode","treemapRootToNode"],U=m.retrieveTargetInfo(P,W,B),V=P&&P.type,Q=B.layoutInfo,G=!this._oldTree,te=this._storage,$=V==="treemapRootToNode"&&U&&te?{rootNodeGroup:te.nodeGroup[U.node.getRawIndex()],direction:P.direction}:null,le=this._giveContainerGroup(Q),re=this._doRender(le,B,$);!G&&(!V||V==="treemapZoomToNode"||V==="treemapRootToNode")?this._doAnimation(le,re,B,$):re.renderFinally(),this._resetController(X),this._renderBreadcrumb(B,X,U)},_giveContainerGroup:function(B){var M=this._containerGroup;return M||(M=this._containerGroup=new r,this._initEvents(M),this.group.add(M)),M.attr("position",[B.x,B.y]),M},_doRender:function(B,M,X){var P=M.getData().tree,z=this._oldTree,W=_(),U=_(),V=this._storage,Q=[],G=p.curry(F,M,U,V,X,W,Q);$(P.root?[P.root]:[],z&&z.root?[z.root]:[],B,P===z||!z,0);var te=le(V);return this._oldTree=P,this._storage=U,{lastsForAnimation:W,willDeleteEls:te,renderFinally:re};function $(Se,Re,Pe,Je,Ve){Je?(Re=Se,c(Se,function(ue,rt){!ue.isRemoved()&&Ue(rt,rt)})):new A(Re,Se,ct,ct).add(Ue).update(Ue).remove(p.curry(Ue,null)).execute();function ct(ue){return ue.getId()}function Ue(ue,rt){var ge=ue!=null?Se[ue]:null,Z=rt!=null?Re[rt]:null,Y=G(ge,Z,Pe,Ve);Y&&$(ge&&ge.viewChildren||[],Z&&Z.viewChildren||[],Y,Je,Ve+1)}}function le(Se){var Re=_();return Se&&c(Se,function(Pe,Je){var Ve=Re[Je];c(Pe,function(ct){ct&&(Ve.push(ct),ct.__tmWillDelete=1)})}),Re}function re(){c(te,function(Se){c(Se,function(Re){Re.parent&&Re.parent.remove(Re)})}),c(Q,function(Se){Se.invisible=!0,Se.dirty()})}},_doAnimation:function(B,M,X,P){if(!X.get("animation"))return;var z=X.get("animationDurationUpdate"),W=X.get("animationEasing"),U=n.createWrap();c(M.willDeleteEls,function(V,Q){c(V,function(G,te){if(G.invisible)return;var $=G.parent,le;if(P&&P.direction==="drillDown")le=$===P.rootNodeGroup?{shape:{x:0,y:0,width:$.__tmNodeWidth,height:$.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var re=0,Se=0;$.__tmWillDelete||(re=$.__tmNodeWidth/2,Se=$.__tmNodeHeight/2),le=Q==="nodeGroup"?{position:[re,Se],style:{opacity:0}}:{shape:{x:re,y:Se,width:0,height:0},style:{opacity:0}}}le&&U.add(G,le,z,W)})}),c(this._storage,function(V,Q){c(V,function(G,te){var $=M.lastsForAnimation[Q][te],le={};if(!$)return;Q==="nodeGroup"?$.old&&(le.position=G.position.slice(),G.attr("position",$.old)):($.old&&(le.shape=p.extend({},G.shape),G.setShape($.old)),$.fadein?(G.setStyle("opacity",0),le.style={opacity:1}):G.style.opacity!==1&&(le.style={opacity:1})),U.add(G,le,z,W)})},this),this._state="animating",U.done(u(function(){this._state="ready",M.renderFinally()},this)).start()},_resetController:function(B){var M=this._controller;M||(M=this._controller=new d(B.getZr()),M.enable(this.seriesModel.get("roam")),M.on("pan",u(this._onPan,this)),M.on("zoom",u(this._onZoom,this)));var X=new l(0,0,B.getWidth(),B.getHeight());M.setPointerChecker(function(P,z,W){return X.contain(z,W)})},_clearController:function(){var B=this._controller;B&&(B.dispose(),B=null)},_onPan:function(B){if(this._state!=="animating"&&(Math.abs(B.dx)>h||Math.abs(B.dy)>h)){var M=this.seriesModel.getData().tree.root;if(!M)return;var X=M.getLayout();if(!X)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:X.x+B.dx,y:X.y+B.dy,width:X.width,height:X.height}})}},_onZoom:function(B){var M=B.originX,X=B.originY;if(this._state!=="animating"){var P=this.seriesModel.getData().tree.root;if(!P)return;var z=P.getLayout();if(!z)return;var W=new l(z.x,z.y,z.width,z.height),U=this.seriesModel.layoutInfo;M-=U.x,X-=U.y;var V=o.create();o.translate(V,V,[-M,-X]),o.scale(V,V,[B.scale,B.scale]),o.translate(V,V,[M,X]),W.applyTransform(V),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:W.x,y:W.y,width:W.width,height:W.height}})}},_initEvents:function(B){B.on("click",function(M){if(this._state!=="ready")return;var X=this.seriesModel.get("nodeClick",!0);if(!X)return;var P=this.findTarget(M.offsetX,M.offsetY);if(!P)return;var z=P.node;if(z.getLayout().isLeafRoot)this._rootToNode(P);else if(X==="zoomToNode")this._zoomToNode(P);else if(X==="link"){var W=z.hostTree.data.getItemModel(z.dataIndex),U=W.get("link",!0),V=W.get("target",!0)||"blank";U&&e(U,V)}},this)},_renderBreadcrumb:function(B,M,X){X||(X=B.get("leafDepth",!0)!=null?{node:B.getViewRoot()}:this.findTarget(M.getWidth()/2,M.getHeight()/2),X||(X={node:B.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new f(this.group))).render(B,M,X.node,u(P,this));function P(z){this._state!=="animating"&&(m.aboveViewRoot(B.getViewRoot(),z)?this._rootToNode({node:z}):this._zoomToNode({node:z}))}},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=_(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(B){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:B.node})},_rootToNode:function(B){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:B.node})},findTarget:function(B,M){var X,P=this.seriesModel.getViewRoot();return P.eachNode({attr:"viewChildren",order:"preorder"},function(z){var W=this._storage.background[z.getRawIndex()];if(W){var U=W.transformCoordToLocal(B,M),V=W.shape;if(V.x<=U[0]&&U[0]<=V.x+V.width&&V.y<=U[1]&&U[1]<=V.y+V.height)X={node:z,offsetX:U[0],offsetY:U[1]};else return!1}},this),X}});function _(){return{nodeGroup:[],background:[],content:[]}}function F(B,M,X,P,z,W,U,V,Q,G){if(!U)return;var te=U.getLayout(),$=B.getData();if($.setItemGraphicEl(U.dataIndex,null),!te||!te.isInView)return;var le=te.width,re=te.height,Se=te.borderWidth,Re=te.invisible,Pe=U.getRawIndex(),Je=V&&V.getRawIndex(),Ve=U.viewChildren,ct=te.upperHeight,Ue=Ve&&Ve.length,ue=U.getModel("itemStyle"),rt=U.getModel("emphasis.itemStyle"),ge=ye("nodeGroup",r);if(!ge)return;if(Q.add(ge),ge.attr("position",[te.x||0,te.y||0]),ge.__tmNodeWidth=le,ge.__tmNodeHeight=re,te.isAboveViewRoot)return ge;var Z=U.getModel(),Y=ye("background",s,G,T);if(Y&&fe(ge,Y,Ue&&te.upperLabelHeight),Ue)S.isHighDownDispatcher(ge)&&S.setAsHighDownDispatcher(ge,!1),Y&&(S.setAsHighDownDispatcher(Y,!0),$.setItemGraphicEl(U.dataIndex,Y));else{var ee=ye("content",s,G,O);ee&&be(ge,ee),Y&&S.isHighDownDispatcher(Y)&&S.setAsHighDownDispatcher(Y,!1),S.setAsHighDownDispatcher(ge,!0),$.setItemGraphicEl(U.dataIndex,ge)}return ge;function fe(pt,st,Fe){if(st.dataIndex=U.dataIndex,st.seriesIndex=B.seriesIndex,st.setShape({x:0,y:0,width:le,height:re}),Re)Ce(st);else{st.invisible=!1;var ft=U.getVisual("borderColor",!0),et=rt.get("borderColor"),wt=C(ue);wt.fill=ft;var Ht=E(rt);if(Ht.fill=et,Fe){var Dt=le-2*Se;Te(wt,Ht,ft,Dt,ct,{x:Se,y:0,width:Dt,height:ct})}else wt.text=Ht.text=null;st.setStyle(wt),S.setElementHoverStyle(st,Ht)}pt.add(st)}function be(pt,st){st.dataIndex=U.dataIndex,st.seriesIndex=B.seriesIndex;var Fe=Math.max(le-2*Se,0),ft=Math.max(re-2*Se,0);if(st.culling=!0,st.setShape({x:Se,y:Se,width:Fe,height:ft}),Re)Ce(st);else{st.invisible=!1;var et=U.getVisual("color",!0),wt=C(ue);wt.fill=et;var Ht=E(rt);Te(wt,Ht,et,Fe,ft),st.setStyle(wt),S.setElementHoverStyle(st,Ht)}pt.add(st)}function Ce(pt){!pt.invisible&&W.push(pt)}function Te(pt,st,Fe,ft,et,wt){var Ht=Z.get("name"),Dt=Z.getModel(wt?b:g),Tt=Z.getModel(wt?w:v),Bt=Dt.getShallow("show");S.setLabelStyle(pt,st,Dt,Tt,{defaultText:Bt?Ht:null,autoColor:Fe,isRectText:!0,labelFetcher:B,labelDataIndex:U.dataIndex,labelProp:wt?"upperLabel":"label"}),he(pt,wt,te),he(st,wt,te),wt&&(pt.textRect=p.clone(wt)),pt.truncate=Bt&&Dt.get("ellipsis")?{outerWidth:ft,outerHeight:et,minChar:2}:null}function he(pt,st,Fe){var ft=pt.text;if(!st&&Fe.isLeafRoot&&ft!=null){var et=B.get("drillDownIcon",!0);pt.text=et?et+" "+ft:ft}}function ye(pt,st,Fe,ft){var et=Je!=null&&X[pt][Je],wt=z[pt];return et?(X[pt][Je]=null,Ie(wt,et,pt)):Re||(et=new st({z:R(Fe,ft)}),et.__tmDepth=Fe,et.__tmStorageName=pt,tt(wt,et,pt)),M[pt][Pe]=et}function Ie(pt,st,Fe){var ft=pt[Pe]={};ft.old=Fe==="nodeGroup"?st.position.slice():p.extend({},st.shape)}function tt(pt,st,Fe){var ft=pt[Pe]={},et=U.parentNode;if(et&&(!P||P.direction==="drillDown")){var wt=0,Ht=0,Dt=z.background[et.getRawIndex()];!P&&Dt&&Dt.old&&(wt=Dt.old.width,Ht=Dt.old.height),ft.old=Fe==="nodeGroup"?[0,Ht]:{x:wt,y:Ht,width:0,height:0}}ft.fadein=Fe!=="nodeGroup"}}function R(B,M){var X=B*x+M;return(X-1)/X}k.exports=I},sAZ8:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("+rIm"),A=i("/IIm"),m=i("9KIM"),f=i("IwbS"),d=["axisLine","axisTickLabel","axisName"],l=y.extendComponentView({type:"parallelAxis",init:function(e,u){l.superApply(this,"init",arguments),(this._brushController=new A(u.getZr())).on("brush",p.bind(this._onBrush,this))},render:function(e,u,r,s){if(o(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),g=h.coordinateSystem,v=e.getAreaSelectStyle(),b=v.width,w=e.axis.dim,x=g.getAxisLayout(w),T=p.extend({strokeContainThreshold:b},x),O=new S(e,T);p.each(d,O.add,O),this._axisGroup.add(O.getGroup()),this._refreshBrushController(T,v,e,h,b,r);var E=s&&s.animation===!1?null:e;f.groupTransition(c,this._axisGroup,E)},_refreshBrushController:function(e,u,r,s,c,h){var g=r.axis.getExtent(),v=g[1]-g[0],b=Math.min(30,Math.abs(v)*.1),w=f.BoundingRect.create({x:g[0],y:-c/2,width:v,height:c});w.x-=b,w.width+=2*b,this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,position:e.position}).setPanels([{panelId:"pl",clipPath:m.makeRectPanelClipPath(w),isTargetByCursor:m.makeRectIsTargetByCursor(w,h,s),getLinearBrushOtherExtent:m.makeLinearBrushOtherExtent(w,0)}]).enableBrush({brushType:"lineX",brushStyle:u,removeOnClick:!0}).updateCovers(n(r))},_onBrush:function(e,u){var r=this.axisModel,s=r.axis,c=p.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 o(e,u,r){return r&&r.type==="axisAreaSelect"&&u.findComponents({mainType:"parallelAxis",query:r})[0]===e}function n(e){var u=e.axis;return p.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 a=l;k.exports=a},sE09:function(k,D,i){},sEf8:function(k,D){function i(y){return function(p){return y(p)}}k.exports=i},sGsY:function(k,D,i){"use strict";var y=i("lSNA"),p=i.n(y),S=i("pVnL"),A=i.n(S),m=i("q1tI"),f=i("TSYQ"),d=i.n(f),l=i("H84U"),o=i("B6l+"),n=i.n(o),t=function(U){var V=U.value,Q=U.formatter,G=U.precision,te=U.decimalSeparator,$=U.groupSeparator,le=$===void 0?"":$,re=U.prefixCls,Se;if(typeof Q=="function")Se=Q(V);else{var Re=String(V),Pe=Re.match(/^(-?)(\d*)(\.(\d+))?$/);if(!Pe||Re==="-")Se=Re;else{var Je=Pe[1],Ve=Pe[2]||"0",ct=Pe[4]||"";Ve=Ve.replace(/\B(?=(\d{3})+(?!\d))/g,le),typeof G=="number"&&(ct=n()(ct,G,"0").slice(0,G)),ct&&(ct="".concat(te).concat(ct)),Se=[m.createElement("span",{key:"int",className:"".concat(re,"-content-value-int")},Je,Ve),ct&&m.createElement("span",{key:"decimal",className:"".concat(re,"-content-value-decimal")},ct)]}}return m.createElement("span",{className:"".concat(re,"-content-value")},Se)},a=t,e=function(U){var V=U.prefixCls,Q=U.className,G=U.style,te=U.valueStyle,$=U.value,le=$===void 0?0:$,re=U.title,Se=U.valueRender,Re=U.prefix,Pe=U.suffix,Je=U.direction,Ve=U.onMouseEnter,ct=U.onMouseLeave,Ue=m.createElement(a,A()({},U,{value:le})),ue=d()(V,Q,p()({},"".concat(V,"-rtl"),Je==="rtl"));return m.createElement("div",{className:ue,style:G,onMouseEnter:Ve,onMouseLeave:ct},re&&m.createElement("div",{className:"".concat(V,"-title")},re),m.createElement("div",{style:te,className:"".concat(V,"-content")},Re&&m.createElement("span",{className:"".concat(V,"-content-prefix")},Re),Se?Se(Ue):Ue,Pe&&m.createElement("span",{className:"".concat(V,"-content-suffix")},Pe)))};e.defaultProps={decimalSeparator:".",groupSeparator:","};var u=Object(l.c)({prefixCls:"statistic"})(e),r=u,s=i("lwsE"),c=i.n(s),h=i("W8MJ"),g=i.n(h),v=i("7W2i"),b=i.n(v),w=i("LQ03"),x=i.n(w),T=i("J4zp"),O=i.n(T),E=i("QQZ/"),C=i.n(E),I=[["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 _(W,U){var V=W,Q=/\[[^\]]*]/g,G=(U.match(Q)||[]).map(function(re){return re.slice(1,-1)}),te=U.replace(Q,"[]"),$=I.reduce(function(re,Se){var Re=O()(Se,2),Pe=Re[0],Je=Re[1];if(re.indexOf(Pe)!==-1){var Ve=Math.floor(V/Je);return V-=Ve*Je,re.replace(new RegExp("".concat(Pe,"+"),"g"),function(ct){var Ue=ct.length;return C()(Ve.toString(),Ue,"0")})}return re},te),le=0;return $.replace(Q,function(){var re=G[le];return le+=1,re})}function F(W,U){var V=U.format,Q=V===void 0?"":V,G=new Date(W).getTime(),te=Date.now(),$=Math.max(G-te,0);return _($,Q)}var R=i("0n0R"),B=1e3/30;function M(W){return new Date(W).getTime()}var X=function(W){b()(V,W);var U=x()(V);function V(){var Q;return c()(this,V),Q=U.apply(this,arguments),Q.syncTimer=function(){var G=Q.props.value,te=M(G);te>=Date.now()?Q.startTimer():Q.stopTimer()},Q.startTimer=function(){if(Q.countdownId)return;Q.countdownId=window.setInterval(function(){Q.forceUpdate()},B)},Q.stopTimer=function(){var G=Q.props,te=G.onFinish,$=G.value;if(Q.countdownId){clearInterval(Q.countdownId),Q.countdownId=void 0;var le=M($);te&&le<Date.now()&&te()}},Q.formatCountdown=function(G,te){var $=Q.props.format;return F(G,A()(A()({},te),{format:$}))},Q.valueRender=function(G){return Object(R.a)(G,{title:void 0})},Q}return g()(V,[{key:"componentDidMount",value:function(){this.syncTimer()}},{key:"componentDidUpdate",value:function(){this.syncTimer()}},{key:"componentWillUnmount",value:function(){this.stopTimer()}},{key:"render",value:function(){return m.createElement(r,A()({valueRender:this.valueRender},this.props,{formatter:this.formatCountdown}))}}]),V}(m.Component);X.defaultProps={format:"HH:mm:ss"};var P=X;r.Countdown=P;var z=D.a=r},"sK/D":function(k,D,i){var y=i("IwbS"),p=i("OELB"),S=p.round;function A(d,l,o){var n=d.getArea(),t=d.getBaseAxis().isHorizontal(),a=n.x,e=n.y,u=n.width,r=n.height,s=o.get("lineStyle.width")||2;a-=s/2,e-=s/2,u+=s,r+=s,a=Math.floor(a),u=Math.round(u);var c=new y.Rect({shape:{x:a,y:e,width:u,height:r}});return l&&(c.shape[t?"width":"height"]=0,y.initProps(c,{shape:{width:u,height:r}},o)),c}function m(d,l,o){var n=d.getArea(),t=new y.Sector({shape:{cx:S(d.cx,1),cy:S(d.cy,1),r0:S(n.r0,1),r:S(n.r,1),startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}});return l&&(t.shape.endAngle=n.startAngle,y.initProps(t,{shape:{endAngle:n.endAngle}},o)),t}function f(d,l,o){if(d){if(d.type==="polar")return m(d,l,o);if(d.type==="cartesian2d")return A(d,l,o)}else return null;return null}D.createGridClipPath=A,D.createPolarClipPath=m,D.createClipPath=f},sKgW:function(k,D){var i=9007199254740991,y=Math.floor;function p(S,A){var m="";if(!S||A<1||A>i)return m;do A%2&&(m+=S),A=y(A/2),A&&(S+=S);while(A);return m}k.exports=p},sPJy:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("AOa7"),A=i.n(S),m=i("lUTK"),f=i("qVdP")},sPtV:function(k,D,i){"use strict";i.d(D,"a",function(){return A});var y=i("q1tI"),p=i.n(y),S=i("hkKa");function A(m){var f=y.useRef(m),d=Object(S.a)();return[function(){return f.current},function(l){f.current=l,d()}]}},sRwP:function(k,D,i){i("jsU+"),i("2548"),i("Tp9H"),i("06DH"),i("dnwI"),i("fE02"),i("33Ds")},"sS/r":function(k,D,i){var y=i("4fz+"),p=i("iRjW"),S=i("Yl7c"),A=function(){this.group=new y,this.uid=p.getUID("viewComponent")};A.prototype={constructor:A,init:function(d,l){},render:function(d,l,o,n){},dispose:function(){},filterForExposedEvent:null};var m=A.prototype;m.updateView=m.updateLayout=m.updateVisual=function(d,l,o,n){},S.enableClassExtend(A),S.enableClassManagement(A,{registerWhenExtend:!0});var f=A;k.exports=f},"sW+o":function(k,D,i){var y=i("SrGk"),p=i("bYtY"),S=i("SUKs"),A=i("Qe9p");function m(d,l){y.call(this,d,l,["linearGradient","radialGradient"],"__gradient_in_use__")}p.inherits(m,y),m.prototype.addWithoutUpdate=function(d,l){if(l&&l.style){var o=this;p.each(["fill","stroke"],function(n){if(l.style[n]&&(l.style[n].type==="linear"||l.style[n].type==="radial")){var t=l.style[n],a=o.getDefs(!0),e;t._dom?(e=t._dom,a.contains(t._dom)||o.addDom(e)):e=o.add(t),o.markUsed(l);var u=e.getAttribute("id");d.setAttribute(n,"url(#"+u+")")}})}},m.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},m.prototype.update=function(d){var l=this;y.prototype.update.call(this,d,function(){var o=d.type,n=d._dom.tagName;o==="linear"&&n==="linearGradient"||o==="radial"&&n==="radialGradient"?l.updateDom(d,d._dom):(l.removeDom(d),l.add(d))})},m.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 o=d.colorStops,n=0,t=o.length;n<t;++n){var a=this.createElement("stop");a.setAttribute("offset",o[n].offset*100+"%");var e=o[n].color;if(e.indexOf("rgba">-1)){var u=A.parse(e)[3],r=A.toHex(e);a.setAttribute("stop-color","#"+r),a.setAttribute("stop-opacity",u)}else a.setAttribute("stop-color",o[n].color);l.appendChild(a)}d._dom=l},m.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=m;k.exports=f},sdST:function(k,D,i){var y=i("hi0g");function p(S,A){return A=A||{},y(A.coordDimensions||[],S,{dimsDef:A.dimensionsDefine||S.dimensionsDefine,encodeDef:A.encodeDefine||S.encodeDefine,dimCount:A.dimensionsCount,encodeDefaulter:A.encodeDefaulter,generateCoord:A.generateCoord,generateCoordCount:A.generateCoordCount})}k.exports=p},seXi:function(k,D,i){var y=i("qZTm"),p=1,S=Object.prototype,A=S.hasOwnProperty;function m(f,d,l,o,n,t){var a=l&p,e=y(f),u=e.length,r=y(d),s=r.length;if(u!=s&&!a)return!1;for(var c=u;c--;){var h=e[c];if(!(a?h in d:A.call(d,h)))return!1}var g=t.get(f),v=t.get(d);if(g&&v)return g==d&&v==f;var b=!0;t.set(f,d),t.set(d,f);for(var w=a;++c<u;){h=e[c];var x=f[h],T=d[h];if(o)var O=a?o(T,x,h,d,f,t):o(x,T,h,f,d,t);if(!(O===void 0?x===T||n(x,T,l,o,t):O)){b=!1;break}w||(w=h=="constructor")}if(b&&!w){var E=f.constructor,C=d.constructor;E!=C&&"constructor"in f&&"constructor"in d&&!(typeof E=="function"&&E instanceof E&&typeof C=="function"&&C instanceof C)&&(b=!1)}return t.delete(f),t.delete(d),b}k.exports=m},shjB:function(k,D){var i=9007199254740991;function y(p){return typeof p=="number"&&p>-1&&p%1==0&&p<=i}k.exports=y},sjKO:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=S;var y=30,p=12;function S(A,m){var f,d,l,o,n,t,a,e,u,r,s,c,h,g,v,b,w,x,T,O,E,C,I,_,F;f=A.state,d=A.next_in,_=A.input,l=d+(A.avail_in-5),o=A.next_out,F=A.output,n=o-(m-A.avail_out),t=o+(A.avail_out-257),a=f.dmax,e=f.wsize,u=f.whave,r=f.wnext,s=f.window,c=f.hold,h=f.bits,g=f.lencode,v=f.distcode,b=(1<<f.lenbits)-1,w=(1<<f.distbits)-1;e:do{h<15&&(c+=_[d++]<<h,h+=8,c+=_[d++]<<h,h+=8),x=g[c&b];t:for(;;){if(T=x>>>24,c>>>=T,h-=T,T=x>>>16&255,T===0)F[o++]=x&65535;else if(T&16){O=x&65535,T&=15,T&&(h<T&&(c+=_[d++]<<h,h+=8),O+=c&(1<<T)-1,c>>>=T,h-=T),h<15&&(c+=_[d++]<<h,h+=8,c+=_[d++]<<h,h+=8),x=v[c&w];r:for(;;){if(T=x>>>24,c>>>=T,h-=T,T=x>>>16&255,T&16){if(E=x&65535,T&=15,h<T&&(c+=_[d++]<<h,h+=8,h<T&&(c+=_[d++]<<h,h+=8)),E+=c&(1<<T)-1,E>a){A.msg="invalid distance too far back",f.mode=y;break e}if(c>>>=T,h-=T,T=o-n,E>T){if(T=E-T,T>u&&f.sane){A.msg="invalid distance too far back",f.mode=y;break e}if(C=0,I=s,r===0){if(C+=e-T,T<O){O-=T;do F[o++]=s[C++];while(--T);C=o-E,I=F}}else if(r<T){if(C+=e+r-T,T-=r,T<O){O-=T;do F[o++]=s[C++];while(--T);if(C=0,r<O){T=r,O-=T;do F[o++]=s[C++];while(--T);C=o-E,I=F}}}else if(C+=r-T,T<O){O-=T;do F[o++]=s[C++];while(--T);C=o-E,I=F}for(;O>2;)F[o++]=I[C++],F[o++]=I[C++],F[o++]=I[C++],O-=3;O&&(F[o++]=I[C++],O>1&&(F[o++]=I[C++]))}else{C=o-E;do F[o++]=F[C++],F[o++]=F[C++],F[o++]=F[C++],O-=3;while(O>2);O&&(F[o++]=F[C++],O>1&&(F[o++]=F[C++]))}}else if((T&64)===0){x=v[(x&65535)+(c&(1<<T)-1)];continue r}else{A.msg="invalid distance code",f.mode=y;break e}break}}else if((T&64)===0){x=g[(x&65535)+(c&(1<<T)-1)];continue t}else if(T&32){f.mode=p;break e}else{A.msg="invalid literal/length code",f.mode=y;break e}break}}while(d<l&&o<t);O=h>>3,d-=O,h-=O<<3,c&=(1<<h)-1,A.next_in=d,A.next_out=o,A.avail_in=d<l?5+(l-d):5-(d-l),A.avail_out=o<t?257+(t-o):257-(o-t),f.hold=c,f.bits=h;return}},szbU:function(k,D,i){var y=i("bYtY"),p=y.each;function S(m){var f=m&&m.visualMap;y.isArray(f)||(f=f?[f]:[]),p(f,function(d){if(!d)return;A(d,"splitList")&&!A(d,"pieces")&&(d.pieces=d.splitList,delete d.splitList);var l=d.pieces;l&&y.isArray(l)&&p(l,function(o){y.isObject(o)&&(A(o,"start")&&!A(o,"min")&&(o.min=o.start),A(o,"end")&&!A(o,"max")&&(o.max=o.end))})})}function A(m,f){return m&&m.hasOwnProperty&&m.hasOwnProperty(f)}k.exports=S},t23M:function(k,D,i){"use strict";var y=i("wx14"),p=i("q1tI"),S=i("Zm9Q"),A=i("Kwbf"),m=i("VTBJ"),f=i("U8pU"),d=i("m+aA"),l=i("c+Xe"),o=p.createContext(null);function n(R){var B=R.children,M=R.onBatchResize,X=p.useRef(0),P=p.useRef([]),z=p.useContext(o),W=p.useCallback(function(U,V,Q){X.current+=1;var G=X.current;P.current.push({size:U,element:V,data:Q}),Promise.resolve().then(function(){G===X.current&&(M==null||M(P.current),P.current=[])}),z==null||z(U,V,Q)},[M,z]);return p.createElement(o.Provider,{value:W},B)}var t=i("bdgK"),a=new Map;function e(R){R.forEach(function(B){var M,X=B.target;(M=a.get(X))===null||M===void 0||M.forEach(function(P){return P(X)})})}var u=new t.default(e),r=null,s=null;function c(R,B){a.has(R)||(a.set(R,new Set),u.observe(R)),a.get(R).add(B)}function h(R,B){a.has(R)&&(a.get(R).delete(B),a.get(R).size||(u.unobserve(R),a.delete(R)))}var g=i("1OyB"),v=i("vuIU"),b=i("Ji7U"),w=i("LK+K"),x=function(R){Object(b.a)(M,R);var B=Object(w.a)(M);function M(){return Object(g.a)(this,M),B.apply(this,arguments)}return Object(v.a)(M,[{key:"render",value:function(){return this.props.children}}]),M}(p.Component);function T(R,B){var M=R.children,X=R.disabled,P=p.useRef(null),z=p.useRef(null),W=p.useContext(o),U=typeof M=="function",V=U?M(P):M,Q=p.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),G=!U&&p.isValidElement(V)&&Object(l.c)(V),te=G?V.ref:null,$=Object(l.d)(te,P),le=function(){var Pe;return Object(d.a)(P.current)||(P.current&&Object(f.a)(P.current)==="object"?Object(d.a)((Pe=P.current)===null||Pe===void 0?void 0:Pe.nativeElement):null)||Object(d.a)(z.current)};p.useImperativeHandle(B,function(){return le()});var re=p.useRef(R);re.current=R;var Se=p.useCallback(function(Re){var Pe=re.current,Je=Pe.onResize,Ve=Pe.data,ct=Re.getBoundingClientRect(),Ue=ct.width,ue=ct.height,rt=Re.offsetWidth,ge=Re.offsetHeight,Z=Math.floor(Ue),Y=Math.floor(ue);if(Q.current.width!==Z||Q.current.height!==Y||Q.current.offsetWidth!==rt||Q.current.offsetHeight!==ge){var ee={width:Z,height:Y,offsetWidth:rt,offsetHeight:ge};Q.current=ee;var fe=rt===Math.round(Ue)?Ue:rt,be=ge===Math.round(ue)?ue:ge,Ce=Object(m.a)(Object(m.a)({},ee),{},{offsetWidth:fe,offsetHeight:be});W==null||W(Ce,Re,Ve),Je&&Promise.resolve().then(function(){Je(Ce,Re)})}},[]);return p.useEffect(function(){var Re=le();return Re&&!X&&c(Re,Se),function(){return h(Re,Se)}},[P.current,X]),p.createElement(x,{ref:z},G?p.cloneElement(V,{ref:$}):V)}var O=p.forwardRef(T),E=O,C="rc-observer-key";function I(R,B){var M=R.children,X=typeof M=="function"?[M]:Object(S.a)(M);return X.map(function(P,z){var W=(P==null?void 0:P.key)||"".concat(C,"-").concat(z);return p.createElement(E,Object(y.a)({},R,{key:W,ref:z===0?B:void 0}),P)})}var _=p.forwardRef(I);_.Collection=n;var F=D.a=_},t3Fx:function(k,D,i){"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 g in h)Object.prototype.hasOwnProperty.call(h,g)&&(s[g]=h[g])}return s},p=function(){function s(c,h){for(var g=0;g<h.length;g++){var v=h[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(c,v.key,v)}}return function(c,h,g){return h&&s(c.prototype,h),g&&s(c,g),c}}(),S=i("q1tI"),A=t(S),m=i("17x9"),f=t(m),d=i("tkwv"),l=t(d),o=i("u3os"),n=i("kzFp");function t(s){return s&&s.__esModule?s:{default:s}}function a(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){a(this,c);var g=e(this,(c.__proto__||Object.getPrototypeOf(c)).call(this,h));return g.getEchartsInstance=function(){return g.echartsLib.getInstanceByDom(g.echartsElement)||g.echartsLib.init(g.echartsElement,g.props.theme,g.props.opts)},g.dispose=function(){if(g.echartsElement){try{(0,o.clear)(g.echartsElement)}catch(v){console.warn(v)}g.echartsLib.dispose(g.echartsElement)}},g.rerender=function(){var v=g.props,b=v.onEvents,w=v.onChartReady,x=g.renderEchartDom();g.bindEvents(x,b||{}),typeof w=="function"&&g.props.onChartReady(x),g.echartsElement&&(0,o.bind)(g.echartsElement,function(){try{x.resize()}catch(T){console.warn(T)}})},g.bindEvents=function(v,b){var w=function(O,E){typeof O=="string"&&typeof E=="function"&&v.on(O,function(C){E(C,v)})};for(var x in b)Object.prototype.hasOwnProperty.call(b,x)&&w(x,b[x])},g.renderEchartDom=function(){var v=g.getEchartsInstance();return v.setOption(g.props.option,g.props.notMerge||!1,g.props.lazyUpdate||!1),g.props.showLoading?v.showLoading(g.props.loadingOption||null):v.hideLoading(),v},g.echartsLib=h.echarts,g.echartsElement=null,g}return p(c,[{key:"componentDidMount",value:function(){this.rerender()}},{key:"componentDidUpdate",value:function(g){if(typeof this.props.shouldSetOption=="function"&&!this.props.shouldSetOption(g,this.props))return;if(!(0,l.default)(g.theme,this.props.theme)||!(0,l.default)(g.opts,this.props.opts)||!(0,l.default)(g.onEvents,this.props.onEvents)){this.dispose(),this.rerender();return}var v=["option","notMerge","lazyUpdate","showLoading","loadingOption"];if((0,l.default)((0,n.pick)(this.props,v),(0,n.pick)(g,v)))return;var b=this.renderEchartDom();if(!(0,l.default)(g.style,this.props.style)||!(0,l.default)(g.className,this.props.className))try{b.resize()}catch(w){console.warn(w)}}},{key:"componentWillUnmount",value:function(){this.dispose()}},{key:"render",value:function(){var g=this,v=this.props,b=v.style,w=v.className,x=y({height:300},b);return A.default.createElement("div",{ref:function(O){g.echartsElement=O},style:x,className:"echarts-for-react "+w})}}]),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(k,D,i){var y=i("bYtY"),p=i("IwbS"),S=i("Qxkt"),A=i("Znkb"),m=i("+rIm"),f=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function d(t,a,e){a[1]>a[0]&&(a=a.slice().reverse());var u=t.coordToPoint([a[0],e]),r=t.coordToPoint([a[1],e]);return{x1:u[0],y1:u[1],x2:r[0],y2:r[1]}}function l(t){var a=t.getRadiusAxis();return a.inverse?0:1}function o(t){var a=t[0],e=t[t.length-1];a&&e&&Math.abs(Math.abs(a.coord-e.coord)-360)<1e-4&&t.pop()}var n=A.extend({type:"angleAxis",axisPointerClass:"PolarAxisPointer",render:function(t,a){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(g){var g=y.clone(g);return g.coord=e.dataToCoord(g.tickValue),g});o(h),o(s),y.each(f,function(g){t.get(g+".show")&&(!e.scale.isBlank()||g==="axisLine")&&this["_"+g](t,u,s,c,r,h)},this)},_axisLine:function(t,a,e,u,r){var s=t.getModel("axisLine.lineStyle"),c=l(a),h=c?0:1,g;r[h]===0?g=new p.Circle({shape:{cx:a.cx,cy:a.cy,r:r[c]},style:s.getLineStyle(),z2:1,silent:!0}):g=new p.Ring({shape:{cx:a.cx,cy:a.cy,r:r[c],r0:r[h]},style:s.getLineStyle(),z2:1,silent:!0}),g.style.fill=null,this.group.add(g)},_axisTick:function(t,a,e,u,r){var s=t.getModel("axisTick"),c=(s.get("inside")?-1:1)*s.get("length"),h=r[l(a)],g=y.map(e,function(v){return new p.Line({shape:d(a,[h,h+c],v.coord)})});this.group.add(p.mergePath(g,{style:y.defaults(s.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_minorTick:function(t,a,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"),g=r[l(a)],v=[],b=0;b<u.length;b++)for(var w=0;w<u[b].length;w++)v.push(new p.Line({shape:d(a,[g,g+h],u[b][w].coord)}));this.group.add(p.mergePath(v,{style:y.defaults(c.getModel("lineStyle").getLineStyle(),y.defaults(s.getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")}))}))},_axisLabel:function(t,a,e,u,r,s){var c=t.getCategories(!0),h=t.getModel("axisLabel"),g=h.get("margin"),v=t.get("triggerEvent");y.each(s,function(b,w){var x=h,T=b.tickValue,O=r[l(a)],E=a.coordToPoint([O+g,b.coord]),C=a.cx,I=a.cy,_=Math.abs(E[0]-C)/O<.3?"center":E[0]>C?"left":"right",F=Math.abs(E[1]-I)/O<.3?"middle":E[1]>I?"top":"bottom";c&&c[T]&&c[T].textStyle&&(x=new S(c[T].textStyle,h,h.ecModel));var R=new p.Text({silent:m.isLabelSilent(t)});this.group.add(R),p.setTextStyle(R.style,x,{x:E[0],y:E[1],textFill:x.getTextColor()||t.get("axisLine.lineStyle.color"),text:b.formattedLabel,textAlign:_,textVerticalAlign:F}),v&&(R.eventData=m.makeAxisEventDataBase(t),R.eventData.targetType="axisLabel",R.eventData.value=b.rawLabel)},this)},_splitLine:function(t,a,e,u,r){var s=t.getModel("splitLine"),c=s.getModel("lineStyle"),h=c.get("color"),g=0;h=h instanceof Array?h:[h];for(var v=[],b=0;b<e.length;b++){var w=g++%h.length;v[w]=v[w]||[],v[w].push(new p.Line({shape:d(a,r,e[b].coord)}))}for(var b=0;b<v.length;b++)this.group.add(p.mergePath(v[b],{style:y.defaults({stroke:h[b%h.length]},c.getLineStyle()),silent:!0,z:t.get("z")}))},_minorSplitLine:function(t,a,e,u,r){if(!u.length)return;for(var s=t.getModel("minorSplitLine"),c=s.getModel("lineStyle"),h=[],g=0;g<u.length;g++)for(var v=0;v<u[g].length;v++)h.push(new p.Line({shape:d(a,r,u[g][v].coord)}));this.group.add(p.mergePath(h,{style:c.getLineStyle(),silent:!0,z:t.get("z")}))},_splitArea:function(t,a,e,u,r){if(!e.length)return;var s=t.getModel("splitArea"),c=s.getModel("areaStyle"),h=c.get("color"),g=0;h=h instanceof Array?h:[h];for(var v=[],b=Math.PI/180,w=-e[0].coord*b,x=Math.min(r[0],r[1]),T=Math.max(r[0],r[1]),O=t.get("clockwise"),E=1;E<e.length;E++){var C=g++%h.length;v[C]=v[C]||[],v[C].push(new p.Sector({shape:{cx:a.cx,cy:a.cy,r0:x,r:T,startAngle:w,endAngle:-e[E].coord*b,clockwise:O},silent:!0})),w=-e[E].coord*b}for(var E=0;E<v.length;E++)this.group.add(p.mergePath(v[E],{style:y.defaults({fill:h[E%h.length]},c.getAreaStyle()),silent:!0}))}});k.exports=n},tMB7:function(k,D,i){var y=i("y1pI");function p(S){var A=this.__data__,m=y(A,S);return m<0?void 0:A[m][1]}k.exports=p},tSko:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("SRve")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="PlusOutlined";var n=A.forwardRef(o);D.default=n},tadb:function(k,D,i){var y=i("Cwc5"),p=i("Kz5y"),S=y(p,"DataView");k.exports=S},tceW:function(k,D,i){var y=i("KCsZ"),p=y([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]),S={getBarItemStyle:function(A){var m=p(this,A);if(this.getBorderLineDash){var f=this.getBorderLineDash();f&&(m.lineDash=f)}return m}};k.exports=S},tkwv:function(k,D,i){"use strict";var y=Array.isArray,p=Object.keys,S=Object.prototype.hasOwnProperty;k.exports=function A(m,f){if(m===f)return!0;if(m&&f&&typeof m=="object"&&typeof f=="object"){var d=y(m),l=y(f),o,n,t;if(d&&l){if(n=m.length,n!=f.length)return!1;for(o=n;o--!==0;)if(!A(m[o],f[o]))return!1;return!0}if(d!=l)return!1;var a=m instanceof Date,e=f instanceof Date;if(a!=e)return!1;if(a&&e)return m.getTime()==f.getTime();var u=m instanceof RegExp,r=f instanceof RegExp;if(u!=r)return!1;if(u&&r)return m.toString()==f.toString();var s=p(m);if(n=s.length,n!==p(f).length)return!1;for(o=n;o--!==0;)if(!S.call(f,s[o]))return!1;for(o=n;o--!==0;)if(t=s[o],!A(m[t],f[t]))return!1;return!0}return m!==m&&f!==f}},txkQ:function(k,D,i){var y=i("aX58");D.zrender=y;var p=i("Fofx");D.matrix=p;var S=i("QBsz");D.vector=S;var A=i("bYtY"),m=i("Qe9p");D.color=m;var f=i("IwbS"),d=i("OELB");D.number=d;var l=i("7aKB");D.format=l;var o=i("iLNv"),n=o.throttle;D.throttle=o.throttle;var t=i("FUi9");D.helper=t;var a=i("vafp");D.parseGeoJSON=a;var e=i("YXkt");D.List=e;var u=i("Qxkt");D.Model=u;var r=i("hM6l");D.Axis=r;var s=i("ItGF");D.env=s;var c=a,h={};A.each(["map","each","filter","indexOf","inherits","reduce","filter","bind","curry","isArray","isString","isObject","isFunction","extend","defaults","clone","merge"],function(v){h[v]=A[v]});var g={};A.each(["extendShape","extendPath","makePath","makeImage","mergePath","resizePath","createIcon","setHoverStyle","setLabelStyle","setTextStyle","setText","getFont","updateProps","initProps","getTransform","clipPointsByRect","clipRectByRect","registerShape","getShapeClass","Group","Image","Text","Circle","Sector","Ring","Polygon","Polyline","Rect","Line","BezierCurve","Arc","IncrementalDisplayable","CompoundPath","LinearGradient","RadialGradient","BoundingRect"],function(v){g[v]=f[v]}),D.parseGeoJson=c,D.util=h,D.graphic=g},u3DP:function(k,D,i){var y=i("6GrX"),p=i("OELB"),S=p.parsePercent,A=Math.PI/180;function m(o,n,t,a,e,u,r,s,c,h){o.sort(function(_,F){return _.y-F.y});function g(_,F,R,B){for(var M=_;M<F&&!(o[M].y+R>c+r);M++)if(o[M].y+=R,M>_&&M+1<F&&o[M+1].y>o[M].y+o[M].height){v(M,R/2);return}v(F-1,R/2)}function v(_,F){for(var R=_;R>=0&&!(o[R].y-F<c);R--)if(o[R].y-=F,R>0&&o[R].y>o[R-1].y+o[R-1].height)break}function b(_,F,R,B,M,X){for(var P=(X>0,F?Number.MAX_VALUE:0),z=0,W=_.length;z<W;z++){if(_[z].labelAlignTo!=="none")continue;var U=Math.abs(_[z].y-B),V=_[z].len,Q=_[z].len2,G=U<M+V?Math.sqrt((M+V+Q)*(M+V+Q)-U*U):Math.abs(_[z].x-R);F&&G>=P&&(G=P-10),!F&&G<=P&&(G=P+10),_[z].x=R+G*X,P=G}}for(var w=0,x,T=o.length,O=[],E=[],C=0;C<T;C++){if(o[C].position==="outer"&&o[C].labelAlignTo==="labelLine"){var I=o[C].x-h;o[C].linePoints[1][0]+=I,o[C].x=h}x=o[C].y-w,x<0&&g(C,T,-x,e),w=o[C].y+o[C].height}r-w<0&&v(T-1,w-r);for(var C=0;C<T;C++)o[C].y>=t?E.push(o[C]):O.push(o[C]);b(O,!1,n,t,a,e),b(E,!0,n,t,a,e)}function f(o,n,t,a,e,u,r,s){for(var c=[],h=[],g=Number.MAX_VALUE,v=-Number.MAX_VALUE,b=0;b<o.length;b++){if(d(o[b]))continue;o[b].x<n?(g=Math.min(g,o[b].x),c.push(o[b])):(v=Math.max(v,o[b].x),h.push(o[b]))}m(h,n,t,a,1,e,u,r,s,v),m(c,n,t,a,-1,e,u,r,s,g);for(var b=0;b<o.length;b++){var w=o[b];if(d(w))continue;var x=w.linePoints;if(x){var T=w.labelAlignTo==="edge",O=w.textRect.width,E;T?w.x<n?E=x[2][0]-w.labelDistance-r-w.labelMargin:E=r+e-w.labelMargin-x[2][0]-w.labelDistance:w.x<n?E=w.x-r-w.bleedMargin:E=r+e-w.x-w.bleedMargin,E<w.textRect.width&&(w.text=y.truncateText(w.text,E,w.font),w.labelAlignTo==="edge"&&(O=y.getWidth(w.text,w.font)));var C=x[1][0]-x[2][0];T?w.x<n?x[2][0]=r+w.labelMargin+O+w.labelDistance:x[2][0]=r+e-w.labelMargin-O-w.labelDistance:(w.x<n?x[2][0]=w.x+w.labelDistance:x[2][0]=w.x-w.labelDistance,x[1][0]=x[2][0]+C),x[1][1]=x[2][1]=w.y}}}function d(o){return o.position==="center"}function l(o,n,t,a,e,u){var r=o.getData(),s=[],c,h,g=!1,v=(o.get("minShowLabelAngle")||0)*A;r.each(function(b){var w=r.getItemLayout(b),x=r.getItemModel(b),T=x.getModel("label"),O=T.get("position")||x.get("emphasis.label.position"),E=T.get("distanceToLabelLine"),C=T.get("alignTo"),I=S(T.get("margin"),t),_=T.get("bleedMargin"),F=T.getFont(),R=x.getModel("labelLine"),B=R.get("length");B=S(B,t);var M=R.get("length2");if(M=S(M,t),w.angle<v)return;var X=(w.startAngle+w.endAngle)/2,P=Math.cos(X),z=Math.sin(X),W,U,V,Q;c=w.cx,h=w.cy;var G=o.getFormattedLabel(b,"normal")||r.getName(b),te=y.getBoundingRect(G,F,Q,"top"),$=O==="inside"||O==="inner";if(O==="center")W=w.cx,U=w.cy,Q="center";else{var le=($?(w.r+w.r0)/2*P:w.r*P)+c,re=($?(w.r+w.r0)/2*z:w.r*z)+h;if(W=le+P*3,U=re+z*3,!$){var Se=le+P*(B+n-w.r),Re=re+z*(B+n-w.r),Pe=Se+(P<0?-1:1)*M,Je=Re;C==="edge"?W=P<0?e+I:e+t-I:W=Pe+(P<0?-E:E),U=Je,V=[[le,re],[Se,Re],[Pe,Je]]}Q=$?"center":C==="edge"?P>0?"right":"left":P>0?"left":"right"}var Ve,ct=T.get("rotate");typeof ct=="number"?Ve=ct*(Math.PI/180):Ve=ct?P<0?-X+Math.PI:-X:0,g=!!Ve,w.label={x:W,y:U,position:O,height:te.height,len:B,len2:M,linePoints:V,textAlign:Q,verticalAlign:"middle",rotation:Ve,inside:$,labelDistance:E,labelAlignTo:C,labelMargin:I,bleedMargin:_,textRect:te,text:G,font:F},$||s.push(w.label)}),!g&&o.get("avoidLabelOverlap")&&f(s,c,h,n,t,a,e,u)}k.exports=l},u3os:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.ver=D.clear=D.bind=void 0;var y=i("P4Qj"),p=function(f,d){var l=(0,y.getSensor)(f);return l.bind(d),function(){l.unbind(d)}};D.bind=p;var S=function(f){var d=(0,y.getSensor)(f);(0,y.removeSensor)(d)};D.clear=S;var A="1.0.2";D.ver=A},u4NN:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("Uc92")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="EyeOutlined";var n=A.forwardRef(o);D.default=n},u8Dt:function(k,D,i){var y=i("YESw"),p="__lodash_hash_undefined__",S=Object.prototype,A=S.hasOwnProperty;function m(f){var d=this.__data__;if(y){var l=d[f];return l===p?void 0:l}return A.call(d,f)?d[f]:void 0}k.exports=m},u9fO:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("b80e"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},uAnK:function(k,D,i){var y=i("bYtY"),p=i("Kagy"),S=i("KxfA"),A=S.retrieveRawValue;function m(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 o=0;d.eachSeries(function(b,w){++o},this);var n=l.get("data.maxCount")||10,t=l.get("series.maxCount")||10,a=Math.min(o,t),e;if(o<1)return;var u=g();u?e=c(h("general.withTitle"),{title:u}):e=h("general.withoutTitle");var r=[],s=o>1?"series.multiple.prefix":"series.single.prefix";e+=c(h(s),{seriesCount:o}),d.eachSeries(function(b,w){if(w<a){var x,T=b.get("name"),O="series."+(o>1?"multiple":"single")+".";x=h(T?O+"withName":O+"withoutName"),x=c(x,{seriesId:b.seriesIndex,seriesName:b.get("name"),seriesType:v(b.subType)});var E=b.getData();window.data=E,E.count()>n?x+=c(h("data.partialData"),{displayCnt:n}):x+=h("data.allData");for(var C=[],I=0;I<E.count();I++)if(I<n){var _=E.getName(I),F=A(E,I);C.push(c(h(_?"data.withName":"data.withoutName"),{name:_,value:F}))}x+=C.join(h("data.separator.middle"))+h("data.separator.end"),r.push(x)}}),e+=r.join(h("series.multiple.separator.middle"))+h("series.multiple.separator.end"),f.setAttribute("aria-label",e);function c(b,w){if(typeof b!="string")return b;var x=b;return y.each(w,function(T,O){x=x.replace(new RegExp("\\{\\s*"+O+"\\s*\\}","g"),T)}),x}function h(b){var w=l.get(b);if(w==null){for(var x=b.split("."),T=p.aria,O=0;O<x.length;++O)T=T[x[O]];return T}else return w}function g(){var b=d.getModel("title").option;return b&&b.length&&(b=b[0]),b&&b.text}function v(b){return p.series.typeNames[b]||"\u81EA\u5B9A\u4E49\u56FE"}}k.exports=m},uGsb:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("MlIO"),i("1uat"))})(this,function(y){return function(){var p=y,S=p.x64,A=S.Word,m=S.WordArray,f=p.algo,d=f.SHA512,l=f.SHA384=d.extend({_doReset:function(){this._hash=new m.init([new A.init(3418070365,3238371032),new A.init(1654270250,914150663),new A.init(2438529370,812702999),new A.init(355462360,4144912697),new A.init(1731405415,4290775857),new A.init(2394180231,1750603025),new A.init(3675008525,1694076839),new A.init(1203062813,3204075428)])},_doFinalize:function(){var n=d._doFinalize.call(this);return n.sigBytes-=16,n}});p.SHA384=d._createHelper(l),p.HmacSHA384=d._createHmacHelper(l)}(),y.SHA384})},uGxW:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("OLod"))})(this,function(y){return y.pad.NoPadding={pad:function(){},unpad:function(){}},y.pad.NoPadding})},uK0f:function(k,D,i){(function(y,p){k.exports=p()})(this,function(){"use strict";function y(p,S,A){A=A||{},A.childrenKeyName=A.childrenKeyName||"children";var m=p||[],f=[],d=0;do{var l=m.filter(function(o){return S(o,d)})[0];if(!l)break;f.push(l),m=l[A.childrenKeyName]||[],d+=1}while(m.length>0);return f}return y})},uOyE:function(k,D,i){var y=i("ProS");y.registerAction({type:"brush",event:"brush"},function(p,S){S.eachComponent({mainType:"brush",query:p},function(A){A.setAreas(p.areas)})}),y.registerAction({type:"brushSelect",event:"brushSelected",update:"none"},function(){}),y.registerAction({type:"brushEnd",event:"brushEnd",update:"none"},function(){})},uQRt:function(k,D,i){k.exports=y;function y(){return i("gaXo"),{}}},uciX:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("wx14"),S=i("1OyB"),A=i("vuIU"),m=i("JX7q"),f=i("Ji7U"),d=i("LK+K"),l=i("rePB"),o=i("q1tI"),n=i("i8i4"),t=i.n(n),a=i("wgJM"),e=i("l4aY"),u=i("m+aA"),r=i("c+Xe"),s=i("zT1h"),c=i("QC+M"),h=i("TSYQ"),g=i.n(h);function v(ue,rt,ge){return ge?ue[0]===rt[0]:ue[0]===rt[0]&&ue[1]===rt[1]}function b(ue,rt,ge){var Z=ue[rt]||{};return Object(y.a)(Object(y.a)({},Z),ge)}function w(ue,rt,ge,Z){for(var Y=ge.points,ee=Object.keys(ue),fe=0;fe<ee.length;fe+=1){var be=ee[fe];if(v(ue[be].points,Y,Z))return"".concat(rt,"-placement-").concat(be)}return""}var x=i("ODXe"),T=i("Ff2n"),O=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))},E=i("8XRh");function C(ue){var rt=ue.prefixCls,ge=ue.motion,Z=ue.animation,Y=ue.transitionName;return ge||(Z?{motionName:"".concat(rt,"-").concat(Z)}:Y?{motionName:Y}:null)}function I(ue){var rt=ue.prefixCls,ge=ue.visible,Z=ue.zIndex,Y=ue.mask,ee=ue.maskMotion,fe=ue.maskAnimation,be=ue.maskTransitionName;if(!Y)return null;var Ce={};return(ee||be||fe)&&(Ce=Object(y.a)({motionAppear:!0},C({motion:ee,prefixCls:rt,transitionName:be,animation:fe}))),o.createElement(E.b,Object(p.a)({},Ce,{visible:ge,removeOnLeave:!0}),function(Te){var he=Te.className;return o.createElement("div",{style:{zIndex:Z},className:g()("".concat(rt,"-mask"),he)})})}var _=i("9mu1"),F=i("TNol"),R=i("U8pU");function B(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */B=function(){return rt};var ue,rt={},ge=Object.prototype,Z=ge.hasOwnProperty,Y=Object.defineProperty||function(gt,nr,mr){gt[nr]=mr.value},ee=typeof Symbol=="function"?Symbol:{},fe=ee.iterator||"@@iterator",be=ee.asyncIterator||"@@asyncIterator",Ce=ee.toStringTag||"@@toStringTag";function Te(gt,nr,mr){return Object.defineProperty(gt,nr,{value:mr,enumerable:!0,configurable:!0,writable:!0}),gt[nr]}try{Te({},"")}catch(gt){Te=function(mr,cn,Ar){return mr[cn]=Ar}}function he(gt,nr,mr,cn){var Ar=nr&&nr.prototype instanceof ft?nr:ft,xr=Object.create(Ar.prototype),qt=new Kt(cn||[]);return Y(xr,"_invoke",{value:oe(gt,mr,qt)}),xr}function ye(gt,nr,mr){try{return{type:"normal",arg:gt.call(nr,mr)}}catch(cn){return{type:"throw",arg:cn}}}rt.wrap=he;var Ie="suspendedStart",tt="suspendedYield",pt="executing",st="completed",Fe={};function ft(){}function et(){}function wt(){}var Ht={};Te(Ht,fe,function(){return this});var Dt=Object.getPrototypeOf,Tt=Dt&&Dt(Dt(hr([])));Tt&&Tt!==ge&&Z.call(Tt,fe)&&(Ht=Tt);var Bt=wt.prototype=ft.prototype=Object.create(Ht);function Ke(gt){["next","throw","return"].forEach(function(nr){Te(gt,nr,function(mr){return this._invoke(nr,mr)})})}function de(gt,nr){function mr(Ar,xr,qt,ar){var Et=ye(gt[Ar],gt,xr);if(Et.type!=="throw"){var en=Et.arg,Mn=en.value;return Mn&&Object(R.a)(Mn)=="object"&&Z.call(Mn,"__await")?nr.resolve(Mn.__await).then(function(Yn){mr("next",Yn,qt,ar)},function(Yn){mr("throw",Yn,qt,ar)}):nr.resolve(Mn).then(function(Yn){en.value=Yn,qt(en)},function(Yn){return mr("throw",Yn,qt,ar)})}ar(Et.arg)}var cn;Y(this,"_invoke",{value:function(xr,qt){function ar(){return new nr(function(Et,en){mr(xr,qt,Et,en)})}return cn=cn?cn.then(ar,ar):ar()}})}function oe(gt,nr,mr){var cn=Ie;return function(Ar,xr){if(cn===pt)throw new Error("Generator is already running");if(cn===st){if(Ar==="throw")throw xr;return{value:ue,done:!0}}for(mr.method=Ar,mr.arg=xr;;){var qt=mr.delegate;if(qt){var ar=lt(qt,mr);if(ar){if(ar===Fe)continue;return ar}}if(mr.method==="next")mr.sent=mr._sent=mr.arg;else if(mr.method==="throw"){if(cn===Ie)throw cn=st,mr.arg;mr.dispatchException(mr.arg)}else mr.method==="return"&&mr.abrupt("return",mr.arg);cn=pt;var Et=ye(gt,nr,mr);if(Et.type==="normal"){if(cn=mr.done?st:tt,Et.arg===Fe)continue;return{value:Et.arg,done:mr.done}}Et.type==="throw"&&(cn=st,mr.method="throw",mr.arg=Et.arg)}}}function lt(gt,nr){var mr=nr.method,cn=gt.iterator[mr];if(cn===ue)return nr.delegate=null,mr==="throw"&&gt.iterator.return&&(nr.method="return",nr.arg=ue,lt(gt,nr),nr.method==="throw")||mr!=="return"&&(nr.method="throw",nr.arg=new TypeError("The iterator does not provide a '"+mr+"' method")),Fe;var Ar=ye(cn,gt.iterator,nr.arg);if(Ar.type==="throw")return nr.method="throw",nr.arg=Ar.arg,nr.delegate=null,Fe;var xr=Ar.arg;return xr?xr.done?(nr[gt.resultName]=xr.value,nr.next=gt.nextLoc,nr.method!=="return"&&(nr.method="next",nr.arg=ue),nr.delegate=null,Fe):xr:(nr.method="throw",nr.arg=new TypeError("iterator result is not an object"),nr.delegate=null,Fe)}function qe(gt){var nr={tryLoc:gt[0]};1 in gt&&(nr.catchLoc=gt[1]),2 in gt&&(nr.finallyLoc=gt[2],nr.afterLoc=gt[3]),this.tryEntries.push(nr)}function pe(gt){var nr=gt.completion||{};nr.type="normal",delete nr.arg,gt.completion=nr}function Kt(gt){this.tryEntries=[{tryLoc:"root"}],gt.forEach(qe,this),this.reset(!0)}function hr(gt){if(gt||gt===""){var nr=gt[fe];if(nr)return nr.call(gt);if(typeof gt.next=="function")return gt;if(!isNaN(gt.length)){var mr=-1,cn=function Ar(){for(;++mr<gt.length;)if(Z.call(gt,mr))return Ar.value=gt[mr],Ar.done=!1,Ar;return Ar.value=ue,Ar.done=!0,Ar};return cn.next=cn}}throw new TypeError(Object(R.a)(gt)+" is not iterable")}return et.prototype=wt,Y(Bt,"constructor",{value:wt,configurable:!0}),Y(wt,"constructor",{value:et,configurable:!0}),et.displayName=Te(wt,Ce,"GeneratorFunction"),rt.isGeneratorFunction=function(gt){var nr=typeof gt=="function"&&gt.constructor;return!!nr&&(nr===et||(nr.displayName||nr.name)==="GeneratorFunction")},rt.mark=function(gt){return Object.setPrototypeOf?Object.setPrototypeOf(gt,wt):(gt.__proto__=wt,Te(gt,Ce,"GeneratorFunction")),gt.prototype=Object.create(Bt),gt},rt.awrap=function(gt){return{__await:gt}},Ke(de.prototype),Te(de.prototype,be,function(){return this}),rt.AsyncIterator=de,rt.async=function(gt,nr,mr,cn,Ar){Ar===void 0&&(Ar=Promise);var xr=new de(he(gt,nr,mr,cn),Ar);return rt.isGeneratorFunction(nr)?xr:xr.next().then(function(qt){return qt.done?qt.value:xr.next()})},Ke(Bt),Te(Bt,Ce,"Generator"),Te(Bt,fe,function(){return this}),Te(Bt,"toString",function(){return"[object Generator]"}),rt.keys=function(gt){var nr=Object(gt),mr=[];for(var cn in nr)mr.push(cn);return mr.reverse(),function Ar(){for(;mr.length;){var xr=mr.pop();if(xr in nr)return Ar.value=xr,Ar.done=!1,Ar}return Ar.done=!0,Ar}},rt.values=hr,Kt.prototype={constructor:Kt,reset:function(nr){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(pe),!nr)for(var mr in this)mr.charAt(0)==="t"&&Z.call(this,mr)&&!isNaN(+mr.slice(1))&&(this[mr]=ue)},stop:function(){this.done=!0;var nr=this.tryEntries[0].completion;if(nr.type==="throw")throw nr.arg;return this.rval},dispatchException:function(nr){if(this.done)throw nr;var mr=this;function cn(en,Mn){return qt.type="throw",qt.arg=nr,mr.next=en,Mn&&(mr.method="next",mr.arg=ue),!!Mn}for(var Ar=this.tryEntries.length-1;Ar>=0;--Ar){var xr=this.tryEntries[Ar],qt=xr.completion;if(xr.tryLoc==="root")return cn("end");if(xr.tryLoc<=this.prev){var ar=Z.call(xr,"catchLoc"),Et=Z.call(xr,"finallyLoc");if(ar&&Et){if(this.prev<xr.catchLoc)return cn(xr.catchLoc,!0);if(this.prev<xr.finallyLoc)return cn(xr.finallyLoc)}else if(ar){if(this.prev<xr.catchLoc)return cn(xr.catchLoc,!0)}else{if(!Et)throw new Error("try statement without catch or finally");if(this.prev<xr.finallyLoc)return cn(xr.finallyLoc)}}}},abrupt:function(nr,mr){for(var cn=this.tryEntries.length-1;cn>=0;--cn){var Ar=this.tryEntries[cn];if(Ar.tryLoc<=this.prev&&Z.call(Ar,"finallyLoc")&&this.prev<Ar.finallyLoc){var xr=Ar;break}}xr&&(nr==="break"||nr==="continue")&&xr.tryLoc<=mr&&mr<=xr.finallyLoc&&(xr=null);var qt=xr?xr.completion:{};return qt.type=nr,qt.arg=mr,xr?(this.method="next",this.next=xr.finallyLoc,Fe):this.complete(qt)},complete:function(nr,mr){if(nr.type==="throw")throw nr.arg;return nr.type==="break"||nr.type==="continue"?this.next=nr.arg:nr.type==="return"?(this.rval=this.arg=nr.arg,this.method="return",this.next="end"):nr.type==="normal"&&mr&&(this.next=mr),Fe},finish:function(nr){for(var mr=this.tryEntries.length-1;mr>=0;--mr){var cn=this.tryEntries[mr];if(cn.finallyLoc===nr)return this.complete(cn.completion,cn.afterLoc),pe(cn),Fe}},catch:function(nr){for(var mr=this.tryEntries.length-1;mr>=0;--mr){var cn=this.tryEntries[mr];if(cn.tryLoc===nr){var Ar=cn.completion;if(Ar.type==="throw"){var xr=Ar.arg;pe(cn)}return xr}}throw new Error("illegal catch attempt")},delegateYield:function(nr,mr,cn){return this.delegate={iterator:hr(nr),resultName:mr,nextLoc:cn},this.method==="next"&&(this.arg=ue),Fe}},rt}var M=i("HaE+"),X=i("dm2S"),P=["measure","alignPre","align",null,"motion"],z=function(ue,rt){var ge=Object(X.a)(null),Z=Object(x.a)(ge,2),Y=Z[0],ee=Z[1],fe=Object(o.useRef)();function be(he){ee(he,!0)}function Ce(){a.a.cancel(fe.current)}function Te(he){Ce(),fe.current=Object(a.a)(function(){be(function(ye){switch(Y){case"align":return"motion";case"motion":return"stable";default:}return ye}),he==null||he()})}return Object(o.useEffect)(function(){be("measure")},[ue]),Object(o.useEffect)(function(){switch(Y){case"measure":rt();break;default:}Y&&(fe.current=Object(a.a)(Object(M.a)(B().mark(function he(){var ye,Ie;return B().wrap(function(pt){for(;;)switch(pt.prev=pt.next){case 0:ye=P.indexOf(Y),Ie=P[ye+1],Ie&&ye!==-1&&be(Ie);case 3:case"end":return pt.stop()}},he)}))))},[Y]),Object(o.useEffect)(function(){return function(){Ce()}},[]),[Y,Te]},W=function(ue){var rt=o.useState({width:0,height:0}),ge=Object(x.a)(rt,2),Z=ge[0],Y=ge[1];function ee(be){var Ce=be.offsetWidth,Te=be.offsetHeight,he=be.getBoundingClientRect(),ye=he.width,Ie=he.height;Math.abs(Ce-ye)<1&&Math.abs(Te-Ie)<1&&(Ce=ye,Te=Ie),Y({width:Ce,height:Te})}var fe=o.useMemo(function(){var be={};if(ue){var Ce=Z.width,Te=Z.height;ue.indexOf("height")!==-1&&Te?be.height=Te:ue.indexOf("minHeight")!==-1&&Te&&(be.minHeight=Te),ue.indexOf("width")!==-1&&Ce?be.width=Ce:ue.indexOf("minWidth")!==-1&&Ce&&(be.minWidth=Ce)}return be},[ue,Z]);return[fe,ee]},U=o.forwardRef(function(ue,rt){var ge=ue.visible,Z=ue.prefixCls,Y=ue.className,ee=ue.style,fe=ue.children,be=ue.zIndex,Ce=ue.stretch,Te=ue.destroyPopupOnHide,he=ue.forceRender,ye=ue.align,Ie=ue.point,tt=ue.getRootDomNode,pt=ue.getClassNameFromAlign,st=ue.onAlign,Fe=ue.onMouseEnter,ft=ue.onMouseLeave,et=ue.onMouseDown,wt=ue.onTouchStart,Ht=ue.onClick,Dt=Object(o.useRef)(),Tt=Object(o.useRef)(),Bt=Object(o.useState)(),Ke=Object(x.a)(Bt,2),de=Ke[0],oe=Ke[1],lt=W(Ce),qe=Object(x.a)(lt,2),pe=qe[0],Kt=qe[1];function hr(){Ce&&Kt(tt())}var gt=z(ge,hr),nr=Object(x.a)(gt,2),mr=nr[0],cn=nr[1],Ar=Object(o.useState)(0),xr=Object(x.a)(Ar,2),qt=xr[0],ar=xr[1],Et=Object(o.useRef)();Object(F.a)(function(){mr==="alignPre"&&ar(0)},[mr]);function en(){return Ie||tt}function Mn(){var Ot;(Ot=Dt.current)===null||Ot===void 0||Ot.forceAlign()}function Yn(Ot,ke){var Me=pt(ke);de!==Me&&oe(Me),ar(function(Be){return Be+1}),mr==="align"&&(st==null||st(Ot,ke))}Object(F.a)(function(){mr==="align"&&(qt<3?Mn():cn(function(){var Ot;(Ot=Et.current)===null||Ot===void 0||Ot.call(Et)}))},[qt]);var ci=Object(y.a)({},C(ue));["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach(function(Ot){var ke=ci[Ot];ci[Ot]=function(Me,Be){return cn(),ke==null?void 0:ke(Me,Be)}});function Vi(){return new Promise(function(Ot){Et.current=Ot})}o.useEffect(function(){!ci.motionName&&mr==="motion"&&cn()},[ci.motionName,mr]),o.useImperativeHandle(rt,function(){return{forceAlign:Mn,getElement:function(){return Tt.current}}});var jn=Object(y.a)(Object(y.a)({},pe),{},{zIndex:be,opacity:mr==="motion"||mr==="stable"||!ge?void 0:0,pointerEvents:!ge&&mr!=="stable"?"none":void 0},ee),Qn=!0;ye!=null&&ye.points&&(mr==="align"||mr==="stable")&&(Qn=!1);var $t=fe;return o.Children.count(fe)>1&&($t=o.createElement("div",{className:"".concat(Z,"-content")},fe)),o.createElement(E.b,Object(p.a)({visible:ge,ref:Tt,leavedClassName:"".concat(Z,"-hidden")},ci,{onAppearPrepare:Vi,onEnterPrepare:Vi,removeOnLeave:Te,forceRender:he}),function(Ot,ke){var Me=Ot.className,Be=Ot.style,at=g()(Z,Y,de,Me);return o.createElement(_.a,{target:en(),key:"popup",ref:Dt,monitorWindowResize:!0,disabled:Qn,align:ye,onAlign:Yn},o.createElement("div",{ref:ke,className:at,onMouseEnter:Fe,onMouseLeave:ft,onMouseDownCapture:et,onTouchStartCapture:wt,onClick:Ht,style:Object(y.a)(Object(y.a)({},Be),jn)},$t))})});U.displayName="PopupInner";var V=U,Q=o.forwardRef(function(ue,rt){var ge=ue.prefixCls,Z=ue.visible,Y=ue.zIndex,ee=ue.children,fe=ue.mobile;fe=fe===void 0?{}:fe;var be=fe.popupClassName,Ce=fe.popupStyle,Te=fe.popupMotion,he=Te===void 0?{}:Te,ye=fe.popupRender,Ie=ue.onClick,tt=o.useRef();o.useImperativeHandle(rt,function(){return{forceAlign:function(){},getElement:function(){return tt.current}}});var pt=Object(y.a)({zIndex:Y},Ce),st=ee;return o.Children.count(ee)>1&&(st=o.createElement("div",{className:"".concat(ge,"-content")},ee)),ye&&(st=ye(st)),o.createElement(E.b,Object(p.a)({visible:Z,ref:tt,removeOnLeave:!0},he),function(Fe,ft){var et=Fe.className,wt=Fe.style,Ht=g()(ge,be,et);return o.createElement("div",{ref:ft,className:Ht,onClick:Ie,style:Object(y.a)(Object(y.a)({},wt),pt)},st)})});Q.displayName="MobilePopupInner";var G=Q,te=["visible","mobile"],$=o.forwardRef(function(ue,rt){var ge=ue.visible,Z=ue.mobile,Y=Object(T.a)(ue,te),ee=Object(o.useState)(ge),fe=Object(x.a)(ee,2),be=fe[0],Ce=fe[1],Te=Object(o.useState)(!1),he=Object(x.a)(Te,2),ye=he[0],Ie=he[1],tt=Object(y.a)(Object(y.a)({},Y),{},{visible:be});Object(o.useEffect)(function(){Ce(ge),ge&&Z&&Ie(O())},[ge,Z]);var pt=ye?o.createElement(G,Object(p.a)({},tt,{mobile:Z,ref:rt})):o.createElement(V,Object(p.a)({},tt,{ref:rt}));return o.createElement("div",null,o.createElement(I,tt),pt)});$.displayName="Popup";var le=$,re=o.createContext(null),Se=re;function Re(){}function Pe(){return""}function Je(ue){return ue?ue.ownerDocument:window.document}var Ve=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];function ct(ue){var rt=function(ge){Object(f.a)(Y,ge);var Z=Object(d.a)(Y);function Y(ee){var fe;Object(S.a)(this,Y),fe=Z.call(this,ee),Object(l.a)(Object(m.a)(fe),"popupRef",o.createRef()),Object(l.a)(Object(m.a)(fe),"triggerRef",o.createRef()),Object(l.a)(Object(m.a)(fe),"portalContainer",void 0),Object(l.a)(Object(m.a)(fe),"attachId",void 0),Object(l.a)(Object(m.a)(fe),"clickOutsideHandler",void 0),Object(l.a)(Object(m.a)(fe),"touchOutsideHandler",void 0),Object(l.a)(Object(m.a)(fe),"contextMenuOutsideHandler1",void 0),Object(l.a)(Object(m.a)(fe),"contextMenuOutsideHandler2",void 0),Object(l.a)(Object(m.a)(fe),"mouseDownTimeout",void 0),Object(l.a)(Object(m.a)(fe),"focusTime",void 0),Object(l.a)(Object(m.a)(fe),"preClickTime",void 0),Object(l.a)(Object(m.a)(fe),"preTouchTime",void 0),Object(l.a)(Object(m.a)(fe),"delayTimer",void 0),Object(l.a)(Object(m.a)(fe),"hasPopupMouseDown",void 0),Object(l.a)(Object(m.a)(fe),"onMouseEnter",function(Ce){var Te=fe.props.mouseEnterDelay;fe.fireEvents("onMouseEnter",Ce),fe.delaySetPopupVisible(!0,Te,Te?null:Ce)}),Object(l.a)(Object(m.a)(fe),"onMouseMove",function(Ce){fe.fireEvents("onMouseMove",Ce),fe.setPoint(Ce)}),Object(l.a)(Object(m.a)(fe),"onMouseLeave",function(Ce){fe.fireEvents("onMouseLeave",Ce),fe.delaySetPopupVisible(!1,fe.props.mouseLeaveDelay)}),Object(l.a)(Object(m.a)(fe),"onPopupMouseEnter",function(){fe.clearDelayTimer()}),Object(l.a)(Object(m.a)(fe),"onPopupMouseLeave",function(Ce){var Te;if(Ce.relatedTarget&&!Ce.relatedTarget.setTimeout&&Object(e.a)((Te=fe.popupRef.current)===null||Te===void 0?void 0:Te.getElement(),Ce.relatedTarget))return;fe.delaySetPopupVisible(!1,fe.props.mouseLeaveDelay)}),Object(l.a)(Object(m.a)(fe),"onFocus",function(Ce){fe.fireEvents("onFocus",Ce),fe.clearDelayTimer(),fe.isFocusToShow()&&(fe.focusTime=Date.now(),fe.delaySetPopupVisible(!0,fe.props.focusDelay))}),Object(l.a)(Object(m.a)(fe),"onMouseDown",function(Ce){fe.fireEvents("onMouseDown",Ce),fe.preClickTime=Date.now()}),Object(l.a)(Object(m.a)(fe),"onTouchStart",function(Ce){fe.fireEvents("onTouchStart",Ce),fe.preTouchTime=Date.now()}),Object(l.a)(Object(m.a)(fe),"onBlur",function(Ce){fe.fireEvents("onBlur",Ce),fe.clearDelayTimer(),fe.isBlurToHide()&&fe.delaySetPopupVisible(!1,fe.props.blurDelay)}),Object(l.a)(Object(m.a)(fe),"onContextMenu",function(Ce){Ce.preventDefault(),fe.fireEvents("onContextMenu",Ce),fe.setPopupVisible(!0,Ce)}),Object(l.a)(Object(m.a)(fe),"onContextMenuClose",function(){fe.isContextMenuToShow()&&fe.close()}),Object(l.a)(Object(m.a)(fe),"onClick",function(Ce){if(fe.fireEvents("onClick",Ce),fe.focusTime){var Te;if(fe.preClickTime&&fe.preTouchTime?Te=Math.min(fe.preClickTime,fe.preTouchTime):fe.preClickTime?Te=fe.preClickTime:fe.preTouchTime&&(Te=fe.preTouchTime),Math.abs(Te-fe.focusTime)<20)return;fe.focusTime=0}fe.preClickTime=0,fe.preTouchTime=0,fe.isClickToShow()&&(fe.isClickToHide()||fe.isBlurToHide())&&Ce&&Ce.preventDefault&&Ce.preventDefault();var he=!fe.state.popupVisible;(fe.isClickToHide()&&!he||he&&fe.isClickToShow())&&fe.setPopupVisible(!fe.state.popupVisible,Ce)}),Object(l.a)(Object(m.a)(fe),"onPopupMouseDown",function(){if(fe.hasPopupMouseDown=!0,clearTimeout(fe.mouseDownTimeout),fe.mouseDownTimeout=window.setTimeout(function(){fe.hasPopupMouseDown=!1},0),fe.context){var Ce;(Ce=fe.context).onPopupMouseDown.apply(Ce,arguments)}}),Object(l.a)(Object(m.a)(fe),"onDocumentClick",function(Ce){if(fe.props.mask&&!fe.props.maskClosable)return;var Te=Ce.target,he=fe.getRootDomNode(),ye=fe.getPopupDomNode();(!Object(e.a)(he,Te)||fe.isContextMenuOnly())&&!Object(e.a)(ye,Te)&&!fe.hasPopupMouseDown&&fe.close()}),Object(l.a)(Object(m.a)(fe),"getRootDomNode",function(){var Ce=fe.props.getTriggerDOMNode;if(Ce)return Ce(fe.triggerRef.current);try{var Te=Object(u.a)(fe.triggerRef.current);if(Te)return Te}catch(he){}return t.a.findDOMNode(Object(m.a)(fe))}),Object(l.a)(Object(m.a)(fe),"getPopupClassNameFromAlign",function(Ce){var Te=[],he=fe.props,ye=he.popupPlacement,Ie=he.builtinPlacements,tt=he.prefixCls,pt=he.alignPoint,st=he.getPopupClassNameFromAlign;return ye&&Ie&&Te.push(w(Ie,tt,Ce,pt)),st&&Te.push(st(Ce)),Te.join(" ")}),Object(l.a)(Object(m.a)(fe),"getComponent",function(){var Ce=fe.props,Te=Ce.prefixCls,he=Ce.destroyPopupOnHide,ye=Ce.popupClassName,Ie=Ce.onPopupAlign,tt=Ce.popupMotion,pt=Ce.popupAnimation,st=Ce.popupTransitionName,Fe=Ce.popupStyle,ft=Ce.mask,et=Ce.maskAnimation,wt=Ce.maskTransitionName,Ht=Ce.maskMotion,Dt=Ce.zIndex,Tt=Ce.popup,Bt=Ce.stretch,Ke=Ce.alignPoint,de=Ce.mobile,oe=Ce.forceRender,lt=Ce.onPopupClick,qe=fe.state,pe=qe.popupVisible,Kt=qe.point,hr=fe.getPopupAlign(),gt={};return fe.isMouseEnterToShow()&&(gt.onMouseEnter=fe.onPopupMouseEnter),fe.isMouseLeaveToHide()&&(gt.onMouseLeave=fe.onPopupMouseLeave),gt.onMouseDown=fe.onPopupMouseDown,gt.onTouchStart=fe.onPopupMouseDown,o.createElement(le,Object(p.a)({prefixCls:Te,destroyPopupOnHide:he,visible:pe,point:Ke&&Kt,className:ye,align:hr,onAlign:Ie,animation:pt,getClassNameFromAlign:fe.getPopupClassNameFromAlign},gt,{stretch:Bt,getRootDomNode:fe.getRootDomNode,style:Fe,mask:ft,zIndex:Dt,transitionName:st,maskAnimation:et,maskTransitionName:wt,maskMotion:Ht,ref:fe.popupRef,motion:tt,mobile:de,forceRender:oe,onClick:lt}),typeof Tt=="function"?Tt():Tt)}),Object(l.a)(Object(m.a)(fe),"attachParent",function(Ce){a.a.cancel(fe.attachId);var Te=fe.props,he=Te.getPopupContainer,ye=Te.getDocument,Ie=fe.getRootDomNode(),tt;he?(Ie||he.length===0)&&(tt=he(Ie)):tt=ye(fe.getRootDomNode()).body,tt?tt.appendChild(Ce):fe.attachId=Object(a.a)(function(){fe.attachParent(Ce)})}),Object(l.a)(Object(m.a)(fe),"getContainer",function(){if(!fe.portalContainer){var Ce=fe.props.getDocument,Te=Ce(fe.getRootDomNode()).createElement("div");Te.style.position="absolute",Te.style.top="0",Te.style.left="0",Te.style.width="100%",fe.portalContainer=Te}return fe.attachParent(fe.portalContainer),fe.portalContainer}),Object(l.a)(Object(m.a)(fe),"setPoint",function(Ce){var Te=fe.props.alignPoint;if(!Te||!Ce)return;fe.setState({point:{pageX:Ce.pageX,pageY:Ce.pageY}})}),Object(l.a)(Object(m.a)(fe),"handlePortalUpdate",function(){fe.state.prevPopupVisible!==fe.state.popupVisible&&fe.props.afterPopupVisibleChange(fe.state.popupVisible)}),Object(l.a)(Object(m.a)(fe),"triggerContextValue",{onPopupMouseDown:fe.onPopupMouseDown});var be;return"popupVisible"in ee?be=!!ee.popupVisible:be=!!ee.defaultPopupVisible,fe.state={prevPopupVisible:be,popupVisible:be},Ve.forEach(function(Ce){fe["fire".concat(Ce)]=function(Te){fe.fireEvents(Ce,Te)}}),fe}return Object(A.a)(Y,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var fe=this.props,be=this.state;if(be.popupVisible){var Ce;!this.clickOutsideHandler&&(this.isClickToHide()||this.isContextMenuToShow())&&(Ce=fe.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(s.a)(Ce,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(Ce=Ce||fe.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(s.a)(Ce,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(Ce=Ce||fe.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(s.a)(Ce,"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),a.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var fe;return((fe=this.popupRef.current)===null||fe===void 0?void 0:fe.getElement())||null}},{key:"getPopupAlign",value:function(){var fe=this.props,be=fe.popupPlacement,Ce=fe.popupAlign,Te=fe.builtinPlacements;return be&&Te?b(Te,be,Ce):Ce}},{key:"setPopupVisible",value:function(fe,be){var Ce=this.props.alignPoint,Te=this.state.popupVisible;this.clearDelayTimer(),Te!==fe&&("popupVisible"in this.props||this.setState({popupVisible:fe,prevPopupVisible:Te}),this.props.onPopupVisibleChange(fe)),Ce&&be&&fe&&this.setPoint(be)}},{key:"delaySetPopupVisible",value:function(fe,be,Ce){var Te=this,he=be*1e3;if(this.clearDelayTimer(),he){var ye=Ce?{pageX:Ce.pageX,pageY:Ce.pageY}:null;this.delayTimer=window.setTimeout(function(){Te.setPopupVisible(fe,ye),Te.clearDelayTimer()},he)}else this.setPopupVisible(fe,Ce)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(fe){var be=this.props.children.props,Ce=this.props;return be[fe]&&Ce[fe]?this["fire".concat(fe)]:be[fe]||Ce[fe]}},{key:"isClickToShow",value:function(){var fe=this.props,be=fe.action,Ce=fe.showAction;return be.indexOf("click")!==-1||Ce.indexOf("click")!==-1}},{key:"isContextMenuOnly",value:function(){var fe=this.props.action;return fe==="contextMenu"||fe.length===1&&fe[0]==="contextMenu"}},{key:"isContextMenuToShow",value:function(){var fe=this.props,be=fe.action,Ce=fe.showAction;return be.indexOf("contextMenu")!==-1||Ce.indexOf("contextMenu")!==-1}},{key:"isClickToHide",value:function(){var fe=this.props,be=fe.action,Ce=fe.hideAction;return be.indexOf("click")!==-1||Ce.indexOf("click")!==-1}},{key:"isMouseEnterToShow",value:function(){var fe=this.props,be=fe.action,Ce=fe.showAction;return be.indexOf("hover")!==-1||Ce.indexOf("mouseEnter")!==-1}},{key:"isMouseLeaveToHide",value:function(){var fe=this.props,be=fe.action,Ce=fe.hideAction;return be.indexOf("hover")!==-1||Ce.indexOf("mouseLeave")!==-1}},{key:"isFocusToShow",value:function(){var fe=this.props,be=fe.action,Ce=fe.showAction;return be.indexOf("focus")!==-1||Ce.indexOf("focus")!==-1}},{key:"isBlurToHide",value:function(){var fe=this.props,be=fe.action,Ce=fe.hideAction;return be.indexOf("focus")!==-1||Ce.indexOf("blur")!==-1}},{key:"forcePopupAlign",value:function(){if(this.state.popupVisible){var fe;(fe=this.popupRef.current)===null||fe===void 0||fe.forceAlign()}}},{key:"fireEvents",value:function(fe,be){var Ce=this.props.children.props[fe];Ce&&Ce(be);var Te=this.props[fe];Te&&Te(be)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var fe=this.state.popupVisible,be=this.props,Ce=be.children,Te=be.forceRender,he=be.alignPoint,ye=be.className,Ie=be.autoDestroy,tt=o.Children.only(Ce),pt={key:"trigger"};this.isContextMenuToShow()?pt.onContextMenu=this.onContextMenu:pt.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(pt.onClick=this.onClick,pt.onMouseDown=this.onMouseDown,pt.onTouchStart=this.onTouchStart):(pt.onClick=this.createTwoChains("onClick"),pt.onMouseDown=this.createTwoChains("onMouseDown"),pt.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(pt.onMouseEnter=this.onMouseEnter,he&&(pt.onMouseMove=this.onMouseMove)):pt.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?pt.onMouseLeave=this.onMouseLeave:pt.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(pt.onFocus=this.onFocus,pt.onBlur=this.onBlur):(pt.onFocus=this.createTwoChains("onFocus"),pt.onBlur=this.createTwoChains("onBlur"));var st=g()(tt&&tt.props&&tt.props.className,ye);st&&(pt.className=st);var Fe=Object(y.a)({},pt);Object(r.c)(tt)&&(Fe.ref=Object(r.a)(this.triggerRef,tt.ref));var ft=o.cloneElement(tt,Fe),et;return(fe||this.popupRef.current||Te)&&(et=o.createElement(ue,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!fe&&Ie&&(et=null),o.createElement(Se.Provider,{value:this.triggerContextValue},ft,et)}}],[{key:"getDerivedStateFromProps",value:function(fe,be){var Ce=fe.popupVisible,Te={};return Ce!==void 0&&be.popupVisible!==Ce&&(Te.popupVisible=Ce,Te.prevPopupVisible=be.popupVisible),Te}}]),Y}(o.Component);return Object(l.a)(rt,"contextType",Se),Object(l.a)(rt,"defaultProps",{prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:Pe,getDocument:Je,onPopupVisibleChange:Re,afterPopupVisibleChange:Re,onPopupAlign:Re,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1}),rt}var Ue=D.a=ct(c.a)},ugBc:function(k,D,i){"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(k,D,i){},v5uJ:function(k,D,i){var y=i("ProS"),p=i("2B6p"),S=p.updateCenterAndZoom;y.registerAction({type:"treeExpandAndCollapse",event:"treeExpandAndCollapse",update:"update"},function(A,m){m.eachComponent({mainType:"series",subType:"tree",query:A},function(f){var d=A.dataIndex,l=f.getData().tree,o=l.getNodeByDataIndex(d);o.isExpand=!o.isExpand})}),y.registerAction({type:"treeRoam",event:"treeRoam",update:"none"},function(A,m){m.eachComponent({mainType:"series",subType:"tree",query:A},function(f){var d=f.coordinateSystem,l=S(d,A);f.setCenter&&f.setCenter(l.center),f.setZoom&&f.setZoom(l.zoom)})})},"vF/C":function(k,D,i){var y=i("bLfw");y.registerSubTypeDefaulter("visualMap",function(p){return!p.categories&&(!(p.pieces?p.pieces.length>0:p.splitNumber>0)||p.calculable)?"continuous":"piecewise"})},vKoX:function(k,D,i){var y=i("SrGk"),p=i("bYtY");function S(f,d){y.call(this,f,d,["filter"],"__filter_in_use__","_shadowDom")}p.inherits(S,y),S.prototype.addWithoutUpdate=function(f,d){if(d&&A(d.style)){var l;if(d._shadowDom){l=d._shadowDom;var o=this.getDefs(!0);o.contains(d._shadowDom)||this.addDom(l)}else l=this.add(d);this.markUsed(d);var n=l.getAttribute("id");f.style.filter="url(#"+n+")"}},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(A(l)){var o=this;y.prototype.update.call(this,d,function(){o.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 o=f.style,n=f.scale&&f.scale[0]||1,t=f.scale&&f.scale[1]||1,a,e,u,r;if(o.shadowBlur||o.shadowOffsetX||o.shadowOffsetY)a=o.shadowOffsetX||0,e=o.shadowOffsetY||0,u=o.shadowBlur,r=o.shadowColor;else if(o.textShadowBlur)a=o.textShadowOffsetX||0,e=o.textShadowOffsetY||0,u=o.textShadowBlur,r=o.textShadowColor;else{this.removeDom(d,o);return}l.setAttribute("dx",a/n),l.setAttribute("dy",e/t),l.setAttribute("flood-color",r);var s=u/2/n,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 A(f){return f&&(f.shadowBlur||f.shadowOffsetX||f.shadowOffsetY||f.textShadowBlur||f.textShadowOffsetX||f.textShadowOffsetY)}var m=S;k.exports=m},vL6D:function(k,D,i){var y=i("bYtY"),p=i("+rIm"),S=i("IwbS"),A=i("7bkD"),m=i("Znkb"),f=i("WN+l"),d=f.rectCoordAxisBuildSplitArea,l=f.rectCoordAxisHandleRemove,o=["axisLine","axisTickLabel","axisName"],n=["splitArea","splitLine"],t=m.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 g=A.layout(e),v=new p(e,g);y.each(o,v.add,v),c.add(this._axisGroup),c.add(v.getGroup()),y.each(n,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 g=e.coordinateSystem.getRect(),v=u.isHorizontal(),b=[],w=0,x=u.getTicksCoords({tickModel:r}),T=[],O=[],E=0;E<x.length;++E){var C=u.toGlobalCoord(x[E].coord);v?(T[0]=C,T[1]=g.y,O[0]=C,O[1]=g.y+g.height):(T[0]=g.x,T[1]=C,O[0]=g.x+g.width,O[1]=C);var I=w++%h.length;b[I]=b[I]||[],b[I].push(new S.Line({subPixelOptimize:!0,shape:{x1:T[0],y1:T[1],x2:O[0],y2:O[1]},style:{lineWidth:c},silent:!0}))}for(var E=0;E<b.length;++E)this.group.add(S.mergePath(b[E],{style:{stroke:h[E%h.length],lineDash:s.getLineDash(c),lineWidth:c},silent:!0}))},_splitArea:function(e){d(this,this._axisGroup,e,e)}}),a=t;k.exports=a},vWvF:function(k,D,i){var y=i("Bq2U"),p=i("SUKs"),S=i("bYtY"),A=S.isString,m=S.isFunction,f=S.isObject,d=S.isArrayLike,l=S.indexOf,o=function(){this.animators=[]};o.prototype={constructor:o,animate:function(r,s){var c,h=!1,g=this,v=this.__zr;if(r){var b=r.split("."),w=g;h=b[0]==="shape";for(var x=0,T=b.length;x<T;x++){if(!w)continue;w=w[b[x]]}w&&(c=w)}else c=g;if(!c){p('Property "'+r+'" is not existed in element '+g.id);return}var O=g.animators,E=new y(c,s);return E.during(function(C){g.dirty(h)}).done(function(){O.splice(l(O,E),1)}),O.push(E),v&&v.animation.addAnimator(E),E},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,g,v){n(this,r,s,c,h,g,v)},animateFrom:function(r,s,c,h,g,v){n(this,r,s,c,h,g,v,!0)}};function n(u,r,s,c,h,g,v,b){A(c)?(g=h,h=c,c=0):m(h)?(g=h,h="linear",c=0):m(c)?(g=c,c=0):m(s)?(g=s,s=500):s||(s=500),u.stopAnimation(),t(u,"",u,r,s,c,b);var w=u.animators.slice(),x=w.length;function T(){x--,x||g&&g()}x||g&&g();for(var O=0;O<w.length;O++)w[O].done(T).start(h,v)}function t(u,r,s,c,h,g,v){var b={},w=0;for(var x in c){if(!c.hasOwnProperty(x))continue;s[x]!=null?f(c[x])&&!d(c[x])?t(u,r?r+"."+x:x,s[x],c[x],h,g,v):(v?(b[x]=s[x],a(u,r,x,c[x])):b[x]=c[x],w++):c[x]!=null&&!v&&a(u,r,x,c[x])}w>0&&u.animate(r,!1).when(h==null?500:h,b).delay(g||0)}function a(u,r,s,c){if(!r)u.attr(s,c);else{var h={};h[r]={},h[r][s]=c,u.attr(h)}}var e=o;k.exports=e},vZ6x:function(k,D,i){var y=i("Tghj"),p=y.__DEV__,S=i("bYtY"),A=i("IwbS"),m=i("4NO4"),f=i("9KIM"),d=S.each,l=S.indexOf,o=S.curry,n=["dataToPoint","pointToData"],t=["grid","xAxis","yAxis","geo","graph","polar","radiusAxis","angleAxis","bmap"];function a(E,C,I){var _=this._targetInfoList=[],F={},R=r(C,E);d(s,function(B,M){(!I||!I.include||l(I.include,M)>=0)&&B(R,_,F)})}var e=a.prototype;e.setOutputRanges=function(E,C){this.matchOutputRanges(E,C,function(I,_,F){if((I.coordRanges||(I.coordRanges=[])).push(_),!I.coordRange){I.coordRange=_;var R=g[I.brushType](0,F,_);I.__rangeOffset={offset:b[I.brushType](R.values,I.range,[1,1]),xyMinMax:R.xyMinMax}}})},e.matchOutputRanges=function(E,C,I){d(E,function(_){var F=this.findTargetInfo(_,C);F&&F!==!0&&S.each(F.coordSyses,function(R){var B=g[_.brushType](1,R,_.range);I(_,B.values,R,C)})},this)},e.setInputRanges=function(E,C){d(E,function(I){var _=this.findTargetInfo(I,C);if(I.range=I.range||[],_&&_!==!0){I.panelId=_.panelId;var F=g[I.brushType](0,_.coordSys,I.coordRange),R=I.__rangeOffset;I.range=R?b[I.brushType](F.values,R.offset,x(F.xyMinMax,R.xyMinMax)):F.values}},this)},e.makePanelOpts=function(E,C){return S.map(this._targetInfoList,function(I){var _=I.getPanelRect();return{panelId:I.panelId,defaultBrushType:C&&C(I),clipPath:f.makeRectPanelClipPath(_),isTargetByCursor:f.makeRectIsTargetByCursor(_,E,I.coordSysModel),getLinearBrushOtherExtent:f.makeLinearBrushOtherExtent(_)}})},e.controlSeries=function(E,C,I){var _=this.findTargetInfo(E,I);return _===!0||_&&l(_.coordSyses,C.coordinateSystem)>=0},e.findTargetInfo=function(E,C){for(var I=this._targetInfoList,_=r(C,E),F=0;F<I.length;F++){var R=I[F],B=E.panelId;if(B){if(R.panelId===B)return R}else for(var F=0;F<c.length;F++)if(c[F](_,R))return R}return!0};function u(E){return E[0]>E[1]&&E.reverse(),E}function r(E,C){return m.parseFinder(E,C,{includeMainTypes:t})}var s={grid:function(E,C){var I=E.xAxisModels,_=E.yAxisModels,F=E.gridModels,R=S.createHashMap(),B={},M={};if(!I&&!_&&!F)return;d(I,function(X){var P=X.axis.grid.model;R.set(P.id,P),B[P.id]=!0}),d(_,function(X){var P=X.axis.grid.model;R.set(P.id,P),M[P.id]=!0}),d(F,function(X){R.set(X.id,X),B[X.id]=!0,M[X.id]=!0}),R.each(function(X){var P=X.coordinateSystem,z=[];d(P.getCartesians(),function(W,U){(l(I,W.getAxis("x").model)>=0||l(_,W.getAxis("y").model)>=0)&&z.push(W)}),C.push({panelId:"grid--"+X.id,gridModel:X,coordSysModel:X,coordSys:z[0],coordSyses:z,getPanelRect:h.grid,xAxisDeclared:B[X.id],yAxisDeclared:M[X.id]})})},geo:function(E,C){d(E.geoModels,function(I){var _=I.coordinateSystem;C.push({panelId:"geo--"+I.id,geoModel:I,coordSysModel:I,coordSys:_,coordSyses:[_],getPanelRect:h.geo})})}},c=[function(E,C){var I=E.xAxisModel,_=E.yAxisModel,F=E.gridModel;return!F&&I&&(F=I.axis.grid.model),!F&&_&&(F=_.axis.grid.model),F&&F===C.gridModel},function(E,C){var I=E.geoModel;return I&&I===C.geoModel}],h={grid:function(){return this.coordSys.grid.getRect().clone()},geo:function(){var E=this.coordSys,C=E.getBoundingRect().clone();return C.applyTransform(A.getTransform(E)),C}},g={lineX:o(v,0),lineY:o(v,1),rect:function(E,C,I){var _=C[n[E]]([I[0][0],I[1][0]]),F=C[n[E]]([I[0][1],I[1][1]]),R=[u([_[0],F[0]]),u([_[1],F[1]])];return{values:R,xyMinMax:R}},polygon:function(E,C,I){var _=[[Infinity,-Infinity],[Infinity,-Infinity]],F=S.map(I,function(R){var B=C[n[E]](R);return _[0][0]=Math.min(_[0][0],B[0]),_[1][0]=Math.min(_[1][0],B[1]),_[0][1]=Math.max(_[0][1],B[0]),_[1][1]=Math.max(_[1][1],B[1]),B});return{values:F,xyMinMax:_}}};function v(E,C,I,_){var F=I.getAxis(["x","y"][E]),R=u(S.map([0,1],function(M){return C?F.coordToData(F.toLocalCoord(_[M])):F.toGlobalCoord(F.dataToCoord(_[M]))})),B=[];return B[E]=R,B[1-E]=[NaN,NaN],{values:R,xyMinMax:B}}var b={lineX:o(w,0),lineY:o(w,1),rect:function(E,C,I){return[[E[0][0]-I[0]*C[0][0],E[0][1]-I[0]*C[0][1]],[E[1][0]-I[1]*C[1][0],E[1][1]-I[1]*C[1][1]]]},polygon:function(E,C,I){return S.map(E,function(_,F){return[_[0]-I[0]*C[F][0],_[1]-I[1]*C[F][1]]})}};function w(E,C,I,_){return[C[0]-_[E]*I[0],C[1]-_[E]*I[1]]}function x(E,C){var I=T(E),_=T(C),F=[I[0]/_[0],I[1]/_[1]];return isNaN(F[0])&&(F[0]=1),isNaN(F[1])&&(F[1]=1),F}function T(E){return E?[E[0][1]-E[0][0],E[1][1]-E[1][0]]:[NaN,NaN]}var O=a;k.exports=O},vZI5:function(k,D,i){var y=i("bYtY"),p=i("T4UG"),S=i("5GhG"),A=S.seriesModelMixin,m=p.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,o){var n=l.getItemLayout(d);return n&&o.rect(n.brushRect)}});y.mixin(m,A,!0);var f=m;k.exports=f},vafp:function(k,D,i){var y=i("bYtY"),p=i("8nly");function S(f){if(!f.UTF8Encoding)return f;var d=f.UTF8Scale;d==null&&(d=1024);for(var l=f.features,o=0;o<l.length;o++)for(var n=l[o],t=n.geometry,a=t.coordinates,e=t.encodeOffsets,u=0;u<a.length;u++){var r=a[u];if(t.type==="Polygon")a[u]=A(r,e[u],d);else if(t.type==="MultiPolygon")for(var s=0;s<r.length;s++){var c=r[s];r[s]=A(c,e[u][s],d)}}return f.UTF8Encoding=!1,f}function A(f,d,l){for(var o=[],n=d[0],t=d[1],a=0;a<f.length;a+=2){var e=f.charCodeAt(a)-64,u=f.charCodeAt(a+1)-64;e=e>>1^-(e&1),u=u>>1^-(u&1),e+=n,u+=t,n=e,t=u,o.push([e/l,u/l])}return o}function m(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 o=l.properties,n=l.geometry,t=n.coordinates,a=[];n.type==="Polygon"&&a.push({type:"polygon",exterior:t[0],interiors:t.slice(1)}),n.type==="MultiPolygon"&&y.each(t,function(u){u[0]&&a.push({type:"polygon",exterior:u[0],interiors:u.slice(1)})});var e=new p(o[d||"name"],a,o.cp);return e.properties=o,e})}k.exports=m},vcCh:function(k,D,i){var y=i("ProS");i("0qV/"),y.registerAction({type:"dragNode",event:"dragnode",update:"update"},function(p,S){S.eachComponent({mainType:"series",subType:"sankey",query:p},function(A){A.setNodePosition(p.dataIndex,[p.localX,p.localY])})})},vewr:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.getPointerEvent=y,D.stopEvent=p,D.setCapture=l,D.releaseCapture=o;function y(n){return n.changedTouches?n.changedTouches[0]:n.touches?n.touches[0]:n}function p(n){n.stopPropagation(),n.preventDefault()}var S=!1,A=null;document.captureElement=null;function m(n){if(S)return;var t=new n.constructor(n.type,n);S=!0,document.captureElement?document.captureElement.dispatchEvent(t):A.dispatchEvent(t),S=!1,n.stopPropagation(),t.defaultPrevented&&n.preventDefault(),n.type==="mouseup"&&o()}function f(){var n=document.getElementById("noVNC_mouse_capture_elem");n.style.cursor=window.getComputedStyle(document.captureElement).cursor}var d=new MutationObserver(f);function l(n){if(n.setCapture)n.setCapture(),document.captureElement=n,n.addEventListener("mouseup",o);else{o();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",m),t.addEventListener("mousemove",m),t.addEventListener("mouseup",m)),document.captureElement=n,d.observe(n,{attributes:!0}),f(),t.style.display="",window.addEventListener("mousemove",m),window.addEventListener("mouseup",m)}}function o(){if(document.releaseCapture)document.releaseCapture(),document.captureElement=null;else{if(!document.captureElement)return;A=document.captureElement,document.captureElement=null,d.disconnect();var n=document.getElementById("noVNC_mouse_capture_elem");n.style.display="none",window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",m)}}},vg9a:function(k,D,i){},"vk+C":function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("RZPm"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},w4Tj:function(k,D,i){"use strict";i.d(D,"a",function(){return S});var y=i("oZsa");function p(A,m){for(;!Object.prototype.hasOwnProperty.call(A,m)&&!(A=Object(y.a)(A),A===null););return A}function S(A,m,f){return typeof Reflect!="undefined"&&Reflect.get?S=Reflect.get:S=function(l,o,n){var t=p(l,o);if(!t)return;var a=Object.getOwnPropertyDescriptor(t,o);return a.get?a.get.call(n):a.value},S(A,m,f||A)}},w5pM:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("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"},A=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:A}))};f.displayName="PlusCircleOutlined";var d=D.a=p.forwardRef(f)},w6Tc:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("apAg"));function p(A){return A&&A.__esModule?A:{default:A}}var S=y;D.default=S,k.exports=S},w7YG:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("ETIr"),i("cv67"),i("K3mO"),i("OLod"))})(this,function(y){return function(){var p=y,S=p.lib,A=S.StreamCipher,m=p.algo,f=m.RC4=A.extend({_doReset:function(){for(var n=this._key,t=n.words,a=n.sigBytes,e=this._S=[],u=0;u<256;u++)e[u]=u;for(var u=0,r=0;u<256;u++){var s=u%a,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(n,t){n[t]^=d.call(this)},keySize:256/32,ivSize:0});function d(){for(var o=this._S,n=this._i,t=this._j,a=0,e=0;e<4;e++){n=(n+1)%256,t=(t+o[n])%256;var u=o[n];o[n]=o[t],o[t]=u,a|=o[(o[n]+o[t])%256]<<24-e*8}return this._i=n,this._j=t,a}p.RC4=A._createHelper(f);var l=m.RC4Drop=f.extend({cfg:f.cfg.extend({drop:192}),_doReset:function(){f._doReset.call(this);for(var n=this.cfg.drop;n>0;n--)d.call(this)}});p.RC4Drop=A._createHelper(l)}(),y.RC4})},wCAj:function(k,D,i){"use strict";var y=i("cDf5"),p=i.n(y),S=i("lSNA"),A=i.n(S),m=i("J4zp"),f=i.n(m),d=i("pVnL"),l=i.n(d),o=i("q1tI"),n=i("TSYQ"),t=i.n(n),a=i("BGR+"),e=i("rePB"),u=i("VTBJ"),r=i("KQm4"),s=i("U8pU"),c=i("ODXe"),h=i("Gytx"),g=i.n(h),v=i("Kwbf"),b=i("1OyB"),w=i("vuIU"),x=i("Ji7U"),T=i("LK+K"),O=i("m+aA"),E=i("Zm9Q"),C=i("c+Xe"),I=i("bdgK"),_="rc-observer-key",F=function(kt){Object(x.a)(Nr,kt);var _r=Object(T.a)(Nr);function Nr(){var Jr;return Object(b.a)(this,Nr),Jr=_r.apply(this,arguments),Jr.resizeObserver=null,Jr.childNode=null,Jr.currentElement=null,Jr.state={width:0,height:0,offsetHeight:0,offsetWidth:0},Jr.onResize=function(xn){var Tn=Jr.props.onResize,wn=xn[0].target,$n=wn.getBoundingClientRect(),Vn=$n.width,mi=$n.height,Ri=wn.offsetWidth,vi=wn.offsetHeight,Bi=Math.floor(Vn),Gi=Math.floor(mi);if(Jr.state.width!==Bi||Jr.state.height!==Gi||Jr.state.offsetWidth!==Ri||Jr.state.offsetHeight!==vi){var ta={width:Bi,height:Gi,offsetWidth:Ri,offsetHeight:vi};Jr.setState(ta),Tn&&Promise.resolve().then(function(){Tn(Object(u.a)(Object(u.a)({},ta),{},{offsetWidth:Ri,offsetHeight:vi}))})}},Jr.setChildNode=function(xn){Jr.childNode=xn},Jr}return Object(w.a)(Nr,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){var xn=this.props.disabled;if(xn){this.destroyObserver();return}var Tn=Object(O.a)(this.childNode||this),wn=Tn!==this.currentElement;wn&&(this.destroyObserver(),this.currentElement=Tn),!this.resizeObserver&&Tn&&(this.resizeObserver=new I.default(this.onResize),this.resizeObserver.observe(Tn))}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var xn=this.props.children,Tn=Object(E.a)(xn);if(Tn.length>1)Object(v.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(Tn.length===0)return Object(v.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var wn=Tn[0];if(o.isValidElement(wn)&&Object(C.c)(wn)){var $n=wn.ref;Tn[0]=o.cloneElement(wn,{ref:Object(C.a)($n,this.setChildNode)})}return Tn.length===1?Tn[0]:Tn.map(function(Vn,mi){return!o.isValidElement(Vn)||"key"in Vn&&Vn.key!==null?Vn:o.cloneElement(Vn,{key:"".concat(_,"-").concat(mi)})})}}]),Nr}(o.Component);F.displayName="ResizeObserver";var R=F,B=i("qx4F");function M(kt){return null}var X=M;function P(kt){return null}var z=P,W=i("Ff2n"),U="RC_TABLE_KEY";function V(kt){return kt==null?[]:Array.isArray(kt)?kt:[kt]}function Q(kt,_r){if(!_r&&typeof _r!="number")return kt;for(var Nr=V(_r),Jr=kt,xn=0;xn<Nr.length;xn+=1){if(!Jr)return null;var Tn=Nr[xn];Jr=Jr[Tn]}return Jr}function G(kt){var _r=[],Nr={};return kt.forEach(function(Jr){for(var xn=Jr||{},Tn=xn.key,wn=xn.dataIndex,$n=Tn||V(wn).join("-")||U;Nr[$n];)$n="".concat($n,"_next");Nr[$n]=!0,_r.push($n)}),_r}function te(){var kt={};function _r(Tn,wn){wn&&Object.keys(wn).forEach(function($n){var Vn=wn[$n];Vn&&Object(s.a)(Vn)==="object"?(Tn[$n]=Tn[$n]||{},_r(Tn[$n],Vn)):Tn[$n]=Vn})}for(var Nr=arguments.length,Jr=new Array(Nr),xn=0;xn<Nr;xn++)Jr[xn]=arguments[xn];return Jr.forEach(function(Tn){_r(kt,Tn)}),kt}function $(kt){return kt!=null}function le(kt){return kt&&Object(s.a)(kt)==="object"&&!Array.isArray(kt)&&!o.isValidElement(kt)}function re(kt){return typeof kt=="string"?!0:Object(C.c)(kt)}function Se(kt,_r){var Nr,Jr=kt.prefixCls,xn=kt.className,Tn=kt.record,wn=kt.index,$n=kt.dataIndex,Vn=kt.render,mi=kt.children,Ri=kt.component,vi=Ri===void 0?"td":Ri,Bi=kt.colSpan,Gi=kt.rowSpan,ta=kt.fixLeft,Pi=kt.fixRight,Ki=kt.firstFixLeft,Hi=kt.lastFixLeft,Qi=kt.firstFixRight,da=kt.lastFixRight,Oa=kt.appendNode,ra=kt.additionalProps,Da=ra===void 0?{}:ra,Ra=kt.ellipsis,va=kt.align,ga=kt.rowType,_a=kt.isSticky,ya="".concat(Jr,"-cell"),Ga,Ia;if(mi)Ia=mi;else{var Wa=Q(Tn,$n);if(Ia=Wa,Vn){var no=Vn(Wa,Tn,wn);le(no)?(Ia=no.children,Ga=no.props):Ia=no}}Object(s.a)(Ia)==="object"&&!Array.isArray(Ia)&&!o.isValidElement(Ia)&&(Ia=null),Ra&&(Hi||Qi)&&(Ia=o.createElement("span",{className:"".concat(ya,"-content")},Ia));var io=Ga||{},uo=io.colSpan,$i=io.rowSpan,mo=io.style,Eo=io.className,ao=Object(W.a)(io,["colSpan","rowSpan","style","className"]),Co=uo!==void 0?uo:Bi,Ko=$i!==void 0?$i:Gi;if(Co===0||Ko===0)return null;var to={},Qo=typeof ta=="number",bo=typeof Pi=="number";Qo&&(to.position="sticky",to.left=ta),bo&&(to.position="sticky",to.right=Pi);var xo={};va&&(xo.textAlign=va);var ts,ka=Ra===!0?{showTitle:!0}:Ra;ka&&(ka.showTitle||ga==="header")&&(typeof Ia=="string"||typeof Ia=="number"?ts=Ia.toString():o.isValidElement(Ia)&&typeof Ia.props.children=="string"&&(ts=Ia.props.children));var Io=Object(u.a)(Object(u.a)(Object(u.a)({title:ts},ao),Da),{},{colSpan:Co&&Co!==1?Co:null,rowSpan:Ko&&Ko!==1?Ko:null,className:t()(ya,xn,(Nr={},Object(e.a)(Nr,"".concat(ya,"-fix-left"),Qo),Object(e.a)(Nr,"".concat(ya,"-fix-left-first"),Ki),Object(e.a)(Nr,"".concat(ya,"-fix-left-last"),Hi),Object(e.a)(Nr,"".concat(ya,"-fix-right"),bo),Object(e.a)(Nr,"".concat(ya,"-fix-right-first"),Qi),Object(e.a)(Nr,"".concat(ya,"-fix-right-last"),da),Object(e.a)(Nr,"".concat(ya,"-ellipsis"),Ra),Object(e.a)(Nr,"".concat(ya,"-with-append"),Oa),Object(e.a)(Nr,"".concat(ya,"-fix-sticky"),(Qo||bo)&&_a),Nr),Da.className,Eo),style:Object(u.a)(Object(u.a)(Object(u.a)(Object(u.a)({},Da.style),xo),to),mo),ref:re(vi)?_r:null});return o.createElement(vi,Object.assign({},Io),Oa,Ia)}var Re=o.forwardRef(Se);Re.displayName="Cell";var Pe=o.memo(Re,function(kt,_r){return _r.shouldCellUpdate?!_r.shouldCellUpdate(_r.record,kt.record):!1}),Je=Pe,Ve=o.createContext(null),ct=Ve;function Ue(kt,_r,Nr,Jr,xn){var Tn=Nr[kt]||{},wn=Nr[_r]||{},$n,Vn;Tn.fixed==="left"?$n=Jr.left[kt]:wn.fixed==="right"&&(Vn=Jr.right[_r]);var mi=!1,Ri=!1,vi=!1,Bi=!1,Gi=Nr[_r+1],ta=Nr[kt-1];if(xn==="rtl"){if($n!==void 0){var Pi=ta&&ta.fixed==="left";Bi=!Pi}else if(Vn!==void 0){var Ki=Gi&&Gi.fixed==="right";vi=!Ki}}else if($n!==void 0){var Hi=Gi&&Gi.fixed==="left";mi=!Hi}else if(Vn!==void 0){var Qi=ta&&ta.fixed==="right";Ri=!Qi}return{fixLeft:$n,fixRight:Vn,lastFixLeft:mi,firstFixRight:Ri,lastFixRight:vi,firstFixLeft:Bi,isSticky:Jr.isSticky}}function ue(kt){var _r=kt.cells,Nr=kt.stickyOffsets,Jr=kt.flattenColumns,xn=kt.rowComponent,Tn=kt.cellComponent,wn=kt.onHeaderRow,$n=kt.index,Vn=o.useContext(ct),mi=Vn.prefixCls,Ri=Vn.direction,vi;wn&&(vi=wn(_r.map(function(Gi){return Gi.column}),$n));var Bi=G(_r.map(function(Gi){return Gi.column}));return o.createElement(xn,Object.assign({},vi),_r.map(function(Gi,ta){var Pi=Gi.column,Ki=Ue(Gi.colStart,Gi.colEnd,Jr,Nr,Ri),Hi;return Pi&&Pi.onHeaderCell&&(Hi=Gi.column.onHeaderCell(Pi)),o.createElement(Je,Object.assign({},Gi,{ellipsis:Pi.ellipsis,align:Pi.align,component:Tn,prefixCls:mi,key:Bi[ta]},Ki,{additionalProps:Hi,rowType:"header"}))}))}ue.displayName="HeaderRow";var rt=ue;function ge(kt){var _r=[];function Nr(wn,$n){var Vn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;_r[Vn]=_r[Vn]||[];var mi=$n,Ri=wn.filter(Boolean).map(function(vi){var Bi={key:vi.key,className:vi.className||"",children:vi.title,column:vi,colStart:mi},Gi=1,ta=vi.children;return ta&&ta.length>0&&(Gi=Nr(ta,mi,Vn+1).reduce(function(Pi,Ki){return Pi+Ki},0),Bi.hasSubColumns=!0),"colSpan"in vi&&(Gi=vi.colSpan),"rowSpan"in vi&&(Bi.rowSpan=vi.rowSpan),Bi.colSpan=Gi,Bi.colEnd=Bi.colStart+Gi-1,_r[Vn].push(Bi),mi+=Gi,Gi});return Ri}Nr(kt,0);for(var Jr=_r.length,xn=function($n){_r[$n].forEach(function(Vn){!("rowSpan"in Vn)&&!Vn.hasSubColumns&&(Vn.rowSpan=Jr-$n)})},Tn=0;Tn<Jr;Tn+=1)xn(Tn);return _r}function Z(kt){var _r=kt.stickyOffsets,Nr=kt.columns,Jr=kt.flattenColumns,xn=kt.onHeaderRow,Tn=o.useContext(ct),wn=Tn.prefixCls,$n=Tn.getComponent,Vn=o.useMemo(function(){return ge(Nr)},[Nr]),mi=$n(["header","wrapper"],"thead"),Ri=$n(["header","row"],"tr"),vi=$n(["header","cell"],"th");return o.createElement(mi,{className:"".concat(wn,"-thead")},Vn.map(function(Bi,Gi){var ta=o.createElement(rt,{key:Gi,flattenColumns:Jr,cells:Bi,stickyOffsets:_r,rowComponent:Ri,cellComponent:vi,onHeaderRow:xn,index:Gi});return ta}))}var Y=Z,ee="RC_TABLE_INTERNAL_COL_DEFINE";function fe(kt){var _r=kt.expandable,Nr=Object(W.a)(kt,["expandable"]);return"expandable"in kt?Object(u.a)(Object(u.a)({},Nr),_r):Nr}function be(kt){return Object.keys(kt).reduce(function(_r,Nr){return(Nr.substr(0,5)==="data-"||Nr.substr(0,5)==="aria-")&&(_r[Nr]=kt[Nr]),_r},{})}function Ce(kt){for(var _r=kt.colWidths,Nr=kt.columns,Jr=kt.columCount,xn=[],Tn=Jr||Nr.length,wn=!1,$n=Tn-1;$n>=0;$n-=1){var Vn=_r[$n],mi=Nr&&Nr[$n],Ri=mi&&mi[ee];(Vn||Ri||wn)&&(xn.unshift(o.createElement("col",Object.assign({key:$n,style:{width:Vn,minWidth:Vn}},Ri))),wn=!0)}return o.createElement("colgroup",null,xn)}var Te=Ce;function he(kt,_r){return Object(o.useMemo)(function(){for(var Nr=[],Jr=0;Jr<_r;Jr+=1){var xn=kt[Jr];if(xn!==void 0)Nr[Jr]=xn;else return null}return Nr},[kt.join("_"),_r])}var ye=o.forwardRef(function(kt,_r){var Nr=kt.noData,Jr=kt.columns,xn=kt.flattenColumns,Tn=kt.colWidths,wn=kt.columCount,$n=kt.stickyOffsets,Vn=kt.direction,mi=kt.fixHeader,Ri=kt.offsetHeader,vi=kt.stickyClassName,Bi=kt.onScroll,Gi=Object(W.a)(kt,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),ta=o.useContext(ct),Pi=ta.prefixCls,Ki=ta.scrollbarSize,Hi=ta.isSticky,Qi=Hi&&!mi?0:Ki,da=o.useRef(null),Oa=o.useCallback(function(ya){Object(C.b)(_r,ya),Object(C.b)(da,ya)},[]);o.useEffect(function(){var ya;function Ga(Ia){var Wa=Ia.currentTarget,no=Ia.deltaX;no&&(Bi({currentTarget:Wa,scrollLeft:Wa.scrollLeft+no}),Ia.preventDefault())}return(ya=da.current)===null||ya===void 0||ya.addEventListener("wheel",Ga),function(){var Ia;(Ia=da.current)===null||Ia===void 0||Ia.removeEventListener("wheel",Ga)}},[]);var ra=xn[xn.length-1],Da={fixed:ra?ra.fixed:null,onHeaderCell:function(){return{className:"".concat(Pi,"-cell-scrollbar")}}},Ra=Object(o.useMemo)(function(){return Qi?[].concat(Object(r.a)(Jr),[Da]):Jr},[Qi,Jr]),va=Object(o.useMemo)(function(){return Qi?[].concat(Object(r.a)(xn),[Da]):xn},[Qi,xn]),ga=Object(o.useMemo)(function(){var ya=$n.right,Ga=$n.left;return Object(u.a)(Object(u.a)({},$n),{},{left:Vn==="rtl"?[].concat(Object(r.a)(Ga.map(function(Ia){return Ia+Qi})),[0]):Ga,right:Vn==="rtl"?ya:[].concat(Object(r.a)(ya.map(function(Ia){return Ia+Qi})),[0]),isSticky:Hi})},[Qi,$n,Hi]),_a=he(Tn,wn);return o.createElement("div",{style:Object(u.a)({overflow:"hidden"},Hi?{top:Ri}:{}),ref:Oa,className:t()("".concat(Pi,"-header"),Object(e.a)({},vi,!!vi))},o.createElement("table",{style:{tableLayout:"fixed",visibility:Nr||_a?null:"hidden"}},o.createElement(Te,{colWidths:_a?[].concat(Object(r.a)(_a),[Qi]):[],columCount:wn+1,columns:va}),o.createElement(Y,Object.assign({},Gi,{stickyOffsets:ga,columns:Ra,flattenColumns:va}))))});ye.displayName="FixedHeader";var Ie=ye,tt=o.createContext(null),pt=tt;function st(kt){var _r=kt.prefixCls,Nr=kt.children,Jr=kt.component,xn=kt.cellComponent,Tn=kt.fixHeader,wn=kt.fixColumn,$n=kt.horizonScroll,Vn=kt.className,mi=kt.expanded,Ri=kt.componentWidth,vi=kt.colSpan,Bi=o.useContext(ct),Gi=Bi.scrollbarSize;return o.useMemo(function(){var ta=Nr;return wn&&(ta=o.createElement("div",{style:{width:Ri-(Tn?Gi:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(_r,"-expanded-row-fixed")},ta)),o.createElement(Jr,{className:Vn,style:{display:mi?null:"none"}},o.createElement(Je,{component:xn,prefixCls:_r,colSpan:vi},ta))},[Nr,Jr,Tn,$n,Vn,mi,Ri,vi,Gi])}var Fe=st;function ft(kt){var _r=kt.className,Nr=kt.style,Jr=kt.record,xn=kt.index,Tn=kt.rowKey,wn=kt.getRowKey,$n=kt.rowExpandable,Vn=kt.expandedKeys,mi=kt.onRow,Ri=kt.indent,vi=Ri===void 0?0:Ri,Bi=kt.rowComponent,Gi=kt.cellComponent,ta=kt.childrenColumnName,Pi=o.useContext(ct),Ki=Pi.prefixCls,Hi=Pi.fixedInfoList,Qi=o.useContext(pt),da=Qi.fixHeader,Oa=Qi.fixColumn,ra=Qi.horizonScroll,Da=Qi.componentWidth,Ra=Qi.flattenColumns,va=Qi.expandableType,ga=Qi.expandRowByClick,_a=Qi.onTriggerExpand,ya=Qi.rowClassName,Ga=Qi.expandedRowClassName,Ia=Qi.indentSize,Wa=Qi.expandIcon,no=Qi.expandedRowRender,io=Qi.expandIconColumnIndex,uo=o.useState(!1),$i=Object(c.a)(uo,2),mo=$i[0],Eo=$i[1],ao=Vn&&Vn.has(kt.recordKey);o.useEffect(function(){ao&&Eo(!0)},[ao]);var Co=va==="row"&&(!$n||$n(Jr)),Ko=va==="nest",to=ta&&Jr&&Jr[ta],Qo=Co||Ko,bo;mi&&(bo=mi(Jr,xn));var xo=function(Lo){if(ga&&Qo&&_a(Jr,Lo),bo&&bo.onClick){for(var ho,ja=arguments.length,mt=new Array(ja>1?ja-1:0),Cr=1;Cr<ja;Cr++)mt[Cr-1]=arguments[Cr];(ho=bo).onClick.apply(ho,[Lo].concat(mt))}},ts;typeof ya=="string"?ts=ya:typeof ya=="function"&&(ts=ya(Jr,xn,vi));var ka=G(Ra),Io=o.createElement(Bi,Object.assign({},bo,{"data-row-key":Tn,className:t()(_r,"".concat(Ki,"-row"),"".concat(Ki,"-row-level-").concat(vi),ts,bo&&bo.className),style:Object(u.a)(Object(u.a)({},Nr),bo?bo.style:null),onClick:xo}),Ra.map(function(Vo,Lo){var ho=Vo.render,ja=Vo.dataIndex,mt=Vo.className,Cr=ka[Lo],tn=Hi[Lo],Yr;Lo===(io||0)&&Ko&&(Yr=o.createElement(o.Fragment,null,o.createElement("span",{style:{paddingLeft:"".concat(Ia*vi,"px")},className:"".concat(Ki,"-row-indent indent-level-").concat(vi)}),Wa({prefixCls:Ki,expanded:ao,expandable:to,record:Jr,onExpand:_a})));var Xn;return Vo.onCell&&(Xn=Vo.onCell(Jr,xn)),o.createElement(Je,Object.assign({className:mt,ellipsis:Vo.ellipsis,align:Vo.align,component:Gi,prefixCls:Ki,key:Cr,record:Jr,index:xn,dataIndex:ja,render:ho,shouldCellUpdate:Vo.shouldCellUpdate},tn,{appendNode:Yr,additionalProps:Xn}))})),Mo;if(Co&&(mo||ao)){var is=no(Jr,xn,vi+1,ao),To=Ga&&Ga(Jr,xn,vi);Mo=o.createElement(Fe,{expanded:ao,className:t()("".concat(Ki,"-expanded-row"),"".concat(Ki,"-expanded-row-level-").concat(vi+1),To),prefixCls:Ki,fixHeader:da,fixColumn:Oa,horizonScroll:ra,component:Bi,componentWidth:Da,cellComponent:Gi,colSpan:Ra.length},is)}var Zo;return to&&ao&&(Zo=(Jr[ta]||[]).map(function(Vo,Lo){var ho=wn(Vo,Lo);return o.createElement(ft,Object.assign({},kt,{key:ho,rowKey:ho,record:Vo,recordKey:ho,index:Lo,indent:vi+1}))})),o.createElement(o.Fragment,null,Io,Mo,Zo)}ft.displayName="BodyRow";var et=ft,wt=o.createContext(null),Ht=wt;function Dt(kt){var _r=kt.columnKey,Nr=kt.onColumnResize,Jr=o.useRef();return o.useEffect(function(){Jr.current&&Nr(_r,Jr.current.offsetWidth)},[]),o.createElement(R,{onResize:function(Tn){var wn=Tn.offsetWidth;Nr(_r,wn)}},o.createElement("td",{ref:Jr,style:{padding:0,border:0,height:0}},o.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Tt(kt){var _r=kt.data,Nr=kt.getRowKey,Jr=kt.measureColumnWidth,xn=kt.expandedKeys,Tn=kt.onRow,wn=kt.rowExpandable,$n=kt.emptyNode,Vn=kt.childrenColumnName,mi=o.useContext(Ht),Ri=mi.onColumnResize,vi=o.useContext(ct),Bi=vi.prefixCls,Gi=vi.getComponent,ta=o.useContext(pt),Pi=ta.fixHeader,Ki=ta.horizonScroll,Hi=ta.flattenColumns,Qi=ta.componentWidth;return o.useMemo(function(){var da=Gi(["body","wrapper"],"tbody"),Oa=Gi(["body","row"],"tr"),ra=Gi(["body","cell"],"td"),Da;_r.length?Da=_r.map(function(va,ga){var _a=Nr(va,ga);return o.createElement(et,{key:_a,rowKey:_a,record:va,recordKey:_a,index:ga,rowComponent:Oa,cellComponent:ra,expandedKeys:xn,onRow:Tn,getRowKey:Nr,rowExpandable:wn,childrenColumnName:Vn})}):Da=o.createElement(Fe,{expanded:!0,className:"".concat(Bi,"-placeholder"),prefixCls:Bi,fixHeader:Pi,fixColumn:Ki,horizonScroll:Ki,component:Oa,componentWidth:Qi,cellComponent:ra,colSpan:Hi.length},$n);var Ra=G(Hi);return o.createElement(da,{className:"".concat(Bi,"-tbody")},Jr&&o.createElement("tr",{"aria-hidden":"true",className:"".concat(Bi,"-measure-row"),style:{height:0}},Ra.map(function(va){return o.createElement(Dt,{key:va,columnKey:va,onColumnResize:Ri})})),Da)},[_r,Bi,Tn,Jr,xn,Nr,Gi,Qi,$n,Hi])}var Bt=o.memo(Tt);Bt.displayName="Body";var Ke=Bt;function de(kt){return Object(E.a)(kt).filter(function(_r){return o.isValidElement(_r)}).map(function(_r){var Nr=_r.key,Jr=_r.props,xn=Jr.children,Tn=Object(W.a)(Jr,["children"]),wn=Object(u.a)({key:Nr},Tn);return xn&&(wn.children=de(xn)),wn})}function oe(kt){return kt.reduce(function(_r,Nr){var Jr=Nr.fixed,xn=Jr===!0?"left":Jr,Tn=Nr.children;return Tn&&Tn.length>0?[].concat(Object(r.a)(_r),Object(r.a)(oe(Tn).map(function(wn){return Object(u.a)({fixed:xn},wn)}))):[].concat(Object(r.a)(_r),[Object(u.a)(Object(u.a)({},Nr),{},{fixed:xn})])},[])}function lt(kt){for(var _r=!0,Nr=0;Nr<kt.length;Nr+=1){var Jr=kt[Nr];if(_r&&Jr.fixed!=="left")_r=!1;else if(!_r&&Jr.fixed==="left"){Object(v.a)(!1,"Index ".concat(Nr-1," of `columns` missing `fixed='left'` prop."));break}}for(var xn=!0,Tn=kt.length-1;Tn>=0;Tn-=1){var wn=kt[Tn];if(xn&&wn.fixed!=="right")xn=!1;else if(!xn&&wn.fixed==="right"){Object(v.a)(!1,"Index ".concat(Tn+1," of `columns` missing `fixed='right'` prop."));break}}}function qe(kt){return kt.map(function(_r){var Nr=_r.fixed,Jr=Object(W.a)(_r,["fixed"]),xn=Nr;return Nr==="left"?xn="right":Nr==="right"&&(xn="left"),Object(u.a)({fixed:xn},Jr)})}function pe(kt,_r){var Nr=kt.prefixCls,Jr=kt.columns,xn=kt.children,Tn=kt.expandable,wn=kt.expandedKeys,$n=kt.getRowKey,Vn=kt.onTriggerExpand,mi=kt.expandIcon,Ri=kt.rowExpandable,vi=kt.expandIconColumnIndex,Bi=kt.direction,Gi=kt.expandRowByClick,ta=o.useMemo(function(){return Jr||de(xn)},[Jr,xn]),Pi=o.useMemo(function(){if(Tn){var Qi,da=vi||0,Oa=ta[da],ra=(Qi={},Object(e.a)(Qi,ee,{className:"".concat(Nr,"-expand-icon-col")}),Object(e.a)(Qi,"title",""),Object(e.a)(Qi,"fixed",Oa?Oa.fixed:null),Object(e.a)(Qi,"className","".concat(Nr,"-row-expand-icon-cell")),Object(e.a)(Qi,"render",function(va,ga,_a){var ya=$n(ga,_a),Ga=wn.has(ya),Ia=Ri?Ri(ga):!0,Wa=mi({prefixCls:Nr,expanded:Ga,expandable:Ia,record:ga,onExpand:Vn});return Gi?o.createElement("span",{onClick:function(io){return io.stopPropagation()}},Wa):Wa}),Qi),Da=ta.slice();return da>=0&&Da.splice(da,0,ra),Da}return ta},[Tn,ta,$n,wn,mi,Bi]),Ki=o.useMemo(function(){var Qi=Pi;return _r&&(Qi=_r(Qi)),Qi.length||(Qi=[{render:function(){return null}}]),Qi},[_r,Pi,Bi]),Hi=o.useMemo(function(){return Bi==="rtl"?qe(oe(Ki)):oe(Ki)},[Ki,Bi]);return[Ki,Hi]}var Kt=pe,hr=i("xEkU"),gt=i.n(hr);function nr(kt){var _r=Object(o.useRef)(kt),Nr=Object(o.useState)({}),Jr=Object(c.a)(Nr,2),xn=Jr[1],Tn=Object(o.useRef)(null),wn=Object(o.useRef)([]);function $n(Vn){Tn.current===null&&(wn.current=[],Tn.current=gt()(function(){wn.current.forEach(function(mi){_r.current=mi(_r.current)}),Tn.current=null,xn({})})),wn.current.push(Vn)}return Object(o.useEffect)(function(){return function(){gt.a.cancel(Tn.current)}},[]),[_r.current,$n]}function mr(kt){var _r=Object(o.useRef)(kt),Nr=Object(o.useRef)(null);function Jr(){window.clearTimeout(Nr.current)}function xn(wn){_r.current=wn,Jr(),Nr.current=window.setTimeout(function(){_r.current=null,Nr.current=null},100)}function Tn(){return _r.current}return Object(o.useEffect)(function(){return Jr},[]),[xn,Tn]}function cn(kt,_r,Nr){var Jr=Object(o.useMemo)(function(){for(var xn=[],Tn=[],wn=0,$n=0,Vn=0;Vn<_r;Vn+=1)if(Nr==="rtl"){Tn[Vn]=$n,$n+=kt[Vn]||0;var mi=_r-Vn-1;xn[mi]=wn,wn+=kt[mi]||0}else{xn[Vn]=wn,wn+=kt[Vn]||0;var Ri=_r-Vn-1;Tn[Ri]=$n,$n+=kt[Ri]||0}return{left:xn,right:Tn}},[kt,_r,Nr]);return Jr}var Ar=cn;function xr(kt){var _r=kt.className,Nr=kt.children;return o.createElement("div",{className:_r},Nr)}var qt=xr;function ar(kt){var _r=kt.className,Nr=kt.index,Jr=kt.children,xn=kt.colSpan,Tn=kt.rowSpan,wn=o.useContext(ct),$n=wn.prefixCls,Vn=wn.fixedInfoList,mi=Vn[Nr];return o.createElement(Je,Object.assign({className:_r,index:Nr,component:"td",prefixCls:$n,record:null,dataIndex:null,render:function(){return{children:Jr,props:{colSpan:xn,rowSpan:Tn}}}},mi))}function Et(kt){return o.createElement("tr",Object.assign({},kt))}function en(kt){var _r=kt.children,Nr=o.useContext(ct),Jr=Nr.prefixCls;return o.createElement("tfoot",{className:"".concat(Jr,"-summary")},_r)}var Mn=en,Yn={Cell:ar,Row:Et};function ci(kt){var _r,Nr=kt.prefixCls,Jr=kt.record,xn=kt.onExpand,Tn=kt.expanded,wn=kt.expandable,$n="".concat(Nr,"-row-expand-icon");if(!wn)return o.createElement("span",{className:t()($n,"".concat(Nr,"-row-spaced"))});var Vn=function(Ri){xn(Jr,Ri),Ri.stopPropagation()};return o.createElement("span",{className:t()($n,(_r={},Object(e.a)(_r,"".concat(Nr,"-row-expanded"),Tn),Object(e.a)(_r,"".concat(Nr,"-row-collapsed"),!Tn),_r)),onClick:Vn})}function Vi(kt,_r,Nr){var Jr=[];function xn(Tn){(Tn||[]).forEach(function(wn,$n){Jr.push(_r(wn,$n)),xn(wn[Nr])})}return xn(kt),Jr}var jn=i("zT1h"),Qn=i("y0+3"),$t=function(_r,Nr){var Jr,xn,Tn=_r.scrollBodyRef,wn=_r.onScroll,$n=_r.offsetScroll,Vn=o.useContext(ct),mi=Vn.prefixCls,Ri=((Jr=Tn.current)===null||Jr===void 0?void 0:Jr.scrollWidth)||0,vi=((xn=Tn.current)===null||xn===void 0?void 0:xn.clientWidth)||0,Bi=Ri&&vi*(vi/Ri),Gi=o.useRef(),ta=nr({scrollLeft:0,isHiddenScrollBar:!1}),Pi=Object(c.a)(ta,2),Ki=Pi[0],Hi=Pi[1],Qi=o.useRef({delta:0,x:0}),da=o.useState(!1),Oa=Object(c.a)(da,2),ra=Oa[0],Da=Oa[1],Ra=function(){Da(!1)},va=function(Ia){Ia.persist(),Qi.current.delta=Ia.pageX-Ki.scrollLeft,Qi.current.x=0,Da(!0),Ia.preventDefault()},ga=function(Ia){var Wa,no=Ia||((Wa=window)===null||Wa===void 0?void 0:Wa.event),io=no.buttons;if(!ra||io===0){ra&&Da(!1);return}var uo=Qi.current.x+Ia.pageX-Qi.current.x-Qi.current.delta;uo<=0&&(uo=0),uo+Bi>=vi&&(uo=vi-Bi),wn({scrollLeft:uo/vi*(Ri+2)}),Qi.current.x=Ia.pageX},_a=function(){var Ia=Object(Qn.b)(Tn.current).top,Wa=Ia+Tn.current.offsetHeight,no=document.documentElement.scrollTop+window.innerHeight;Wa-Object(B.a)()<=no||Ia>=no-$n?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})})},ya=function(Ia){Hi(function(Wa){return Object(u.a)(Object(u.a)({},Wa),{},{scrollLeft:Ia/Ri*vi||0})})};return o.useImperativeHandle(Nr,function(){return{setScrollLeft:ya}}),o.useEffect(function(){var Ga=Object(jn.a)(document.body,"mouseup",Ra,!1),Ia=Object(jn.a)(document.body,"mousemove",ga,!1);return _a(),function(){Ga.remove(),Ia.remove()}},[Bi,ra]),o.useEffect(function(){var Ga=Object(jn.a)(window,"scroll",_a,!1),Ia=Object(jn.a)(window,"resize",_a,!1);return function(){Ga.remove(),Ia.remove()}},[]),o.useEffect(function(){Ki.isHiddenScrollBar||Hi(function(Ga){var Ia,Wa;return Object(u.a)(Object(u.a)({},Ga),{},{scrollLeft:Tn.current.scrollLeft/((Ia=Tn.current)===null||Ia===void 0?void 0:Ia.scrollWidth)*((Wa=Tn.current)===null||Wa===void 0?void 0:Wa.clientWidth)})})},[Ki.isHiddenScrollBar]),Ri<=vi||!Bi||Ki.isHiddenScrollBar?null:o.createElement("div",{style:{height:Object(B.a)(),width:vi,bottom:$n},className:"".concat(mi,"-sticky-scroll")},o.createElement("div",{onMouseDown:va,ref:Gi,className:t()("".concat(mi,"-sticky-scroll-bar"),Object(e.a)({},"".concat(mi,"-sticky-scroll-bar-active"),ra)),style:{width:"".concat(Bi,"px"),transform:"translate3d(".concat(Ki.scrollLeft,"px, 0, 0)")}}))},Ot=o.forwardRef($t);function ke(kt,_r){return o.useMemo(function(){var Nr=!!kt;return{isSticky:Nr,stickyClassName:Nr?"".concat(_r,"-sticky-header"):"",offsetHeader:Object(s.a)(kt)==="object"&&kt.offsetHeader||0,offsetScroll:Object(s.a)(kt)==="object"&&kt.offsetScroll||0}},[kt,_r])}var Me=[],Be={},at="rc-table-internal-hook",At=o.memo(function(kt){var _r=kt.children;return _r},function(kt,_r){return g()(kt.props,_r.props)?kt.pingLeft!==_r.pingLeft||kt.pingRight!==_r.pingRight:!1});function Ct(kt){var _r,Nr=kt.prefixCls,Jr=kt.className,xn=kt.rowClassName,Tn=kt.style,wn=kt.data,$n=kt.rowKey,Vn=kt.scroll,mi=kt.tableLayout,Ri=kt.direction,vi=kt.title,Bi=kt.footer,Gi=kt.summary,ta=kt.id,Pi=kt.showHeader,Ki=kt.components,Hi=kt.emptyText,Qi=kt.onRow,da=kt.onHeaderRow,Oa=kt.internalHooks,ra=kt.transformColumns,Da=kt.internalRefs,Ra=kt.sticky,va=wn||Me,ga=!!va.length,_a=o.useState(0),ya=Object(c.a)(_a,2),Ga=ya[0],Ia=ya[1];o.useEffect(function(){Ia(Object(B.a)())});var Wa=o.useMemo(function(){return te(Ki,{})},[Ki]),no=o.useCallback(function(Go,Do){return Q(Wa,Go)||Do},[Wa]),io=o.useMemo(function(){return typeof $n=="function"?$n:function(Go){var Do=Go&&Go[$n];return Do}},[$n]),uo=fe(kt),$i=uo.expandIcon,mo=uo.expandedRowKeys,Eo=uo.defaultExpandedRowKeys,ao=uo.defaultExpandAllRows,Co=uo.expandedRowRender,Ko=uo.onExpand,to=uo.onExpandedRowsChange,Qo=uo.expandRowByClick,bo=uo.rowExpandable,xo=uo.expandIconColumnIndex,ts=uo.expandedRowClassName,ka=uo.childrenColumnName,Io=uo.indentSize,Mo=$i||ci,is=ka||"children",To=o.useMemo(function(){return Co?"row":kt.expandable&&Oa===at&&kt.expandable.__PARENT_RENDER_ICON__||va.some(function(Go){return Go&&Object(s.a)(Go)==="object"&&Go[is]})?"nest":!1},[!!Co,va]),Zo=o.useState(function(){return Eo||(ao?Vi(va,io,is):[])}),Vo=Object(c.a)(Zo,2),Lo=Vo[0],ho=Vo[1],ja=o.useMemo(function(){return new Set(mo||Lo||[])},[mo,Lo]),mt=o.useCallback(function(Go){var Do=io(Go,va.indexOf(Go)),Ts,Ns=ja.has(Do);Ns?(ja.delete(Do),Ts=Object(r.a)(ja)):Ts=[].concat(Object(r.a)(ja),[Do]),ho(Ts),Ko&&Ko(!Ns,Go),to&&to(Ts)},[io,ja,va,Ko,to]),Cr=o.useState(0),tn=Object(c.a)(Cr,2),Yr=tn[0],Xn=tn[1],hn=Kt(Object(u.a)(Object(u.a)(Object(u.a)({},kt),uo),{},{expandable:!!Co,expandedKeys:ja,getRowKey:io,onTriggerExpand:mt,expandIcon:Mo,expandIconColumnIndex:xo,direction:Ri}),Oa===at?ra:null),Xr=Object(c.a)(hn,2),ni=Xr[0],nn=Xr[1],Wn=o.useMemo(function(){return{columns:ni,flattenColumns:nn}},[ni,nn]),si=o.useRef(),ui=o.useRef(),ai=o.useRef(),Ei=o.useState(!1),gi=Object(c.a)(Ei,2),Ti=gi[0],_i=gi[1],ia=o.useState(!1),Fi=Object(c.a)(ia,2),fa=Fi[0],za=Fi[1],Ca=nr(new Map),xa=Object(c.a)(Ca,2),Ma=xa[0],Pa=xa[1],Wo=G(nn),Oo=Wo.map(function(Go){return Ma.get(Go)}),pa=o.useMemo(function(){return Oo},[Oo.join("_")]),Sa=Ar(pa,nn.length,Ri),Ea=Vn&&$(Vn.y),Ka=Vn&&$(Vn.x),so=Ka&&nn.some(function(Go){var Do=Go.fixed;return Do}),lo=o.useRef(),wo=ke(Ra,Nr),No=wo.isSticky,cs=wo.offsetHeader,hs=wo.offsetScroll,Bs=wo.stickyClassName,rs,ns,co;Ea&&(ns={overflowY:"scroll",maxHeight:Vn.y}),Ka&&(rs={overflowX:"auto"},Ea||(ns={overflowY:"hidden"}),co={width:Vn.x===!0?"auto":Vn.x,minWidth:"100%"});var oo=o.useCallback(function(Go,Do){Pa(function(Ts){var Ns=new Map(Ts);return Ns.set(Go,Do),Ns})},[]),eo=mr(null),ss=Object(c.a)(eo,2),xs=ss[0],Po=ss[1];function el(Go,Do){if(!Do)return;typeof Do=="function"?Do(Go):Do.scrollLeft!==Go&&(Do.scrollLeft=Go)}var zo=function(Do){var Ts=Do.currentTarget,Ns=Do.scrollLeft,Ao=typeof Ns=="number"?Ns:Ts.scrollLeft,jt=Ts||Be;if(!Po()||Po()===jt){var sr;xs(jt),el(Ao,ui.current),el(Ao,ai.current),el(Ao,(sr=lo.current)===null||sr===void 0?void 0:sr.setScrollLeft)}if(Ts){var _n=Ts.scrollWidth,hi=Ts.clientWidth;_i(Ao>0),za(Ao<_n-hi)}},Jo=function(){ai.current&&zo({currentTarget:ai.current})},ks=function(Do){var Ts=Do.width;Jo(),Xn(si.current?si.current.offsetWidth:Ts)};o.useEffect(function(){return Jo},[]),o.useEffect(function(){Ka&&Jo()},[Ka]),o.useEffect(function(){Oa===at&&Da&&(Da.body.current=ai.current)});var as=no(["table"],"table"),fs=o.useMemo(function(){return mi||(so?Vn.x==="max-content"?"auto":"fixed":Ea||nn.some(function(Go){var Do=Go.ellipsis;return Do})?"fixed":"auto")},[Ea,so,nn,mi]),Sn,Ls={colWidths:pa,columCount:nn.length,stickyOffsets:Sa,onHeaderRow:da,fixHeader:Ea},yl=o.useMemo(function(){return ga?null:typeof Hi=="function"?Hi():Hi},[ga,Hi]),Ks=o.createElement(Ke,{data:va,measureColumnWidth:Ea||Ka||No,expandedKeys:ja,rowExpandable:bo,getRowKey:io,onRow:Qi,emptyNode:yl,childrenColumnName:is}),Ws=o.createElement(Te,{colWidths:nn.map(function(Go){var Do=Go.width;return Do}),columns:nn}),ps=Gi&&o.createElement(Mn,null,Gi(va)),Ms=no(["body"]);if(Ea||No){var Zs;typeof Ms=="function"?(Zs=Ms(va,{scrollbarSize:Ga,ref:ai,onScroll:zo}),Ls.colWidths=nn.map(function(Go,Do){var Ts=Go.width,Ns=Do===ni.length-1?Ts-Ga:Ts;return typeof Ns=="number"&&!Number.isNaN(Ns)?Ns:(Object(v.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0)})):Zs=o.createElement("div",{style:Object(u.a)(Object(u.a)({},rs),ns),onScroll:zo,ref:ai,className:t()("".concat(Nr,"-body"))},o.createElement(as,{style:Object(u.a)(Object(u.a)({},co),{},{tableLayout:fs})},Ws,Ks,ps),No&&o.createElement(Ot,{ref:lo,offsetScroll:hs,scrollBodyRef:ai,onScroll:zo})),Sn=o.createElement(o.Fragment,null,Pi!==!1&&o.createElement(Ie,Object.assign({noData:!va.length},Ls,Wn,{direction:Ri,offsetHeader:cs,stickyClassName:Bs,ref:ui,onScroll:zo})),Zs)}else Sn=o.createElement("div",{style:Object(u.a)(Object(u.a)({},rs),ns),className:t()("".concat(Nr,"-content")),onScroll:zo,ref:ai},o.createElement(as,{style:Object(u.a)(Object(u.a)({},co),{},{tableLayout:fs})},Ws,Pi!==!1&&o.createElement(Y,Object.assign({},Ls,Wn)),Ks,ps));var zs=be(kt),Es=o.createElement("div",Object.assign({className:t()(Nr,Jr,(_r={},Object(e.a)(_r,"".concat(Nr,"-rtl"),Ri==="rtl"),Object(e.a)(_r,"".concat(Nr,"-ping-left"),Ti),Object(e.a)(_r,"".concat(Nr,"-ping-right"),fa),Object(e.a)(_r,"".concat(Nr,"-layout-fixed"),mi==="fixed"),Object(e.a)(_r,"".concat(Nr,"-fixed-header"),Ea),Object(e.a)(_r,"".concat(Nr,"-fixed-column"),so),Object(e.a)(_r,"".concat(Nr,"-scroll-horizontal"),Ka),Object(e.a)(_r,"".concat(Nr,"-has-fix-left"),nn[0]&&nn[0].fixed),Object(e.a)(_r,"".concat(Nr,"-has-fix-right"),nn[nn.length-1]&&nn[nn.length-1].fixed==="right"),_r)),style:Tn,id:ta,ref:si},zs),o.createElement(At,{pingLeft:Ti,pingRight:fa,props:Object(u.a)(Object(u.a)({},kt),{},{stickyOffsets:Sa,mergedExpandedKeys:ja})},vi&&o.createElement(qt,{className:"".concat(Nr,"-title")},vi(va)),o.createElement("div",{className:"".concat(Nr,"-container")},Sn),Bi&&o.createElement(qt,{className:"".concat(Nr,"-footer")},Bi(va))));Ka&&(Es=o.createElement(R,{onResize:ks},Es));var Ds=o.useMemo(function(){return{prefixCls:Nr,getComponent:no,scrollbarSize:Ga,direction:Ri,fixedInfoList:nn.map(function(Go,Do){return Ue(Do,Do,nn,Sa,Ri)}),isSticky:No}},[Nr,no,Ga,Ri,nn,Sa,Ri,No]),tl=o.useMemo(function(){return Object(u.a)(Object(u.a)({},Wn),{},{tableLayout:fs,rowClassName:xn,expandedRowClassName:ts,componentWidth:Yr,fixHeader:Ea,fixColumn:so,horizonScroll:Ka,expandIcon:Mo,expandableType:To,expandRowByClick:Qo,expandedRowRender:Co,onTriggerExpand:mt,expandIconColumnIndex:xo,indentSize:Io})},[Wn,fs,xn,ts,Yr,Ea,so,Ka,Mo,To,Qo,Co,mt,xo,Io]),Us=o.useMemo(function(){return{onColumnResize:oo}},[oo]);return o.createElement(ct.Provider,{value:Ds},o.createElement(pt.Provider,{value:tl},o.createElement(Ht.Provider,{value:Us},Es)))}Ct.Column=z,Ct.ColumnGroup=X,Ct.Summary=Yn,Ct.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var Yt=Ct,Pr=Yt,qr=i("W9HT"),An=i("NUBc"),Gt=i("H84U"),vt=function(kt,_r){var Nr={};for(var Jr in kt)Object.prototype.hasOwnProperty.call(kt,Jr)&&_r.indexOf(Jr)<0&&(Nr[Jr]=kt[Jr]);if(kt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xn=0,Jr=Object.getOwnPropertySymbols(kt);xn<Jr.length;xn++)_r.indexOf(Jr[xn])<0&&Object.prototype.propertyIsEnumerable.call(kt,Jr[xn])&&(Nr[Jr[xn]]=kt[Jr[xn]]);return Nr},bt=10;function fr(kt,_r){var Nr={current:_r.current,pageSize:_r.pageSize},Jr=kt&&p()(kt)==="object"?kt:{};return Object.keys(Jr).forEach(function(xn){var Tn=_r[xn];typeof Tn!="function"&&(Nr[xn]=Tn)}),Nr}function Jt(){for(var kt={},_r=arguments.length,Nr=new Array(_r),Jr=0;Jr<_r;Jr++)Nr[Jr]=arguments[Jr];return Nr.forEach(function(xn){xn&&Object.keys(xn).forEach(function(Tn){var wn=xn[Tn];wn!==void 0&&(kt[Tn]=wn)})}),kt}function Ut(kt,_r,Nr){var Jr=_r&&p()(_r)==="object"?_r:{},xn=Jr.total,Tn=xn===void 0?0:xn,wn=vt(Jr,["total"]),$n=Object(o.useState)(function(){return{current:"defaultCurrent"in wn?wn.defaultCurrent:1,pageSize:"defaultPageSize"in wn?wn.defaultPageSize:bt}}),Vn=f()($n,2),mi=Vn[0],Ri=Vn[1],vi=Jt(mi,wn,{total:Tn>0?Tn:kt});if(!Tn){var Bi=Math.ceil(kt/vi.pageSize);Bi<vi.current&&(vi.current=1)}var Gi=function(){var Ki=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,Hi=arguments.length>1?arguments[1]:void 0;Ri(l()(l()({},vi),{current:Ki,pageSize:Hi||vi.pageSize}))},ta=function(Ki,Hi){var Qi=vi==null?void 0:vi.pageSize;Hi&&Hi!==Qi&&(Ki=1,_r&&_r.onShowSizeChange&&_r.onShowSizeChange(Ki,Hi)),_r&&_r.onChange&&_r.onChange(Ki,Hi),Gi(Ki,Hi),Nr(Ki,Hi||Qi)};return _r===!1?[{},function(){}]:[l()(l()({},vi),{onChange:ta}),Gi]}function er(kt,_r,Nr){var Jr=o.useRef({});function xn(Tn){if(!Jr.current||Jr.current.data!==kt||Jr.current.childrenColumnName!==_r||Jr.current.getRowKey!==Nr){var wn=function Vn(mi){mi.forEach(function(Ri,vi){var Bi=Nr(Ri,vi);$n.set(Bi,Ri),Ri&&p()(Ri)==="object"&&_r in Ri&&Vn(Ri[_r]||[])})},$n=new Map;wn(kt),Jr.current={data:kt,childrenColumnName:_r,kvMap:$n,getRowKey:Nr}}return Jr.current.kvMap.get(Tn)}return[xn]}var Mt=i("SA+Z"),Zt=i.n(Mt),Hr=i("RIqP"),Ir=i.n(Hr),Lr=i("HQEm"),dn=i.n(Lr),gn=i("c3jg"),ri=i("qOx5"),Zn=i("wPhX"),pi=i("6cGi"),Ci=i("kaz8"),Ni=i("jsC+"),zi=i("BvKs"),it=i("9yH6"),Ne=i("uaoM"),He="SELECT_ALL",Ge="SELECT_INVERT";function nt(kt){return kt&&kt.fixed}function $e(kt,_r){var Nr=[];return(kt||[]).forEach(function(Jr){Nr.push(Jr),Jr&&p()(Jr)==="object"&&_r in Jr&&(Nr=[].concat(Ir()(Nr),Ir()($e(Jr[_r],_r))))}),Nr}function ot(kt,_r){var Nr=kt||{},Jr=Nr.preserveSelectedRowKeys,xn=Nr.selectedRowKeys,Tn=Nr.getCheckboxProps,wn=Nr.onChange,$n=Nr.onSelect,Vn=Nr.onSelectAll,mi=Nr.onSelectInvert,Ri=Nr.onSelectMultiple,vi=Nr.columnWidth,Bi=Nr.type,Gi=Nr.selections,ta=Nr.fixed,Pi=Nr.renderCell,Ki=Nr.hideSelectAll,Hi=Nr.checkStrictly,Qi=Hi===void 0?!0:Hi,da=_r.prefixCls,Oa=_r.data,ra=_r.pageData,Da=_r.getRecordByKey,Ra=_r.getRowKey,va=_r.expandType,ga=_r.childrenColumnName,_a=_r.locale,ya=_r.expandIconColumnIndex,Ga=_r.getPopupContainer,Ia=o.useRef(new Map),Wa=Object(pi.a)(xn||[],{value:xn}),no=f()(Wa,2),io=no[0],uo=no[1],$i=Object(o.useMemo)(function(){return Qi?{keyEntities:null}:Object(gn.a)(Oa,void 0,Ra)},[Oa,Ra,Qi]),mo=$i.keyEntities,Eo=Object(o.useMemo)(function(){return $e(ra,ga)},[ra,ga]),ao=Object(o.useMemo)(function(){var ho=new Map;return Eo.forEach(function(ja,mt){var Cr=Ra(ja,mt),tn=(Tn?Tn(ja):null)||{};ho.set(Cr,tn)}),ho},[Eo,Ra,Tn]),Co=Object(o.useCallback)(function(ho){var ja;return!!((ja=ao.get(Ra(ho)))===null||ja===void 0?void 0:ja.disabled)},[ao,Ra]),Ko=Object(o.useMemo)(function(){if(Qi)return[io,[]];var ho=Object(ri.a)(io,!0,mo,Co),ja=ho.checkedKeys,mt=ho.halfCheckedKeys;return[ja,mt]},[io,Qi,mo,Co]),to=f()(Ko,2),Qo=to[0],bo=to[1],xo=Object(o.useMemo)(function(){var ho=Bi==="radio"?Qo.slice(0,1):Qo;return new Set(ho)},[Qo,Bi]),ts=Object(o.useMemo)(function(){return Bi==="radio"?new Set:new Set(bo)},[bo,Bi]),ka=Object(o.useState)(null),Io=f()(ka,2),Mo=Io[0],is=Io[1];o.useEffect(function(){kt||uo([])},[!!kt]);var To=Object(o.useCallback)(function(ho){var ja,mt;if(Jr){var Cr=new Map;ja=ho,mt=ho.map(function(tn){var Yr=Da(tn);return!Yr&&Ia.current.has(tn)&&(Yr=Ia.current.get(tn)),Cr.set(tn,Yr),Yr}),Ia.current=Cr}else ja=[],mt=[],ho.forEach(function(tn){var Yr=Da(tn);Yr!==void 0&&(ja.push(tn),mt.push(Yr))});uo(ja),wn&&wn(ja,mt)},[uo,Da,wn,Jr]),Zo=Object(o.useCallback)(function(ho,ja,mt,Cr){if($n){var tn=mt.map(function(Yr){return Da(Yr)});$n(Da(ho),ja,tn,Cr)}To(mt)},[$n,Da,To]),Vo=Object(o.useMemo)(function(){if(!Gi||Ki)return null;var ho=Gi===!0?[He,Ge]:Gi;return ho.map(function(ja){return ja===He?{key:"all",text:_a.selectionAll,onSelect:function(){To(Oa.map(function(Cr,tn){return Ra(Cr,tn)}))}}:ja===Ge?{key:"invert",text:_a.selectInvert,onSelect:function(){var Cr=new Set(xo);ra.forEach(function(Yr,Xn){var hn=Ra(Yr,Xn);Cr.has(hn)?Cr.delete(hn):Cr.add(hn)});var tn=Array.from(Cr);To(tn),mi&&(Object(Ne.a)(!1,"Table","`onSelectInvert` will be removed in future. Please use `onChange` instead."),mi(tn))}}:ja})},[Gi,xo,ra,Ra,mi,To]),Lo=Object(o.useCallback)(function(ho){if(!kt)return ho;var ja=new Set(xo),mt=Eo.map(Ra).filter(function(Ti){return!ao.get(Ti).disabled}),Cr=mt.every(function(Ti){return ja.has(Ti)}),tn=mt.some(function(Ti){return ja.has(Ti)}),Yr=function(){var _i=[];Cr?mt.forEach(function(Fi){ja.delete(Fi),_i.push(Fi)}):mt.forEach(function(Fi){ja.has(Fi)||(ja.add(Fi),_i.push(Fi))});var ia=Array.from(ja);To(ia),Vn&&Vn(!Cr,ia.map(function(Fi){return Da(Fi)}),_i.map(function(Fi){return Da(Fi)}))},Xn;if(Bi!=="radio"){var hn;if(Vo){var Xr=o.createElement(zi.a,{getPopupContainer:Ga},Vo.map(function(Ti,_i){var ia=Ti.key,Fi=Ti.text,fa=Ti.onSelect;return o.createElement(zi.a.Item,{key:ia||_i,onClick:function(){fa&&fa(mt)}},Fi)}));hn=o.createElement("div",{className:"".concat(da,"-selection-extra")},o.createElement(Ni.a,{overlay:Xr,getPopupContainer:Ga},o.createElement("span",null,o.createElement(dn.a,null))))}var ni=Eo.every(function(Ti,_i){var ia=Ra(Ti,_i),Fi=ao.get(ia)||{};return Fi.disabled});Xn=!Ki&&o.createElement("div",{className:"".concat(da,"-selection")},o.createElement(Ci.a,{checked:!ni&&!!Eo.length&&Cr,indeterminate:!Cr&&tn,onChange:Yr,disabled:Eo.length===0||ni}),hn)}var nn;Bi==="radio"?nn=function(_i,ia,Fi){var fa=Ra(ia,Fi),za=ja.has(fa);return{node:o.createElement(it.a,l()({},ao.get(fa),{checked:za,onClick:function(xa){return xa.stopPropagation()},onChange:function(xa){ja.has(fa)||Zo(fa,!0,[fa],xa.nativeEvent)}})),checked:za}}:nn=function(_i,ia,Fi){var fa,za=Ra(ia,Fi),Ca=ja.has(za),xa=ts.has(za),Ma=ao.get(za),Pa;return va==="nest"?(Pa=xa,Object(Ne.a)(!(typeof(Ma==null?void 0:Ma.indeterminate)=="boolean"),"Table","set `indeterminate` using `rowSelection.getCheckboxProps` is not allowed with tree structured dataSource.")):Pa=(fa=Ma==null?void 0:Ma.indeterminate)!==null&&fa!==void 0?fa:xa,{node:o.createElement(Ci.a,l()({},Ma,{indeterminate:Pa,checked:Ca,onClick:function(Oo){return Oo.stopPropagation()},onChange:function(Oo){var pa=Oo.nativeEvent,Sa=pa.shiftKey,Ea=-1,Ka=-1;if(Sa&&Qi){var so=new Set([Mo,za]);mt.some(function(eo,ss){if(so.has(eo))if(Ea===-1)Ea=ss;else return Ka=ss,!0;return!1})}if(Ka!==-1&&Ea!==Ka&&Qi){var lo=mt.slice(Ea,Ka+1),wo=[];Ca?lo.forEach(function(eo){ja.has(eo)&&(wo.push(eo),ja.delete(eo))}):lo.forEach(function(eo){ja.has(eo)||(wo.push(eo),ja.add(eo))});var No=Array.from(ja);To(No),Ri&&Ri(!Ca,No.map(function(eo){return Da(eo)}),wo.map(function(eo){return Da(eo)}))}else{var cs=Qo;if(Qi){var hs=Ca?Object(Zn.b)(cs,za):Object(Zn.a)(cs,za);Zo(za,!Ca,hs,pa)}else{var Bs=Object(ri.a)([].concat(Ir()(cs),[za]),!0,mo,Co),rs=Bs.checkedKeys,ns=Bs.halfCheckedKeys,co=rs;if(Ca){var oo=new Set(rs);oo.delete(za),co=Object(ri.a)(Array.from(oo),{checked:!1,halfCheckedKeys:ns},mo,Co).checkedKeys}Zo(za,!Ca,co,pa)}}is(za)}})),checked:Ca}};var Wn=function(_i,ia,Fi){var fa=nn(_i,ia,Fi),za=fa.node,Ca=fa.checked;return Pi?Pi(Ca,ia,Fi,za):za},si=A()({width:vi,className:"".concat(da,"-selection-column"),title:kt.columnTitle||Xn,render:Wn},ee,{className:"".concat(da,"-selection-col")});if(va==="row"&&ho.length&&!ya){var ui=Zt()(ho),ai=ui[0],Ei=ui.slice(1),gi=ta||nt(Ei[0]);return gi&&(ai.fixed=gi),[ai,l()(l()({},si),{fixed:gi})].concat(Ir()(Ei))}return[l()(l()({},si),{fixed:ta||nt(ho[0])})].concat(Ir()(ho))},[Ra,Eo,kt,Qo,xo,ts,vi,Vo,va,Mo,ao,Ri,Zo,Co]);return[Lo,xo]}var Pt=i("6SEX"),xt=i.n(Pt),rr=i("i8CU"),Fr=i.n(rr),Vr=i("3S7+");function fn(kt,_r){return"key"in kt&&kt.key!==void 0&&kt.key!==null?kt.key:kt.dataIndex?Array.isArray(kt.dataIndex)?kt.dataIndex.join("."):kt.dataIndex:_r}function gr(kt,_r){return _r?"".concat(_r,"-").concat(kt):"".concat(kt)}function Gn(kt,_r){return typeof kt=="function"?kt(_r):kt}var Mr="ascend",Rn="descend";function bn(kt){return p()(kt.sorter)==="object"&&typeof kt.sorter.multiple=="number"?kt.sorter.multiple:!1}function rn(kt){return typeof kt=="function"?kt:kt&&p()(kt)==="object"&&kt.compare?kt.compare:!1}function ei(kt,_r){return _r?kt[kt.indexOf(_r)+1]:kt[0]}function fi(kt,_r,Nr){var Jr=[];function xn(Tn,wn){Jr.push({column:Tn,key:fn(Tn,wn),multiplePriority:bn(Tn),sortOrder:Tn.sortOrder})}return(kt||[]).forEach(function(Tn,wn){var $n=gr(wn,Nr);Tn.children?("sortOrder"in Tn&&xn(Tn,$n),Jr=[].concat(Ir()(Jr),Ir()(fi(Tn.children,_r,$n)))):Tn.sorter&&("sortOrder"in Tn?xn(Tn,$n):_r&&Tn.defaultSortOrder&&Jr.push({column:Tn,key:fn(Tn,$n),multiplePriority:bn(Tn),sortOrder:Tn.defaultSortOrder}))}),Jr}function Mi(kt,_r,Nr,Jr,xn,Tn,wn,$n){return(_r||[]).map(function(Vn,mi){var Ri=gr(mi,$n),vi=Vn;if(vi.sorter){var Bi=vi.sortDirections||xn,Gi=vi.showSorterTooltip===void 0?wn:vi.showSorterTooltip,ta=fn(vi,Ri),Pi=Nr.find(function(ga){var _a=ga.key;return _a===ta}),Ki=Pi?Pi.sortOrder:null,Hi=ei(Bi,Ki),Qi=Bi.includes(Mr)&&o.createElement(Fr.a,{className:t()("".concat(kt,"-column-sorter-up"),{active:Ki===Mr})}),da=Bi.includes(Rn)&&o.createElement(xt.a,{className:t()("".concat(kt,"-column-sorter-down"),{active:Ki===Rn})}),Oa=Tn||{},ra=Oa.cancelSort,Da=Oa.triggerAsc,Ra=Oa.triggerDesc,va=ra;Hi===Rn?va=Ra:Hi===Mr&&(va=Da),vi=l()(l()({},vi),{className:t()(vi.className,A()({},"".concat(kt,"-column-sort"),Ki)),title:function(_a){var ya=o.createElement("div",{className:"".concat(kt,"-column-sorters")},o.createElement("span",null,Gn(Vn.title,_a)),o.createElement("span",{className:t()("".concat(kt,"-column-sorter"),A()({},"".concat(kt,"-column-sorter-full"),Qi&&da))},o.createElement("span",{className:"".concat(kt,"-column-sorter-inner")},Qi,da)));return Gi?o.createElement(Vr.a,{title:va},o.createElement("div",{className:"".concat(kt,"-column-sorters-with-tooltip")},ya)):ya},onHeaderCell:function(_a){var ya=Vn.onHeaderCell&&Vn.onHeaderCell(_a)||{},Ga=ya.onClick;return ya.onClick=function(Ia){Jr({column:Vn,key:ta,sortOrder:Hi,multiplePriority:bn(Vn)}),Ga&&Ga(Ia)},ya.className=t()(ya.className,"".concat(kt,"-column-has-sorters")),ya}})}return"children"in vi&&(vi=l()(l()({},vi),{children:Mi(kt,vi.children,Nr,Jr,xn,Tn,wn,Ri)})),vi})}function $r(kt){var _r=kt.column,Nr=kt.sortOrder;return{column:_r,order:Nr,field:_r.dataIndex,columnKey:_r.key}}function En(kt){var _r=kt.filter(function(Nr){var Jr=Nr.sortOrder;return Jr}).map($r);return _r.length===0&&kt.length?l()(l()({},$r(kt[kt.length-1])),{column:void 0}):_r.length<=1?_r[0]||{}:_r}function Hn(kt,_r,Nr){var Jr=_r.slice().sort(function(wn,$n){return $n.multiplePriority-wn.multiplePriority}),xn=kt.slice(),Tn=Jr.filter(function(wn){var $n=wn.column.sorter,Vn=wn.sortOrder;return rn($n)&&Vn});return Tn.length?xn.sort(function(wn,$n){for(var Vn=0;Vn<Tn.length;Vn+=1){var mi=Tn[Vn],Ri=mi.column.sorter,vi=mi.sortOrder,Bi=rn(Ri);if(Bi&&vi){var Gi=Bi(wn,$n,vi);if(Gi!==0)return vi===Mr?Gi:-Gi}}return 0}).map(function(wn){var $n=wn[Nr];return $n?l()(l()({},wn),A()({},Nr,Hn($n,_r,Nr))):wn}):xn}function zt(kt){var _r=kt.prefixCls,Nr=kt.mergedColumns,Jr=kt.onSorterChange,xn=kt.sortDirections,Tn=kt.tableLocale,wn=kt.showSorterTooltip,$n=o.useState(fi(Nr,!0)),Vn=f()($n,2),mi=Vn[0],Ri=Vn[1],vi=o.useMemo(function(){var Ki=!0,Hi=fi(Nr,!1);if(!Hi.length)return mi;var Qi=[];function da(ra){Ki?Qi.push(ra):Qi.push(l()(l()({},ra),{sortOrder:null}))}var Oa=null;return Hi.forEach(function(ra){Oa===null?(da(ra),ra.sortOrder&&(ra.multiplePriority===!1?Ki=!1:Oa=!0)):(Oa&&ra.multiplePriority!==!1||(Ki=!1),da(ra))}),Qi},[Nr,mi]),Bi=o.useMemo(function(){var Ki=vi.map(function(Hi){var Qi=Hi.column,da=Hi.sortOrder;return{column:Qi,order:da}});return{sortColumns:Ki,sortColumn:Ki[0]&&Ki[0].column,sortOrder:Ki[0]&&Ki[0].order}},[vi]);function Gi(Ki){var Hi;Ki.multiplePriority===!1||!vi.length||vi[0].multiplePriority===!1?Hi=[Ki]:Hi=[].concat(Ir()(vi.filter(function(Qi){var da=Qi.key;return da!==Ki.key})),[Ki]),Ri(Hi),Jr(En(Hi),Hi)}var ta=function(Hi){return Mi(_r,Hi,vi,Gi,xn,Tn,wn)},Pi=function(){return En(vi)};return[ta,vi,Bi,Pi]}var _t=i("Y+p1"),Ft=i.n(_t),Wt=i("5Uyt"),Vt=i.n(Wt),Lt=i("2/Rp"),cr=i("ECub"),vr=function(_r){return o.createElement("div",{className:_r.className,onClick:function(Jr){return Jr.stopPropagation()}},_r.children)},yr=vr,Dr=i("sPtV"),Kn=zi.a.SubMenu,Dn=zi.a.Item;function di(kt){return kt.some(function(_r){var Nr=_r.children;return Nr})}function mn(kt){var _r=kt.filters,Nr=kt.prefixCls,Jr=kt.filteredKeys,xn=kt.filterMultiple,Tn=kt.locale;return _r.length===0?o.createElement(o.Fragment,null,o.createElement(cr.a,{image:cr.a.PRESENTED_IMAGE_SIMPLE,description:Tn.filterEmptyText,style:{margin:"16px 0"},imageStyle:{height:24}})):_r.map(function(wn,$n){var Vn=String(wn.value);if(wn.children)return o.createElement(Kn,{key:Vn||$n,title:wn.text,popupClassName:"".concat(Nr,"-dropdown-submenu")},mn({filters:wn.children,prefixCls:Nr,filteredKeys:Jr,filterMultiple:xn,locale:Tn}));var mi=xn?Ci.a:it.a;return o.createElement(Dn,{key:wn.value!==void 0?Vn:$n},o.createElement(mi,{checked:Jr.includes(Vn)}),o.createElement("span",null,wn.text))})}function Ur(kt){var _r,Nr=kt.prefixCls,Jr=kt.column,xn=kt.dropdownPrefixCls,Tn=kt.columnKey,wn=kt.filterMultiple,$n=kt.filterState,Vn=kt.triggerFilter,mi=kt.locale,Ri=kt.children,vi=kt.getPopupContainer,Bi=Jr.filterDropdownVisible,Gi=Jr.onFilterDropdownVisibleChange,ta=o.useState(!1),Pi=f()(ta,2),Ki=Pi[0],Hi=Pi[1],Qi=!!($n&&(((_r=$n.filteredKeys)===null||_r===void 0?void 0:_r.length)||$n.forceFiltered)),da=function(Io){Hi(Io),Gi&&Gi(Io)},Oa=typeof Bi=="boolean"?Bi:Ki,ra=$n&&$n.filteredKeys,Da=Object(Dr.a)(ra||[]),Ra=f()(Da,2),va=Ra[0],ga=Ra[1],_a=function(Io){var Mo=Io.selectedKeys;ga(Mo)};o.useEffect(function(){_a({selectedKeys:ra||[]})},[ra]);var ya=o.useState([]),Ga=f()(ya,2),Ia=Ga[0],Wa=Ga[1],no=o.useRef(),io=function(Io){no.current=window.setTimeout(function(){Wa(Io)})},uo=function(){window.clearTimeout(no.current)};o.useEffect(function(){return function(){window.clearTimeout(no.current)}},[]);var $i=function(Io){da(!1);var Mo=Io&&Io.length?Io:null;if(Mo===null&&(!$n||!$n.filteredKeys))return null;if(Ft()(Mo,$n==null?void 0:$n.filteredKeys))return null;Vn({column:Jr,key:Tn,filteredKeys:Mo})},mo=function(){$i(va())},Eo=function(){ga([]),$i([])},ao=function(Io){Io&&ra!==void 0&&ga(ra||[]),da(Io),!Io&&!Jr.filterDropdown&&mo()},Co=t()(A()({},"".concat(xn,"-menu-without-submenu"),!di(Jr.filters||[]))),Ko;if(typeof Jr.filterDropdown=="function")Ko=Jr.filterDropdown({prefixCls:"".concat(xn,"-custom"),setSelectedKeys:function(Io){return _a({selectedKeys:Io})},selectedKeys:va(),confirm:mo,clearFilters:Eo,filters:Jr.filters,visible:Oa});else if(Jr.filterDropdown)Ko=Jr.filterDropdown;else{var to=va()||[];Ko=o.createElement(o.Fragment,null,o.createElement(zi.a,{multiple:wn,prefixCls:"".concat(xn,"-menu"),className:Co,onClick:uo,onSelect:_a,onDeselect:_a,selectedKeys:to,getPopupContainer:vi,openKeys:Ia,onOpenChange:io},mn({filters:Jr.filters||[],prefixCls:Nr,filteredKeys:va(),filterMultiple:wn,locale:mi})),o.createElement("div",{className:"".concat(Nr,"-dropdown-btns")},o.createElement(Lt.a,{type:"link",size:"small",disabled:to.length===0,onClick:Eo},mi.filterReset),o.createElement(Lt.a,{type:"primary",size:"small",onClick:mo},mi.filterConfirm)))}var Qo=o.createElement(yr,{className:"".concat(Nr,"-dropdown")},Ko),bo;typeof Jr.filterIcon=="function"?bo=Jr.filterIcon(Qi):Jr.filterIcon?bo=Jr.filterIcon:bo=o.createElement(Vt.a,null);var xo=o.useContext(Gt.b),ts=xo.direction;return o.createElement("div",{className:t()("".concat(Nr,"-column"))},o.createElement("span",{className:"".concat(Nr,"-column-title")},Ri),o.createElement("span",{className:t()("".concat(Nr,"-trigger-container"),A()({},"".concat(Nr,"-trigger-container-open"),Oa)),onClick:function(Io){Io.stopPropagation()}},o.createElement(Ni.a,{overlay:Qo,trigger:["click"],visible:Oa,onVisibleChange:ao,getPopupContainer:vi,placement:ts==="rtl"?"bottomLeft":"bottomRight"},o.createElement("span",{role:"button",tabIndex:-1,className:t()("".concat(Nr,"-trigger"),{active:Qi})},bo))))}var On=Ur;function zn(kt,_r,Nr){var Jr=[];return(kt||[]).forEach(function(xn,Tn){var wn=gr(Tn,Nr);"children"in xn?Jr=[].concat(Ir()(Jr),Ir()(zn(xn.children,_r,wn))):(xn.filters||"filterDropdown"in xn||"onFilter"in xn)&&("filteredValue"in xn?Jr.push({column:xn,key:fn(xn,wn),filteredKeys:xn.filteredValue,forceFiltered:xn.filtered}):Jr.push({column:xn,key:fn(xn,wn),filteredKeys:_r&&xn.defaultFilteredValue?xn.defaultFilteredValue:void 0,forceFiltered:xn.filtered}))}),Jr}function qn(kt,_r,Nr,Jr,xn,Tn,wn,$n){return Nr.map(function(Vn,mi){var Ri=gr(mi,$n),vi=Vn.filterMultiple,Bi=vi===void 0?!0:vi;if(Vn.filters||"filterDropdown"in Vn){var Gi=fn(Vn,Ri),ta=Jr.find(function(Pi){var Ki=Pi.key;return Gi===Ki});return l()(l()({},Vn),{title:function(Ki){return o.createElement(On,{prefixCls:"".concat(kt,"-filter"),dropdownPrefixCls:_r,column:Vn,columnKey:Gi,filterState:ta,filterMultiple:Bi,triggerFilter:xn,locale:wn,getPopupContainer:Tn},Gn(Vn.title,Ki))}})}return"children"in Vn?l()(l()({},Vn),{children:qn(kt,_r,Vn.children,Jr,xn,Tn,wn,Ri)}):Vn})}function oi(kt){var _r={};return kt.forEach(function(Nr){var Jr=Nr.key,xn=Nr.filteredKeys;_r[Jr]=xn||null}),_r}function xi(kt){var _r=[];return(kt||[]).forEach(function(Nr){var Jr=Nr.value,xn=Nr.children;_r.push(Jr),xn&&(_r=[].concat(Ir()(_r),Ir()(xi(xn))))}),_r}function Di(kt,_r){return _r.reduce(function(Nr,Jr){var xn=Jr.column,Tn=xn.onFilter,wn=xn.filters,$n=Jr.filteredKeys;return Tn&&$n&&$n.length?Nr.filter(function(Vn){return $n.some(function(mi){var Ri=xi(wn),vi=Ri.findIndex(function(Gi){return String(Gi)===String(mi)}),Bi=vi!==-1?Ri[vi]:mi;return Tn(Bi,Vn)})}):Nr},kt)}function Li(kt){var _r=kt.prefixCls,Nr=kt.dropdownPrefixCls,Jr=kt.mergedColumns,xn=kt.onFilterChange,Tn=kt.getPopupContainer,wn=kt.locale,$n=o.useState(zn(Jr,!0)),Vn=f()($n,2),mi=Vn[0],Ri=Vn[1],vi=o.useMemo(function(){var Pi=zn(Jr,!1);return Pi.every(function(Ki){var Hi=Ki.filteredKeys;return Hi===void 0})?mi:Pi},[Jr,mi]),Bi=o.useCallback(function(){return oi(vi)},[vi]),Gi=function(Ki){var Hi=vi.filter(function(Qi){var da=Qi.key;return da!==Ki.key});Hi.push(Ki),Ri(Hi),xn(oi(Hi),Hi)},ta=function(Ki){return qn(_r,Nr,Ki,vi,Gi,Tn,wn)};return[ta,vi,Bi]}var aa=Li;function ma(kt,_r){return kt.map(function(Nr){var Jr=l()({},Nr);return Jr.title=Gn(Nr.title,_r),"children"in Jr&&(Jr.children=ma(Jr.children,_r)),Jr})}function na(kt){var _r=o.useCallback(function(Nr){return ma(Nr,kt)},[kt]);return[_r]}function Aa(kt){return function(Nr){var Jr,xn=Nr.prefixCls,Tn=Nr.onExpand,wn=Nr.record,$n=Nr.expanded,Vn=Nr.expandable,mi="".concat(xn,"-row-expand-icon");return o.createElement("button",{type:"button",onClick:function(vi){Tn(wn,vi),vi.stopPropagation()},className:t()(mi,(Jr={},A()(Jr,"".concat(mi,"-spaced"),!Vn),A()(Jr,"".concat(mi,"-expanded"),Vn&&$n),A()(Jr,"".concat(mi,"-collapsed"),Vn&&!$n),Jr)),"aria-label":$n?kt.collapse:kt.expand})}}var yi=Aa,Ln=i("zAh6"),ji=i("ZvpZ"),ha=ji.a,ea=i("3Nzz");function ca(kt){return null}var kr=ca;function Sr(kt){return null}var yn=Sr,dr=i("5OYt"),Rr=[];function Gr(kt){var _r,Nr=kt.prefixCls,Jr=kt.className,xn=kt.style,Tn=kt.size,wn=kt.bordered,$n=kt.dropdownPrefixCls,Vn=kt.dataSource,mi=kt.pagination,Ri=kt.rowSelection,vi=kt.rowKey,Bi=kt.rowClassName,Gi=kt.columns,ta=kt.children,Pi=kt.childrenColumnName,Ki=kt.onChange,Hi=kt.getPopupContainer,Qi=kt.loading,da=kt.expandIcon,Oa=kt.expandable,ra=kt.expandedRowRender,Da=kt.expandIconColumnIndex,Ra=kt.indentSize,va=kt.scroll,ga=kt.sortDirections,_a=kt.locale,ya=kt.showSorterTooltip,Ga=ya===void 0?!0:ya;Object(Ne.a)(!(typeof vi=="function"&&vi.length>1),"Table","`index` parameter of `rowKey` function is deprecated. There is no guarantee that it will work as expected.");var Ia=Object(dr.a)(),Wa=o.useMemo(function(){var oo=new Set(Object.keys(Ia).filter(function(eo){return Ia[eo]}));return(Gi||de(ta)).filter(function(eo){return!eo.responsive||eo.responsive.some(function(ss){return oo.has(ss)})})},[ta,Gi,Ia]),no=Object(a.default)(kt,["className","style","columns"]),io=o.useContext(ea.b),uo=o.useContext(Gt.b),$i=uo.locale,mo=$i===void 0?ha:$i,Eo=uo.renderEmpty,ao=uo.direction,Co=Tn||io,Ko=l()(l()({},mo.Table),_a),to=Vn||Rr,Qo=o.useContext(Gt.b),bo=Qo.getPrefixCls,xo=bo("table",Nr),ts=bo("dropdown",$n),ka=l()({childrenColumnName:Pi,expandIconColumnIndex:Da},Oa),Io=ka.childrenColumnName,Mo=Io===void 0?"children":Io,is=o.useMemo(function(){return to.some(function(oo){var eo;return(eo=oo)===null||eo===void 0?void 0:eo[Mo]})?"nest":ra||Oa&&Oa.expandedRowRender?"row":null},[to]),To={body:o.useRef()},Zo=o.useMemo(function(){return typeof vi=="function"?vi:function(oo){var eo;return(eo=oo)===null||eo===void 0?void 0:eo[vi]}},[vi]),Vo=er(to,Mo,Zo),Lo=f()(Vo,1),ho=Lo[0],ja={},mt=function(eo,ss){var xs=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Po=l()(l()({},ja),eo);xs&&(ja.resetPagination(),Po.pagination.current&&(Po.pagination.current=1),mi&&mi.onChange&&mi.onChange(1,Po.pagination.pageSize)),va&&va.scrollToFirstRowOnChange!==!1&&To.body.current&&Object(Ln.a)(0,{getContainer:function(){return To.body.current}}),Ki&&Ki(Po.pagination,Po.filters,Po.sorter,{currentDataSource:Di(Hn(to,Po.sorterStates,Mo),Po.filterStates),action:ss})},Cr=function(eo,ss){mt({sorter:eo,sorterStates:ss},"sort",!1)},tn=zt({prefixCls:xo,mergedColumns:Wa,onSorterChange:Cr,sortDirections:ga||["ascend","descend"],tableLocale:Ko,showSorterTooltip:Ga}),Yr=f()(tn,4),Xn=Yr[0],hn=Yr[1],Xr=Yr[2],ni=Yr[3],nn=o.useMemo(function(){return Hn(to,hn,Mo)},[to,hn]);ja.sorter=ni(),ja.sorterStates=hn;var Wn=function(eo,ss){mt({filters:eo,filterStates:ss},"filter",!0)},si=aa({prefixCls:xo,locale:Ko,dropdownPrefixCls:ts,mergedColumns:Wa,onFilterChange:Wn,getPopupContainer:Hi}),ui=f()(si,3),ai=ui[0],Ei=ui[1],gi=ui[2],Ti=Di(nn,Ei);ja.filters=gi(),ja.filterStates=Ei;var _i=o.useMemo(function(){return l()({},Xr)},[Xr]),ia=na(_i),Fi=f()(ia,1),fa=Fi[0],za=function(eo,ss){mt({pagination:l()(l()({},ja.pagination),{current:eo,pageSize:ss})},"paginate")},Ca=Ut(Ti.length,mi,za),xa=f()(Ca,2),Ma=xa[0],Pa=xa[1];ja.pagination=mi===!1?{}:fr(mi,Ma),ja.resetPagination=Pa;var Wo=o.useMemo(function(){if(mi===!1||!Ma.pageSize)return Ti;var oo=Ma.current,eo=oo===void 0?1:oo,ss=Ma.total,xs=Ma.pageSize,Po=xs===void 0?bt:xs;return Ti.length<ss?Ti.length>Po?(Object(Ne.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."),Ti.slice((eo-1)*Po,eo*Po)):Ti:Ti.slice((eo-1)*Po,eo*Po)},[!!mi,Ti,Ma&&Ma.current,Ma&&Ma.pageSize,Ma&&Ma.total]),Oo=ot(Ri,{prefixCls:xo,data:Ti,pageData:Wo,getRowKey:Zo,getRecordByKey:ho,expandType:is,childrenColumnName:Mo,locale:Ko,expandIconColumnIndex:ka.expandIconColumnIndex,getPopupContainer:Hi}),pa=f()(Oo,2),Sa=pa[0],Ea=pa[1],Ka=function(eo,ss,xs){var Po;return typeof Bi=="function"?Po=t()(Bi(eo,ss,xs)):Po=t()(Bi),t()(A()({},"".concat(xo,"-row-selected"),Ea.has(Zo(eo,ss))),Po)};ka.__PARENT_RENDER_ICON__=ka.expandIcon,ka.expandIcon=ka.expandIcon||da||yi(Ko),is==="nest"&&ka.expandIconColumnIndex===void 0?ka.expandIconColumnIndex=Ri?1:0:ka.expandIconColumnIndex>0&&Ri&&(ka.expandIconColumnIndex-=1),typeof ka.indentSize!="number"&&(ka.indentSize=typeof Ra=="number"?Ra:15);var so=o.useCallback(function(oo){return fa(Sa(ai(Xn(oo))))},[Xn,ai,Sa]),lo,wo;if(mi!==!1){var No;Ma.size?No=Ma.size:No=Co==="small"||Co==="middle"?"small":void 0;var cs=function(eo){return o.createElement(An.a,l()({className:"".concat(xo,"-pagination ").concat(xo,"-pagination-").concat(eo)},Ma,{size:No}))},hs=ao==="rtl"?"left":"right";if(Ma.position!==null&&Array.isArray(Ma.position)){var Bs=Ma.position.find(function(oo){return oo.indexOf("top")!==-1}),rs=Ma.position.find(function(oo){return oo.indexOf("bottom")!==-1});!Bs&&!rs?wo=cs(hs):(Bs&&(lo=cs(Bs.toLowerCase().replace("top",""))),rs&&(wo=cs(rs.toLowerCase().replace("bottom",""))))}else wo=cs(hs)}var ns;typeof Qi=="boolean"?ns={spinning:Qi}:p()(Qi)==="object"&&(ns=l()({spinning:!0},Qi));var co=t()("".concat(xo,"-wrapper"),Jr,A()({},"".concat(xo,"-wrapper-rtl"),ao==="rtl"));return o.createElement("div",{className:co,style:xn},o.createElement(qr.a,l()({spinning:!1},ns),lo,o.createElement(Pr,l()({},no,{columns:Wa,direction:ao,expandable:ka,prefixCls:xo,className:t()((_r={},A()(_r,"".concat(xo,"-middle"),Co==="middle"),A()(_r,"".concat(xo,"-small"),Co==="small"),A()(_r,"".concat(xo,"-bordered"),wn),A()(_r,"".concat(xo,"-empty"),to.length===0),_r)),data:Wo,rowKey:Zo,rowClassName:Ka,emptyText:_a&&_a.emptyText||Eo("Table"),internalHooks:at,internalRefs:To,transformColumns:so})),Ti&&Ti.length>0&&wo))}Gr.defaultProps={rowKey:"key"},Gr.SELECTION_ALL=He,Gr.SELECTION_INVERT=Ge,Gr.Column=kr,Gr.ColumnGroup=yn,Gr.Summary=Yn;var ln=Gr,kn=D.a=ln},wDdD:function(k,D,i){var y=i("ProS"),p=i("bYtY");i("98bh"),i("GrNh");var S=i("d4KN"),A=i("mOdp"),m=i("KS52"),f=i("0/Rx");S("pie",[{type:"pieToggleSelect",event:"pieselectchanged",method:"toggleSelected"},{type:"pieSelect",event:"pieselected",method:"select"},{type:"pieUnSelect",event:"pieunselected",method:"unSelect"}]),y.registerVisual(A("pie")),y.registerLayout(p.curry(m,"pie")),y.registerProcessor(f("pie"))},"wF/u":function(k,D,i){var y=i("e5cp"),p=i("ExA7");function S(A,m,f,d,l){return A===m?!0:A==null||m==null||!p(A)&&!p(m)?A!==A&&m!==m:y(A,m,f,d,S,l)}k.exports=S},wJg7:function(k,D){var i=9007199254740991,y=/^(?:0|[1-9]\d*)$/;function p(S,A){var m=typeof S;return A=A==null?i:A,!!A&&(m=="number"||m!="symbol"&&y.test(S))&&(S>-1&&S%1==0)&&S<A}k.exports=p},wOnQ:function(k,D,i){/*!
* html2canvas 1.4.1 <https://html2canvas.hertzen.com>
* Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com>
* Released under MIT License
*/(function(y,p){k.exports=p()})(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(Ae,De){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(We,dt){We.__proto__=dt}||function(We,dt){for(var pr in dt)Object.prototype.hasOwnProperty.call(dt,pr)&&(We[pr]=dt[pr])},y(Ae,De)};function p(Er,Ae){if(typeof Ae!="function"&&Ae!==null)throw new TypeError("Class extends value "+String(Ae)+" is not a constructor or null");y(Er,Ae);function De(){this.constructor=Er}Er.prototype=Ae===null?Object.create(Ae):(De.prototype=Ae.prototype,new De)}var S=function(){return S=Object.assign||function(De){for(var We,dt=1,pr=arguments.length;dt<pr;dt++){We=arguments[dt];for(var an in We)Object.prototype.hasOwnProperty.call(We,an)&&(De[an]=We[an])}return De},S.apply(this,arguments)};function A(Er,Ae,De,We){function dt(pr){return pr instanceof De?pr:new De(function(an){an(pr)})}return new(De||(De=Promise))(function(pr,an){function Cn(Xi){try{ii(We.next(Xi))}catch(Ui){an(Ui)}}function Fn(Xi){try{ii(We.throw(Xi))}catch(Ui){an(Ui)}}function ii(Xi){Xi.done?pr(Xi.value):dt(Xi.value).then(Cn,Fn)}ii((We=We.apply(Er,Ae||[])).next())})}function m(Er,Ae){var De={label:0,sent:function(){if(pr[0]&1)throw pr[1];return pr[1]},trys:[],ops:[]},We,dt,pr,an;return an={next:Cn(0),throw:Cn(1),return:Cn(2)},typeof Symbol=="function"&&(an[Symbol.iterator]=function(){return this}),an;function Cn(ii){return function(Xi){return Fn([ii,Xi])}}function Fn(ii){if(We)throw new TypeError("Generator is already executing.");for(;De;)try{if(We=1,dt&&(pr=ii[0]&2?dt.return:ii[0]?dt.throw||((pr=dt.return)&&pr.call(dt),0):dt.next)&&!(pr=pr.call(dt,ii[1])).done)return pr;(dt=0,pr)&&(ii=[ii[0]&2,pr.value]);switch(ii[0]){case 0:case 1:pr=ii;break;case 4:return De.label++,{value:ii[1],done:!1};case 5:De.label++,dt=ii[1],ii=[0];continue;case 7:ii=De.ops.pop(),De.trys.pop();continue;default:if(!(pr=De.trys,pr=pr.length>0&&pr[pr.length-1])&&(ii[0]===6||ii[0]===2)){De=0;continue}if(ii[0]===3&&(!pr||ii[1]>pr[0]&&ii[1]<pr[3])){De.label=ii[1];break}if(ii[0]===6&&De.label<pr[1]){De.label=pr[1],pr=ii;break}if(pr&&De.label<pr[2]){De.label=pr[2],De.ops.push(ii);break}pr[2]&&De.ops.pop(),De.trys.pop();continue}ii=Ae.call(Er,De)}catch(Xi){ii=[6,Xi],dt=0}finally{We=pr=0}if(ii[0]&5)throw ii[1];return{value:ii[0]?ii[1]:void 0,done:!0}}}function f(Er,Ae,De){if(De||arguments.length===2)for(var We=0,dt=Ae.length,pr;We<dt;We++)(pr||!(We in Ae))&&(pr||(pr=Array.prototype.slice.call(Ae,0,We)),pr[We]=Ae[We]);return Er.concat(pr||Ae)}for(var d=function(){function Er(Ae,De,We,dt){this.left=Ae,this.top=De,this.width=We,this.height=dt}return Er.prototype.add=function(Ae,De,We,dt){return new Er(this.left+Ae,this.top+De,this.width+We,this.height+dt)},Er.fromClientRect=function(Ae,De){return new Er(De.left+Ae.windowBounds.left,De.top+Ae.windowBounds.top,De.width,De.height)},Er.fromDOMRectList=function(Ae,De){var We=Array.from(De).find(function(dt){return dt.width!==0});return We?new Er(We.left+Ae.windowBounds.left,We.top+Ae.windowBounds.top,We.width,We.height):Er.EMPTY},Er.EMPTY=new Er(0,0,0,0),Er}(),l=function(Ae,De){return d.fromClientRect(Ae,De.getBoundingClientRect())},o=function(Ae){var De=Ae.body,We=Ae.documentElement;if(!De||!We)throw new Error("Unable to get document size");var dt=Math.max(Math.max(De.scrollWidth,We.scrollWidth),Math.max(De.offsetWidth,We.offsetWidth),Math.max(De.clientWidth,We.clientWidth)),pr=Math.max(Math.max(De.scrollHeight,We.scrollHeight),Math.max(De.offsetHeight,We.offsetHeight),Math.max(De.clientHeight,We.clientHeight));return new d(0,0,dt,pr)},n=function(Ae){for(var De=[],We=0,dt=Ae.length;We<dt;){var pr=Ae.charCodeAt(We++);if(pr>=55296&&pr<=56319&&We<dt){var an=Ae.charCodeAt(We++);(an&64512)===56320?De.push(((pr&1023)<<10)+(an&1023)+65536):(De.push(pr),We--)}else De.push(pr)}return De},t=function(){for(var Ae=[],De=0;De<arguments.length;De++)Ae[De]=arguments[De];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Ae);var We=Ae.length;if(!We)return"";for(var dt=[],pr=-1,an="";++pr<We;){var Cn=Ae[pr];Cn<=65535?dt.push(Cn):(Cn-=65536,dt.push((Cn>>10)+55296,Cn%1024+56320)),(pr+1===We||dt.length>16384)&&(an+=String.fromCharCode.apply(String,dt),dt.length=0)}return an},a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),u=0;u<a.length;u++)e[a.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(Ae){var De=Ae.length*.75,We=Ae.length,dt,pr=0,an,Cn,Fn,ii;Ae[Ae.length-1]==="="&&(De--,Ae[Ae.length-2]==="="&&De--);var Xi=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(De):new Array(De),Ui=Array.isArray(Xi)?Xi:new Uint8Array(Xi);for(dt=0;dt<We;dt+=4)an=s[Ae.charCodeAt(dt)],Cn=s[Ae.charCodeAt(dt+1)],Fn=s[Ae.charCodeAt(dt+2)],ii=s[Ae.charCodeAt(dt+3)],Ui[pr++]=an<<2|Cn>>4,Ui[pr++]=(Cn&15)<<4|Fn>>2,Ui[pr++]=(Fn&3)<<6|ii&63;return Xi},g=function(Ae){for(var De=Ae.length,We=[],dt=0;dt<De;dt+=2)We.push(Ae[dt+1]<<8|Ae[dt]);return We},v=function(Ae){for(var De=Ae.length,We=[],dt=0;dt<De;dt+=4)We.push(Ae[dt+3]<<24|Ae[dt+2]<<16|Ae[dt+1]<<8|Ae[dt]);return We},b=5,w=6+5,x=2,T=w-b,O=65536>>b,E=1<<b,C=E-1,I=1024>>b,_=O+I,F=_,R=2048>>6,B=F+R,M=65536>>w,X=1<<T,P=X-1,z=function(Ae,De,We){return Ae.slice?Ae.slice(De,We):new Uint16Array(Array.prototype.slice.call(Ae,De,We))},W=function(Ae,De,We){return Ae.slice?Ae.slice(De,We):new Uint32Array(Array.prototype.slice.call(Ae,De,We))},U=function(Ae,De){var We=h(Ae),dt=Array.isArray(We)?v(We):new Uint32Array(We),pr=Array.isArray(We)?g(We):new Uint16Array(We),an=24,Cn=z(pr,an/2,dt[4]/2),Fn=dt[5]===2?z(pr,(an+dt[4])/2):W(dt,Math.ceil((an+dt[4])/4));return new V(dt[0],dt[1],dt[2],dt[3],Cn,Fn)},V=function(){function Er(Ae,De,We,dt,pr,an){this.initialValue=Ae,this.errorValue=De,this.highStart=We,this.highValueIndex=dt,this.index=pr,this.data=an}return Er.prototype.get=function(Ae){var De;if(Ae>=0){if(Ae<55296||Ae>56319&&Ae<=65535)return De=this.index[Ae>>b],De=(De<<x)+(Ae&C),this.data[De];if(Ae<=65535)return De=this.index[O+(Ae-55296>>b)],De=(De<<x)+(Ae&C),this.data[De];if(Ae<this.highStart)return De=B-M+(Ae>>w),De=this.index[De],De+=Ae>>b&P,De=this.index[De],De=(De<<x)+(Ae&C),this.data[De];if(Ae<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Er}(),Q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",G=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),te=0;te<Q.length;te++)G[Q.charCodeAt(te)]=te;var $="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",le=50,re=1,Se=2,Re=3,Pe=4,Je=5,Ve=7,ct=8,Ue=9,ue=10,rt=11,ge=12,Z=13,Y=14,ee=15,fe=16,be=17,Ce=18,Te=19,he=20,ye=21,Ie=22,tt=23,pt=24,st=25,Fe=26,ft=27,et=28,wt=29,Ht=30,Dt=31,Tt=32,Bt=33,Ke=34,de=35,oe=36,lt=37,qe=38,pe=39,Kt=40,hr=41,gt=42,nr=43,mr=[9001,65288],cn="!",Ar="\xD7",xr="\xF7",qt=U($),ar=[Ht,oe],Et=[re,Se,Re,Je],en=[ue,ct],Mn=[ft,Fe],Yn=Et.concat(en),ci=[qe,pe,Kt,Ke,de],Vi=[ee,Z],jn=function(Ae,De){De===void 0&&(De="strict");var We=[],dt=[],pr=[];return Ae.forEach(function(an,Cn){var Fn=qt.get(an);if(Fn>le?(pr.push(!0),Fn-=le):pr.push(!1),["normal","auto","loose"].indexOf(De)!==-1&&[8208,8211,12316,12448].indexOf(an)!==-1)return dt.push(Cn),We.push(fe);if(Fn===Pe||Fn===rt){if(Cn===0)return dt.push(Cn),We.push(Ht);var ii=We[Cn-1];return Yn.indexOf(ii)===-1?(dt.push(dt[Cn-1]),We.push(ii)):(dt.push(Cn),We.push(Ht))}if(dt.push(Cn),Fn===Dt)return We.push(De==="strict"?ye:lt);if(Fn===gt)return We.push(Ht);if(Fn===wt)return We.push(Ht);if(Fn===nr)return an>=131072&&an<=196605||an>=196608&&an<=262141?We.push(lt):We.push(Ht);We.push(Fn)}),[dt,We,pr]},Qn=function(Ae,De,We,dt){var pr=dt[We];if(Array.isArray(Ae)?Ae.indexOf(pr)!==-1:Ae===pr)for(var an=We;an<=dt.length;){an++;var Cn=dt[an];if(Cn===De)return!0;if(Cn!==ue)break}if(pr===ue)for(var an=We;an>0;){an--;var Fn=dt[an];if(Array.isArray(Ae)?Ae.indexOf(Fn)!==-1:Ae===Fn)for(var ii=We;ii<=dt.length;){ii++;var Cn=dt[ii];if(Cn===De)return!0;if(Cn!==ue)break}if(Fn!==ue)break}return!1},$t=function(Ae,De){for(var We=Ae;We>=0;){var dt=De[We];if(dt===ue)We--;else return dt}return 0},Ot=function(Ae,De,We,dt,pr){if(We[dt]===0)return Ar;var an=dt-1;if(Array.isArray(pr)&&pr[an]===!0)return Ar;var Cn=an-1,Fn=an+1,ii=De[an],Xi=Cn>=0?De[Cn]:0,Ui=De[Fn];if(ii===Se&&Ui===Re)return Ar;if(Et.indexOf(ii)!==-1)return cn;if(Et.indexOf(Ui)!==-1)return Ar;if(en.indexOf(Ui)!==-1)return Ar;if($t(an,De)===ct)return xr;if(qt.get(Ae[an])===rt)return Ar;if((ii===Tt||ii===Bt)&&qt.get(Ae[Fn])===rt)return Ar;if(ii===Ve||Ui===Ve)return Ar;if(ii===Ue)return Ar;if([ue,Z,ee].indexOf(ii)===-1&&Ui===Ue)return Ar;if([be,Ce,Te,pt,et].indexOf(Ui)!==-1)return Ar;if($t(an,De)===Ie)return Ar;if(Qn(tt,Ie,an,De))return Ar;if(Qn([be,Ce],ye,an,De))return Ar;if(Qn(ge,ge,an,De))return Ar;if(ii===ue)return xr;if(ii===tt||Ui===tt)return Ar;if(Ui===fe||ii===fe)return xr;if([Z,ee,ye].indexOf(Ui)!==-1||ii===Y)return Ar;if(Xi===oe&&Vi.indexOf(ii)!==-1)return Ar;if(ii===et&&Ui===oe)return Ar;if(Ui===he)return Ar;if(ar.indexOf(Ui)!==-1&&ii===st||ar.indexOf(ii)!==-1&&Ui===st)return Ar;if(ii===ft&&[lt,Tt,Bt].indexOf(Ui)!==-1||[lt,Tt,Bt].indexOf(ii)!==-1&&Ui===Fe)return Ar;if(ar.indexOf(ii)!==-1&&Mn.indexOf(Ui)!==-1||Mn.indexOf(ii)!==-1&&ar.indexOf(Ui)!==-1)return Ar;if([ft,Fe].indexOf(ii)!==-1&&(Ui===st||[Ie,ee].indexOf(Ui)!==-1&&De[Fn+1]===st)||[Ie,ee].indexOf(ii)!==-1&&Ui===st||ii===st&&[st,et,pt].indexOf(Ui)!==-1)return Ar;if([st,et,pt,be,Ce].indexOf(Ui)!==-1)for(var qi=an;qi>=0;){var Ja=De[qi];if(Ja===st)return Ar;if([et,pt].indexOf(Ja)!==-1)qi--;else break}if([ft,Fe].indexOf(Ui)!==-1)for(var qi=[be,Ce].indexOf(ii)!==-1?Cn:an;qi>=0;){var Ja=De[qi];if(Ja===st)return Ar;if([et,pt].indexOf(Ja)!==-1)qi--;else break}if(qe===ii&&[qe,pe,Ke,de].indexOf(Ui)!==-1||[pe,Ke].indexOf(ii)!==-1&&[pe,Kt].indexOf(Ui)!==-1||[Kt,de].indexOf(ii)!==-1&&Ui===Kt)return Ar;if(ci.indexOf(ii)!==-1&&[he,Fe].indexOf(Ui)!==-1||ci.indexOf(Ui)!==-1&&ii===ft)return Ar;if(ar.indexOf(ii)!==-1&&ar.indexOf(Ui)!==-1)return Ar;if(ii===pt&&ar.indexOf(Ui)!==-1)return Ar;if(ar.concat(st).indexOf(ii)!==-1&&Ui===Ie&&mr.indexOf(Ae[Fn])===-1||ar.concat(st).indexOf(Ui)!==-1&&ii===Ce)return Ar;if(ii===hr&&Ui===hr){for(var qa=We[an],go=1;qa>0&&(qa--,De[qa]===hr);)go++;if(go%2!==0)return Ar}return ii===Tt&&Ui===Bt?Ar:xr},ke=function(Ae,De){De||(De={lineBreak:"normal",wordBreak:"normal"});var We=jn(Ae,De.lineBreak),dt=We[0],pr=We[1],an=We[2];(De.wordBreak==="break-all"||De.wordBreak==="break-word")&&(pr=pr.map(function(Fn){return[st,Ht,gt].indexOf(Fn)!==-1?lt:Fn}));var Cn=De.wordBreak==="keep-all"?an.map(function(Fn,ii){return Fn&&Ae[ii]>=19968&&Ae[ii]<=40959}):void 0;return[dt,pr,Cn]},Me=function(){function Er(Ae,De,We,dt){this.codePoints=Ae,this.required=De===cn,this.start=We,this.end=dt}return Er.prototype.slice=function(){return t.apply(void 0,this.codePoints.slice(this.start,this.end))},Er}(),Be=function(Ae,De){var We=n(Ae),dt=ke(We,De),pr=dt[0],an=dt[1],Cn=dt[2],Fn=We.length,ii=0,Xi=0;return{next:function(){if(Xi>=Fn)return{done:!0,value:null};for(var qi=Ar;Xi<Fn&&(qi=Ot(We,an,pr,++Xi,Cn))===Ar;);if(qi!==Ar||Xi===Fn){var Ja=new Me(We,qi,ii,Xi);return ii=Xi,{value:Ja,done:!1}}return{done:!0,value:null}}}},at=1<<0,At=1<<1,Ct=1<<2,Yt=1<<3,Pr=10,qr=47,An=92,Gt=9,vt=32,bt=34,fr=61,Jt=35,Ut=36,er=37,Mt=39,Zt=40,Hr=41,Ir=95,Lr=45,dn=33,gn=60,ri=62,Zn=64,pi=91,Ci=93,Ni=61,zi=123,it=63,Ne=125,He=124,Ge=126,nt=128,$e=65533,ot=42,Pt=43,xt=44,rr=58,Fr=59,Vr=46,fn=0,gr=8,Gn=11,Mr=14,Rn=31,bn=127,rn=-1,ei=48,fi=97,Mi=101,$r=102,En=117,Hn=122,zt=65,_t=69,Ft=70,Wt=85,Vt=90,Lt=function(Ae){return Ae>=ei&&Ae<=57},cr=function(Ae){return Ae>=55296&&Ae<=57343},vr=function(Ae){return Lt(Ae)||Ae>=zt&&Ae<=Ft||Ae>=fi&&Ae<=$r},yr=function(Ae){return Ae>=fi&&Ae<=Hn},Dr=function(Ae){return Ae>=zt&&Ae<=Vt},Kn=function(Ae){return yr(Ae)||Dr(Ae)},Dn=function(Ae){return Ae>=nt},di=function(Ae){return Ae===Pr||Ae===Gt||Ae===vt},mn=function(Ae){return Kn(Ae)||Dn(Ae)||Ae===Ir},Ur=function(Ae){return mn(Ae)||Lt(Ae)||Ae===Lr},On=function(Ae){return Ae>=fn&&Ae<=gr||Ae===Gn||Ae>=Mr&&Ae<=Rn||Ae===bn},zn=function(Ae,De){return Ae!==An?!1:De!==Pr},qn=function(Ae,De,We){return Ae===Lr?mn(De)||zn(De,We):mn(Ae)?!0:!!(Ae===An&&zn(Ae,De))},oi=function(Ae,De,We){return Ae===Pt||Ae===Lr?Lt(De)?!0:De===Vr&&Lt(We):Ae===Vr?Lt(De):Lt(Ae)},xi=function(Ae){var De=0,We=1;(Ae[De]===Pt||Ae[De]===Lr)&&(Ae[De]===Lr&&(We=-1),De++);for(var dt=[];Lt(Ae[De]);)dt.push(Ae[De++]);var pr=dt.length?parseInt(t.apply(void 0,dt),10):0;Ae[De]===Vr&&De++;for(var an=[];Lt(Ae[De]);)an.push(Ae[De++]);var Cn=an.length,Fn=Cn?parseInt(t.apply(void 0,an),10):0;(Ae[De]===_t||Ae[De]===Mi)&&De++;var ii=1;(Ae[De]===Pt||Ae[De]===Lr)&&(Ae[De]===Lr&&(ii=-1),De++);for(var Xi=[];Lt(Ae[De]);)Xi.push(Ae[De++]);var Ui=Xi.length?parseInt(t.apply(void 0,Xi),10):0;return We*(pr+Fn*Math.pow(10,-Cn))*Math.pow(10,ii*Ui)},Di={type:2},Li={type:3},aa={type:4},ma={type:13},na={type:8},Aa={type:21},yi={type:9},Ln={type:10},ji={type:11},ha={type:12},ea={type:14},ca={type:23},kr={type:1},Sr={type:25},yn={type:24},dr={type:26},Rr={type:27},Gr={type:28},ln={type:29},kn={type:31},kt={type:32},_r=function(){function Er(){this._value=[]}return Er.prototype.write=function(Ae){this._value=this._value.concat(n(Ae))},Er.prototype.read=function(){for(var Ae=[],De=this.consumeToken();De!==kt;)Ae.push(De),De=this.consumeToken();return Ae},Er.prototype.consumeToken=function(){var Ae=this.consumeCodePoint();switch(Ae){case bt:return this.consumeStringToken(bt);case Jt:var De=this.peekCodePoint(0),We=this.peekCodePoint(1),dt=this.peekCodePoint(2);if(Ur(De)||zn(We,dt)){var pr=qn(De,We,dt)?At:at,an=this.consumeName();return{type:5,value:an,flags:pr}}break;case Ut:if(this.peekCodePoint(0)===fr)return this.consumeCodePoint(),ma;break;case Mt:return this.consumeStringToken(Mt);case Zt:return Di;case Hr:return Li;case ot:if(this.peekCodePoint(0)===fr)return this.consumeCodePoint(),ea;break;case Pt:if(oi(Ae,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(Ae),this.consumeNumericToken();break;case xt:return aa;case Lr:var Cn=Ae,Fn=this.peekCodePoint(0),ii=this.peekCodePoint(1);if(oi(Cn,Fn,ii))return this.reconsumeCodePoint(Ae),this.consumeNumericToken();if(qn(Cn,Fn,ii))return this.reconsumeCodePoint(Ae),this.consumeIdentLikeToken();if(Fn===Lr&&ii===ri)return this.consumeCodePoint(),this.consumeCodePoint(),yn;break;case Vr:if(oi(Ae,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(Ae),this.consumeNumericToken();break;case qr:if(this.peekCodePoint(0)===ot)for(this.consumeCodePoint();;){var Xi=this.consumeCodePoint();if(Xi===ot&&(Xi=this.consumeCodePoint(),Xi===qr))return this.consumeToken();if(Xi===rn)return this.consumeToken()}break;case rr:return dr;case Fr:return Rr;case gn:if(this.peekCodePoint(0)===dn&&this.peekCodePoint(1)===Lr&&this.peekCodePoint(2)===Lr)return this.consumeCodePoint(),this.consumeCodePoint(),Sr;break;case Zn:var Ui=this.peekCodePoint(0),qi=this.peekCodePoint(1),Ja=this.peekCodePoint(2);if(qn(Ui,qi,Ja)){var an=this.consumeName();return{type:7,value:an}}break;case pi:return Gr;case An:if(zn(Ae,this.peekCodePoint(0)))return this.reconsumeCodePoint(Ae),this.consumeIdentLikeToken();break;case Ci:return ln;case Ni:if(this.peekCodePoint(0)===fr)return this.consumeCodePoint(),na;break;case zi:return ji;case Ne:return ha;case En:case Wt:var qa=this.peekCodePoint(0),go=this.peekCodePoint(1);return qa===Pt&&(vr(go)||go===it)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(Ae),this.consumeIdentLikeToken();case He:if(this.peekCodePoint(0)===fr)return this.consumeCodePoint(),yi;if(this.peekCodePoint(0)===He)return this.consumeCodePoint(),Aa;break;case Ge:if(this.peekCodePoint(0)===fr)return this.consumeCodePoint(),Ln;break;case rn:return kt}return di(Ae)?(this.consumeWhiteSpace(),kn):Lt(Ae)?(this.reconsumeCodePoint(Ae),this.consumeNumericToken()):mn(Ae)?(this.reconsumeCodePoint(Ae),this.consumeIdentLikeToken()):{type:6,value:t(Ae)}},Er.prototype.consumeCodePoint=function(){var Ae=this._value.shift();return typeof Ae=="undefined"?-1:Ae},Er.prototype.reconsumeCodePoint=function(Ae){this._value.unshift(Ae)},Er.prototype.peekCodePoint=function(Ae){return Ae>=this._value.length?-1:this._value[Ae]},Er.prototype.consumeUnicodeRangeToken=function(){for(var Ae=[],De=this.consumeCodePoint();vr(De)&&Ae.length<6;)Ae.push(De),De=this.consumeCodePoint();for(var We=!1;De===it&&Ae.length<6;)Ae.push(De),De=this.consumeCodePoint(),We=!0;if(We){var dt=parseInt(t.apply(void 0,Ae.map(function(Fn){return Fn===it?ei:Fn})),16),pr=parseInt(t.apply(void 0,Ae.map(function(Fn){return Fn===it?Ft:Fn})),16);return{type:30,start:dt,end:pr}}var an=parseInt(t.apply(void 0,Ae),16);if(this.peekCodePoint(0)===Lr&&vr(this.peekCodePoint(1))){this.consumeCodePoint(),De=this.consumeCodePoint();for(var Cn=[];vr(De)&&Cn.length<6;)Cn.push(De),De=this.consumeCodePoint();var pr=parseInt(t.apply(void 0,Cn),16);return{type:30,start:an,end:pr}}else return{type:30,start:an,end:an}},Er.prototype.consumeIdentLikeToken=function(){var Ae=this.consumeName();return Ae.toLowerCase()==="url"&&this.peekCodePoint(0)===Zt?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Zt?(this.consumeCodePoint(),{type:19,value:Ae}):{type:20,value:Ae}},Er.prototype.consumeUrlToken=function(){var Ae=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===rn)return{type:22,value:""};var De=this.peekCodePoint(0);if(De===Mt||De===bt){var We=this.consumeStringToken(this.consumeCodePoint());return We.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===rn||this.peekCodePoint(0)===Hr)?(this.consumeCodePoint(),{type:22,value:We.value}):(this.consumeBadUrlRemnants(),ca)}for(;;){var dt=this.consumeCodePoint();if(dt===rn||dt===Hr)return{type:22,value:t.apply(void 0,Ae)};if(di(dt))return this.consumeWhiteSpace(),this.peekCodePoint(0)===rn||this.peekCodePoint(0)===Hr?(this.consumeCodePoint(),{type:22,value:t.apply(void 0,Ae)}):(this.consumeBadUrlRemnants(),ca);if(dt===bt||dt===Mt||dt===Zt||On(dt))return this.consumeBadUrlRemnants(),ca;if(dt===An)if(zn(dt,this.peekCodePoint(0)))Ae.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ca;else Ae.push(dt)}},Er.prototype.consumeWhiteSpace=function(){for(;di(this.peekCodePoint(0));)this.consumeCodePoint()},Er.prototype.consumeBadUrlRemnants=function(){for(;;){var Ae=this.consumeCodePoint();if(Ae===Hr||Ae===rn)return;zn(Ae,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},Er.prototype.consumeStringSlice=function(Ae){for(var De=5e4,We="";Ae>0;){var dt=Math.min(De,Ae);We+=t.apply(void 0,this._value.splice(0,dt)),Ae-=dt}return this._value.shift(),We},Er.prototype.consumeStringToken=function(Ae){var De="",We=0;do{var dt=this._value[We];if(dt===rn||dt===void 0||dt===Ae)return De+=this.consumeStringSlice(We),{type:0,value:De};if(dt===Pr)return this._value.splice(0,We),kr;if(dt===An){var pr=this._value[We+1];pr!==rn&&pr!==void 0&&(pr===Pr?(De+=this.consumeStringSlice(We),We=-1,this._value.shift()):zn(dt,pr)&&(De+=this.consumeStringSlice(We),De+=t(this.consumeEscapedCodePoint()),We=-1))}We++}while(!0)},Er.prototype.consumeNumber=function(){var Ae=[],De=Ct,We=this.peekCodePoint(0);for((We===Pt||We===Lr)&&Ae.push(this.consumeCodePoint());Lt(this.peekCodePoint(0));)Ae.push(this.consumeCodePoint());We=this.peekCodePoint(0);var dt=this.peekCodePoint(1);if(We===Vr&&Lt(dt))for(Ae.push(this.consumeCodePoint(),this.consumeCodePoint()),De=Yt;Lt(this.peekCodePoint(0));)Ae.push(this.consumeCodePoint());We=this.peekCodePoint(0),dt=this.peekCodePoint(1);var pr=this.peekCodePoint(2);if((We===_t||We===Mi)&&((dt===Pt||dt===Lr)&&Lt(pr)||Lt(dt)))for(Ae.push(this.consumeCodePoint(),this.consumeCodePoint()),De=Yt;Lt(this.peekCodePoint(0));)Ae.push(this.consumeCodePoint());return[xi(Ae),De]},Er.prototype.consumeNumericToken=function(){var Ae=this.consumeNumber(),De=Ae[0],We=Ae[1],dt=this.peekCodePoint(0),pr=this.peekCodePoint(1),an=this.peekCodePoint(2);if(qn(dt,pr,an)){var Cn=this.consumeName();return{type:15,number:De,flags:We,unit:Cn}}return dt===er?(this.consumeCodePoint(),{type:16,number:De,flags:We}):{type:17,number:De,flags:We}},Er.prototype.consumeEscapedCodePoint=function(){var Ae=this.consumeCodePoint();if(vr(Ae)){for(var De=t(Ae);vr(this.peekCodePoint(0))&&De.length<6;)De+=t(this.consumeCodePoint());di(this.peekCodePoint(0))&&this.consumeCodePoint();var We=parseInt(De,16);return We===0||cr(We)||We>1114111?$e:We}return Ae===rn?$e:Ae},Er.prototype.consumeName=function(){for(var Ae="";;){var De=this.consumeCodePoint();if(Ur(De))Ae+=t(De);else if(zn(De,this.peekCodePoint(0)))Ae+=t(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(De),Ae}},Er}(),Nr=function(){function Er(Ae){this._tokens=Ae}return Er.create=function(Ae){var De=new _r;return De.write(Ae),new Er(De.read())},Er.parseValue=function(Ae){return Er.create(Ae).parseComponentValue()},Er.parseValues=function(Ae){return Er.create(Ae).parseComponentValues()},Er.prototype.parseComponentValue=function(){for(var Ae=this.consumeToken();Ae.type===31;)Ae=this.consumeToken();if(Ae.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(Ae);var De=this.consumeComponentValue();do Ae=this.consumeToken();while(Ae.type===31);if(Ae.type===32)return De;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},Er.prototype.parseComponentValues=function(){for(var Ae=[];;){var De=this.consumeComponentValue();if(De.type===32)return Ae;Ae.push(De),Ae.push()}},Er.prototype.consumeComponentValue=function(){var Ae=this.consumeToken();switch(Ae.type){case 11:case 28:case 2:return this.consumeSimpleBlock(Ae.type);case 19:return this.consumeFunction(Ae)}return Ae},Er.prototype.consumeSimpleBlock=function(Ae){for(var De={type:Ae,values:[]},We=this.consumeToken();;){if(We.type===32||vi(We,Ae))return De;this.reconsumeToken(We),De.values.push(this.consumeComponentValue()),We=this.consumeToken()}},Er.prototype.consumeFunction=function(Ae){for(var De={name:Ae.value,values:[],type:18};;){var We=this.consumeToken();if(We.type===32||We.type===3)return De;this.reconsumeToken(We),De.values.push(this.consumeComponentValue())}},Er.prototype.consumeToken=function(){var Ae=this._tokens.shift();return typeof Ae=="undefined"?kt:Ae},Er.prototype.reconsumeToken=function(Ae){this._tokens.unshift(Ae)},Er}(),Jr=function(Ae){return Ae.type===15},xn=function(Ae){return Ae.type===17},Tn=function(Ae){return Ae.type===20},wn=function(Ae){return Ae.type===0},$n=function(Ae,De){return Tn(Ae)&&Ae.value===De},Vn=function(Ae){return Ae.type!==31},mi=function(Ae){return Ae.type!==31&&Ae.type!==4},Ri=function(Ae){var De=[],We=[];return Ae.forEach(function(dt){if(dt.type===4){if(We.length===0)throw new Error("Error parsing function args, zero tokens for arg");De.push(We),We=[];return}dt.type!==31&&We.push(dt)}),We.length&&De.push(We),De},vi=function(Ae,De){return De===11&&Ae.type===12||De===28&&Ae.type===29?!0:De===2&&Ae.type===3},Bi=function(Ae){return Ae.type===17||Ae.type===15},Gi=function(Ae){return Ae.type===16||Bi(Ae)},ta=function(Ae){return Ae.length>1?[Ae[0],Ae[1]]:[Ae[0]]},Pi={type:17,number:0,flags:Ct},Ki={type:16,number:50,flags:Ct},Hi={type:16,number:100,flags:Ct},Qi=function(Ae,De,We){var dt=Ae[0],pr=Ae[1];return[da(dt,De),da(typeof pr!="undefined"?pr:dt,We)]},da=function(Ae,De){if(Ae.type===16)return Ae.number/100*De;if(Jr(Ae))switch(Ae.unit){case"rem":case"em":return 16*Ae.number;case"px":default:return Ae.number}return Ae.number},Oa="deg",ra="grad",Da="rad",Ra="turn",va={name:"angle",parse:function(Ae,De){if(De.type===15)switch(De.unit){case Oa:return Math.PI*De.number/180;case ra:return Math.PI/200*De.number;case Da:return De.number;case Ra:return Math.PI*2*De.number}throw new Error("Unsupported angle type")}},ga=function(Ae){return Ae.type===15&&(Ae.unit===Oa||Ae.unit===ra||Ae.unit===Da||Ae.unit===Ra)},_a=function(Ae){var De=Ae.filter(Tn).map(function(We){return We.value}).join(" ");switch(De){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Pi,Pi];case"to top":case"bottom":return ya(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Pi,Hi];case"to right":case"left":return ya(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Hi,Hi];case"to bottom":case"top":return ya(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Hi,Pi];case"to left":case"right":return ya(270)}return 0},ya=function(Ae){return Math.PI*Ae/180},Ga={name:"color",parse:function(Ae,De){if(De.type===18){var We=Eo[De.name];if(typeof We=="undefined")throw new Error('Attempting to parse an unsupported color function "'+De.name+'"');return We(Ae,De.values)}if(De.type===5){if(De.value.length===3){var dt=De.value.substring(0,1),pr=De.value.substring(1,2),an=De.value.substring(2,3);return no(parseInt(dt+dt,16),parseInt(pr+pr,16),parseInt(an+an,16),1)}if(De.value.length===4){var dt=De.value.substring(0,1),pr=De.value.substring(1,2),an=De.value.substring(2,3),Cn=De.value.substring(3,4);return no(parseInt(dt+dt,16),parseInt(pr+pr,16),parseInt(an+an,16),parseInt(Cn+Cn,16)/255)}if(De.value.length===6){var dt=De.value.substring(0,2),pr=De.value.substring(2,4),an=De.value.substring(4,6);return no(parseInt(dt,16),parseInt(pr,16),parseInt(an,16),1)}if(De.value.length===8){var dt=De.value.substring(0,2),pr=De.value.substring(2,4),an=De.value.substring(4,6),Cn=De.value.substring(6,8);return no(parseInt(dt,16),parseInt(pr,16),parseInt(an,16),parseInt(Cn,16)/255)}}if(De.type===20){var Fn=Co[De.value.toUpperCase()];if(typeof Fn!="undefined")return Fn}return Co.TRANSPARENT}},Ia=function(Ae){return(255&Ae)===0},Wa=function(Ae){var De=255&Ae,We=255&Ae>>8,dt=255&Ae>>16,pr=255&Ae>>24;return De<255?"rgba("+pr+","+dt+","+We+","+De/255+")":"rgb("+pr+","+dt+","+We+")"},no=function(Ae,De,We,dt){return(Ae<<24|De<<16|We<<8|Math.round(dt*255)<<0)>>>0},io=function(Ae,De){if(Ae.type===17)return Ae.number;if(Ae.type===16){var We=De===3?1:255;return De===3?Ae.number/100*We:Math.round(Ae.number/100*We)}return 0},uo=function(Ae,De){var We=De.filter(mi);if(We.length===3){var dt=We.map(io),pr=dt[0],an=dt[1],Cn=dt[2];return no(pr,an,Cn,1)}if(We.length===4){var Fn=We.map(io),pr=Fn[0],an=Fn[1],Cn=Fn[2],ii=Fn[3];return no(pr,an,Cn,ii)}return 0};function $i(Er,Ae,De){return De<0&&(De+=1),De>=1&&(De-=1),De<1/6?(Ae-Er)*De*6+Er:De<1/2?Ae:De<2/3?(Ae-Er)*6*(2/3-De)+Er:Er}var mo=function(Ae,De){var We=De.filter(mi),dt=We[0],pr=We[1],an=We[2],Cn=We[3],Fn=(dt.type===17?ya(dt.number):va.parse(Ae,dt))/(Math.PI*2),ii=Gi(pr)?pr.number/100:0,Xi=Gi(an)?an.number/100:0,Ui=typeof Cn!="undefined"&&Gi(Cn)?da(Cn,1):1;if(ii===0)return no(Xi*255,Xi*255,Xi*255,1);var qi=Xi<=.5?Xi*(ii+1):Xi+ii-Xi*ii,Ja=Xi*2-qi,qa=$i(Ja,qi,Fn+1/3),go=$i(Ja,qi,Fn),us=$i(Ja,qi,Fn-1/3);return no(qa*255,go*255,us*255,Ui)},Eo={hsl:mo,hsla:mo,rgb:uo,rgba:uo},ao=function(Ae,De){return Ga.parse(Ae,Nr.create(De).parseComponentValue())},Co={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},Ko={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(Ae,De){return De.map(function(We){if(Tn(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"},Qo=function(Ae,De){var We=Ga.parse(Ae,De[0]),dt=De[1];return dt&&Gi(dt)?{color:We,stop:dt}:{color:We,stop:null}},bo=function(Ae,De){var We=Ae[0],dt=Ae[Ae.length-1];We.stop===null&&(We.stop=Pi),dt.stop===null&&(dt.stop=Hi);for(var pr=[],an=0,Cn=0;Cn<Ae.length;Cn++){var Fn=Ae[Cn].stop;if(Fn!==null){var ii=da(Fn,De);ii>an?pr.push(ii):pr.push(an),an=ii}else pr.push(null)}for(var Xi=null,Cn=0;Cn<pr.length;Cn++){var Ui=pr[Cn];if(Ui===null)Xi===null&&(Xi=Cn);else if(Xi!==null){for(var qi=Cn-Xi,Ja=pr[Xi-1],qa=(Ui-Ja)/(qi+1),go=1;go<=qi;go++)pr[Xi+go-1]=qa*go;Xi=null}}return Ae.map(function(us,Yo){var Uo=us.color;return{color:Uo,stop:Math.max(Math.min(1,pr[Yo]/De),0)}})},xo=function(Ae,De,We){var dt=De/2,pr=We/2,an=da(Ae[0],De)-dt,Cn=pr-da(Ae[1],We);return(Math.atan2(Cn,an)+Math.PI*2)%(Math.PI*2)},ts=function(Ae,De,We){var dt=typeof Ae=="number"?Ae:xo(Ae,De,We),pr=Math.abs(De*Math.sin(dt))+Math.abs(We*Math.cos(dt)),an=De/2,Cn=We/2,Fn=pr/2,ii=Math.sin(dt-Math.PI/2)*Fn,Xi=Math.cos(dt-Math.PI/2)*Fn;return[pr,an-Xi,an+Xi,Cn-ii,Cn+ii]},ka=function(Ae,De){return Math.sqrt(Ae*Ae+De*De)},Io=function(Ae,De,We,dt,pr){var an=[[0,0],[0,De],[Ae,0],[Ae,De]];return an.reduce(function(Cn,Fn){var ii=Fn[0],Xi=Fn[1],Ui=ka(We-ii,dt-Xi);return(pr?Ui<Cn.optimumDistance:Ui>Cn.optimumDistance)?{optimumCorner:Fn,optimumDistance:Ui}:Cn},{optimumDistance:pr?Infinity:-Infinity,optimumCorner:null}).optimumCorner},Mo=function(Ae,De,We,dt,pr){var an=0,Cn=0;switch(Ae.size){case 0:Ae.shape===0?an=Cn=Math.min(Math.abs(De),Math.abs(De-dt),Math.abs(We),Math.abs(We-pr)):Ae.shape===1&&(an=Math.min(Math.abs(De),Math.abs(De-dt)),Cn=Math.min(Math.abs(We),Math.abs(We-pr)));break;case 2:if(Ae.shape===0)an=Cn=Math.min(ka(De,We),ka(De,We-pr),ka(De-dt,We),ka(De-dt,We-pr));else if(Ae.shape===1){var Fn=Math.min(Math.abs(We),Math.abs(We-pr))/Math.min(Math.abs(De),Math.abs(De-dt)),ii=Io(dt,pr,De,We,!0),Xi=ii[0],Ui=ii[1];an=ka(Xi-De,(Ui-We)/Fn),Cn=Fn*an}break;case 1:Ae.shape===0?an=Cn=Math.max(Math.abs(De),Math.abs(De-dt),Math.abs(We),Math.abs(We-pr)):Ae.shape===1&&(an=Math.max(Math.abs(De),Math.abs(De-dt)),Cn=Math.max(Math.abs(We),Math.abs(We-pr)));break;case 3:if(Ae.shape===0)an=Cn=Math.max(ka(De,We),ka(De,We-pr),ka(De-dt,We),ka(De-dt,We-pr));else if(Ae.shape===1){var Fn=Math.max(Math.abs(We),Math.abs(We-pr))/Math.max(Math.abs(De),Math.abs(De-dt)),qi=Io(dt,pr,De,We,!1),Xi=qi[0],Ui=qi[1];an=ka(Xi-De,(Ui-We)/Fn),Cn=Fn*an}break}return Array.isArray(Ae.size)&&(an=da(Ae.size[0],dt),Cn=Ae.size.length===2?da(Ae.size[1],pr):an),[an,Cn]},is=function(Ae,De){var We=ya(180),dt=[];return Ri(De).forEach(function(pr,an){if(an===0){var Cn=pr[0];if(Cn.type===20&&Cn.value==="to"){We=_a(pr);return}else if(ga(Cn)){We=va.parse(Ae,Cn);return}}var Fn=Qo(Ae,pr);dt.push(Fn)}),{angle:We,stops:dt,type:1}},To=function(Ae,De){var We=ya(180),dt=[];return Ri(De).forEach(function(pr,an){if(an===0){var Cn=pr[0];if(Cn.type===20&&["top","left","right","bottom"].indexOf(Cn.value)!==-1){We=_a(pr);return}else if(ga(Cn)){We=(va.parse(Ae,Cn)+ya(270))%ya(360);return}}var Fn=Qo(Ae,pr);dt.push(Fn)}),{angle:We,stops:dt,type:1}},Zo=function(Ae,De){var We=ya(180),dt=[],pr=1,an=0,Cn=3,Fn=[];return Ri(De).forEach(function(ii,Xi){var Ui=ii[0];if(Xi===0){if(Tn(Ui)&&Ui.value==="linear"){pr=1;return}else if(Tn(Ui)&&Ui.value==="radial"){pr=2;return}}if(Ui.type===18){if(Ui.name==="from"){var qi=Ga.parse(Ae,Ui.values[0]);dt.push({stop:Pi,color:qi})}else if(Ui.name==="to"){var qi=Ga.parse(Ae,Ui.values[0]);dt.push({stop:Hi,color:qi})}else if(Ui.name==="color-stop"){var Ja=Ui.values.filter(mi);if(Ja.length===2){var qi=Ga.parse(Ae,Ja[1]),qa=Ja[0];xn(qa)&&dt.push({stop:{type:16,number:qa.number*100,flags:qa.flags},color:qi})}}}}),pr===1?{angle:(We+ya(180))%ya(360),stops:dt,type:pr}:{size:Cn,shape:an,stops:dt,position:Fn,type:pr}},Vo="closest-side",Lo="farthest-side",ho="closest-corner",ja="farthest-corner",mt="circle",Cr="ellipse",tn="cover",Yr="contain",Xn=function(Ae,De){var We=0,dt=3,pr=[],an=[];return Ri(De).forEach(function(Cn,Fn){var ii=!0;if(Fn===0){var Xi=!1;ii=Cn.reduce(function(qi,Ja){if(Xi)if(Tn(Ja))switch(Ja.value){case"center":return an.push(Ki),qi;case"top":case"left":return an.push(Pi),qi;case"right":case"bottom":return an.push(Hi),qi}else(Gi(Ja)||Bi(Ja))&&an.push(Ja);else if(Tn(Ja))switch(Ja.value){case mt:return We=0,!1;case Cr:return We=1,!1;case"at":return Xi=!0,!1;case Vo:return dt=0,!1;case tn:case Lo:return dt=1,!1;case Yr:case ho:return dt=2,!1;case ja:return dt=3,!1}else if(Bi(Ja)||Gi(Ja))return Array.isArray(dt)||(dt=[]),dt.push(Ja),!1;return qi},ii)}if(ii){var Ui=Qo(Ae,Cn);pr.push(Ui)}}),{size:dt,shape:We,stops:pr,position:an,type:2}},hn=function(Ae,De){var We=0,dt=3,pr=[],an=[];return Ri(De).forEach(function(Cn,Fn){var ii=!0;if(Fn===0?ii=Cn.reduce(function(Ui,qi){if(Tn(qi))switch(qi.value){case"center":return an.push(Ki),!1;case"top":case"left":return an.push(Pi),!1;case"right":case"bottom":return an.push(Hi),!1}else if(Gi(qi)||Bi(qi))return an.push(qi),!1;return Ui},ii):Fn===1&&(ii=Cn.reduce(function(Ui,qi){if(Tn(qi))switch(qi.value){case mt:return We=0,!1;case Cr:return We=1,!1;case Yr:case Vo:return dt=0,!1;case Lo:return dt=1,!1;case ho:return dt=2,!1;case tn:case ja:return dt=3,!1}else if(Bi(qi)||Gi(qi))return Array.isArray(dt)||(dt=[]),dt.push(qi),!1;return Ui},ii)),ii){var Xi=Qo(Ae,Cn);pr.push(Xi)}}),{size:dt,shape:We,stops:pr,position:an,type:2}},Xr=function(Ae){return Ae.type===1},ni=function(Ae){return Ae.type===2},nn={name:"image",parse:function(Ae,De){if(De.type===22){var We={url:De.value,type:0};return Ae.cache.addImage(De.value),We}if(De.type===18){var dt=si[De.name];if(typeof dt=="undefined")throw new Error('Attempting to parse an unsupported image function "'+De.name+'"');return dt(Ae,De.values)}throw new Error("Unsupported image type "+De.type)}};function Wn(Er){return!(Er.type===20&&Er.value==="none")&&(Er.type!==18||!!si[Er.name])}var si={"linear-gradient":is,"-moz-linear-gradient":To,"-ms-linear-gradient":To,"-o-linear-gradient":To,"-webkit-linear-gradient":To,"radial-gradient":Xn,"-moz-radial-gradient":hn,"-ms-radial-gradient":hn,"-o-radial-gradient":hn,"-webkit-radial-gradient":hn,"-webkit-gradient":Zo},ui={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(Ae,De){if(De.length===0)return[];var We=De[0];return We.type===20&&We.value==="none"?[]:De.filter(function(dt){return mi(dt)&&Wn(dt)}).map(function(dt){return nn.parse(Ae,dt)})}},ai={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(Ae,De){return De.map(function(We){if(Tn(We))switch(We.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ei={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(Ae,De){return Ri(De).map(function(We){return We.filter(Gi)}).map(ta)}},gi={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(Ae,De){return Ri(De).map(function(We){return We.filter(Tn).map(function(dt){return dt.value}).join(" ")}).map(Ti)}},Ti=function(Ae){switch(Ae){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}},_i;(function(Er){Er.AUTO="auto",Er.CONTAIN="contain",Er.COVER="cover"})(_i||(_i={}));var ia={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(Ae,De){return Ri(De).map(function(We){return We.filter(Fi)})}},Fi=function(Ae){return Tn(Ae)||Gi(Ae)},fa=function(Ae){return{name:"border-"+Ae+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},za=fa("top"),Ca=fa("right"),xa=fa("bottom"),Ma=fa("left"),Pa=function(Ae){return{name:"border-radius-"+Ae,initialValue:"0 0",prefix:!1,type:1,parse:function(We,dt){return ta(dt.filter(Gi))}}},Wo=Pa("top-left"),Oo=Pa("top-right"),pa=Pa("bottom-right"),Sa=Pa("bottom-left"),Ea=function(Ae){return{name:"border-"+Ae+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(We,dt){switch(dt){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},Ka=Ea("top"),so=Ea("right"),lo=Ea("bottom"),wo=Ea("left"),No=function(Ae){return{name:"border-"+Ae+"-width",initialValue:"0",type:0,prefix:!1,parse:function(We,dt){return Jr(dt)?dt.number:0}}},cs=No("top"),hs=No("right"),Bs=No("bottom"),rs=No("left"),ns={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},co={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(Ae,De){switch(De){case"rtl":return 1;case"ltr":default:return 0}}},oo={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(Ae,De){return De.filter(Tn).reduce(function(We,dt){return We|eo(dt.value)},0)}},eo=function(Ae){switch(Ae){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(Ae,De){switch(De){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},xs={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(Ae,De){return De.type===20&&De.value==="normal"?0:De.type===17||De.type===15?De.number:0}},Po;(function(Er){Er.NORMAL="normal",Er.STRICT="strict"})(Po||(Po={}));var el={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(Ae,De){switch(De){case"strict":return Po.STRICT;case"normal":default:return Po.NORMAL}}},zo={name:"line-height",initialValue:"normal",prefix:!1,type:4},Jo=function(Ae,De){return Tn(Ae)&&Ae.value==="normal"?1.2*De:Ae.type===17?De*Ae.number:Gi(Ae)?da(Ae,De):De},ks={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(Ae,De){return De.type===20&&De.value==="none"?null:nn.parse(Ae,De)}},as={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(Ae,De){switch(De){case"inside":return 0;case"outside":default:return 1}}},fs={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(Ae,De){switch(De){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(Ae){return{name:"margin-"+Ae,initialValue:"0",prefix:!1,type:4}},Ls=Sn("top"),yl=Sn("right"),Ks=Sn("bottom"),Ws=Sn("left"),ps={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(Ae,De){return De.filter(Tn).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}})}},Ms={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(Ae,De){switch(De){case"break-word":return"break-word";case"normal":default:return"normal"}}},Zs=function(Ae){return{name:"padding-"+Ae,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},zs=Zs("top"),Es=Zs("right"),Ds=Zs("bottom"),tl=Zs("left"),Us={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(Ae,De){switch(De){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},Go={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(Ae,De){switch(De){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Do={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(Ae,De){return De.length===1&&$n(De[0],"none")?[]:Ri(De).map(function(We){for(var dt={color:Co.TRANSPARENT,offsetX:Pi,offsetY:Pi,blur:Pi},pr=0,an=0;an<We.length;an++){var Cn=We[an];Bi(Cn)?(pr===0?dt.offsetX=Cn:pr===1?dt.offsetY=Cn:dt.blur=Cn,pr++):dt.color=Ga.parse(Ae,Cn)}return dt})}},Ts={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(Ae,De){switch(De){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},Ns={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(Ae,De){if(De.type===20&&De.value==="none")return null;if(De.type===18){var We=sr[De.name];if(typeof We=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+De.name+'"');return We(De.values)}return null}},Ao=function(Ae){var De=Ae.filter(function(We){return We.type===17}).map(function(We){return We.number});return De.length===6?De:null},jt=function(Ae){var De=Ae.filter(function(ii){return ii.type===17}).map(function(ii){return ii.number}),We=De[0],dt=De[1];De[2],De[3];var pr=De[4],an=De[5];De[6],De[7],De[8],De[9],De[10],De[11];var Cn=De[12],Fn=De[13];return De[14],De[15],De.length===16?[We,dt,pr,an,Cn,Fn]:null},sr={matrix:Ao,matrix3d:jt},_n={type:16,number:50,flags:Ct},hi=[_n,_n],Nt={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(Ae,De){var We=De.filter(Gi);return We.length!==2?hi:[We[0],We[1]]}},ce={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(Ae,De){switch(De){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Ee;(function(Er){Er.NORMAL="normal",Er.BREAK_ALL="break-all",Er.KEEP_ALL="keep-all"})(Ee||(Ee={}));for(var Le={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(Ae,De){switch(De){case"break-all":return Ee.BREAK_ALL;case"keep-all":return Ee.KEEP_ALL;case"normal":default:return Ee.NORMAL}}},Qe={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(Ae,De){if(De.type===20)return{auto:!0,order:0};if(xn(De))return{auto:!1,order:De.number};throw new Error("Invalid z-index number parsed")}},Rt={name:"time",parse:function(Ae,De){if(De.type===15)switch(De.unit.toLowerCase()){case"s":return 1e3*De.number;case"ms":return De.number}throw new Error("Unsupported time type")}},lr={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(Ae,De){return xn(De)?De.number:1}},Qr={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},pn={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(Ae,De){return De.filter(Tn).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})}},In={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(Ae,De){var We=[],dt=[];return De.forEach(function(pr){switch(pr.type){case 20:case 0:We.push(pr.value);break;case 17:We.push(pr.number.toString());break;case 4:dt.push(We.join(" ")),We.length=0;break}}),We.length&&dt.push(We.join(" ")),dt.map(function(pr){return pr.indexOf(" ")===-1?pr:"'"+pr+"'"})}},li={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},bi={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(Ae,De){if(xn(De))return De.number;if(Tn(De))switch(De.value){case"bold":return 700;case"normal":default:return 400}return 400}},Ai={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(Ae,De){return De.filter(Tn).map(function(We){return We.value})}},Yi={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(Ae,De){switch(De){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},ua=function(Ae,De){return(Ae&De)!==0},Va={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(Ae,De){if(De.length===0)return[];var We=De[0];return We.type===20&&We.value==="none"?[]:De}},ro={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(Ae,De){if(De.length===0)return null;var We=De[0];if(We.type===20&&We.value==="none")return null;for(var dt=[],pr=De.filter(Vn),an=0;an<pr.length;an++){var Cn=pr[an],Fn=pr[an+1];if(Cn.type===20){var ii=Fn&&xn(Fn)?Fn.number:1;dt.push({counter:Cn.value,increment:ii})}}return dt}},So={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(Ae,De){if(De.length===0)return[];for(var We=[],dt=De.filter(Vn),pr=0;pr<dt.length;pr++){var an=dt[pr],Cn=dt[pr+1];if(Tn(an)&&an.value!=="none"){var Fn=Cn&&xn(Cn)?Cn.number:0;We.push({counter:an.value,reset:Fn})}}return We}},Ro={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(Ae,De){return De.filter(Jr).map(function(We){return Rt.parse(Ae,We)})}},jo={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(Ae,De){if(De.length===0)return null;var We=De[0];if(We.type===20&&We.value==="none")return null;var dt=[],pr=De.filter(wn);if(pr.length%2!==0)return null;for(var an=0;an<pr.length;an+=2){var Cn=pr[an].value,Fn=pr[an+1].value;dt.push({open:Cn,close:Fn})}return dt}},Cs=function(Ae,De,We){if(!Ae)return"";var dt=Ae[Math.min(De,Ae.length-1)];return dt?We?dt.open:dt.close:""},vs={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(Ae,De){return De.length===1&&$n(De[0],"none")?[]:Ri(De).map(function(We){for(var dt={color:255,offsetX:Pi,offsetY:Pi,blur:Pi,spread:Pi,inset:!1},pr=0,an=0;an<We.length;an++){var Cn=We[an];$n(Cn,"inset")?dt.inset=!0:Bi(Cn)?(pr===0?dt.offsetX=Cn:pr===1?dt.offsetY=Cn:pr===2?dt.blur=Cn:dt.spread=Cn,pr++):dt.color=Ga.parse(Ae,Cn)}return dt})}},os={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(Ae,De){var We=[0,1,2],dt=[];return De.filter(Tn).forEach(function(pr){switch(pr.value){case"stroke":dt.push(1);break;case"fill":dt.push(0);break;case"markers":dt.push(2);break}}),We.forEach(function(pr){dt.indexOf(pr)===-1&&dt.push(pr)}),dt}},Fo={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},yo={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(Ae,De){return Jr(De)?De.number:0}},As=function(){function Er(Ae,De){var We,dt;this.animationDuration=Fa(Ae,Ro,De.animationDuration),this.backgroundClip=Fa(Ae,Ko,De.backgroundClip),this.backgroundColor=Fa(Ae,to,De.backgroundColor),this.backgroundImage=Fa(Ae,ui,De.backgroundImage),this.backgroundOrigin=Fa(Ae,ai,De.backgroundOrigin),this.backgroundPosition=Fa(Ae,Ei,De.backgroundPosition),this.backgroundRepeat=Fa(Ae,gi,De.backgroundRepeat),this.backgroundSize=Fa(Ae,ia,De.backgroundSize),this.borderTopColor=Fa(Ae,za,De.borderTopColor),this.borderRightColor=Fa(Ae,Ca,De.borderRightColor),this.borderBottomColor=Fa(Ae,xa,De.borderBottomColor),this.borderLeftColor=Fa(Ae,Ma,De.borderLeftColor),this.borderTopLeftRadius=Fa(Ae,Wo,De.borderTopLeftRadius),this.borderTopRightRadius=Fa(Ae,Oo,De.borderTopRightRadius),this.borderBottomRightRadius=Fa(Ae,pa,De.borderBottomRightRadius),this.borderBottomLeftRadius=Fa(Ae,Sa,De.borderBottomLeftRadius),this.borderTopStyle=Fa(Ae,Ka,De.borderTopStyle),this.borderRightStyle=Fa(Ae,so,De.borderRightStyle),this.borderBottomStyle=Fa(Ae,lo,De.borderBottomStyle),this.borderLeftStyle=Fa(Ae,wo,De.borderLeftStyle),this.borderTopWidth=Fa(Ae,cs,De.borderTopWidth),this.borderRightWidth=Fa(Ae,hs,De.borderRightWidth),this.borderBottomWidth=Fa(Ae,Bs,De.borderBottomWidth),this.borderLeftWidth=Fa(Ae,rs,De.borderLeftWidth),this.boxShadow=Fa(Ae,vs,De.boxShadow),this.color=Fa(Ae,ns,De.color),this.direction=Fa(Ae,co,De.direction),this.display=Fa(Ae,oo,De.display),this.float=Fa(Ae,ss,De.cssFloat),this.fontFamily=Fa(Ae,In,De.fontFamily),this.fontSize=Fa(Ae,li,De.fontSize),this.fontStyle=Fa(Ae,Yi,De.fontStyle),this.fontVariant=Fa(Ae,Ai,De.fontVariant),this.fontWeight=Fa(Ae,bi,De.fontWeight),this.letterSpacing=Fa(Ae,xs,De.letterSpacing),this.lineBreak=Fa(Ae,el,De.lineBreak),this.lineHeight=Fa(Ae,zo,De.lineHeight),this.listStyleImage=Fa(Ae,ks,De.listStyleImage),this.listStylePosition=Fa(Ae,as,De.listStylePosition),this.listStyleType=Fa(Ae,fs,De.listStyleType),this.marginTop=Fa(Ae,Ls,De.marginTop),this.marginRight=Fa(Ae,yl,De.marginRight),this.marginBottom=Fa(Ae,Ks,De.marginBottom),this.marginLeft=Fa(Ae,Ws,De.marginLeft),this.opacity=Fa(Ae,lr,De.opacity);var pr=Fa(Ae,ps,De.overflow);this.overflowX=pr[0],this.overflowY=pr[pr.length>1?1:0],this.overflowWrap=Fa(Ae,Ms,De.overflowWrap),this.paddingTop=Fa(Ae,zs,De.paddingTop),this.paddingRight=Fa(Ae,Es,De.paddingRight),this.paddingBottom=Fa(Ae,Ds,De.paddingBottom),this.paddingLeft=Fa(Ae,tl,De.paddingLeft),this.paintOrder=Fa(Ae,os,De.paintOrder),this.position=Fa(Ae,Go,De.position),this.textAlign=Fa(Ae,Us,De.textAlign),this.textDecorationColor=Fa(Ae,Qr,(We=De.textDecorationColor)!==null&&We!==void 0?We:De.color),this.textDecorationLine=Fa(Ae,pn,(dt=De.textDecorationLine)!==null&&dt!==void 0?dt:De.textDecoration),this.textShadow=Fa(Ae,Do,De.textShadow),this.textTransform=Fa(Ae,Ts,De.textTransform),this.transform=Fa(Ae,Ns,De.transform),this.transformOrigin=Fa(Ae,Nt,De.transformOrigin),this.visibility=Fa(Ae,ce,De.visibility),this.webkitTextStrokeColor=Fa(Ae,Fo,De.webkitTextStrokeColor),this.webkitTextStrokeWidth=Fa(Ae,yo,De.webkitTextStrokeWidth),this.wordBreak=Fa(Ae,Le,De.wordBreak),this.zIndex=Fa(Ae,Qe,De.zIndex)}return Er.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},Er.prototype.isTransparent=function(){return Ia(this.backgroundColor)},Er.prototype.isTransformed=function(){return this.transform!==null},Er.prototype.isPositioned=function(){return this.position!==0},Er.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},Er.prototype.isFloating=function(){return this.float!==0},Er.prototype.isInlineLevel=function(){return ua(this.display,4)||ua(this.display,33554432)||ua(this.display,268435456)||ua(this.display,536870912)||ua(this.display,67108864)||ua(this.display,134217728)},Er}(),$s=function(){function Er(Ae,De){this.content=Fa(Ae,Va,De.content),this.quotes=Fa(Ae,jo,De.quotes)}return Er}(),ys=function(){function Er(Ae,De){this.counterIncrement=Fa(Ae,ro,De.counterIncrement),this.counterReset=Fa(Ae,So,De.counterReset)}return Er}(),Fa=function(Ae,De,We){var dt=new _r,pr=We!==null&&typeof We!="undefined"?We.toString():De.initialValue;dt.write(pr);var an=new Nr(dt.read());switch(De.type){case 2:var Cn=an.parseComponentValue();return De.parse(Ae,Tn(Cn)?Cn.value:De.initialValue);case 0:return De.parse(Ae,an.parseComponentValue());case 1:return De.parse(Ae,an.parseComponentValues());case 4:return an.parseComponentValue();case 3:switch(De.format){case"angle":return va.parse(Ae,an.parseComponentValue());case"color":return Ga.parse(Ae,an.parseComponentValue());case"image":return nn.parse(Ae,an.parseComponentValue());case"length":var Fn=an.parseComponentValue();return Bi(Fn)?Fn:Pi;case"length-percentage":var ii=an.parseComponentValue();return Gi(ii)?ii:Pi;case"time":return Rt.parse(Ae,an.parseComponentValue())}break}},ml="data-html2canvas-debug",cl=function(Ae){var De=Ae.getAttribute(ml);switch(De){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Ps=function(Ae,De){var We=cl(Ae);return We===1||De===We},ws=function(){function Er(Ae,De){if(this.context=Ae,this.textNodes=[],this.elements=[],this.flags=0,Ps(De,3))debugger;this.styles=new As(Ae,window.getComputedStyle(De,null)),bs(De)&&(this.styles.animationDuration.some(function(We){return We>0})&&(De.style.animationDuration="0s"),this.styles.transform!==null&&(De.style.transform="none")),this.bounds=l(this.context,De),Ps(De,4)&&(this.flags|=16)}return Er}(),Ys="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Vl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Nl=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),hl=0;hl<Vl.length;hl++)Nl[Vl.charCodeAt(hl)]=hl;for(var Os=function(Ae){var De=Ae.length*.75,We=Ae.length,dt,pr=0,an,Cn,Fn,ii;Ae[Ae.length-1]==="="&&(De--,Ae[Ae.length-2]==="="&&De--);var Xi=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(De):new Array(De),Ui=Array.isArray(Xi)?Xi:new Uint8Array(Xi);for(dt=0;dt<We;dt+=4)an=Nl[Ae.charCodeAt(dt)],Cn=Nl[Ae.charCodeAt(dt+1)],Fn=Nl[Ae.charCodeAt(dt+2)],ii=Nl[Ae.charCodeAt(dt+3)],Ui[pr++]=an<<2|Cn>>4,Ui[pr++]=(Cn&15)<<4|Fn>>2,Ui[pr++]=(Fn&3)<<6|ii&63;return Xi},Vs=function(Ae){for(var De=Ae.length,We=[],dt=0;dt<De;dt+=2)We.push(Ae[dt+1]<<8|Ae[dt]);return We},_l=function(Ae){for(var De=Ae.length,We=[],dt=0;dt<De;dt+=4)We.push(Ae[dt+3]<<24|Ae[dt+2]<<16|Ae[dt+1]<<8|Ae[dt]);return We},ol=5,Ho=6+5,vo=2,$o=Ho-ol,ms=65536>>ol,_s=1<<ol,qo=_s-1,Is=1024>>ol,Rs=ms+Is,nl=Rs,Il=2048>>6,Tl=nl+Il,Ul=65536>>Ho,Dl=1<<$o,Rl=Dl-1,Hl=function(Ae,De,We){return Ae.slice?Ae.slice(De,We):new Uint16Array(Array.prototype.slice.call(Ae,De,We))},sl=function(Ae,De,We){return Ae.slice?Ae.slice(De,We):new Uint32Array(Array.prototype.slice.call(Ae,De,We))},Gs=function(Ae,De){var We=Os(Ae),dt=Array.isArray(We)?_l(We):new Uint32Array(We),pr=Array.isArray(We)?Vs(We):new Uint16Array(We),an=24,Cn=Hl(pr,an/2,dt[4]/2),Fn=dt[5]===2?Hl(pr,(an+dt[4])/2):sl(dt,Math.ceil((an+dt[4])/4));return new ll(dt[0],dt[1],dt[2],dt[3],Cn,Fn)},ll=function(){function Er(Ae,De,We,dt,pr,an){this.initialValue=Ae,this.errorValue=De,this.highStart=We,this.highValueIndex=dt,this.index=pr,this.data=an}return Er.prototype.get=function(Ae){var De;if(Ae>=0){if(Ae<55296||Ae>56319&&Ae<=65535)return De=this.index[Ae>>ol],De=(De<<vo)+(Ae&qo),this.data[De];if(Ae<=65535)return De=this.index[ms+(Ae-55296>>ol)],De=(De<<vo)+(Ae&qo),this.data[De];if(Ae<this.highStart)return De=Tl-Ul+(Ae>>Ho),De=this.index[De],De+=Ae>>ol&Rl,De=this.index[De],De=(De<<vo)+(Ae&qo),this.data[De];if(Ae<=1114111)return this.data[this.highValueIndex]}return this.errorValue},Er}(),Xs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bl=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),kl=0;kl<Xs.length;kl++)bl[Xs.charCodeAt(kl)]=kl;var Yl=1,Zl=2,wl=3,Gl=4,tu=5,Iu=7,bu=8,du=9,hu=10,nu=11,Sl=12,Ml=13,Ll=14,$l=15,Pl=function(Ae){for(var De=[],We=0,dt=Ae.length;We<dt;){var pr=Ae.charCodeAt(We++);if(pr>=55296&&pr<=56319&&We<dt){var an=Ae.charCodeAt(We++);(an&64512)===56320?De.push(((pr&1023)<<10)+(an&1023)+65536):(De.push(pr),We--)}else De.push(pr)}return De},fu=function(){for(var Ae=[],De=0;De<arguments.length;De++)Ae[De]=arguments[De];if(String.fromCodePoint)return String.fromCodePoint.apply(String,Ae);var We=Ae.length;if(!We)return"";for(var dt=[],pr=-1,an="";++pr<We;){var Cn=Ae[pr];Cn<=65535?dt.push(Cn):(Cn-=65536,dt.push((Cn>>10)+55296,Cn%1024+56320)),(pr+1===We||dt.length>16384)&&(an+=String.fromCharCode.apply(String,dt),dt.length=0)}return an},xl=Gs(Ys),El="\xD7",pu="\xF7",mu=function(Ae){return xl.get(Ae)},Lu=function(Ae,De,We){var dt=We-2,pr=De[dt],an=De[We-1],Cn=De[We];if(an===Zl&&Cn===wl)return El;if(an===Zl||an===wl||an===Gl)return pu;if(Cn===Zl||Cn===wl||Cn===Gl)return pu;if(an===bu&&[bu,du,nu,Sl].indexOf(Cn)!==-1)return El;if((an===nu||an===du)&&(Cn===du||Cn===hu))return El;if((an===Sl||an===hu)&&Cn===hu)return El;if(Cn===Ml||Cn===tu)return El;if(Cn===Iu)return El;if(an===Yl)return El;if(an===Ml&&Cn===Ll){for(;pr===tu;)pr=De[--dt];if(pr===Ll)return El}if(an===$l&&Cn===$l){for(var Fn=0;pr===$l;)Fn++,pr=De[--dt];if(Fn%2===0)return El}return pu},Kl=function(Ae){var De=Pl(Ae),We=De.length,dt=0,pr=0,an=De.map(mu);return{next:function(){if(dt>=We)return{done:!0,value:null};for(var Fn=El;dt<We&&(Fn=Lu(De,an,++dt))===El;);if(Fn!==El||dt===We){var ii=fu.apply(null,De.slice(pr,dt));return pr=dt,{value:ii,done:!1}}return{done:!0,value:null}}}},ql=function(Ae){for(var De=Kl(Ae),We=[],dt;!(dt=De.next()).done;)dt.value&&We.push(dt.value.slice());return We},iu=function(Ae){var De=123;if(Ae.createRange){var We=Ae.createRange();if(We.getBoundingClientRect){var dt=Ae.createElement("boundtest");dt.style.height=De+"px",dt.style.display="block",Ae.body.appendChild(dt),We.selectNode(dt);var pr=We.getBoundingClientRect(),an=Math.round(pr.height);if(Ae.body.removeChild(dt),an===De)return!0}}return!1},au=function(Ae){var De=Ae.createElement("boundtest");De.style.width="50px",De.style.display="block",De.style.fontSize="12px",De.style.letterSpacing="0px",De.style.wordSpacing="0px",Ae.body.appendChild(De);var We=Ae.createRange();De.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var dt=De.firstChild,pr=n(dt.data).map(function(ii){return t(ii)}),an=0,Cn={},Fn=pr.every(function(ii,Xi){We.setStart(dt,an),We.setEnd(dt,an+ii.length);var Ui=We.getBoundingClientRect();an+=ii.length;var qi=Ui.x>Cn.x||Ui.y>Cn.y;return Cn=Ui,Xi===0?!0:qi});return Ae.body.removeChild(De),Fn},Ql=function(){return typeof new Image().crossOrigin!="undefined"},Ru=function(){return typeof new XMLHttpRequest().responseType=="string"},Nu=function(Ae){var De=new Image,We=Ae.createElement("canvas"),dt=We.getContext("2d");if(!dt)return!1;De.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{dt.drawImage(De,0,0),We.toDataURL()}catch(pr){return!1}return!0},Jl=function(Ae){return Ae[0]===0&&Ae[1]===255&&Ae[2]===0&&Ae[3]===255},gu=function(Ae){var De=Ae.createElement("canvas"),We=100;De.width=We,De.height=We;var dt=De.getContext("2d");if(!dt)return Promise.reject(!1);dt.fillStyle="rgb(0, 255, 0)",dt.fillRect(0,0,We,We);var pr=new Image,an=De.toDataURL();pr.src=an;var Cn=wu(We,We,0,0,pr);return dt.fillStyle="red",dt.fillRect(0,0,We,We),vu(Cn).then(function(Fn){dt.drawImage(Fn,0,0);var ii=dt.getImageData(0,0,We,We).data;dt.fillStyle="red",dt.fillRect(0,0,We,We);var Xi=Ae.createElement("div");return Xi.style.backgroundImage="url("+an+")",Xi.style.height=We+"px",Jl(ii)?vu(wu(We,We,0,0,Xi)):Promise.reject(!1)}).then(function(Fn){return dt.drawImage(Fn,0,0),Jl(dt.getImageData(0,0,We,We).data)}).catch(function(){return!1})},wu=function(Ae,De,We,dt,pr){var an="http://www.w3.org/2000/svg",Cn=document.createElementNS(an,"svg"),Fn=document.createElementNS(an,"foreignObject");return Cn.setAttributeNS(null,"width",Ae.toString()),Cn.setAttributeNS(null,"height",De.toString()),Fn.setAttributeNS(null,"width","100%"),Fn.setAttributeNS(null,"height","100%"),Fn.setAttributeNS(null,"x",We.toString()),Fn.setAttributeNS(null,"y",dt.toString()),Fn.setAttributeNS(null,"externalResourcesRequired","true"),Cn.appendChild(Fn),Fn.appendChild(pr),Cn},vu=function(Ae){return new Promise(function(De,We){var dt=new Image;dt.onload=function(){return De(dt)},dt.onerror=We,dt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(Ae))})},ul={get SUPPORT_RANGE_BOUNDS(){var Er=iu(document);return Object.defineProperty(ul,"SUPPORT_RANGE_BOUNDS",{value:Er}),Er},get SUPPORT_WORD_BREAKING(){var Er=ul.SUPPORT_RANGE_BOUNDS&&au(document);return Object.defineProperty(ul,"SUPPORT_WORD_BREAKING",{value:Er}),Er},get SUPPORT_SVG_DRAWING(){var Er=Nu(document);return Object.defineProperty(ul,"SUPPORT_SVG_DRAWING",{value:Er}),Er},get SUPPORT_FOREIGNOBJECT_DRAWING(){var Er=typeof Array.from=="function"&&typeof window.fetch=="function"?gu(document):Promise.resolve(!1);return Object.defineProperty(ul,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:Er}),Er},get SUPPORT_CORS_IMAGES(){var Er=Ql();return Object.defineProperty(ul,"SUPPORT_CORS_IMAGES",{value:Er}),Er},get SUPPORT_RESPONSE_TYPE(){var Er=Ru();return Object.defineProperty(ul,"SUPPORT_RESPONSE_TYPE",{value:Er}),Er},get SUPPORT_CORS_XHR(){var Er="withCredentials"in new XMLHttpRequest;return Object.defineProperty(ul,"SUPPORT_CORS_XHR",{value:Er}),Er},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var Er=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(ul,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:Er}),Er}},Ol=function(){function Er(Ae,De){this.text=Ae,this.bounds=De}return Er}(),ru=function(Ae,De,We,dt){var pr=su(De,We),an=[],Cn=0;return pr.forEach(function(Fn){if(We.textDecorationLine.length||Fn.trim().length>0)if(ul.SUPPORT_RANGE_BOUNDS){var ii=Su(dt,Cn,Fn.length).getClientRects();if(ii.length>1){var Xi=cu(Fn),Ui=0;Xi.forEach(function(Ja){an.push(new Ol(Ja,d.fromDOMRectList(Ae,Su(dt,Ui+Cn,Ja.length).getClientRects()))),Ui+=Ja.length})}else an.push(new Ol(Fn,d.fromDOMRectList(Ae,ii)))}else{var qi=dt.splitText(Fn.length);an.push(new Ol(Fn,Du(Ae,dt))),dt=qi}else ul.SUPPORT_RANGE_BOUNDS||(dt=dt.splitText(Fn.length));Cn+=Fn.length}),an},Du=function(Ae,De){var We=De.ownerDocument;if(We){var dt=We.createElement("html2canvaswrapper");dt.appendChild(De.cloneNode(!0));var pr=De.parentNode;if(pr){pr.replaceChild(dt,De);var an=l(Ae,dt);return dt.firstChild&&pr.replaceChild(dt.firstChild,dt),an}}return d.EMPTY},Su=function(Ae,De,We){var dt=Ae.ownerDocument;if(!dt)throw new Error("Node has no owner document");var pr=dt.createRange();return pr.setStart(Ae,De),pr.setEnd(Ae,De+We),pr},cu=function(Ae){if(ul.SUPPORT_NATIVE_TEXT_SEGMENTATION){var De=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(De.segment(Ae)).map(function(We){return We.segment})}return ql(Ae)},ou=function(Ae,De){if(ul.SUPPORT_NATIVE_TEXT_SEGMENTATION){var We=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(We.segment(Ae)).map(function(dt){return dt.segment})}return Au(Ae,De)},su=function(Ae,De){return De.letterSpacing!==0?cu(Ae):ou(Ae,De)},xu=[32,160,4961,65792,65793,4153,4241],Au=function(Ae,De){for(var We=Be(Ae,{lineBreak:De.lineBreak,wordBreak:De.overflowWrap==="break-word"?"break-word":De.wordBreak}),dt=[],pr,an=function(){if(pr.value){var Fn=pr.value.slice(),ii=n(Fn),Xi="";ii.forEach(function(Ui){xu.indexOf(Ui)===-1?Xi+=t(Ui):(Xi.length&&dt.push(Xi),dt.push(t(Ui)),Xi="")}),Xi.length&&dt.push(Xi)}};!(pr=We.next()).done;)an();return dt},ve=function(){function Er(Ae,De,We){this.text=q(De.data,We.textTransform),this.textBounds=ru(Ae,this.text,We,De)}return Er}(),q=function(Ae,De){switch(De){case 1:return Ae.toLowerCase();case 3:return Ae.replace(L,K);case 2:return Ae.toUpperCase();default:return Ae}},L=/(^|\s|:|-|\(|\))([a-z])/g,K=function(Ae,De,We){return Ae.length>0?De+We.toUpperCase():Ae},H=function(Er){p(Ae,Er);function Ae(De,We){var dt=Er.call(this,De,We)||this;return dt.src=We.currentSrc||We.src,dt.intrinsicWidth=We.naturalWidth,dt.intrinsicHeight=We.naturalHeight,dt.context.cache.addImage(dt.src),dt}return Ae}(ws),J=function(Er){p(Ae,Er);function Ae(De,We){var dt=Er.call(this,De,We)||this;return dt.canvas=We,dt.intrinsicWidth=We.width,dt.intrinsicHeight=We.height,dt}return Ae}(ws),ne=function(Er){p(Ae,Er);function Ae(De,We){var dt=Er.call(this,De,We)||this,pr=new XMLSerializer,an=l(De,We);return We.setAttribute("width",an.width+"px"),We.setAttribute("height",an.height+"px"),dt.svg="data:image/svg+xml,"+encodeURIComponent(pr.serializeToString(We)),dt.intrinsicWidth=We.width.baseVal.value,dt.intrinsicHeight=We.height.baseVal.value,dt.context.cache.addImage(dt.svg),dt}return Ae}(ws),we=function(Er){p(Ae,Er);function Ae(De,We){var dt=Er.call(this,De,We)||this;return dt.value=We.value,dt}return Ae}(ws),_e=function(Er){p(Ae,Er);function Ae(De,We){var dt=Er.call(this,De,We)||this;return dt.start=We.start,dt.reversed=typeof We.reversed=="boolean"&&We.reversed===!0,dt}return Ae}(ws),Xe=[{type:15,flags:0,unit:"px",number:3}],ut=[{type:16,flags:0,number:50}],ht=function(Ae){return Ae.width>Ae.height?new d(Ae.left+(Ae.width-Ae.height)/2,Ae.top,Ae.height,Ae.height):Ae.width<Ae.height?new d(Ae.left,Ae.top+(Ae.height-Ae.width)/2,Ae.width,Ae.width):Ae},Qt=function(Ae){var De=Ae.type===Kr?new Array(Ae.value.length+1).join("\u2022"):Ae.value;return De.length===0?Ae.placeholder||"":De},Tr="checkbox",br="radio",Kr="password",Zr=707406591,Pn=function(Er){p(Ae,Er);function Ae(De,We){var dt=Er.call(this,De,We)||this;dt.type=We.type.toLowerCase(),dt.checked=We.checked,dt.value=Qt(We),(dt.type===Tr||dt.type===br)&&(dt.styles.backgroundColor=3739148031,dt.styles.borderTopColor=dt.styles.borderRightColor=dt.styles.borderBottomColor=dt.styles.borderLeftColor=2779096575,dt.styles.borderTopWidth=dt.styles.borderRightWidth=dt.styles.borderBottomWidth=dt.styles.borderLeftWidth=1,dt.styles.borderTopStyle=dt.styles.borderRightStyle=dt.styles.borderBottomStyle=dt.styles.borderLeftStyle=1,dt.styles.backgroundClip=[0],dt.styles.backgroundOrigin=[0],dt.bounds=ht(dt.bounds));switch(dt.type){case Tr:dt.styles.borderTopRightRadius=dt.styles.borderTopLeftRadius=dt.styles.borderBottomRightRadius=dt.styles.borderBottomLeftRadius=Xe;break;case br:dt.styles.borderTopRightRadius=dt.styles.borderTopLeftRadius=dt.styles.borderBottomRightRadius=dt.styles.borderBottomLeftRadius=ut;break}return dt}return Ae}(ws),Nn=function(Er){p(Ae,Er);function Ae(De,We){var dt=Er.call(this,De,We)||this,pr=We.options[We.selectedIndex||0];return dt.value=pr&&pr.text||"",dt}return Ae}(ws),Jn=function(Er){p(Ae,Er);function Ae(De,We){var dt=Er.call(this,De,We)||this;return dt.value=We.value,dt}return Ae}(ws),wi=function(Er){p(Ae,Er);function Ae(De,We){var dt=Er.call(this,De,We)||this;dt.src=We.src,dt.width=parseInt(We.width,10)||0,dt.height=parseInt(We.height,10)||0,dt.backgroundColor=dt.styles.backgroundColor;try{if(We.contentWindow&&We.contentWindow.document&&We.contentWindow.document.documentElement){dt.tree=La(De,We.contentWindow.document.documentElement);var pr=We.contentWindow.document.documentElement?ao(De,getComputedStyle(We.contentWindow.document.documentElement).backgroundColor):Co.TRANSPARENT,an=We.contentWindow.document.body?ao(De,getComputedStyle(We.contentWindow.document.body).backgroundColor):Co.TRANSPARENT;dt.backgroundColor=Ia(pr)?Ia(an)?dt.styles.backgroundColor:an:pr}}catch(Cn){}return dt}return Ae}(ws),sa=["OL","UL","MENU"],Wi=function Er(Ae,De,We,dt){for(var pr=De.firstChild,an=void 0;pr;pr=an)if(an=pr.nextSibling,ba(pr)&&pr.data.trim().length>0)We.textNodes.push(new ve(Ae,pr,We.styles));else if(_o(pr))if(or(pr)&&pr.assignedNodes)pr.assignedNodes().forEach(function(Fn){return Er(Ae,Fn,We,dt)});else{var Cn=Ji(Ae,pr);Cn.styles.isVisible()&&(Xa(pr,Cn,dt)?Cn.flags|=4:Ua(Cn.styles)&&(Cn.flags|=2),sa.indexOf(pr.tagName)!==-1&&(Cn.flags|=8),We.elements.push(Cn),pr.slot,pr.shadowRoot?Er(Ae,pr.shadowRoot,Cn,dt):!Xt(pr)&&!ur(pr)&&!tr(pr)&&Er(Ae,pr,Cn,dt))}},Ji=function(Ae,De){return ae(De)?new H(Ae,De):on(De)?new J(Ae,De):ur(De)?new ne(Ae,De):rl(De)?new we(Ae,De):xe(De)?new _e(Ae,De):Ye(De)?new Pn(Ae,De):tr(De)?new Nn(Ae,De):Xt(De)?new Jn(Ae,De):Oe(De)?new wi(Ae,De):new ws(Ae,De)},La=function(Ae,De){var We=Ji(Ae,De);return We.flags|=4,Wi(Ae,De,We,We),We},Xa=function(Ae,De,We){return De.styles.isPositionedWithZIndex()||De.styles.opacity<1||De.styles.isTransformed()||Br(Ae)&&We.styles.isTransparent()},Ua=function(Ae){return Ae.isPositioned()||Ae.isFloating()},ba=function(Ae){return Ae.nodeType===Node.TEXT_NODE},_o=function(Ae){return Ae.nodeType===Node.ELEMENT_NODE},bs=function(Ae){return _o(Ae)&&typeof Ae.style!="undefined"&&!ds(Ae)},ds=function(Ae){return typeof Ae.className=="object"},rl=function(Ae){return Ae.tagName==="LI"},xe=function(Ae){return Ae.tagName==="OL"},Ye=function(Ae){return Ae.tagName==="INPUT"},St=function(Ae){return Ae.tagName==="HTML"},ur=function(Ae){return Ae.tagName==="svg"},Br=function(Ae){return Ae.tagName==="BODY"},on=function(Ae){return Ae.tagName==="CANVAS"},je=function(Ae){return Ae.tagName==="VIDEO"},ae=function(Ae){return Ae.tagName==="IMG"},Oe=function(Ae){return Ae.tagName==="IFRAME"},Ze=function(Ae){return Ae.tagName==="STYLE"},yt=function(Ae){return Ae.tagName==="SCRIPT"},Xt=function(Ae){return Ae.tagName==="TEXTAREA"},tr=function(Ae){return Ae.tagName==="SELECT"},or=function(Ae){return Ae.tagName==="SLOT"},Wr=function(Ae){return Ae.tagName.indexOf("-")>0},un=function(){function Er(){this.counters={}}return Er.prototype.getCounterValue=function(Ae){var De=this.counters[Ae];return De&&De.length?De[De.length-1]:1},Er.prototype.getCounterValues=function(Ae){var De=this.counters[Ae];return De||[]},Er.prototype.pop=function(Ae){var De=this;Ae.forEach(function(We){return De.counters[We].pop()})},Er.prototype.parse=function(Ae){var De=this,We=Ae.counterIncrement,dt=Ae.counterReset,pr=!0;We!==null&&We.forEach(function(Cn){var Fn=De.counters[Cn.counter];Fn&&Cn.increment!==0&&(pr=!1,Fn.length||Fn.push(1),Fn[Math.max(0,Fn.length-1)]+=Cn.increment)});var an=[];return pr&&dt.forEach(function(Cn){var Fn=De.counters[Cn.counter];an.push(Cn.counter),Fn||(Fn=De.counters[Cn.counter]=[]),Fn.push(Cn.reset)}),an},Er}(),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"]},jr={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"]},sn={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"]},vn={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"]},Un=function(Ae,De,We,dt,pr,an){return Ae<De||Ae>We?ie(Ae,pr,an.length>0):dt.integers.reduce(function(Cn,Fn,ii){for(;Ae>=Fn;)Ae-=Fn,Cn+=dt.values[ii];return Cn},"")+an},Ii=function(Ae,De,We,dt){var pr="";do We||Ae--,pr=dt(Ae)+pr,Ae/=De;while(Ae*De>=De);return pr},ki=function(Ae,De,We,dt,pr){var an=We-De+1;return(Ae<0?"-":"")+(Ii(Math.abs(Ae),an,dt,function(Cn){return t(Math.floor(Cn%an)+De)})+pr)},la=function(Ae,De,We){We===void 0&&(We=". ");var dt=De.length;return Ii(Math.abs(Ae),dt,!1,function(pr){return De[Math.floor(pr%dt)]})+We},Zi=1<<0,Ya=1<<1,wa=1<<2,po=1<<3,Za=function(Ae,De,We,dt,pr,an){if(Ae<-9999||Ae>9999)return ie(Ae,4,pr.length>0);var Cn=Math.abs(Ae),Fn=pr;if(Cn===0)return De[0]+Fn;for(var ii=0;Cn>0&&ii<=4;ii++){var Xi=Cn%10;Xi===0&&ua(an,Zi)&&Fn!==""?Fn=De[Xi]+Fn:Xi>1||Xi===1&&ii===0||Xi===1&&ii===1&&ua(an,Ya)||Xi===1&&ii===1&&ua(an,wa)&&Ae>100||Xi===1&&ii>1&&ua(an,po)?Fn=De[Xi]+(ii>0?We[ii-1]:"")+Fn:Xi===1&&ii>0&&(Fn=We[ii-1]+Fn),Cn=Math.floor(Cn/10)}return(Ae<0?dt:"")+Fn},Xo="\u5341\u767E\u5343\u842C",ls="\u62FE\u4F70\u4EDF\u842C",N="\u30DE\u30A4\u30CA\u30B9",j="\uB9C8\uC774\uB108\uC2A4",ie=function(Ae,De,We){var dt=We?". ":"",pr=We?"\u3001":"",an=We?", ":"",Cn=We?" ":"";switch(De){case 0:return"\u2022"+Cn;case 1:return"\u25E6"+Cn;case 2:return"\u25FE"+Cn;case 5:var Fn=ki(Ae,48,57,!0,dt);return Fn.length<4?"0"+Fn:Fn;case 4:return la(Ae,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",pr);case 6:return Un(Ae,1,3999,zr,3,dt).toLowerCase();case 7:return Un(Ae,1,3999,zr,3,dt);case 8:return ki(Ae,945,969,!1,dt);case 9:return ki(Ae,97,122,!1,dt);case 10:return ki(Ae,65,90,!1,dt);case 11:return ki(Ae,1632,1641,!0,dt);case 12:case 49:return Un(Ae,1,9999,jr,3,dt);case 35:return Un(Ae,1,9999,jr,3,dt).toLowerCase();case 13:return ki(Ae,2534,2543,!0,dt);case 14:case 30:return ki(Ae,6112,6121,!0,dt);case 15:return la(Ae,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",pr);case 16:return la(Ae,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",pr);case 17:case 48:return Za(Ae,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Xo,"\u8CA0",pr,Ya|wa|po);case 47:return Za(Ae,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",ls,"\u8CA0",pr,Zi|Ya|wa|po);case 42:return Za(Ae,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Xo,"\u8D1F",pr,Ya|wa|po);case 41:return Za(Ae,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",ls,"\u8D1F",pr,Zi|Ya|wa|po);case 26:return Za(Ae,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",N,pr,0);case 25:return Za(Ae,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",N,pr,Zi|Ya|wa);case 31:return Za(Ae,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",j,an,Zi|Ya|wa);case 33:return Za(Ae,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",j,an,0);case 32:return Za(Ae,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",j,an,Zi|Ya|wa);case 18:return ki(Ae,2406,2415,!0,dt);case 20:return Un(Ae,1,19999,vn,3,dt);case 21:return ki(Ae,2790,2799,!0,dt);case 22:return ki(Ae,2662,2671,!0,dt);case 22:return Un(Ae,1,10999,sn,3,dt);case 23:return la(Ae,"\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 la(Ae,"\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 ki(Ae,3302,3311,!0,dt);case 28:return la(Ae,"\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",pr);case 29:return la(Ae,"\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",pr);case 34:return ki(Ae,3792,3801,!0,dt);case 37:return ki(Ae,6160,6169,!0,dt);case 38:return ki(Ae,4160,4169,!0,dt);case 39:return ki(Ae,2918,2927,!0,dt);case 40:return ki(Ae,1776,1785,!0,dt);case 43:return ki(Ae,3046,3055,!0,dt);case 44:return ki(Ae,3174,3183,!0,dt);case 45:return ki(Ae,3664,3673,!0,dt);case 46:return ki(Ae,3872,3881,!0,dt);case 3:default:return ki(Ae,48,57,!0,dt)}},se="data-html2canvas-ignore",me=function(){function Er(Ae,De,We){if(this.context=Ae,this.options=We,this.scrolledElements=[],this.referenceElement=De,this.counters=new un,this.quoteDepth=0,!De.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(De.ownerDocument.documentElement,!1)}return Er.prototype.toIFrame=function(Ae,De){var We=this,dt=It(Ae,De);if(!dt.contentWindow)return Promise.reject("Unable to find iframe window");var pr=Ae.defaultView.pageXOffset,an=Ae.defaultView.pageYOffset,Cn=dt.contentWindow,Fn=Cn.document,ii=Or(dt).then(function(){return A(We,void 0,void 0,function(){var Xi,Ui;return m(this,function(qi){switch(qi.label){case 0:return this.scrolledElements.forEach(oa),Cn&&(Cn.scrollTo(De.left,De.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(Cn.scrollY!==De.top||Cn.scrollX!==De.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(Cn.scrollX-De.left,Cn.scrollY-De.top,0,0))),Xi=this.options.onclone,Ui=this.clonedReferenceElement,typeof Ui=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:Fn.fonts&&Fn.fonts.ready?[4,Fn.fonts.ready]:[3,2];case 1:qi.sent(),qi.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,wr(Fn)]:[3,4];case 3:qi.sent(),qi.label=4;case 4:return typeof Xi=="function"?[2,Promise.resolve().then(function(){return Xi(Fn,Ui)}).then(function(){return dt})]:[2,dt]}})})});return Fn.open(),Fn.write(Si(document.doctype)+"<html></html>"),Oi(this.referenceElement.ownerDocument,pr,an),Fn.replaceChild(Fn.adoptNode(this.documentElement),Fn.documentElement),Fn.close(),ii},Er.prototype.createElementClone=function(Ae){if(Ps(Ae,2))debugger;if(on(Ae))return this.createCanvasClone(Ae);if(je(Ae))return this.createVideoClone(Ae);if(Ze(Ae))return this.createStyleClone(Ae);var De=Ae.cloneNode(!1);return ae(De)&&(ae(Ae)&&Ae.currentSrc&&Ae.currentSrc!==Ae.src&&(De.src=Ae.currentSrc,De.srcset=""),De.loading==="lazy"&&(De.loading="eager")),Wr(De)?this.createCustomElementClone(De):De},Er.prototype.createCustomElementClone=function(Ae){var De=document.createElement("html2canvascustomelement");return ti(Ae.style,De),De},Er.prototype.createStyleClone=function(Ae){try{var De=Ae.sheet;if(De&&De.cssRules){var We=[].slice.call(De.cssRules,0).reduce(function(pr,an){return an&&typeof an.cssText=="string"?pr+an.cssText:pr},""),dt=Ae.cloneNode(!1);return dt.textContent=We,dt}}catch(pr){if(this.context.logger.error("Unable to access cssRules property",pr),pr.name!=="SecurityError")throw pr}return Ae.cloneNode(!1)},Er.prototype.createCanvasClone=function(Ae){var De;if(this.options.inlineImages&&Ae.ownerDocument){var We=Ae.ownerDocument.createElement("img");try{return We.src=Ae.toDataURL(),We}catch(ii){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",Ae)}}var dt=Ae.cloneNode(!1);try{dt.width=Ae.width,dt.height=Ae.height;var pr=Ae.getContext("2d"),an=dt.getContext("2d");if(an)if(!this.options.allowTaint&&pr)an.putImageData(pr.getImageData(0,0,Ae.width,Ae.height),0,0);else{var Cn=(De=Ae.getContext("webgl2"))!==null&&De!==void 0?De:Ae.getContext("webgl");if(Cn){var Fn=Cn.getContextAttributes();(Fn==null?void 0:Fn.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",Ae)}an.drawImage(Ae,0,0)}return dt}catch(ii){this.context.logger.info("Unable to clone canvas as it is tainted",Ae)}return dt},Er.prototype.createVideoClone=function(Ae){var De=Ae.ownerDocument.createElement("canvas");De.width=Ae.offsetWidth,De.height=Ae.offsetHeight;var We=De.getContext("2d");try{return We&&(We.drawImage(Ae,0,0,De.width,De.height),this.options.allowTaint||We.getImageData(0,0,De.width,De.height)),De}catch(pr){this.context.logger.info("Unable to clone video as it is tainted",Ae)}var dt=Ae.ownerDocument.createElement("canvas");return dt.width=Ae.offsetWidth,dt.height=Ae.offsetHeight,dt},Er.prototype.appendChildNode=function(Ae,De,We){(!_o(De)||!yt(De)&&!De.hasAttribute(se)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(De)))&&((!this.options.copyStyles||!_o(De)||!Ze(De))&&Ae.appendChild(this.cloneNode(De,We)))},Er.prototype.cloneChildNodes=function(Ae,De,We){for(var dt=this,pr=Ae.shadowRoot?Ae.shadowRoot.firstChild:Ae.firstChild;pr;pr=pr.nextSibling)if(_o(pr)&&or(pr)&&typeof pr.assignedNodes=="function"){var an=pr.assignedNodes();an.length&&an.forEach(function(Cn){return dt.appendChildNode(De,Cn,We)})}else this.appendChildNode(De,pr,We)},Er.prototype.cloneNode=function(Ae,De){if(ba(Ae))return document.createTextNode(Ae.data);if(!Ae.ownerDocument)return Ae.cloneNode(!1);var We=Ae.ownerDocument.defaultView;if(We&&_o(Ae)&&(bs(Ae)||ds(Ae))){var dt=this.createElementClone(Ae);dt.style.transitionProperty="none";var pr=We.getComputedStyle(Ae),an=We.getComputedStyle(Ae,":before"),Cn=We.getComputedStyle(Ae,":after");this.referenceElement===Ae&&bs(dt)&&(this.clonedReferenceElement=dt),Br(dt)&&fo(dt);var Fn=this.counters.parse(new ys(this.context,pr)),ii=this.resolvePseudoContent(Ae,dt,an,ze.BEFORE);Wr(Ae)&&(De=!0),je(Ae)||this.cloneChildNodes(Ae,dt,De),ii&&dt.insertBefore(ii,dt.firstChild);var Xi=this.resolvePseudoContent(Ae,dt,Cn,ze.AFTER);return Xi&&dt.appendChild(Xi),this.counters.pop(Fn),(pr&&(this.options.copyStyles||ds(Ae))&&!Oe(Ae)||De)&&ti(pr,dt),(Ae.scrollTop!==0||Ae.scrollLeft!==0)&&this.scrolledElements.push([dt,Ae.scrollLeft,Ae.scrollTop]),(Xt(Ae)||tr(Ae))&&(Xt(dt)||tr(dt))&&(dt.value=Ae.value),dt}return Ae.cloneNode(!1)},Er.prototype.resolvePseudoContent=function(Ae,De,We,dt){var pr=this;if(!We)return;var an=We.content,Cn=De.ownerDocument;if(!Cn||!an||an==="none"||an==="-moz-alt-content"||We.display==="none")return;this.counters.parse(new ys(this.context,We));var Fn=new $s(this.context,We),ii=Cn.createElement("html2canvaspseudoelement");ti(We,ii),Fn.content.forEach(function(Ui){if(Ui.type===0)ii.appendChild(Cn.createTextNode(Ui.value));else if(Ui.type===22){var qi=Cn.createElement("img");qi.src=Ui.value,qi.style.opacity="1",ii.appendChild(qi)}else if(Ui.type===18){if(Ui.name==="attr"){var Ja=Ui.values.filter(Tn);Ja.length&&ii.appendChild(Cn.createTextNode(Ae.getAttribute(Ja[0].value)||""))}else if(Ui.name==="counter"){var qa=Ui.values.filter(mi),go=qa[0],us=qa[1];if(go&&Tn(go)){var Yo=pr.counters.getCounterValue(go.value),Uo=us&&Tn(us)?fs.parse(pr.context,us.value):3;ii.appendChild(Cn.createTextNode(ie(Yo,Uo,!1)))}}else if(Ui.name==="counters"){var Js=Ui.values.filter(mi),go=Js[0],al=Js[1],us=Js[2];if(go&&Tn(go)){var js=pr.counters.getCounterValues(go.value),ko=us&&Tn(us)?fs.parse(pr.context,us.value):3,pl=al&&al.type===0?al.value:"",vl=js.map(function(Mu){return ie(Mu,ko,!1)}).join(pl);ii.appendChild(Cn.createTextNode(vl))}}}else if(Ui.type===20)switch(Ui.value){case"open-quote":ii.appendChild(Cn.createTextNode(Cs(Fn.quotes,pr.quoteDepth++,!0)));break;case"close-quote":ii.appendChild(Cn.createTextNode(Cs(Fn.quotes,--pr.quoteDepth,!1)));break;default:ii.appendChild(Cn.createTextNode(Ui.value))}}),ii.className=Ba+" "+Na;var Xi=dt===ze.BEFORE?" "+Ba:" "+Na;return ds(De)?De.className.baseValue+=Xi:De.className+=Xi,ii},Er.destroy=function(Ae){return Ae.parentNode?(Ae.parentNode.removeChild(Ae),!0):!1},Er}(),ze;(function(Er){Er[Er.BEFORE=0]="BEFORE",Er[Er.AFTER=1]="AFTER"})(ze||(ze={}));var It=function(Ae,De){var We=Ae.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=De.width.toString(),We.height=De.height.toString(),We.scrolling="no",We.setAttribute(se,"true"),Ae.body.appendChild(We),We},ir=function(Ae){return new Promise(function(De){if(Ae.complete){De();return}if(!Ae.src){De();return}Ae.onload=De,Ae.onerror=De})},wr=function(Ae){return Promise.all([].slice.call(Ae.images,0).map(ir))},Or=function(Ae){return new Promise(function(De,We){var dt=Ae.contentWindow;if(!dt)return We("No window assigned for iframe");var pr=dt.document;dt.onload=Ae.onload=function(){dt.onload=Ae.onload=null;var an=setInterval(function(){pr.body.childNodes.length>0&&pr.readyState==="complete"&&(clearInterval(an),De(Ae))},50)}})},Bn=["all","d","content"],ti=function(Ae,De){for(var We=Ae.length-1;We>=0;We--){var dt=Ae.item(We);Bn.indexOf(dt)===-1&&De.style.setProperty(dt,Ae.getPropertyValue(dt))}return De},Si=function(Ae){var De="";return Ae&&(De+="<!DOCTYPE ",Ae.name&&(De+=Ae.name),Ae.internalSubset&&(De+=Ae.internalSubset),Ae.publicId&&(De+='"'+Ae.publicId+'"'),Ae.systemId&&(De+='"'+Ae.systemId+'"'),De+=">"),De},Oi=function(Ae,De,We){Ae&&Ae.defaultView&&(De!==Ae.defaultView.pageXOffset||We!==Ae.defaultView.pageYOffset)&&Ae.defaultView.scrollTo(De,We)},oa=function(Ae){var De=Ae[0],We=Ae[1],dt=Ae[2];De.scrollLeft=We,De.scrollTop=dt},Ta=":before",Ha=":after",Ba="___html2canvas___pseudoelement_before",Na="___html2canvas___pseudoelement_after",$a=`{
content: "" !important;
display: none !important;
}`,fo=function(Ae){es(Ae,"."+Ba+Ta+$a+`
.`+Na+Ha+$a)},es=function(Ae,De){var We=Ae.ownerDocument;if(We){var dt=We.createElement("style");dt.textContent=De,Ae.appendChild(dt)}},Bo=function(){function Er(){}return Er.getOrigin=function(Ae){var De=Er._link;return De?(De.href=Ae,De.href=De.href,De.protocol+De.hostname+De.port):"about:blank"},Er.isSameOrigin=function(Ae){return Er.getOrigin(Ae)===Er._origin},Er.setContext=function(Ae){Er._link=Ae.document.createElement("a"),Er._origin=Er.getOrigin(Ae.location.href)},Er._origin="about:blank",Er}(),Ss=function(){function Er(Ae,De){this.context=Ae,this._options=De,this._cache={}}return Er.prototype.addImage=function(Ae){var De=Promise.resolve();return this.has(Ae)||(zl(Ae)||Fl(Ae))&&(this._cache[Ae]=this.loadImage(Ae)).catch(function(){}),De},Er.prototype.match=function(Ae){return this._cache[Ae]},Er.prototype.loadImage=function(Ae){return A(this,void 0,void 0,function(){var De,We,dt,pr,an=this;return m(this,function(Cn){switch(Cn.label){case 0:return De=Bo.isSameOrigin(Ae),We=!Wl(Ae)&&this._options.useCORS===!0&&ul.SUPPORT_CORS_IMAGES&&!De,dt=!Wl(Ae)&&!De&&!zl(Ae)&&typeof this._options.proxy=="string"&&ul.SUPPORT_CORS_XHR&&!We,!De&&this._options.allowTaint===!1&&!Wl(Ae)&&!zl(Ae)&&!dt&&!We?[2]:(pr=Ae,dt?[4,this.proxy(pr)]:[3,2]);case 1:pr=Cn.sent(),Cn.label=2;case 2:return this.context.logger.debug("Added image "+Ae.substring(0,256)),[4,new Promise(function(Fn,ii){var Xi=new Image;Xi.onload=function(){return Fn(Xi)},Xi.onerror=ii,(Cl(pr)||We)&&(Xi.crossOrigin="anonymous"),Xi.src=pr,Xi.complete===!0&&setTimeout(function(){return Fn(Xi)},500),an._options.imageTimeout>0&&setTimeout(function(){return ii("Timed out ("+an._options.imageTimeout+"ms) loading image")},an._options.imageTimeout)})];case 3:return[2,Cn.sent()]}})})},Er.prototype.has=function(Ae){return typeof this._cache[Ae]!="undefined"},Er.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},Er.prototype.proxy=function(Ae){var De=this,We=this._options.proxy;if(!We)throw new Error("No proxy defined");var dt=Ae.substring(0,256);return new Promise(function(pr,an){var Cn=ul.SUPPORT_RESPONSE_TYPE?"blob":"text",Fn=new XMLHttpRequest;Fn.onload=function(){if(Fn.status===200)if(Cn==="text")pr(Fn.response);else{var Ui=new FileReader;Ui.addEventListener("load",function(){return pr(Ui.result)},!1),Ui.addEventListener("error",function(qi){return an(qi)},!1),Ui.readAsDataURL(Fn.response)}else an("Failed to proxy resource "+dt+" with status code "+Fn.status)},Fn.onerror=an;var ii=We.indexOf("?")>-1?"&":"?";if(Fn.open("GET",""+We+ii+"url="+encodeURIComponent(Ae)+"&responseType="+Cn),Cn!=="text"&&Fn instanceof XMLHttpRequest&&(Fn.responseType=Cn),De._options.imageTimeout){var Xi=De._options.imageTimeout;Fn.timeout=Xi,Fn.ontimeout=function(){return an("Timed out ("+Xi+"ms) proxying "+dt)}}Fn.send()})},Er}(),Qs=/^data:image\/svg\+xml/i,gl=/^data:image\/.*;base64,/i,il=/^data:image\/.*/i,Fl=function(Ae){return ul.SUPPORT_SVG_DRAWING||!Bl(Ae)},Wl=function(Ae){return il.test(Ae)},Cl=function(Ae){return gl.test(Ae)},zl=function(Ae){return Ae.substr(0,4)==="blob"},Bl=function(Ae){return Ae.substr(-3).toLowerCase()==="svg"||Qs.test(Ae)},Qa=function(){function Er(Ae,De){this.type=0,this.x=Ae,this.y=De}return Er.prototype.add=function(Ae,De){return new Er(this.x+Ae,this.y+De)},Er}(),fl=function(Ae,De,We){return new Qa(Ae.x+(De.x-Ae.x)*We,Ae.y+(De.y-Ae.y)*We)},dl=function(){function Er(Ae,De,We,dt){this.type=1,this.start=Ae,this.startControl=De,this.endControl=We,this.end=dt}return Er.prototype.subdivide=function(Ae,De){var We=fl(this.start,this.startControl,Ae),dt=fl(this.startControl,this.endControl,Ae),pr=fl(this.endControl,this.end,Ae),an=fl(We,dt,Ae),Cn=fl(dt,pr,Ae),Fn=fl(an,Cn,Ae);return De?new Er(this.start,We,an,Fn):new Er(Fn,Cn,pr,this.end)},Er.prototype.add=function(Ae,De){return new Er(this.start.add(Ae,De),this.startControl.add(Ae,De),this.endControl.add(Ae,De),this.end.add(Ae,De))},Er.prototype.reverse=function(){return new Er(this.end,this.endControl,this.startControl,this.start)},Er}(),Al=function(Ae){return Ae.type===1},Bu=function(){function Er(Ae){var De=Ae.styles,We=Ae.bounds,dt=Qi(De.borderTopLeftRadius,We.width,We.height),pr=dt[0],an=dt[1],Cn=Qi(De.borderTopRightRadius,We.width,We.height),Fn=Cn[0],ii=Cn[1],Xi=Qi(De.borderBottomRightRadius,We.width,We.height),Ui=Xi[0],qi=Xi[1],Ja=Qi(De.borderBottomLeftRadius,We.width,We.height),qa=Ja[0],go=Ja[1],us=[];us.push((pr+Fn)/We.width),us.push((qa+Ui)/We.width),us.push((an+go)/We.height),us.push((ii+qi)/We.height);var Yo=Math.max.apply(Math,us);Yo>1&&(pr/=Yo,an/=Yo,Fn/=Yo,ii/=Yo,Ui/=Yo,qi/=Yo,qa/=Yo,go/=Yo);var Uo=We.width-Fn,Js=We.height-qi,al=We.width-Ui,js=We.height-go,ko=De.borderTopWidth,pl=De.borderRightWidth,vl=De.borderBottomWidth,Hs=De.borderLeftWidth,Ou=da(De.paddingTop,Ae.bounds.width),Mu=da(De.paddingRight,Ae.bounds.width),_u=da(De.paddingBottom,Ae.bounds.width),eu=da(De.paddingLeft,Ae.bounds.width);this.topLeftBorderDoubleOuterBox=pr>0||an>0?gs(We.left+Hs/3,We.top+ko/3,pr-Hs/3,an-ko/3,Fs.TOP_LEFT):new Qa(We.left+Hs/3,We.top+ko/3),this.topRightBorderDoubleOuterBox=pr>0||an>0?gs(We.left+Uo,We.top+ko/3,Fn-pl/3,ii-ko/3,Fs.TOP_RIGHT):new Qa(We.left+We.width-pl/3,We.top+ko/3),this.bottomRightBorderDoubleOuterBox=Ui>0||qi>0?gs(We.left+al,We.top+Js,Ui-pl/3,qi-vl/3,Fs.BOTTOM_RIGHT):new Qa(We.left+We.width-pl/3,We.top+We.height-vl/3),this.bottomLeftBorderDoubleOuterBox=qa>0||go>0?gs(We.left+Hs/3,We.top+js,qa-Hs/3,go-vl/3,Fs.BOTTOM_LEFT):new Qa(We.left+Hs/3,We.top+We.height-vl/3),this.topLeftBorderDoubleInnerBox=pr>0||an>0?gs(We.left+Hs*2/3,We.top+ko*2/3,pr-Hs*2/3,an-ko*2/3,Fs.TOP_LEFT):new Qa(We.left+Hs*2/3,We.top+ko*2/3),this.topRightBorderDoubleInnerBox=pr>0||an>0?gs(We.left+Uo,We.top+ko*2/3,Fn-pl*2/3,ii-ko*2/3,Fs.TOP_RIGHT):new Qa(We.left+We.width-pl*2/3,We.top+ko*2/3),this.bottomRightBorderDoubleInnerBox=Ui>0||qi>0?gs(We.left+al,We.top+Js,Ui-pl*2/3,qi-vl*2/3,Fs.BOTTOM_RIGHT):new Qa(We.left+We.width-pl*2/3,We.top+We.height-vl*2/3),this.bottomLeftBorderDoubleInnerBox=qa>0||go>0?gs(We.left+Hs*2/3,We.top+js,qa-Hs*2/3,go-vl*2/3,Fs.BOTTOM_LEFT):new Qa(We.left+Hs*2/3,We.top+We.height-vl*2/3),this.topLeftBorderStroke=pr>0||an>0?gs(We.left+Hs/2,We.top+ko/2,pr-Hs/2,an-ko/2,Fs.TOP_LEFT):new Qa(We.left+Hs/2,We.top+ko/2),this.topRightBorderStroke=pr>0||an>0?gs(We.left+Uo,We.top+ko/2,Fn-pl/2,ii-ko/2,Fs.TOP_RIGHT):new Qa(We.left+We.width-pl/2,We.top+ko/2),this.bottomRightBorderStroke=Ui>0||qi>0?gs(We.left+al,We.top+Js,Ui-pl/2,qi-vl/2,Fs.BOTTOM_RIGHT):new Qa(We.left+We.width-pl/2,We.top+We.height-vl/2),this.bottomLeftBorderStroke=qa>0||go>0?gs(We.left+Hs/2,We.top+js,qa-Hs/2,go-vl/2,Fs.BOTTOM_LEFT):new Qa(We.left+Hs/2,We.top+We.height-vl/2),this.topLeftBorderBox=pr>0||an>0?gs(We.left,We.top,pr,an,Fs.TOP_LEFT):new Qa(We.left,We.top),this.topRightBorderBox=Fn>0||ii>0?gs(We.left+Uo,We.top,Fn,ii,Fs.TOP_RIGHT):new Qa(We.left+We.width,We.top),this.bottomRightBorderBox=Ui>0||qi>0?gs(We.left+al,We.top+Js,Ui,qi,Fs.BOTTOM_RIGHT):new Qa(We.left+We.width,We.top+We.height),this.bottomLeftBorderBox=qa>0||go>0?gs(We.left,We.top+js,qa,go,Fs.BOTTOM_LEFT):new Qa(We.left,We.top+We.height),this.topLeftPaddingBox=pr>0||an>0?gs(We.left+Hs,We.top+ko,Math.max(0,pr-Hs),Math.max(0,an-ko),Fs.TOP_LEFT):new Qa(We.left+Hs,We.top+ko),this.topRightPaddingBox=Fn>0||ii>0?gs(We.left+Math.min(Uo,We.width-pl),We.top+ko,Uo>We.width+pl?0:Math.max(0,Fn-pl),Math.max(0,ii-ko),Fs.TOP_RIGHT):new Qa(We.left+We.width-pl,We.top+ko),this.bottomRightPaddingBox=Ui>0||qi>0?gs(We.left+Math.min(al,We.width-Hs),We.top+Math.min(Js,We.height-vl),Math.max(0,Ui-pl),Math.max(0,qi-vl),Fs.BOTTOM_RIGHT):new Qa(We.left+We.width-pl,We.top+We.height-vl),this.bottomLeftPaddingBox=qa>0||go>0?gs(We.left+Hs,We.top+Math.min(js,We.height-vl),Math.max(0,qa-Hs),Math.max(0,go-vl),Fs.BOTTOM_LEFT):new Qa(We.left+Hs,We.top+We.height-vl),this.topLeftContentBox=pr>0||an>0?gs(We.left+Hs+eu,We.top+ko+Ou,Math.max(0,pr-(Hs+eu)),Math.max(0,an-(ko+Ou)),Fs.TOP_LEFT):new Qa(We.left+Hs+eu,We.top+ko+Ou),this.topRightContentBox=Fn>0||ii>0?gs(We.left+Math.min(Uo,We.width+Hs+eu),We.top+ko+Ou,Uo>We.width+Hs+eu?0:Fn-Hs+eu,ii-(ko+Ou),Fs.TOP_RIGHT):new Qa(We.left+We.width-(pl+Mu),We.top+ko+Ou),this.bottomRightContentBox=Ui>0||qi>0?gs(We.left+Math.min(al,We.width-(Hs+eu)),We.top+Math.min(Js,We.height+ko+Ou),Math.max(0,Ui-(pl+Mu)),qi-(vl+_u),Fs.BOTTOM_RIGHT):new Qa(We.left+We.width-(pl+Mu),We.top+We.height-(vl+_u)),this.bottomLeftContentBox=qa>0||go>0?gs(We.left+Hs+eu,We.top+js,Math.max(0,qa-(Hs+eu)),go-(vl+_u),Fs.BOTTOM_LEFT):new Qa(We.left+Hs+eu,We.top+We.height-(vl+_u))}return Er}(),Fs;(function(Er){Er[Er.TOP_LEFT=0]="TOP_LEFT",Er[Er.TOP_RIGHT=1]="TOP_RIGHT",Er[Er.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",Er[Er.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Fs||(Fs={}));var gs=function(Ae,De,We,dt,pr){var an=4*((Math.sqrt(2)-1)/3),Cn=We*an,Fn=dt*an,ii=Ae+We,Xi=De+dt;switch(pr){case Fs.TOP_LEFT:return new dl(new Qa(Ae,Xi),new Qa(Ae,Xi-Fn),new Qa(ii-Cn,De),new Qa(ii,De));case Fs.TOP_RIGHT:return new dl(new Qa(Ae,De),new Qa(Ae+Cn,De),new Qa(ii,Xi-Fn),new Qa(ii,Xi));case Fs.BOTTOM_RIGHT:return new dl(new Qa(ii,De),new Qa(ii,De+Fn),new Qa(Ae+Cn,Xi),new Qa(Ae,Xi));case Fs.BOTTOM_LEFT:default:return new dl(new Qa(ii,Xi),new Qa(ii-Cn,Xi),new Qa(Ae,De+Fn),new Qa(Ae,De))}},lu=function(Ae){return[Ae.topLeftBorderBox,Ae.topRightBorderBox,Ae.bottomRightBorderBox,Ae.bottomLeftBorderBox]},jl=function(Ae){return[Ae.topLeftContentBox,Ae.topRightContentBox,Ae.bottomRightContentBox,Ae.bottomLeftContentBox]},Uu=function(Ae){return[Ae.topLeftPaddingBox,Ae.topRightPaddingBox,Ae.bottomRightPaddingBox,Ae.bottomLeftPaddingBox]},Eu=function(){function Er(Ae,De,We){this.offsetX=Ae,this.offsetY=De,this.matrix=We,this.type=0,this.target=2|4}return Er}(),uu=function(){function Er(Ae,De){this.path=Ae,this.target=De,this.type=1}return Er}(),ku=function(){function Er(Ae){this.opacity=Ae,this.type=2,this.target=2|4}return Er}(),Xl=function(Ae){return Ae.type===0},Cu=function(Ae){return Ae.type===1},Vu=function(Ae){return Ae.type===2},Ju=function(Ae,De){return Ae.length===De.length?Ae.some(function(We,dt){return We===De[dt]}):!1},vc=function(Ae,De,We,dt,pr){return Ae.map(function(an,Cn){switch(Cn){case 0:return an.add(De,We);case 1:return an.add(De+dt,We);case 2:return an.add(De+dt,We+pr);case 3:return an.add(De,We+pr)}return an})},Ac=function(){function Er(Ae){this.element=Ae,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return Er}(),tc=function(){function Er(Ae,De){if(this.container=Ae,this.parent=De,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,dt=this.container.bounds.top+this.container.styles.transformOrigin[1].number,pr=this.container.styles.transform;this.effects.push(new Eu(We,dt,pr))}if(this.container.styles.overflowX!==0){var an=lu(this.curves),Cn=Uu(this.curves);Ju(an,Cn)?this.effects.push(new uu(an,2|4)):(this.effects.push(new uu(an,2)),this.effects.push(new uu(Cn,4)))}}return Er.prototype.getEffects=function(Ae){for(var De=[2,3].indexOf(this.container.styles.position)===-1,We=this.parent,dt=this.effects.slice(0);We;){var pr=We.effects.filter(function(Fn){return!Cu(Fn)});if(De||We.container.styles.position!==0||!We.parent){if(dt.unshift.apply(dt,pr),De=[2,3].indexOf(We.container.styles.position)===-1,We.container.styles.overflowX!==0){var an=lu(We.curves),Cn=Uu(We.curves);Ju(an,Cn)||dt.unshift(new uu(Cn,2|4))}}else dt.unshift.apply(dt,pr);We=We.parent}return dt.filter(function(Fn){return ua(Fn.target,Ae)})},Er}(),yc=function Er(Ae,De,We,dt){Ae.container.elements.forEach(function(pr){var an=ua(pr.flags,4),Cn=ua(pr.flags,2),Fn=new tc(pr,Ae);ua(pr.styles.display,2048)&&dt.push(Fn);var ii=ua(pr.flags,8)?[]:dt;if(an||Cn){var Xi=an||pr.styles.isPositioned()?We:De,Ui=new Ac(Fn);if(pr.styles.isPositioned()||pr.styles.opacity<1||pr.styles.isTransformed()){var qi=pr.styles.zIndex.order;if(qi<0){var Ja=0;Xi.negativeZIndex.some(function(go,us){return qi>go.element.container.styles.zIndex.order?(Ja=us,!1):Ja>0}),Xi.negativeZIndex.splice(Ja,0,Ui)}else if(qi>0){var qa=0;Xi.positiveZIndex.some(function(go,us){return qi>=go.element.container.styles.zIndex.order?(qa=us+1,!1):qa>0}),Xi.positiveZIndex.splice(qa,0,Ui)}else Xi.zeroOrAutoZIndexOrTransformedOrOpacity.push(Ui)}else pr.styles.isFloating()?Xi.nonPositionedFloats.push(Ui):Xi.nonPositionedInlineLevel.push(Ui);Er(Fn,Ui,an?Ui:We,ii)}else pr.styles.isInlineLevel()?De.inlineLevel.push(Fn):De.nonInlineLevel.push(Fn),Er(Fn,De,We,ii);ua(pr.flags,8)&&sc(pr,ii)})},sc=function(Ae,De){for(var We=Ae instanceof _e?Ae.start:1,dt=Ae instanceof _e?Ae.reversed:!1,pr=0;pr<De.length;pr++){var an=De[pr];an.container instanceof we&&typeof an.container.value=="number"&&an.container.value!==0&&(We=an.container.value),an.listValue=ie(We,an.container.styles.listStyleType,!0),We+=dt?-1:1}},ju=function(Ae){var De=new tc(Ae,null),We=new Ac(De),dt=[];return yc(De,We,We,dt),sc(De.container,dt),We},hc=function(Ae,De){switch(De){case 0:return Tu(Ae.topLeftBorderBox,Ae.topLeftPaddingBox,Ae.topRightBorderBox,Ae.topRightPaddingBox);case 1:return Tu(Ae.topRightBorderBox,Ae.topRightPaddingBox,Ae.bottomRightBorderBox,Ae.bottomRightPaddingBox);case 2:return Tu(Ae.bottomRightBorderBox,Ae.bottomRightPaddingBox,Ae.bottomLeftBorderBox,Ae.bottomLeftPaddingBox);case 3:default:return Tu(Ae.bottomLeftBorderBox,Ae.bottomLeftPaddingBox,Ae.topLeftBorderBox,Ae.topLeftPaddingBox)}},bc=function(Ae,De){switch(De){case 0:return Tu(Ae.topLeftBorderBox,Ae.topLeftBorderDoubleOuterBox,Ae.topRightBorderBox,Ae.topRightBorderDoubleOuterBox);case 1:return Tu(Ae.topRightBorderBox,Ae.topRightBorderDoubleOuterBox,Ae.bottomRightBorderBox,Ae.bottomRightBorderDoubleOuterBox);case 2:return Tu(Ae.bottomRightBorderBox,Ae.bottomRightBorderDoubleOuterBox,Ae.bottomLeftBorderBox,Ae.bottomLeftBorderDoubleOuterBox);case 3:default:return Tu(Ae.bottomLeftBorderBox,Ae.bottomLeftBorderDoubleOuterBox,Ae.topLeftBorderBox,Ae.topLeftBorderDoubleOuterBox)}},Cc=function(Ae,De){switch(De){case 0:return Tu(Ae.topLeftBorderDoubleInnerBox,Ae.topLeftPaddingBox,Ae.topRightBorderDoubleInnerBox,Ae.topRightPaddingBox);case 1:return Tu(Ae.topRightBorderDoubleInnerBox,Ae.topRightPaddingBox,Ae.bottomRightBorderDoubleInnerBox,Ae.bottomRightPaddingBox);case 2:return Tu(Ae.bottomRightBorderDoubleInnerBox,Ae.bottomRightPaddingBox,Ae.bottomLeftBorderDoubleInnerBox,Ae.bottomLeftPaddingBox);case 3:default:return Tu(Ae.bottomLeftBorderDoubleInnerBox,Ae.bottomLeftPaddingBox,Ae.topLeftBorderDoubleInnerBox,Ae.topLeftPaddingBox)}},wc=function(Ae,De){switch(De){case 0:return Pu(Ae.topLeftBorderStroke,Ae.topRightBorderStroke);case 1:return Pu(Ae.topRightBorderStroke,Ae.bottomRightBorderStroke);case 2:return Pu(Ae.bottomRightBorderStroke,Ae.bottomLeftBorderStroke);case 3:default:return Pu(Ae.bottomLeftBorderStroke,Ae.topLeftBorderStroke)}},Pu=function(Ae,De){var We=[];return Al(Ae)?We.push(Ae.subdivide(.5,!1)):We.push(Ae),Al(De)?We.push(De.subdivide(.5,!0)):We.push(De),We},Tu=function(Ae,De,We,dt){var pr=[];return Al(Ae)?pr.push(Ae.subdivide(.5,!1)):pr.push(Ae),Al(We)?pr.push(We.subdivide(.5,!0)):pr.push(We),Al(dt)?pr.push(dt.subdivide(.5,!0).reverse()):pr.push(dt),Al(De)?pr.push(De.subdivide(.5,!1).reverse()):pr.push(De),pr},fc=function(Ae){var De=Ae.bounds,We=Ae.styles;return De.add(We.borderLeftWidth,We.borderTopWidth,-(We.borderRightWidth+We.borderLeftWidth),-(We.borderTopWidth+We.borderBottomWidth))},lc=function(Ae){var De=Ae.styles,We=Ae.bounds,dt=da(De.paddingLeft,We.width),pr=da(De.paddingRight,We.width),an=da(De.paddingTop,We.width),Cn=da(De.paddingBottom,We.width);return We.add(dt+De.borderLeftWidth,an+De.borderTopWidth,-(De.borderRightWidth+De.borderLeftWidth+dt+pr),-(De.borderTopWidth+De.borderBottomWidth+an+Cn))},Sc=function(Ae,De){return Ae===0?De.bounds:Ae===2?lc(De):fc(De)},Tc=function(Ae,De){return Ae===0?De.bounds:Ae===2?lc(De):fc(De)},Gu=function(Ae,De,We){var dt=Sc(yu(Ae.styles.backgroundOrigin,De),Ae),pr=Tc(yu(Ae.styles.backgroundClip,De),Ae),an=Fu(yu(Ae.styles.backgroundSize,De),We,dt),Cn=an[0],Fn=an[1],ii=Qi(yu(Ae.styles.backgroundPosition,De),dt.width-Cn,dt.height-Fn),Xi=Ku(yu(Ae.styles.backgroundRepeat,De),ii,an,dt,pr),Ui=Math.round(dt.left+ii[0]),qi=Math.round(dt.top+ii[1]);return[Xi,Ui,qi,Cn,Fn]},Hu=function(Ae){return Tn(Ae)&&Ae.value===_i.AUTO},Xu=function(Ae){return typeof Ae=="number"},Fu=function(Ae,De,We){var dt=De[0],pr=De[1],an=De[2],Cn=Ae[0],Fn=Ae[1];if(!Cn)return[0,0];if(Gi(Cn)&&Fn&&Gi(Fn))return[da(Cn,We.width),da(Fn,We.height)];var ii=Xu(an);if(Tn(Cn)&&(Cn.value===_i.CONTAIN||Cn.value===_i.COVER)){if(Xu(an)){var Xi=We.width/We.height;return Xi<an!==(Cn.value===_i.COVER)?[We.width,We.width/an]:[We.height*an,We.height]}return[We.width,We.height]}var Ui=Xu(dt),qi=Xu(pr),Ja=Ui||qi;if(Hu(Cn)&&(!Fn||Hu(Fn))){if(Ui&&qi)return[dt,pr];if(!ii&&!Ja)return[We.width,We.height];if(Ja&&ii){var qa=Ui?dt:pr*an,go=qi?pr:dt/an;return[qa,go]}var us=Ui?dt:We.width,Yo=qi?pr:We.height;return[us,Yo]}if(ii){var Uo=0,Js=0;return Gi(Cn)?Uo=da(Cn,We.width):Gi(Fn)&&(Js=da(Fn,We.height)),Hu(Cn)?Uo=Js*an:(!Fn||Hu(Fn))&&(Js=Uo/an),[Uo,Js]}var al=null,js=null;if(Gi(Cn)?al=da(Cn,We.width):Fn&&Gi(Fn)&&(js=da(Fn,We.height)),al!==null&&(!Fn||Hu(Fn))&&(js=Ui&&qi?al/dt*pr:We.height),js!==null&&Hu(Cn)&&(al=Ui&&qi?js/pr*dt:We.width),al!==null&&js!==null)return[al,js];throw new Error("Unable to calculate background-size for element")},yu=function(Ae,De){var We=Ae[De];return typeof We=="undefined"?Ae[0]:We},Ku=function(Ae,De,We,dt,pr){var an=De[0],Cn=De[1],Fn=We[0],ii=We[1];switch(Ae){case 2:return[new Qa(Math.round(dt.left),Math.round(dt.top+Cn)),new Qa(Math.round(dt.left+dt.width),Math.round(dt.top+Cn)),new Qa(Math.round(dt.left+dt.width),Math.round(ii+dt.top+Cn)),new Qa(Math.round(dt.left),Math.round(ii+dt.top+Cn))];case 3:return[new Qa(Math.round(dt.left+an),Math.round(dt.top)),new Qa(Math.round(dt.left+an+Fn),Math.round(dt.top)),new Qa(Math.round(dt.left+an+Fn),Math.round(dt.height+dt.top)),new Qa(Math.round(dt.left+an),Math.round(dt.height+dt.top))];case 1:return[new Qa(Math.round(dt.left+an),Math.round(dt.top+Cn)),new Qa(Math.round(dt.left+an+Fn),Math.round(dt.top+Cn)),new Qa(Math.round(dt.left+an+Fn),Math.round(dt.top+Cn+ii)),new Qa(Math.round(dt.left+an),Math.round(dt.top+Cn+ii))];default:return[new Qa(Math.round(pr.left),Math.round(pr.top)),new Qa(Math.round(pr.left+pr.width),Math.round(pr.top)),new Qa(Math.round(pr.left+pr.width),Math.round(pr.height+pr.top)),new Qa(Math.round(pr.left),Math.round(pr.height+pr.top))]}},uc="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",cc="Hidden Text",xc=function(){function Er(Ae){this._data={},this._document=Ae}return Er.prototype.parseMetrics=function(Ae,De){var We=this._document.createElement("div"),dt=this._document.createElement("img"),pr=this._document.createElement("span"),an=this._document.body;We.style.visibility="hidden",We.style.fontFamily=Ae,We.style.fontSize=De,We.style.margin="0",We.style.padding="0",We.style.whiteSpace="nowrap",an.appendChild(We),dt.src=uc,dt.width=1,dt.height=1,dt.style.margin="0",dt.style.padding="0",dt.style.verticalAlign="baseline",pr.style.fontFamily=Ae,pr.style.fontSize=De,pr.style.margin="0",pr.style.padding="0",pr.appendChild(this._document.createTextNode(cc)),We.appendChild(pr),We.appendChild(dt);var Cn=dt.offsetTop-pr.offsetTop+2;We.removeChild(pr),We.appendChild(this._document.createTextNode(cc)),We.style.lineHeight="normal",dt.style.verticalAlign="super";var Fn=dt.offsetTop-We.offsetTop+2;return an.removeChild(We),{baseline:Cn,middle:Fn}},Er.prototype.getMetrics=function(Ae,De){var We=Ae+" "+De;return typeof this._data[We]=="undefined"&&(this._data[We]=this.parseMetrics(Ae,De)),this._data[We]},Er}(),Ec=function(){function Er(Ae,De){this.context=Ae,this.options=De}return Er}(),pc=1e4,mc=function(Er){p(Ae,Er);function Ae(De,We){var dt=Er.call(this,De,We)||this;return dt._activeEffects=[],dt.canvas=We.canvas?We.canvas:document.createElement("canvas"),dt.ctx=dt.canvas.getContext("2d"),We.canvas||(dt.canvas.width=Math.floor(We.width*We.scale),dt.canvas.height=Math.floor(We.height*We.scale),dt.canvas.style.width=We.width+"px",dt.canvas.style.height=We.height+"px"),dt.fontMetrics=new xc(document),dt.ctx.scale(dt.options.scale,dt.options.scale),dt.ctx.translate(-We.x,-We.y),dt.ctx.textBaseline="bottom",dt._activeEffects=[],dt.context.logger.debug("Canvas renderer initialized ("+We.width+"x"+We.height+") with scale "+We.scale),dt}return Ae.prototype.applyEffects=function(De){for(var We=this;this._activeEffects.length;)this.popEffect();De.forEach(function(dt){return We.applyEffect(dt)})},Ae.prototype.applyEffect=function(De){this.ctx.save(),Vu(De)&&(this.ctx.globalAlpha=De.opacity),Xl(De)&&(this.ctx.translate(De.offsetX,De.offsetY),this.ctx.transform(De.matrix[0],De.matrix[1],De.matrix[2],De.matrix[3],De.matrix[4],De.matrix[5]),this.ctx.translate(-De.offsetX,-De.offsetY)),Cu(De)&&(this.path(De.path),this.ctx.clip()),this._activeEffects.push(De)},Ae.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},Ae.prototype.renderStack=function(De){return A(this,void 0,void 0,function(){var We;return m(this,function(dt){switch(dt.label){case 0:return We=De.element.container.styles,We.isVisible()?[4,this.renderStackContent(De)]:[3,2];case 1:dt.sent(),dt.label=2;case 2:return[2]}})})},Ae.prototype.renderNode=function(De){return A(this,void 0,void 0,function(){return m(this,function(We){switch(We.label){case 0:if(ua(De.container.flags,16))debugger;return De.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(De)]:[3,3];case 1:return We.sent(),[4,this.renderNodeContent(De)];case 2:We.sent(),We.label=3;case 3:return[2]}})})},Ae.prototype.renderTextWithLetterSpacing=function(De,We,dt){var pr=this;if(We===0)this.ctx.fillText(De.text,De.bounds.left,De.bounds.top+dt);else{var an=cu(De.text);an.reduce(function(Cn,Fn){return pr.ctx.fillText(Fn,Cn,De.bounds.top+dt),Cn+pr.ctx.measureText(Fn).width},De.bounds.left)}},Ae.prototype.createFontStyle=function(De){var We=De.fontVariant.filter(function(an){return an==="normal"||an==="small-caps"}).join(""),dt=Nc(De.fontFamily).join(", "),pr=Jr(De.fontSize)?""+De.fontSize.number+De.fontSize.unit:De.fontSize.number+"px";return[[De.fontStyle,We,De.fontWeight,pr,dt].join(" "),dt,pr]},Ae.prototype.renderTextNode=function(De,We){return A(this,void 0,void 0,function(){var dt,pr,an,Cn,Fn,ii,Xi,Ui,qi=this;return m(this,function(Ja){return dt=this.createFontStyle(We),pr=dt[0],an=dt[1],Cn=dt[2],this.ctx.font=pr,this.ctx.direction=We.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",Fn=this.fontMetrics.getMetrics(an,Cn),ii=Fn.baseline,Xi=Fn.middle,Ui=We.paintOrder,De.textBounds.forEach(function(qa){Ui.forEach(function(go){switch(go){case 0:qi.ctx.fillStyle=Wa(We.color),qi.renderTextWithLetterSpacing(qa,We.letterSpacing,ii);var us=We.textShadow;us.length&&qa.text.trim().length&&(us.slice(0).reverse().forEach(function(Yo){qi.ctx.shadowColor=Wa(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(qa,We.letterSpacing,ii)}),qi.ctx.shadowColor="",qi.ctx.shadowOffsetX=0,qi.ctx.shadowOffsetY=0,qi.ctx.shadowBlur=0),We.textDecorationLine.length&&(qi.ctx.fillStyle=Wa(We.textDecorationColor||We.color),We.textDecorationLine.forEach(function(Yo){switch(Yo){case 1:qi.ctx.fillRect(qa.bounds.left,Math.round(qa.bounds.top+ii),qa.bounds.width,1);break;case 2:qi.ctx.fillRect(qa.bounds.left,Math.round(qa.bounds.top),qa.bounds.width,1);break;case 3:qi.ctx.fillRect(qa.bounds.left,Math.ceil(qa.bounds.top+Xi),qa.bounds.width,1);break}}));break;case 1:We.webkitTextStrokeWidth&&qa.text.trim().length&&(qi.ctx.strokeStyle=Wa(We.webkitTextStrokeColor),qi.ctx.lineWidth=We.webkitTextStrokeWidth,qi.ctx.lineJoin=window.chrome?"miter":"round",qi.ctx.strokeText(qa.text,qa.bounds.left,qa.bounds.top+ii)),qi.ctx.strokeStyle="",qi.ctx.lineWidth=0,qi.ctx.lineJoin="miter";break}})}),[2]})})},Ae.prototype.renderReplacedElement=function(De,We,dt){if(dt&&De.intrinsicWidth>0&&De.intrinsicHeight>0){var pr=lc(De),an=Uu(We);this.path(an),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(dt,0,0,De.intrinsicWidth,De.intrinsicHeight,pr.left,pr.top,pr.width,pr.height),this.ctx.restore()}},Ae.prototype.renderNodeContent=function(De){return A(this,void 0,void 0,function(){var We,dt,pr,an,Cn,Fn,ii,ii,Xi,Ui,qi,Ja,qa,go,us,Yo,Uo,Js,al,ii,js,qa,Yo;return m(this,function(ko){switch(ko.label){case 0:this.applyEffects(De.getEffects(4)),We=De.container,dt=De.curves,pr=We.styles,an=0,Cn=We.textNodes,ko.label=1;case 1:return an<Cn.length?(Fn=Cn[an],[4,this.renderTextNode(Fn,pr)]):[3,4];case 2:ko.sent(),ko.label=3;case 3:return an++,[3,1];case 4:if(!(We instanceof H))return[3,8];ko.label=5;case 5:return ko.trys.push([5,7,,8]),[4,this.context.cache.match(We.src)];case 6:return ii=ko.sent(),this.renderReplacedElement(We,dt,ii),[3,8];case 7:return ko.sent(),this.context.logger.error("Error loading image "+We.src),[3,8];case 8:if(We instanceof J&&this.renderReplacedElement(We,dt,We.canvas),!(We instanceof ne))return[3,12];ko.label=9;case 9:return ko.trys.push([9,11,,12]),[4,this.context.cache.match(We.svg)];case 10:return ii=ko.sent(),this.renderReplacedElement(We,dt,ii),[3,12];case 11:return ko.sent(),this.context.logger.error("Error loading svg "+We.svg.substring(0,255)),[3,12];case 12:return We instanceof wi&&We.tree?(Xi=new Ae(this.context,{scale:this.options.scale,backgroundColor:We.backgroundColor,x:0,y:0,width:We.width,height:We.height}),[4,Xi.render(We.tree)]):[3,14];case 13:Ui=ko.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),ko.label=14;case 14:if(We instanceof Pn&&(qi=Math.min(We.bounds.width,We.bounds.height),We.type===Tr?We.checked&&(this.ctx.save(),this.path([new Qa(We.bounds.left+qi*.39363,We.bounds.top+qi*.79),new Qa(We.bounds.left+qi*.16,We.bounds.top+qi*.5549),new Qa(We.bounds.left+qi*.27347,We.bounds.top+qi*.44071),new Qa(We.bounds.left+qi*.39694,We.bounds.top+qi*.5649),new Qa(We.bounds.left+qi*.72983,We.bounds.top+qi*.23),new Qa(We.bounds.left+qi*.84,We.bounds.top+qi*.34085),new Qa(We.bounds.left+qi*.39363,We.bounds.top+qi*.79)]),this.ctx.fillStyle=Wa(Zr),this.ctx.fill(),this.ctx.restore()):We.type===br&&(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=Wa(Zr),this.ctx.fill(),this.ctx.restore()))),Oc(We)&&We.value.length){Ja=this.createFontStyle(pr),qa=Ja[0],go=Ja[1],us=this.fontMetrics.getMetrics(qa,go).baseline,this.ctx.font=qa,this.ctx.fillStyle=Wa(pr.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Ic(We.styles.textAlign),Yo=lc(We),Uo=0;switch(We.styles.textAlign){case 1:Uo+=Yo.width/2;break;case 2:Uo+=Yo.width;break}Js=Yo.add(Uo,0,0,-Yo.height/2+1),this.ctx.save(),this.path([new Qa(Yo.left,Yo.top),new Qa(Yo.left+Yo.width,Yo.top),new Qa(Yo.left+Yo.width,Yo.top+Yo.height),new Qa(Yo.left,Yo.top+Yo.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Ol(We.value,Js),pr.letterSpacing,us),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!ua(We.styles.display,2048))return[3,20];if(!(We.styles.listStyleImage!==null))return[3,19];if(al=We.styles.listStyleImage,!(al.type===0))return[3,18];ii=void 0,js=al.url,ko.label=15;case 15:return ko.trys.push([15,17,,18]),[4,this.context.cache.match(js)];case 16:return ii=ko.sent(),this.ctx.drawImage(ii,We.bounds.left-(ii.width+10),We.bounds.top),[3,18];case 17:return ko.sent(),this.context.logger.error("Error loading list-style-image "+js),[3,18];case 18:return[3,20];case 19:De.listValue&&We.styles.listStyleType!==-1&&(qa=this.createFontStyle(pr)[0],this.ctx.font=qa,this.ctx.fillStyle=Wa(pr.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Yo=new d(We.bounds.left,We.bounds.top+da(We.styles.paddingTop,We.bounds.width),We.bounds.width,Jo(pr.lineHeight,pr.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Ol(De.listValue,Yo),pr.letterSpacing,Jo(pr.lineHeight,pr.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),ko.label=20;case 20:return[2]}})})},Ae.prototype.renderStackContent=function(De){return A(this,void 0,void 0,function(){var We,dt,pr,an,Cn,pr,Fn,ii,pr,Xi,Ui,pr,qi,Ja,pr,qa,go,pr,us,Yo,pr;return m(this,function(Uo){switch(Uo.label){case 0:if(ua(De.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(De.element)];case 1:Uo.sent(),We=0,dt=De.negativeZIndex,Uo.label=2;case 2:return We<dt.length?(pr=dt[We],[4,this.renderStack(pr)]):[3,5];case 3:Uo.sent(),Uo.label=4;case 4:return We++,[3,2];case 5:return[4,this.renderNodeContent(De.element)];case 6:Uo.sent(),an=0,Cn=De.nonInlineLevel,Uo.label=7;case 7:return an<Cn.length?(pr=Cn[an],[4,this.renderNode(pr)]):[3,10];case 8:Uo.sent(),Uo.label=9;case 9:return an++,[3,7];case 10:Fn=0,ii=De.nonPositionedFloats,Uo.label=11;case 11:return Fn<ii.length?(pr=ii[Fn],[4,this.renderStack(pr)]):[3,14];case 12:Uo.sent(),Uo.label=13;case 13:return Fn++,[3,11];case 14:Xi=0,Ui=De.nonPositionedInlineLevel,Uo.label=15;case 15:return Xi<Ui.length?(pr=Ui[Xi],[4,this.renderStack(pr)]):[3,18];case 16:Uo.sent(),Uo.label=17;case 17:return Xi++,[3,15];case 18:qi=0,Ja=De.inlineLevel,Uo.label=19;case 19:return qi<Ja.length?(pr=Ja[qi],[4,this.renderNode(pr)]):[3,22];case 20:Uo.sent(),Uo.label=21;case 21:return qi++,[3,19];case 22:qa=0,go=De.zeroOrAutoZIndexOrTransformedOrOpacity,Uo.label=23;case 23:return qa<go.length?(pr=go[qa],[4,this.renderStack(pr)]):[3,26];case 24:Uo.sent(),Uo.label=25;case 25:return qa++,[3,23];case 26:us=0,Yo=De.positiveZIndex,Uo.label=27;case 27:return us<Yo.length?(pr=Yo[us],[4,this.renderStack(pr)]):[3,30];case 28:Uo.sent(),Uo.label=29;case 29:return us++,[3,27];case 30:return[2]}})})},Ae.prototype.mask=function(De){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(De.slice(0).reverse()),this.ctx.closePath()},Ae.prototype.path=function(De){this.ctx.beginPath(),this.formatPath(De),this.ctx.closePath()},Ae.prototype.formatPath=function(De){var We=this;De.forEach(function(dt,pr){var an=Al(dt)?dt.start:dt;pr===0?We.ctx.moveTo(an.x,an.y):We.ctx.lineTo(an.x,an.y),Al(dt)&&We.ctx.bezierCurveTo(dt.startControl.x,dt.startControl.y,dt.endControl.x,dt.endControl.y,dt.end.x,dt.end.y)})},Ae.prototype.renderRepeat=function(De,We,dt,pr){this.path(De),this.ctx.fillStyle=We,this.ctx.translate(dt,pr),this.ctx.fill(),this.ctx.translate(-dt,-pr)},Ae.prototype.resizeImage=function(De,We,dt){var pr;if(De.width===We&&De.height===dt)return De;var an=(pr=this.canvas.ownerDocument)!==null&&pr!==void 0?pr:document,Cn=an.createElement("canvas");Cn.width=Math.max(1,We),Cn.height=Math.max(1,dt);var Fn=Cn.getContext("2d");return Fn.drawImage(De,0,0,De.width,De.height,0,0,We,dt),Cn},Ae.prototype.renderBackgroundImage=function(De){return A(this,void 0,void 0,function(){var We,dt,pr,an,Cn,Fn;return m(this,function(ii){switch(ii.label){case 0:We=De.styles.backgroundImage.length-1,dt=function(Ui){var qi,Ja,qa,go,us,Yo,Uo,Js,al,js,go,us,Yo,Uo,Js,ko,pl,vl,Hs,Ou,Mu,_u,eu,rc,al,Wu,go,Zu,$u,Uo,Js,qu,us,Yo,nc,zu,ec,ic,ac,Yu,oc,Qu;return m(this,function(dc){switch(dc.label){case 0:if(!(Ui.type===0))return[3,5];qi=void 0,Ja=Ui.url,dc.label=1;case 1:return dc.trys.push([1,3,,4]),[4,pr.context.cache.match(Ja)];case 2:return qi=dc.sent(),[3,4];case 3:return dc.sent(),pr.context.logger.error("Error loading background-image "+Ja),[3,4];case 4:return qi&&(qa=Gu(De,We,[qi.width,qi.height,qi.width/qi.height]),go=qa[0],us=qa[1],Yo=qa[2],Uo=qa[3],Js=qa[4],al=pr.ctx.createPattern(pr.resizeImage(qi,Uo,Js),"repeat"),pr.renderRepeat(go,al,us,Yo)),[3,6];case 5:Xr(Ui)?(js=Gu(De,We,[null,null,null]),go=js[0],us=js[1],Yo=js[2],Uo=js[3],Js=js[4],ko=ts(Ui.angle,Uo,Js),pl=ko[0],vl=ko[1],Hs=ko[2],Ou=ko[3],Mu=ko[4],_u=document.createElement("canvas"),_u.width=Uo,_u.height=Js,eu=_u.getContext("2d"),rc=eu.createLinearGradient(vl,Ou,Hs,Mu),bo(Ui.stops,pl).forEach(function(gc){return rc.addColorStop(gc.stop,Wa(gc.color))}),eu.fillStyle=rc,eu.fillRect(0,0,Uo,Js),Uo>0&&Js>0&&(al=pr.ctx.createPattern(_u,"repeat"),pr.renderRepeat(go,al,us,Yo))):ni(Ui)&&(Wu=Gu(De,We,[null,null,null]),go=Wu[0],Zu=Wu[1],$u=Wu[2],Uo=Wu[3],Js=Wu[4],qu=Ui.position.length===0?[Ki]:Ui.position,us=da(qu[0],Uo),Yo=da(qu[qu.length-1],Js),nc=Mo(Ui,us,Yo,Uo,Js),zu=nc[0],ec=nc[1],zu>0&&ec>0&&(ic=pr.ctx.createRadialGradient(Zu+us,$u+Yo,0,Zu+us,$u+Yo,zu),bo(Ui.stops,zu*2).forEach(function(gc){return ic.addColorStop(gc.stop,Wa(gc.color))}),pr.path(go),pr.ctx.fillStyle=ic,zu!==ec?(ac=De.bounds.left+.5*De.bounds.width,Yu=De.bounds.top+.5*De.bounds.height,oc=ec/zu,Qu=1/oc,pr.ctx.save(),pr.ctx.translate(ac,Yu),pr.ctx.transform(1,0,0,oc,0,0),pr.ctx.translate(-ac,-Yu),pr.ctx.fillRect(Zu,Qu*($u-Yu)+Yu,Uo,Js*Qu),pr.ctx.restore()):pr.ctx.fill())),dc.label=6;case 6:return We--,[2]}})},pr=this,an=0,Cn=De.styles.backgroundImage.slice(0).reverse(),ii.label=1;case 1:return an<Cn.length?(Fn=Cn[an],[5,dt(Fn)]):[3,4];case 2:ii.sent(),ii.label=3;case 3:return an++,[3,1];case 4:return[2]}})})},Ae.prototype.renderSolidBorder=function(De,We,dt){return A(this,void 0,void 0,function(){return m(this,function(pr){return this.path(hc(dt,We)),this.ctx.fillStyle=Wa(De),this.ctx.fill(),[2]})})},Ae.prototype.renderDoubleBorder=function(De,We,dt,pr){return A(this,void 0,void 0,function(){var an,Cn;return m(this,function(Fn){switch(Fn.label){case 0:return We<3?[4,this.renderSolidBorder(De,dt,pr)]:[3,2];case 1:return Fn.sent(),[2];case 2:return an=bc(pr,dt),this.path(an),this.ctx.fillStyle=Wa(De),this.ctx.fill(),Cn=Cc(pr,dt),this.path(Cn),this.ctx.fill(),[2]}})})},Ae.prototype.renderNodeBackgroundAndBorders=function(De){return A(this,void 0,void 0,function(){var We,dt,pr,an,Cn,Fn,ii,Xi,Ui=this;return m(this,function(qi){switch(qi.label){case 0:return this.applyEffects(De.getEffects(2)),We=De.container.styles,dt=!Ia(We.backgroundColor)||We.backgroundImage.length,pr=[{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}],an=_c(yu(We.backgroundClip,0),De.curves),dt||We.boxShadow.length?(this.ctx.save(),this.path(an),this.ctx.clip(),Ia(We.backgroundColor)||(this.ctx.fillStyle=Wa(We.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(De.container)]):[3,2];case 1:qi.sent(),this.ctx.restore(),We.boxShadow.slice(0).reverse().forEach(function(Ja){Ui.ctx.save();var qa=lu(De.curves),go=Ja.inset?0:pc,us=vc(qa,-go+(Ja.inset?1:-1)*Ja.spread.number,(Ja.inset?1:-1)*Ja.spread.number,Ja.spread.number*(Ja.inset?-2:2),Ja.spread.number*(Ja.inset?-2:2));Ja.inset?(Ui.path(qa),Ui.ctx.clip(),Ui.mask(us)):(Ui.mask(qa),Ui.ctx.clip(),Ui.path(us)),Ui.ctx.shadowOffsetX=Ja.offsetX.number+go,Ui.ctx.shadowOffsetY=Ja.offsetY.number,Ui.ctx.shadowColor=Wa(Ja.color),Ui.ctx.shadowBlur=Ja.blur.number,Ui.ctx.fillStyle=Ja.inset?Wa(Ja.color):"rgba(0,0,0,1)",Ui.ctx.fill(),Ui.ctx.restore()}),qi.label=2;case 2:Cn=0,Fn=0,ii=pr,qi.label=3;case 3:return Fn<ii.length?(Xi=ii[Fn],Xi.style!==0&&!Ia(Xi.color)&&Xi.width>0?Xi.style===2?[4,this.renderDashedDottedBorder(Xi.color,Xi.width,Cn,De.curves,2)]:[3,5]:[3,11]):[3,13];case 4:return qi.sent(),[3,11];case 5:return Xi.style===3?[4,this.renderDashedDottedBorder(Xi.color,Xi.width,Cn,De.curves,3)]:[3,7];case 6:return qi.sent(),[3,11];case 7:return Xi.style===4?[4,this.renderDoubleBorder(Xi.color,Xi.width,Cn,De.curves)]:[3,9];case 8:return qi.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Xi.color,Cn,De.curves)];case 10:qi.sent(),qi.label=11;case 11:Cn++,qi.label=12;case 12:return Fn++,[3,3];case 13:return[2]}})})},Ae.prototype.renderDashedDottedBorder=function(De,We,dt,pr,an){return A(this,void 0,void 0,function(){var Cn,Fn,ii,Xi,Ui,qi,Ja,qa,go,us,Yo,Uo,Js,al,js,ko,js,ko;return m(this,function(pl){return this.ctx.save(),Cn=wc(pr,dt),Fn=hc(pr,dt),an===2&&(this.path(Fn),this.ctx.clip()),Al(Fn[0])?(ii=Fn[0].start.x,Xi=Fn[0].start.y):(ii=Fn[0].x,Xi=Fn[0].y),Al(Fn[1])?(Ui=Fn[1].end.x,qi=Fn[1].end.y):(Ui=Fn[1].x,qi=Fn[1].y),dt===0||dt===2?Ja=Math.abs(ii-Ui):Ja=Math.abs(Xi-qi),this.ctx.beginPath(),an===3?this.formatPath(Cn):this.formatPath(Fn.slice(0,2)),qa=We<3?We*3:We*2,go=We<3?We*2:We,an===3&&(qa=We,go=We),us=!0,Ja<=qa*2?us=!1:Ja<=qa*2+go?(Yo=Ja/(2*qa+go),qa*=Yo,go*=Yo):(Uo=Math.floor((Ja+go)/(qa+go)),Js=(Ja-Uo*qa)/(Uo-1),al=(Ja-(Uo+1)*qa)/Uo,go=al<=0||Math.abs(go-Js)<Math.abs(go-al)?Js:al),us&&(an===3?this.ctx.setLineDash([0,qa+go]):this.ctx.setLineDash([qa,go])),an===3?(this.ctx.lineCap="round",this.ctx.lineWidth=We):this.ctx.lineWidth=We*2+1.1,this.ctx.strokeStyle=Wa(De),this.ctx.stroke(),this.ctx.setLineDash([]),an===2&&(Al(Fn[0])&&(js=Fn[3],ko=Fn[0],this.ctx.beginPath(),this.formatPath([new Qa(js.end.x,js.end.y),new Qa(ko.start.x,ko.start.y)]),this.ctx.stroke()),Al(Fn[1])&&(js=Fn[1],ko=Fn[2],this.ctx.beginPath(),this.formatPath([new Qa(js.end.x,js.end.y),new Qa(ko.start.x,ko.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},Ae.prototype.render=function(De){return A(this,void 0,void 0,function(){var We;return m(this,function(dt){switch(dt.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Wa(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),We=ju(De),[4,this.renderStack(We)];case 1:return dt.sent(),this.applyEffects([]),[2,this.canvas]}})})},Ae}(Ec),Oc=function(Ae){return Ae instanceof Jn||Ae instanceof Nn?!0:Ae instanceof Pn&&Ae.type!==br&&Ae.type!==Tr},_c=function(Ae,De){switch(Ae){case 0:return lu(De);case 2:return jl(De);case 1:default:return Uu(De)}},Ic=function(Ae){switch(Ae){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Lc=["-apple-system","system-ui"],Nc=function(Ae){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?Ae.filter(function(De){return Lc.indexOf(De)===-1}):Ae},Dc=function(Er){p(Ae,Er);function Ae(De,We){var dt=Er.call(this,De,We)||this;return dt.canvas=We.canvas?We.canvas:document.createElement("canvas"),dt.ctx=dt.canvas.getContext("2d"),dt.options=We,dt.canvas.width=Math.floor(We.width*We.scale),dt.canvas.height=Math.floor(We.height*We.scale),dt.canvas.style.width=We.width+"px",dt.canvas.style.height=We.height+"px",dt.ctx.scale(dt.options.scale,dt.options.scale),dt.ctx.translate(-We.x,-We.y),dt.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+We.width+"x"+We.height+" at "+We.x+","+We.y+") with scale "+We.scale),dt}return Ae.prototype.render=function(De){return A(this,void 0,void 0,function(){var We,dt;return m(this,function(pr){switch(pr.label){case 0:return We=wu(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,De),[4,Rc(We)];case 1:return dt=pr.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Wa(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(dt,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},Ae}(Ec),Rc=function(Ae){return new Promise(function(De,We){var dt=new Image;dt.onload=function(){De(dt)},dt.onerror=We,dt.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(Ae))})},kc=function(){function Er(Ae){var De=Ae.id,We=Ae.enabled;this.id=De,this.enabled=We,this.start=Date.now()}return Er.prototype.debug=function(){for(var Ae=[],De=0;De<arguments.length;De++)Ae[De]=arguments[De];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,f([this.id,this.getTime()+"ms"],Ae)):this.info.apply(this,Ae))},Er.prototype.getTime=function(){return Date.now()-this.start},Er.prototype.info=function(){for(var Ae=[],De=0;De<arguments.length;De++)Ae[De]=arguments[De];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,f([this.id,this.getTime()+"ms"],Ae)))},Er.prototype.warn=function(){for(var Ae=[],De=0;De<arguments.length;De++)Ae[De]=arguments[De];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,f([this.id,this.getTime()+"ms"],Ae)):this.info.apply(this,Ae))},Er.prototype.error=function(){for(var Ae=[],De=0;De<arguments.length;De++)Ae[De]=arguments[De];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,f([this.id,this.getTime()+"ms"],Ae)):this.info.apply(this,Ae))},Er.instances={},Er}(),Mc=function(){function Er(Ae,De){var We;this.windowBounds=De,this.instanceName="#"+Er.instanceCount++,this.logger=new kc({id:this.instanceName,enabled:Ae.logging}),this.cache=(We=Ae.cache)!==null&&We!==void 0?We:new Ss(this,Ae)}return Er.instanceCount=1,Er}(),Pc=function(Ae,De){return De===void 0&&(De={}),Fc(Ae,De)};typeof window!="undefined"&&Bo.setContext(window);var Fc=function(Ae,De){return A(void 0,void 0,void 0,function(){var We,dt,pr,an,Cn,Fn,ii,Xi,Ui,qi,Ja,qa,go,us,Yo,Uo,Js,al,js,ko,pl,vl,pl,Hs,Ou,Mu,_u,eu,rc,Wu,Zu,$u,qu,nc,zu,ec,ic,ac,Yu,oc;return m(this,function(Qu){switch(Qu.label){case 0:if(!Ae||typeof Ae!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(We=Ae.ownerDocument,!We)throw new Error("Element is not attached to a Document");if(dt=We.defaultView,!dt)throw new Error("Document is not attached to a Window");return pr={allowTaint:(Hs=De.allowTaint)!==null&&Hs!==void 0?Hs:!1,imageTimeout:(Ou=De.imageTimeout)!==null&&Ou!==void 0?Ou:15e3,proxy:De.proxy,useCORS:(Mu=De.useCORS)!==null&&Mu!==void 0?Mu:!1},an=S({logging:(_u=De.logging)!==null&&_u!==void 0?_u:!0,cache:De.cache},pr),Cn={windowWidth:(eu=De.windowWidth)!==null&&eu!==void 0?eu:dt.innerWidth,windowHeight:(rc=De.windowHeight)!==null&&rc!==void 0?rc:dt.innerHeight,scrollX:(Wu=De.scrollX)!==null&&Wu!==void 0?Wu:dt.pageXOffset,scrollY:(Zu=De.scrollY)!==null&&Zu!==void 0?Zu:dt.pageYOffset},Fn=new d(Cn.scrollX,Cn.scrollY,Cn.windowWidth,Cn.windowHeight),ii=new Mc(an,Fn),Xi=($u=De.foreignObjectRendering)!==null&&$u!==void 0?$u:!1,Ui={allowTaint:(qu=De.allowTaint)!==null&&qu!==void 0?qu:!1,onclone:De.onclone,ignoreElements:De.ignoreElements,inlineImages:Xi,copyStyles:Xi},ii.logger.debug("Starting document clone with size "+Fn.width+"x"+Fn.height+" scrolled to "+-Fn.left+","+-Fn.top),qi=new me(ii,Ae,Ui),Ja=qi.clonedReferenceElement,Ja?[4,qi.toIFrame(We,Fn)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return qa=Qu.sent(),go=Br(Ja)||St(Ja)?o(Ja.ownerDocument):l(ii,Ja),us=go.width,Yo=go.height,Uo=go.left,Js=go.top,al=Bc(ii,Ja,De.backgroundColor),js={canvas:De.canvas,backgroundColor:al,scale:(zu=(nc=De.scale)!==null&&nc!==void 0?nc:dt.devicePixelRatio)!==null&&zu!==void 0?zu:1,x:((ec=De.x)!==null&&ec!==void 0?ec:0)+Uo,y:((ic=De.y)!==null&&ic!==void 0?ic:0)+Js,width:(ac=De.width)!==null&&ac!==void 0?ac:Math.ceil(us),height:(Yu=De.height)!==null&&Yu!==void 0?Yu:Math.ceil(Yo)},Xi?(ii.logger.debug("Document cloned, using foreign object rendering"),pl=new Dc(ii,js),[4,pl.render(Ja)]):[3,3];case 2:return ko=Qu.sent(),[3,5];case 3:return ii.logger.debug("Document cloned, element located at "+Uo+","+Js+" with size "+us+"x"+Yo+" using computed rendering"),ii.logger.debug("Starting DOM parsing"),vl=La(ii,Ja),al===vl.styles.backgroundColor&&(vl.styles.backgroundColor=Co.TRANSPARENT),ii.logger.debug("Starting renderer for element at "+js.x+","+js.y+" with size "+js.width+"x"+js.height),pl=new mc(ii,js),[4,pl.render(vl)];case 4:ko=Qu.sent(),Qu.label=5;case 5:return((oc=De.removeContainer)!==null&&oc!==void 0?oc:!0)&&(me.destroy(qa)||ii.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),ii.logger.debug("Finished rendering"),[2,ko]}})})},Bc=function(Ae,De,We){var dt=De.ownerDocument,pr=dt.documentElement?ao(Ae,getComputedStyle(dt.documentElement).backgroundColor):Co.TRANSPARENT,an=dt.body?ao(Ae,getComputedStyle(dt.body).backgroundColor):Co.TRANSPARENT,Cn=typeof We=="string"?ao(Ae,We):We===null?Co.TRANSPARENT:4294967295;return De===dt.documentElement?Ia(pr)?Ia(an)?Cn:an:pr:Cn};return Pc})},wPhX:function(k,D,i){"use strict";i.d(D,"b",function(){return n}),i.d(D,"a",function(){return t}),i.d(D,"k",function(){return a}),i.d(D,"h",function(){return e}),i.d(D,"i",function(){return u}),i.d(D,"g",function(){return r}),i.d(D,"c",function(){return s}),i.d(D,"d",function(){return c}),i.d(D,"j",function(){return v}),i.d(D,"e",function(){return b}),i.d(D,"f",function(){return w});var y=i("KQm4"),p=i("U8pU"),S=i("Ff2n"),A=i("q1tI"),m=i.n(A),f=i("Kwbf"),d=i("lr6o"),l=.25,o=2;function n(x,T){var O=x.slice(),E=O.indexOf(T);return E>=0&&O.splice(E,1),O}function t(x,T){var O=x.slice();return O.indexOf(T)===-1&&O.push(T),O}function a(x){return x.split("-")}function e(x,T){return"".concat(x,"-").concat(T)}function u(x){return x&&x.type&&x.type.isTreeNode}function r(x,T){var O=[x],E=T[x];function C(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];I.forEach(function(_){var F=_.key,R=_.children;O.push(F),C(R)})}return C(E.children),O}function s(x,T){var O=x.clientY,E=T.selectHandle.getBoundingClientRect(),C=E.top,I=E.bottom,_=E.height,F=Math.max(_*l,o);return O<=C+F?-1:O>=I-F?1:0}function c(x,T){if(!x)return;var O=T.multiple;return O?x.slice():x.length?[x[0]]:x}var h=function(T){return T};function g(x,T){if(!x)return[];var O=T||{},E=O.processProps,C=E===void 0?h:E,I=Array.isArray(x)?x:[x];return I.map(function(_){var F=_.children,R=Object(S.a)(_,["children"]),B=g(F,T);return m.a.createElement(d.a,Object.assign({},C(R)),B)})}function v(x){if(!x)return null;var T;if(Array.isArray(x))T={checkedKeys:x,halfCheckedKeys:void 0};else if(Object(p.a)(x)==="object")T={checkedKeys:x.checked||void 0,halfCheckedKeys:x.halfChecked||void 0};else return Object(f.a)(!1,"`checkedKeys` is not an array or an object"),null;return T}function b(x,T){var O=new Set;function E(C){if(O.has(C))return;var I=T[C];if(!I)return;O.add(C);var _=I.parent,F=I.node;if(F.disabled)return;_&&E(_.key)}return(x||[]).forEach(function(C){E(C)}),Object(y.a)(O)}function w(x){var T={};return Object.keys(x).forEach(function(O){(O.startsWith("data-")||O.startsWith("aria-"))&&(T[O]=x[O])}),T}},wU8J:function(k,D){function i(){this.buffer=new Array,this.length=0}i.prototype={get:function(p){var S=Math.floor(p/8);return(this.buffer[S]>>>7-p%8&1)==1},put:function(p,S){for(var A=0;A<S;A++)this.putBit((p>>>S-A-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(p){var S=Math.floor(this.length/8);this.buffer.length<=S&&this.buffer.push(0),p&&(this.buffer[S]|=128>>>this.length%8),this.length++}},k.exports=i},wXyp:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("ygfH")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="CheckOutlined";var n=A.forwardRef(o);D.default=n},wYyv:function(k,D,i){"use strict";var y=i("R5yR"),p=i("5wUe"),S=function(f,d,l){var o=d<0?f.length+d:d;if(o>=0&&o<f.length){var n=l<0?f.length+l:l,t=f.splice(d,1),a=p(t,1),e=a[0];f.splice(n,0,e)}},A=function(f,d,l){return f=y(f),S(f,d,l),f};k.exports=A,k.exports.mutate=S},wZgz:function(k,D,i){(function(y,p,S){k.exports=D=p(i("Ib8C"),i("ETIr"),i("cv67"),i("K3mO"),i("OLod"))})(this,function(y){return function(){var p=y,S=p.lib,A=S.BlockCipher,m=p.algo,f=[],d=[],l=[],o=[],n=[],t=[],a=[],e=[],u=[],r=[];(function(){for(var h=[],g=0;g<256;g++)g<128?h[g]=g<<1:h[g]=g<<1^283;for(var v=0,b=0,g=0;g<256;g++){var w=b^b<<1^b<<2^b<<3^b<<4;w=w>>>8^w&255^99,f[v]=w,d[w]=v;var x=h[v],T=h[x],O=h[T],E=h[w]*257^w*16843008;l[v]=E<<24|E>>>8,o[v]=E<<16|E>>>16,n[v]=E<<8|E>>>24,t[v]=E;var E=O*16843009^T*65537^x*257^v*16843008;a[w]=E<<24|E>>>8,e[w]=E<<16|E>>>16,u[w]=E<<8|E>>>24,r[w]=E,v?(v=x^h[h[h[O^x]]],b^=h[h[b]]):v=b=1}})();var s=[0,1,2,4,8,16,32,64,128,27,54],c=m.AES=A.extend({_doReset:function(){var g;if(this._nRounds&&this._keyPriorReset===this._key)return;for(var v=this._keyPriorReset=this._key,b=v.words,w=v.sigBytes/4,x=this._nRounds=w+6,T=(x+1)*4,O=this._keySchedule=[],E=0;E<T;E++)E<w?O[E]=b[E]:(g=O[E-1],E%w?w>6&&E%w==4&&(g=f[g>>>24]<<24|f[g>>>16&255]<<16|f[g>>>8&255]<<8|f[g&255]):(g=g<<8|g>>>24,g=f[g>>>24]<<24|f[g>>>16&255]<<16|f[g>>>8&255]<<8|f[g&255],g^=s[E/w|0]<<24),O[E]=O[E-w]^g);for(var C=this._invKeySchedule=[],I=0;I<T;I++){var E=T-I;if(I%4)var g=O[E];else var g=O[E-4];I<4||E<=4?C[I]=g:C[I]=a[f[g>>>24]]^e[f[g>>>16&255]]^u[f[g>>>8&255]]^r[f[g&255]]}},encryptBlock:function(g,v){this._doCryptBlock(g,v,this._keySchedule,l,o,n,t,f)},decryptBlock:function(g,v){var b=g[v+1];g[v+1]=g[v+3],g[v+3]=b,this._doCryptBlock(g,v,this._invKeySchedule,a,e,u,r,d);var b=g[v+1];g[v+1]=g[v+3],g[v+3]=b},_doCryptBlock:function(g,v,b,w,x,T,O,E){for(var C=this._nRounds,I=g[v]^b[0],_=g[v+1]^b[1],F=g[v+2]^b[2],R=g[v+3]^b[3],B=4,M=1;M<C;M++){var X=w[I>>>24]^x[_>>>16&255]^T[F>>>8&255]^O[R&255]^b[B++],P=w[_>>>24]^x[F>>>16&255]^T[R>>>8&255]^O[I&255]^b[B++],z=w[F>>>24]^x[R>>>16&255]^T[I>>>8&255]^O[_&255]^b[B++],W=w[R>>>24]^x[I>>>16&255]^T[_>>>8&255]^O[F&255]^b[B++];I=X,_=P,F=z,R=W}var X=(E[I>>>24]<<24|E[_>>>16&255]<<16|E[F>>>8&255]<<8|E[R&255])^b[B++],P=(E[_>>>24]<<24|E[F>>>16&255]<<16|E[R>>>8&255]<<8|E[I&255])^b[B++],z=(E[F>>>24]<<24|E[R>>>16&255]<<16|E[I>>>8&255]<<8|E[_&255])^b[B++],W=(E[R>>>24]<<24|E[I>>>16&255]<<16|E[_>>>8&255]<<8|E[F&255])^b[B++];g[v]=X,g[v+1]=P,g[v+2]=z,g[v+3]=W},keySize:256/32});p.AES=A._createHelper(c)}(),y.AES})},wbyO:function(k,D,i){(function(y,p){k.exports=D=p(i("Ib8C"))})(this,function(y){return function(){var p=y,S=p.lib,A=S.WordArray,m=p.enc,f=m.Base64url={stringify:function(o,n){n===void 0&&(n=!0);var t=o.words,a=o.sigBytes,e=n?this._safe_map:this._map;o.clamp();for(var u=[],r=0;r<a;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,g=s<<16|c<<8|h,v=0;v<4&&r+v*.75<a;v++)u.push(e.charAt(g>>>6*(3-v)&63));var b=e.charAt(64);if(b)for(;u.length%4;)u.push(b);return u.join("")},parse:function(o,n){n===void 0&&(n=!0);var t=o.length,a=n?this._safe_map:this._map,e=this._reverseMap;if(!e){e=this._reverseMap=[];for(var u=0;u<a.length;u++)e[a.charCodeAt(u)]=u}var r=a.charAt(64);if(r){var s=o.indexOf(r);s!==-1&&(t=s)}return d(o,t,e)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function d(l,o,n){for(var t=[],a=0,e=0;e<o;e++)if(e%4){var u=n[l.charCodeAt(e-1)]<<e%4*2,r=n[l.charCodeAt(e)]>>>6-e%4*2,s=u|r;t[a>>>2]|=s<<24-a%4*8,a++}return A.create(t,a)}}(),y.enc.Base64url})},wgjA:function(k,D,i){"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},whVF:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=i("lNSK"),p=S(i("1q3G"));function S(l){return l&&l.__esModule?l:{default:l}}function A(l,o){if(!(l instanceof o))throw new TypeError("Cannot call a class as a function")}function m(l,o){for(var n=0;n<o.length;n++){var t=o[n];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(l,t.key,t)}}function f(l,o,n){return o&&m(l.prototype,o),n&&m(l,n),l}var d=function(){function l(){A(this,l),this.strm=new p.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(n){this.strm.input=n,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),a=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=[a],u=a.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;a=s}return this.strm.input=null,this.strm.avail_in=0,this.strm.next_in=0,a}}]),l}();D.default=d},wr5s:function(k,D,i){var y=i("IwbS"),p=y.extendShape,S=p({type:"sausage",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:Math.PI*2,clockwise:!0},buildPath:function(A,m){var f=m.cx,d=m.cy,l=Math.max(m.r0||0,0),o=Math.max(m.r,0),n=(o-l)*.5,t=l+n,a=m.startAngle,e=m.endAngle,u=m.clockwise,r=Math.cos(a),s=Math.sin(a),c=Math.cos(e),h=Math.sin(e),g=u?e-a<Math.PI*2:a-e<Math.PI*2;g&&(A.moveTo(r*l+f,s*l+d),A.arc(r*t+f,s*t+d,n,-Math.PI+a,a,!u)),A.arc(f,d,o,a,e,!u),A.moveTo(c*o+f,h*o+d),A.arc(c*t+f,h*t+d,n,e-Math.PI*2,e-Math.PI,!u),l!==0&&(A.arc(f,d,l,e,a,u),A.moveTo(r*l+f,h*l+d)),A.closePath()}});k.exports=S},wt3j:function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("/IIm"),A=i("EMyp"),m=A.layoutCovers,f=y.extendComponentView({type:"brush",init:function(l,o){this.ecModel=l,this.api=o,this.model,(this._brushController=new S(o.getZr())).on("brush",p.bind(this._onBrush,this)).mount()},render:function(l){return this.model=l,d.apply(this,arguments)},updateTransform:function(l,o){return m(o),d.apply(this,arguments)},updateView:d,dispose:function(){this._brushController.dispose()},_onBrush:function(l,o){var n=this.model.id;this.model.brushTargetManager.setOutputRanges(l,this.ecModel),(!o.isEnd||o.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:n,areas:p.clone(l),$from:n}),o.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:n,areas:p.clone(l),$from:n})}});function d(l,o,n,t){(!t||t.$from!==l.id)&&this._brushController.setPanels(l.brushTargetManager.makePanelOpts(n)).enableBrush(l.brushOption).updateCovers(l.areas.slice())}k.exports=f},x3X8:function(k,D,i){var y=i("KxfA"),p=y.retrieveRawValue;function S(A,m){var f=A.mapDimension("defaultedLabel",!0),d=f.length;if(d===1)return p(A,m,f[0]);if(d){for(var l=[],o=0;o<f.length;o++){var n=p(A,m,f[o]);l.push(n)}return l.join(" ")}}D.getDefaultLabel=S},x54q:function(k,D,i){},x6Kt:function(k,D,i){var y=i("y+Vt"),p=i("VpOo"),S=i("nPnh"),A=S.subPixelOptimizeRect,m={},f=y.extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(l,o){var n,t,a,e;this.subPixelOptimize?(A(m,o,this.style),n=m.x,t=m.y,a=m.width,e=m.height,m.r=o.r,o=m):(n=o.x,t=o.y,a=o.width,e=o.height),o.r?p.buildPath(l,o):l.rect(n,t,a,e),l.closePath();return}});k.exports=f},xGfz:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("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"},A=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:A}))};f.displayName="PlusSquareOutlined";var d=D.a=p.forwardRef(f)},xKMd:function(k,D){function i(p,S){this.getAllNames=function(){var A=S();return A.mapArray(A.getName)},this.containName=function(A){var m=S();return m.indexOfName(A)>=0},this.indexOfName=function(A){var m=p();return m.indexOfName(A)},this.getItemVisual=function(A,m){var f=p();return f.getItemVisual(A,m)}}var y=i;k.exports=y},xO64:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var y=p(i("8K/p"));function p(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 A(r,s){if(!(r instanceof s))throw new TypeError("Cannot call a class as a function")}function m(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&&m(r.prototype,s),c&&m(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,g){return h.__proto__=g,h},l(r,s)}function o(r){var s=a();return function(){var h=e(r),g;if(s){var v=e(this).constructor;g=Reflect.construct(h,arguments,v)}else g=h.apply(this,arguments);return n(this,g)}}function n(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 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(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=o(c);function c(){return A(this,c),s.apply(this,arguments)}return f(c,[{key:"_pngRect",value:function(g,v,b,w,x,T,O){var E=this._readData(x);return E===null?!1:(T.imageRect(g,v,b,w,"image/png",E),!0)}},{key:"_basicRect",value:function(g,v,b,w,x,T,O,E){throw new Error("BasicCompression received in TightPNG rect")}}]),c}(y.default);D.default=u},xOOu:function(k,D,i){(function(y,p,S){var A,A;/*!
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/!function(m){k.exports=m()}(function(){return function m(f,d,l){function o(a,e){if(!d[a]){if(!f[a]){var u=typeof A=="function"&&A;if(!e&&u)return A(a,!0);if(n)return n(a,!0);var r=new Error("Cannot find module '"+a+"'");throw r.code="MODULE_NOT_FOUND",r}var s=d[a]={exports:{}};f[a][0].call(s.exports,function(c){var h=f[a][1][c];return o(h||c)},s,s.exports,m,f,d,l)}return d[a].exports}for(var n=typeof A=="function"&&A,t=0;t<l.length;t++)o(l[t]);return o}({1:[function(m,f,d){"use strict";var l=m("./utils"),o=m("./support"),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";d.encode=function(t){for(var a,e,u,r,s,c,h,g=[],v=0,b=t.length,w=b,x=l.getTypeOf(t)!=="string";v<t.length;)w=b-v,u=x?(a=t[v++],e=v<b?t[v++]:0,v<b?t[v++]:0):(a=t.charCodeAt(v++),e=v<b?t.charCodeAt(v++):0,v<b?t.charCodeAt(v++):0),r=a>>2,s=(3&a)<<4|e>>4,c=1<w?(15&e)<<2|u>>6:64,h=2<w?63&u:64,g.push(n.charAt(r)+n.charAt(s)+n.charAt(c)+n.charAt(h));return g.join("")},d.decode=function(t){var a,e,u,r,s,c,h=0,g=0,v="data:";if(t.substr(0,v.length)===v)throw new Error("Invalid base64 input, it looks like a data url.");var b,w=3*(t=t.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(t.charAt(t.length-1)===n.charAt(64)&&w--,t.charAt(t.length-2)===n.charAt(64)&&w--,w%1!=0)throw new Error("Invalid base64 input, bad content length.");for(b=o.uint8array?new Uint8Array(0|w):new Array(0|w);h<t.length;)a=n.indexOf(t.charAt(h++))<<2|(r=n.indexOf(t.charAt(h++)))>>4,e=(15&r)<<4|(s=n.indexOf(t.charAt(h++)))>>2,u=(3&s)<<6|(c=n.indexOf(t.charAt(h++))),b[g++]=a,s!==64&&(b[g++]=e),c!==64&&(b[g++]=u);return b}},{"./support":30,"./utils":32}],2:[function(m,f,d){"use strict";var l=m("./external"),o=m("./stream/DataWorker"),n=m("./stream/Crc32Probe"),t=m("./stream/DataLengthProbe");function a(e,u,r,s,c){this.compressedSize=e,this.uncompressedSize=u,this.crc32=r,this.compression=s,this.compressedContent=c}a.prototype={getContentWorker:function(){var u=new o(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 o(l.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},a.createWorkerFrom=function(e,u,r){return e.pipe(new n).pipe(new t("uncompressedSize")).pipe(u.compressWorker(r)).pipe(new t("compressedSize")).withStreamInfo("compression",u)},f.exports=a},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(m,f,d){"use strict";var l=m("./stream/GenericWorker");d.STORE={magic:"\0\0",compressWorker:function(){return new l("STORE compression")},uncompressWorker:function(){return new l("STORE decompression")}},d.DEFLATE=m("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(m,f,d){"use strict";var l=m("./utils"),o=function(){for(var n,t=[],a=0;a<256;a++){n=a;for(var e=0;e<8;e++)n=1&n?3988292384^n>>>1:n>>>1;t[a]=n}return t}();f.exports=function(n,t){return n!==void 0&&n.length?l.getTypeOf(n)!=="string"?function(a,e,u,r){var s=o,c=r+u;a^=-1;for(var h=r;h<c;h++)a=a>>>8^s[255&(a^e[h])];return-1^a}(0|t,n,n.length,0):function(a,e,u,r){var s=o,c=r+u;a^=-1;for(var h=r;h<c;h++)a=a>>>8^s[255&(a^e.charCodeAt(h))];return-1^a}(0|t,n,n.length,0):0}},{"./utils":32}],5:[function(m,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(m,f,d){"use strict";var l=null;l=typeof Promise!="undefined"?Promise:m("lie"),f.exports={Promise:l}},{lie:37}],7:[function(m,f,d){"use strict";var l=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",o=m("pako"),n=m("./utils"),t=m("./stream/GenericWorker"),a=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",n.inherits(e,t),e.prototype.processChunk=function(u){this.meta=u.meta,this._pako===null&&this._createPako(),this._pako.push(n.transformTo(a,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 o[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(m,f,d){"use strict";function l(s,c){var h,g="";for(h=0;h<c;h++)g+=String.fromCharCode(255&s),s>>>=8;return g}function o(s,c,h,g,v,b){var w,x,T=s.file,O=s.compression,E=b!==a.utf8encode,C=n.transformTo("string",b(T.name)),I=n.transformTo("string",a.utf8encode(T.name)),_=T.comment,F=n.transformTo("string",b(_)),R=n.transformTo("string",a.utf8encode(_)),B=I.length!==T.name.length,M=R.length!==_.length,X="",P="",z="",W=T.dir,U=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),E||!B&&!M||(Q|=2048);var G=0,te=0;W&&(G|=16),v==="UNIX"?(te=798,G|=function(le,re){var Se=le;return le||(Se=re?16893:33204),(65535&Se)<<16}(T.unixPermissions,W)):(te=20,G|=function(le){return 63&(le||0)}(T.dosPermissions)),w=U.getUTCHours(),w<<=6,w|=U.getUTCMinutes(),w<<=5,w|=U.getUTCSeconds()/2,x=U.getUTCFullYear()-1980,x<<=4,x|=U.getUTCMonth()+1,x<<=5,x|=U.getUTCDate(),B&&(P=l(1,1)+l(e(C),4)+I,X+="up"+l(P.length,2)+P),M&&(z=l(1,1)+l(e(F),4)+R,X+="uc"+l(z.length,2)+z);var $="";return $+=`
\0`,$+=l(Q,2),$+=O.magic,$+=l(w,2),$+=l(x,2),$+=l(V.crc32,4),$+=l(V.compressedSize,4),$+=l(V.uncompressedSize,4),$+=l(C.length,2),$+=l(X.length,2),{fileRecord:u.LOCAL_FILE_HEADER+$+C+X,dirRecord:u.CENTRAL_FILE_HEADER+l(te,2)+$+l(F.length,2)+"\0\0\0\0"+l(G,4)+l(g,4)+C+X+F}}var n=m("../utils"),t=m("../stream/GenericWorker"),a=m("../utf8"),e=m("../crc32"),u=m("../signature");function r(s,c,h,g){t.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=c,this.zipPlatform=h,this.encodeFileName=g,this.streamFiles=s,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(r,t),r.prototype.push=function(s){var c=s.meta.percent||0,h=this.entriesCount,g=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-g-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=o(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=o(s,c,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(h.dirRecord),c)this.push({data:function(g){return u.DATA_DESCRIPTOR+l(g.crc32,4)+l(g.compressedSize,4)+l(g.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,g=function(v,b,w,x,T){var O=n.transformTo("string",T(x));return u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+l(v,2)+l(v,2)+l(b,4)+l(w,4)+l(O.length,2)+O}(this.dirRecords.length,h,s,this.zipComment,this.encodeFileName);this.push({data:g,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(g){}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(m,f,d){"use strict";var l=m("../compressions"),o=m("./ZipFileWorker");d.generateWorker=function(n,t,a){var e=new o(t.streamFiles,a,t.platform,t.encodeFileName),u=0;try{n.forEach(function(r,s){u++;var c=function(b,w){var x=b||w,T=l[x];if(!T)throw new Error(x+" is not a valid compression method !");return T}(s.options.compression,t.compression),h=s.options.compressionOptions||t.compressionOptions||{},g=s.dir,v=s.date;s._compressWorker(c,h).withStreamInfo("file",{name:r,dir:g,date:v,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(m,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 o=new l;for(var n in this)typeof this[n]!="function"&&(o[n]=this[n]);return o}}(l.prototype=m("./object")).loadAsync=m("./load"),l.support=m("./support"),l.defaults=m("./defaults"),l.version="3.10.1",l.loadAsync=function(o,n){return new l().loadAsync(o,n)},l.external=m("./external"),f.exports=l},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(m,f,d){"use strict";var l=m("./utils"),o=m("./external"),n=m("./utf8"),t=m("./zipEntries"),a=m("./stream/Crc32Probe"),e=m("./nodejsUtils");function u(r){return new o.Promise(function(s,c){var h=r.decompressed.getContentWorker().pipe(new a);h.on("error",function(g){c(g)}).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:n.utf8decode}),e.isNode&&e.isStream(r)?o.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 g=new t(s);return g.load(h),g}).then(function(h){var g=[o.Promise.resolve(h)],v=h.files;if(s.checkCRC32)for(var b=0;b<v.length;b++)g.push(u(v[b]));return o.Promise.all(g)}).then(function(h){for(var g=h.shift(),v=g.files,b=0;b<v.length;b++){var w=v[b],x=w.fileNameStr,T=l.resolve(w.fileNameStr);c.file(T,w.decompressed,{binary:!0,optimizedBinaryString:!0,date:w.date,dir:w.dir,comment:w.fileCommentStr.length?w.fileCommentStr:null,unixPermissions:w.unixPermissions,dosPermissions:w.dosPermissions,createFolders:s.createFolders}),w.dir||(c.file(T).unsafeOriginalName=x)}return g.zipComment.length&&(c.comment=g.zipComment),c})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(m,f,d){"use strict";var l=m("../utils"),o=m("../stream/GenericWorker");function n(t,a){o.call(this,"Nodejs stream input adapter for "+t),this._upstreamEnded=!1,this._bindStream(a)}l.inherits(n,o),n.prototype._bindStream=function(t){var a=this;(this._stream=t).pause(),t.on("data",function(e){a.push({data:e,meta:{percent:0}})}).on("error",function(e){a.isPaused?this.generatedError=e:a.error(e)}).on("end",function(){a.isPaused?a._upstreamEnded=!0:a.end()})},n.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},n.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},f.exports=n},{"../stream/GenericWorker":28,"../utils":32}],13:[function(m,f,d){"use strict";var l=m("readable-stream").Readable;function o(n,t,a){l.call(this,t),this._helper=n;var e=this;n.on("data",function(u,r){e.push(u)||e._helper.pause(),a&&a(r)}).on("error",function(u){e.emit("error",u)}).on("end",function(){e.push(null)})}m("../utils").inherits(o,l),o.prototype._read=function(){this._helper.resume()},f.exports=o},{"../utils":32,"readable-stream":16}],14:[function(m,f,d){"use strict";f.exports={isNode:typeof y!="undefined",newBufferFrom:function(o,n){if(y.from&&y.from!==Uint8Array.from)return y.from(o,n);if(typeof o=="number")throw new Error('The "data" argument must not be a number');return new y(o,n)},allocBuffer:function(o){if(y.alloc)return y.alloc(o);var n=new y(o);return n.fill(0),n},isBuffer:function(o){return y.isBuffer(o)},isStream:function(o){return o&&typeof o.on=="function"&&typeof o.pause=="function"&&typeof o.resume=="function"}}},{}],15:[function(m,f,d){"use strict";function l(T,O,E){var C,I=n.getTypeOf(O),_=n.extend(E||{},e);_.date=_.date||new Date,_.compression!==null&&(_.compression=_.compression.toUpperCase()),typeof _.unixPermissions=="string"&&(_.unixPermissions=parseInt(_.unixPermissions,8)),_.unixPermissions&&16384&_.unixPermissions&&(_.dir=!0),_.dosPermissions&&16&_.dosPermissions&&(_.dir=!0),_.dir&&(T=v(T)),_.createFolders&&(C=g(T))&&b.call(this,C,!0);var F=I==="string"&&_.binary===!1&&_.base64===!1;E&&E.binary!==void 0||(_.binary=!F),(O instanceof u&&O.uncompressedSize===0||_.dir||!O||O.length===0)&&(_.base64=!1,_.binary=!0,O="",_.compression="STORE",I="string");var R=null;R=O instanceof u||O instanceof t?O:c.isNode&&c.isStream(O)?new h(T,O):n.prepareContent(T,O,_.binary,_.optimizedBinaryString,_.base64);var B=new r(T,R,_);this.files[T]=B}var o=m("./utf8"),n=m("./utils"),t=m("./stream/GenericWorker"),a=m("./stream/StreamHelper"),e=m("./defaults"),u=m("./compressedObject"),r=m("./zipObject"),s=m("./generate"),c=m("./nodejsUtils"),h=m("./nodejs/NodejsStreamInputAdapter"),g=function(O){O.slice(-1)==="/"&&(O=O.substring(0,O.length-1));var E=O.lastIndexOf("/");return 0<E?O.substring(0,E):""},v=function(O){return O.slice(-1)!=="/"&&(O+="/"),O},b=function(O,E){return E=E!==void 0?E:e.createFolders,O=v(O),this.files[O]||l.call(this,O,null,{dir:!0,createFolders:E}),this.files[O]};function w(T){return Object.prototype.toString.call(T)==="[object RegExp]"}var x={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(O){var E,C,I;for(E in this.files)I=this.files[E],(C=E.slice(this.root.length,E.length))&&E.slice(0,this.root.length)===this.root&&O(C,I)},filter:function(O){var E=[];return this.forEach(function(C,I){O(C,I)&&E.push(I)}),E},file:function(O,E,C){if(arguments.length!==1)return O=this.root+O,l.call(this,O,E,C),this;if(w(O)){var I=O;return this.filter(function(F,R){return!R.dir&&I.test(F)})}var _=this.files[this.root+O];return _&&!_.dir?_:null},folder:function(O){if(!O)return this;if(w(O))return this.filter(function(_,F){return F.dir&&O.test(_)});var E=this.root+O,C=b.call(this,E),I=this.clone();return I.root=C.name,I},remove:function(O){O=this.root+O;var E=this.files[O];if(E||(O.slice(-1)!=="/"&&(O+="/"),E=this.files[O]),E&&!E.dir)delete this.files[O];else for(var C=this.filter(function(_,F){return F.name.slice(0,O.length)===O}),I=0;I<C.length;I++)delete this.files[C[I].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(O){var E,C={};try{if((C=n.extend(O||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=C.type.toLowerCase(),C.compression=C.compression.toUpperCase(),C.type==="binarystring"&&(C.type="string"),!C.type)throw new Error("No output type specified.");n.checkSupport(C.type),C.platform!=="darwin"&&C.platform!=="freebsd"&&C.platform!=="linux"&&C.platform!=="sunos"||(C.platform="UNIX"),C.platform==="win32"&&(C.platform="DOS");var I=C.comment||this.comment||"";E=s.generateWorker(this,C,I)}catch(_){(E=new t("error")).error(_)}return new a(E,C.type||"string",C.mimeType)},generateAsync:function(O,E){return this.generateInternalStream(O).accumulate(E)},generateNodeStream:function(O,E){return(O=O||{}).type||(O.type="nodebuffer"),this.generateInternalStream(O).toNodejsStream(E)}};f.exports=x},{"./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(m,f,d){"use strict";f.exports=m("stream")},{stream:void 0}],17:[function(m,f,d){"use strict";var l=m("./DataReader");function o(n){l.call(this,n);for(var t=0;t<this.data.length;t++)n[t]=255&n[t]}m("../utils").inherits(o,l),o.prototype.byteAt=function(n){return this.data[this.zero+n]},o.prototype.lastIndexOfSignature=function(n){for(var t=n.charCodeAt(0),a=n.charCodeAt(1),e=n.charCodeAt(2),u=n.charCodeAt(3),r=this.length-4;0<=r;--r)if(this.data[r]===t&&this.data[r+1]===a&&this.data[r+2]===e&&this.data[r+3]===u)return r-this.zero;return-1},o.prototype.readAndCheckSignature=function(n){var t=n.charCodeAt(0),a=n.charCodeAt(1),e=n.charCodeAt(2),u=n.charCodeAt(3),r=this.readData(4);return t===r[0]&&a===r[1]&&e===r[2]&&u===r[3]},o.prototype.readData=function(n){if(this.checkOffset(n),n===0)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,t},f.exports=o},{"../utils":32,"./DataReader":18}],18:[function(m,f,d){"use strict";var l=m("../utils");function o(n){this.data=n,this.length=n.length,this.index=0,this.zero=0}o.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 a,e=0;for(this.checkOffset(t),a=this.index+t-1;a>=this.index;a--)e=(e<<8)+this.byteAt(a);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=o},{"../utils":32}],19:[function(m,f,d){"use strict";var l=m("./Uint8ArrayReader");function o(n){l.call(this,n)}m("../utils").inherits(o,l),o.prototype.readData=function(n){this.checkOffset(n);var t=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,t},f.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(m,f,d){"use strict";var l=m("./DataReader");function o(n){l.call(this,n)}m("../utils").inherits(o,l),o.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},o.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},o.prototype.readAndCheckSignature=function(n){return n===this.readData(4)},o.prototype.readData=function(n){this.checkOffset(n);var t=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,t},f.exports=o},{"../utils":32,"./DataReader":18}],21:[function(m,f,d){"use strict";var l=m("./ArrayReader");function o(n){l.call(this,n)}m("../utils").inherits(o,l),o.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,t},f.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(m,f,d){"use strict";var l=m("../utils"),o=m("../support"),n=m("./ArrayReader"),t=m("./StringReader"),a=m("./NodeBufferReader"),e=m("./Uint8ArrayReader");f.exports=function(u){var r=l.getTypeOf(u);return l.checkSupport(r),r!=="string"||o.uint8array?r==="nodebuffer"?new a(u):o.uint8array?new e(l.transformTo("uint8array",u)):new n(l.transformTo("array",u)):new t(u)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(m,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(m,f,d){"use strict";var l=m("./GenericWorker"),o=m("../utils");function n(t){l.call(this,"ConvertWorker to "+t),this.destType=t}o.inherits(n,l),n.prototype.processChunk=function(t){this.push({data:o.transformTo(this.destType,t.data),meta:t.meta})},f.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(m,f,d){"use strict";var l=m("./GenericWorker"),o=m("../crc32");function n(){l.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}m("../utils").inherits(n,l),n.prototype.processChunk=function(t){this.streamInfo.crc32=o(t.data,this.streamInfo.crc32||0),this.push(t)},f.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(m,f,d){"use strict";var l=m("../utils"),o=m("./GenericWorker");function n(t){o.call(this,"DataLengthProbe for "+t),this.propName=t,this.withStreamInfo(t,0)}l.inherits(n,o),n.prototype.processChunk=function(t){if(t){var a=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=a+t.data.length}o.prototype.processChunk.call(this,t)},f.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(m,f,d){"use strict";var l=m("../utils"),o=m("./GenericWorker");function n(t){o.call(this,"DataWorker");var a=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,t.then(function(e){a.dataIsReady=!0,a.data=e,a.max=e&&e.length||0,a.type=l.getTypeOf(e),a.isPaused||a._tickAndRepeat()},function(e){a.error(e)})}l.inherits(n,o),n.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,l.delay(this._tickAndRepeat,[],this)),!0)},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(l.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,a=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,a);break;case"uint8array":t=this.data.subarray(this.index,a);break;case"array":case"nodebuffer":t=this.data.slice(this.index,a)}return this.index=a,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},f.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(m,f,d){"use strict";function l(o){this.name=o||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}l.prototype={push:function(n){this.emit("data",n)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(n){this.emit("error",n)}return!0},error:function(n){return!this.isFinished&&(this.isPaused?this.generatedError=n:(this.isFinished=!0,this.emit("error",n),this.previous&&this.previous.error(n),this.cleanUp()),!0)},on:function(n,t){return this._listeners[n].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(n,t){if(this._listeners[n])for(var a=0;a<this._listeners[n].length;a++)this._listeners[n][a].call(this,t)},pipe:function(n){return n.registerPrevious(this)},registerPrevious:function(n){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=n.streamInfo,this.mergeStreamInfo(),this.previous=n;var t=this;return n.on("data",function(a){t.processChunk(a)}),n.on("end",function(){t.end()}),n.on("error",function(a){t.error(a)}),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 n=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),n=!0),this.previous&&this.previous.resume(),!n},flush:function(){},processChunk:function(n){this.push(n)},withStreamInfo:function(n,t){return this.extraStreamInfo[n]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var n in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,n)&&(this.streamInfo[n]=this.extraStreamInfo[n])},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 n="Worker "+this.name;return this.previous?this.previous+" -> "+n:n}},f.exports=l},{}],29:[function(m,f,d){"use strict";var l=m("../utils"),o=m("./ConvertWorker"),n=m("./GenericWorker"),t=m("../base64"),a=m("../support"),e=m("../external"),u=null;if(a.nodestream)try{u=m("../nodejs/NodejsStreamOutputAdapter")}catch(c){}function r(c,h){return new e.Promise(function(g,v){var b=[],w=c._internalType,x=c._outputType,T=c._mimeType;c.on("data",function(O,E){b.push(O),h&&h(E)}).on("error",function(O){b=[],v(O)}).on("end",function(){try{var O=function(E,C,I){switch(E){case"blob":return l.newBlob(l.transformTo("arraybuffer",C),I);case"base64":return t.encode(C);default:return l.transformTo(E,C)}}(x,function(E,C){var I,_=0,F=null,R=0;for(I=0;I<C.length;I++)R+=C[I].length;switch(E){case"string":return C.join("");case"array":return Array.prototype.concat.apply([],C);case"uint8array":for(F=new Uint8Array(R),I=0;I<C.length;I++)F.set(C[I],_),_+=C[I].length;return F;case"nodebuffer":return y.concat(C);default:throw new Error("concat : unsupported type '"+E+"'")}}(w,b),T);g(O)}catch(E){v(E)}b=[]}).resume()})}function s(c,h,g){var v=h;switch(h){case"blob":case"arraybuffer":v="uint8array";break;case"base64":v="string"}try{this._internalType=v,this._outputType=h,this._mimeType=g,l.checkSupport(v),this._worker=c.pipe(new o(v)),c.lock()}catch(b){this._worker=new n("error"),this._worker.error(b)}}s.prototype={accumulate:function(h){return r(this,h)},on:function(h,g){var v=this;return h==="data"?this._worker.on(h,function(b){g.call(v,b.data,b.meta)}):this._worker.on(h,function(){l.delay(g,arguments,v)}),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(m,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(n){try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(l),d.blob=o.getBlob("application/zip").size===0}catch(t){d.blob=!1}}}try{d.nodestream=!!m("readable-stream").Readable}catch(n){d.nodestream=!1}},{"readable-stream":16}],31:[function(m,f,d){"use strict";for(var l=m("./utils"),o=m("./support"),n=m("./nodejsUtils"),t=m("./stream/GenericWorker"),a=new Array(256),e=0;e<256;e++)a[e]=252<=e?6:248<=e?5:240<=e?4:224<=e?3:192<=e?2:1;a[254]=a[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 o.nodebuffer?n.newBufferFrom(s,"utf-8"):function(c){var h,g,v,b,w,x=c.length,T=0;for(b=0;b<x;b++)(64512&(g=c.charCodeAt(b)))==55296&&b+1<x&&(64512&(v=c.charCodeAt(b+1)))==56320&&(g=65536+(g-55296<<10)+(v-56320),b++),T+=g<128?1:g<2048?2:g<65536?3:4;for(h=o.uint8array?new Uint8Array(T):new Array(T),b=w=0;w<T;b++)(64512&(g=c.charCodeAt(b)))==55296&&b+1<x&&(64512&(v=c.charCodeAt(b+1)))==56320&&(g=65536+(g-55296<<10)+(v-56320),b++),g<128?h[w++]=g:(g<2048?h[w++]=192|g>>>6:(g<65536?h[w++]=224|g>>>12:(h[w++]=240|g>>>18,h[w++]=128|g>>>12&63),h[w++]=128|g>>>6&63),h[w++]=128|63&g);return h}(s)},d.utf8decode=function(s){return o.nodebuffer?l.transformTo("nodebuffer",s).toString("utf-8"):function(c){var h,g,v,b,w=c.length,x=new Array(2*w);for(h=g=0;h<w;)if((v=c[h++])<128)x[g++]=v;else if(4<(b=a[v]))x[g++]=65533,h+=b-1;else{for(v&=b===2?31:b===3?15:7;1<b&&h<w;)v=v<<6|63&c[h++],b--;1<b?x[g++]=65533:v<65536?x[g++]=v:(v-=65536,x[g++]=55296|v>>10&1023,x[g++]=56320|1023&v)}return x.length!==g&&(x.subarray?x=x.subarray(0,g):x.length=g),l.applyFromCharCode(x)}(s=l.transformTo(o.uint8array?"uint8array":"array",s))},l.inherits(u,t),u.prototype.processChunk=function(s){var c=l.transformTo(o.uint8array?"uint8array":"array",s.data);if(this.leftOver&&this.leftOver.length){if(o.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 g=function(b,w){var x;for((w=w||b.length)>b.length&&(w=b.length),x=w-1;0<=x&&(192&b[x])==128;)x--;return x<0||x===0?w:x+a[b[x]]>w?x:w}(c),v=c;g!==c.length&&(o.uint8array?(v=c.subarray(0,g),this.leftOver=c.subarray(g,c.length)):(v=c.slice(0,g),this.leftOver=c.slice(g,c.length))),this.push({data:d.utf8decode(v),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(m,f,d){"use strict";var l=m("./support"),o=m("./base64"),n=m("./nodejsUtils"),t=m("./external");function a(h){return h}function e(h,g){for(var v=0;v<h.length;++v)g[v]=255&h.charCodeAt(v);return g}m("setimmediate"),d.newBlob=function(h,g){d.checkSupport("blob");try{return new Blob([h],{type:g})}catch(b){try{var v=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return v.append(h),v.getBlob(g)}catch(w){throw new Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(g,v,b){var w=[],x=0,T=g.length;if(T<=b)return String.fromCharCode.apply(null,g);for(;x<T;)v==="array"||v==="nodebuffer"?w.push(String.fromCharCode.apply(null,g.slice(x,Math.min(x+b,T)))):w.push(String.fromCharCode.apply(null,g.subarray(x,Math.min(x+b,T)))),x+=b;return w.join("")},stringifyByChar:function(g){for(var v="",b=0;b<g.length;b++)v+=String.fromCharCode(g[b]);return v},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,n.allocBuffer(1)).length===1}catch(h){return!1}}()}};function r(h){var g=65536,v=d.getTypeOf(h),b=!0;if(v==="uint8array"?b=u.applyCanBeUsed.uint8array:v==="nodebuffer"&&(b=u.applyCanBeUsed.nodebuffer),b)for(;1<g;)try{return u.stringifyByChunk(h,v,g)}catch(w){g=Math.floor(g/2)}return u.stringifyByChar(h)}function s(h,g){for(var v=0;v<h.length;v++)g[v]=h[v];return g}d.applyFromCharCode=r;var c={};c.string={string:a,array:function(g){return e(g,new Array(g.length))},arraybuffer:function(g){return c.string.uint8array(g).buffer},uint8array:function(g){return e(g,new Uint8Array(g.length))},nodebuffer:function(g){return e(g,n.allocBuffer(g.length))}},c.array={string:r,array:a,arraybuffer:function(g){return new Uint8Array(g).buffer},uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return n.newBufferFrom(g)}},c.arraybuffer={string:function(g){return r(new Uint8Array(g))},array:function(g){return s(new Uint8Array(g),new Array(g.byteLength))},arraybuffer:a,uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return n.newBufferFrom(new Uint8Array(g))}},c.uint8array={string:r,array:function(g){return s(g,new Array(g.length))},arraybuffer:function(g){return g.buffer},uint8array:a,nodebuffer:function(g){return n.newBufferFrom(g)}},c.nodebuffer={string:r,array:function(g){return s(g,new Array(g.length))},arraybuffer:function(g){return c.nodebuffer.uint8array(g).buffer},uint8array:function(g){return s(g,new Uint8Array(g.length))},nodebuffer:a},d.transformTo=function(h,g){if(g=g||"",!h)return g;d.checkSupport(h);var v=d.getTypeOf(g);return c[v][h](g)},d.resolve=function(h){for(var g=h.split("/"),v=[],b=0;b<g.length;b++){var w=g[b];w==="."||w===""&&b!==0&&b!==g.length-1||(w===".."?v.pop():v.push(w))}return v.join("/")},d.getTypeOf=function(h){return typeof h=="string"?"string":Object.prototype.toString.call(h)==="[object Array]"?"array":l.nodebuffer&&n.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 g,v,b="";for(v=0;v<(h||"").length;v++)b+="\\x"+((g=h.charCodeAt(v))<16?"0":"")+g.toString(16).toUpperCase();return b},d.delay=function(h,g,v){setImmediate(function(){h.apply(v||null,g||[])})},d.inherits=function(h,g){function v(){}v.prototype=g.prototype,h.prototype=new v},d.extend=function(){var h,g,v={};for(h=0;h<arguments.length;h++)for(g in arguments[h])Object.prototype.hasOwnProperty.call(arguments[h],g)&&v[g]===void 0&&(v[g]=arguments[h][g]);return v},d.prepareContent=function(h,g,v,b,w){return t.Promise.resolve(g).then(function(x){return l.blob&&(x instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(x))!==-1)&&typeof FileReader!="undefined"?new t.Promise(function(T,O){var E=new FileReader;E.onload=function(C){T(C.target.result)},E.onerror=function(C){O(C.target.error)},E.readAsArrayBuffer(x)}):x}).then(function(x){var T=d.getTypeOf(x);return T?(T==="arraybuffer"?x=d.transformTo("uint8array",x):T==="string"&&(w?x=o.decode(x):v&&b!==!0&&(x=function(O){return e(O,l.uint8array?new Uint8Array(O.length):new Array(O.length))}(x))),x):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(m,f,d){"use strict";var l=m("./reader/readerFor"),o=m("./utils"),n=m("./signature"),t=m("./zipEntry"),a=m("./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 ("+o.pretty(s)+", expected "+o.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=a.uint8array?"uint8array":"array",c=o.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(n.LOCAL_FILE_HEADER),s.readLocalPart(this.reader),s.handleUTF8(),s.processAttributes()},readCentralDir:function(){var r;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(n.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(n.CENTRAL_DIRECTORY_END);if(r<0)throw this.isSignature(0,n.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(n.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(r=this.reader.lastIndexOfSignature(n.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(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,n.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(n.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(n.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,n.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(m,f,d){"use strict";var l=m("./reader/readerFor"),o=m("./utils"),n=m("./compressedObject"),t=m("./crc32"),a=m("./utf8"),e=m("./compressions"),u=m("./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,g;if(c.skip(22),this.fileNameLength=c.readInt(2),g=c.readInt(2),this.fileName=c.readData(this.fileNameLength),c.skip(g),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(v){for(var b in e)if(Object.prototype.hasOwnProperty.call(e,b)&&e[b].magic===v)return e[b];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new n(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===o.MAX_VALUE_32BITS&&(this.uncompressedSize=c.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=c.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=c.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=c.readInt(4))}},readExtraFields:function(c){var h,g,v,b=c.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});c.index+4<b;)h=c.readInt(2),g=c.readInt(2),v=c.readData(g),this.extraFields[h]={id:h,length:g,value:v};c.setIndex(b)},handleUTF8:function(){var c=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=a.utf8decode(this.fileName),this.fileCommentStr=a.utf8decode(this.fileComment);else{var h=this.findExtraFieldUnicodePath();if(h!==null)this.fileNameStr=h;else{var g=o.transformTo(c,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var v=this.findExtraFieldUnicodeComment();if(v!==null)this.fileCommentStr=v;else{var b=o.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:a.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:a.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(m,f,d){"use strict";function l(c,h,g){this.name=c,this.dir=g.dir,this.date=g.date,this.comment=g.comment,this.unixPermissions=g.unixPermissions,this.dosPermissions=g.dosPermissions,this._data=h,this._dataBinary=g.binary,this.options={compression:g.compression,compressionOptions:g.compressionOptions}}var o=m("./stream/StreamHelper"),n=m("./stream/DataWorker"),t=m("./utf8"),a=m("./compressedObject"),e=m("./stream/GenericWorker");l.prototype={internalStream:function(h){var g=null,v="string";try{if(!h)throw new Error("No output type specified.");var b=(v=h.toLowerCase())==="string"||v==="text";v!=="binarystring"&&v!=="text"||(v="string"),g=this._decompressWorker();var w=!this._dataBinary;w&&!b&&(g=g.pipe(new t.Utf8EncodeWorker)),!w&&b&&(g=g.pipe(new t.Utf8DecodeWorker))}catch(x){(g=new e("error")).error(x)}return new o(g,v,"")},async:function(h,g){return this.internalStream(h).accumulate(g)},nodeStream:function(h,g){return this.internalStream(h||"nodebuffer").toNodejsStream(g)},_compressWorker:function(h,g){if(this._data instanceof a&&this._data.compression.magic===h.magic)return this._data.getCompressedWorker();var v=this._decompressWorker();return this._dataBinary||(v=v.pipe(new t.Utf8EncodeWorker)),a.createWorkerFrom(v,h,g)},_decompressWorker:function(){return this._data instanceof a?this._data.getContentWorker():this._data instanceof e?this._data:new n(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(m,f,d){(function(l){"use strict";var o,n,t=l.MutationObserver||l.WebKitMutationObserver;if(t){var a=0,e=new t(c),u=l.document.createTextNode("");e.observe(u,{characterData:!0}),o=function(){u.data=a=++a%2}}else if(l.setImmediate||l.MessageChannel===void 0)o="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,o=function(){r.port2.postMessage(0)}}var s=[];function c(){var h,g;n=!0;for(var v=s.length;v;){for(g=s,s=[],h=-1;++h<v;)g[h]();v=s.length}n=!1}f.exports=function(h){s.push(h)!==1||n||o()}}).call(this,typeof p!="undefined"?p:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(m,f,d){"use strict";var l=m("immediate");function o(){}var n={},t=["REJECTED"],a=["FULFILLED"],e=["PENDING"];function u(v){if(typeof v!="function")throw new TypeError("resolver must be a function");this.state=e,this.queue=[],this.outcome=void 0,v!==o&&h(this,v)}function r(v,b,w){this.promise=v,typeof b=="function"&&(this.onFulfilled=b,this.callFulfilled=this.otherCallFulfilled),typeof w=="function"&&(this.onRejected=w,this.callRejected=this.otherCallRejected)}function s(v,b,w){l(function(){var x;try{x=b(w)}catch(T){return n.reject(v,T)}x===v?n.reject(v,new TypeError("Cannot resolve promise with itself")):n.resolve(v,x)})}function c(v){var b=v&&v.then;if(v&&(typeof v=="object"||typeof v=="function")&&typeof b=="function")return function(){b.apply(v,arguments)}}function h(v,b){var w=!1;function x(E){w||(w=!0,n.reject(v,E))}function T(E){w||(w=!0,n.resolve(v,E))}var O=g(function(){b(T,x)});O.status==="error"&&x(O.value)}function g(v,b){var w={};try{w.value=v(b),w.status="success"}catch(x){w.status="error",w.value=x}return w}(f.exports=u).prototype.finally=function(v){if(typeof v!="function")return this;var b=this.constructor;return this.then(function(w){return b.resolve(v()).then(function(){return w})},function(w){return b.resolve(v()).then(function(){throw w})})},u.prototype.catch=function(v){return this.then(null,v)},u.prototype.then=function(v,b){if(typeof v!="function"&&this.state===a||typeof b!="function"&&this.state===t)return this;var w=new this.constructor(o);return this.state!==e?s(w,this.state===a?v:b,this.outcome):this.queue.push(new r(w,v,b)),w},r.prototype.callFulfilled=function(v){n.resolve(this.promise,v)},r.prototype.otherCallFulfilled=function(v){s(this.promise,this.onFulfilled,v)},r.prototype.callRejected=function(v){n.reject(this.promise,v)},r.prototype.otherCallRejected=function(v){s(this.promise,this.onRejected,v)},n.resolve=function(v,b){var w=g(c,b);if(w.status==="error")return n.reject(v,w.value);var x=w.value;if(x)h(v,x);else{v.state=a,v.outcome=b;for(var T=-1,O=v.queue.length;++T<O;)v.queue[T].callFulfilled(b)}return v},n.reject=function(v,b){v.state=t,v.outcome=b;for(var w=-1,x=v.queue.length;++w<x;)v.queue[w].callRejected(b);return v},u.resolve=function(v){return v instanceof this?v:n.resolve(new this(o),v)},u.reject=function(v){var b=new this(o);return n.reject(b,v)},u.all=function(v){var b=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var w=v.length,x=!1;if(!w)return this.resolve([]);for(var T=new Array(w),O=0,E=-1,C=new this(o);++E<w;)I(v[E],E);return C;function I(_,F){b.resolve(_).then(function(R){T[F]=R,++O!==w||x||(x=!0,n.resolve(C,T))},function(R){x||(x=!0,n.reject(C,R))})}},u.race=function(v){var b=this;if(Object.prototype.toString.call(v)!=="[object Array]")return this.reject(new TypeError("must be an array"));var w=v.length,x=!1;if(!w)return this.resolve([]);for(var T=-1,O=new this(o);++T<w;)E=v[T],b.resolve(E).then(function(C){x||(x=!0,n.resolve(O,C))},function(C){x||(x=!0,n.reject(O,C))});var E;return O}},{immediate:36}],38:[function(m,f,d){"use strict";var l={};(0,m("./lib/utils/common").assign)(l,m("./lib/deflate"),m("./lib/inflate"),m("./lib/zlib/constants")),f.exports=l},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(m,f,d){"use strict";var l=m("./zlib/deflate"),o=m("./utils/common"),n=m("./utils/strings"),t=m("./zlib/messages"),a=m("./zlib/zstream"),e=Object.prototype.toString,u=0,r=-1,s=0,c=8;function h(v){if(!(this instanceof h))return new h(v);this.options=o.assign({level:r,method:c,chunkSize:16384,windowBits:15,memLevel:8,strategy:s,to:""},v||{});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 a,this.strm.avail_out=0;var w=l.deflateInit2(this.strm,b.level,b.method,b.windowBits,b.memLevel,b.strategy);if(w!==u)throw new Error(t[w]);if(b.header&&l.deflateSetHeader(this.strm,b.header),b.dictionary){var x;if(x=typeof b.dictionary=="string"?n.string2buf(b.dictionary):e.call(b.dictionary)==="[object ArrayBuffer]"?new Uint8Array(b.dictionary):b.dictionary,(w=l.deflateSetDictionary(this.strm,x))!==u)throw new Error(t[w]);this._dict_set=!0}}function g(v,b){var w=new h(b);if(w.push(v,!0),w.err)throw w.msg||t[w.err];return w.result}h.prototype.push=function(v,b){var w,x,T=this.strm,O=this.options.chunkSize;if(this.ended)return!1;x=b===~~b?b:b===!0?4:0,typeof v=="string"?T.input=n.string2buf(v):e.call(v)==="[object ArrayBuffer]"?T.input=new Uint8Array(v):T.input=v,T.next_in=0,T.avail_in=T.input.length;do{if(T.avail_out===0&&(T.output=new o.Buf8(O),T.next_out=0,T.avail_out=O),(w=l.deflate(T,x))!==1&&w!==u)return this.onEnd(w),!(this.ended=!0);T.avail_out!==0&&(T.avail_in!==0||x!==4&&x!==2)||(this.options.to==="string"?this.onData(n.buf2binstring(o.shrinkBuf(T.output,T.next_out))):this.onData(o.shrinkBuf(T.output,T.next_out)))}while((0<T.avail_in||T.avail_out===0)&&w!==1);return x===4?(w=l.deflateEnd(this.strm),this.onEnd(w),this.ended=!0,w===u):x!==2||(this.onEnd(u),!(T.avail_out=0))},h.prototype.onData=function(v){this.chunks.push(v)},h.prototype.onEnd=function(v){v===u&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=v,this.msg=this.strm.msg},d.Deflate=h,d.deflate=g,d.deflateRaw=function(v,b){return(b=b||{}).raw=!0,g(v,b)},d.gzip=function(v,b){return(b=b||{}).gzip=!0,g(v,b)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(m,f,d){"use strict";var l=m("./zlib/inflate"),o=m("./utils/common"),n=m("./utils/strings"),t=m("./zlib/constants"),a=m("./zlib/messages"),e=m("./zlib/zstream"),u=m("./zlib/gzheader"),r=Object.prototype.toString;function s(h){if(!(this instanceof s))return new s(h);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},h||{});var g=this.options;g.raw&&0<=g.windowBits&&g.windowBits<16&&(g.windowBits=-g.windowBits,g.windowBits===0&&(g.windowBits=-15)),!(0<=g.windowBits&&g.windowBits<16)||h&&h.windowBits||(g.windowBits+=32),15<g.windowBits&&g.windowBits<48&&(15&g.windowBits)==0&&(g.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new e,this.strm.avail_out=0;var v=l.inflateInit2(this.strm,g.windowBits);if(v!==t.Z_OK)throw new Error(a[v]);this.header=new u,l.inflateGetHeader(this.strm,this.header)}function c(h,g){var v=new s(g);if(v.push(h,!0),v.err)throw v.msg||a[v.err];return v.result}s.prototype.push=function(h,g){var v,b,w,x,T,O,E=this.strm,C=this.options.chunkSize,I=this.options.dictionary,_=!1;if(this.ended)return!1;b=g===~~g?g:g===!0?t.Z_FINISH:t.Z_NO_FLUSH,typeof h=="string"?E.input=n.binstring2buf(h):r.call(h)==="[object ArrayBuffer]"?E.input=new Uint8Array(h):E.input=h,E.next_in=0,E.avail_in=E.input.length;do{if(E.avail_out===0&&(E.output=new o.Buf8(C),E.next_out=0,E.avail_out=C),(v=l.inflate(E,t.Z_NO_FLUSH))===t.Z_NEED_DICT&&I&&(O=typeof I=="string"?n.string2buf(I):r.call(I)==="[object ArrayBuffer]"?new Uint8Array(I):I,v=l.inflateSetDictionary(this.strm,O)),v===t.Z_BUF_ERROR&&_===!0&&(v=t.Z_OK,_=!1),v!==t.Z_STREAM_END&&v!==t.Z_OK)return this.onEnd(v),!(this.ended=!0);E.next_out&&(E.avail_out!==0&&v!==t.Z_STREAM_END&&(E.avail_in!==0||b!==t.Z_FINISH&&b!==t.Z_SYNC_FLUSH)||(this.options.to==="string"?(w=n.utf8border(E.output,E.next_out),x=E.next_out-w,T=n.buf2string(E.output,w),E.next_out=x,E.avail_out=C-x,x&&o.arraySet(E.output,E.output,w,x,0),this.onData(T)):this.onData(o.shrinkBuf(E.output,E.next_out)))),E.avail_in===0&&E.avail_out===0&&(_=!0)}while((0<E.avail_in||E.avail_out===0)&&v!==t.Z_STREAM_END);return v===t.Z_STREAM_END&&(b=t.Z_FINISH),b===t.Z_FINISH?(v=l.inflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===t.Z_OK):b!==t.Z_SYNC_FLUSH||(this.onEnd(t.Z_OK),!(E.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=o.flattenChunks(this.chunks)),this.chunks=[],this.err=h,this.msg=this.strm.msg},d.Inflate=s,d.inflate=c,d.inflateRaw=function(h,g){return(g=g||{}).raw=!0,c(h,g)},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(m,f,d){"use strict";var l=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";d.assign=function(t){for(var a=Array.prototype.slice.call(arguments,1);a.length;){var e=a.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,a){return t.length===a?t:t.subarray?t.subarray(0,a):(t.length=a,t)};var o={arraySet:function(a,e,u,r,s){if(e.subarray&&a.subarray)a.set(e.subarray(u,u+r),s);else for(var c=0;c<r;c++)a[s+c]=e[u+c]},flattenChunks:function(a){var e,u,r,s,c,h;for(e=r=0,u=a.length;e<u;e++)r+=a[e].length;for(h=new Uint8Array(r),e=s=0,u=a.length;e<u;e++)c=a[e],h.set(c,s),s+=c.length;return h}},n={arraySet:function(a,e,u,r,s){for(var c=0;c<r;c++)a[s+c]=e[u+c]},flattenChunks:function(a){return[].concat.apply([],a)}};d.setTyped=function(t){t?(d.Buf8=Uint8Array,d.Buf16=Uint16Array,d.Buf32=Int32Array,d.assign(d,o)):(d.Buf8=Array,d.Buf16=Array,d.Buf32=Array,d.assign(d,n))},d.setTyped(l)},{}],42:[function(m,f,d){"use strict";var l=m("./common"),o=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch(u){o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(u){n=!1}for(var t=new l.Buf8(256),a=0;a<256;a++)t[a]=252<=a?6:248<=a?5:240<=a?4:224<=a?3:192<=a?2:1;function e(u,r){if(r<65537&&(u.subarray&&n||!u.subarray&&o))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,g,v=u.length,b=0;for(h=0;h<v;h++)(64512&(s=u.charCodeAt(h)))==55296&&h+1<v&&(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=g=0;g<b;h++)(64512&(s=u.charCodeAt(h)))==55296&&h+1<v&&(64512&(c=u.charCodeAt(h+1)))==56320&&(s=65536+(s-55296<<10)+(c-56320),h++),s<128?r[g++]=s:(s<2048?r[g++]=192|s>>>6:(s<65536?r[g++]=224|s>>>12:(r[g++]=240|s>>>18,r[g++]=128|s>>>12&63),r[g++]=128|s>>>6&63),r[g++]=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,g,v=r||u.length,b=new Array(2*v);for(s=c=0;s<v;)if((h=u[s++])<128)b[c++]=h;else if(4<(g=t[h]))b[c++]=65533,s+=g-1;else{for(h&=g===2?31:g===3?15:7;1<g&&s<v;)h=h<<6|63&u[s++],g--;1<g?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(m,f,d){"use strict";f.exports=function(l,o,n,t){for(var a=65535&l|0,e=l>>>16&65535|0,u=0;n!==0;){for(n-=u=2e3<n?2e3:n;e=e+(a=a+o[t++]|0)|0,--u;);a%=65521,e%=65521}return a|e<<16|0}},{}],44:[function(m,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(m,f,d){"use strict";var l=function(){for(var o,n=[],t=0;t<256;t++){o=t;for(var a=0;a<8;a++)o=1&o?3988292384^o>>>1:o>>>1;n[t]=o}return n}();f.exports=function(o,n,t,a){var e=l,u=a+t;o^=-1;for(var r=a;r<u;r++)o=o>>>8^e[255&(o^n[r])];return-1^o}},{}],46:[function(m,f,d){"use strict";var l,o=m("../utils/common"),n=m("./trees"),t=m("./adler32"),a=m("./crc32"),e=m("./messages"),u=0,r=4,s=0,c=-2,h=-1,g=4,v=2,b=8,w=9,x=286,T=30,O=19,E=2*x+1,C=15,I=3,_=258,F=_+I+1,R=42,B=113,M=1,X=2,P=3,z=4;function W(ue,rt){return ue.msg=e[rt],rt}function U(ue){return(ue<<1)-(4<ue?9:0)}function V(ue){for(var rt=ue.length;0<=--rt;)ue[rt]=0}function Q(ue){var rt=ue.state,ge=rt.pending;ge>ue.avail_out&&(ge=ue.avail_out),ge!==0&&(o.arraySet(ue.output,rt.pending_buf,rt.pending_out,ge,ue.next_out),ue.next_out+=ge,rt.pending_out+=ge,ue.total_out+=ge,ue.avail_out-=ge,rt.pending-=ge,rt.pending===0&&(rt.pending_out=0))}function G(ue,rt){n._tr_flush_block(ue,0<=ue.block_start?ue.block_start:-1,ue.strstart-ue.block_start,rt),ue.block_start=ue.strstart,Q(ue.strm)}function te(ue,rt){ue.pending_buf[ue.pending++]=rt}function $(ue,rt){ue.pending_buf[ue.pending++]=rt>>>8&255,ue.pending_buf[ue.pending++]=255&rt}function le(ue,rt){var ge,Z,Y=ue.max_chain_length,ee=ue.strstart,fe=ue.prev_length,be=ue.nice_match,Ce=ue.strstart>ue.w_size-F?ue.strstart-(ue.w_size-F):0,Te=ue.window,he=ue.w_mask,ye=ue.prev,Ie=ue.strstart+_,tt=Te[ee+fe-1],pt=Te[ee+fe];ue.prev_length>=ue.good_match&&(Y>>=2),be>ue.lookahead&&(be=ue.lookahead);do if(Te[(ge=rt)+fe]===pt&&Te[ge+fe-1]===tt&&Te[ge]===Te[ee]&&Te[++ge]===Te[ee+1]){ee+=2,ge++;do;while(Te[++ee]===Te[++ge]&&Te[++ee]===Te[++ge]&&Te[++ee]===Te[++ge]&&Te[++ee]===Te[++ge]&&Te[++ee]===Te[++ge]&&Te[++ee]===Te[++ge]&&Te[++ee]===Te[++ge]&&Te[++ee]===Te[++ge]&&ee<Ie);if(Z=_-(Ie-ee),ee=Ie-_,fe<Z){if(ue.match_start=rt,be<=(fe=Z))break;tt=Te[ee+fe-1],pt=Te[ee+fe]}}while((rt=ye[rt&he])>Ce&&--Y!=0);return fe<=ue.lookahead?fe:ue.lookahead}function re(ue){var rt,ge,Z,Y,ee,fe,be,Ce,Te,he,ye=ue.w_size;do{if(Y=ue.window_size-ue.lookahead-ue.strstart,ue.strstart>=ye+(ye-F)){for(o.arraySet(ue.window,ue.window,ye,ye,0),ue.match_start-=ye,ue.strstart-=ye,ue.block_start-=ye,rt=ge=ue.hash_size;Z=ue.head[--rt],ue.head[rt]=ye<=Z?Z-ye:0,--ge;);for(rt=ge=ye;Z=ue.prev[--rt],ue.prev[rt]=ye<=Z?Z-ye:0,--ge;);Y+=ye}if(ue.strm.avail_in===0)break;if(fe=ue.strm,be=ue.window,Ce=ue.strstart+ue.lookahead,Te=Y,he=void 0,he=fe.avail_in,Te<he&&(he=Te),ge=he===0?0:(fe.avail_in-=he,o.arraySet(be,fe.input,fe.next_in,he,Ce),fe.state.wrap===1?fe.adler=t(fe.adler,be,he,Ce):fe.state.wrap===2&&(fe.adler=a(fe.adler,be,he,Ce)),fe.next_in+=he,fe.total_in+=he,he),ue.lookahead+=ge,ue.lookahead+ue.insert>=I)for(ee=ue.strstart-ue.insert,ue.ins_h=ue.window[ee],ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ee+1])&ue.hash_mask;ue.insert&&(ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ee+I-1])&ue.hash_mask,ue.prev[ee&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=ee,ee++,ue.insert--,!(ue.lookahead+ue.insert<I)););}while(ue.lookahead<F&&ue.strm.avail_in!==0)}function Se(ue,rt){for(var ge,Z;;){if(ue.lookahead<F){if(re(ue),ue.lookahead<F&&rt===u)return M;if(ue.lookahead===0)break}if(ge=0,ue.lookahead>=I&&(ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+I-1])&ue.hash_mask,ge=ue.prev[ue.strstart&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=ue.strstart),ge!==0&&ue.strstart-ge<=ue.w_size-F&&(ue.match_length=le(ue,ge)),ue.match_length>=I)if(Z=n._tr_tally(ue,ue.strstart-ue.match_start,ue.match_length-I),ue.lookahead-=ue.match_length,ue.match_length<=ue.max_lazy_match&&ue.lookahead>=I){for(ue.match_length--;ue.strstart++,ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+I-1])&ue.hash_mask,ge=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 Z=n._tr_tally(ue,0,ue.window[ue.strstart]),ue.lookahead--,ue.strstart++;if(Z&&(G(ue,!1),ue.strm.avail_out===0))return M}return ue.insert=ue.strstart<I-1?ue.strstart:I-1,rt===r?(G(ue,!0),ue.strm.avail_out===0?P:z):ue.last_lit&&(G(ue,!1),ue.strm.avail_out===0)?M:X}function Re(ue,rt){for(var ge,Z,Y;;){if(ue.lookahead<F){if(re(ue),ue.lookahead<F&&rt===u)return M;if(ue.lookahead===0)break}if(ge=0,ue.lookahead>=I&&(ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[ue.strstart+I-1])&ue.hash_mask,ge=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=I-1,ge!==0&&ue.prev_length<ue.max_lazy_match&&ue.strstart-ge<=ue.w_size-F&&(ue.match_length=le(ue,ge),ue.match_length<=5&&(ue.strategy===1||ue.match_length===I&&4096<ue.strstart-ue.match_start)&&(ue.match_length=I-1)),ue.prev_length>=I&&ue.match_length<=ue.prev_length){for(Y=ue.strstart+ue.lookahead-I,Z=n._tr_tally(ue,ue.strstart-1-ue.prev_match,ue.prev_length-I),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+I-1])&ue.hash_mask,ge=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=I-1,ue.strstart++,Z&&(G(ue,!1),ue.strm.avail_out===0))return M}else if(ue.match_available){if((Z=n._tr_tally(ue,0,ue.window[ue.strstart-1]))&&G(ue,!1),ue.strstart++,ue.lookahead--,ue.strm.avail_out===0)return M}else ue.match_available=1,ue.strstart++,ue.lookahead--}return ue.match_available&&(Z=n._tr_tally(ue,0,ue.window[ue.strstart-1]),ue.match_available=0),ue.insert=ue.strstart<I-1?ue.strstart:I-1,rt===r?(G(ue,!0),ue.strm.avail_out===0?P:z):ue.last_lit&&(G(ue,!1),ue.strm.avail_out===0)?M:X}function Pe(ue,rt,ge,Z,Y){this.good_length=ue,this.max_lazy=rt,this.nice_length=ge,this.max_chain=Z,this.func=Y}function Je(){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 o.Buf16(2*E),this.dyn_dtree=new o.Buf16(2*(2*T+1)),this.bl_tree=new o.Buf16(2*(2*O+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 o.Buf16(C+1),this.heap=new o.Buf16(2*x+1),V(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*x+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 rt;return ue&&ue.state?(ue.total_in=ue.total_out=0,ue.data_type=v,(rt=ue.state).pending=0,rt.pending_out=0,rt.wrap<0&&(rt.wrap=-rt.wrap),rt.status=rt.wrap?R:B,ue.adler=rt.wrap===2?0:1,rt.last_flush=u,n._tr_init(rt),s):W(ue,c)}function ct(ue){var rt=Ve(ue);return rt===s&&function(ge){ge.window_size=2*ge.w_size,V(ge.head),ge.max_lazy_match=l[ge.level].max_lazy,ge.good_match=l[ge.level].good_length,ge.nice_match=l[ge.level].nice_length,ge.max_chain_length=l[ge.level].max_chain,ge.strstart=0,ge.block_start=0,ge.lookahead=0,ge.insert=0,ge.match_length=ge.prev_length=I-1,ge.match_available=0,ge.ins_h=0}(ue.state),rt}function Ue(ue,rt,ge,Z,Y,ee){if(!ue)return c;var fe=1;if(rt===h&&(rt=6),Z<0?(fe=0,Z=-Z):15<Z&&(fe=2,Z-=16),Y<1||w<Y||ge!==b||Z<8||15<Z||rt<0||9<rt||ee<0||g<ee)return W(ue,c);Z===8&&(Z=9);var be=new Je;return(ue.state=be).strm=ue,be.wrap=fe,be.gzhead=null,be.w_bits=Z,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+I-1)/I),be.window=new o.Buf8(2*be.w_size),be.head=new o.Buf16(be.hash_size),be.prev=new o.Buf16(be.w_size),be.lit_bufsize=1<<Y+6,be.pending_buf_size=4*be.lit_bufsize,be.pending_buf=new o.Buf8(be.pending_buf_size),be.d_buf=1*be.lit_bufsize,be.l_buf=3*be.lit_bufsize,be.level=rt,be.strategy=ee,be.method=ge,ct(ue)}l=[new Pe(0,0,0,0,function(ue,rt){var ge=65535;for(ge>ue.pending_buf_size-5&&(ge=ue.pending_buf_size-5);;){if(ue.lookahead<=1){if(re(ue),ue.lookahead===0&&rt===u)return M;if(ue.lookahead===0)break}ue.strstart+=ue.lookahead,ue.lookahead=0;var Z=ue.block_start+ge;if((ue.strstart===0||ue.strstart>=Z)&&(ue.lookahead=ue.strstart-Z,ue.strstart=Z,G(ue,!1),ue.strm.avail_out===0))return M;if(ue.strstart-ue.block_start>=ue.w_size-F&&(G(ue,!1),ue.strm.avail_out===0))return M}return ue.insert=0,rt===r?(G(ue,!0),ue.strm.avail_out===0?P:z):(ue.strstart>ue.block_start&&(G(ue,!1),ue.strm.avail_out),M)}),new Pe(4,4,8,4,Se),new Pe(4,5,16,8,Se),new Pe(4,6,32,32,Se),new Pe(4,4,16,16,Re),new Pe(8,16,32,32,Re),new Pe(8,16,128,128,Re),new Pe(8,32,128,256,Re),new Pe(32,128,258,1024,Re),new Pe(32,258,258,4096,Re)],d.deflateInit=function(ue,rt){return Ue(ue,rt,b,15,8,0)},d.deflateInit2=Ue,d.deflateReset=ct,d.deflateResetKeep=Ve,d.deflateSetHeader=function(ue,rt){return ue&&ue.state?ue.state.wrap!==2?c:(ue.state.gzhead=rt,s):c},d.deflate=function(ue,rt){var ge,Z,Y,ee;if(!ue||!ue.state||5<rt||rt<0)return ue?W(ue,c):c;if(Z=ue.state,!ue.output||!ue.input&&ue.avail_in!==0||Z.status===666&&rt!==r)return W(ue,ue.avail_out===0?-5:c);if(Z.strm=ue,ge=Z.last_flush,Z.last_flush=rt,Z.status===R)if(Z.wrap===2)ue.adler=0,te(Z,31),te(Z,139),te(Z,8),Z.gzhead?(te(Z,(Z.gzhead.text?1:0)+(Z.gzhead.hcrc?2:0)+(Z.gzhead.extra?4:0)+(Z.gzhead.name?8:0)+(Z.gzhead.comment?16:0)),te(Z,255&Z.gzhead.time),te(Z,Z.gzhead.time>>8&255),te(Z,Z.gzhead.time>>16&255),te(Z,Z.gzhead.time>>24&255),te(Z,Z.level===9?2:2<=Z.strategy||Z.level<2?4:0),te(Z,255&Z.gzhead.os),Z.gzhead.extra&&Z.gzhead.extra.length&&(te(Z,255&Z.gzhead.extra.length),te(Z,Z.gzhead.extra.length>>8&255)),Z.gzhead.hcrc&&(ue.adler=a(ue.adler,Z.pending_buf,Z.pending,0)),Z.gzindex=0,Z.status=69):(te(Z,0),te(Z,0),te(Z,0),te(Z,0),te(Z,0),te(Z,Z.level===9?2:2<=Z.strategy||Z.level<2?4:0),te(Z,3),Z.status=B);else{var fe=b+(Z.w_bits-8<<4)<<8;fe|=(2<=Z.strategy||Z.level<2?0:Z.level<6?1:Z.level===6?2:3)<<6,Z.strstart!==0&&(fe|=32),fe+=31-fe%31,Z.status=B,$(Z,fe),Z.strstart!==0&&($(Z,ue.adler>>>16),$(Z,65535&ue.adler)),ue.adler=1}if(Z.status===69)if(Z.gzhead.extra){for(Y=Z.pending;Z.gzindex<(65535&Z.gzhead.extra.length)&&(Z.pending!==Z.pending_buf_size||(Z.gzhead.hcrc&&Z.pending>Y&&(ue.adler=a(ue.adler,Z.pending_buf,Z.pending-Y,Y)),Q(ue),Y=Z.pending,Z.pending!==Z.pending_buf_size));)te(Z,255&Z.gzhead.extra[Z.gzindex]),Z.gzindex++;Z.gzhead.hcrc&&Z.pending>Y&&(ue.adler=a(ue.adler,Z.pending_buf,Z.pending-Y,Y)),Z.gzindex===Z.gzhead.extra.length&&(Z.gzindex=0,Z.status=73)}else Z.status=73;if(Z.status===73)if(Z.gzhead.name){Y=Z.pending;do{if(Z.pending===Z.pending_buf_size&&(Z.gzhead.hcrc&&Z.pending>Y&&(ue.adler=a(ue.adler,Z.pending_buf,Z.pending-Y,Y)),Q(ue),Y=Z.pending,Z.pending===Z.pending_buf_size)){ee=1;break}ee=Z.gzindex<Z.gzhead.name.length?255&Z.gzhead.name.charCodeAt(Z.gzindex++):0,te(Z,ee)}while(ee!==0);Z.gzhead.hcrc&&Z.pending>Y&&(ue.adler=a(ue.adler,Z.pending_buf,Z.pending-Y,Y)),ee===0&&(Z.gzindex=0,Z.status=91)}else Z.status=91;if(Z.status===91)if(Z.gzhead.comment){Y=Z.pending;do{if(Z.pending===Z.pending_buf_size&&(Z.gzhead.hcrc&&Z.pending>Y&&(ue.adler=a(ue.adler,Z.pending_buf,Z.pending-Y,Y)),Q(ue),Y=Z.pending,Z.pending===Z.pending_buf_size)){ee=1;break}ee=Z.gzindex<Z.gzhead.comment.length?255&Z.gzhead.comment.charCodeAt(Z.gzindex++):0,te(Z,ee)}while(ee!==0);Z.gzhead.hcrc&&Z.pending>Y&&(ue.adler=a(ue.adler,Z.pending_buf,Z.pending-Y,Y)),ee===0&&(Z.status=103)}else Z.status=103;if(Z.status===103&&(Z.gzhead.hcrc?(Z.pending+2>Z.pending_buf_size&&Q(ue),Z.pending+2<=Z.pending_buf_size&&(te(Z,255&ue.adler),te(Z,ue.adler>>8&255),ue.adler=0,Z.status=B)):Z.status=B),Z.pending!==0){if(Q(ue),ue.avail_out===0)return Z.last_flush=-1,s}else if(ue.avail_in===0&&U(rt)<=U(ge)&&rt!==r)return W(ue,-5);if(Z.status===666&&ue.avail_in!==0)return W(ue,-5);if(ue.avail_in!==0||Z.lookahead!==0||rt!==u&&Z.status!==666){var be=Z.strategy===2?function(Ce,Te){for(var he;;){if(Ce.lookahead===0&&(re(Ce),Ce.lookahead===0)){if(Te===u)return M;break}if(Ce.match_length=0,he=n._tr_tally(Ce,0,Ce.window[Ce.strstart]),Ce.lookahead--,Ce.strstart++,he&&(G(Ce,!1),Ce.strm.avail_out===0))return M}return Ce.insert=0,Te===r?(G(Ce,!0),Ce.strm.avail_out===0?P:z):Ce.last_lit&&(G(Ce,!1),Ce.strm.avail_out===0)?M:X}(Z,rt):Z.strategy===3?function(Ce,Te){for(var he,ye,Ie,tt,pt=Ce.window;;){if(Ce.lookahead<=_){if(re(Ce),Ce.lookahead<=_&&Te===u)return M;if(Ce.lookahead===0)break}if(Ce.match_length=0,Ce.lookahead>=I&&0<Ce.strstart&&(ye=pt[Ie=Ce.strstart-1])===pt[++Ie]&&ye===pt[++Ie]&&ye===pt[++Ie]){tt=Ce.strstart+_;do;while(ye===pt[++Ie]&&ye===pt[++Ie]&&ye===pt[++Ie]&&ye===pt[++Ie]&&ye===pt[++Ie]&&ye===pt[++Ie]&&ye===pt[++Ie]&&ye===pt[++Ie]&&Ie<tt);Ce.match_length=_-(tt-Ie),Ce.match_length>Ce.lookahead&&(Ce.match_length=Ce.lookahead)}if(Ce.match_length>=I?(he=n._tr_tally(Ce,1,Ce.match_length-I),Ce.lookahead-=Ce.match_length,Ce.strstart+=Ce.match_length,Ce.match_length=0):(he=n._tr_tally(Ce,0,Ce.window[Ce.strstart]),Ce.lookahead--,Ce.strstart++),he&&(G(Ce,!1),Ce.strm.avail_out===0))return M}return Ce.insert=0,Te===r?(G(Ce,!0),Ce.strm.avail_out===0?P:z):Ce.last_lit&&(G(Ce,!1),Ce.strm.avail_out===0)?M:X}(Z,rt):l[Z.level].func(Z,rt);if(be!==P&&be!==z||(Z.status=666),be===M||be===P)return ue.avail_out===0&&(Z.last_flush=-1),s;if(be===X&&(rt===1?n._tr_align(Z):rt!==5&&(n._tr_stored_block(Z,0,0,!1),rt===3&&(V(Z.head),Z.lookahead===0&&(Z.strstart=0,Z.block_start=0,Z.insert=0))),Q(ue),ue.avail_out===0))return Z.last_flush=-1,s}return rt!==r?s:Z.wrap<=0?1:(Z.wrap===2?(te(Z,255&ue.adler),te(Z,ue.adler>>8&255),te(Z,ue.adler>>16&255),te(Z,ue.adler>>24&255),te(Z,255&ue.total_in),te(Z,ue.total_in>>8&255),te(Z,ue.total_in>>16&255),te(Z,ue.total_in>>24&255)):($(Z,ue.adler>>>16),$(Z,65535&ue.adler)),Q(ue),0<Z.wrap&&(Z.wrap=-Z.wrap),Z.pending!==0?s:1)},d.deflateEnd=function(ue){var rt;return ue&&ue.state?(rt=ue.state.status)!==R&&rt!==69&&rt!==73&&rt!==91&&rt!==103&&rt!==B&&rt!==666?W(ue,c):(ue.state=null,rt===B?W(ue,-3):s):c},d.deflateSetDictionary=function(ue,rt){var ge,Z,Y,ee,fe,be,Ce,Te,he=rt.length;if(!ue||!ue.state)return c;if((ee=(ge=ue.state).wrap)===2||ee===1&&ge.status!==R||ge.lookahead)return c;for(ee===1&&(ue.adler=t(ue.adler,rt,he,0)),ge.wrap=0,he>=ge.w_size&&(ee===0&&(V(ge.head),ge.strstart=0,ge.block_start=0,ge.insert=0),Te=new o.Buf8(ge.w_size),o.arraySet(Te,rt,he-ge.w_size,ge.w_size,0),rt=Te,he=ge.w_size),fe=ue.avail_in,be=ue.next_in,Ce=ue.input,ue.avail_in=he,ue.next_in=0,ue.input=rt,re(ge);ge.lookahead>=I;){for(Z=ge.strstart,Y=ge.lookahead-(I-1);ge.ins_h=(ge.ins_h<<ge.hash_shift^ge.window[Z+I-1])&ge.hash_mask,ge.prev[Z&ge.w_mask]=ge.head[ge.ins_h],ge.head[ge.ins_h]=Z,Z++,--Y;);ge.strstart=Z,ge.lookahead=I-1,re(ge)}return ge.strstart+=ge.lookahead,ge.block_start=ge.strstart,ge.insert=ge.lookahead,ge.lookahead=0,ge.match_length=ge.prev_length=I-1,ge.match_available=0,ue.next_in=be,ue.input=Ce,ue.avail_in=fe,ge.wrap=ee,s},d.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(m,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(m,f,d){"use strict";f.exports=function(l,o){var n,t,a,e,u,r,s,c,h,g,v,b,w,x,T,O,E,C,I,_,F,R,B,M,X;n=l.state,t=l.next_in,M=l.input,a=t+(l.avail_in-5),e=l.next_out,X=l.output,u=e-(o-l.avail_out),r=e+(l.avail_out-257),s=n.dmax,c=n.wsize,h=n.whave,g=n.wnext,v=n.window,b=n.hold,w=n.bits,x=n.lencode,T=n.distcode,O=(1<<n.lenbits)-1,E=(1<<n.distbits)-1;e:do{w<15&&(b+=M[t++]<<w,w+=8,b+=M[t++]<<w,w+=8),C=x[b&O];t:for(;;){if(b>>>=I=C>>>24,w-=I,(I=C>>>16&255)===0)X[e++]=65535&C;else{if(!(16&I)){if((64&I)==0){C=x[(65535&C)+(b&(1<<I)-1)];continue t}if(32&I){n.mode=12;break e}l.msg="invalid literal/length code",n.mode=30;break e}_=65535&C,(I&=15)&&(w<I&&(b+=M[t++]<<w,w+=8),_+=b&(1<<I)-1,b>>>=I,w-=I),w<15&&(b+=M[t++]<<w,w+=8,b+=M[t++]<<w,w+=8),C=T[b&E];r:for(;;){if(b>>>=I=C>>>24,w-=I,!(16&(I=C>>>16&255))){if((64&I)==0){C=T[(65535&C)+(b&(1<<I)-1)];continue r}l.msg="invalid distance code",n.mode=30;break e}if(F=65535&C,w<(I&=15)&&(b+=M[t++]<<w,(w+=8)<I&&(b+=M[t++]<<w,w+=8)),s<(F+=b&(1<<I)-1)){l.msg="invalid distance too far back",n.mode=30;break e}if(b>>>=I,w-=I,(I=e-u)<F){if(h<(I=F-I)&&n.sane){l.msg="invalid distance too far back",n.mode=30;break e}if(B=v,(R=0)===g){if(R+=c-I,I<_){for(_-=I;X[e++]=v[R++],--I;);R=e-F,B=X}}else if(g<I){if(R+=c+g-I,(I-=g)<_){for(_-=I;X[e++]=v[R++],--I;);if(R=0,g<_){for(_-=I=g;X[e++]=v[R++],--I;);R=e-F,B=X}}}else if(R+=g-I,I<_){for(_-=I;X[e++]=v[R++],--I;);R=e-F,B=X}for(;2<_;)X[e++]=B[R++],X[e++]=B[R++],X[e++]=B[R++],_-=3;_&&(X[e++]=B[R++],1<_&&(X[e++]=B[R++]))}else{for(R=e-F;X[e++]=X[R++],X[e++]=X[R++],X[e++]=X[R++],2<(_-=3););_&&(X[e++]=X[R++],1<_&&(X[e++]=X[R++]))}break}}break}}while(t<a&&e<r);t-=_=w>>3,b&=(1<<(w-=_<<3))-1,l.next_in=t,l.next_out=e,l.avail_in=t<a?a-t+5:5-(t-a),l.avail_out=e<r?r-e+257:257-(e-r),n.hold=b,n.bits=w}},{}],49:[function(m,f,d){"use strict";var l=m("../utils/common"),o=m("./adler32"),n=m("./crc32"),t=m("./inffast"),a=m("./inftrees"),e=1,u=2,r=0,s=-2,c=1,h=852,g=592;function v(R){return(R>>>24&255)+(R>>>8&65280)+((65280&R)<<8)+((255&R)<<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 w(R){var B;return R&&R.state?(B=R.state,R.total_in=R.total_out=B.total=0,R.msg="",B.wrap&&(R.adler=1&B.wrap),B.mode=c,B.last=0,B.havedict=0,B.dmax=32768,B.head=null,B.hold=0,B.bits=0,B.lencode=B.lendyn=new l.Buf32(h),B.distcode=B.distdyn=new l.Buf32(g),B.sane=1,B.back=-1,r):s}function x(R){var B;return R&&R.state?((B=R.state).wsize=0,B.whave=0,B.wnext=0,w(R)):s}function T(R,B){var M,X;return R&&R.state?(X=R.state,B<0?(M=0,B=-B):(M=1+(B>>4),B<48&&(B&=15)),B&&(B<8||15<B)?s:(X.window!==null&&X.wbits!==B&&(X.window=null),X.wrap=M,X.wbits=B,x(R))):s}function O(R,B){var M,X;return R?(X=new b,(R.state=X).window=null,(M=T(R,B))!==r&&(R.state=null),M):s}var E,C,I=!0;function _(R){if(I){var B;for(E=new l.Buf32(512),C=new l.Buf32(32),B=0;B<144;)R.lens[B++]=8;for(;B<256;)R.lens[B++]=9;for(;B<280;)R.lens[B++]=7;for(;B<288;)R.lens[B++]=8;for(a(e,R.lens,0,288,E,0,R.work,{bits:9}),B=0;B<32;)R.lens[B++]=5;a(u,R.lens,0,32,C,0,R.work,{bits:5}),I=!1}R.lencode=E,R.lenbits=9,R.distcode=C,R.distbits=5}function F(R,B,M,X){var P,z=R.state;return z.window===null&&(z.wsize=1<<z.wbits,z.wnext=0,z.whave=0,z.window=new l.Buf8(z.wsize)),X>=z.wsize?(l.arraySet(z.window,B,M-z.wsize,z.wsize,0),z.wnext=0,z.whave=z.wsize):(X<(P=z.wsize-z.wnext)&&(P=X),l.arraySet(z.window,B,M-X,P,z.wnext),(X-=P)?(l.arraySet(z.window,B,M-X,X,0),z.wnext=X,z.whave=z.wsize):(z.wnext+=P,z.wnext===z.wsize&&(z.wnext=0),z.whave<z.wsize&&(z.whave+=P))),0}d.inflateReset=x,d.inflateReset2=T,d.inflateResetKeep=w,d.inflateInit=function(R){return O(R,15)},d.inflateInit2=O,d.inflate=function(R,B){var M,X,P,z,W,U,V,Q,G,te,$,le,re,Se,Re,Pe,Je,Ve,ct,Ue,ue,rt,ge,Z,Y=0,ee=new l.Buf8(4),fe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!R||!R.state||!R.output||!R.input&&R.avail_in!==0)return s;(M=R.state).mode===12&&(M.mode=13),W=R.next_out,P=R.output,V=R.avail_out,z=R.next_in,X=R.input,U=R.avail_in,Q=M.hold,G=M.bits,te=U,$=V,rt=r;e:for(;;)switch(M.mode){case c:if(M.wrap===0){M.mode=13;break}for(;G<16;){if(U===0)break e;U--,Q+=X[z++]<<G,G+=8}if(2&M.wrap&&Q===35615){ee[M.check=0]=255&Q,ee[1]=Q>>>8&255,M.check=n(M.check,ee,2,0),G=Q=0,M.mode=2;break}if(M.flags=0,M.head&&(M.head.done=!1),!(1&M.wrap)||(((255&Q)<<8)+(Q>>8))%31){R.msg="incorrect header check",M.mode=30;break}if((15&Q)!=8){R.msg="unknown compression method",M.mode=30;break}if(G-=4,ue=8+(15&(Q>>>=4)),M.wbits===0)M.wbits=ue;else if(ue>M.wbits){R.msg="invalid window size",M.mode=30;break}M.dmax=1<<ue,R.adler=M.check=1,M.mode=512&Q?10:12,G=Q=0;break;case 2:for(;G<16;){if(U===0)break e;U--,Q+=X[z++]<<G,G+=8}if(M.flags=Q,(255&M.flags)!=8){R.msg="unknown compression method",M.mode=30;break}if(57344&M.flags){R.msg="unknown header flags set",M.mode=30;break}M.head&&(M.head.text=Q>>8&1),512&M.flags&&(ee[0]=255&Q,ee[1]=Q>>>8&255,M.check=n(M.check,ee,2,0)),G=Q=0,M.mode=3;case 3:for(;G<32;){if(U===0)break e;U--,Q+=X[z++]<<G,G+=8}M.head&&(M.head.time=Q),512&M.flags&&(ee[0]=255&Q,ee[1]=Q>>>8&255,ee[2]=Q>>>16&255,ee[3]=Q>>>24&255,M.check=n(M.check,ee,4,0)),G=Q=0,M.mode=4;case 4:for(;G<16;){if(U===0)break e;U--,Q+=X[z++]<<G,G+=8}M.head&&(M.head.xflags=255&Q,M.head.os=Q>>8),512&M.flags&&(ee[0]=255&Q,ee[1]=Q>>>8&255,M.check=n(M.check,ee,2,0)),G=Q=0,M.mode=5;case 5:if(1024&M.flags){for(;G<16;){if(U===0)break e;U--,Q+=X[z++]<<G,G+=8}M.length=Q,M.head&&(M.head.extra_len=Q),512&M.flags&&(ee[0]=255&Q,ee[1]=Q>>>8&255,M.check=n(M.check,ee,2,0)),G=Q=0}else M.head&&(M.head.extra=null);M.mode=6;case 6:if(1024&M.flags&&(U<(le=M.length)&&(le=U),le&&(M.head&&(ue=M.head.extra_len-M.length,M.head.extra||(M.head.extra=new Array(M.head.extra_len)),l.arraySet(M.head.extra,X,z,le,ue)),512&M.flags&&(M.check=n(M.check,X,le,z)),U-=le,z+=le,M.length-=le),M.length))break e;M.length=0,M.mode=7;case 7:if(2048&M.flags){if(U===0)break e;for(le=0;ue=X[z+le++],M.head&&ue&&M.length<65536&&(M.head.name+=String.fromCharCode(ue)),ue&&le<U;);if(512&M.flags&&(M.check=n(M.check,X,le,z)),U-=le,z+=le,ue)break e}else M.head&&(M.head.name=null);M.length=0,M.mode=8;case 8:if(4096&M.flags){if(U===0)break e;for(le=0;ue=X[z+le++],M.head&&ue&&M.length<65536&&(M.head.comment+=String.fromCharCode(ue)),ue&&le<U;);if(512&M.flags&&(M.check=n(M.check,X,le,z)),U-=le,z+=le,ue)break e}else M.head&&(M.head.comment=null);M.mode=9;case 9:if(512&M.flags){for(;G<16;){if(U===0)break e;U--,Q+=X[z++]<<G,G+=8}if(Q!==(65535&M.check)){R.msg="header crc mismatch",M.mode=30;break}G=Q=0}M.head&&(M.head.hcrc=M.flags>>9&1,M.head.done=!0),R.adler=M.check=0,M.mode=12;break;case 10:for(;G<32;){if(U===0)break e;U--,Q+=X[z++]<<G,G+=8}R.adler=M.check=v(Q),G=Q=0,M.mode=11;case 11:if(M.havedict===0)return R.next_out=W,R.avail_out=V,R.next_in=z,R.avail_in=U,M.hold=Q,M.bits=G,2;R.adler=M.check=1,M.mode=12;case 12:if(B===5||B===6)break e;case 13:if(M.last){Q>>>=7&G,G-=7&G,M.mode=27;break}for(;G<3;){if(U===0)break e;U--,Q+=X[z++]<<G,G+=8}switch(M.last=1&Q,G-=1,3&(Q>>>=1)){case 0:M.mode=14;break;case 1:if(_(M),M.mode=20,B!==6)break;Q>>>=2,G-=2;break e;case 2:M.mode=17;break;case 3:R.msg="invalid block type",M.mode=30}Q>>>=2,G-=2;break;case 14:for(Q>>>=7&G,G-=7&G;G<32;){if(U===0)break e;U--,Q+=X[z++]<<G,G+=8}if((65535&Q)!=(Q>>>16^65535)){R.msg="invalid stored block lengths",M.mode=30;break}if(M.length=65535&Q,G=Q=0,M.mode=15,B===6)break e;case 15:M.mode=16;case 16:if(le=M.length){if(U<le&&(le=U),V<le&&(le=V),le===0)break e;l.arraySet(P,X,z,le,W),U-=le,z+=le,V-=le,W+=le,M.length-=le;break}M.mode=12;break;case 17:for(;G<14;){if(U===0)break e;U--,Q+=X[z++]<<G,G+=8}if(M.nlen=257+(31&Q),Q>>>=5,G-=5,M.ndist=1+(31&Q),Q>>>=5,G-=5,M.ncode=4+(15&Q),Q>>>=4,G-=4,286<M.nlen||30<M.ndist){R.msg="too many length or distance symbols",M.mode=30;break}M.have=0,M.mode=18;case 18:for(;M.have<M.ncode;){for(;G<3;){if(U===0)break e;U--,Q+=X[z++]<<G,G+=8}M.lens[fe[M.have++]]=7&Q,Q>>>=3,G-=3}for(;M.have<19;)M.lens[fe[M.have++]]=0;if(M.lencode=M.lendyn,M.lenbits=7,ge={bits:M.lenbits},rt=a(0,M.lens,0,19,M.lencode,0,M.work,ge),M.lenbits=ge.bits,rt){R.msg="invalid code lengths set",M.mode=30;break}M.have=0,M.mode=19;case 19:for(;M.have<M.nlen+M.ndist;){for(;Pe=(Y=M.lencode[Q&(1<<M.lenbits)-1])>>>16&255,Je=65535&Y,!((Re=Y>>>24)<=G);){if(U===0)break e;U--,Q+=X[z++]<<G,G+=8}if(Je<16)Q>>>=Re,G-=Re,M.lens[M.have++]=Je;else{if(Je===16){for(Z=Re+2;G<Z;){if(U===0)break e;U--,Q+=X[z++]<<G,G+=8}if(Q>>>=Re,G-=Re,M.have===0){R.msg="invalid bit length repeat",M.mode=30;break}ue=M.lens[M.have-1],le=3+(3&Q),Q>>>=2,G-=2}else if(Je===17){for(Z=Re+3;G<Z;){if(U===0)break e;U--,Q+=X[z++]<<G,G+=8}G-=Re,ue=0,le=3+(7&(Q>>>=Re)),Q>>>=3,G-=3}else{for(Z=Re+7;G<Z;){if(U===0)break e;U--,Q+=X[z++]<<G,G+=8}G-=Re,ue=0,le=11+(127&(Q>>>=Re)),Q>>>=7,G-=7}if(M.have+le>M.nlen+M.ndist){R.msg="invalid bit length repeat",M.mode=30;break}for(;le--;)M.lens[M.have++]=ue}}if(M.mode===30)break;if(M.lens[256]===0){R.msg="invalid code -- missing end-of-block",M.mode=30;break}if(M.lenbits=9,ge={bits:M.lenbits},rt=a(e,M.lens,0,M.nlen,M.lencode,0,M.work,ge),M.lenbits=ge.bits,rt){R.msg="invalid literal/lengths set",M.mode=30;break}if(M.distbits=6,M.distcode=M.distdyn,ge={bits:M.distbits},rt=a(u,M.lens,M.nlen,M.ndist,M.distcode,0,M.work,ge),M.distbits=ge.bits,rt){R.msg="invalid distances set",M.mode=30;break}if(M.mode=20,B===6)break e;case 20:M.mode=21;case 21:if(6<=U&&258<=V){R.next_out=W,R.avail_out=V,R.next_in=z,R.avail_in=U,M.hold=Q,M.bits=G,t(R,$),W=R.next_out,P=R.output,V=R.avail_out,z=R.next_in,X=R.input,U=R.avail_in,Q=M.hold,G=M.bits,M.mode===12&&(M.back=-1);break}for(M.back=0;Pe=(Y=M.lencode[Q&(1<<M.lenbits)-1])>>>16&255,Je=65535&Y,!((Re=Y>>>24)<=G);){if(U===0)break e;U--,Q+=X[z++]<<G,G+=8}if(Pe&&(240&Pe)==0){for(Ve=Re,ct=Pe,Ue=Je;Pe=(Y=M.lencode[Ue+((Q&(1<<Ve+ct)-1)>>Ve)])>>>16&255,Je=65535&Y,!(Ve+(Re=Y>>>24)<=G);){if(U===0)break e;U--,Q+=X[z++]<<G,G+=8}Q>>>=Ve,G-=Ve,M.back+=Ve}if(Q>>>=Re,G-=Re,M.back+=Re,M.length=Je,Pe===0){M.mode=26;break}if(32&Pe){M.back=-1,M.mode=12;break}if(64&Pe){R.msg="invalid literal/length code",M.mode=30;break}M.extra=15&Pe,M.mode=22;case 22:if(M.extra){for(Z=M.extra;G<Z;){if(U===0)break e;U--,Q+=X[z++]<<G,G+=8}M.length+=Q&(1<<M.extra)-1,Q>>>=M.extra,G-=M.extra,M.back+=M.extra}M.was=M.length,M.mode=23;case 23:for(;Pe=(Y=M.distcode[Q&(1<<M.distbits)-1])>>>16&255,Je=65535&Y,!((Re=Y>>>24)<=G);){if(U===0)break e;U--,Q+=X[z++]<<G,G+=8}if((240&Pe)==0){for(Ve=Re,ct=Pe,Ue=Je;Pe=(Y=M.distcode[Ue+((Q&(1<<Ve+ct)-1)>>Ve)])>>>16&255,Je=65535&Y,!(Ve+(Re=Y>>>24)<=G);){if(U===0)break e;U--,Q+=X[z++]<<G,G+=8}Q>>>=Ve,G-=Ve,M.back+=Ve}if(Q>>>=Re,G-=Re,M.back+=Re,64&Pe){R.msg="invalid distance code",M.mode=30;break}M.offset=Je,M.extra=15&Pe,M.mode=24;case 24:if(M.extra){for(Z=M.extra;G<Z;){if(U===0)break e;U--,Q+=X[z++]<<G,G+=8}M.offset+=Q&(1<<M.extra)-1,Q>>>=M.extra,G-=M.extra,M.back+=M.extra}if(M.offset>M.dmax){R.msg="invalid distance too far back",M.mode=30;break}M.mode=25;case 25:if(V===0)break e;if(le=$-V,M.offset>le){if((le=M.offset-le)>M.whave&&M.sane){R.msg="invalid distance too far back",M.mode=30;break}re=le>M.wnext?(le-=M.wnext,M.wsize-le):M.wnext-le,le>M.length&&(le=M.length),Se=M.window}else Se=P,re=W-M.offset,le=M.length;for(V<le&&(le=V),V-=le,M.length-=le;P[W++]=Se[re++],--le;);M.length===0&&(M.mode=21);break;case 26:if(V===0)break e;P[W++]=M.length,V--,M.mode=21;break;case 27:if(M.wrap){for(;G<32;){if(U===0)break e;U--,Q|=X[z++]<<G,G+=8}if($-=V,R.total_out+=$,M.total+=$,$&&(R.adler=M.check=M.flags?n(M.check,P,$,W-$):o(M.check,P,$,W-$)),$=V,(M.flags?Q:v(Q))!==M.check){R.msg="incorrect data check",M.mode=30;break}G=Q=0}M.mode=28;case 28:if(M.wrap&&M.flags){for(;G<32;){if(U===0)break e;U--,Q+=X[z++]<<G,G+=8}if(Q!==(4294967295&M.total)){R.msg="incorrect length check",M.mode=30;break}G=Q=0}M.mode=29;case 29:rt=1;break e;case 30:rt=-3;break e;case 31:return-4;case 32:default:return s}return R.next_out=W,R.avail_out=V,R.next_in=z,R.avail_in=U,M.hold=Q,M.bits=G,(M.wsize||$!==R.avail_out&&M.mode<30&&(M.mode<27||B!==4))&&F(R,R.output,R.next_out,$-R.avail_out)?(M.mode=31,-4):(te-=R.avail_in,$-=R.avail_out,R.total_in+=te,R.total_out+=$,M.total+=$,M.wrap&&$&&(R.adler=M.check=M.flags?n(M.check,P,$,R.next_out-$):o(M.check,P,$,R.next_out-$)),R.data_type=M.bits+(M.last?64:0)+(M.mode===12?128:0)+(M.mode===20||M.mode===15?256:0),(te==0&&$===0||B===4)&&rt===r&&(rt=-5),rt)},d.inflateEnd=function(R){if(!R||!R.state)return s;var B=R.state;return B.window&&(B.window=null),R.state=null,r},d.inflateGetHeader=function(R,B){var M;return R&&R.state?(2&(M=R.state).wrap)==0?s:((M.head=B).done=!1,r):s},d.inflateSetDictionary=function(R,B){var M,X=B.length;return R&&R.state?(M=R.state).wrap!==0&&M.mode!==11?s:M.mode===11&&o(1,B,X,0)!==M.check?-3:F(R,B,X,X)?(M.mode=31,-4):(M.havedict=1,r):s},d.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(m,f,d){"use strict";var l=m("../utils/common"),o=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],n=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],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],a=[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,g,v){var b,w,x,T,O,E,C,I,_,F=v.bits,R=0,B=0,M=0,X=0,P=0,z=0,W=0,U=0,V=0,Q=0,G=null,te=0,$=new l.Buf16(16),le=new l.Buf16(16),re=null,Se=0;for(R=0;R<=15;R++)$[R]=0;for(B=0;B<s;B++)$[u[r+B]]++;for(P=F,X=15;1<=X&&$[X]===0;X--);if(X<P&&(P=X),X===0)return c[h++]=20971520,c[h++]=20971520,v.bits=1,0;for(M=1;M<X&&$[M]===0;M++);for(P<M&&(P=M),R=U=1;R<=15;R++)if(U<<=1,(U-=$[R])<0)return-1;if(0<U&&(e===0||X!==1))return-1;for(le[1]=0,R=1;R<15;R++)le[R+1]=le[R]+$[R];for(B=0;B<s;B++)u[r+B]!==0&&(g[le[u[r+B]]++]=B);if(E=e===0?(G=re=g,19):e===1?(G=o,te-=257,re=n,Se-=257,256):(G=t,re=a,-1),R=M,O=h,W=B=Q=0,x=-1,T=(V=1<<(z=P))-1,e===1&&852<V||e===2&&592<V)return 1;for(;;){for(C=R-W,_=g[B]<E?(I=0,g[B]):g[B]>E?(I=re[Se+g[B]],G[te+g[B]]):(I=96,0),b=1<<R-W,M=w=1<<z;c[O+(Q>>W)+(w-=b)]=C<<24|I<<16|_|0,w!==0;);for(b=1<<R-1;Q&b;)b>>=1;if(b!==0?(Q&=b-1,Q+=b):Q=0,B++,--$[R]==0){if(R===X)break;R=u[r+g[B]]}if(P<R&&(Q&T)!==x){for(W===0&&(W=P),O+=M,U=1<<(z=R-W);z+W<X&&!((U-=$[z+W])<=0);)z++,U<<=1;if(V+=1<<z,e===1&&852<V||e===2&&592<V)return 1;c[x=Q&T]=P<<24|z<<16|O-h|0}}return Q!==0&&(c[O+Q]=R-W<<24|64<<16|0),v.bits=P,0}},{"../utils/common":41}],51:[function(m,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(m,f,d){"use strict";var l=m("../utils/common"),o=0,n=1;function t(Y){for(var ee=Y.length;0<=--ee;)Y[ee]=0}var a=0,e=29,u=256,r=u+1+e,s=30,c=19,h=2*r+1,g=15,v=16,b=7,w=256,x=16,T=17,O=18,E=[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],C=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],I=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],_=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],F=new Array(2*(r+2));t(F);var R=new Array(2*s);t(R);var B=new Array(512);t(B);var M=new Array(256);t(M);var X=new Array(e);t(X);var P,z,W,U=new Array(s);function V(Y,ee,fe,be,Ce){this.static_tree=Y,this.extra_bits=ee,this.extra_base=fe,this.elems=be,this.max_length=Ce,this.has_stree=Y&&Y.length}function Q(Y,ee){this.dyn_tree=Y,this.max_code=0,this.stat_desc=ee}function G(Y){return Y<256?B[Y]:B[256+(Y>>>7)]}function te(Y,ee){Y.pending_buf[Y.pending++]=255&ee,Y.pending_buf[Y.pending++]=ee>>>8&255}function $(Y,ee,fe){Y.bi_valid>v-fe?(Y.bi_buf|=ee<<Y.bi_valid&65535,te(Y,Y.bi_buf),Y.bi_buf=ee>>v-Y.bi_valid,Y.bi_valid+=fe-v):(Y.bi_buf|=ee<<Y.bi_valid&65535,Y.bi_valid+=fe)}function le(Y,ee,fe){$(Y,fe[2*ee],fe[2*ee+1])}function re(Y,ee){for(var fe=0;fe|=1&Y,Y>>>=1,fe<<=1,0<--ee;);return fe>>>1}function Se(Y,ee,fe){var be,Ce,Te=new Array(g+1),he=0;for(be=1;be<=g;be++)Te[be]=he=he+fe[be-1]<<1;for(Ce=0;Ce<=ee;Ce++){var ye=Y[2*Ce+1];ye!==0&&(Y[2*Ce]=re(Te[ye]++,ye))}}function Re(Y){var ee;for(ee=0;ee<r;ee++)Y.dyn_ltree[2*ee]=0;for(ee=0;ee<s;ee++)Y.dyn_dtree[2*ee]=0;for(ee=0;ee<c;ee++)Y.bl_tree[2*ee]=0;Y.dyn_ltree[2*w]=1,Y.opt_len=Y.static_len=0,Y.last_lit=Y.matches=0}function Pe(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 Je(Y,ee,fe,be){var Ce=2*ee,Te=2*fe;return Y[Ce]<Y[Te]||Y[Ce]===Y[Te]&&be[ee]<=be[fe]}function Ve(Y,ee,fe){for(var be=Y.heap[fe],Ce=fe<<1;Ce<=Y.heap_len&&(Ce<Y.heap_len&&Je(ee,Y.heap[Ce+1],Y.heap[Ce],Y.depth)&&Ce++,!Je(ee,be,Y.heap[Ce],Y.depth));)Y.heap[fe]=Y.heap[Ce],fe=Ce,Ce<<=1;Y.heap[fe]=be}function ct(Y,ee,fe){var be,Ce,Te,he,ye=0;if(Y.last_lit!==0)for(;be=Y.pending_buf[Y.d_buf+2*ye]<<8|Y.pending_buf[Y.d_buf+2*ye+1],Ce=Y.pending_buf[Y.l_buf+ye],ye++,be===0?le(Y,Ce,ee):(le(Y,(Te=M[Ce])+u+1,ee),(he=E[Te])!==0&&$(Y,Ce-=X[Te],he),le(Y,Te=G(--be),fe),(he=C[Te])!==0&&$(Y,be-=U[Te],he)),ye<Y.last_lit;);le(Y,w,ee)}function Ue(Y,ee){var fe,be,Ce,Te=ee.dyn_tree,he=ee.stat_desc.static_tree,ye=ee.stat_desc.has_stree,Ie=ee.stat_desc.elems,tt=-1;for(Y.heap_len=0,Y.heap_max=h,fe=0;fe<Ie;fe++)Te[2*fe]!==0?(Y.heap[++Y.heap_len]=tt=fe,Y.depth[fe]=0):Te[2*fe+1]=0;for(;Y.heap_len<2;)Te[2*(Ce=Y.heap[++Y.heap_len]=tt<2?++tt:0)]=1,Y.depth[Ce]=0,Y.opt_len--,ye&&(Y.static_len-=he[2*Ce+1]);for(ee.max_code=tt,fe=Y.heap_len>>1;1<=fe;fe--)Ve(Y,Te,fe);for(Ce=Ie;fe=Y.heap[1],Y.heap[1]=Y.heap[Y.heap_len--],Ve(Y,Te,1),be=Y.heap[1],Y.heap[--Y.heap_max]=fe,Y.heap[--Y.heap_max]=be,Te[2*Ce]=Te[2*fe]+Te[2*be],Y.depth[Ce]=(Y.depth[fe]>=Y.depth[be]?Y.depth[fe]:Y.depth[be])+1,Te[2*fe+1]=Te[2*be+1]=Ce,Y.heap[1]=Ce++,Ve(Y,Te,1),2<=Y.heap_len;);Y.heap[--Y.heap_max]=Y.heap[1],function(pt,st){var Fe,ft,et,wt,Ht,Dt,Tt=st.dyn_tree,Bt=st.max_code,Ke=st.stat_desc.static_tree,de=st.stat_desc.has_stree,oe=st.stat_desc.extra_bits,lt=st.stat_desc.extra_base,qe=st.stat_desc.max_length,pe=0;for(wt=0;wt<=g;wt++)pt.bl_count[wt]=0;for(Tt[2*pt.heap[pt.heap_max]+1]=0,Fe=pt.heap_max+1;Fe<h;Fe++)qe<(wt=Tt[2*Tt[2*(ft=pt.heap[Fe])+1]+1]+1)&&(wt=qe,pe++),Tt[2*ft+1]=wt,Bt<ft||(pt.bl_count[wt]++,Ht=0,lt<=ft&&(Ht=oe[ft-lt]),Dt=Tt[2*ft],pt.opt_len+=Dt*(wt+Ht),de&&(pt.static_len+=Dt*(Ke[2*ft+1]+Ht)));if(pe!==0){do{for(wt=qe-1;pt.bl_count[wt]===0;)wt--;pt.bl_count[wt]--,pt.bl_count[wt+1]+=2,pt.bl_count[qe]--,pe-=2}while(0<pe);for(wt=qe;wt!==0;wt--)for(ft=pt.bl_count[wt];ft!==0;)Bt<(et=pt.heap[--Fe])||(Tt[2*et+1]!==wt&&(pt.opt_len+=(wt-Tt[2*et+1])*Tt[2*et],Tt[2*et+1]=wt),ft--)}}(Y,ee),Se(Te,tt,Y.bl_count)}function ue(Y,ee,fe){var be,Ce,Te=-1,he=ee[1],ye=0,Ie=7,tt=4;for(he===0&&(Ie=138,tt=3),ee[2*(fe+1)+1]=65535,be=0;be<=fe;be++)Ce=he,he=ee[2*(be+1)+1],++ye<Ie&&Ce===he||(ye<tt?Y.bl_tree[2*Ce]+=ye:Ce!==0?(Ce!==Te&&Y.bl_tree[2*Ce]++,Y.bl_tree[2*x]++):ye<=10?Y.bl_tree[2*T]++:Y.bl_tree[2*O]++,Te=Ce,tt=(ye=0)===he?(Ie=138,3):Ce===he?(Ie=6,3):(Ie=7,4))}function rt(Y,ee,fe){var be,Ce,Te=-1,he=ee[1],ye=0,Ie=7,tt=4;for(he===0&&(Ie=138,tt=3),be=0;be<=fe;be++)if(Ce=he,he=ee[2*(be+1)+1],!(++ye<Ie&&Ce===he)){if(ye<tt)for(;le(Y,Ce,Y.bl_tree),--ye!=0;);else Ce!==0?(Ce!==Te&&(le(Y,Ce,Y.bl_tree),ye--),le(Y,x,Y.bl_tree),$(Y,ye-3,2)):ye<=10?(le(Y,T,Y.bl_tree),$(Y,ye-3,3)):(le(Y,O,Y.bl_tree),$(Y,ye-11,7));Te=Ce,tt=(ye=0)===he?(Ie=138,3):Ce===he?(Ie=6,3):(Ie=7,4)}}t(U);var ge=!1;function Z(Y,ee,fe,be){$(Y,(a<<1)+(be?1:0),3),function(Ce,Te,he,ye){Pe(Ce),ye&&(te(Ce,he),te(Ce,~he)),l.arraySet(Ce.pending_buf,Ce.window,Te,he,Ce.pending),Ce.pending+=he}(Y,ee,fe,!0)}d._tr_init=function(Y){ge||(function(){var ee,fe,be,Ce,Te,he=new Array(g+1);for(Ce=be=0;Ce<e-1;Ce++)for(X[Ce]=be,ee=0;ee<1<<E[Ce];ee++)M[be++]=Ce;for(M[be-1]=Ce,Ce=Te=0;Ce<16;Ce++)for(U[Ce]=Te,ee=0;ee<1<<C[Ce];ee++)B[Te++]=Ce;for(Te>>=7;Ce<s;Ce++)for(U[Ce]=Te<<7,ee=0;ee<1<<C[Ce]-7;ee++)B[256+Te++]=Ce;for(fe=0;fe<=g;fe++)he[fe]=0;for(ee=0;ee<=143;)F[2*ee+1]=8,ee++,he[8]++;for(;ee<=255;)F[2*ee+1]=9,ee++,he[9]++;for(;ee<=279;)F[2*ee+1]=7,ee++,he[7]++;for(;ee<=287;)F[2*ee+1]=8,ee++,he[8]++;for(Se(F,r+1,he),ee=0;ee<s;ee++)R[2*ee+1]=5,R[2*ee]=re(ee,5);P=new V(F,E,u+1,r,g),z=new V(R,C,0,s,g),W=new V(new Array(0),I,0,c,b)}(),ge=!0),Y.l_desc=new Q(Y.dyn_ltree,P),Y.d_desc=new Q(Y.dyn_dtree,z),Y.bl_desc=new Q(Y.bl_tree,W),Y.bi_buf=0,Y.bi_valid=0,Re(Y)},d._tr_stored_block=Z,d._tr_flush_block=function(Y,ee,fe,be){var Ce,Te,he=0;0<Y.level?(Y.strm.data_type===2&&(Y.strm.data_type=function(ye){var Ie,tt=4093624447;for(Ie=0;Ie<=31;Ie++,tt>>>=1)if(1&tt&&ye.dyn_ltree[2*Ie]!==0)return o;if(ye.dyn_ltree[18]!==0||ye.dyn_ltree[20]!==0||ye.dyn_ltree[26]!==0)return n;for(Ie=32;Ie<u;Ie++)if(ye.dyn_ltree[2*Ie]!==0)return n;return o}(Y)),Ue(Y,Y.l_desc),Ue(Y,Y.d_desc),he=function(ye){var Ie;for(ue(ye,ye.dyn_ltree,ye.l_desc.max_code),ue(ye,ye.dyn_dtree,ye.d_desc.max_code),Ue(ye,ye.bl_desc),Ie=c-1;3<=Ie&&ye.bl_tree[2*_[Ie]+1]===0;Ie--);return ye.opt_len+=3*(Ie+1)+5+5+4,Ie}(Y),Ce=Y.opt_len+3+7>>>3,(Te=Y.static_len+3+7>>>3)<=Ce&&(Ce=Te)):Ce=Te=fe+5,fe+4<=Ce&&ee!==-1?Z(Y,ee,fe,be):Y.strategy===4||Te===Ce?($(Y,2+(be?1:0),3),ct(Y,F,R)):($(Y,4+(be?1:0),3),function(ye,Ie,tt,pt){var st;for($(ye,Ie-257,5),$(ye,tt-1,5),$(ye,pt-4,4),st=0;st<pt;st++)$(ye,ye.bl_tree[2*_[st]+1],3);rt(ye,ye.dyn_ltree,Ie-1),rt(ye,ye.dyn_dtree,tt-1)}(Y,Y.l_desc.max_code+1,Y.d_desc.max_code+1,he+1),ct(Y,Y.dyn_ltree,Y.dyn_dtree)),Re(Y),be&&Pe(Y)},d._tr_tally=function(Y,ee,fe){return Y.pending_buf[Y.d_buf+2*Y.last_lit]=ee>>>8&255,Y.pending_buf[Y.d_buf+2*Y.last_lit+1]=255&ee,Y.pending_buf[Y.l_buf+Y.last_lit]=255&fe,Y.last_lit++,ee===0?Y.dyn_ltree[2*fe]++:(Y.matches++,ee--,Y.dyn_ltree[2*(M[fe]+u+1)]++,Y.dyn_dtree[2*G(ee)]++),Y.last_lit===Y.lit_bufsize-1},d._tr_align=function(Y){$(Y,2,3),le(Y,w,F),function(ee){ee.bi_valid===16?(te(ee,ee.bi_buf),ee.bi_buf=0,ee.bi_valid=0):8<=ee.bi_valid&&(ee.pending_buf[ee.pending++]=255&ee.bi_buf,ee.bi_buf>>=8,ee.bi_valid-=8)}(Y)}},{"../utils/common":41}],53:[function(m,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(m,f,d){(function(l){!function(o,n){"use strict";if(!o.setImmediate){var t,a,e,u,r=1,s={},c=!1,h=o.document,g=Object.getPrototypeOf&&Object.getPrototypeOf(o);g=g&&g.setTimeout?g:o,t={}.toString.call(o.process)==="[object process]"?function(x){S.nextTick(function(){b(x)})}:function(){if(o.postMessage&&!o.importScripts){var x=!0,T=o.onmessage;return o.onmessage=function(){x=!1},o.postMessage("","*"),o.onmessage=T,x}}()?(u="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",w,!1):o.attachEvent("onmessage",w),function(x){o.postMessage(u+x,"*")}):o.MessageChannel?((e=new MessageChannel).port1.onmessage=function(x){b(x.data)},function(x){e.port2.postMessage(x)}):h&&"onreadystatechange"in h.createElement("script")?(a=h.documentElement,function(x){var T=h.createElement("script");T.onreadystatechange=function(){b(x),T.onreadystatechange=null,a.removeChild(T),T=null},a.appendChild(T)}):function(x){setTimeout(b,0,x)},g.setImmediate=function(x){typeof x!="function"&&(x=new Function(""+x));for(var T=new Array(arguments.length-1),O=0;O<T.length;O++)T[O]=arguments[O+1];var E={callback:x,args:T};return s[r]=E,t(r),r++},g.clearImmediate=v}function v(x){delete s[x]}function b(x){if(c)setTimeout(b,0,x);else{var T=s[x];if(T){c=!0;try{!function(O){var E=O.callback,C=O.args;switch(C.length){case 0:E();break;case 1:E(C[0]);break;case 2:E(C[0],C[1]);break;case 3:E(C[0],C[1],C[2]);break;default:E.apply(n,C)}}(T)}finally{v(x),c=!1}}}}function w(x){x.source===o&&typeof x.data=="string"&&x.data.indexOf(u)===0&&b(+x.data.slice(u.length))}}(typeof self=="undefined"?l===void 0?this:l:self)}).call(this,typeof p!="undefined"?p:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})}).call(this,i("HDXh").Buffer,i("yLpj"),i("Q2Ig"))},xRUu:function(k,D,i){i("hJvP"),i("hFmY"),i("sAZ8")},xSIq:function(k,D,i){"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(k,D){var i={axisPointer:1,tooltip:1,brush:1};function y(p,S,A){var m=S.getComponentByElement(p.topTarget),f=m&&m.coordinateSystem;return m&&m!==A&&!i[m.mainType]&&f&&f.model!==A}D.onIrrelevantElement=y},xTNl:function(k,D){var i=["#37A2DA","#32C5E9","#67E0E3","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#E062AE","#E690D1","#e7bcf3","#9d96f5","#8378EA","#96BFFF"],y={color:i,colorLayer:[["#37A2DA","#ffd85c","#fd7b5f"],["#37A2DA","#67E0E3","#FFDB5C","#ff9f7f","#E062AE","#9d96f5"],["#37A2DA","#32C5E9","#9FE6B8","#FFDB5C","#ff9f7f","#fb7293","#e7bcf3","#8378EA","#96BFFF"],i]};k.exports=y},xYSL:function(k,D){function i(y,p){return y.has(p)}k.exports=i},xb2K:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("5yev")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="RedoOutlined";var n=A.forwardRef(o);D.default=n},xiyX:function(k,D,i){var y=i("bYtY"),p=i("bLfw"),S=i("nkfE"),A=i("ICMv"),m=p.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(o,n){return n.type||(n.data?"category":"value")}y.merge(m.prototype,A),S("single",m,d,f);var l=m;k.exports=l},xlC8:function(k,D,i){"use strict";Object.defineProperty(D,"__esModule",{value:!0}),D.default=y;function y(p,S,A,m){for(var f=p&65535|0,d=p>>>16&65535|0,l=0;A!==0;){l=A>2e3?2e3:A,A-=l;do f=f+S[m++]|0,d=d+f|0;while(--l);f%=65521,d%=65521}return f|d<<16|0}},xvlK:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("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"},A=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:A}))};f.displayName="PlusOutlined";var d=D.a=p.forwardRef(f)},xzDV:function(k,D,i){},"y+Vt":function(k,D,i){var y=i("Gev7"),p=i("bYtY"),S=i("IMiH"),A=i("2DNl"),m=i("3C/r"),f=m.prototype.getCanvasPattern,d=Math.abs,l=new S(!0);function o(t){y.call(this,t),this.path=null}o.prototype={constructor:o,type:"path",__dirtyPath:!0,strokeContainThreshold:5,segmentIgnoreThreshold:0,subPixelOptimize:!1,brush:function(a,e){var u=this.style,r=this.path||l,s=u.hasStroke(),c=u.hasFill(),h=u.fill,g=u.stroke,v=c&&!!h.colorStops,b=s&&!!g.colorStops,w=c&&!!h.image,x=s&&!!g.image;if(u.bind(a,this,e),this.setTransform(a),this.__dirty){var T;v&&(T=T||this.getBoundingRect(),this._fillGradient=u.getGradient(a,h,T)),b&&(T=T||this.getBoundingRect(),this._strokeGradient=u.getGradient(a,g,T))}v?a.fillStyle=this._fillGradient:w&&(a.fillStyle=f.call(h,a)),b?a.strokeStyle=this._strokeGradient:x&&(a.strokeStyle=f.call(g,a));var O=u.lineDash,E=u.lineDashOffset,C=!!a.setLineDash,I=this.getGlobalScale();if(r.setScale(I[0],I[1],this.segmentIgnoreThreshold),this.__dirtyPath||O&&!C&&s?(r.beginPath(a),O&&!C&&(r.setLineDash(O),r.setLineDashOffset(E)),this.buildPath(r,this.shape,!1),this.path&&(this.__dirtyPath=!1)):(a.beginPath(),this.path.rebuildPath(a)),c)if(u.fillOpacity!=null){var _=a.globalAlpha;a.globalAlpha=u.fillOpacity*u.opacity,r.fill(a),a.globalAlpha=_}else r.fill(a);if(O&&C&&(a.setLineDash(O),a.lineDashOffset=E),s)if(u.strokeOpacity!=null){var _=a.globalAlpha;a.globalAlpha=u.strokeOpacity*u.opacity,r.stroke(a),a.globalAlpha=_}else r.stroke(a);O&&C&&a.setLineDash([]),u.text!=null&&(this.restoreTransform(a),this.drawRectText(a,this.getBoundingRect()))},buildPath:function(a,e,u){},createPathProxy:function(){this.path=new S},getBoundingRect:function(){var a=this._rect,e=this.style,u=!a;if(u){var r=this.path;r||(r=this.path=new S),this.__dirtyPath&&(r.beginPath(),this.buildPath(r,this.shape,!1)),a=r.getBoundingRect()}if(this._rect=a,e.hasStroke()){var s=this._rectWithStroke||(this._rectWithStroke=a.clone());if(this.__dirty||u){s.copy(a);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 a},contain:function(a,e){var u=this.transformCoordToLocal(a,e),r=this.getBoundingRect(),s=this.style;if(a=u[0],e=u[1],r.contain(a,e)){var c=this.path.data;if(s.hasStroke()){var h=s.lineWidth,g=s.strokeNoScale?this.getLineScale():1;if(g>1e-10&&(s.hasFill()||(h=Math.max(h,this.strokeContainThreshold)),A.containStroke(c,h/g,a,e)))return!0}if(s.hasFill())return A.contain(c,a,e)}return!1},dirty:function(a){a==null&&(a=!0),a&&(this.__dirtyPath=a,this._rect=null),this.__dirty=this.__dirtyText=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(a){return this.animate("shape",a)},attrKV:function(a,e){a==="shape"?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):y.prototype.attrKV.call(this,a,e)},setShape:function(a,e){var u=this.shape;if(u){if(p.isObject(a))for(var r in a)a.hasOwnProperty(r)&&(u[r]=a[r]);else u[a]=e;this.dirty(!0)}return this},getLineScale:function(){var a=this.transform;return a&&d(a[0]-1)>1e-10&&d(a[3]-1)>1e-10?Math.sqrt(d(a[0]*a[3]-a[2]*a[1])):1}},o.extend=function(t){var a=function(r){o.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)};p.inherits(a,o);for(var e in t)e!=="style"&&e!=="shape"&&(a.prototype[e]=t[e]);return a},p.inherits(o,y);var n=o;k.exports=n},"y+lR":function(k,D,i){var y=i("bYtY"),p=i("mFDi"),S=i("z35g");function A(f){S.call(this,f)}A.prototype={constructor:A,type:"cartesian2d",dimensions:["x","y"],getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},containPoint:function(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 o=this.getAxis("x"),n=this.getAxis("y");return l=l||[],l[0]=o.toGlobalCoord(o.dataToCoord(f[0])),l[1]=n.toGlobalCoord(n.dataToCoord(f[1])),l},clampData:function(f,d){var l=this.getAxis("x").scale,o=this.getAxis("y").scale,n=l.getExtent(),t=o.getExtent(),a=l.parse(f[0]),e=o.parse(f[1]);return d=d||[],d[0]=Math.min(Math.max(Math.min(n[0],n[1]),a),Math.max(n[0],n[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"),o=this.getAxis("y");return d=d||[],d[0]=l.coordToData(l.toLocalCoord(f[0])),d[1]=o.coordToData(o.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]),o=Math.min(d[0],d[1]),n=Math.max(f[0],f[1])-l,t=Math.max(d[0],d[1])-o,a=new p(l,o,n,t);return a}},y.inherits(A,S);var m=A;k.exports=m},"y0+3":function(k,D,i){"use strict";i.d(D,"a",function(){return t}),i.d(D,"b",function(){return e});var y=/margin|padding|width|height|max|min|offset/,p={left:!0,top:!0},S={cssFloat:1,styleFloat:1,float:1};function A(u){return u.nodeType===1?u.ownerDocument.defaultView.getComputedStyle(u,null):{}}function m(u,r,s){if(r=r.toLowerCase(),s==="auto"){if(r==="height")return u.offsetHeight;if(r==="width")return u.offsetWidth}return r in p||(p[r]=y.test(r)),p[r]?parseFloat(s)||0:s}function f(u,r){var s=arguments.length,c=A(u);return r=S[r]?"cssFloat"in u.style?"cssFloat":"styleFloat":r,s===1?c:m(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 A(u)}function l(u){return u===document.body?document.documentElement.clientWidth:u.offsetWidth}function o(u){return u===document.body?window.innerHeight||document.documentElement.clientHeight:u.offsetHeight}function n(){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 a(){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(k,D,i){var y=i("ljhN");function p(S,A){for(var m=S.length;m--;)if(y(S[m][0],A))return m;return-1}k.exports=p},y23F:function(k,D){function i(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this)}i.prototype={constructor:i,_dragStart:function(A){for(var m=A.target;m&&!m.draggable;)m=m.parent;m&&(this._draggingTarget=m,m.dragging=!0,this._x=A.offsetX,this._y=A.offsetY,this.dispatchToElement(y(m,A),"dragstart",A.event))},_drag:function(A){var m=this._draggingTarget;if(m){var f=A.offsetX,d=A.offsetY,l=f-this._x,o=d-this._y;this._x=f,this._y=d,m.drift(l,o,A),this.dispatchToElement(y(m,A),"drag",A.event);var n=this.findHover(f,d,m).target,t=this._dropTarget;this._dropTarget=n,m!==n&&(t&&n!==t&&this.dispatchToElement(y(t,A),"dragleave",A.event),n&&n!==t&&this.dispatchToElement(y(n,A),"dragenter",A.event))}},_dragEnd:function(A){var m=this._draggingTarget;m&&(m.dragging=!1),this.dispatchToElement(y(m,A),"dragend",A.event),this._dropTarget&&this.dispatchToElement(y(this._dropTarget,A),"drop",A.event),this._draggingTarget=null,this._dropTarget=null}};function y(S,A){return{target:S,topTarget:A&&A.topTarget}}var p=i;k.exports=p},y2l5:function(k,D,i){var y=i("MwEJ"),p=i("T4UG"),S=p.extend({type:"series.scatter",dependencies:["grid","polar","geo","singleAxis","calendar"],getInitialData:function(A,m){return y(this.getSource(),this,{useEncodeDefaulter:!0})},brushSelector:"point",getProgressive:function(){var A=this.option.progressive;return A==null?this.option.large?5e3:this.get("progressive"):A},getProgressiveThreshold:function(){var A=this.option.progressiveThreshold;return A==null?this.option.large?1e4:this.get("progressiveThreshold"):A},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},clip:!0}});k.exports=S},y3Kf:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("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"},A=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:A}))};f.displayName="UpOutlined";var d=D.a=p.forwardRef(f)},y3NT:function(k,D,i){var y=i("OELB"),p=y.parsePercent,S=i("bYtY"),A=Math.PI/180;function m(l,o,n,t){o.eachSeriesByType(l,function(a){var e=a.get("center"),u=a.get("radius");S.isArray(u)||(u=[0,u]),S.isArray(e)||(e=[e,e]);var r=n.getWidth(),s=n.getHeight(),c=Math.min(r,s),h=p(e[0],r),g=p(e[1],s),v=p(u[0],c/2),b=p(u[1],c/2),w=-a.get("startAngle")*A,x=a.get("minAngle")*A,T=a.getData().tree.root,O=a.getViewRoot(),E=O.depth,C=a.get("sort");C!=null&&f(O,C);var I=0;S.each(O.children,function(G){!isNaN(G.getValue())&&I++});var _=O.getValue(),F=Math.PI/(_||I)*2,R=O.depth>0,B=O.height-(R?-1:1),M=(b-v)/(B||1),X=a.get("clockwise"),P=a.get("stillShowZeroSum"),z=X?1:-1,W=function(G,te){if(!G)return;var $=te;if(G!==T){var le=G.getValue(),re=_===0&&P?F:le*F;re<x&&(re=x),$=te+z*re;var Se=G.depth-E-(R?-1:1),Re=v+M*Se,Pe=v+M*(Se+1),Je=G.getModel();Je.get("r0")!=null&&(Re=p(Je.get("r0"),c/2)),Je.get("r")!=null&&(Pe=p(Je.get("r"),c/2)),G.setLayout({angle:re,startAngle:te,endAngle:$,clockwise:X,cx:h,cy:g,r0:Re,r:Pe})}if(G.children&&G.children.length){var Ve=0;S.each(G.children,function(ct){Ve+=W(ct,te+Ve)})}return $-te};if(R){var U=v,V=v+M,Q=Math.PI*2;T.setLayout({angle:Q,startAngle:w,endAngle:w+Q,clockwise:X,cx:h,cy:g,r0:U,r:V})}W(O,w)})}function f(l,o){var n=l.children||[];l.children=d(n,o),n.length&&S.each(l.children,function(t){f(t,o)})}function d(l,o){if(typeof o=="function")return l.sort(o);var n=o==="asc";return l.sort(function(t,a){var e=(t.getValue()-a.getValue())*(n?1:-1);return e===0?(t.dataIndex-a.dataIndex)*(n?-1:1):e})}k.exports=m},y3Yb:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("HBhm")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="PaperClipOutlined";var n=A.forwardRef(o);D.default=n},"y4/Y":function(k,D,i){var y=i("ProS"),p=i("bYtY"),S=i("zTMp"),A=i("62sa");i("SKx+"),i("1LEl"),i("Sp2Z"),y.registerPreprocessor(function(m){if(m){(!m.axisPointer||m.axisPointer.length===0)&&(m.axisPointer={});var f=m.axisPointer.link;f&&!p.isArray(f)&&(m.axisPointer.link=[f])}}),y.registerProcessor(y.PRIORITY.PROCESSOR.STATISTIC,function(m,f){m.getComponent("axisPointer").coordSysAxesInfo=S.collect(m,f)}),y.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},A)},y7Aq:function(k,D,i){var y=i("bYtY"),p=i("+TT/"),S=p.getLayoutRect;function A(f,d,l){var o=f.option,n=o.align;if(n!=null&&n!=="auto")return n;for(var t={width:d.getWidth(),height:d.getHeight()},a=o.orient==="horizontal"?1:0,e=[["left","right","width"],["top","bottom","height"]],u=e[a],r=[0,null,10],s={},c=0;c<3;c++)s[e[1-a][c]]=r[c],s[u[c]]=c===2?l[0]:o[u[c]];var h=[["x","width",3],["y","height",0]][a],g=S(s,t,o.padding);return u[(g.margin[h[2]]||0)+g[h[0]]+g[h[1]]*.5<t[h[1]]*.5?0:1]}function m(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=A,D.makeHighDownBatch=m},y8nQ:function(k,D,i){"use strict";var y=i("cIOH"),p=i.n(y),S=i("gwTy"),A=i.n(S),m=i("1GLa")},yEEn:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("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"},A=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:A}))};f.displayName="ArrowDownOutlined";var d=D.a=p.forwardRef(f)},yGk4:function(k,D,i){var y=i("Cwc5"),p=i("Kz5y"),S=y(p,"Set");k.exports=S},yO87:function(k,D,i){var y=i("bYtY"),p=i("oVpE"),S=p.createSymbol,A=i("IwbS"),m=A.Group,f=i("OELB"),d=f.parsePercent,l=i("FBjb"),o=3;function n(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 a(r,s){m.call(this);var c=new l(r,s),h=new m;this.add(c),this.add(h),h.beforeUpdate=function(){this.attr(c.getScale())},this.updateData(r,s)}var e=a.prototype;e.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.startEffectAnimation=function(r){for(var s=r.symbolType,c=r.color,h=this.childAt(1),g=0;g<o;g++){var v=S(s,-1,-1,2,2,c);v.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[.5,.5]});var b=-g/o*r.period+r.effectOffset;v.animate("",!0).when(r.period,{scale:[r.rippleScale/2,r.rippleScale/2]}).delay(b).start(),v.animateStyle(!0).when(r.period,{opacity:0}).delay(b).start(),h.add(v)}t(h,r)},e.updateEffectAnimation=function(r){for(var s=this._effectCfg,c=this.childAt(1),h=["symbolType","period","rippleScale"],g=0;g<h.length;g++){var v=h[g];if(s[v]!==r[v]){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),g=r.getItemModel(s),v=r.getItemVisual(s,"symbol"),b=n(r.getItemVisual(s,"symbolSize")),w=r.getItemVisual(s,"color");h.attr("scale",b),h.traverse(function(F){F.attr({fill:w})});var x=g.getShallow("symbolOffset");if(x){var T=h.position;T[0]=d(x[0],b[0]),T[1]=d(x[1],b[1])}var O=r.getItemVisual(s,"symbolRotate");h.rotation=(O||0)*Math.PI/180||0;var E={};if(E.showEffectOn=c.get("showEffectOn"),E.rippleScale=g.get("rippleEffect.scale"),E.brushType=g.get("rippleEffect.brushType"),E.period=g.get("rippleEffect.period")*1e3,E.effectOffset=s/r.count(),E.z=g.getShallow("z")||0,E.zlevel=g.getShallow("zlevel")||0,E.symbolType=v,E.color=w,E.rippleEffectColor=g.get("rippleEffect.color"),this.off("mouseover").off("mouseout").off("emphasis").off("normal"),E.showEffectOn==="render")this._effectCfg?this.updateEffectAnimation(E):this.startEffectAnimation(E),this._effectCfg=E;else{this._effectCfg=null,this.stopEffectAnimation();var C=this.childAt(0),I=function(){C.highlight(),E.showEffectOn!=="render"&&this.startEffectAnimation(E)},_=function(){C.downplay(),E.showEffectOn!=="render"&&this.stopEffectAnimation()};this.on("mouseover",I,this).on("mouseout",_,this).on("emphasis",I,this).on("normal",_,this)}this._effectCfg=E},e.fadeOut=function(r){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),r&&r()},y.inherits(a,m);var u=a;k.exports=u},yS9w:function(k,D,i){var y=i("MEGo"),p=y.parseSVG,S=y.makeViewBoxTransform,A=i("4fz+"),m=i("x6Kt"),f=i("bYtY"),d=f.assert,l=f.createHashMap,o=i("mFDi"),n=i("4NO4"),t=n.makeInner,a=t(),e={load:function(r,s){var c=a(s).originRoot;if(c)return{root:c,boundingRect:a(s).boundingRect};var h=u(s);return a(s).originRoot=h.root,a(s).boundingRect=h.boundingRect,h},makeGraphic:function(r,s,c){var h=a(s),g=h.rootMap||(h.rootMap=l()),v=g.get(c);if(v)return v;var b=h.originRoot,w=h.boundingRect;return h.originRootHostKey?v=u(s,w).root:(h.originRootHostKey=c,v=b),g.set(c,v)},removeGraphic:function(r,s,c){var h=a(s),g=h.rootMap;g&&g.removeKey(c),c===h.originRootHostKey&&(h.originRootHostKey=null)}};function u(r,s){var c=r.svgXML,h,g;try{h=c&&p(c,{ignoreViewBox:!0,ignoreRootClip:!0})||{},g=h.root,d(g!=null)}catch(O){throw new Error(`Invalid svg format
`+O.message)}var v=h.width,b=h.height,w=h.viewBoxRect;if(s||(s=v==null||b==null?g.getBoundingRect():new o(0,0,0,0),v!=null&&(s.width=v),b!=null&&(s.height=b)),w){var x=S(w,s.width,s.height),T=g;g=new A,g.add(T),T.scale=x.scale,T.position=x.position}return g.setClipPath(new m({shape:s.plain()})),{root:g,boundingRect:s}}k.exports=e},yWXo:function(k,D,i){var y=i("IwbS"),p=i("oVpE"),S=p.createSymbol,A=i("OS9S"),m=4,f=y.extendShape({shape:{points:null},symbolProxy:null,softClipShape:null,buildPath:function(n,t){var a=t.points,e=t.size,u=this.symbolProxy,r=u.shape,s=n.getContext?n.getContext():n,c=s&&e[0]<m;if(c)return;for(var h=0;h<a.length;){var g=a[h++],v=a[h++];if(isNaN(g)||isNaN(v))continue;if(this.softClipShape&&!this.softClipShape.contain(g,v))continue;r.x=g-e[0]/2,r.y=v-e[1]/2,r.width=e[0],r.height=e[1],u.buildPath(n,r,!0)}},afterBrush:function(n){var t=this.shape,a=t.points,e=t.size,u=e[0]<m;if(!u)return;this.setTransform(n);for(var r=0;r<a.length;){var s=a[r++],c=a[r++];if(isNaN(s)||isNaN(c))continue;if(this.softClipShape&&!this.softClipShape.contain(s,c))continue;n.fillRect(s-e[0]/2,c-e[1]/2,e[0],e[1])}this.restoreTransform(n)},findDataIndex:function(n,t){for(var a=this.shape,e=a.points,u=a.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,g=e[h]-r/2,v=e[h+1]-s/2;if(n>=g&&t>=v&&n<=g+r&&t<=v+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(n,t){this.group.removeAll();var a=new f({rectHover:!0,cursor:"default"});a.setShape({points:n.getLayout("symbolPoints")}),this._setCommon(a,n,!1,t),this.group.add(a),this._incremental=null},l.updateLayout=function(n){if(this._incremental)return;var t=n.getLayout("symbolPoints");this.group.eachChild(function(a){if(a.startIndex!=null){var e=(a.endIndex-a.startIndex)*2,u=a.startIndex*4*2;t=new Float32Array(t.buffer,u,e)}a.setShape("points",t)})},l.incrementalPrepareUpdate=function(n){this.group.removeAll(),this._clearIncremental(),n.count()>2e6?(this._incremental||(this._incremental=new A({silent:!0})),this.group.add(this._incremental)):this._incremental=null},l.incrementalUpdate=function(n,t,a){var e;this._incremental?(e=new f,this._incremental.addDisplayable(e,!0)):(e=new f({rectHover:!0,cursor:"default",startIndex:n.start,endIndex:n.end}),e.incremental=!0,this.group.add(e)),e.setShape({points:t.getLayout("symbolPoints")}),this._setCommon(e,t,!!this._incremental,a)},l._setCommon=function(n,t,a,e){var u=t.hostModel;e=e||{};var r=t.getVisual("symbolSize");n.setShape("size",r instanceof Array?r:[r,r]),n.softClipShape=e.clipShape||null,n.symbolProxy=S(t.getVisual("symbol"),0,0,0,0),n.setColor=n.symbolProxy.setColor;var s=n.shape.size[0]<m;n.useStyle(u.getModel("itemStyle").getItemStyle(s?["color","shadowBlur","shadowColor"]:["color"]));var c=t.getVisual("color");c&&n.setColor(c),a||(n.seriesIndex=u.seriesIndex,n.on("mousemove",function(h){n.dataIndex=null;var g=n.findDataIndex(h.offsetX,h.offsetY);g>=0&&(n.dataIndex=g+(n.startIndex||0))}))},l.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},l._clearIncremental=function(){var n=this._incremental;n&&n.clearDisplaybles()};var o=d;k.exports=o},ycre:function(k,D,i){var y=i("711d"),p=y("length");k.exports=p},ye1Q:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("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"},A=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:A}))};f.displayName="LoadingOutlined";var d=D.a=p.forwardRef(f)},ygfH:function(k,D,i){"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(k,D,i){var y=i("bZqE"),p=y.eachAfter,S=y.eachBefore,A=i("Itpr"),m=A.init,f=A.firstWalk,d=A.secondWalk,l=A.separation,o=A.radialCoordinate,n=A.getViewRect;function t(e,u){e.eachSeriesByType("tree",function(r){a(r,u)})}function a(e,u){var r=n(e,u);e.layoutInfo=r;var s=e.get("layout"),c=0,h=0,g=null;s==="radial"?(c=2*Math.PI,h=Math.min(r.height,r.width)/2,g=l(function(B,M){return(B.parentNode===M.parentNode?1:2)/B.depth})):(c=r.width,h=r.height,g=l());var v=e.getData().tree.root,b=v.children[0];if(b){m(v),p(b,f,g),v.hierNode.modifier=-b.hierNode.prelim,S(b,d);var w=b,x=b,T=b;S(b,function(B){var M=B.getLayout().x;M<w.getLayout().x&&(w=B),M>x.getLayout().x&&(x=B),B.depth>T.depth&&(T=B)});var O=w===x?1:g(w,x)/2,E=O-w.getLayout().x,C=0,I=0,_=0,F=0;if(s==="radial")C=c/(x.getLayout().x+O+E),I=h/(T.depth-1||1),S(b,function(B){_=(B.getLayout().x+E)*C,F=(B.depth-1)*I;var M=o(_,F);B.setLayout({x:M.x,y:M.y,rawX:_,rawY:F},!0)});else{var R=e.getOrient();R==="RL"||R==="LR"?(I=h/(x.getLayout().x+O+E),C=c/(T.depth-1||1),S(b,function(B){F=(B.getLayout().x+E)*I,_=R==="LR"?(B.depth-1)*C:c-(B.depth-1)*C,B.setLayout({x:_,y:F},!0)})):(R==="TB"||R==="BT")&&(C=c/(x.getLayout().x+O+E),I=h/(T.depth-1||1),S(b,function(B){_=(B.getLayout().x+E)*C,F=R==="TB"?(B.depth-1)*I:h-(B.depth-1)*I,B.setLayout({x:_,y:F},!0)}))}}}k.exports=t},ynwM:function(k,D,i){var y=i("MFOe"),p=y.Global;k.exports={name:"oldFF-globalStorage",read:A,write:m,each:f,remove:d,clearAll:l};var S=p.globalStorage;function A(o){return S[o]}function m(o,n){S[o]=n}function f(o){for(var n=S.length-1;n>=0;n--){var t=S.key(n);o(S[t],t)}}function d(o){return S.removeItem(o)}function l(){f(function(o,n){delete S[o]})}},ypgQ:function(k,D,i){var y=i("bYtY"),p=i("4NO4"),S=i("bLfw"),A=y.each,m=y.clone,f=y.map,d=y.merge,l=/^(min|max)?(.+)$/;function o(s){this._api=s,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}o.prototype={constructor:o,setOption:function(s,c){s&&y.each(p.normalizeToArray(s.series),function(v){v&&v.data&&y.isTypedArray(v.data)&&y.setAsPrimitive(v.data)}),s=m(s);var h=this._optionBackup,g=n.call(this,s,c,!h);this._newBaseOption=g.baseOption,h?(u(h.baseOption,g.baseOption),g.timelineOptions.length&&(h.timelineOptions=g.timelineOptions),g.mediaList.length&&(h.mediaList=g.mediaList),g.mediaDefault&&(h.mediaDefault=g.mediaDefault)):this._optionBackup=g},mountOption:function(s){var c=this._optionBackup;return this._timelineOptions=f(c.timelineOptions,m),this._mediaList=f(c.mediaList,m),this._mediaDefault=m(c.mediaDefault),this._currentMediaIndices=[],m(s?c.baseOption:this._newBaseOption)},getTimelineOption:function(s){var c,h=this._timelineOptions;if(h.length){var g=s.getComponent("timeline");g&&(c=m(h[g.getCurrentIndex()],!0))}return c},getMediaOption:function(s){var c=this._api.getWidth(),h=this._api.getHeight(),g=this._mediaList,v=this._mediaDefault,b=[],w=[];if(!g.length&&!v)return w;for(var x=0,T=g.length;x<T;x++)t(g[x].query,c,h)&&b.push(x);return!b.length&&v&&(b=[-1]),b.length&&!e(b,this._currentMediaIndices)&&(w=f(b,function(O){return m(O===-1?v.option:g[O].option)})),this._currentMediaIndices=b,w}};function n(s,c,h){var g=[],v=[],b,w,x=s.timeline;if(s.baseOption&&(w=s.baseOption),(x||s.options)&&(w=w||{},g=(s.options||[]).slice()),s.media){w=w||{};var T=s.media;A(T,function(O){O&&O.option&&(O.query?v.push(O):b||(b=O))})}return w||(w=s),w.timeline||(w.timeline=x),A([w].concat(g).concat(y.map(v,function(O){return O.option})),function(O){A(c,function(E){E(O,h)})}),{baseOption:w,timelineOptions:g,mediaDefault:b,mediaList:v}}function t(s,c,h){var g={width:c,height:h,aspectratio:c/h},v=!0;return y.each(s,function(b,w){var x=w.match(l);if(!x||!x[1]||!x[2])return;var T=x[1],O=x[2].toLowerCase();a(g[O],b,T)||(v=!1)}),v}function a(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||{},A(c,function(h,g){if(h==null)return;var v=s[g];if(!S.hasClass(g))s[g]=d(v,h,!0);else{h=p.normalizeToArray(h),v=p.normalizeToArray(v);var b=p.mappingToExists(v,h);s[g]=f(b,function(w){return w.option&&w.exist?d(w.exist,w.option,!0):w.exist||w.option})}})}var r=o;k.exports=r},yxFR:function(k,D,i){var y=i("y+Vt"),p=i("nPnh"),S=p.subPixelOptimizeLine,A={},m=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 o,n,t,a;this.subPixelOptimize?(S(A,l,this.style),o=A.x1,n=A.y1,t=A.x2,a=A.y2):(o=l.x1,n=l.y1,t=l.x2,a=l.y2);var e=l.percent;if(e===0)return;d.moveTo(o,n),e<1&&(t=o*(1-e)+t*e,a=n*(1-e)+a*e),d.lineTo(t,a)},pointAt:function(d){var l=this.shape;return[l.x1*(1-d)+l.x2*d,l.y1*(1-d)+l.y2*d]}});k.exports=m},z35g:function(k,D,i){var y=i("bYtY");function p(m){return this._axes[m]}var S=function(m){this._axes={},this._dimList=[],this.name=m||""};S.prototype={constructor:S,type:"cartesian",getAxis:function(m){return this._axes[m]},getAxes:function(){return y.map(this._dimList,p,this)},getAxesByScale:function(m){return m=m.toLowerCase(),y.filter(this.getAxes(),function(f){return f.scale.type===m})},addAxis:function(m){var f=m.dim;this._axes[f]=m,this._dimList.push(f)},dataToCoord:function(m){return this._dataCoordConvert(m,"dataToCoord")},coordToData:function(m){return this._dataCoordConvert(m,"coordToData")},_dataCoordConvert:function(m,f){for(var d=this._dimList,l=m instanceof Array?[]:{},o=0;o<d.length;o++){var n=d[o],t=this._axes[n];l[n]=t[f](m[n])}return l}};var A=S;k.exports=A},z7Xi:function(k,D,i){"use strict";var y=i("VTBJ"),p=i("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"},A=S,m=i("6VBw"),f=function(o,n){return p.createElement(m.a,Object(y.a)(Object(y.a)({},o),{},{ref:n,icon:A}))};f.displayName="UploadOutlined";var d=D.a=p.forwardRef(f)},zAh6:function(k,D,i){"use strict";i.d(D,"a",function(){return m});var y=i("xEkU"),p=i.n(y),S=i("i6bk");function A(f,d,l,o){var n=l-d;return f/=o/2,f<1?n/2*f*f*f+d:n/2*((f-=2)*f*f+2)+d}function m(f){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=d.getContainer,o=l===void 0?function(){return window}:l,n=d.callback,t=d.duration,a=t===void 0?450:t,e=o(),u=Object(S.a)(e,!0),r=Date.now(),s=function c(){var h=Date.now(),g=h-r,v=A(g>a?a:g,u,f,a);Object(S.b)(e)?e.scrollTo(window.pageXOffset,v):e instanceof HTMLDocument||e.constructor.name==="HTMLDocument"?e.documentElement.scrollTop=v:e.scrollTop=v,g<a?p()(c):typeof n=="function"&&n()};p()(s)}},zDms:function(k,D,i){var y=i("bYtY"),p=i("OELB"),S=i("UOVi"),A=i("72pK"),m=y.each,f=p.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 g;return u.eachComponent(c+"Axis",function(v){(v.get(h)||0)===(r.get(h)||0)&&(g=v)}),g},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],g=[],v=[],b;m(["start","end"],function(T,O){var E=e[T],C=e[T+"Value"];c[O]==="percent"?(E==null&&(E=h[O]),C=s.parse(p.linearMap(E,h,u))):(b=!0,C=C==null?u[O]:s.parse(C),E=p.linearMap(C,u,h)),v[O]=C,g[O]=E}),f(v),f(g);var w=this._minMaxSpan;b?x(v,g,u,h,!1):x(g,v,h,u,!0);function x(T,O,E,C,I){var _=I?"Span":"ValueSpan";A(0,T,E,"all",w["min"+_],w["max"+_]);for(var F=0;F<2;F++)O[F]=p.linearMap(T[F],E,C,!0),I&&(O[F]=s.parse(O[F]))}return{valueWindow:v,percentWindow:g}},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,n(this)},restore:function(e){if(e!==this._dataZoomModel)return;this._valueWindow=this._percentWindow=null,n(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;m(s,function(v){var b=v.getData(),w=b.mapDimension(r,!0);if(!w.length)return;c==="weakFilter"?b.filterSelf(function(x){for(var T,O,E,C=0;C<w.length;C++){var I=b.get(w[C],x),_=!isNaN(I),F=I<h[0],R=I>h[1];if(_&&!F&&!R)return!0;_&&(E=!0),F&&(T=!0),R&&(O=!0)}return E&&T&&O}):m(w,function(x){if(c==="empty")v.setData(b=b.map(x,function(O){return g(O)?O:NaN}));else{var T={};T[x]=h,b.selectRange(T)}}),m(w,function(x){b.setApproximateExtent(h,x)})});function g(v){return v>=h[0]&&v<=h[1]}}};function l(e,u,r){var s=[Infinity,-Infinity];return m(r,function(c){var h=c.getData();h&&m(h.mapDimension(u,!0),function(g){var v=h.getApproximateExtent(g);v[0]<s[0]&&(s[0]=v[0]),v[1]>s[1]&&(s[1]=v[1])})}),s[1]<s[0]&&(s=[NaN,NaN]),o(e,s),s}function o(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 g=r.getMax(!0);return g!=null&&g!=="dataMax"&&typeof g!="function"?u[1]=g: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 n(e,u){var r=e.getAxisModel(),s=e._percentWindow,c=e._valueWindow;if(!s)return;var h=p.getPixelPrecision(c,[0,500]);h=Math.min(h,20);var g=u||s[0]===0&&s[1]===100;r.setRange(g?null:+c[0].toFixed(h),g?null:+c[1].toFixed(h))}function t(e){var u=e._minMaxSpan={},r=e._dataZoomModel,s=e._dataExtent;m(["min","max"],function(c){var h=r.get(c+"Span"),g=r.get(c+"ValueSpan");g!=null&&(g=e.getAxisModel().axis.scale.parse(g)),g!=null?h=p.linearMap(s[0]+g,s,[0,100],!0):h!=null&&(g=p.linearMap(h,[0,100],s,!0)-s[0]),u[c+"Span"]=h,u[c+"ValueSpan"]=g})}var a=d;k.exports=a},zM3Q:function(k,D,i){var y=i("4NO4"),p=y.makeInner;function S(){var A=p();return function(m){var f=A(m),d=m.pipelineContext,l=f.large,o=f.progressiveRender,n=f.large=d&&d.large,t=f.progressiveRender=d&&d.progressiveRender;return!!(l^n||o^t)&&"reset"}}k.exports=S},zRKj:function(k,D,i){i("Ae16"),i("Sp2Z"),i("y4/Y")},zTMp:function(k,D,i){var y=i("bYtY"),p=i("Qxkt"),S=y.each,A=y.curry;function m(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 g=c.getComponent("tooltip"),v=c.getComponent("axisPointer"),b=v.get("link",!0)||[],w=[];S(h.getCoordinateSystems(),function(x){if(!x.axisPointerEnabled)return;var T=r(x.model),O=s.coordSysAxesInfo[T]={};s.coordSysMap[T]=x;var E=x.model,C=E.getModel("tooltip",g);if(S(x.getAxes(),A(R,!1,null)),x.getTooltipAxes&&g&&C.get("show")){var I=C.get("trigger")==="axis",_=C.get("axisPointer.type")==="cross",F=x.getTooltipAxes(C.get("axisPointer.axis"));(I||_)&&S(F.baseAxes,A(R,_?"cross":!0,I)),_&&S(F.otherAxes,A(R,"cross",!1))}function R(B,M,X){var P=X.model.getModel("axisPointer",v),z=P.get("show");if(!z||z==="auto"&&!B&&!u(P))return;M==null&&(M=P.get("triggerTooltip")),P=B?d(X,C,v,c,B,M):P;var W=P.get("snap"),U=r(X.model),V=M||W||X.type==="category",Q=s.axesInfo[U]={key:U,axis:X,coordSys:x,axisPointerModel:P,triggerTooltip:M,involveSeries:V,snap:W,useHandle:u(P),seriesModels:[]};O[U]=Q,s.seriesInvolved|=V;var G=o(b,X);if(G!=null){var te=w[G]||(w[G]={axesInfo:{}});te.axesInfo[U]=Q,te.mapper=b[G].mapper,Q.linkGroup=te}}})}function d(s,c,h,g,v,b){var w=c.getModel("axisPointer"),x={};S(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(C){x[C]=y.clone(w.get(C))}),x.snap=s.type!=="category"&&!!b,w.get("type")==="cross"&&(x.type="line");var T=x.label||(x.label={});if(T.show==null&&(T.show=!1),v==="cross"){var O=w.get("label.show");if(T.show=O!=null?O:!0,!b){var E=x.lineStyle=w.get("crossStyle");E&&y.defaults(T,E.textStyle)}}return s.model.getModel("axisPointer",new p(x,h,g))}function l(s,c){c.eachSeries(function(h){var g=h.coordinateSystem,v=h.get("tooltip.trigger",!0),b=h.get("tooltip.show",!0);if(!g||v==="none"||v===!1||v==="item"||b===!1||h.get("axisPointer.show",!0)===!1)return;S(s.coordSysAxesInfo[r(g.model)],function(w){var x=w.axis;g.getAxis(x.dim)===x&&(w.seriesModels.push(h),w.seriesDataCount==null&&(w.seriesDataCount=0),w.seriesDataCount+=h.getData().count())})},this)}function o(s,c){for(var h=c.model,g=c.dim,v=0;v<s.length;v++){var b=s[v]||{};if(n(b[g+"AxisId"],h.id)||n(b[g+"AxisIndex"],h.componentIndex)||n(b[g+"AxisName"],h.name))return v}}function n(s,c){return s==="all"||y.isArray(s)&&y.indexOf(s,c)>=0||s===c}function t(s){var c=a(s);if(!c)return;var h=c.axisPointerModel,g=c.axis.scale,v=h.option,b=h.get("status"),w=h.get("value");w!=null&&(w=g.parse(w));var x=u(h);b==null&&(v.status=x?"show":"hide");var T=g.getExtent().slice();T[0]>T[1]&&T.reverse(),(w==null||w>T[1])&&(w=T[1]),w<T[0]&&(w=T[0]),v.value=w,x&&(v.status=c.axis.scale.isBlank()?"hide":"show")}function a(s){var c=(s.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return c&&c.axesInfo[r(s)]}function e(s){var c=a(s);return c&&c.axisPointerModel}function u(s){return!!s.get("handle.show")}function r(s){return s.type+"||"+s.id}D.collect=m,D.fixValue=t,D.getAxisInfo=a,D.getAxisPointerModel=e,D.makeKey=r},zYTA:function(k,D,i){var y=i("bYtY"),p=256;function S(){var m=y.createCanvas();this.canvas=m,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}S.prototype={update:function(m,f,d,l,o,n){var t=this._getBrush(),a=this._getGradient(m,o,"inRange"),e=this._getGradient(m,o,"outOfRange"),u=this.pointSize+this.blurSize,r=this.canvas,s=r.getContext("2d"),c=m.length;r.width=f,r.height=d;for(var h=0;h<c;++h){var g=m[h],v=g[0],b=g[1],w=g[2],x=l(w);s.globalAlpha=x,s.drawImage(t,v-u,b-u)}if(!r.width||!r.height)return r;for(var T=s.getImageData(0,0,r.width,r.height),O=T.data,E=0,C=O.length,I=this.minOpacity,_=this.maxOpacity,F=_-I;E<C;){var x=O[E+3]/256,R=Math.floor(x*(p-1))*4;if(x>0){var B=n(x)?a:e;x>0&&(x=x*F+I),O[E++]=B[R],O[E++]=B[R+1],O[E++]=B[R+2],O[E++]=B[R+3]*x*256}else E+=4}return s.putImageData(T,0,0),r},_getBrush:function(){var m=this._brushCanvas||(this._brushCanvas=y.createCanvas()),f=this.pointSize+this.blurSize,d=f*2;m.width=d,m.height=d;var l=m.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(),m},_getGradient:function(m,f,d){for(var l=this._gradientPixels,o=l[d]||(l[d]=new Uint8ClampedArray(256*4)),n=[0,0,0,0],t=0,a=0;a<256;a++)f[d](a/255,!0,n),o[t++]=n[0],o[t++]=n[1],o[t++]=n[2],o[t++]=n[3];return o}};var A=S;k.exports=A},zarK:function(k,D,i){var y=i("YH21"),p=y.addEventListener,S=y.removeEventListener,A=y.normalizeEvent,m=y.getNativeEvent,f=i("bYtY"),d=i("H6uX"),l=i("ItGF"),o=300,n=l.domSupported,t=function(){var B=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],M=["touchstart","touchend","touchmove"],X={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},P=f.map(B,function(z){var W=z.replace("mouse","pointer");return X.hasOwnProperty(W)?W:z});return{mouse:B,touch:M,pointer:P}}(),a={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]};function e(B){return B==="mousewheel"&&l.browser.firefox?"DOMMouseScroll":B}function u(B){var M=B.pointerType;return M==="pen"||M==="touch"}function r(B){B.touching=!0,B.touchTimer!=null&&(clearTimeout(B.touchTimer),B.touchTimer=null),B.touchTimer=setTimeout(function(){B.touching=!1,B.touchTimer=null},700)}function s(B){B&&(B.zrByTouch=!0)}function c(B,M){return A(B.dom,new g(B,M),!0)}function h(B,M){for(var X=M,P=!1;X&&X.nodeType!==9&&!(P=X.domBelongToZr||X!==M&&X===B.painterRoot);)X=X.parentNode;return P}function g(B,M){this.type=M.type,this.target=this.currentTarget=B.dom,this.pointerType=M.pointerType,this.clientX=M.clientX,this.clientY=M.clientY}var v=g.prototype;v.stopPropagation=v.stopImmediatePropagation=v.preventDefault=f.noop;var b={mousedown:function(M){M=A(this.dom,M),this._mayPointerCapture=[M.zrX,M.zrY],this.trigger("mousedown",M)},mousemove:function(M){M=A(this.dom,M);var X=this._mayPointerCapture;X&&(M.zrX!==X[0]||M.zrY!==X[1])&&C(this,!0),this.trigger("mousemove",M)},mouseup:function(M){M=A(this.dom,M),C(this,!1),this.trigger("mouseup",M)},mouseout:function(M){M=A(this.dom,M),this._pointerCapturing&&(M.zrEventControl="no_globalout");var X=M.toElement||M.relatedTarget;M.zrIsToLocalDOM=h(this,X),this.trigger("mouseout",M)},touchstart:function(M){M=A(this.dom,M),s(M),this._lastTouchMoment=new Date,this.handler.processGesture(M,"start"),b.mousemove.call(this,M),b.mousedown.call(this,M)},touchmove:function(M){M=A(this.dom,M),s(M),this.handler.processGesture(M,"change"),b.mousemove.call(this,M)},touchend:function(M){M=A(this.dom,M),s(M),this.handler.processGesture(M,"end"),b.mouseup.call(this,M),+new Date-this._lastTouchMoment<o&&b.click.call(this,M)},pointerdown:function(M){b.mousedown.call(this,M)},pointermove:function(M){u(M)||b.mousemove.call(this,M)},pointerup:function(M){b.mouseup.call(this,M)},pointerout:function(M){u(M)||b.mouseout.call(this,M)}};f.each(["click","mousewheel","dblclick","contextmenu"],function(B){b[B]=function(M){M=A(this.dom,M),this.trigger(B,M)}});var w={pointermove:function(M){u(M)||w.mousemove.call(this,M)},pointerup:function(M){w.mouseup.call(this,M)},mousemove:function(M){this.trigger("mousemove",M)},mouseup:function(M){var X=this._pointerCapturing;C(this,!1),this.trigger("mouseup",M),X&&(M.zrEventControl="only_globalout",this.trigger("mouseout",M))}};function x(B,M){var X=M.domHandlers;l.pointerEventsSupported?f.each(t.pointer,function(P){O(M,P,function(z){X[P].call(B,z)})}):(l.touchEventsSupported&&f.each(t.touch,function(P){O(M,P,function(z){X[P].call(B,z),r(M)})}),f.each(t.mouse,function(P){O(M,P,function(z){z=m(z),M.touching||X[P].call(B,z)})}))}function T(B,M){l.pointerEventsSupported?f.each(a.pointer,X):l.touchEventsSupported||f.each(a.mouse,X);function X(P){function z(W){W=m(W),h(B,W.target)||(W=c(B,W),M.domHandlers[P].call(B,W))}O(M,P,z,{capture:!0})}}function O(B,M,X,P){B.mounted[M]=X,B.listenerOpts[M]=P,p(B.domTarget,e(M),X,P)}function E(B){var M=B.mounted;for(var X in M)M.hasOwnProperty(X)&&S(B.domTarget,e(X),M[X],B.listenerOpts[X]);B.mounted={}}function C(B,M){if(B._mayPointerCapture=null,n&&B._pointerCapturing^M){B._pointerCapturing=M;var X=B._globalHandlerScope;M?T(B,X):E(X)}}function I(B,M){this.domTarget=B,this.domHandlers=M,this.mounted={},this.listenerOpts={},this.touchTimer=null,this.touching=!1}function _(B,M){d.call(this),this.dom=B,this.painterRoot=M,this._localHandlerScope=new I(B,b),n&&(this._globalHandlerScope=new I(document,w)),this._pointerCapturing=!1,this._mayPointerCapture=null,x(this,this._localHandlerScope)}var F=_.prototype;F.dispose=function(){E(this._localHandlerScope),n&&E(this._globalHandlerScope)},F.setCursor=function(B){this.dom.style&&(this.dom.style.cursor=B||"default")},f.mixin(_,d);var R=_;k.exports=R},zdCA:function(k,D,i){"use strict";var y=i("TqRt"),p=i("cDf5");Object.defineProperty(D,"__esModule",{value:!0}),D.default=void 0;var S=y(i("3tO9")),A=l(i("q1tI")),m=y(i("PSzr")),f=y(i("KQxl"));function d(t){if(typeof WeakMap!="function")return null;var a=new WeakMap,e=new WeakMap;return(d=function(r){return r?e:a})(t)}function l(t,a){if(!a&&t&&t.__esModule)return t;if(t===null||p(t)!=="object"&&typeof t!="function")return{default:t};var e=d(a);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 o=function(a,e){return A.createElement(f.default,(0,S.default)((0,S.default)({},a),{},{ref:e,icon:m.default}))};o.displayName="BarsOutlined";var n=A.forwardRef(o);D.default=n},zeV3:function(k,D,i){"use strict";var y=i("pVnL"),p=i.n(y),S=i("lSNA"),A=i.n(S),m=i("q1tI"),f=i.n(m),d=i("TSYQ"),l=i.n(d),o=i("H84U"),n=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},a=function(u){var r,s=m.useContext(o.b),c=s.getPrefixCls,h=s.space,g=s.direction,v=u.size,b=v===void 0?(h==null?void 0:h.size)||"small":v,w=u.align,x=u.className,T=u.children,O=u.direction,E=O===void 0?"horizontal":O,C=u.prefixCls,I=n(u,["size","align","className","children","direction","prefixCls"]),_=m.Children.count(T);if(_===0)return null;var F=w===void 0&&E==="horizontal"?"center":w,R=c("space",C),B=l()(R,"".concat(R,"-").concat(E),(r={},A()(r,"".concat(R,"-rtl"),g==="rtl"),A()(r,"".concat(R,"-align-").concat(F),F),r),x),M="".concat(R,"-item"),X=g==="rtl"?"marginLeft":"marginRight";return m.createElement("div",p()({className:B},I),m.Children.map(T,function(P,z){return m.createElement("div",{className:M,key:"".concat(M,"-").concat(z),style:z===_-1||P===null||P===void 0?{}:A()({},E==="vertical"?"marginBottom":X,typeof b=="string"?t[b]:b)},P)}))};D.a=a},zuHt:function(k,D,i){var y=i("bYtY");function p(S){var A={};S.eachSeriesByType("map",function(m){var f=m.getMapType();if(m.getHostGeoModel()||A[f])return;var d={};y.each(m.seriesGroup,function(o){var n=o.coordinateSystem,t=o.originalData;o.get("showLegendSymbol")&&S.getComponent("legend")&&t.each(t.mapDimension("value"),function(a,e){var u=t.getName(e),r=n.getRegion(u);if(!r||isNaN(a))return;var s=d[u]||0,c=n.dataToPoint(r.center);d[u]=s+1,t.setItemLayout(e,{point:c,offset:s})})});var l=m.getData();l.each(function(o){var n=l.getName(o),t=l.getItemLayout(o)||{};t.showLabel=!d[n],l.setItemLayout(o,t)}),A[f]=!0})}k.exports=p}}]);